@everymatrix/player-account-controller 1.86.4 → 1.86.5

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 (164) hide show
  1. package/components/{GeneralLogout-BOnb2iBt.js → GeneralLogout-BtP2SNPX.js} +856 -835
  2. package/components/GeneralLogout-CK8tLROK.cjs +21 -0
  3. package/components/{GeneralLogout-DjIbOrTj.js → GeneralLogout-hWNQ3J3o.js} +826 -805
  4. package/components/PlayerAccountBettingHistory-CSaFsnwC.cjs +1 -0
  5. package/components/PlayerAccountBettingHistory-D3xhBTAE.js +311 -0
  6. package/components/PlayerAccountBettingHistory-RBEtFHjB.js +310 -0
  7. package/components/{PlayerAccountBiometrics-QVmfbZzG.js → PlayerAccountBiometrics-BIYcG8cX.js} +22 -22
  8. package/components/{PlayerAccountBiometrics-YU3I-IHb.js → PlayerAccountBiometrics-Dp3Y8HTH.js} +22 -22
  9. package/components/{PlayerAccountBiometrics-ynUd1qQ9.cjs → PlayerAccountBiometrics-S9tvxAFz.cjs} +1 -1
  10. package/components/{PlayerAccountClosure-Bj4jXSc4.js → PlayerAccountClosure-BbW4iG-i.js} +45 -45
  11. package/components/{PlayerAccountClosure-CMLtteuy.js → PlayerAccountClosure-D7pmJiXo.js} +45 -45
  12. package/components/{PlayerAccountClosure-D45H4qp6.cjs → PlayerAccountClosure-jnEN5Fk4.cjs} +1 -1
  13. package/components/{PlayerAccountController-D9L8iTP5.js → PlayerAccountController-B0hqoPkx.js} +323 -323
  14. package/components/{PlayerAccountController-D3Cks26j.js → PlayerAccountController-CNVC5ehr.js} +321 -321
  15. package/components/{PlayerAccountController-DAsgXdng.cjs → PlayerAccountController-CtKX05xg.cjs} +1 -1
  16. package/components/{PlayerAccountGamingLimits-28tjnuGZ.js → PlayerAccountGamingLimits-BHtPyrhy.js} +127 -127
  17. package/components/{PlayerAccountGamingLimits-BKWM3ydF.js → PlayerAccountGamingLimits-BrXUGipz.js} +127 -127
  18. package/components/{PlayerAccountGamingLimits-DSnskFV1.cjs → PlayerAccountGamingLimits-BwYoIU8M.cjs} +1 -1
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-278XFqj4.js → PlayerAccountGamingLimitsConfirmationModal-B5ITcUEU.js} +33 -33
  20. package/components/{PlayerAccountGamingLimitsConfirmationModal-Y0WlAWLt.cjs → PlayerAccountGamingLimitsConfirmationModal-BJUqmOGM.cjs} +1 -1
  21. package/components/{PlayerAccountGamingLimitsConfirmationModal-BOGS6zWj.js → PlayerAccountGamingLimitsConfirmationModal-BpGTQY8Q.js} +33 -33
  22. package/components/PlayerAccountGamingLimitsGroupEdit-CmipcCdJ.cjs +2 -0
  23. package/components/{PlayerAccountGamingLimitsGroupEdit-CCSs2ZZl.js → PlayerAccountGamingLimitsGroupEdit-DsZYUSCI.js} +225 -227
  24. package/components/{PlayerAccountGamingLimitsGroupEdit-CTPRr65m.js → PlayerAccountGamingLimitsGroupEdit-K-lekHTx.js} +225 -227
  25. package/components/{PlayerAccountGamingLimitsHistory2-B4RJQdmm.js → PlayerAccountGamingLimitsHistory2-BWbMKCJM.js} +37 -37
  26. package/components/{PlayerAccountGamingLimitsHistory2-BaAKbqeZ.js → PlayerAccountGamingLimitsHistory2-CxA06bC4.js} +39 -39
  27. package/components/{PlayerAccountGamingLimitsHistory2-BK4iv-bI.cjs → PlayerAccountGamingLimitsHistory2-DbWCQlJP.cjs} +1 -1
  28. package/components/{PlayerAccountGamingLimitsInfoCard-BDk7ivhc.cjs → PlayerAccountGamingLimitsInfoCard-BFzvB3KC.cjs} +1 -1
  29. package/components/{PlayerAccountGamingLimitsInfoCard-BNWgZuBf.js → PlayerAccountGamingLimitsInfoCard-WqmdXNpw.js} +83 -83
  30. package/components/{PlayerAccountGamingLimitsInfoCard-CkWQ4EZm.js → PlayerAccountGamingLimitsInfoCard-fSpypV1Q.js} +83 -83
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16-BqWqb_Sl.js → PlayerAccountGamingLimitsPage2Gm16-CKqk7okN.js} +103 -103
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16-BtbMBUsn.cjs → PlayerAccountGamingLimitsPage2Gm16-CN784V5v.cjs} +2 -2
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16-DgnhVkqB.js → PlayerAccountGamingLimitsPage2Gm16-DbTjbrCg.js} +153 -153
  34. package/components/{PlayerAccountGamingLimitsPopup-Dnb4sqOe.js → PlayerAccountGamingLimitsPopup-1UbtHpM4.js} +26 -26
  35. package/components/{PlayerAccountGamingLimitsPopup-QsGFiUFM.js → PlayerAccountGamingLimitsPopup-6hO_YTRk.js} +26 -26
  36. package/components/{PlayerAccountGamingLimitsPopup-zCNpZt4B.cjs → PlayerAccountGamingLimitsPopup-D5nYGWok.cjs} +1 -1
  37. package/components/{PlayerAccountGamingLimitsWrapper2-CNeKBKiF.js → PlayerAccountGamingLimitsWrapper2-DKH_oTPL.js} +37 -37
  38. package/components/{PlayerAccountGamingLimitsWrapper2-Bj2uNFuV.cjs → PlayerAccountGamingLimitsWrapper2-DkVrqK1a.cjs} +1 -1
  39. package/components/{PlayerAccountGamingLimitsWrapper2-BVmH_JL_.js → PlayerAccountGamingLimitsWrapper2-H5X72FGo.js} +37 -37
  40. package/components/{PlayerAccountGeneralConfirmationModal-D8zWkoMs.js → PlayerAccountGeneralConfirmationModal-48XuglXa.js} +32 -32
  41. package/components/{PlayerAccountGeneralConfirmationModal-BHzKxY1M.cjs → PlayerAccountGeneralConfirmationModal-Fg_ynnO5.cjs} +1 -1
  42. package/components/{PlayerAccountGeneralConfirmationModal-O_Thi6bs.js → PlayerAccountGeneralConfirmationModal-mKvnC-aM.js} +32 -32
  43. package/components/{PlayerAccountMenu-CgsII09V.cjs → PlayerAccountMenu-D-3XXdrS.cjs} +1 -1
  44. package/components/{PlayerAccountMenu-ectFLNth.js → PlayerAccountMenu-DYFceiv-.js} +34 -34
  45. package/components/{PlayerAccountMenu-BzSTtrmv.js → PlayerAccountMenu-DZYiL86p.js} +36 -36
  46. package/components/{PlayerAccountModal-CY8gRMWy.cjs → PlayerAccountModal-BuDt5h1l.cjs} +1 -1
  47. package/components/{PlayerAccountModal-DaOLv-NY.js → PlayerAccountModal-DuBxYfB-.js} +24 -24
  48. package/components/{PlayerAccountModal-SvxOIw-1.js → PlayerAccountModal-vXNHQMMx.js} +24 -24
  49. package/components/{PlayerAccountNotifications-Df1nYl5z.js → PlayerAccountNotifications-BaVSuY0V.js} +31 -31
  50. package/components/{PlayerAccountNotifications-CIW_UfiN.cjs → PlayerAccountNotifications-D2sFlbP7.cjs} +1 -1
  51. package/components/{PlayerAccountNotifications-lUtQW0cy.js → PlayerAccountNotifications-eimwb2B_.js} +30 -30
  52. package/components/{PlayerAccountProductRestriction-DgJUoyYB.js → PlayerAccountProductRestriction-Cbwqgb-P.js} +1736 -1736
  53. package/components/{PlayerAccountProductRestriction-EHl8M1GB.js → PlayerAccountProductRestriction-HYm0eIXb.js} +1721 -1721
  54. package/components/{PlayerAccountProductRestriction-Bk8I1Rqd.cjs → PlayerAccountProductRestriction-i5lUVlsQ.cjs} +269 -269
  55. package/components/{PlayerAccountReviewFrequency-BBLUZ6ex.js → PlayerAccountReviewFrequency-B55vgMkU.js} +27 -27
  56. package/components/{PlayerAccountReviewFrequency-P7uk_Ztp.js → PlayerAccountReviewFrequency-D39G6M8w.js} +27 -27
  57. package/components/{PlayerAccountReviewFrequency-CBjQjnfc.cjs → PlayerAccountReviewFrequency-oyuyzboO.cjs} +1 -1
  58. package/components/{PlayerAccountSelfExclusion-DfsaDGPw.js → PlayerAccountSelfExclusion-Btcxzmyl.js} +113 -114
  59. package/components/{PlayerAccountSelfExclusion-DztxNwlD.cjs → PlayerAccountSelfExclusion-CCMP12tO.cjs} +86 -86
  60. package/components/{PlayerAccountSelfExclusion-ovuuzWXL.js → PlayerAccountSelfExclusion-CY5wEDf5.js} +563 -564
  61. package/components/{PlayerAccountTimeout-BRXoWqhe.cjs → PlayerAccountTimeout-CBYSh_gx.cjs} +1 -1
  62. package/components/{PlayerAccountTimeout-B5IP0PdK.js → PlayerAccountTimeout-Cl5M8UZM.js} +59 -59
  63. package/components/{PlayerAccountTimeout-DzQi6yWM.js → PlayerAccountTimeout-CnmuzL1o.js} +59 -59
  64. package/components/{PlayerAccountTransactionsHistory-B3fkTCCB.js → PlayerAccountTransactionsHistory-B89UQBgK.js} +74 -74
  65. package/components/{PlayerAccountTransactionsHistory-dE8niHZ5.js → PlayerAccountTransactionsHistory-CuLSo_WG.js} +74 -74
  66. package/components/{PlayerAccountTransactionsHistory-DyJM2Ruh.cjs → PlayerAccountTransactionsHistory-DborEyiw.cjs} +1 -1
  67. package/components/{PlayerActiveBonuses-CbX5Pr0C.js → PlayerActiveBonuses-Cv7645BT.js} +55 -55
  68. package/components/{PlayerActiveBonuses-BRHjOIvu.js → PlayerActiveBonuses-Rb7CqkQm.js} +59 -59
  69. package/components/{PlayerActiveBonuses-DUjeakxU.cjs → PlayerActiveBonuses-rgpIrlXZ.cjs} +1 -1
  70. package/components/{PlayerBonusCard-BjQyqGUx.js → PlayerBonusCard-Byfk3zTj.js} +64 -64
  71. package/components/{PlayerBonusCard-VRSzYcHq.js → PlayerBonusCard-D3S1mqXd.js} +64 -64
  72. package/components/{PlayerBonusCard-L76jqlzO.cjs → PlayerBonusCard-DDnmH7Q3.cjs} +1 -1
  73. package/components/{PlayerBonusHistory-zDuqv2Xe.js → PlayerBonusHistory-BKquFnB_.js} +35 -35
  74. package/components/{PlayerBonusHistory-C36LLD9L.js → PlayerBonusHistory-CjQW7Bz0.js} +35 -35
  75. package/components/{PlayerBonusHistory-CaZuwvZh.cjs → PlayerBonusHistory-KRE5nRLu.cjs} +1 -1
  76. package/components/{PlayerChangePassword-DvLZa59W.js → PlayerChangePassword-CrimbboS.js} +64 -64
  77. package/components/{PlayerChangePassword-Df1yWLGd.js → PlayerChangePassword-DjvBDg3y.js} +64 -64
  78. package/components/{PlayerChangePassword-AMc1FhMX.cjs → PlayerChangePassword-Dse_H2fj.cjs} +1 -1
  79. package/components/{PlayerDeposit-BfA8FXpl.js → PlayerDeposit-BBN4CKJK.js} +80 -80
  80. package/components/{PlayerDeposit-CaljSGlo.js → PlayerDeposit-BZ6g3CTd.js} +80 -80
  81. package/components/PlayerDeposit-rfdArTZi.cjs +1 -0
  82. package/components/{PlayerGamingHistory-CAFJZ3_B.js → PlayerGamingHistory-00NQrAip.js} +61 -61
  83. package/components/{PlayerGamingHistory-DY_zyXD6.js → PlayerGamingHistory-DzArsva8.js} +69 -69
  84. package/components/{PlayerGamingHistory-CwViv4Q1.cjs → PlayerGamingHistory-S-SzMIdL.cjs} +1 -1
  85. package/components/{PlayerPendingWithdrawals-Cm0fwSwi.js → PlayerPendingWithdrawals-BFjzJT3E.js} +26 -26
  86. package/components/{PlayerPendingWithdrawals-B1VPUcDU.js → PlayerPendingWithdrawals-D97Q7Wwu.js} +26 -26
  87. package/components/{PlayerPendingWithdrawals-Clnbqpbc.cjs → PlayerPendingWithdrawals-DjrsUKIF.cjs} +1 -1
  88. package/components/{PlayerProfileInfo-C679iFSl.cjs → PlayerProfileInfo-CGvjIKQN.cjs} +2 -2
  89. package/components/{PlayerProfileInfo-DPdHOj2U.js → PlayerProfileInfo-DyKs84t2.js} +326 -326
  90. package/components/{PlayerProfileInfo-MihJad1H.js → PlayerProfileInfo-SbEB0z2o.js} +287 -287
  91. package/components/{PlayerRealityCheck-CFudx21y.js → PlayerRealityCheck-C9r4TGt5.js} +45 -45
  92. package/components/{PlayerRealityCheck-C4mPQixI.cjs → PlayerRealityCheck-CYmf-RVV.cjs} +1 -1
  93. package/components/{PlayerRealityCheck-DTYvcrjT.js → PlayerRealityCheck-pY-GH7Tx.js} +44 -44
  94. package/components/{PlayerTransactionHistory-DiLrJt2G.js → PlayerTransactionHistory-CAA600Et.js} +19 -19
  95. package/components/{PlayerTransactionHistory-rDPZht6D.js → PlayerTransactionHistory-DY9X6YZW.js} +19 -19
  96. package/components/{PlayerTransactionHistory-DPxtzy-C.cjs → PlayerTransactionHistory-DlY_0H_I.cjs} +1 -1
  97. package/components/{PlayerWithdrawal--Aa-nhcx.js → PlayerWithdrawal-BIFTys53.js} +19 -19
  98. package/components/{PlayerWithdrawal-CXT9imAf.js → PlayerWithdrawal-BcnzA5BS.js} +19 -19
  99. package/components/{PlayerWithdrawal-CBCp9PZ6.cjs → PlayerWithdrawal-Dt-iI81t.cjs} +1 -1
  100. package/es2015/player-account-controller.cjs +1 -1
  101. package/es2015/player-account-controller.js +1 -1
  102. package/esnext/player-account-controller.js +1 -1
  103. package/package.json +1 -1
  104. package/stencil/{checkbox-group-input_16-BFzhy5Ds.js → checkbox-group-input_16-BC4v8R1S.js} +2726 -2730
  105. package/stencil/{checkbox-group-input_16-D97ZQUQc.cjs → checkbox-group-input_16-JIjNKsjV.cjs} +241 -241
  106. package/stencil/{checkbox-group-input_16-DWlrP0bl.js → checkbox-group-input_16-RYO1eLMo.js} +2727 -2731
  107. package/stencil/index-1ef3a64c-BzR_jMKw.cjs +1 -0
  108. package/stencil/index-1ef3a64c-CEngIsyB.js +556 -0
  109. package/stencil/index-1ef3a64c-D5p-wZAC.js +572 -0
  110. package/stencil/{index-6e523641-B3-KBTxo.js → index-6e523641-BB_MNuoS.js} +215 -215
  111. package/stencil/index-6e523641-C2D7V1Bj.js +654 -0
  112. package/stencil/index-6e523641-CKmTS6uC.cjs +1 -0
  113. package/stencil/index-9c0f6c58-DEQL19Io.js +576 -0
  114. package/stencil/{index-9c0f6c58-CeqaT62D.js → index-9c0f6c58-DjED2nNw.js} +197 -197
  115. package/stencil/index-9c0f6c58-XIZolvs1.cjs +1 -0
  116. package/stencil/index-b2193545-0zWC7J3V.js +519 -0
  117. package/stencil/index-b2193545-BDUg7na_.js +503 -0
  118. package/stencil/index-b2193545-C-iFa_cO.cjs +1 -0
  119. package/stencil/index-c666b6e6-Byhd6hcm.js +595 -0
  120. package/stencil/index-c666b6e6-CF6tkxHf.cjs +1 -0
  121. package/stencil/index-c666b6e6-Do6y6LKI.js +611 -0
  122. package/stencil/{pam-change-password-6b535bd5-IDEQf7lQ.js → pam-change-password-6b535bd5-BQRVBjrK.js} +1 -1
  123. package/stencil/{pam-change-password-6b535bd5-CwKI0Z0X.js → pam-change-password-6b535bd5-CRmngfXe.js} +1 -1
  124. package/stencil/{pam-change-password-6b535bd5-BiGQ8KVX.cjs → pam-change-password-6b535bd5-CeXNndIG.cjs} +1 -1
  125. package/stencil/{pam-change-password-ZcgLi1FB.js → pam-change-password-D00SLeAW.js} +1 -1
  126. package/stencil/{pam-change-password-okTOstph.cjs → pam-change-password-DYLwctX0.cjs} +1 -1
  127. package/stencil/{pam-change-password-uAFIJHlm.js → pam-change-password-DjJxocc2.js} +1 -1
  128. package/stencil/{player-kyc-verification-B92GKGxG.js → player-kyc-verification-BUKoBt3P.js} +1 -1
  129. package/stencil/{player-kyc-verification-CswmhI0w.cjs → player-kyc-verification-Cg0fVyvL.cjs} +1 -1
  130. package/stencil/{player-kyc-verification-BgWMJYb9.js → player-kyc-verification-vQ6gNPBe.js} +1 -1
  131. package/stencil/{ui-skeleton-D72p-Fr7.js → ui-skeleton-BQnxp85t.js} +2 -2
  132. package/stencil/{ui-skeleton-8FQE3dtj.cjs → ui-skeleton-C2ZVNvDq.cjs} +1 -1
  133. package/stencil/{ui-skeleton-Xqkce5rC.js → ui-skeleton-CTFP1U_H.js} +2 -2
  134. package/stencil/{ui-skeleton-ed169f8f-BseCcEeK.js → ui-skeleton-ed169f8f-BXqYzfTU.js} +1 -1
  135. package/stencil/{ui-skeleton-ed169f8f-Dby1l0Am.cjs → ui-skeleton-ed169f8f-DCJKKb_M.cjs} +1 -1
  136. package/stencil/{ui-skeleton-ed169f8f-DOY6gII1.js → ui-skeleton-ed169f8f-OyzwWyyv.js} +1 -1
  137. package/stencil/{user-deposit-withdrawal-DcXo00rH.js → user-deposit-withdrawal-C5lc1C0l.js} +147 -147
  138. package/stencil/{user-deposit-withdrawal-DSds1LFu.cjs → user-deposit-withdrawal-DfWpITDc.cjs} +2 -2
  139. package/stencil/{user-deposit-withdrawal-Bl8GtEeG.js → user-deposit-withdrawal-DmXcotOq.js} +135 -135
  140. package/stencil/{user-transaction-history-BOyTKs-L.cjs → user-transaction-history-BOayQu-b.cjs} +1 -1
  141. package/stencil/{user-transaction-history-DQGnZaCf.js → user-transaction-history-Bd1eC2iV.js} +1 -1
  142. package/stencil/{user-transaction-history-DsrE-ay4.js → user-transaction-history-BkmoDFTs.js} +1 -1
  143. package/stencil/{user-transaction-history_2-Bd2twNve.js → user-transaction-history_2-BSVh_kdE.js} +4067 -4071
  144. package/stencil/{user-transaction-history_2-2E4LODiP.cjs → user-transaction-history_2-CI6uuSIf.cjs} +279 -279
  145. package/stencil/{user-transaction-history_2-DSqMAOln.js → user-transaction-history_2-PSCBkBVb.js} +4053 -4057
  146. package/components/GeneralLogout-DDP4rL2J.cjs +0 -21
  147. package/components/PlayerAccountBettingHistory-B89zDM2m.cjs +0 -1
  148. package/components/PlayerAccountBettingHistory-D0Jedf4O.js +0 -310
  149. package/components/PlayerAccountBettingHistory-DSuwi17X.js +0 -311
  150. package/components/PlayerAccountGamingLimitsGroupEdit-CvTM9Url.cjs +0 -2
  151. package/components/PlayerDeposit-CiYmhvoJ.cjs +0 -1
  152. package/stencil/index-1ef3a64c-7FrzWBo0.js +0 -572
  153. package/stencil/index-1ef3a64c-CiqxxPPf.js +0 -556
  154. package/stencil/index-1ef3a64c-DYVBCVnw.cjs +0 -1
  155. package/stencil/index-6e523641-BidoKGkF.js +0 -654
  156. package/stencil/index-6e523641-YrOpGARh.cjs +0 -1
  157. package/stencil/index-9c0f6c58-DU0KIZIN.cjs +0 -1
  158. package/stencil/index-9c0f6c58-qzbktWKM.js +0 -576
  159. package/stencil/index-b2193545-BDXOeFnW.js +0 -519
  160. package/stencil/index-b2193545-Cspmk58C.js +0 -503
  161. package/stencil/index-b2193545-Dd6Y7OR7.cjs +0 -1
  162. package/stencil/index-c666b6e6-Al15kG4D.js +0 -611
  163. package/stencil/index-c666b6e6-B6H6r-L0.cjs +0 -1
  164. package/stencil/index-c666b6e6-DaWXT_VY.js +0 -595
@@ -1,4 +1,4 @@
1
- "use strict";var Sr=Object.defineProperty,Ar=Object.defineProperties;var Cr=Object.getOwnPropertyDescriptors;var Ji=Object.getOwnPropertySymbols;var Pr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable;var Xi=(o,t,e)=>t in o?Sr(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,mt=(o,t)=>{for(var e in t||(t={}))Pr.call(t,e)&&Xi(o,e,t[e]);if(Ji)for(var e of Ji(t))kr.call(t,e)&&Xi(o,e,t[e]);return o},_t=(o,t)=>Ar(o,Cr(t));var qe=(o,t,e)=>new Promise((i,s)=>{var r=l=>{try{a(e.next(l))}catch(d){s(d)}},n=l=>{try{a(e.throw(l))}catch(d){s(d)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(o,t)).next())});const c=require("./GeneralLogout-DDP4rL2J.cjs"),he=require("./PlayerAccountProductRestriction-Bk8I1Rqd.cjs");require("../stencil/ui-skeleton-8FQE3dtj.cjs");require("./PlayerAccountGamingLimitsGroupEdit-CvTM9Url.cjs");/**
1
+ "use strict";var Sr=Object.defineProperty,Ar=Object.defineProperties;var Cr=Object.getOwnPropertyDescriptors;var Ji=Object.getOwnPropertySymbols;var Pr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable;var Xi=(o,t,e)=>t in o?Sr(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,_t=(o,t)=>{for(var e in t||(t={}))Pr.call(t,e)&&Xi(o,e,t[e]);if(Ji)for(var e of Ji(t))kr.call(t,e)&&Xi(o,e,t[e]);return o},gt=(o,t)=>Ar(o,Cr(t));var Ke=(o,t,e)=>new Promise((i,s)=>{var r=l=>{try{a(e.next(l))}catch(d){s(d)}},n=l=>{try{a(e.throw(l))}catch(d){s(d)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(o,t)).next())});const c=require("./GeneralLogout-CK8tLROK.cjs"),he=require("./PlayerAccountProductRestriction-i5lUVlsQ.cjs");require("../stencil/ui-skeleton-C2ZVNvDq.cjs");require("./PlayerAccountGamingLimitsGroupEdit-CmipcCdJ.cjs");/**
2
2
  * @license
3
3
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10,21 +10,21 @@
10
10
  * @license
11
11
  * Copyright 2019 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const wt=globalThis,Ai=wt.ShadowRoot&&(wt.ShadyCSS===void 0||wt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ci=Symbol(),Zi=new WeakMap;let Pi=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Ci)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Ai&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Zi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Zi.set(e,t))}return t}toString(){return this.cssText}};const Tr=o=>new Pi(typeof o=="string"?o:o+"",void 0,Ci),S=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((i,s,r)=>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.")})(s)+o[r+1],o[0]);return new Pi(e,o,Ci)},Jo=(o,t)=>{if(Ai)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=wt.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,o.appendChild(i)}},Qi=Ai?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Tr(e)})(o):o;/**
13
+ */const Et=globalThis,Ci=Et.ShadowRoot&&(Et.ShadyCSS===void 0||Et.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Pi=Symbol(),Zi=new WeakMap;let ki=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Pi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Ci&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Zi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Zi.set(e,t))}return t}toString(){return this.cssText}};const Tr=o=>new ki(typeof o=="string"?o:o+"",void 0,Pi),S=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((i,s,r)=>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.")})(s)+o[r+1],o[0]);return new ki(e,o,Pi)},Jo=(o,t)=>{if(Ci)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=Et.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,o.appendChild(i)}},Qi=Ci?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Tr(e)})(o):o;/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const{is:Mr,defineProperty:Or,getOwnPropertyDescriptor:Ir,getOwnPropertyNames:Fr,getOwnPropertySymbols:Nr,getPrototypeOf:zr}=Object,ye=globalThis,eo=ye.trustedTypes,Lr=eo?eo.emptyScript:"",Rt=ye.reactiveElementPolyfillSupport,tt=(o,t)=>o,ii={toAttribute(o,t){switch(t){case Boolean:o=o?Lr:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch(i){e=null}}return e}},Xo=(o,t)=>!Mr(o,t),to={attribute:!0,type:String,converter:ii,reflect:!1,hasChanged:Xo};var Vo,Uo;(Vo=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Uo=ye.litPropertyMetadata)!=null||(ye.litPropertyMetadata=new WeakMap);class ze extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=to){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Or(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var n;const{get:s,set:r}=(n=Ir(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a}};return{get(){return s==null?void 0:s.call(this)},set(a){const l=s==null?void 0:s.call(this);r.call(this,a),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:to}static _$Ei(){if(this.hasOwnProperty(tt("elementProperties")))return;const t=zr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(tt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(tt("properties"))){const e=this.properties,i=[...Fr(e),...Nr(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Qi(s))}else t!==void 0&&e.push(Qi(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Jo(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){var r;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:ii).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){var r;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const n=i.getPropertyOptions(s),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((r=n.converter)==null?void 0:r.fromAttribute)!==void 0?n.converter:ii;this._$Em=s,this[s]=a.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,i){var s;if(t!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(t)),!((s=i.hasChanged)!=null?s:Xo)(this[t],e))return;this.P(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,i){var s;this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&((s=this._$Ej)!=null?s:this._$Ej=new Set).add(t)}_$ET(){return qe(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,a]of r)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],a)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}var Wo;ze.elementStyles=[],ze.shadowRootOptions={mode:"open"},ze[tt("elementProperties")]=new Map,ze[tt("finalized")]=new Map,Rt==null||Rt({ReactiveElement:ze}),((Wo=ye.reactiveElementVersions)!=null?Wo:ye.reactiveElementVersions=[]).push("2.0.4");/**
17
+ */const{is:Mr,defineProperty:Or,getOwnPropertyDescriptor:Ir,getOwnPropertyNames:Fr,getOwnPropertySymbols:Nr,getPrototypeOf:zr}=Object,ye=globalThis,eo=ye.trustedTypes,Lr=eo?eo.emptyScript:"",Bt=ye.reactiveElementPolyfillSupport,it=(o,t)=>o,oi={toAttribute(o,t){switch(t){case Boolean:o=o?Lr:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch(i){e=null}}return e}},Xo=(o,t)=>!Mr(o,t),to={attribute:!0,type:String,converter:oi,reflect:!1,useDefault:!1,hasChanged:Xo};var Vo,Uo;(Vo=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Uo=ye.litPropertyMetadata)!=null||(ye.litPropertyMetadata=new WeakMap);class Le extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=to){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Or(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var n;const{get:s,set:r}=(n=Ir(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a}};return{get:s,set(a){const l=s==null?void 0:s.call(this);r==null||r.call(this,a),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:to}static _$Ei(){if(this.hasOwnProperty(it("elementProperties")))return;const t=zr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(it("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(it("properties"))){const e=this.properties,i=[...Fr(e),...Nr(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Qi(s))}else t!==void 0&&e.push(Qi(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Jo(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var r;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:oi).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){var r,n,a;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const l=i.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((r=l.converter)==null?void 0:r.fromAttribute)!==void 0?l.converter:oi;this._$Em=s;const u=d.fromAttribute(e,l.type);this[s]=(a=u!=null?u:(n=this._$Ej)==null?void 0:n.get(s))!=null?a:u,this._$Em=null}}requestUpdate(t,e,i){var s,r;if(t!==void 0){const n=this.constructor,a=this[t];if(i!=null||(i=n.getPropertyOptions(t)),!(((s=i.hasChanged)!=null?s:Xo)(a,e)||i.useDefault&&i.reflect&&a===((r=this._$Ej)==null?void 0:r.get(t))&&!this.hasAttribute(n._$Eu(t,i))))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:r},n){var a,l,d;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(l=n!=null?n:e)!=null?l:this[t]),r!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),s===!0&&this._$Em!==t&&((d=this._$Eq)!=null?d:this._$Eq=new Set).add(t))}_$EP(){return Ke(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,a]of r){const{wrapped:l}=a,d=this[n];l!==!0||this._$AL.has(n)||d===void 0||this.C(n,void 0,a,d)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}}var Wo;Le.elementStyles=[],Le.shadowRootOptions={mode:"open"},Le[it("elementProperties")]=new Map,Le[it("finalized")]=new Map,Bt==null||Bt({ReactiveElement:Le}),((Wo=ye.reactiveElementVersions)!=null?Wo:ye.reactiveElementVersions=[]).push("2.1.1");/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */const it=globalThis,St=it.trustedTypes,io=St?St.createPolicy("lit-html",{createHTML:o=>o}):void 0,Zo="$lit$",ve=`lit$${Math.random().toFixed(9).slice(2)}$`,Qo="?"+ve,Rr=`<${Qo}>`,Me=document,st=()=>Me.createComment(""),rt=o=>o===null||typeof o!="object"&&typeof o!="function",ki=Array.isArray,Br=o=>ki(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Bt=`[
22
- \f\r]`,Ke=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oo=/-->/g,so=/>/g,Ce=RegExp(`>|${Bt}(?:([^\\s"'>=/]+)(${Bt}*=${Bt}*(?:[^
23
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ro=/'/g,no=/"/g,es=/^(?:script|style|textarea|title)$/i,Ye=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),ao=new WeakMap,Pe=Me.createTreeWalker(Me,129);function ts(o,t){if(!ki(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return io!==void 0?io.createHTML(t):t}const Hr=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":t===3?"<math>":"",n=Ke;for(let a=0;a<e;a++){const l=o[a];let d,u,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,u=n.exec(l),u!==null);)p=n.lastIndex,n===Ke?u[1]==="!--"?n=oo:u[1]!==void 0?n=so:u[2]!==void 0?(es.test(u[2])&&(s=RegExp("</"+u[2],"g")),n=Ce):u[3]!==void 0&&(n=Ce):n===Ce?u[0]===">"?(n=s!=null?s:Ke,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?Ce:u[3]==='"'?no:ro):n===no||n===ro?n=Ce:n===oo||n===so?n=Ke:(n=Ce,s=void 0);const m=n===Ce&&o[a+1].startsWith("/>")?" ":"";r+=n===Ke?l+Rr:h>=0?(i.push(d),l.slice(0,h)+Zo+l.slice(h)+ve+m):l+ve+(h===-2?a:m)}return[ts(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class nt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[d,u]=Hr(t,e);if(this.el=nt.createElement(d,i),Pe.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=Pe.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(Zo)){const p=u[n++],m=s.getAttribute(h).split(ve),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:b[2],strings:m,ctor:b[1]==="."?$r:b[1]==="?"?jr:b[1]==="@"?Vr:Ot}),s.removeAttribute(h)}else h.startsWith(ve)&&(l.push({type:6,index:r}),s.removeAttribute(h));if(es.test(s.tagName)){const h=s.textContent.split(ve),p=h.length-1;if(p>0){s.textContent=St?St.emptyScript:"";for(let m=0;m<p;m++)s.append(h[m],st()),Pe.nextNode(),l.push({type:2,index:++r});s.append(h[p],st())}}}else if(s.nodeType===8)if(s.data===Qo)l.push({type:2,index:r});else{let h=-1;for(;(h=s.data.indexOf(ve,h+1))!==-1;)l.push({type:7,index:r}),h+=ve.length-1}r++}}static createElement(t,e){const i=Me.createElement("template");return i.innerHTML=t,i}}function $e(o,t,e=o,i){var n,a,l;if(t===Ye)return t;let s=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const r=rt(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==r&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),r===void 0?s=void 0:(s=new r(o),s._$AT(o,e,i)),i!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[i]=s:e._$Cl=s),s!==void 0&&(t=$e(o,s._$AS(o,t.values),s,i)),t}class Yr{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var d;const{el:{content:e},parts:i}=this._$AD,s=((d=t==null?void 0:t.creationScope)!=null?d:Me).importNode(e,!0);Pe.currentNode=s;let r=Pe.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let u;l.type===2?u=new pt(r,r.nextSibling,this,t):l.type===1?u=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(u=new Ur(r,this,t)),this._$AV.push(u),l=i[++a]}n!==(l==null?void 0:l.index)&&(r=Pe.nextNode(),n++)}return Pe.currentNode=Me,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class pt{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,s){var r;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(r=s==null?void 0:s.isConnected)!=null?r:!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=$e(this,t,e),rt(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==Ye&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Br(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==$&&rt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Me.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=nt.createElement(ts(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===s)this._$AH.p(e);else{const n=new Yr(s,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=ao.get(t.strings);return e===void 0&&ao.set(t.strings,e=new nt(t)),e}k(t){ki(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new pt(this.O(st()),this.O(st()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Ot{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,r){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=$e(this,t,e,0),n=!rt(t)||t!==this._$AH&&t!==Ye,n&&(this._$AH=t);else{const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=$e(this,a[i+l],e,l),d===Ye&&(d=this._$AH[l]),n||(n=!rt(d)||d!==this._$AH[l]),d===$?t=$:t!==$&&(t+=(d!=null?d:"")+r[l+1]),this._$AH[l]=d}n&&!s&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class $r extends Ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}}class jr extends Ot{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==$)}}class Vr extends Ot{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var n;if((t=(n=$e(this,t,e,0))!=null?n:$)===Ye)return;const i=this._$AH,s=t===$&&i!==$||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==$&&(i===$||s);s&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)==null?void 0:e.host)!=null?i:this.element,t):this._$AH.handleEvent(t)}}class Ur{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){$e(this,t)}}const Ht=it.litHtmlPolyfillSupport;var qo;Ht==null||Ht(nt,pt),((qo=it.litHtmlVersions)!=null?qo:it.litHtmlVersions=[]).push("3.2.1");const Wr=(o,t,e)=>{var r,n;const i=(r=e==null?void 0:e.renderBefore)!=null?r:t;let s=i._$litPart$;if(s===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;i._$litPart$=s=new pt(t.insertBefore(st(),a),a,void 0,e!=null?e:{})}return s._$AI(o),s};/**
21
+ */const ot=globalThis,At=ot.trustedTypes,io=At?At.createPolicy("lit-html",{createHTML:o=>o}):void 0,Zo="$lit$",ve=`lit$${Math.random().toFixed(9).slice(2)}$`,Qo="?"+ve,Rr=`<${Qo}>`,Oe=document,rt=()=>Oe.createComment(""),nt=o=>o===null||typeof o!="object"&&typeof o!="function",Di=Array.isArray,Br=o=>Di(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",Ht=`[
22
+ \f\r]`,Ge=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oo=/-->/g,so=/>/g,Ce=RegExp(`>|${Ht}(?:([^\\s"'>=/]+)(${Ht}*=${Ht}*(?:[^
23
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ro=/'/g,no=/"/g,es=/^(?:script|style|textarea|title)$/i,Ye=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),ao=new WeakMap,Pe=Oe.createTreeWalker(Oe,129);function ts(o,t){if(!Di(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return io!==void 0?io.createHTML(t):t}const Hr=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":t===3?"<math>":"",n=Ge;for(let a=0;a<e;a++){const l=o[a];let d,u,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,u=n.exec(l),u!==null);)p=n.lastIndex,n===Ge?u[1]==="!--"?n=oo:u[1]!==void 0?n=so:u[2]!==void 0?(es.test(u[2])&&(s=RegExp("</"+u[2],"g")),n=Ce):u[3]!==void 0&&(n=Ce):n===Ce?u[0]===">"?(n=s!=null?s:Ge,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?Ce:u[3]==='"'?no:ro):n===no||n===ro?n=Ce:n===oo||n===so?n=Ge:(n=Ce,s=void 0);const m=n===Ce&&o[a+1].startsWith("/>")?" ":"";r+=n===Ge?l+Rr:h>=0?(i.push(d),l.slice(0,h)+Zo+l.slice(h)+ve+m):l+ve+(h===-2?a:m)}return[ts(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class at{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[d,u]=Hr(t,e);if(this.el=at.createElement(d,i),Pe.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=Pe.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(Zo)){const p=u[n++],m=s.getAttribute(h).split(ve),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:b[2],strings:m,ctor:b[1]==="."?Yr:b[1]==="?"?jr:b[1]==="@"?Vr:It}),s.removeAttribute(h)}else h.startsWith(ve)&&(l.push({type:6,index:r}),s.removeAttribute(h));if(es.test(s.tagName)){const h=s.textContent.split(ve),p=h.length-1;if(p>0){s.textContent=At?At.emptyScript:"";for(let m=0;m<p;m++)s.append(h[m],rt()),Pe.nextNode(),l.push({type:2,index:++r});s.append(h[p],rt())}}}else if(s.nodeType===8)if(s.data===Qo)l.push({type:2,index:r});else{let h=-1;for(;(h=s.data.indexOf(ve,h+1))!==-1;)l.push({type:7,index:r}),h+=ve.length-1}r++}}static createElement(t,e){const i=Oe.createElement("template");return i.innerHTML=t,i}}function je(o,t,e=o,i){var n,a,l;if(t===Ye)return t;let s=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const r=nt(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==r&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),r===void 0?s=void 0:(s=new r(o),s._$AT(o,e,i)),i!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[i]=s:e._$Cl=s),s!==void 0&&(t=je(o,s._$AS(o,t.values),s,i)),t}class $r{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var d;const{el:{content:e},parts:i}=this._$AD,s=((d=t==null?void 0:t.creationScope)!=null?d:Oe).importNode(e,!0);Pe.currentNode=s;let r=Pe.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let u;l.type===2?u=new ft(r,r.nextSibling,this,t):l.type===1?u=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(u=new Ur(r,this,t)),this._$AV.push(u),l=i[++a]}n!==(l==null?void 0:l.index)&&(r=Pe.nextNode(),n++)}return Pe.currentNode=Oe,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class ft{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,s){var r;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(r=s==null?void 0:s.isConnected)!=null?r:!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=je(this,t,e),nt(t)?t===Y||t==null||t===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==Ye&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Br(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Y&&nt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Oe.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=at.createElement(ts(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===s)this._$AH.p(e);else{const n=new $r(s,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=ao.get(t.strings);return e===void 0&&ao.set(t.strings,e=new at(t)),e}k(t){Di(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new ft(this.O(rt()),this.O(rt()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class It{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,r){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Y}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=je(this,t,e,0),n=!nt(t)||t!==this._$AH&&t!==Ye,n&&(this._$AH=t);else{const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=je(this,a[i+l],e,l),d===Ye&&(d=this._$AH[l]),n||(n=!nt(d)||d!==this._$AH[l]),d===Y?t=Y:t!==Y&&(t+=(d!=null?d:"")+r[l+1]),this._$AH[l]=d}n&&!s&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class Yr extends It{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}class jr extends It{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Y)}}class Vr extends It{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var n;if((t=(n=je(this,t,e,0))!=null?n:Y)===Ye)return;const i=this._$AH,s=t===Y&&i!==Y||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==Y&&(i===Y||s);s&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)==null?void 0:e.host)!=null?i:this.element,t):this._$AH.handleEvent(t)}}class Ur{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){je(this,t)}}const $t=ot.litHtmlPolyfillSupport;var qo;$t==null||$t(at,ft),((qo=ot.litHtmlVersions)!=null?qo:ot.litHtmlVersions=[]).push("3.3.1");const Wr=(o,t,e)=>{var r,n;const i=(r=e==null?void 0:e.renderBefore)!=null?r:t;let s=i._$litPart$;if(s===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;i._$litPart$=s=new ft(t.insertBefore(rt(),a),a,void 0,e!=null?e:{})}return s._$AI(o),s};/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */class Le extends ze{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const t=super.createRenderRoot();return(i=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Wr(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Ye}}var Ko;Le._$litElement$=!0,Le.finalized=!0,(Ko=globalThis.litElementHydrateSupport)==null||Ko.call(globalThis,{LitElement:Le});const Yt=globalThis.litElementPolyfillSupport;Yt==null||Yt({LitElement:Le});var Go;((Go=globalThis.litElementVersions)!=null?Go:globalThis.litElementVersions=[]).push("4.1.1");/**
27
+ */const Te=globalThis;class Re extends Le{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const t=super.createRenderRoot();return(i=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Wr(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Ye}}var Ko;Re._$litElement$=!0,Re.finalized=!0,(Ko=Te.litElementHydrateSupport)==null||Ko.call(Te,{LitElement:Re});const Yt=Te.litElementPolyfillSupport;Yt==null||Yt({LitElement:Re});var Go;((Go=Te.litElementVersions)!=null?Go:Te.litElementVersions=[]).push("4.2.1");/**
28
28
  * @license
29
29
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
30
30
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -32,13 +32,13 @@
32
32
  * @license
33
33
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
34
34
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
35
- */const is=[],oi=new Set,Di=new Set;function os(o){return o&&Object.prototype.hasOwnProperty.call(o,"__themes")}function Kr(o){return os(customElements.get(o))}function Gr(o=[]){return[o].flat(1/0).filter(t=>t instanceof Pi?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function ss(o,t){return(o||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function rs(o){return o.map(t=>t.cssText).join(`
36
- `)}const At="vaadin-themable-mixin-style";function Jr(o,t){const e=document.createElement("style");e.id=At,e.textContent=rs(o),t.content.appendChild(e)}function Xr(o){if(!o.shadowRoot)return;const t=o.constructor;if(o instanceof Le)[...o.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Jo(o.shadowRoot,t.elementStyles);else{const e=o.shadowRoot.getElementById(At),i=t.prototype._template;e.textContent=i.content.getElementById(At).textContent}}function Zr(o){oi.forEach(t=>{const e=t.deref();e instanceof o?Xr(e):e||oi.delete(t)})}function ns(o){if(o.prototype instanceof Le)o.elementStyles=o.finalizeStyles(o.styles);else{const t=o.prototype._template;t.content.getElementById(At).textContent=rs(o.getStylesForThis())}Di.forEach(t=>{const e=customElements.get(t);e!==o&&e.prototype instanceof o&&ns(e)})}function Qr(o,t){const e=o.__themes;return!e||!t?!1:e.some(i=>i.styles.some(s=>t.some(r=>r.cssText===s.cssText)))}function I(o,t,e={}){t=Gr(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(o,t,e):is.push({themeFor:o,styles:t,include:e.include,moduleId:e.moduleId}),o&&Di.forEach(i=>{if(ss(o,i)&&Kr(i)){const s=customElements.get(i);Qr(s,t)?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".`),ns(s),Zr(s)}})}function si(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():is}function en(o=""){let t=0;return o.startsWith("lumo-")||o.startsWith("material-")?t=1:o.startsWith("vaadin-")&&(t=2),t}function as(o){const t=[];return o.include&&[].concat(o.include).forEach(e=>{const i=si().find(s=>s.moduleId===e);i?t.push(...as(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)},o.styles),t}function tn(o){const t=`${o}-default-theme`,e=si().filter(i=>i.moduleId!==t&&ss(i.themeFor,o)).map(i=>_t(mt({},i),{styles:[...as(i),...i.styles],includePriority:en(i.moduleId)})).sort((i,s)=>s.includePriority-i.includePriority);return e.length>0?e:si().filter(i=>i.moduleId===t)}const Oe=o=>class extends qr(o){constructor(){super(),oi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Di.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||os(this)||Jr(this.getStylesForThis(),e)}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...[e].flat(1/0),...i]:i}static getStylesForThis(){const e=o.__themes||[],i=Object.getPrototypeOf(this.prototype),s=(i?i.constructor.__themes:[])||[];this.__themes=[...e,...s,...tn(this.is)];const r=this.__themes.flatMap(n=>n.styles);return r.filter((n,a)=>a===r.lastIndexOf(n))}};/**
35
+ */const is=[],si=new Set,Ti=new Set;function os(o){return o&&Object.prototype.hasOwnProperty.call(o,"__themes")}function Kr(o){return os(customElements.get(o))}function Gr(o=[]){return[o].flat(1/0).filter(t=>t instanceof ki?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function ss(o,t){return(o||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function rs(o){return o.map(t=>t.cssText).join(`
36
+ `)}const Ct="vaadin-themable-mixin-style";function Jr(o,t){const e=document.createElement("style");e.id=Ct,e.textContent=rs(o),t.content.appendChild(e)}function Xr(o){if(!o.shadowRoot)return;const t=o.constructor;if(o instanceof Re)[...o.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Jo(o.shadowRoot,t.elementStyles);else{const e=o.shadowRoot.getElementById(Ct),i=t.prototype._template;e.textContent=i.content.getElementById(Ct).textContent}}function Zr(o){si.forEach(t=>{const e=t.deref();e instanceof o?Xr(e):e||si.delete(t)})}function ns(o){if(o.prototype instanceof Re)o.elementStyles=o.finalizeStyles(o.styles);else{const t=o.prototype._template;t.content.getElementById(Ct).textContent=rs(o.getStylesForThis())}Ti.forEach(t=>{const e=customElements.get(t);e!==o&&e.prototype instanceof o&&ns(e)})}function Qr(o,t){const e=o.__themes;return!e||!t?!1:e.some(i=>i.styles.some(s=>t.some(r=>r.cssText===s.cssText)))}function I(o,t,e={}){t=Gr(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(o,t,e):is.push({themeFor:o,styles:t,include:e.include,moduleId:e.moduleId}),o&&Ti.forEach(i=>{if(ss(o,i)&&Kr(i)){const s=customElements.get(i);Qr(s,t)?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".`),ns(s),Zr(s)}})}function ri(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():is}function en(o=""){let t=0;return o.startsWith("lumo-")||o.startsWith("material-")?t=1:o.startsWith("vaadin-")&&(t=2),t}function as(o){const t=[];return o.include&&[].concat(o.include).forEach(e=>{const i=ri().find(s=>s.moduleId===e);i?t.push(...as(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)},o.styles),t}function tn(o){const t=`${o}-default-theme`,e=ri().filter(i=>i.moduleId!==t&&ss(i.themeFor,o)).map(i=>gt(_t({},i),{styles:[...as(i),...i.styles],includePriority:en(i.moduleId)})).sort((i,s)=>s.includePriority-i.includePriority);return e.length>0?e:ri().filter(i=>i.moduleId===t)}const Ie=o=>class extends qr(o){constructor(){super(),si.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Ti.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||os(this)||Jr(this.getStylesForThis(),e)}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...[e].flat(1/0),...i]:i}static getStylesForThis(){const e=o.__themes||[],i=Object.getPrototypeOf(this.prototype),s=(i?i.constructor.__themes:[])||[];this.__themes=[...e,...s,...tn(this.is)];const r=this.__themes.flatMap(n=>n.styles);return r.filter((n,a)=>a===r.lastIndexOf(n))}};/**
37
37
  * @license
38
38
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
39
39
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
40
40
  */const on=(o,...t)=>{const e=document.createElement("style");e.id=o,e.textContent=t.map(i=>i.toString()).join(`
41
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},Ue=(o,...t)=>{on(`lumo-${o}`,t)};/**
41
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},We=(o,...t)=>{on(`lumo-${o}`,t)};/**
42
42
  * @license
43
43
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
44
44
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -57,7 +57,7 @@
57
57
  /* For backwards compatibility */
58
58
  --lumo-icon-size: var(--lumo-icon-size-m);
59
59
  }
60
- `;Ue("sizing-props",sn);/**
60
+ `;We("sizing-props",sn);/**
61
61
  * @license
62
62
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
63
63
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -84,7 +84,7 @@
84
84
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
85
85
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
86
86
  }
87
- `;Ue("spacing-props",rn);/**
87
+ `;We("spacing-props",rn);/**
88
88
  * @license
89
89
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
90
90
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -188,7 +188,7 @@
188
188
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
189
189
  --vaadin-input-field-value-font-weight: 500;
190
190
  }
191
- `;Ue("style-props",nn);/**
191
+ `;We("style-props",nn);/**
192
192
  * @license
193
193
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
194
194
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -277,7 +277,7 @@
277
277
  --lumo-disabled-text-color: GrayText;
278
278
  }
279
279
  }
280
- `;Ue("color-props",an);const ln=S`
280
+ `;We("color-props",an);const ln=S`
281
281
  [theme~='dark'] {
282
282
  /* Base (background) */
283
283
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -511,7 +511,7 @@
511
511
  border-left: none;
512
512
  border-right: 2px solid var(--lumo-contrast-30pct);
513
513
  }
514
- `;I("",dn,{moduleId:"lumo-typography"});Ue("typography-props",cn);/**
514
+ `;I("",dn,{moduleId:"lumo-typography"});We("typography-props",cn);/**
515
515
  * @license
516
516
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
517
517
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1553,7 +1553,7 @@
1553
1553
  --lumo-icons-upload: '\\ea29';
1554
1554
  --lumo-icons-user: '\\ea2a';
1555
1555
  }
1556
- `;Ue("font-icons",fn);/**
1556
+ `;We("font-icons",fn);/**
1557
1557
  * @license
1558
1558
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1559
1559
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1933,7 +1933,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1933
1933
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1934
1934
  Code distributed by Google as part of the polymer project is also
1935
1935
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1936
- */let bn=/(url\()([^)]*)(\))/g,vn=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,gt,oe;function ot(o,t){if(o&&vn.test(o)||o==="//")return o;if(gt===void 0){gt=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",gt=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),gt)try{return new URL(o,t).href}catch(e){return o}return oe||(oe=document.implementation.createHTMLDocument("temp"),oe.base=oe.createElement("base"),oe.head.appendChild(oe.base),oe.anchor=oe.createElement("a"),oe.body.appendChild(oe.anchor)),oe.base.href=t,oe.anchor.href=o,oe.anchor.href||o}function Ti(o,t){return o.replace(bn,function(e,i,s,r){return i+"'"+ot(s.replace(/["']/g,""),t)+"'"+r})}function Mi(o){return o.substring(0,o.lastIndexOf("/")+1)}/**
1936
+ */let bn=/(url\()([^)]*)(\))/g,vn=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,bt,oe;function st(o,t){if(o&&vn.test(o)||o==="//")return o;if(bt===void 0){bt=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",bt=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),bt)try{return new URL(o,t).href}catch(e){return o}return oe||(oe=document.implementation.createHTMLDocument("temp"),oe.base=oe.createElement("base"),oe.head.appendChild(oe.base),oe.anchor=oe.createElement("a"),oe.body.appendChild(oe.anchor)),oe.base.href=t,oe.anchor.href=o,oe.anchor.href||o}function Mi(o,t){return o.replace(bn,function(e,i,s,r){return i+"'"+st(s.replace(/["']/g,""),t)+"'"+r})}function Oi(o){return o.substring(0,o.lastIndexOf("/")+1)}/**
1937
1937
  @license
1938
1938
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1939
1939
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1941,7 +1941,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1941
1941
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1942
1942
  Code distributed by Google as part of the polymer project is also
1943
1943
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1944
- */const fs=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const yn=fs&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const o=new CSSStyleSheet;o.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[o],t.shadowRoot.adoptedStyleSheets[0]===o}catch(o){return!1}})();let xn=window.Polymer&&window.Polymer.rootPath||Mi(document.baseURI||window.location.href),Ct=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Pt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,wn=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ms=window.Polymer&&window.Polymer.legacyOptimizations||!1,_s=window.Polymer&&window.Polymer.legacyWarnings||!1,En=window.Polymer&&window.Polymer.syncInitialRender||!1,ri=window.Polymer&&window.Polymer.legacyUndefined||!1,Sn=window.Polymer&&window.Polymer.orderedComputed||!1,lo=window.Polymer&&window.Polymer.removeNestedTemplates||!1,An=window.Polymer&&window.Polymer.fastDomIf||!1,co=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Cn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1944
+ */const fs=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const yn=fs&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const o=new CSSStyleSheet;o.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[o],t.shadowRoot.adoptedStyleSheets[0]===o}catch(o){return!1}})();let xn=window.Polymer&&window.Polymer.rootPath||Oi(document.baseURI||window.location.href),Pt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let kt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,wn=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ms=window.Polymer&&window.Polymer.legacyOptimizations||!1,_s=window.Polymer&&window.Polymer.legacyWarnings||!1,En=window.Polymer&&window.Polymer.syncInitialRender||!1,ni=window.Polymer&&window.Polymer.legacyUndefined||!1,Sn=window.Polymer&&window.Polymer.orderedComputed||!1,lo=window.Polymer&&window.Polymer.removeNestedTemplates||!1,An=window.Polymer&&window.Polymer.fastDomIf||!1,co=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Cn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1945
1945
  @license
1946
1946
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1947
1947
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1949,7 +1949,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1949
1949
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1950
1950
  Code distributed by Google as part of the polymer project is also
1951
1951
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1952
- */let Pn=0;const Y=function(o){let t=o.__mixinApplications;t||(t=new WeakMap,o.__mixinApplications=t);let e=Pn++;function i(s){let r=s.__mixinSet;if(r&&r[e])return s;let n=t,a=n.get(s);if(!a){a=o(s),n.set(s,a);let l=Object.create(a.__mixinSet||r||null);l[e]=!0,a.__mixinSet=l}return a}return i};/**
1952
+ */let Pn=0;const $=function(o){let t=o.__mixinApplications;t||(t=new WeakMap,o.__mixinApplications=t);let e=Pn++;function i(s){let r=s.__mixinSet;if(r&&r[e])return s;let n=t,a=n.get(s);if(!a){a=o(s),n.set(s,a);let l=Object.create(a.__mixinSet||r||null);l[e]=!0,a.__mixinSet=l}return a}return i};/**
1953
1953
  @license
1954
1954
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1955
1955
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1957,7 +1957,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1957
1957
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1958
1958
  Code distributed by Google as part of the polymer project is also
1959
1959
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1960
- */let Oi={},gs={};function uo(o,t){Oi[o]=gs[o.toLowerCase()]=t}function ho(o){return Oi[o]||gs[o.toLowerCase()]}function kn(o){o.querySelector("style")&&console.warn("dom-module %s has style outside template",o.id)}class at extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=ho(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,s){e!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=ot(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Mi(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(Pt&&ho(t)!==void 0)throw uo(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,uo(t,this),kn(this)}}}at.prototype.modules=Oi;customElements.define("dom-module",at);/**
1960
+ */let Ii={},gs={};function uo(o,t){Ii[o]=gs[o.toLowerCase()]=t}function ho(o){return Ii[o]||gs[o.toLowerCase()]}function kn(o){o.querySelector("style")&&console.warn("dom-module %s has style outside template",o.id)}class lt extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=ho(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,s){e!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=st(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Oi(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(kt&&ho(t)!==void 0)throw uo(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,uo(t,this),kn(this)}}}lt.prototype.modules=Ii;customElements.define("dom-module",lt);/**
1961
1961
  @license
1962
1962
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1963
1963
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1965,7 +1965,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1965
1965
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1966
1966
  Code distributed by Google as part of the polymer project is also
1967
1967
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1968
- */const Dn="link[rel=import][type~=css]",Tn="include",po="shady-unscoped";function bs(o){return at.import(o)}function fo(o){let t=o.body?o.body:o;const e=Ti(t.textContent,o.baseURI),i=document.createElement("style");return i.textContent=e,i}function Mn(o){const t=o.trim().split(/\s+/),e=[];for(let i=0;i<t.length;i++)e.push(...On(t[i]));return e}function On(o){const t=bs(o);if(!t)return console.warn("Could not find style data in module named",o),[];if(t._styles===void 0){const e=[];e.push(...ys(t));const i=t.querySelector("template");i&&e.push(...vs(i,t.assetpath)),t._styles=e}return t._styles}function vs(o,t){if(!o._styles){const e=[],i=o.content.querySelectorAll("style");for(let s=0;s<i.length;s++){let r=i[s],n=r.getAttribute(Tn);n&&e.push(...Mn(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(r.textContent=Ti(r.textContent,t)),e.push(r)}o._styles=e}return o._styles}function In(o){let t=bs(o);return t?ys(t):[]}function ys(o){const t=[],e=o.querySelectorAll(Dn);for(let i=0;i<e.length;i++){let s=e[i];if(s.import){const r=s.import,n=s.hasAttribute(po);if(n&&!r._unscopedStyle){const a=fo(r);a.setAttribute(po,""),r._unscopedStyle=a}else r._style||(r._style=fo(r));t.push(n?r._unscopedStyle:r._style)}}return t}/**
1968
+ */const Dn="link[rel=import][type~=css]",Tn="include",po="shady-unscoped";function bs(o){return lt.import(o)}function fo(o){let t=o.body?o.body:o;const e=Mi(t.textContent,o.baseURI),i=document.createElement("style");return i.textContent=e,i}function Mn(o){const t=o.trim().split(/\s+/),e=[];for(let i=0;i<t.length;i++)e.push(...On(t[i]));return e}function On(o){const t=bs(o);if(!t)return console.warn("Could not find style data in module named",o),[];if(t._styles===void 0){const e=[];e.push(...ys(t));const i=t.querySelector("template");i&&e.push(...vs(i,t.assetpath)),t._styles=e}return t._styles}function vs(o,t){if(!o._styles){const e=[],i=o.content.querySelectorAll("style");for(let s=0;s<i.length;s++){let r=i[s],n=r.getAttribute(Tn);n&&e.push(...Mn(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(r.textContent=Mi(r.textContent,t)),e.push(r)}o._styles=e}return o._styles}function In(o){let t=bs(o);return t?ys(t):[]}function ys(o){const t=[],e=o.querySelectorAll(Dn);for(let i=0;i<e.length;i++){let s=e[i];if(s.import){const r=s.import,n=s.hasAttribute(po);if(n&&!r._unscopedStyle){const a=fo(r);a.setAttribute(po,""),r._unscopedStyle=a}else r._style||(r._style=fo(r));t.push(n?r._unscopedStyle:r._style)}}return t}/**
1969
1969
  @license
1970
1970
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1971
1971
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1981,7 +1981,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1981
1981
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1982
1982
  Code distributed by Google as part of the polymer project is also
1983
1983
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1984
- */function ni(o){return o.indexOf(".")>=0}function Ie(o){let t=o.indexOf(".");return t===-1?o:o.slice(0,t)}function xs(o,t){return o.indexOf(t+".")===0}function lt(o,t){return t.indexOf(o+".")===0}function ct(o,t,e){return t+e.slice(o.length)}function Fn(o,t){return o===t||xs(o,t)||lt(o,t)}function Qe(o){if(Array.isArray(o)){let t=[];for(let e=0;e<o.length;e++){let i=o[e].toString().split(".");for(let s=0;s<i.length;s++)t.push(i[s])}return t.join(".")}else return o}function ws(o){return Array.isArray(o)?Qe(o).split("."):o.toString().split(".")}function ee(o,t,e){let i=o,s=ws(t);for(let r=0;r<s.length;r++){if(!i)return;let n=s[r];i=i[n]}return e&&(e.path=s.join(".")),i}function mo(o,t,e){let i=o,s=ws(t),r=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(i=i[a],!i)return}i[r]=e}else i[t]=e;return s.join(".")}/**
1984
+ */function ai(o){return o.indexOf(".")>=0}function Fe(o){let t=o.indexOf(".");return t===-1?o:o.slice(0,t)}function xs(o,t){return o.indexOf(t+".")===0}function ct(o,t){return t.indexOf(o+".")===0}function dt(o,t,e){return t+e.slice(o.length)}function Fn(o,t){return o===t||xs(o,t)||ct(o,t)}function et(o){if(Array.isArray(o)){let t=[];for(let e=0;e<o.length;e++){let i=o[e].toString().split(".");for(let s=0;s<i.length;s++)t.push(i[s])}return t.join(".")}else return o}function ws(o){return Array.isArray(o)?et(o).split("."):o.toString().split(".")}function ee(o,t,e){let i=o,s=ws(t);for(let r=0;r<s.length;r++){if(!i)return;let n=s[r];i=i[n]}return e&&(e.path=s.join(".")),i}function mo(o,t,e){let i=o,s=ws(t),r=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(i=i[a],!i)return}i[r]=e}else i[t]=e;return s.join(".")}/**
1985
1985
  @license
1986
1986
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1987
1987
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1989,7 +1989,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1989
1989
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1990
1990
  Code distributed by Google as part of the polymer project is also
1991
1991
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1992
- */const kt={},Nn=/-[a-z]/g,zn=/([A-Z])/g;function Es(o){return kt[o]||(kt[o]=o.indexOf("-")<0?o:o.replace(Nn,t=>t[1].toUpperCase()))}function It(o){return kt[o]||(kt[o]=o.replace(zn,"-$1").toLowerCase())}/**
1992
+ */const Dt={},Nn=/-[a-z]/g,zn=/([A-Z])/g;function Es(o){return Dt[o]||(Dt[o]=o.indexOf("-")<0?o:o.replace(Nn,t=>t[1].toUpperCase()))}function Ft(o){return Dt[o]||(Dt[o]=o.replace(zn,"-$1").toLowerCase())}/**
1993
1993
  @license
1994
1994
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1995
1995
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1997,7 +1997,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1997
1997
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1998
1998
  Code distributed by Google as part of the polymer project is also
1999
1999
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2000
- */let Ln=0,Ss=0,Re=[],Rn=0,ai=!1,As=document.createTextNode("");new window.MutationObserver(Bn).observe(As,{characterData:!0});function Bn(){ai=!1;const o=Re.length;for(let t=0;t<o;t++){let e=Re[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}Re.splice(0,o),Ss+=o}const Hn={after(o){return{run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t)}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o)}},Cs={run(o){return ai||(ai=!0,As.textContent=Rn++),Re.push(o),Ln++},cancel(o){const t=o-Ss;if(t>=0){if(!Re[t])throw new Error("invalid async handle: "+o);Re[t]=null}}};/**
2000
+ */let Ln=0,Ss=0,Be=[],Rn=0,li=!1,As=document.createTextNode("");new window.MutationObserver(Bn).observe(As,{characterData:!0});function Bn(){li=!1;const o=Be.length;for(let t=0;t<o;t++){let e=Be[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}Be.splice(0,o),Ss+=o}const Hn={after(o){return{run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t)}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o)}},Cs={run(o){return li||(li=!0,As.textContent=Rn++),Be.push(o),Ln++},cancel(o){const t=o-Ss;if(t>=0){if(!Be[t])throw new Error("invalid async handle: "+o);Be[t]=null}}};/**
2001
2001
  @license
2002
2002
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2003
2003
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2005,7 +2005,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2005
2005
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2006
2006
  Code distributed by Google as part of the polymer project is also
2007
2007
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2008
- */const Yn=Cs,Ps=Y(o=>{class t extends o{static createProperties(i){const s=this.prototype;for(let r in i)r in s||s._createPropertyAccessor(r)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,s){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,s))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[i];return s||(s=this.constructor.attributeNameForProperty(i),this.__dataAttributes[s]=i),s}_definePropertyAccessor(i,s){Object.defineProperty(this,i,{get(){return this.__data[i]},set:s?function(){}:function(r){this._setPendingProperty(i,r,!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,s){this._setPendingProperty(i,s)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,s,r){let n=this.__data[i],a=this._shouldPropertyChange(i,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=s,this.__dataPending[i]=s),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Yn.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,s=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(i,s,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,s,r)),this.__dataCounter--}_shouldPropertiesChange(i,s,r){return!!s}_propertiesChanged(i,s,r){}_shouldPropertyChange(i,s,r){return r!==s&&(r===r||s===s)}attributeChangedCallback(i,s,r,n){s!==r&&this._attributeToProperty(i,r),super.attributeChangedCallback&&super.attributeChangedCallback(i,s,r,n)}_attributeToProperty(i,s,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(s,r||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,s,r){this.__serializing=!0,r=arguments.length<3?this[i]:r,this._valueToNodeAttribute(this,r,s||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,s,r){const n=this._serializeValue(s);(r==="class"||r==="name"||r==="slot")&&(i=W(i)),n===void 0?i.removeAttribute(r):i.setAttribute(r,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,s){switch(s){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return t});/**
2008
+ */const $n=Cs,Ps=$(o=>{class t extends o{static createProperties(i){const s=this.prototype;for(let r in i)r in s||s._createPropertyAccessor(r)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,s){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,s))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[i];return s||(s=this.constructor.attributeNameForProperty(i),this.__dataAttributes[s]=i),s}_definePropertyAccessor(i,s){Object.defineProperty(this,i,{get(){return this.__data[i]},set:s?function(){}:function(r){this._setPendingProperty(i,r,!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,s){this._setPendingProperty(i,s)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,s,r){let n=this.__data[i],a=this._shouldPropertyChange(i,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=s,this.__dataPending[i]=s),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,$n.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,s=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(i,s,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,s,r)),this.__dataCounter--}_shouldPropertiesChange(i,s,r){return!!s}_propertiesChanged(i,s,r){}_shouldPropertyChange(i,s,r){return r!==s&&(r===r||s===s)}attributeChangedCallback(i,s,r,n){s!==r&&this._attributeToProperty(i,r),super.attributeChangedCallback&&super.attributeChangedCallback(i,s,r,n)}_attributeToProperty(i,s,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(s,r||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,s,r){this.__serializing=!0,r=arguments.length<3?this[i]:r,this._valueToNodeAttribute(this,r,s||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,s,r){const n=this._serializeValue(s);(r==="class"||r==="name"||r==="slot")&&(i=W(i)),n===void 0?i.removeAttribute(r):i.setAttribute(r,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,s){switch(s){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return t});/**
2009
2009
  @license
2010
2010
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2011
2011
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2013,7 +2013,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2013
2013
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2014
2014
  Code distributed by Google as part of the polymer project is also
2015
2015
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2016
- */const ks={};let bt=HTMLElement.prototype;for(;bt;){let o=Object.getOwnPropertyNames(bt);for(let t=0;t<o.length;t++)ks[o[t]]=!0;bt=Object.getPrototypeOf(bt)}const $n=window.trustedTypes?o=>trustedTypes.isHTML(o)||trustedTypes.isScript(o)||trustedTypes.isScriptURL(o):()=>!1;function jn(o,t){if(!ks[t]){let e=o[t];e!==void 0&&(o.__data?o._setPendingProperty(t,e):(o.__dataProto?o.hasOwnProperty(JSCompiler_renameProperty("__dataProto",o))||(o.__dataProto=Object.create(o.__dataProto)):o.__dataProto={},o.__dataProto[t]=e))}}const Vn=Y(o=>{const t=Ps(o);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let r=0;r<s.length;r++)this.prototype._createPropertyAccessor(Es(s[r]))}static attributeNameForProperty(s){return It(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let r in s)this._setProperty(r,s[r])}_ensureAttribute(s,r){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,r,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if($n(s))return s;try{return JSON.stringify(s)}catch(r){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,r){let n;switch(r){case Object:try{n=JSON.parse(s)}catch(a){n=s}break;case Array:try{n=JSON.parse(s)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,r);break}return n}_definePropertyAccessor(s,r){jn(this,s),super._definePropertyAccessor(s,r)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return e});/**
2016
+ */const ks={};let vt=HTMLElement.prototype;for(;vt;){let o=Object.getOwnPropertyNames(vt);for(let t=0;t<o.length;t++)ks[o[t]]=!0;vt=Object.getPrototypeOf(vt)}const Yn=window.trustedTypes?o=>trustedTypes.isHTML(o)||trustedTypes.isScript(o)||trustedTypes.isScriptURL(o):()=>!1;function jn(o,t){if(!ks[t]){let e=o[t];e!==void 0&&(o.__data?o._setPendingProperty(t,e):(o.__dataProto?o.hasOwnProperty(JSCompiler_renameProperty("__dataProto",o))||(o.__dataProto=Object.create(o.__dataProto)):o.__dataProto={},o.__dataProto[t]=e))}}const Vn=$(o=>{const t=Ps(o);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let r=0;r<s.length;r++)this.prototype._createPropertyAccessor(Es(s[r]))}static attributeNameForProperty(s){return Ft(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let r in s)this._setProperty(r,s[r])}_ensureAttribute(s,r){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,r,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(Yn(s))return s;try{return JSON.stringify(s)}catch(r){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,r){let n;switch(r){case Object:try{n=JSON.parse(s)}catch(a){n=s}break;case Array:try{n=JSON.parse(s)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,r);break}return n}_definePropertyAccessor(s,r){jn(this,s),super._definePropertyAccessor(s,r)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return e});/**
2017
2017
  @license
2018
2018
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2019
2019
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2021,7 +2021,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2021
2021
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2022
2022
  Code distributed by Google as part of the polymer project is also
2023
2023
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2024
- */const Un={"dom-if":!0,"dom-repeat":!0};let _o=!1,go=!1;function Wn(){if(!_o){_o=!0;const o=document.createElement("textarea");o.placeholder="a",go=o.placeholder===o.textContent}return go}function qn(o){Wn()&&o.localName==="textarea"&&o.placeholder&&o.placeholder===o.textContent&&(o.textContent=null)}const Kn=(()=>{const o=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,i)=>{const s=e.getAttribute(i);if(o&&i.startsWith("on-")){t.setAttribute(i,o.createScript(s,i));return}t.setAttribute(i,s)}})();function Gn(o){let t=o.getAttribute("is");if(t&&Un[t]){let e=o;for(e.removeAttribute("is"),o=e.ownerDocument.createElement(t),e.parentNode.replaceChild(o,e),o.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];Kn(o,e,i),e.removeAttribute(i)}}return o}function Ds(o,t){let e=t.parentInfo&&Ds(o,t.parentInfo);if(e){for(let i=e.firstChild,s=0;i;i=i.nextSibling)if(t.parentIndex===s++)return i}else return o}function Jn(o,t,e,i){i.id&&(t[i.id]=e)}function Xn(o,t,e){if(e.events&&e.events.length)for(let i=0,s=e.events,r;i<s.length&&(r=s[i]);i++)o._addMethodEventListenerToNode(t,r.name,r.value,o)}function Zn(o,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i)}function Qn(o,t,e){return o=o._methodHost||o,function(s){o[e]?o[e](s,s.detail):console.warn("listener method `"+e+"` not defined")}}const ea=Y(o=>{class t extends o{static _parseTemplate(i,s){if(!i._templateInfo){let r=i._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!s,r.stripWhiteSpace=s&&s.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,r,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,s,r){return this._parseTemplateNode(i.content,s,r)}static _parseTemplateNode(i,s,r){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,r)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),qn(a),a.firstChild&&this._parseTemplateChildNodes(a,s,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,r)||n),n||r.noted}static _parseTemplateChildNodes(i,s,r){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=Gn(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(s.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let d={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,s,d)&&(d.infoIndex=s.nodeInfoList.push(d)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(i,s,r){let n=i,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,s,r){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(i,s,r,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(i,s,r,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(i){let s=i._templateInfo;return s&&s.content||i.content}_stampTemplate(i,s){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),s=s||this.constructor._parseTemplate(i);let r=s.nodeInfoList,n=s.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let d=0,u=r.length,h;d<u&&(h=r[d]);d++){let p=l[d]=Ds(a,h);Jn(this,a.$,p,h),Zn(this,p,h,s),Xn(this,p,h)}return a=a,a}_addMethodEventListenerToNode(i,s,r,n){n=n||i;let a=Qn(n,s,r);return this._addEventListenerToNode(i,s,a),a}_addEventListenerToNode(i,s,r){i.addEventListener(s,r)}_removeEventListenerFromNode(i,s,r){i.removeEventListener(s,r)}}return t});/**
2024
+ */const Un={"dom-if":!0,"dom-repeat":!0};let _o=!1,go=!1;function Wn(){if(!_o){_o=!0;const o=document.createElement("textarea");o.placeholder="a",go=o.placeholder===o.textContent}return go}function qn(o){Wn()&&o.localName==="textarea"&&o.placeholder&&o.placeholder===o.textContent&&(o.textContent=null)}const Kn=(()=>{const o=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,i)=>{const s=e.getAttribute(i);if(o&&i.startsWith("on-")){t.setAttribute(i,o.createScript(s,i));return}t.setAttribute(i,s)}})();function Gn(o){let t=o.getAttribute("is");if(t&&Un[t]){let e=o;for(e.removeAttribute("is"),o=e.ownerDocument.createElement(t),e.parentNode.replaceChild(o,e),o.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];Kn(o,e,i),e.removeAttribute(i)}}return o}function Ds(o,t){let e=t.parentInfo&&Ds(o,t.parentInfo);if(e){for(let i=e.firstChild,s=0;i;i=i.nextSibling)if(t.parentIndex===s++)return i}else return o}function Jn(o,t,e,i){i.id&&(t[i.id]=e)}function Xn(o,t,e){if(e.events&&e.events.length)for(let i=0,s=e.events,r;i<s.length&&(r=s[i]);i++)o._addMethodEventListenerToNode(t,r.name,r.value,o)}function Zn(o,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i)}function Qn(o,t,e){return o=o._methodHost||o,function(s){o[e]?o[e](s,s.detail):console.warn("listener method `"+e+"` not defined")}}const ea=$(o=>{class t extends o{static _parseTemplate(i,s){if(!i._templateInfo){let r=i._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!s,r.stripWhiteSpace=s&&s.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,r,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,s,r){return this._parseTemplateNode(i.content,s,r)}static _parseTemplateNode(i,s,r){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,r)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),qn(a),a.firstChild&&this._parseTemplateChildNodes(a,s,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,r)||n),n||r.noted}static _parseTemplateChildNodes(i,s,r){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=Gn(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(s.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let d={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,s,d)&&(d.infoIndex=s.nodeInfoList.push(d)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(i,s,r){let n=i,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,s,r){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(i,s,r,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(i,s,r,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(i){let s=i._templateInfo;return s&&s.content||i.content}_stampTemplate(i,s){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),s=s||this.constructor._parseTemplate(i);let r=s.nodeInfoList,n=s.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let d=0,u=r.length,h;d<u&&(h=r[d]);d++){let p=l[d]=Ds(a,h);Jn(this,a.$,p,h),Zn(this,p,h,s),Xn(this,p,h)}return a=a,a}_addMethodEventListenerToNode(i,s,r,n){n=n||i;let a=Qn(n,s,r);return this._addEventListenerToNode(i,s,a),a}_addEventListenerToNode(i,s,r){i.addEventListener(s,r)}_removeEventListenerFromNode(i,s,r){i.removeEventListener(s,r)}}return t});/**
2025
2025
  * @fileoverview
2026
2026
  * @suppress {checkPrototypalTypes}
2027
2027
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2031,7 +2031,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2031
2031
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2032
2032
  * Google as part of the polymer project is also subject to an additional IP
2033
2033
  * rights grant found at http://polymer.github.io/PATENTS.txt
2034
- */let dt=0;const ut=[],A={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ts="__computeInfo",ta=/[A-Z]/;function $t(o,t,e){let i=o[t];if(!i)i=o[t]={};else if(!o.hasOwnProperty(t)&&(i=o[t]=Object.create(o[t]),e))for(let s in i){let r=i[s],n=i[s]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return i}function et(o,t,e,i,s,r){if(t){let n=!1;const a=dt++;for(let l in e){let d=s?Ie(l):l,u=t[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==a)&&(!s||Ii(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(o,l,e,i,m.info,s,r),n=!0)}return n}return!1}function ia(o,t,e,i,s,r,n,a){let l=!1,d=n?Ie(i):i,u=t[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==e)&&(!n||Ii(i,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(o,i,s,r,m.info,n,a),l=!0);return l}function Ii(o,t){if(t){let e=t.name;return e==o||!!(t.structured&&xs(e,o))||!!(t.wildcard&&lt(e,o))}else return!0}function bo(o,t,e,i,s){let r=typeof s.method=="string"?o[s.method]:s.method,n=s.property;r?r.call(o,o.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function oa(o,t,e,i,s){let r=o[A.NOTIFY],n,a=dt++;for(let d in t)t[d]&&(r&&ia(o,r,a,d,e,i,s)||s&&sa(o,d,e))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function sa(o,t,e){let i=Ie(t);if(i!==t){let s=It(i)+"-changed";return Ms(o,s,e[t],t),!0}return!1}function Ms(o,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),W(o).dispatchEvent(new CustomEvent(t,{detail:s}))}function ra(o,t,e,i,s,r){let a=(r?Ie(t):t)!=t?t:null,l=a?ee(o,a):o.__data[t];a&&l===void 0&&(l=e[t]),Ms(o,s.eventName,l,a)}function na(o,t,e,i,s){let r,n=o.detail,a=n&&n.path;a?(i=ct(e,i,a),r=n&&n.value):r=o.currentTarget[e],r=s?!r:r,(!t[A.READ_ONLY]||!t[A.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function aa(o,t,e,i,s){let r=o.__data[t];Ct&&(r=Ct(r,s.attrName,"attribute",o)),o._propertyToAttribute(t,s.attrName,r)}function la(o,t,e,i){let s=o[A.COMPUTE];if(s)if(Sn){dt++;const r=da(o),n=[];for(let l in t)vo(l,s,n,r,i);let a;for(;a=n.shift();)Os(o,"",t,e,a)&&vo(a.methodInfo,s,n,r,i);Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),o.__dataPending=null}else{let r=t;for(;et(o,s,r,e,i);)Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),r=o.__dataPending,o.__dataPending=null}}const ca=(o,t,e)=>{let i=0,s=t.length-1,r=-1;for(;i<=s;){const n=i+s>>1,a=e.get(t[n].methodInfo)-e.get(o.methodInfo);if(a<0)i=n+1;else if(a>0)s=n-1;else{r=n;break}}r<0&&(r=s+1),t.splice(r,0,o)},vo=(o,t,e,i,s)=>{const r=s?Ie(o):o,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==dt&&(!s||Ii(o,l.trigger))&&(l.info.lastRun=dt,ca(l.info,e,i))}};function da(o){let t=o.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=o[A.COMPUTE];let{counts:i,ready:s,total:r}=ua(o),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&s.push(d)})}r!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=t}return t}function ua(o){const t=o[Ts],e={},i=o[A.COMPUTE],s=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)t[n]||s.push(n);return{counts:e,ready:s,total:r}}function Os(o,t,e,i,s){let r=li(o,t,e,i,s);if(r===ut)return!1;let n=s.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,r,!0):(o[n]=r,!1)}function ha(o,t,e){let i=o.__dataLinkedPaths;if(i){let s;for(let r in i){let n=i[r];lt(r,t)?(s=ct(r,n,t),o._setPendingPropertyOrPath(s,e,!0,!0)):lt(n,t)&&(s=ct(n,r,t),o._setPendingPropertyOrPath(s,e,!0,!0))}}}function jt(o,t,e,i,s,r,n){e.bindings=e.bindings||[];let a={kind:i,target:s,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),ga(a)){let{event:d,negate:u}=a.parts[0];a.listenerEvent=d||It(s)+"-changed",a.listenerNegate=u}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let u=a.parts[d];u.compoundIndex=d,pa(o,t,a,u,l)}}function pa(o,t,e,i,s){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let r=i.dependencies,n={index:s,binding:e,part:i,evaluator:o};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=Fs(l),l.wildcard=!0),o._addTemplatePropertyEffect(t,l.rootProperty,{fn:fa,info:n,trigger:l})}}}function fa(o,t,e,i,s,r,n){let a=n[s.index],l=s.binding,d=s.part;if(r&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let u=e[t];t=ct(d.source,l.target,t),a._setPendingPropertyOrPath(t,u,!1,!0)&&o._enqueueClient(a)}else{let u=s.evaluator._evaluateBinding(o,d,t,e,i,r);u!==ut&&ma(o,a,l,d,u)}}function ma(o,t,e,i,s){if(s=_a(t,s,e,i),Ct&&(s=Ct(s,e.target,e.kind,t)),e.kind=="attribute")o._valueToNodeAttribute(t,s,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[A.READ_ONLY]||!t[A.READ_ONLY][r])&&t._setPendingProperty(r,s)&&o._enqueueClient(t):o._setUnmanagedPropertyToNode(t,r,s)}}function _a(o,t,e,i){if(e.isCompound){let s=o.__dataCompoundStorage[e.target];s[i.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(t=t==null?"":t),t}function ga(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function ba(o,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let s=0;s<i.length;s++){let r=i[s],n=e[s],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];va(n,d),ya(n,o,d)}n.__dataHost=o}}function va(o,t){if(t.isCompound){let e=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),i=t.parts,s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=i[n].literal;let r=t.target;e[r]=s,t.literal&&t.kind=="property"&&(r==="className"&&(o=W(o)),o[r]=t.literal)}}function ya(o,t,e){if(e.listenerEvent){let i=e.parts[0];o.addEventListener(e.listenerEvent,function(s){na(s,t,e.target,i.source,i.negate)})}}function yo(o,t,e,i,s,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||o._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&o._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function li(o,t,e,i,s){let r=o._methodHost||o,n=r[s.methodName];if(n){let a=o._marshalArgs(s.args,t,e);return a===ut?ut:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const xa=[],Is="(?:[a-zA-Z_$][\\w.:$\\-*]*)",wa="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Ea="(?:'(?:[^'\\\\]|\\\\.)*')",Sa='(?:"(?:[^"\\\\]|\\\\.)*")',Aa="(?:"+Ea+"|"+Sa+")",xo="(?:("+Is+"|"+wa+"|"+Aa+")\\s*)",Ca="(?:"+xo+"(?:,\\s*"+xo+")*)",Pa="(?:\\(\\s*(?:"+Ca+"?)\\)\\s*)",ka="("+Is+"\\s*"+Pa+"?)",Da="(\\[\\[|{{)\\s*",Ta="(?:]]|}})",Ma="(?:(!)\\s*)?",Oa=Da+Ma+ka+Ta,wo=new RegExp(Oa,"g");function Eo(o){let t="";for(let e=0;e<o.length;e++){let i=o[e].literal;t+=i||""}return t}function Vt(o){let t=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:xa};if(t[2].trim()){let s=t[2].replace(/\\,/g,"&comma;").split(",");return Ia(s,i)}else return i}return null}function Ia(o,t){return t.args=o.map(function(e){let i=Fs(e);return i.literal||(t.static=!1),i},this),t}function Fs(o){let t=o.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=Ie(t),e.structured=ni(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function So(o,t,e){let i=ee(o,e);return i===void 0&&(i=t[e]),i}function Ns(o,t,e,i){const s={indexSplices:i};ri&&!o._overrideLegacyUndefined&&(t.splices=s),o.notifyPath(e+".splices",s),o.notifyPath(e+".length",t.length),ri&&!o._overrideLegacyUndefined&&(s.indexSplices=[])}function Ge(o,t,e,i,s,r){Ns(o,t,e,[{index:i,addedCount:s,removed:r,object:t,type:"splice"}])}function Fa(o){return o[0].toUpperCase()+o.substring(1)}const Fi=Y(o=>{const t=ea(Vn(o));class e extends t{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 A}_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(Je.length){let s=Je[Je.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let r=this[A.READ_ONLY];for(let n in s)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,r,n){this._createPropertyAccessor(s,r==A.READ_ONLY);let a=$t(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n)}_removePropertyEffect(s,r,n){let a=$t(this,r,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,r){let n=this[r];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,A.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,A.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,A.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,A.COMPUTE)}_setPendingPropertyOrPath(s,r,n,a){if(a||Ie(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=ee(this,s);if(s=mo(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return ha(this,s,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,r,n);this[s]=r}return!1}_setUnmanagedPropertyToNode(s,r,n){(n!==s[r]||typeof n=="object")&&(r==="className"&&(s=W(s)),s[r]=n)}_setPendingProperty(s,r,n){let a=this.__dataHasPaths&&ni(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,r,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=r:this.__data[s]=r,this.__dataPending[s]=r,(a||this[A.NOTIFY]&&this[A.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,r){this._setPendingProperty(s,r,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let r=0;r<s.length;r++){let n=s[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,r){for(let n in s)(r||!this[A.READ_ONLY]||!this[A.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;la(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),et(this,this[A.REFLECT],r,n,a),et(this,this[A.OBSERVE],r,n,a),l&&oa(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,r,n){this[A.PROPAGATE]&&et(this,this[A.PROPAGATE],s,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,r,n)}_runEffectsForTemplate(s,r,n,a){const l=(d,u)=>{et(this,s.propertyEffects,d,n,u,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,u)};s.runEffects?s.runEffects(l,r,a):l(r,a)}linkPaths(s,r){s=Qe(s),r=Qe(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r}unlinkPaths(s){s=Qe(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,r){let n={path:""},a=ee(this,s,n);Ns(this,a,n.path,r)}get(s,r){return ee(r||this,s)}set(s,r,n){n?mo(n,s,r):(!this[A.READ_ONLY]||!this[A.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,r,!0)&&this._invalidateProperties()}push(s,...r){let n={path:""},a=ee(this,s,n),l=a.length,d=a.push(...r);return r.length&&Ge(this,a,n.path,l,r.length,[]),d}pop(s){let r={path:""},n=ee(this,s,r),a=!!n.length,l=n.pop();return a&&Ge(this,n,r.path,n.length,0,[l]),l}splice(s,r,n,...a){let l={path:""},d=ee(this,s,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let u;return arguments.length===2?u=d.splice(r):u=d.splice(r,n,...a),(a.length||u.length)&&Ge(this,d,l.path,r,a.length,u),u}shift(s){let r={path:""},n=ee(this,s,r),a=!!n.length,l=n.shift();return a&&Ge(this,n,r.path,0,0,[l]),l}unshift(s,...r){let n={path:""},a=ee(this,s,n),l=a.unshift(...r);return r.length&&Ge(this,a,n.path,0,r.length,[]),l}notifyPath(s,r){let n;if(arguments.length==1){let a={path:""};r=ee(this,s,a),n=a.path}else Array.isArray(s)?n=Qe(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,A.READ_ONLY),r&&(this["_set"+Fa(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,r,n){let a={property:s,method:r,dynamicFn:!!n};this._addPropertyEffect(s,A.OBSERVE,{fn:bo,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,A.OBSERVE,{fn:bo,info:a,trigger:{name:r}})}_createMethodObserver(s,r){let n=Vt(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");yo(this,n,A.OBSERVE,li,null,r)}_createNotifyingProperty(s){this._addPropertyEffect(s,A.NOTIFY,{fn:ra,info:{eventName:It(s)+"-changed",property:s}})}_createReflectedProperty(s){let r=this.constructor.attributeNameForProperty(s);r[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,A.REFLECT,{fn:aa,info:{attrName:r}})}_createComputedProperty(s,r,n){let a=Vt(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=yo(this,a,A.COMPUTE,Os,s,n);$t(this,Ts)[s]=l}_marshalArgs(s,r,n){const a=this.__data,l=[];for(let d=0,u=s.length;d<u;d++){let{name:h,structured:p,wildcard:m,value:b,literal:f}=s[d];if(!f)if(m){const g=lt(h,r),y=So(a,n,g?r:h);b={path:g?r:h,value:y,base:g?ee(a,h):y}}else b=p?So(a,n,h):a[h];if(ri&&!this._overrideLegacyUndefined&&b===void 0&&s.length>1)return ut;l[d]=b}return l}static addPropertyEffect(s,r,n){this.prototype._addPropertyEffect(s,r,n)}static createPropertyObserver(s,r,n){this.prototype._createPropertyObserver(s,r,n)}static createMethodObserver(s,r){this.prototype._createMethodObserver(s,r)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,r){this.prototype._createReadOnlyProperty(s,r)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,r,n){this.prototype._createComputedProperty(s,r,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,r){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._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(s,r,n){let a=s.hostProps=s.hostProps||{};a[r]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[r]=l[r]||[]).push(n)}_stampTemplate(s,r){r=r||this._bindTemplate(s,!0),Je.push(this);let n=super._stampTemplate(s,r);if(Je.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=r,ba(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const r=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let d=r.childNodes;for(let u=0;u<d.length;u++){let h=d[u];W(W(h).parentNode).removeChild(h)}}static _parseTemplateNode(s,r,n){let a=t._parseTemplateNode.call(this,s,r,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,r);l&&(s.textContent=Eo(l)||" ",jt(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,r,n,a,l){let d=this._parseBindings(l,r);if(d){let u=a,h="property";ta.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=Eo(d);return p&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(p+=" "+s.getAttribute(a)),s.setAttribute(a,p)),h=="attribute"&&u=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&u==="value"&&s.setAttribute(u,""),s.removeAttribute(u),h==="property"&&(a=Es(a)),jt(this,r,n,h,a,d,p),!0}else return t._parseTemplateNodeAttribute.call(this,s,r,n,a,l)}static _parseTemplateNestedTemplate(s,r,n){let a=t._parseTemplateNestedTemplate.call(this,s,r,n);const l=s.parentNode,d=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";lo&&(u||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let p=d.hostProps;if(An&&u)p&&(r.hostProps=Object.assign(r.hostProps||{},p),lo||(n.parentInfo.noted=!0));else{let m="{";for(let b in p){let f=[{mode:m,source:b,dependencies:[b],hostProp:!0}];jt(this,r,n,"property","_host_"+b,f)}}return a}static _parseBindings(s,r){let n=[],a=0,l;for(;(l=wo.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],u=!!l[2],h=l[3].trim(),p=!1,m="",b=-1;d=="{"&&(b=h.indexOf("::"))>0&&(m=h.substring(b+2),h=h.substring(0,b),p=!0);let f=Vt(h),g=[];if(f){let{args:y,methodName:v}=f;for(let w=0;w<y.length;w++){let C=y[w];C.literal||g.push(C)}let E=r.dynamicFns;(E&&E[v]||f.static)&&(g.push(v),f.dynamicFn=!0)}else g.push(h);n.push({source:h,mode:d,negate:u,customEvent:p,signature:f,dependencies:g,event:m}),a=wo.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,r,n,a,l,d){let u;return r.signature?u=li(s,n,a,l,r.signature):n!=r.source?u=ee(s,r.source):d&&ni(n)?u=ee(s,n):u=s.__data[n],r.negate&&(u=!u),u}}return e}),Je=[];/**
2034
+ */let ut=0;const ht=[],A={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ts="__computeInfo",ta=/[A-Z]/;function jt(o,t,e){let i=o[t];if(!i)i=o[t]={};else if(!o.hasOwnProperty(t)&&(i=o[t]=Object.create(o[t]),e))for(let s in i){let r=i[s],n=i[s]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return i}function tt(o,t,e,i,s,r){if(t){let n=!1;const a=ut++;for(let l in e){let d=s?Fe(l):l,u=t[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==a)&&(!s||Fi(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(o,l,e,i,m.info,s,r),n=!0)}return n}return!1}function ia(o,t,e,i,s,r,n,a){let l=!1,d=n?Fe(i):i,u=t[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==e)&&(!n||Fi(i,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(o,i,s,r,m.info,n,a),l=!0);return l}function Fi(o,t){if(t){let e=t.name;return e==o||!!(t.structured&&xs(e,o))||!!(t.wildcard&&ct(e,o))}else return!0}function bo(o,t,e,i,s){let r=typeof s.method=="string"?o[s.method]:s.method,n=s.property;r?r.call(o,o.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function oa(o,t,e,i,s){let r=o[A.NOTIFY],n,a=ut++;for(let d in t)t[d]&&(r&&ia(o,r,a,d,e,i,s)||s&&sa(o,d,e))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function sa(o,t,e){let i=Fe(t);if(i!==t){let s=Ft(i)+"-changed";return Ms(o,s,e[t],t),!0}return!1}function Ms(o,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),W(o).dispatchEvent(new CustomEvent(t,{detail:s}))}function ra(o,t,e,i,s,r){let a=(r?Fe(t):t)!=t?t:null,l=a?ee(o,a):o.__data[t];a&&l===void 0&&(l=e[t]),Ms(o,s.eventName,l,a)}function na(o,t,e,i,s){let r,n=o.detail,a=n&&n.path;a?(i=dt(e,i,a),r=n&&n.value):r=o.currentTarget[e],r=s?!r:r,(!t[A.READ_ONLY]||!t[A.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function aa(o,t,e,i,s){let r=o.__data[t];Pt&&(r=Pt(r,s.attrName,"attribute",o)),o._propertyToAttribute(t,s.attrName,r)}function la(o,t,e,i){let s=o[A.COMPUTE];if(s)if(Sn){ut++;const r=da(o),n=[];for(let l in t)vo(l,s,n,r,i);let a;for(;a=n.shift();)Os(o,"",t,e,a)&&vo(a.methodInfo,s,n,r,i);Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),o.__dataPending=null}else{let r=t;for(;tt(o,s,r,e,i);)Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),r=o.__dataPending,o.__dataPending=null}}const ca=(o,t,e)=>{let i=0,s=t.length-1,r=-1;for(;i<=s;){const n=i+s>>1,a=e.get(t[n].methodInfo)-e.get(o.methodInfo);if(a<0)i=n+1;else if(a>0)s=n-1;else{r=n;break}}r<0&&(r=s+1),t.splice(r,0,o)},vo=(o,t,e,i,s)=>{const r=s?Fe(o):o,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==ut&&(!s||Fi(o,l.trigger))&&(l.info.lastRun=ut,ca(l.info,e,i))}};function da(o){let t=o.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=o[A.COMPUTE];let{counts:i,ready:s,total:r}=ua(o),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&s.push(d)})}r!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=t}return t}function ua(o){const t=o[Ts],e={},i=o[A.COMPUTE],s=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)t[n]||s.push(n);return{counts:e,ready:s,total:r}}function Os(o,t,e,i,s){let r=ci(o,t,e,i,s);if(r===ht)return!1;let n=s.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,r,!0):(o[n]=r,!1)}function ha(o,t,e){let i=o.__dataLinkedPaths;if(i){let s;for(let r in i){let n=i[r];ct(r,t)?(s=dt(r,n,t),o._setPendingPropertyOrPath(s,e,!0,!0)):ct(n,t)&&(s=dt(n,r,t),o._setPendingPropertyOrPath(s,e,!0,!0))}}}function Vt(o,t,e,i,s,r,n){e.bindings=e.bindings||[];let a={kind:i,target:s,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),ga(a)){let{event:d,negate:u}=a.parts[0];a.listenerEvent=d||Ft(s)+"-changed",a.listenerNegate=u}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let u=a.parts[d];u.compoundIndex=d,pa(o,t,a,u,l)}}function pa(o,t,e,i,s){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let r=i.dependencies,n={index:s,binding:e,part:i,evaluator:o};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=Fs(l),l.wildcard=!0),o._addTemplatePropertyEffect(t,l.rootProperty,{fn:fa,info:n,trigger:l})}}}function fa(o,t,e,i,s,r,n){let a=n[s.index],l=s.binding,d=s.part;if(r&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let u=e[t];t=dt(d.source,l.target,t),a._setPendingPropertyOrPath(t,u,!1,!0)&&o._enqueueClient(a)}else{let u=s.evaluator._evaluateBinding(o,d,t,e,i,r);u!==ht&&ma(o,a,l,d,u)}}function ma(o,t,e,i,s){if(s=_a(t,s,e,i),Pt&&(s=Pt(s,e.target,e.kind,t)),e.kind=="attribute")o._valueToNodeAttribute(t,s,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[A.READ_ONLY]||!t[A.READ_ONLY][r])&&t._setPendingProperty(r,s)&&o._enqueueClient(t):o._setUnmanagedPropertyToNode(t,r,s)}}function _a(o,t,e,i){if(e.isCompound){let s=o.__dataCompoundStorage[e.target];s[i.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(t=t==null?"":t),t}function ga(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function ba(o,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let s=0;s<i.length;s++){let r=i[s],n=e[s],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];va(n,d),ya(n,o,d)}n.__dataHost=o}}function va(o,t){if(t.isCompound){let e=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),i=t.parts,s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=i[n].literal;let r=t.target;e[r]=s,t.literal&&t.kind=="property"&&(r==="className"&&(o=W(o)),o[r]=t.literal)}}function ya(o,t,e){if(e.listenerEvent){let i=e.parts[0];o.addEventListener(e.listenerEvent,function(s){na(s,t,e.target,i.source,i.negate)})}}function yo(o,t,e,i,s,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||o._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&o._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function ci(o,t,e,i,s){let r=o._methodHost||o,n=r[s.methodName];if(n){let a=o._marshalArgs(s.args,t,e);return a===ht?ht:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const xa=[],Is="(?:[a-zA-Z_$][\\w.:$\\-*]*)",wa="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Ea="(?:'(?:[^'\\\\]|\\\\.)*')",Sa='(?:"(?:[^"\\\\]|\\\\.)*")',Aa="(?:"+Ea+"|"+Sa+")",xo="(?:("+Is+"|"+wa+"|"+Aa+")\\s*)",Ca="(?:"+xo+"(?:,\\s*"+xo+")*)",Pa="(?:\\(\\s*(?:"+Ca+"?)\\)\\s*)",ka="("+Is+"\\s*"+Pa+"?)",Da="(\\[\\[|{{)\\s*",Ta="(?:]]|}})",Ma="(?:(!)\\s*)?",Oa=Da+Ma+ka+Ta,wo=new RegExp(Oa,"g");function Eo(o){let t="";for(let e=0;e<o.length;e++){let i=o[e].literal;t+=i||""}return t}function Ut(o){let t=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:xa};if(t[2].trim()){let s=t[2].replace(/\\,/g,"&comma;").split(",");return Ia(s,i)}else return i}return null}function Ia(o,t){return t.args=o.map(function(e){let i=Fs(e);return i.literal||(t.static=!1),i},this),t}function Fs(o){let t=o.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=Fe(t),e.structured=ai(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function So(o,t,e){let i=ee(o,e);return i===void 0&&(i=t[e]),i}function Ns(o,t,e,i){const s={indexSplices:i};ni&&!o._overrideLegacyUndefined&&(t.splices=s),o.notifyPath(e+".splices",s),o.notifyPath(e+".length",t.length),ni&&!o._overrideLegacyUndefined&&(s.indexSplices=[])}function Je(o,t,e,i,s,r){Ns(o,t,e,[{index:i,addedCount:s,removed:r,object:t,type:"splice"}])}function Fa(o){return o[0].toUpperCase()+o.substring(1)}const Ni=$(o=>{const t=ea(Vn(o));class e extends t{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 A}_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(Xe.length){let s=Xe[Xe.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let r=this[A.READ_ONLY];for(let n in s)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,r,n){this._createPropertyAccessor(s,r==A.READ_ONLY);let a=jt(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n)}_removePropertyEffect(s,r,n){let a=jt(this,r,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,r){let n=this[r];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,A.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,A.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,A.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,A.COMPUTE)}_setPendingPropertyOrPath(s,r,n,a){if(a||Fe(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=ee(this,s);if(s=mo(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return ha(this,s,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,r,n);this[s]=r}return!1}_setUnmanagedPropertyToNode(s,r,n){(n!==s[r]||typeof n=="object")&&(r==="className"&&(s=W(s)),s[r]=n)}_setPendingProperty(s,r,n){let a=this.__dataHasPaths&&ai(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,r,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=r:this.__data[s]=r,this.__dataPending[s]=r,(a||this[A.NOTIFY]&&this[A.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,r){this._setPendingProperty(s,r,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let r=0;r<s.length;r++){let n=s[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,r){for(let n in s)(r||!this[A.READ_ONLY]||!this[A.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;la(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),tt(this,this[A.REFLECT],r,n,a),tt(this,this[A.OBSERVE],r,n,a),l&&oa(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,r,n){this[A.PROPAGATE]&&tt(this,this[A.PROPAGATE],s,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,r,n)}_runEffectsForTemplate(s,r,n,a){const l=(d,u)=>{tt(this,s.propertyEffects,d,n,u,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,u)};s.runEffects?s.runEffects(l,r,a):l(r,a)}linkPaths(s,r){s=et(s),r=et(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r}unlinkPaths(s){s=et(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,r){let n={path:""},a=ee(this,s,n);Ns(this,a,n.path,r)}get(s,r){return ee(r||this,s)}set(s,r,n){n?mo(n,s,r):(!this[A.READ_ONLY]||!this[A.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,r,!0)&&this._invalidateProperties()}push(s,...r){let n={path:""},a=ee(this,s,n),l=a.length,d=a.push(...r);return r.length&&Je(this,a,n.path,l,r.length,[]),d}pop(s){let r={path:""},n=ee(this,s,r),a=!!n.length,l=n.pop();return a&&Je(this,n,r.path,n.length,0,[l]),l}splice(s,r,n,...a){let l={path:""},d=ee(this,s,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let u;return arguments.length===2?u=d.splice(r):u=d.splice(r,n,...a),(a.length||u.length)&&Je(this,d,l.path,r,a.length,u),u}shift(s){let r={path:""},n=ee(this,s,r),a=!!n.length,l=n.shift();return a&&Je(this,n,r.path,0,0,[l]),l}unshift(s,...r){let n={path:""},a=ee(this,s,n),l=a.unshift(...r);return r.length&&Je(this,a,n.path,0,r.length,[]),l}notifyPath(s,r){let n;if(arguments.length==1){let a={path:""};r=ee(this,s,a),n=a.path}else Array.isArray(s)?n=et(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,A.READ_ONLY),r&&(this["_set"+Fa(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,r,n){let a={property:s,method:r,dynamicFn:!!n};this._addPropertyEffect(s,A.OBSERVE,{fn:bo,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,A.OBSERVE,{fn:bo,info:a,trigger:{name:r}})}_createMethodObserver(s,r){let n=Ut(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");yo(this,n,A.OBSERVE,ci,null,r)}_createNotifyingProperty(s){this._addPropertyEffect(s,A.NOTIFY,{fn:ra,info:{eventName:Ft(s)+"-changed",property:s}})}_createReflectedProperty(s){let r=this.constructor.attributeNameForProperty(s);r[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,A.REFLECT,{fn:aa,info:{attrName:r}})}_createComputedProperty(s,r,n){let a=Ut(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=yo(this,a,A.COMPUTE,Os,s,n);jt(this,Ts)[s]=l}_marshalArgs(s,r,n){const a=this.__data,l=[];for(let d=0,u=s.length;d<u;d++){let{name:h,structured:p,wildcard:m,value:b,literal:f}=s[d];if(!f)if(m){const g=ct(h,r),y=So(a,n,g?r:h);b={path:g?r:h,value:y,base:g?ee(a,h):y}}else b=p?So(a,n,h):a[h];if(ni&&!this._overrideLegacyUndefined&&b===void 0&&s.length>1)return ht;l[d]=b}return l}static addPropertyEffect(s,r,n){this.prototype._addPropertyEffect(s,r,n)}static createPropertyObserver(s,r,n){this.prototype._createPropertyObserver(s,r,n)}static createMethodObserver(s,r){this.prototype._createMethodObserver(s,r)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,r){this.prototype._createReadOnlyProperty(s,r)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,r,n){this.prototype._createComputedProperty(s,r,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,r){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._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(s,r,n){let a=s.hostProps=s.hostProps||{};a[r]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[r]=l[r]||[]).push(n)}_stampTemplate(s,r){r=r||this._bindTemplate(s,!0),Xe.push(this);let n=super._stampTemplate(s,r);if(Xe.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=r,ba(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const r=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let d=r.childNodes;for(let u=0;u<d.length;u++){let h=d[u];W(W(h).parentNode).removeChild(h)}}static _parseTemplateNode(s,r,n){let a=t._parseTemplateNode.call(this,s,r,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,r);l&&(s.textContent=Eo(l)||" ",Vt(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,r,n,a,l){let d=this._parseBindings(l,r);if(d){let u=a,h="property";ta.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=Eo(d);return p&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(p+=" "+s.getAttribute(a)),s.setAttribute(a,p)),h=="attribute"&&u=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&u==="value"&&s.setAttribute(u,""),s.removeAttribute(u),h==="property"&&(a=Es(a)),Vt(this,r,n,h,a,d,p),!0}else return t._parseTemplateNodeAttribute.call(this,s,r,n,a,l)}static _parseTemplateNestedTemplate(s,r,n){let a=t._parseTemplateNestedTemplate.call(this,s,r,n);const l=s.parentNode,d=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";lo&&(u||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let p=d.hostProps;if(An&&u)p&&(r.hostProps=Object.assign(r.hostProps||{},p),lo||(n.parentInfo.noted=!0));else{let m="{";for(let b in p){let f=[{mode:m,source:b,dependencies:[b],hostProp:!0}];Vt(this,r,n,"property","_host_"+b,f)}}return a}static _parseBindings(s,r){let n=[],a=0,l;for(;(l=wo.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],u=!!l[2],h=l[3].trim(),p=!1,m="",b=-1;d=="{"&&(b=h.indexOf("::"))>0&&(m=h.substring(b+2),h=h.substring(0,b),p=!0);let f=Ut(h),g=[];if(f){let{args:y,methodName:v}=f;for(let w=0;w<y.length;w++){let C=y[w];C.literal||g.push(C)}let E=r.dynamicFns;(E&&E[v]||f.static)&&(g.push(v),f.dynamicFn=!0)}else g.push(h);n.push({source:h,mode:d,negate:u,customEvent:p,signature:f,dependencies:g,event:m}),a=wo.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,r,n,a,l,d){let u;return r.signature?u=ci(s,n,a,l,r.signature):n!=r.source?u=ee(s,r.source):d&&ai(n)?u=ee(s,n):u=s.__data[n],r.negate&&(u=!u),u}}return e}),Xe=[];/**
2035
2035
  @license
2036
2036
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2037
2037
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2047,7 +2047,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2047
2047
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2048
2048
  Code distributed by Google as part of the polymer project is also
2049
2049
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2050
- */function Na(o){const t={};for(let e in o){const i=o[e];t[e]=typeof i=="function"?{type:i}:i}return t}const za=Y(o=>{const t=Ps(o);function e(r){const n=Object.getPrototypeOf(r);return n.prototype instanceof s?n:null}function i(r){if(!r.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",r))){let n=null;if(r.hasOwnProperty(JSCompiler_renameProperty("properties",r))){const a=r.properties;a&&(n=Na(a))}r.__ownProperties=n}return r.__ownProperties}class s extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(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=e(this);this.__properties=Object.assign({},n&&n._properties,i(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
2050
+ */function Na(o){const t={};for(let e in o){const i=o[e];t[e]=typeof i=="function"?{type:i}:i}return t}const za=$(o=>{const t=Ps(o);function e(r){const n=Object.getPrototypeOf(r);return n.prototype instanceof s?n:null}function i(r){if(!r.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",r))){let n=null;if(r.hasOwnProperty(JSCompiler_renameProperty("properties",r))){const a=r.properties;a&&(n=Na(a))}r.__ownProperties=n}return r.__ownProperties}class s extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(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=e(this);this.__properties=Object.assign({},n&&n._properties,i(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
2051
2051
  * @fileoverview
2052
2052
  * @suppress {checkPrototypalTypes}
2053
2053
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2057,7 +2057,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2057
2057
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2058
2058
  * Google as part of the polymer project is also subject to an additional IP
2059
2059
  * rights grant found at http://polymer.github.io/PATENTS.txt
2060
- */const La="3.5.2",Ao=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ra=Y(o=>{const t=za(Fi(o));function e(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 s(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 r(l,d,u,h){if(!Ao){const p=d.content.querySelectorAll("style"),m=vs(d),b=In(u),f=d.content.firstElementChild;for(let y=0;y<b.length;y++){let v=b[y];v.textContent=l._processStyleText(v.textContent,h),d.content.insertBefore(v,f)}let g=0;for(let y=0;y<m.length;y++){let v=m[y],E=p[g];E!==v?(v=v.cloneNode(!0),E.parentNode.insertBefore(v,E)):g++,v.textContent=l._processStyleText(v.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,u),Cn&&Ao&&yn){const p=d.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(b=>{m+=b.textContent,b.parentNode.removeChild(b)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let d=null;if(l&&(!Pt||wn)&&(d=at.import(l,"template"),Pt&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return La}static _finalizeClass(){t._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):ms||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let u in d)s(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=Mi(d.url);else{const u=at.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=xn,this.importPath=this.constructor.importPath;let d=e(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 Ti(d,u)}static _finalizeTemplate(d){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const h=this.importPath,p=h?ot(h):"";r(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=W(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])),En&&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=ot(this.importPath)),ot(d,u)}static _parseTemplateContent(d,u,h){return u.dynamicFns=u.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,u,h)}static _addTemplatePropertyEffect(d,u,h){return _s&&!(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.`),t._addTemplatePropertyEffect.call(this,d,u,h)}}return a});/**
2060
+ */const La="3.5.2",Ao=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ra=$(o=>{const t=za(Ni(o));function e(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 s(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 r(l,d,u,h){if(!Ao){const p=d.content.querySelectorAll("style"),m=vs(d),b=In(u),f=d.content.firstElementChild;for(let y=0;y<b.length;y++){let v=b[y];v.textContent=l._processStyleText(v.textContent,h),d.content.insertBefore(v,f)}let g=0;for(let y=0;y<m.length;y++){let v=m[y],E=p[g];E!==v?(v=v.cloneNode(!0),E.parentNode.insertBefore(v,E)):g++,v.textContent=l._processStyleText(v.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,u),Cn&&Ao&&yn){const p=d.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(b=>{m+=b.textContent,b.parentNode.removeChild(b)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let d=null;if(l&&(!kt||wn)&&(d=lt.import(l,"template"),kt&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return La}static _finalizeClass(){t._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):ms||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let u in d)s(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=Oi(d.url);else{const u=lt.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=xn,this.importPath=this.constructor.importPath;let d=e(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 Mi(d,u)}static _finalizeTemplate(d){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const h=this.importPath,p=h?st(h):"";r(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=W(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])),En&&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=st(this.importPath)),st(d,u)}static _parseTemplateContent(d,u,h){return u.dynamicFns=u.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,u,h)}static _addTemplatePropertyEffect(d,u,h){return _s&&!(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.`),t._addTemplatePropertyEffect.call(this,d,u,h)}}return a});/**
2061
2061
  @license
2062
2062
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2063
2063
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2065,7 +2065,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2065
2065
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2066
2066
  Code distributed by Google as part of the polymer project is also
2067
2067
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2068
- */const Co=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:o=>o});class zs{constructor(t,e){Rs(t,e);const i=e.reduce((s,r,n)=>s+Ls(r)+t[n+1],t[0]);this.value=i.toString()}toString(){return this.value}}function Ls(o){if(o instanceof zs)return o.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${o}`)}function Ba(o){if(o instanceof HTMLTemplateElement)return o.innerHTML;if(o instanceof zs)return Ls(o);throw new Error(`non-template value passed to Polymer's html function: ${o}`)}const Fe=function(t,...e){Rs(t,e);const i=document.createElement("template");let s=e.reduce((r,n,a)=>r+Ba(n)+t[a+1],t[0]);return Co&&(s=Co.createHTML(s)),i.innerHTML=s,i},Rs=(o,t)=>{if(!Array.isArray(o)||!Array.isArray(o.raw)||t.length!==o.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2068
+ */const Co=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:o=>o});class zs{constructor(t,e){Rs(t,e);const i=e.reduce((s,r,n)=>s+Ls(r)+t[n+1],t[0]);this.value=i.toString()}toString(){return this.value}}function Ls(o){if(o instanceof zs)return o.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${o}`)}function Ba(o){if(o instanceof HTMLTemplateElement)return o.innerHTML;if(o instanceof zs)return Ls(o);throw new Error(`non-template value passed to Polymer's html function: ${o}`)}const Ne=function(t,...e){Rs(t,e);const i=document.createElement("template");let s=e.reduce((r,n,a)=>r+Ba(n)+t[a+1],t[0]);return Co&&(s=Co.createHTML(s)),i.innerHTML=s,i},Rs=(o,t)=>{if(!Array.isArray(o)||!Array.isArray(o.raw)||t.length!==o.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2069
2069
  @license
2070
2070
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2071
2071
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2077,11 +2077,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2077
2077
  * @license
2078
2078
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2079
2079
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2080
- */const ue=[];function ci(o,t,e=o.getAttribute("dir")){t?o.setAttribute("dir",t):e!=null&&o.removeAttribute("dir")}function di(){return document.documentElement.getAttribute("dir")}function Ha(){const o=di();ue.forEach(t=>{ci(t,o)})}const Ya=new MutationObserver(Ha);Ya.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ft=o=>class extends o{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(),ci(this,di(),null))}attributeChangedCallback(e,i,s){if(super.attributeChangedCallback(e,i,s),e!=="dir")return;const r=di(),n=s===r&&ue.indexOf(this)===-1,a=!s&&i&&ue.indexOf(this)===-1;n||a?(this.__subscribe(),ci(this,r,s)):s!==r&&i===r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=ue.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,i,s){s==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,s)}_attributeToProperty(e,i,s){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,s)}__subscribe(){ue.includes(this)||ue.push(this)}__unsubscribe(){ue.includes(this)&&ue.splice(ue.indexOf(this),1)}};/**
2080
+ */const ue=[];function di(o,t,e=o.getAttribute("dir")){t?o.setAttribute("dir",t):e!=null&&o.removeAttribute("dir")}function ui(){return document.documentElement.getAttribute("dir")}function Ha(){const o=ui();ue.forEach(t=>{di(t,o)})}const $a=new MutationObserver(Ha);$a.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Nt=o=>class extends o{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,ui(),null))}attributeChangedCallback(e,i,s){if(super.attributeChangedCallback(e,i,s),e!=="dir")return;const r=ui(),n=s===r&&ue.indexOf(this)===-1,a=!s&&i&&ue.indexOf(this)===-1;n||a?(this.__subscribe(),di(this,r,s)):s!==r&&i===r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=ue.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,i,s){s==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,s)}_attributeToProperty(e,i,s){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,s)}__subscribe(){ue.includes(this)||ue.push(this)}__unsubscribe(){ue.includes(this)&&ue.splice(ue.indexOf(this),1)}};/**
2081
2081
  * @license
2082
2082
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2083
2083
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2084
- */const $a=o=>class extends o{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(i=>i.focus&&i.focus())})}};/**
2084
+ */const Ya=o=>class extends o{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(i=>i.focus&&i.focus())})}};/**
2085
2085
  * @license
2086
2086
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2087
2087
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2154,7 +2154,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2154
2154
  * @license
2155
2155
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2156
2156
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2157
- */I("vaadin-input-container",ja,{moduleId:"vaadin-input-container-styles"});class Va extends $a(Oe(Ft(we))){static get is(){return"vaadin-input-container"}static get template(){return Fe`
2157
+ */I("vaadin-input-container",ja,{moduleId:"vaadin-input-container-styles"});class Va extends Ya(Ie(Nt(we))){static get is(){return"vaadin-input-container"}static get template(){return Ne`
2158
2158
  <slot name="prefix"></slot>
2159
2159
  <slot></slot>
2160
2160
  <slot name="suffix"></slot>
@@ -2225,7 +2225,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2225
2225
  * @license
2226
2226
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2227
2227
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2228
- */let Ni=!1;window.addEventListener("keydown",()=>{Ni=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ni=!1},{capture:!0});function ui(){let o=document.activeElement||document.body;for(;o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;return o}function zi(){return Ni}function Wa(o){const t=o.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(o);return e.visibility==="hidden"||e.display==="none"}function qa(o,t){const e=Math.max(o.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function Ka(o,t){const e=[];for(;o.length>0&&t.length>0;)qa(o[0],t[0])?e.push(t.shift()):e.push(o.shift());return e.concat(o,t)}function hi(o){const t=o.length;if(t<2)return o;const e=Math.ceil(t/2),i=hi(o.slice(0,e)),s=hi(o.slice(e));return Ka(i,s)}function Bs(o){return o.matches('[tabindex="-1"]')?!1:o.matches("input, select, textarea, button, object")?o.matches(":not([disabled])"):o.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Ga(o){return o.getRootNode().activeElement===o}function Ja(o){if(!Bs(o))return-1;const t=o.getAttribute("tabindex")||0;return Number(t)}function Hs(o,t){if(o.nodeType!==Node.ELEMENT_NODE||Wa(o))return!1;const e=o,i=Ja(e);let s=i>0;i>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{s=Hs(n,t)||s}),s}function Xa(o){const t=[];return Hs(o,t)?hi(t):t}/**
2228
+ */let zi=!1;window.addEventListener("keydown",()=>{zi=!0},{capture:!0});window.addEventListener("mousedown",()=>{zi=!1},{capture:!0});function hi(){let o=document.activeElement||document.body;for(;o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;return o}function Li(){return zi}function Wa(o){const t=o.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(o);return e.visibility==="hidden"||e.display==="none"}function qa(o,t){const e=Math.max(o.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function Ka(o,t){const e=[];for(;o.length>0&&t.length>0;)qa(o[0],t[0])?e.push(t.shift()):e.push(o.shift());return e.concat(o,t)}function pi(o){const t=o.length;if(t<2)return o;const e=Math.ceil(t/2),i=pi(o.slice(0,e)),s=pi(o.slice(e));return Ka(i,s)}function Bs(o){return o.matches('[tabindex="-1"]')?!1:o.matches("input, select, textarea, button, object")?o.matches(":not([disabled])"):o.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Ga(o){return o.getRootNode().activeElement===o}function Ja(o){if(!Bs(o))return-1;const t=o.getAttribute("tabindex")||0;return Number(t)}function Hs(o,t){if(o.nodeType!==Node.ELEMENT_NODE||Wa(o))return!1;const e=o,i=Ja(e);let s=i>0;i>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{s=Hs(n,t)||s}),s}function Xa(o){const t=[];return Hs(o,t)?pi(t):t}/**
2229
2229
  @license
2230
2230
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2231
2231
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2233,15 +2233,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2233
2233
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2234
2234
  Code distributed by Google as part of the polymer project is also
2235
2235
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2236
- */let pi=!1,Za=[],Ys=[];function Qa(){pi=!0,requestAnimationFrame(function(){pi=!1,el(Za),setTimeout(function(){tl(Ys)})})}function el(o){for(;o.length;)$s(o.shift())}function tl(o){for(let t=0,e=o.length;t<e;t++)$s(o.shift())}function $s(o){const t=o[0],e=o[1],i=o[2];try{e.apply(t,i)}catch(s){setTimeout(()=>{throw s})}}function js(o,t,e){pi||Qa(),Ys.push([o,t,e])}/**
2236
+ */let fi=!1,Za=[],$s=[];function Qa(){fi=!0,requestAnimationFrame(function(){fi=!1,el(Za),setTimeout(function(){tl($s)})})}function el(o){for(;o.length;)Ys(o.shift())}function tl(o){for(let t=0,e=o.length;t<e;t++)Ys(o.shift())}function Ys(o){const t=o[0],e=o[1],i=o[2];try{e.apply(t,i)}catch(s){setTimeout(()=>{throw s})}}function js(o,t,e){fi||Qa(),$s.push([o,t,e])}/**
2237
2237
  * @license
2238
2238
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2239
2239
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2240
- */const Nt=o=>o.test(navigator.userAgent),fi=o=>o.test(navigator.platform),il=o=>o.test(navigator.vendor);Nt(/Android/u);Nt(/Chrome/u)&&il(/Google Inc/u);Nt(/Firefox/u);const ol=fi(/^iPad/u)||fi(/^Mac/u)&&navigator.maxTouchPoints>1,sl=fi(/^iPhone/u),Vs=sl||ol;Nt(/^((?!chrome|android).)*safari/iu);const rl=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(o){return!1}})();/**
2240
+ */const zt=o=>o.test(navigator.userAgent),mi=o=>o.test(navigator.platform),il=o=>o.test(navigator.vendor);zt(/Android/u);zt(/Chrome/u)&&il(/Google Inc/u);zt(/Firefox/u);const ol=mi(/^iPad/u)||mi(/^Mac/u)&&navigator.maxTouchPoints>1,sl=mi(/^iPhone/u),Vs=sl||ol;zt(/^((?!chrome|android).)*safari/iu);const rl=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(o){return!1}})();/**
2241
2241
  * @license
2242
2242
  * Copyright (c) 2017 Anton Korzunov
2243
2243
  * SPDX-License-Identifier: MIT
2244
- */let Ne=new WeakMap,vt=new WeakMap,yt={},Ut=0;const Po=o=>o&&o.nodeType===Node.ELEMENT_NODE,Wt=(...o)=>{console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`)},nl=(o,t)=>Po(o)?t.map(e=>{if(!Po(e))return Wt(e,"is not a valid element"),null;let i=e;for(;i&&i!==o;){if(o.contains(i))return e;i=i.getRootNode().host}return Wt(e,"is not contained inside",o),null}).filter(e=>!!e):(Wt(o,"is not a valid element"),[]),al=(o,t,e,i)=>{const s=nl(t,Array.isArray(o)?o:[o]);yt[e]||(yt[e]=new WeakMap);const r=yt[e],n=[],a=new Set,l=new Set(s),d=h=>{if(!h||a.has(h))return;a.add(h);const p=h.assignedSlot;p&&d(p),d(h.parentNode||h.host)};s.forEach(d);const u=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(b=>{if(!["template","script","style"].includes(b.localName))if(a.has(b))u(b);else{const f=b.getAttribute(i),g=f!==null&&f!=="false",y=(Ne.get(b)||0)+1,v=(r.get(b)||0)+1;Ne.set(b,y),r.set(b,v),n.push(b),y===1&&g&&vt.set(b,!0),v===1&&b.setAttribute(e,"true"),g||b.setAttribute(i,"true")}})};return u(t),a.clear(),Ut+=1,()=>{n.forEach(h=>{const p=Ne.get(h)-1,m=r.get(h)-1;Ne.set(h,p),r.set(h,m),p||(vt.has(h)?vt.delete(h):h.removeAttribute(i)),m||h.removeAttribute(e)}),Ut-=1,Ut||(Ne=new WeakMap,Ne=new WeakMap,vt=new WeakMap,yt={})}},Us=(o,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(o)?o:[o]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),al(i,t,e,"aria-hidden")};/**
2244
+ */let ze=new WeakMap,yt=new WeakMap,xt={},Wt=0;const Po=o=>o&&o.nodeType===Node.ELEMENT_NODE,qt=(...o)=>{console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`)},nl=(o,t)=>Po(o)?t.map(e=>{if(!Po(e))return qt(e,"is not a valid element"),null;let i=e;for(;i&&i!==o;){if(o.contains(i))return e;i=i.getRootNode().host}return qt(e,"is not contained inside",o),null}).filter(e=>!!e):(qt(o,"is not a valid element"),[]),al=(o,t,e,i)=>{const s=nl(t,Array.isArray(o)?o:[o]);xt[e]||(xt[e]=new WeakMap);const r=xt[e],n=[],a=new Set,l=new Set(s),d=h=>{if(!h||a.has(h))return;a.add(h);const p=h.assignedSlot;p&&d(p),d(h.parentNode||h.host)};s.forEach(d);const u=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(b=>{if(!["template","script","style"].includes(b.localName))if(a.has(b))u(b);else{const f=b.getAttribute(i),g=f!==null&&f!=="false",y=(ze.get(b)||0)+1,v=(r.get(b)||0)+1;ze.set(b,y),r.set(b,v),n.push(b),y===1&&g&&yt.set(b,!0),v===1&&b.setAttribute(e,"true"),g||b.setAttribute(i,"true")}})};return u(t),a.clear(),Wt+=1,()=>{n.forEach(h=>{const p=ze.get(h)-1,m=r.get(h)-1;ze.set(h,p),r.set(h,m),p||(yt.has(h)?yt.delete(h):h.removeAttribute(i)),m||h.removeAttribute(e)}),Wt-=1,Wt||(ze=new WeakMap,ze=new WeakMap,yt=new WeakMap,xt={})}},Us=(o,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(o)?o:[o]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),al(i,t,e,"aria-hidden")};/**
2245
2245
  * @license
2246
2246
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2247
2247
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2249,23 +2249,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2249
2249
  * @license
2250
2250
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2251
2251
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2252
- */class cl{saveFocus(t){this.focusNode=t||ui()}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=t?t.preventScroll:!1;ui()===document.body?setTimeout(()=>e.focus({preventScroll:i})):e.focus({preventScroll:i}),this.focusNode=null}}/**
2252
+ */class cl{saveFocus(t){this.focusNode=t||hi()}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=t?t.preventScroll:!1;hi()===document.body?setTimeout(()=>e.focus({preventScroll:i})):e.focus({preventScroll:i}),this.focusNode=null}}/**
2253
2253
  * @license
2254
2254
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2255
2255
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2256
- */const qt=[];class dl{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Xa(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Ga).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");qt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,qt.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(qt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,i=t?-1:1,s=this.__focusedElementIndex,r=(e.length+s+i)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select()}}/**
2256
+ */const Kt=[];class dl{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Xa(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Ga).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Kt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Kt.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Kt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,i=t?-1:1,s=this.__focusedElementIndex,r=(e.length+s+i)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select()}}/**
2257
2257
  * @license
2258
2258
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2259
2259
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2260
- */const We=Y(o=>typeof o.prototype.addController=="function"?o:class extends o{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)}});/**
2260
+ */const qe=$(o=>typeof o.prototype.addController=="function"?o:class extends o{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)}});/**
2261
2261
  * @license
2262
2262
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2263
2263
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2264
- */const ul=o=>class extends We(o){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new ll(this),this.__focusTrapController=new dl(this),this.__focusRestorationController=new cl}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=!zi();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=ui();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let i=e;const s=e.ownerDocument;for(;i&&i!==s&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
2264
+ */const ul=o=>class extends qe(o){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new ll(this),this.__focusTrapController=new dl(this),this.__focusRestorationController=new cl}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=!Li();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=hi();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let i=e;const s=e.ownerDocument;for(;i&&i!==s&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
2265
2265
  * @license
2266
2266
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2267
2267
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2268
- */const Ws=()=>Array.from(document.body.children).filter(o=>o instanceof HTMLElement&&o._hasOverlayStackMixin&&!o.hasAttribute("closing")).sort((o,t)=>o.__zIndex-t.__zIndex||0),mi=()=>Ws().filter(o=>o.$.overlay),hl=o=>o===mi().pop(),pl=o=>class extends o{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return hl(this)}bringToFront(){let e="";const i=Ws().filter(s=>s!==this).pop();i&&(e=i.__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"),mi().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=mi();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
2268
+ */const Ws=()=>Array.from(document.body.children).filter(o=>o instanceof HTMLElement&&o._hasOverlayStackMixin&&!o.hasAttribute("closing")).sort((o,t)=>o.__zIndex-t.__zIndex||0),_i=()=>Ws().filter(o=>o.$.overlay),hl=o=>o===_i().pop(),pl=o=>class extends o{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return hl(this)}bringToFront(){let e="";const i=Ws().filter(s=>s!==this).pop();i&&(e=i.__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"),_i().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=_i();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
2269
2269
  * @license
2270
2270
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2271
2271
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2273,7 +2273,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2273
2273
  * @license
2274
2274
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2275
2275
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2276
- */function ml(o){const t=[];for(;o;){if(o.nodeType===Node.DOCUMENT_NODE){t.push(o);break}if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(o),o=o.host;continue}if(o.assignedSlot){o=o.assignedSlot;continue}o=o.parentNode}return t}function Li(o){return o?new Set(o.split(" ")):new Set}function zt(o){return o?[...o].join(" "):""}function qs(o,t,e){const i=Li(o.getAttribute(t));i.add(e),o.setAttribute(t,zt(i))}function _l(o,t,e){const i=Li(o.getAttribute(t));if(i.delete(e),i.size===0){o.removeAttribute(t);return}o.setAttribute(t,zt(i))}function gl(o){return o.nodeType===Node.TEXT_NODE&&o.textContent.trim()===""}/**
2276
+ */function ml(o){const t=[];for(;o;){if(o.nodeType===Node.DOCUMENT_NODE){t.push(o);break}if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(o),o=o.host;continue}if(o.assignedSlot){o=o.assignedSlot;continue}o=o.parentNode}return t}function Ri(o){return o?new Set(o.split(" ")):new Set}function Lt(o){return o?[...o].join(" "):""}function qs(o,t,e){const i=Ri(o.getAttribute(t));i.add(e),o.setAttribute(t,Lt(i))}function _l(o,t,e){const i=Ri(o.getAttribute(t));if(i.delete(e),i.size===0){o.removeAttribute(t);return}o.setAttribute(t,Lt(i))}function gl(o){return o.nodeType===Node.TEXT_NODE&&o.textContent.trim()===""}/**
2277
2277
  * @license
2278
2278
  * Copyright (c) 2024 Vaadin Ltd.
2279
2279
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2281,7 +2281,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2281
2281
  * @license
2282
2282
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2283
2283
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2284
- */const Kt={start:"top",end:"bottom"},Gt={start:"left",end:"right"},ko=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),vl=o=>class extends o{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=ml(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=bl(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,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,ko.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,ko.observe(i))),e){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(s[r],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 i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const s=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,s),n=!s&&r||s&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Kt,this,i),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Gt,this,r);Object.assign(this.style,l,d),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,i){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,s,r,this.__margins,n,this.noHorizontalOverlap,Gt)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,s,this.__margins,r,this.noVerticalOverlap,Kt)}__shouldAlignStart(e,i,s,r,n,a,l){const d=s-e[a?l.end:l.start]-r[l.end],u=e[a?l.start:l.end]-r[l.start],h=n?d:u,m=h>(n?u:d)||h>i;return n===m}__adjustBottomProperty(e,i,s){let r;if(e===i.end){if(i.end===Kt.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=s-a}this.__oldViewportHeight=n}if(i.end===Gt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=s-a}this.__oldViewportWidth=n}}return r}__calculatePositionInOneDimension(e,i,s,r,n,a){const l=a?r.start:r.end,d=a?r.end:r.start,u=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,u),p=i[a?r.start:r.end]-e[s===a?r.end:r.start],m=h?`${h}px`:`${u+p*(a?-1:1)}px`;return{[l]:m,[d]:""}}};/**
2284
+ */const Gt={start:"top",end:"bottom"},Jt={start:"left",end:"right"},ko=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),vl=o=>class extends o{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=ml(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=bl(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,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,ko.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,ko.observe(i))),e){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(s[r],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 i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const s=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,s),n=!s&&r||s&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Gt,this,i),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Jt,this,r);Object.assign(this.style,l,d),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,i){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,s,r,this.__margins,n,this.noHorizontalOverlap,Jt)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,s,this.__margins,r,this.noVerticalOverlap,Gt)}__shouldAlignStart(e,i,s,r,n,a,l){const d=s-e[a?l.end:l.start]-r[l.end],u=e[a?l.start:l.end]-r[l.start],h=n?d:u,m=h>(n?u:d)||h>i;return n===m}__adjustBottomProperty(e,i,s){let r;if(e===i.end){if(i.end===Gt.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=s-a}this.__oldViewportHeight=n}if(i.end===Jt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=s-a}this.__oldViewportWidth=n}}return r}__calculatePositionInOneDimension(e,i,s,r,n,a){const l=a?r.start:r.end,d=a?r.end:r.start,u=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,u),p=i[a?r.start:r.end]-e[s===a?r.end:r.start],m=h?`${h}px`:`${u+p*(a?-1:1)}px`;return{[l]:m,[d]:""}}};/**
2285
2285
  * @license
2286
2286
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2287
2287
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2308,14 +2308,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2308
2308
  * @license
2309
2309
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2310
2310
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2311
- */I("vaadin-date-picker-overlay",[Ua,xl],{moduleId:"vaadin-date-picker-overlay-styles"});class wl extends yl(Ft(Oe(we))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Fe`
2311
+ */I("vaadin-date-picker-overlay",[Ua,xl],{moduleId:"vaadin-date-picker-overlay-styles"});class wl extends yl(Nt(Ie(we))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ne`
2312
2312
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2313
2313
  <div part="overlay" id="overlay">
2314
2314
  <div part="content" id="content">
2315
2315
  <slot></slot>
2316
2316
  </div>
2317
2317
  </div>
2318
- `}}ce(wl);const El=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Et=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Sl(){function o(){return!0}return Ks(o)}function Al(){try{return Cl()?!0:Pl()?Et?!kl():!Sl():!1}catch(o){return!1}}function Cl(){return localStorage.getItem("vaadin.developmentmode.force")}function Pl(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function kl(){return!!(Et&&Object.keys(Et).map(t=>Et[t]).filter(t=>t.productionMode).length>0)}function Ks(o,t){if(typeof o!="function")return;const e=El.exec(o.toString());if(e)try{o=new Function(e[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return o(t)}window.Vaadin=window.Vaadin||{};const Do=function(o,t){if(window.Vaadin.developmentMode)return Ks(o,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Al());function Dl(){/*! vaadin-dev-mode:start
2318
+ `}}ce(wl);const El=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,St=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Sl(){function o(){return!0}return Ks(o)}function Al(){try{return Cl()?!0:Pl()?St?!kl():!Sl():!1}catch(o){return!1}}function Cl(){return localStorage.getItem("vaadin.developmentmode.force")}function Pl(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function kl(){return!!(St&&Object.keys(St).map(t=>St[t]).filter(t=>t.productionMode).length>0)}function Ks(o,t){if(typeof o!="function")return;const e=El.exec(o.toString());if(e)try{o=new Function(e[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return o(t)}window.Vaadin=window.Vaadin||{};const Do=function(o,t){if(window.Vaadin.developmentMode)return Ks(o,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Al());function Dl(){/*! vaadin-dev-mode:start
2319
2319
  (function () {
2320
2320
  'use strict';
2321
2321
 
@@ -2801,7 +2801,7 @@ try {
2801
2801
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2802
2802
  * Code distributed by Google as part of the polymer project is also
2803
2803
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2804
- */let To=0,Gs=0;const Be=[];let _i=!1;function Ml(){_i=!1;const o=Be.length;for(let t=0;t<o;t++){const e=Be[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}Be.splice(0,o),Gs+=o}const Dt={after(o){return{run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t)}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o)}},Ol={run(o){return window.requestAnimationFrame(o)},cancel(o){window.cancelAnimationFrame(o)}},Il={run(o){return window.requestIdleCallback?window.requestIdleCallback(o):window.setTimeout(o,16)},cancel(o){window.cancelIdleCallback?window.cancelIdleCallback(o):window.clearTimeout(o)}},Fl={run(o){_i||(_i=!0,queueMicrotask(()=>Ml())),Be.push(o);const t=To;return To+=1,t},cancel(o){const t=o-Gs;if(t>=0){if(!Be[t])throw new Error(`invalid async handle: ${o}`);Be[t]=null}}};/**
2804
+ */let To=0,Gs=0;const He=[];let gi=!1;function Ml(){gi=!1;const o=He.length;for(let t=0;t<o;t++){const e=He[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}He.splice(0,o),Gs+=o}const Tt={after(o){return{run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t)}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o)}},Ol={run(o){return window.requestAnimationFrame(o)},cancel(o){window.cancelAnimationFrame(o)}},Il={run(o){return window.requestIdleCallback?window.requestIdleCallback(o):window.setTimeout(o,16)},cancel(o){window.cancelIdleCallback?window.cancelIdleCallback(o):window.clearTimeout(o)}},Fl={run(o){gi||(gi=!0,queueMicrotask(()=>Ml())),He.push(o);const t=To;return To+=1,t},cancel(o){const t=o-Gs;if(t>=0){if(!He[t])throw new Error(`invalid async handle: ${o}`);He[t]=null}}};/**
2805
2805
  @license
2806
2806
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2807
2807
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2809,11 +2809,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2809
2809
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2810
2810
  Code distributed by Google as part of the polymer project is also
2811
2811
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2812
- */const gi=new Set;let je=class bi{static debounce(t,e,i){return t instanceof bi?t._cancelAsync():t=new bi,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,gi.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),gi.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 Nl(o){gi.add(o)}/**
2812
+ */const bi=new Set;let Ve=class vi{static debounce(t,e,i){return t instanceof vi?t._cancelAsync():t=new vi,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,bi.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),bi.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 Nl(o){bi.add(o)}/**
2813
2813
  * @license
2814
2814
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2815
2815
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2816
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Tl()};let Jt;const Mo=new Set,Js=o=>class extends Ft(o){static finalize(){super.finalize();const{is:e}=this;e&&!Mo.has(e)&&(window.Vaadin.registrations.push(this),Mo.add(e),window.Vaadin.developmentModeCallback&&(Jt=je.debounce(Jt,Il,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Nl(Jt)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2816
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Tl()};let Xt;const Mo=new Set,Js=o=>class extends Nt(o){static finalize(){super.finalize();const{is:e}=this;e&&!Mo.has(e)&&(window.Vaadin.registrations.push(this),Mo.add(e),window.Vaadin.developmentModeCallback&&(Xt=Ve.debounce(Xt,Il,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Nl(Xt)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2817
2817
  * @license
2818
2818
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2819
2819
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2914,23 +2914,23 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2914
2914
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2915
2915
  Code distributed by Google as part of the polymer project is also
2916
2916
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2917
- */const Hl=!1,Yl=o=>o,Ri=typeof document.head.style.touchAction=="string",vi="__polymerGestures",Xt="__polymerGesturesHandled",yi="__polymerGesturesTouchAction",Oo=25,Io=5,$l=2,jl=["mousedown","mousemove","mouseup","click"],Vl=[0,1,4,2],Ul=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function Bi(o){return jl.indexOf(o)>-1}let Qs=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){Qs=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function Wl(o){if(!(Bi(o)||o==="touchend")&&Ri&&Qs&&Hl)return{passive:!0}}const ql=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Kl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Te(o){const t=o.type;if(!Bi(t))return!1;if(t==="mousemove"){let i=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!Ul&&(i=Vl[o.which]||0),!!(i&1)}return(o.button===void 0?0:o.button)===0}function Gl(o){if(o.type==="click"){if(o.detail===0)return!0;const t=xe(o);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),i=o.pageX,s=o.pageY;return!(i>=e.left&&i<=e.right&&s>=e.top&&s<=e.bottom)}return!1}const pe={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Jl(o){let t="auto";const e=tr(o);for(let i=0,s;i<e.length;i++)if(s=e[i],s[yi]){t=s[yi];break}return t}function er(o,t,e){o.movefn=t,o.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function He(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const tr=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],Hi={},De=[];function Xl(o,t){let e=document.elementFromPoint(o,t),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const s=i;if(i=i.shadowRoot.elementFromPoint(o,t),s===i)break;i&&(e=i)}return e}function xe(o){const t=tr(o);return t.length>0?t[0]:o.target}function Zl(o){const t=o.type,i=o.currentTarget[vi];if(!i)return;const s=i[t];if(!s)return;if(!o[Xt]&&(o[Xt]={},t.startsWith("touch"))){const n=o.changedTouches[0];if(t==="touchstart"&&o.touches.length===1&&(pe.touch.id=n.identifier),pe.touch.id!==n.identifier)return;Ri||(t==="touchstart"||t==="touchmove")&&Ql(o)}const r=o[Xt];if(!r.skip){for(let n=0,a;n<De.length;n++)a=De[n],s[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(o.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<De.length;n++)a=De[n],s[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](o))}}function Ql(o){const t=o.changedTouches[0],e=o.type;if(e==="touchstart")pe.touch.x=t.clientX,pe.touch.y=t.clientY,pe.touch.scrollDecided=!1;else if(e==="touchmove"){if(pe.touch.scrollDecided)return;pe.touch.scrollDecided=!0;const i=Jl(o);let s=!1;const r=Math.abs(pe.touch.x-t.clientX),n=Math.abs(pe.touch.y-t.clientY);o.cancelable&&(i==="none"?s=!0:i==="pan-x"?s=n>r:i==="pan-y"&&(s=r>n)),s?o.preventDefault():Tt("track")}}function le(o,t,e){return Hi[t]?(ec(o,t,e),!0):!1}function ec(o,t,e){const i=Hi[t],s=i.deps,r=i.name;let n=o[vi];n||(o[vi]=n={});for(let a=0,l,d;a<s.length;a++)l=s[a],!(ql&&Bi(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&o.addEventListener(l,Zl,Wl(l)),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);o.addEventListener(t,e),i.touchAction&&ir(o,i.touchAction)}function Yi(o){De.push(o),o.emits.forEach(t=>{Hi[t]=o})}function tc(o){for(let t=0,e;t<De.length;t++){e=De[t];for(let i=0,s;i<e.emits.length;i++)if(s=e.emits[i],s===o)return e}return null}function ir(o,t){Ri&&o instanceof HTMLElement&&Fl.run(()=>{o.style.touchAction=t}),o[yi]=t}function $i(o,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,Yl(o).dispatchEvent(i),i.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function Tt(o){const t=tc(o);t.info&&(t.info.prevent=!0)}Yi({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){He(this.info)},mousedown(o){if(!Te(o))return;const t=xe(o),e=this,i=r=>{Te(r)||(Xe("up",t,r),He(e.info))},s=r=>{Te(r)&&Xe("up",t,r),He(e.info)};er(this.info,i,s),Xe("down",t,o)},touchstart(o){Xe("down",xe(o),o.changedTouches[0],o)},touchend(o){Xe("up",xe(o),o.changedTouches[0],o)}});function Xe(o,t,e,i){t&&$i(t,o,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(s){return Tt(s)}})}Yi({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(o){this.moves.length>$l&&this.moves.shift(),this.moves.push(o)},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,He(this.info)},mousedown(o){if(!Te(o))return;const t=xe(o),e=this,i=r=>{const n=r.clientX,a=r.clientY;Fo(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&Tt("tap"),e.info.addMove({x:n,y:a}),Te(r)||(e.info.state="end",He(e.info)),t&&Zt(e.info,t,r),e.info.started=!0)},s=r=>{e.info.started&&i(r),He(e.info)};er(this.info,i,s),this.info.x=o.clientX,this.info.y=o.clientY},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(o){const t=xe(o),e=o.changedTouches[0],i=e.clientX,s=e.clientY;Fo(this.info,i,s)&&(this.info.state==="start"&&Tt("tap"),this.info.addMove({x:i,y:s}),Zt(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(o){const t=xe(o),e=o.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Zt(this.info,t,e))}});function Fo(o,t,e){if(o.prevent)return!1;if(o.started)return!0;const i=Math.abs(o.x-t),s=Math.abs(o.y-e);return i>=Io||s>=Io}function Zt(o,t,e){if(!t)return;const i=o.moves[o.moves.length-2],s=o.moves[o.moves.length-1],r=s.x-o.x,n=s.y-o.y;let a,l=0;i&&(a=s.x-i.x,l=s.y-i.y),$i(t,"track",{state:o.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return Xl(e.clientX,e.clientY)}})}Yi({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(o){Te(o)&&(this.info.x=o.clientX,this.info.y=o.clientY)},click(o){Te(o)&&No(this.info,o)},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(o){No(this.info,o.changedTouches[0],o)}});function No(o,t,e){const i=Math.abs(t.clientX-o.x),s=Math.abs(t.clientY-o.y),r=xe(e||t);!r||Kl[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(s)||i<=Oo&&s<=Oo||Gl(t))&&(o.prevent||$i(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
2917
+ */const Hl=o=>o,Qs=typeof document.head.style.touchAction=="string",yi="__polymerGestures",Zt="__polymerGesturesHandled",xi="__polymerGesturesTouchAction",Oo=25,Io=5,$l=2,Yl=["mousedown","mousemove","mouseup","click"],jl=[0,1,4,2],Vl=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function Bi(o){return Yl.indexOf(o)>-1}let Ul=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){Ul=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function Wl(o){Bi(o)}const ql=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Kl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Me(o){const t=o.type;if(!Bi(t))return!1;if(t==="mousemove"){let i=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!Vl&&(i=jl[o.which]||0),!!(i&1)}return(o.button===void 0?0:o.button)===0}function Gl(o){if(o.type==="click"){if(o.detail===0)return!0;const t=xe(o);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),i=o.pageX,s=o.pageY;return!(i>=e.left&&i<=e.right&&s>=e.top&&s<=e.bottom)}return!1}const pe={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Jl(o){let t="auto";const e=tr(o);for(let i=0,s;i<e.length;i++)if(s=e[i],s[xi]){t=s[xi];break}return t}function er(o,t,e){o.movefn=t,o.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function $e(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const tr=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],Hi={},De=[];function Xl(o,t){let e=document.elementFromPoint(o,t),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const s=i;if(i=i.shadowRoot.elementFromPoint(o,t),s===i)break;i&&(e=i)}return e}function xe(o){const t=tr(o);return t.length>0?t[0]:o.target}function Zl(o){const t=o.type,i=o.currentTarget[yi];if(!i)return;const s=i[t];if(!s)return;if(!o[Zt]&&(o[Zt]={},t.startsWith("touch"))){const n=o.changedTouches[0];if(t==="touchstart"&&o.touches.length===1&&(pe.touch.id=n.identifier),pe.touch.id!==n.identifier)return;Qs||(t==="touchstart"||t==="touchmove")&&Ql(o)}const r=o[Zt];if(!r.skip){for(let n=0,a;n<De.length;n++)a=De[n],s[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(o.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<De.length;n++)a=De[n],s[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](o))}}function Ql(o){const t=o.changedTouches[0],e=o.type;if(e==="touchstart")pe.touch.x=t.clientX,pe.touch.y=t.clientY,pe.touch.scrollDecided=!1;else if(e==="touchmove"){if(pe.touch.scrollDecided)return;pe.touch.scrollDecided=!0;const i=Jl(o);let s=!1;const r=Math.abs(pe.touch.x-t.clientX),n=Math.abs(pe.touch.y-t.clientY);o.cancelable&&(i==="none"?s=!0:i==="pan-x"?s=n>r:i==="pan-y"&&(s=r>n)),s?o.preventDefault():Mt("track")}}function le(o,t,e){return Hi[t]?(ec(o,t,e),!0):!1}function ec(o,t,e){const i=Hi[t],s=i.deps,r=i.name;let n=o[yi];n||(o[yi]=n={});for(let a=0,l,d;a<s.length;a++)l=s[a],!(ql&&Bi(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&o.addEventListener(l,Zl,Wl(l)),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);o.addEventListener(t,e),i.touchAction&&ir(o,i.touchAction)}function $i(o){De.push(o),o.emits.forEach(t=>{Hi[t]=o})}function tc(o){for(let t=0,e;t<De.length;t++){e=De[t];for(let i=0,s;i<e.emits.length;i++)if(s=e.emits[i],s===o)return e}return null}function ir(o,t){Qs&&o instanceof HTMLElement&&Fl.run(()=>{o.style.touchAction=t}),o[xi]=t}function Yi(o,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,Hl(o).dispatchEvent(i),i.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function Mt(o){const t=tc(o);t.info&&(t.info.prevent=!0)}$i({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){$e(this.info)},mousedown(o){if(!Me(o))return;const t=xe(o),e=this,i=r=>{Me(r)||(Ze("up",t,r),$e(e.info))},s=r=>{Me(r)&&Ze("up",t,r),$e(e.info)};er(this.info,i,s),Ze("down",t,o)},touchstart(o){Ze("down",xe(o),o.changedTouches[0],o)},touchend(o){Ze("up",xe(o),o.changedTouches[0],o)}});function Ze(o,t,e,i){t&&Yi(t,o,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(s){return Mt(s)}})}$i({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(o){this.moves.length>$l&&this.moves.shift(),this.moves.push(o)},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,$e(this.info)},mousedown(o){if(!Me(o))return;const t=xe(o),e=this,i=r=>{const n=r.clientX,a=r.clientY;Fo(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&Mt("tap"),e.info.addMove({x:n,y:a}),Me(r)||(e.info.state="end",$e(e.info)),t&&Qt(e.info,t,r),e.info.started=!0)},s=r=>{e.info.started&&i(r),$e(e.info)};er(this.info,i,s),this.info.x=o.clientX,this.info.y=o.clientY},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(o){const t=xe(o),e=o.changedTouches[0],i=e.clientX,s=e.clientY;Fo(this.info,i,s)&&(this.info.state==="start"&&Mt("tap"),this.info.addMove({x:i,y:s}),Qt(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(o){const t=xe(o),e=o.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Qt(this.info,t,e))}});function Fo(o,t,e){if(o.prevent)return!1;if(o.started)return!0;const i=Math.abs(o.x-t),s=Math.abs(o.y-e);return i>=Io||s>=Io}function Qt(o,t,e){if(!t)return;const i=o.moves[o.moves.length-2],s=o.moves[o.moves.length-1],r=s.x-o.x,n=s.y-o.y;let a,l=0;i&&(a=s.x-i.x,l=s.y-i.y),Yi(t,"track",{state:o.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return Xl(e.clientX,e.clientY)}})}$i({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(o){Me(o)&&(this.info.x=o.clientX,this.info.y=o.clientY)},click(o){Me(o)&&No(this.info,o)},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(o){No(this.info,o.changedTouches[0],o)}});function No(o,t,e){const i=Math.abs(t.clientX-o.x),s=Math.abs(t.clientY-o.y),r=xe(e||t);!r||Kl[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(s)||i<=Oo&&s<=Oo||Gl(t))&&(o.prevent||Yi(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
2918
2918
  * @license
2919
2919
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2920
2920
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2921
- */const or=Y(o=>class extends o{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()}});/**
2921
+ */const or=$(o=>class extends o{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()}});/**
2922
2922
  * @license
2923
2923
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2924
2924
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2925
- */const Lt=Y(o=>class extends o{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){}});/**
2925
+ */const Rt=$(o=>class extends o{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){}});/**
2926
2926
  * @license
2927
2927
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2928
2928
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2929
- */const ic=o=>class extends or(Lt(o)){get _activeKeys(){return[" "]}ready(){super.ready(),le(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),le(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",i=>{this._activeKeys.includes(i.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2929
+ */const ic=o=>class extends or(Rt(o)){get _activeKeys(){return[" "]}ready(){super.ready(),le(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),le(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",i=>{this._activeKeys.includes(i.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2930
2930
  * @license
2931
2931
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2932
2932
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2933
- */const ji=Y(o=>class extends o{get _keyboardActive(){return zi()}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}});/**
2933
+ */const ji=$(o=>class extends o{get _keyboardActive(){return Li()}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}});/**
2934
2934
  * @license
2935
2935
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2936
2936
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2942,11 +2942,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2942
2942
  * @license
2943
2943
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2944
2944
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2945
- */I("vaadin-button",Rl,{moduleId:"vaadin-button-styles"});class sc extends oc(Js(Oe(We(we)))){static get is(){return"vaadin-button"}static get template(){return Bl(Fe)}ready(){super.ready(),this._tooltipController=new Zs(this),this.addController(this._tooltipController)}}ce(sc);/**
2945
+ */I("vaadin-button",Rl,{moduleId:"vaadin-button-styles"});class sc extends oc(Js(Ie(qe(we)))){static get is(){return"vaadin-button"}static get template(){return Bl(Ne)}ready(){super.ready(),this._tooltipController=new Zs(this),this.addController(this._tooltipController)}}ce(sc);/**
2946
2946
  * @license
2947
2947
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2948
2948
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2949
- */function rc(o){let t=o.getDay();t===0&&(t=7);const e=4-t,i=new Date(o.getTime()+e*24*3600*1e3),s=new Date(0,0);s.setFullYear(i.getFullYear());const r=i.getTime()-s.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function xi(o){const t=new Date(o);return t.setHours(0,0,0,0),t}function fe(o,t,e=xi){return o instanceof Date&&t instanceof Date&&e(o).getTime()===e(t).getTime()}function Vi(o){return{day:o.getDate(),month:o.getMonth(),year:o.getFullYear()}}function Ve(o,t,e,i){let s=!1;if(typeof i=="function"&&o){const r=Vi(o);s=i(r)}return(!t||o>=t)&&(!e||o<=e)&&!s}function rr(o,t){return t.filter(e=>e!==void 0).reduce((e,i)=>{if(!i)return e;if(!e)return i;const s=Math.abs(o.getTime()-i.getTime()),r=Math.abs(e.getTime()-o.getTime());return s<r?i:e})}function nr(o){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(o)+t.getMonth()),e}function nc(o,t,e=0,i=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let s=t+Math.floor(o.getFullYear()/100)*100;return o<new Date(s-50,e,i)?s-=100:o>new Date(s+50,e,i)&&(s+=100),s}function Ze(o){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(o);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}function ac(o){const t=(l,d="00")=>(d+l).substr((d+l).length-d.length);let e="",i="0000",s=o.year;s<0?(s=-s,e="-",i="000000"):o.year>=1e4&&(e="+",i="000000");const r=e+t(s,i),n=t(o.month+1),a=t(o.day);return[r,n,a].join("-")}function lc(o){return o instanceof Date?ac({year:o.getFullYear(),month:o.getMonth(),day:o.getDate()}):""}/**
2949
+ */function rc(o){let t=o.getDay();t===0&&(t=7);const e=4-t,i=new Date(o.getTime()+e*24*3600*1e3),s=new Date(0,0);s.setFullYear(i.getFullYear());const r=i.getTime()-s.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function wi(o){const t=new Date(o);return t.setHours(0,0,0,0),t}function fe(o,t,e=wi){return o instanceof Date&&t instanceof Date&&e(o).getTime()===e(t).getTime()}function Vi(o){return{day:o.getDate(),month:o.getMonth(),year:o.getFullYear()}}function Ue(o,t,e,i){let s=!1;if(typeof i=="function"&&o){const r=Vi(o);s=i(r)}return(!t||o>=t)&&(!e||o<=e)&&!s}function rr(o,t){return t.filter(e=>e!==void 0).reduce((e,i)=>{if(!i)return e;if(!e)return i;const s=Math.abs(o.getTime()-i.getTime()),r=Math.abs(e.getTime()-o.getTime());return s<r?i:e})}function nr(o){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(o)+t.getMonth()),e}function nc(o,t,e=0,i=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let s=t+Math.floor(o.getFullYear()/100)*100;return o<new Date(s-50,e,i)?s-=100:o>new Date(s+50,e,i)&&(s+=100),s}function Qe(o){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(o);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}function ac(o){const t=(l,d="00")=>(d+l).substr((d+l).length-d.length);let e="",i="0000",s=o.year;s<0?(s=-s,e="-",i="000000"):o.year>=1e4&&(e="+",i="000000");const r=e+t(s,i),n=t(o.month+1),a=t(o.day);return[r,n,a].join("-")}function lc(o){return o instanceof Date?ac({year:o.getFullYear(),month:o.getMonth(),day:o.getDate()}):""}/**
2950
2950
  @license
2951
2951
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2952
2952
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2954,7 +2954,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2954
2954
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2955
2955
  Code distributed by Google as part of the polymer project is also
2956
2956
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2957
- */class Mt{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,ht.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),ht.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(t,e,i){return t instanceof Mt?t._cancelAsync():t=new Mt,t.setConfig(e,i),t}}let ht=new Set;const cc=function(o){ht.add(o)},dc=function(){const o=!!ht.size;return ht.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),o};/**
2957
+ */class Ot{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,pt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),pt.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(t,e,i){return t instanceof Ot?t._cancelAsync():t=new Ot,t.setConfig(e,i),t}}let pt=new Set;const cc=function(o){pt.add(o)},dc=function(){const o=!!pt.size;return pt.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),o};/**
2958
2958
  @license
2959
2959
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2960
2960
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3016,7 +3016,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3016
3016
  <div class="buffer"></div>
3017
3017
  <div id="fullHeight"></div>
3018
3018
  </div>
3019
- `;class lr extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(ar.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),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(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%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(t=>{this.$[t.id]=t}),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()),Ui()}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t>this._buffers[1].translateY+e,s=t<this._buffers[0].translateY+e;(i||s)&&(this._translateBuffer(s),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=je.debounce(this._debouncerScrollFinish,Dt.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(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(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=je.debounce(this._debouncerUpdateClones,Dt.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let i=0;i<this.bufferSize;i++){const s=document.createElement("div");s.style.height=`${this.itemHeight}px`,s.instance={};const r=`vaadin-infinite-scroller-item-content-${Xs()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=s,e.appendChild(n),s.setAttribute("slot",r),this.appendChild(s),this._isVisible(s,t)&&this._ensureStampedInstance(s)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach(i=>{t.instance[i]=e[i]})}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,s)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*s;[...i.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a)}),i.updated=!0}})}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}/**
3019
+ `;class lr extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(ar.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),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(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%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(t=>{this.$[t.id]=t}),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()),Ui()}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t>this._buffers[1].translateY+e,s=t<this._buffers[0].translateY+e;(i||s)&&(this._translateBuffer(s),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,Tt.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(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(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=Ve.debounce(this._debouncerUpdateClones,Tt.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let i=0;i<this.bufferSize;i++){const s=document.createElement("div");s.style.height=`${this.itemHeight}px`,s.instance={};const r=`vaadin-infinite-scroller-item-content-${Xs()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=s,e.appendChild(n),s.setAttribute("slot",r),this.appendChild(s),this._isVisible(s,t)&&this._ensureStampedInstance(s)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach(i=>{t.instance[i]=e[i]})}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,s)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*s;[...i.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a)}),i.updated=!0}})}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}/**
3020
3020
  * @license
3021
3021
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3022
3022
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3078,7 +3078,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3078
3078
  * @license
3079
3079
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3080
3080
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3081
- */class fc extends Oe(pc(we)){static get is(){return"vaadin-date-picker-year"}static get template(){return Fe`
3081
+ */class fc extends Ie(pc(we)){static get is(){return"vaadin-date-picker-year"}static get template(){return Ne`
3082
3082
  <style>
3083
3083
  :host {
3084
3084
  display: block;
@@ -3095,7 +3095,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3095
3095
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3096
3096
  Code distributed by Google as part of the polymer project is also
3097
3097
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3098
- */function Wi(o,t,e,i,s){let r;s&&(r=typeof e=="object"&&e!==null,r&&(i=o.__dataTemp[t]));let n=i!==e&&(i===i||e===e);return r&&n&&(o.__dataTemp[t]=e),n}const qi=Y(o=>{class t extends o{_shouldPropertyChange(i,s,r){return Wi(this,i,s,r,!0)}}return t}),mc=Y(o=>{class t extends o{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,s,r){return Wi(this,i,s,r,this.mutableData)}}return t});qi._mutablePropertyChange=Wi;/**
3098
+ */function Wi(o,t,e,i,s){let r;s&&(r=typeof e=="object"&&e!==null,r&&(i=o.__dataTemp[t]));let n=i!==e&&(i===i||e===e);return r&&n&&(o.__dataTemp[t]=e),n}const qi=$(o=>{class t extends o{_shouldPropertyChange(i,s,r){return Wi(this,i,s,r,!0)}}return t}),mc=$(o=>{class t extends o{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,s,r){return Wi(this,i,s,r,this.mutableData)}}return t});qi._mutablePropertyChange=Wi;/**
3099
3099
  @license
3100
3100
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3101
3101
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3103,7 +3103,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3103
3103
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3104
3104
  Code distributed by Google as part of the polymer project is also
3105
3105
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3106
- */let wi=null;function Ei(){return wi}Ei.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Ei,writable:!0}});const ur=Fi(Ei),_c=qi(ur);function gc(o,t){wi=o,Object.setPrototypeOf(o,t.prototype),new t,wi=null}const bc=Fi(class{});function vc(o,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!o!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)o?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(o)i.__polymerReplaced__=document.createComment("hidden-slot"),W(W(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const s=i.__polymerReplaced__;s&&W(W(s).parentNode).replaceChild(i,s)}else i.style&&(o?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=o,i._showHideChildren&&i._showHideChildren(o)}}class Ee extends bc{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let s=this.root.firstChild;s;s=s.nextSibling)e.push(s),s.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in t)this._setPendingProperty(i,t[i])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,s=>{s.model=this,i(s)});else{let s=this.__dataHost.__dataHost;s&&s._addEventListenerToNode(t,e,i)}}_showHideChildren(t){vc(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}Ee.prototype.__dataHost;Ee.prototype.__templatizeOptions;Ee.prototype._methodHost;Ee.prototype.__templatizeOwner;Ee.prototype.__hostProps;const yc=qi(Ee);function zo(o){let t=o.__dataHost;return t&&t._methodHost||t}function xc(o,t,e){let i=e.mutableData?yc:Ee;Si.mixin&&(i=Si.mixin(i));let s=class extends i{};return s.prototype.__templatizeOptions=e,s.prototype._bindTemplate(o),Sc(s,o,t,e),s}function wc(o,t,e,i){let s=e.forwardHostProp;if(s&&t.hasHostProps){const r=o.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?_c:ur;class d extends l{}n=t.templatizeTemplateClass=d}else{const l=o.constructor;class d extends l{}n=t.templatizeTemplateClass=d}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Ec(l,s)}),n.prototype._createNotifyingProperty("_host_"+l);_s&&i&&Pc(t,e,i)}if(o.__dataProto&&Object.assign(o.__data,o.__dataProto),r)gc(o,n),o.__dataTemp={},o.__dataPending=null,o.__dataOld=null,o._enableProperties();else{Object.setPrototypeOf(o,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in o){const d=o[l];delete o[l],o.__data[l]=d}}}}function Ec(o,t){return function(i,s,r){t.call(i.__templatizeOwner,s.substring(6),r[s])}}function Sc(o,t,e,i){let s=e.hostProps||{};for(let r in i.instanceProps){delete s[r];let n=i.notifyInstanceProp;n&&o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Ac(r,n)})}if(i.forwardHostProp&&t.__dataHost)for(let r in s)e.hasHostProps||(e.hasHostProps=!0),o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Cc()})}function Ac(o,t){return function(i,s,r){t.call(i.__templatizeOwner,i,s,r[s])}}function Cc(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0)}}function Si(o,t,e){if(Pt&&!zo(o))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},o.__templatizeOwner)throw new Error("A <template> can only be templatized once");o.__templatizeOwner=t;let s=(t?t.constructor:Ee)._parseTemplate(o),r=s.templatizeInstanceClass;r||(r=xc(o,s,e),s.templatizeInstanceClass=r);const n=zo(o);wc(o,s,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=o,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=s.hostProps,a=a,a}function Pc(o,t,e){const i=e.constructor._properties,{propertyEffects:s}=o,{instanceProps:r}=t;for(let n in s)if(!i[n]&&!(r&&r[n])){const a=s[n];for(let l=0;l<a.length;l++){const{part:d}=a[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 kc(o,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=o)t=e.__dataHost;else return e;else t=W(t).parentNode;return null}/**
3106
+ */let Ei=null;function Si(){return Ei}Si.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Si,writable:!0}});const ur=Ni(Si),_c=qi(ur);function gc(o,t){Ei=o,Object.setPrototypeOf(o,t.prototype),new t,Ei=null}const bc=Ni(class{});function vc(o,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!o!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)o?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(o)i.__polymerReplaced__=document.createComment("hidden-slot"),W(W(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const s=i.__polymerReplaced__;s&&W(W(s).parentNode).replaceChild(i,s)}else i.style&&(o?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=o,i._showHideChildren&&i._showHideChildren(o)}}class Ee extends bc{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let s=this.root.firstChild;s;s=s.nextSibling)e.push(s),s.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in t)this._setPendingProperty(i,t[i])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,s=>{s.model=this,i(s)});else{let s=this.__dataHost.__dataHost;s&&s._addEventListenerToNode(t,e,i)}}_showHideChildren(t){vc(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}Ee.prototype.__dataHost;Ee.prototype.__templatizeOptions;Ee.prototype._methodHost;Ee.prototype.__templatizeOwner;Ee.prototype.__hostProps;const yc=qi(Ee);function zo(o){let t=o.__dataHost;return t&&t._methodHost||t}function xc(o,t,e){let i=e.mutableData?yc:Ee;Ai.mixin&&(i=Ai.mixin(i));let s=class extends i{};return s.prototype.__templatizeOptions=e,s.prototype._bindTemplate(o),Sc(s,o,t,e),s}function wc(o,t,e,i){let s=e.forwardHostProp;if(s&&t.hasHostProps){const r=o.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?_c:ur;class d extends l{}n=t.templatizeTemplateClass=d}else{const l=o.constructor;class d extends l{}n=t.templatizeTemplateClass=d}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Ec(l,s)}),n.prototype._createNotifyingProperty("_host_"+l);_s&&i&&Pc(t,e,i)}if(o.__dataProto&&Object.assign(o.__data,o.__dataProto),r)gc(o,n),o.__dataTemp={},o.__dataPending=null,o.__dataOld=null,o._enableProperties();else{Object.setPrototypeOf(o,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in o){const d=o[l];delete o[l],o.__data[l]=d}}}}function Ec(o,t){return function(i,s,r){t.call(i.__templatizeOwner,s.substring(6),r[s])}}function Sc(o,t,e,i){let s=e.hostProps||{};for(let r in i.instanceProps){delete s[r];let n=i.notifyInstanceProp;n&&o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Ac(r,n)})}if(i.forwardHostProp&&t.__dataHost)for(let r in s)e.hasHostProps||(e.hasHostProps=!0),o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Cc()})}function Ac(o,t){return function(i,s,r){t.call(i.__templatizeOwner,i,s,r[s])}}function Cc(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0)}}function Ai(o,t,e){if(kt&&!zo(o))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},o.__templatizeOwner)throw new Error("A <template> can only be templatized once");o.__templatizeOwner=t;let s=(t?t.constructor:Ee)._parseTemplate(o),r=s.templatizeInstanceClass;r||(r=xc(o,s,e),s.templatizeInstanceClass=r);const n=zo(o);wc(o,s,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=o,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=s.hostProps,a=a,a}function Pc(o,t,e){const i=e.constructor._properties,{propertyEffects:s}=o,{instanceProps:r}=t;for(let n in s)if(!i[n]&&!(r&&r[n])){const a=s[n];for(let l=0;l<a.length;l++){const{part:d}=a[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 kc(o,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=o)t=e.__dataHost;else return e;else t=W(t).parentNode;return null}/**
3107
3107
  @license
3108
3108
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3109
3109
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3119,11 +3119,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3119
3119
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3120
3120
  Code distributed by Google as part of the polymer project is also
3121
3121
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3122
- */const Tc=mc(we);class Ro extends Tc{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:!co,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 t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Dc()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=W(W(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let s=new MutationObserver(()=>{if(this.querySelector("template"))s.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return s.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Si(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(s,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(s,r)},notifyInstanceProp:function(s,r,n){if(Fn(this.as,r)){let a=s[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=ct(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)t.indexOf(e[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=Mt.debounce(this.__renderDebouncer,e>0?Hn.after(e):Cs,t.bind(this)),cc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ui()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!co||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter((i,s,r)=>this.__filterFn(t[i],s,r))),this.__sortFn&&e.sort((i,s)=>this.__sortFn(t[i],t[s])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),s=Math.max(e-i,0),this.__chunkCount=s||1):(s=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+s,t)),this.__shouldMeasureChunk=s===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,i){const s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=i[r],l=t[a];s[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a)}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n)}__detachInstance(t){let e=this.__instances[t];const i=W(e.root);for(let s=0;s<e.children.length;s++){let r=e.children[s];i.appendChild(r)}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let s={};return s[this.as]=t,s[this.indexAs]=e,s[this.itemsIndexAs]=i,new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let r=this.__instances[e+1],n=r?r.children[0]:this;return W(W(this).parentNode).insertBefore(s.root,n),this.__instances[e]=s,s}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let i=t.slice(6),s=i.indexOf("."),r=s<0?i:i.substring(0,s);if(r==parseInt(r,10)){let n=s<0?"":i.substring(s+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,e,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return kc(this.template,t)}}customElements.define(Ro.is,Ro);/**
3122
+ */const Tc=mc(we);class Ro extends Tc{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:!co,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 t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Dc()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=W(W(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let s=new MutationObserver(()=>{if(this.querySelector("template"))s.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return s.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Ai(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(s,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(s,r)},notifyInstanceProp:function(s,r,n){if(Fn(this.as,r)){let a=s[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=dt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)t.indexOf(e[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=Ot.debounce(this.__renderDebouncer,e>0?Hn.after(e):Cs,t.bind(this)),cc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ui()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!co||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter((i,s,r)=>this.__filterFn(t[i],s,r))),this.__sortFn&&e.sort((i,s)=>this.__sortFn(t[i],t[s])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),s=Math.max(e-i,0),this.__chunkCount=s||1):(s=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+s,t)),this.__shouldMeasureChunk=s===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,i){const s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=i[r],l=t[a];s[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a)}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n)}__detachInstance(t){let e=this.__instances[t];const i=W(e.root);for(let s=0;s<e.children.length;s++){let r=e.children[s];i.appendChild(r)}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let s={};return s[this.as]=t,s[this.indexAs]=e,s[this.itemsIndexAs]=i,new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let r=this.__instances[e+1],n=r?r.children[0]:this;return W(W(this).parentNode).insertBefore(s.root,n),this.__instances[e]=s,s}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let i=t.slice(6),s=i.indexOf("."),r=s<0?i:i.substring(0,s);if(r==parseInt(r,10)){let n=s<0?"":i.substring(s+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,e,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return kc(this.template,t)}}customElements.define(Ro.is,Ro);/**
3123
3123
  * @license
3124
3124
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3125
3125
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3126
- */const Mc=o=>class extends ji(o){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(),le(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,i,s){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),i&&s&&i.getMonth()===s.getMonth()&&i.getMonth()===e.getMonth()&&s.getDate()-i.getDate()>=0?!1:!Ve(r,i,s)&&!Ve(n,i,s)}_getTitle(e,i){if(!(e===void 0||i===void 0))return i.formatTitle(i.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,i){e.setDate(e.getDate()+i)}_applyFirstDayOfWeek(e,i){if(!(e===void 0||i===void 0))return e.slice(i).concat(e.slice(0,i))}_getWeekDayNames(e,i){if(e===void 0||i===void 0)return[];const{weekdays:s,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(s,n).map((d,u)=>({weekDay:d,weekDayShort:a[u]})).slice(0,7)}__focusedDateChanged(e,i){Array.isArray(i)&&i.some(s=>fe(s,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,i){return e&&i&&i.firstDayOfWeek===1}_isToday(e){return fe(new Date,e)}_getDays(e,i){if(e===void 0||i===void 0)return[];const s=new Date(0,0);for(s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(1);s.getDay()!==i.firstDayOfWeek;)this._dateAdd(s,-1);const r=[],n=s.getMonth(),a=e.getMonth();for(;s.getMonth()===a||s.getMonth()===n;)r.push(s.getMonth()===a?new Date(s.getTime()):null),this._dateAdd(s,1);return r}_getWeeks(e){return e.reduce((i,s,r)=>(r%7===0&&i.push([]),i[i.length-1].push(s),i),[])}_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 i=e.reduce((s,r)=>!s&&r?r:s);return rc(i)}__getDayAriaLabel(e){if(!e)return"";let i=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(i+=`, ${this.i18n.today}`),i}};/**
3126
+ */const Mc=o=>class extends ji(o){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(),le(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,i,s){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),i&&s&&i.getMonth()===s.getMonth()&&i.getMonth()===e.getMonth()&&s.getDate()-i.getDate()>=0?!1:!Ue(r,i,s)&&!Ue(n,i,s)}_getTitle(e,i){if(!(e===void 0||i===void 0))return i.formatTitle(i.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,i){e.setDate(e.getDate()+i)}_applyFirstDayOfWeek(e,i){if(!(e===void 0||i===void 0))return e.slice(i).concat(e.slice(0,i))}_getWeekDayNames(e,i){if(e===void 0||i===void 0)return[];const{weekdays:s,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(s,n).map((d,u)=>({weekDay:d,weekDayShort:a[u]})).slice(0,7)}__focusedDateChanged(e,i){Array.isArray(i)&&i.some(s=>fe(s,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,i){return e&&i&&i.firstDayOfWeek===1}_isToday(e){return fe(new Date,e)}_getDays(e,i){if(e===void 0||i===void 0)return[];const s=new Date(0,0);for(s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(1);s.getDay()!==i.firstDayOfWeek;)this._dateAdd(s,-1);const r=[],n=s.getMonth(),a=e.getMonth();for(;s.getMonth()===a||s.getMonth()===n;)r.push(s.getMonth()===a?new Date(s.getTime()):null),this._dateAdd(s,1);return r}_getWeeks(e){return e.reduce((i,s,r)=>(r%7===0&&i.push([]),i[i.length-1].push(s),i),[])}_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 i=e.reduce((s,r)=>!s&&r?r:s);return rc(i)}__getDayAriaLabel(e){if(!e)return"";let i=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(i+=`, ${this.i18n.today}`),i}};/**
3127
3127
  * @license
3128
3128
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3129
3129
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3187,7 +3187,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3187
3187
  * @license
3188
3188
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3189
3189
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3190
- */I("vaadin-month-calendar",Oc,{moduleId:"vaadin-month-calendar-styles"});class Ic extends Mc(Oe(we)){static get template(){return Fe`
3190
+ */I("vaadin-month-calendar",Oc,{moduleId:"vaadin-month-calendar-styles"});class Ic extends Mc(Ie(we)){static get template(){return Ne`
3191
3191
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3192
3192
  <table
3193
3193
  id="monthGrid"
@@ -3229,7 +3229,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3229
3229
  </template>
3230
3230
  </tbody>
3231
3231
  </table>
3232
- `}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(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,i,s,r,n){const a=["date"],l=t>xi(new Date),d=t<xi(new Date);return this.__isDayDisabled(t,s,r,n)&&a.push("disabled"),this.__isDayFocused(t,e)&&a.push("focused"),this.__isDaySelected(t,i)&&a.push("selected"),this._isToday(t)&&a.push("today"),d&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,e){return fe(t,e)}__isDaySelected(t,e){return fe(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,i,s){return!Ve(t,e,i,s)}__getDayAriaDisabled(t,e,i,s){if(!(t===void 0||e===void 0&&i===void 0&&s===void 0)&&this.__isDayDisabled(t,e,i,s))return"true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}ce(Ic);/**
3232
+ `}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(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,i,s,r,n){const a=["date"],l=t>wi(new Date),d=t<wi(new Date);return this.__isDayDisabled(t,s,r,n)&&a.push("disabled"),this.__isDayFocused(t,e)&&a.push("focused"),this.__isDaySelected(t,i)&&a.push("selected"),this._isToday(t)&&a.push("today"),d&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,e){return fe(t,e)}__isDaySelected(t,e){return fe(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,i,s){return!Ue(t,e,i,s)}__getDayAriaDisabled(t,e,i,s){if(!(t===void 0||e===void 0&&i===void 0&&s===void 0)&&this.__isDayDisabled(t,e,i,s))return"true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}ce(Ic);/**
3233
3233
  * @license
3234
3234
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3235
3235
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3237,7 +3237,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3237
3237
  * @license
3238
3238
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3239
3239
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3240
- */const Fc=o=>class extends o{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(){ir(this.$.scrollers,"pan-y"),le(this.$.scrollers,"track",this._track.bind(this)),le(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),le(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),le(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new hr(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new ke(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),le(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new ke(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),le(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,i){const s=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+s,i),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new ke(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",i=>{this.__onMonthCalendarKeyDown(i)}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(s=>{s.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=i}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new ke(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),le(e,"tap",i=>{this._onYearTap(i)}),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,i){e&&(e.textContent=i&&i.cancel)}__updateTodayButton(e,i,s,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(s,r,n))}__updateCalendars(e,i,s,r,n,a,l,d,u,h){e&&e.length&&e.forEach(p=>{p.i18n=i,p.minDate=s,p.maxDate=r,p.isDateDisabled=h,p.focusedDate=a,p.selectedDate=n,p.showWeekNumbers=l,p.ignoreTaps=d,u?p.setAttribute("theme",u):p.removeAttribute("theme")})}__updateYears(e,i,s){e&&e.length&&e.forEach(r=>{r.selectedDate=i,s?r.setAttribute("theme",s):r.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,i=!0){if(!e)return;const s=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const d=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+d,i);return}const r=this._monthScroller.position>s,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<s;r?this._scrollToPosition(s,i):l&&this._scrollToPosition(s-a+1,i)}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let s=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(s+=1);return s/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=je.debounce(this._debouncer,Dt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,i,s){return e&&i&&typeof i.formatDate=="function"?i.formatDate(Vi(e)):s}_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 s=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+s*12,!0)}}_scrollToPosition(e,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let s;this._revealPromise=new Promise(d=>{s=d});const r=(d,u,h,p)=>(d/=p/2,d<1?h/2*d*d+u:(d-=1,-h/2*(d*(d-2)-1)+u));let n=0;const a=this._monthScroller.position,l=d=>{n||(n=d);const u=d-n;if(u<this.scrollDuration){const h=r(u,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,s(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,i){return Math.min(i.max,Math.max(i.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 i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{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 nr(e).getFullYear()}_differenceInMonths(e,i){return(e.getFullYear()-i.getFullYear())*12-i.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 i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),i=!0);break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){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 i=this.focusableDateElement;i&&fe(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(e,i){return qe(this,null,function*(){const s=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=s,i||(this._focusedMonthDate=s.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return qe(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{js(this,()=>{Ui(),i()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(rr(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,i,s){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,s):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,i){const s=new Date(0,0);return s.setFullYear(this.focusedDate.getFullYear()),s.setMonth(this.focusedDate.getMonth()+e),i&&s.setDate(this.focusedDate.getDate()+i),s}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1)}_moveFocusByMonths(e){const i=this._getDateDiff(e),s=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==s&&i.setDate(0),this._focusAllowedDate(i,e,!0)}_moveFocusInsideMonth(e,i){const s=new Date(0,0);s.setFullYear(e.getFullYear()),i==="minDate"?(s.setMonth(e.getMonth()),s.setDate(1)):(s.setMonth(e.getMonth()+1),s.setDate(0)),this._dateAllowed(s)?this.focusDate(s):this._dateAllowed(e)?this.focusDate(this[i]):this._focusClosestDate(e)}_dateAllowed(e,i=this.minDate,s=this.maxDate,r=this.isDateDisabled){return Ve(e,i,s,r)}_isTodayAllowed(e,i,s){return this._dateAllowed(this._getTodayMidnight(),e,i,s)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
3240
+ */const Fc=o=>class extends o{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(){ir(this.$.scrollers,"pan-y"),le(this.$.scrollers,"track",this._track.bind(this)),le(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),le(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),le(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new hr(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new ke(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),le(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new ke(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),le(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,i){const s=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+s,i),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new ke(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",i=>{this.__onMonthCalendarKeyDown(i)}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(s=>{s.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=i}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new ke(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),le(e,"tap",i=>{this._onYearTap(i)}),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,i){e&&(e.textContent=i&&i.cancel)}__updateTodayButton(e,i,s,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(s,r,n))}__updateCalendars(e,i,s,r,n,a,l,d,u,h){e&&e.length&&e.forEach(p=>{p.i18n=i,p.minDate=s,p.maxDate=r,p.isDateDisabled=h,p.focusedDate=a,p.selectedDate=n,p.showWeekNumbers=l,p.ignoreTaps=d,u?p.setAttribute("theme",u):p.removeAttribute("theme")})}__updateYears(e,i,s){e&&e.length&&e.forEach(r=>{r.selectedDate=i,s?r.setAttribute("theme",s):r.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,i=!0){if(!e)return;const s=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const d=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+d,i);return}const r=this._monthScroller.position>s,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<s;r?this._scrollToPosition(s,i):l&&this._scrollToPosition(s-a+1,i)}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let s=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(s+=1);return s/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,Tt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,i,s){return e&&i&&typeof i.formatDate=="function"?i.formatDate(Vi(e)):s}_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 s=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+s*12,!0)}}_scrollToPosition(e,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let s;this._revealPromise=new Promise(d=>{s=d});const r=(d,u,h,p)=>(d/=p/2,d<1?h/2*d*d+u:(d-=1,-h/2*(d*(d-2)-1)+u));let n=0;const a=this._monthScroller.position,l=d=>{n||(n=d);const u=d-n;if(u<this.scrollDuration){const h=r(u,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,s(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,i){return Math.min(i.max,Math.max(i.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 i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{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 nr(e).getFullYear()}_differenceInMonths(e,i){return(e.getFullYear()-i.getFullYear())*12-i.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 i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),i=!0);break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){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 i=this.focusableDateElement;i&&fe(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(e,i){return Ke(this,null,function*(){const s=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=s,i||(this._focusedMonthDate=s.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Ke(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{js(this,()=>{Ui(),i()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(rr(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,i,s){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,s):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,i){const s=new Date(0,0);return s.setFullYear(this.focusedDate.getFullYear()),s.setMonth(this.focusedDate.getMonth()+e),i&&s.setDate(this.focusedDate.getDate()+i),s}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1)}_moveFocusByMonths(e){const i=this._getDateDiff(e),s=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==s&&i.setDate(0),this._focusAllowedDate(i,e,!0)}_moveFocusInsideMonth(e,i){const s=new Date(0,0);s.setFullYear(e.getFullYear()),i==="minDate"?(s.setMonth(e.getMonth()),s.setDate(1)):(s.setMonth(e.getMonth()+1),s.setDate(0)),this._dateAllowed(s)?this.focusDate(s):this._dateAllowed(e)?this.focusDate(this[i]):this._focusClosestDate(e)}_dateAllowed(e,i=this.minDate,s=this.maxDate,r=this.isDateDisabled){return Ue(e,i,s,r)}_isTodayAllowed(e,i,s){return this._dateAllowed(this._getTodayMidnight(),e,i,s)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
3241
3241
  * @license
3242
3242
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3243
3243
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3305,7 +3305,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3305
3305
  * @license
3306
3306
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3307
3307
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3308
- */I("vaadin-date-picker-overlay-content",Nc,{moduleId:"vaadin-date-picker-overlay-content-styles"});class zc extends Fc(We(Oe(Ft(we)))){static get template(){return Fe`
3308
+ */I("vaadin-date-picker-overlay-content",Nc,{moduleId:"vaadin-date-picker-overlay-content-styles"});class zc extends Fc(qe(Ie(Nt(we)))){static get template(){return Ne`
3309
3309
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3310
3310
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3311
3311
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3329,35 +3329,35 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3329
3329
  * @license
3330
3330
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3331
3331
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3332
- */const pr=Y(o=>class extends ji(sr(o)){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,i){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i)}_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,i){super._disabledChanged(e,i),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)}});/**
3332
+ */const pr=$(o=>class extends ji(sr(o)){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,i){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i)}_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,i){super._disabledChanged(e,i),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)}});/**
3333
3333
  * @license
3334
3334
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3335
3335
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3336
- */const Qt=new WeakMap;function Lc(o){return Qt.has(o)||Qt.set(o,new Set),Qt.get(o)}function Rc(o,t){const e=document.createElement("style");e.textContent=o,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const Bc=Y(o=>class extends o{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),i=Lc(e);this.slotStyles.forEach(s=>{i.has(s)||(Rc(s,e),i.add(s))})}});/**
3336
+ */const ei=new WeakMap;function Lc(o){return ei.has(o)||ei.set(o,new Set),ei.get(o)}function Rc(o,t){const e=document.createElement("style");e.textContent=o,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const Bc=$(o=>class extends o{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),i=Lc(e);this.slotStyles.forEach(s=>{i.has(s)||(Rc(s,e),i.add(s))})}});/**
3337
3337
  * @license
3338
3338
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3339
3339
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3340
- */const fr=Y(o=>class extends o{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,i){e?this._addInputListeners(e):i&&this._removeInputListeners(i)}_hasInputValueChanged(e,i){(e||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const i=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=i.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,i){this._toggleHasValue(this._hasValue),!(e===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const i=e.composedPath()[0];this._hasInputValue=i.value.length>0}});/**
3340
+ */const fr=$(o=>class extends o{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,i){e?this._addInputListeners(e):i&&this._removeInputListeners(i)}_hasInputValueChanged(e,i){(e||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const i=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=i.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,i){this._toggleHasValue(this._hasValue),!(e===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const i=e.composedPath()[0];this._hasInputValue=i.value.length>0}});/**
3341
3341
  * @license
3342
3342
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3343
3343
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3344
- */const Hc=o=>class extends fr(Lt(o)){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(),rl||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}))}};/**
3344
+ */const Hc=o=>class extends fr(Rt(o)){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(),rl||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}))}};/**
3345
3345
  * @license
3346
3346
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
3347
3347
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3348
- */const ei=new Map;function Ki(o){return ei.has(o)||ei.set(o,new WeakMap),ei.get(o)}function mr(o,t){o&&o.removeAttribute(t)}function _r(o,t){if(!o||!t)return;const e=Ki(t);if(e.has(o))return;const i=Li(o.getAttribute(t));e.set(o,new Set(i))}function Yc(o,t){if(!o||!t)return;const e=Ki(t),i=e.get(o);!i||i.size===0?o.removeAttribute(t):qs(o,t,zt(i)),e.delete(o)}function ti(o,t,e={newId:null,oldId:null,fromUser:!1}){if(!o||!t)return;const{newId:i,oldId:s,fromUser:r}=e,n=Ki(t),a=n.get(o);if(!r&&a){s&&a.delete(s),i&&a.add(i);return}r&&(a?i||n.delete(o):_r(o,t),mr(o,t)),_l(o,t,s);const l=i||zt(a);l&&qs(o,t,l)}function $c(o,t){_r(o,t),mr(o,t)}/**
3348
+ */const ti=new Map;function Ki(o){return ti.has(o)||ti.set(o,new WeakMap),ti.get(o)}function mr(o,t){o&&o.removeAttribute(t)}function _r(o,t){if(!o||!t)return;const e=Ki(t);if(e.has(o))return;const i=Ri(o.getAttribute(t));e.set(o,new Set(i))}function $c(o,t){if(!o||!t)return;const e=Ki(t),i=e.get(o);!i||i.size===0?o.removeAttribute(t):qs(o,t,Lt(i)),e.delete(o)}function ii(o,t,e={newId:null,oldId:null,fromUser:!1}){if(!o||!t)return;const{newId:i,oldId:s,fromUser:r}=e,n=Ki(t),a=n.get(o);if(!r&&a){s&&a.delete(s),i&&a.add(i);return}r&&(a?i||n.delete(o):_r(o,t),mr(o,t)),_l(o,t,s);const l=i||Lt(a);l&&qs(o,t,l)}function Yc(o,t){_r(o,t),mr(o,t)}/**
3349
3349
  * @license
3350
3350
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3351
3351
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3352
- */class jc{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,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(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?($c(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Yc(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){ti(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){ti(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){ti(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3352
+ */class jc{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,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(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(Yc(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&($c(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){ii(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){ii(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){ii(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3353
3353
  * @license
3354
3354
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3355
3355
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3356
- */const ne=document.createElement("div");ne.style.position="fixed";ne.style.clip="rect(0px, 0px, 0px, 0px)";ne.setAttribute("aria-live","polite");document.body.appendChild(ne);let xt;function Vc(o,t={}){const e=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;e==="alert"?(ne.removeAttribute("aria-live"),ne.removeAttribute("role"),xt=je.debounce(xt,Ol,()=>{ne.setAttribute("role","alert")})):(xt&&xt.cancel(),ne.removeAttribute("role"),ne.setAttribute("aria-live",e)),ne.textContent="",setTimeout(()=>{ne.textContent=o},i)}/**
3356
+ */const ne=document.createElement("div");ne.style.position="fixed";ne.style.clip="rect(0px, 0px, 0px, 0px)";ne.setAttribute("aria-live","polite");document.body.appendChild(ne);let wt;function Vc(o,t={}){const e=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;e==="alert"?(ne.removeAttribute("aria-live"),ne.removeAttribute("role"),wt=Ve.debounce(wt,Ol,()=>{ne.setAttribute("role","alert")})):(wt&&wt.cancel(),ne.removeAttribute("role"),ne.setAttribute("aria-live",e)),ne.textContent="",setTimeout(()=>{ne.textContent=o},i)}/**
3357
3357
  * @license
3358
3358
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3359
3359
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3360
- */class Gi extends ke{constructor(t,e,i,s={}){super(t,e,i,_t(mt({},s),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(i=>{const s=i.target,r=s===this.node;i.type==="attributes"?r&&this.__updateNodeId(s):(r||s.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId)}}/**
3360
+ */class Gi extends ke{constructor(t,e,i,s={}){super(t,e,i,gt(_t({},s),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(i=>{const s=i.target,r=s===this.node;i.type==="attributes"?r&&this.__updateNodeId(s):(r||s.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId)}}/**
3361
3361
  * @license
3362
3362
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3363
3363
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3373,32 +3373,32 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3373
3373
  * @license
3374
3374
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3375
3375
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3376
- */const Kc=Y(o=>class extends We(o){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new qc(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)}});/**
3376
+ */const Kc=$(o=>class extends qe(o){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new qc(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)}});/**
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 gr=Y(o=>class extends o{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}});/**
3380
+ */const gr=$(o=>class extends o{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}});/**
3381
3381
  * @license
3382
3382
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3383
3383
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3384
- */const Gc=o=>class extends gr(Kc(We(o))){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 jc(this),this._helperController=new Wc(this),this._errorController=new Uc(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:i,node:s}=e.detail;this.__labelChanged(i,s)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:s}=e.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,s)})}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,i){e?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,i){e?this._fieldAriaController.setLabelId(i.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 i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3384
+ */const Gc=o=>class extends gr(Kc(qe(o))){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 jc(this),this._helperController=new Wc(this),this._errorController=new Uc(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:i,node:s}=e.detail;this.__labelChanged(i,s)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:s}=e.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,s)})}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,i){e?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,i){e?this._fieldAriaController.setLabelId(i.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 i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id)}else this._fieldAriaController.setErrorId(null)})}};/**
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
- */const Jc=Y(o=>class extends o{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((i,s)=>{this._delegateAttribute(i,e[s])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((i,s)=>{this._delegateProperty(i,e[s])})}_delegateAttribute(e,i){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(e,i):i?this.stateTarget.setAttribute(e,i):this.stateTarget.removeAttribute(e))}_delegateProperty(e,i){this.stateTarget&&(this.stateTarget[e]=i)}});/**
3388
+ */const Jc=$(o=>class extends o{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((i,s)=>{this._delegateAttribute(i,e[s])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((i,s)=>{this._delegateProperty(i,e[s])})}_delegateAttribute(e,i){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(e,i):i?this.stateTarget.setAttribute(e,i):this.stateTarget.removeAttribute(e))}_delegateProperty(e,i){this.stateTarget&&(this.stateTarget[e]=i)}});/**
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
- */const br=Y(o=>class extends Jc(gr(fr(o))){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(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...i){if(!e)return;const s=this._hasValidConstraints(i),r=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=s}_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}});/**
3392
+ */const br=$(o=>class extends Jc(gr(fr(o))){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(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...i){if(!e)return;const s=this._hasValidConstraints(i),r=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=s}_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}});/**
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 Xc=o=>class extends Bc(pr(br(Gc(Hc(Lt(o)))))){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[`
3396
+ */const Xc=o=>class extends Bc(pr(br(Gc(Hc(Rt(o)))))){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[`
3397
3397
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3398
3398
  font: inherit;
3399
3399
  color: inherit;
3400
3400
  }
3401
- `]}_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=je.debounce(this._preventInputDebouncer,Dt.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 i=e.clipboardData.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const i=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(i)||(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(i){console.error(i)}}};/**
3401
+ `]}_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,Tt.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 i=e.clipboardData.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const i=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(i)||(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(i){console.error(i)}}};/**
3402
3402
  * @license
3403
3403
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3404
3404
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3489,7 +3489,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3489
3489
  * @license
3490
3490
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3491
3491
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3492
- */const nd=o=>class extends sd(We(pr(br(Lt(o))))){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 i=String(e.year).replace(/\d+/u,s=>"0000".substr(s.length)+s);return[e.month+1,e.day,i].join("/")},parseDate(e){const i=e.split("/"),s=new Date;let r,n=s.getMonth(),a=s.getFullYear();if(i.length===3){if(n=parseInt(i[0])-1,r=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?Ze(this.referenceDate):new Date;a=nc(l,a,n,r)}}else i.length===2?(n=parseInt(i[0])-1,r=parseInt(i[1])):i.length===1&&(r=parseInt(i[0]));if(r!==void 0)return{day:r,month:n,year:a}},formatTitle:(e,i)=>`${e} ${i}`})},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:Vs},_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&&!zi()&&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 hr(this._fullscreenMediaQuery,i=>{this._fullscreen=i})),this.addController(new rd(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 i=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close()}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",s=>{this.__commitDate(s.detail.date),this._close()}),i.addEventListener("date-selected",s=>{this.__commitDate(s.detail.date)}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),i.addEventListener("focusout",s=>{this._shouldRemoveFocus(s)&&this._setFocused(!1)}),i.addEventListener("focused-date-changed",s=>{this._focusedDate=s.detail.value}),i.addEventListener("click",s=>s.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=Ze(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Vi(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),s=!this._selectedDate||Ve(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),i&&s&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:i}=e;return this.opened&&i!==null&&i!==document.body&&!this.contains(i)&&!this._overlayContent.contains(i)?!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,i,s,r,n,a){return!e||i&&(!a||n)||s&&n||!r.parseDate}_formatISO(e){return lc(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,i){e===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,i){e===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,i){const s=Ze(e);if(e&&!s){this.value=i;return}e?fe(this._selectedDate,s)||(this._selectedDate=s,i!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,i,s,r,n,a,l,d,u){e&&(e.i18n=i,e.label=s,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=d,e.isDateDisabled=u)}__updateOverlayContentTheme(e,i){e&&(i?e.setAttribute("theme",i):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,i){e&&e.toggleAttribute("fullscreen",i)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const i=this._getInitialPosition();e.initialPosition=i;const s=e.focusedDate||i;e.scrollToDate(s),this._ignoreFocusedDateChange=!0,e.focusedDate=s,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=Us(n)}_getInitialPosition(){const e=Ze(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Ve(i,this._minDate,this._maxDate,this.isDateDisabled)?i:this._minDate||this._maxDate?rr(i,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",i=this.__parseDate(e);i?this.__commitDate(i):(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,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,i)}_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 Ze(e)}};/**
3492
+ */const nd=o=>class extends sd(qe(pr(br(Rt(o))))){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 i=String(e.year).replace(/\d+/u,s=>"0000".substr(s.length)+s);return[e.month+1,e.day,i].join("/")},parseDate(e){const i=e.split("/"),s=new Date;let r,n=s.getMonth(),a=s.getFullYear();if(i.length===3){if(n=parseInt(i[0])-1,r=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?Qe(this.referenceDate):new Date;a=nc(l,a,n,r)}}else i.length===2?(n=parseInt(i[0])-1,r=parseInt(i[1])):i.length===1&&(r=parseInt(i[0]));if(r!==void 0)return{day:r,month:n,year:a}},formatTitle:(e,i)=>`${e} ${i}`})},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:Vs},_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&&!Li()&&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 hr(this._fullscreenMediaQuery,i=>{this._fullscreen=i})),this.addController(new rd(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 i=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close()}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",s=>{this.__commitDate(s.detail.date),this._close()}),i.addEventListener("date-selected",s=>{this.__commitDate(s.detail.date)}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),i.addEventListener("focusout",s=>{this._shouldRemoveFocus(s)&&this._setFocused(!1)}),i.addEventListener("focused-date-changed",s=>{this._focusedDate=s.detail.value}),i.addEventListener("click",s=>s.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=Qe(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Vi(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),s=!this._selectedDate||Ue(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),i&&s&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:i}=e;return this.opened&&i!==null&&i!==document.body&&!this.contains(i)&&!this._overlayContent.contains(i)?!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,i,s,r,n,a){return!e||i&&(!a||n)||s&&n||!r.parseDate}_formatISO(e){return lc(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,i){e===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,i){e===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,i){const s=Qe(e);if(e&&!s){this.value=i;return}e?fe(this._selectedDate,s)||(this._selectedDate=s,i!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,i,s,r,n,a,l,d,u){e&&(e.i18n=i,e.label=s,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=d,e.isDateDisabled=u)}__updateOverlayContentTheme(e,i){e&&(i?e.setAttribute("theme",i):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,i){e&&e.toggleAttribute("fullscreen",i)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const i=this._getInitialPosition();e.initialPosition=i;const s=e.focusedDate||i;e.scrollToDate(s),this._ignoreFocusedDateChange=!0,e.focusedDate=s,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=Us(n)}_getInitialPosition(){const e=Qe(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Ue(i,this._minDate,this._maxDate,this.isDateDisabled)?i:this._minDate||this._maxDate?rr(i,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",i=this.__parseDate(e);i?this.__commitDate(i):(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,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,i)}_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 Qe(e)}};/**
3493
3493
  * @license
3494
3494
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3495
3495
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3510,7 +3510,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3510
3510
  * @license
3511
3511
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3512
3512
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3513
- */I("vaadin-date-picker",[od,ad],{moduleId:"vaadin-date-picker-styles"});class ld extends nd(Xc(Oe(Js(we)))){static get is(){return"vaadin-date-picker"}static get template(){return Fe`
3513
+ */I("vaadin-date-picker",[od,ad],{moduleId:"vaadin-date-picker-styles"});class ld extends nd(Xc(Ie(Js(we)))){static get is(){return"vaadin-date-picker"}static get template(){return Ne`
3514
3514
  <div class="vaadin-date-picker-container">
3515
3515
  <div part="label">
3516
3516
  <slot name="label"></slot>
@@ -3552,4 +3552,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3552
3552
  ></vaadin-date-picker-overlay>
3553
3553
 
3554
3554
  <slot name="tooltip"></slot>
3555
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Zc(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Qc(this.inputElement,this._labelController)),this._tooltipController=new Zs(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(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}ce(ld);var vr={exports:{}};(function(o,t){(function(e,i){o.exports=i()})(c.commonjsGlobal,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d\d/,r=/\d\d?/,n=/\d*[^-_:/,()\s\d]+/,a={},l=function(f){return(f=+f)+(f>68?1900:2e3)},d=function(f){return function(g){this[f]=+g}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var y=g.match(/([+-]|\d\d)/g),v=60*y[1]+(+y[2]||0);return v===0?0:y[0]==="+"?-v:v}(f)}],h=function(f){var g=a[f];return g&&(g.indexOf?g:g.s.concat(g.f))},p=function(f,g){var y,v=a.meridiem;if(v){for(var E=1;E<=24;E+=1)if(f.indexOf(v(E,0,g))>-1){y=E>12;break}}else y=f===(g?"pm":"PM");return y},m={A:[n,function(f){this.afternoon=p(f,!1)}],a:[n,function(f){this.afternoon=p(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[s,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[s,d("day")],Do:[n,function(f){var g=a.ordinal,y=f.match(/\d+/);if(this.day=y[0],g)for(var v=1;v<=31;v+=1)g(v).replace(/\[|\]/g,"")===f&&(this.day=v)}],M:[r,d("month")],MM:[s,d("month")],MMM:[n,function(f){var g=h("months"),y=(h("monthsShort")||g.map(function(v){return v.slice(0,3)})).indexOf(f)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[n,function(f){var g=h("months").indexOf(f)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,d("year")],YY:[s,function(f){this.year=l(f)}],YYYY:[/\d{4}/,d("year")],Z:u,ZZ:u};function b(f){var g,y;g=f,y=a&&a.formats;for(var v=(f=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,P,D){var T=D&&D.toUpperCase();return P||y[D]||e[D]||y[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,z,te){return z||te.slice(1)})})).match(i),E=v.length,w=0;w<E;w+=1){var C=v[w],q=m[C],F=q&&q[0],R=q&&q[1];v[w]=R?{regex:F,parser:R}:C.replace(/^\[|\]$/g,"")}return function(N){for(var P={},D=0,T=0;D<E;D+=1){var K=v[D];if(typeof K=="string")T+=K.length;else{var z=K.regex,te=K.parser,se=N.slice(T),j=z.exec(se)[0];te.call(P,j),N=N.replace(j,"")}}return function(J){var B=J.afternoon;if(B!==void 0){var L=J.hours;B?L<12&&(J.hours+=12):L===12&&(J.hours=0),delete J.afternoon}}(P),P}}return function(f,g,y){y.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(l=f.parseTwoDigitYear);var v=g.prototype,E=v.parse;v.parse=function(w){var C=w.date,q=w.utc,F=w.args;this.$u=q;var R=F[1];if(typeof R=="string"){var N=F[2]===!0,P=F[3]===!0,D=N||P,T=F[2];P&&(T=F[2]),a=this.$locale(),!N&&T&&(a=y.Ls[T]),this.$d=function(se,j,J){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*se);var B=b(j)(se),L=B.year,X=B.month,ae=B.day,me=B.hours,_e=B.minutes,Se=B.seconds,ge=B.milliseconds,be=B.zone,Z=new Date,Q=ae||(L||X?1:Z.getDate()),M=L||Z.getFullYear(),O=0;L&&!X||(O=X>0?X-1:Z.getMonth());var de=me||0,re=_e||0,G=Se||0,ie=ge||0;return be?new Date(Date.UTC(M,O,Q,de,re,G,ie+60*be.offset*1e3)):J?new Date(Date.UTC(M,O,Q,de,re,G,ie)):new Date(M,O,Q,de,re,G,ie)}catch(x){return new Date("")}}(C,R,q),this.init(),T&&T!==!0&&(this.$L=this.locale(T).$L),D&&C!=this.format(R)&&(this.$d=new Date("")),a={}}else if(R instanceof Array)for(var K=R.length,z=1;z<=K;z+=1){F[1]=R[z-1];var te=y.apply(this,F);if(te.isValid()){this.$d=te.$d,this.$L=te.$L,this.init();break}z===K&&(this.$d=new Date(""))}else E.call(this,w)}}})})(vr);var cd=vr.exports;const yr=c.getDefaultExportFromCjs(cd);function Bo(o,t){c.addMessages(o,t)}function dd(o){c.$locale.set(o)}const Ho={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor2Months:"2 Months",SelfExclusionFor3Months:"3 Months",SelfExclusionFor6Months:"6 Months",SelfExclusionFor7Months:"7 Months",SelfExclusionFor8Months:"8 Months",SelfExclusionFor9Months:"9 Months",SelfExclusionFor10Months:"10 Months",SelfExclusionFor11Months:"11 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor2Years:"2 Years",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriodSelfExclusion:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntilSelfExclusion:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"en-us":{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor2Months:"2 Months",SelfExclusionFor3Months:"3 Months",SelfExclusionFor6Months:"6 Months",SelfExclusionFor7Months:"7 Months",SelfExclusionFor8Months:"8 Months",SelfExclusionFor9Months:"9 Months",SelfExclusionFor10Months:"10 Months",SelfExclusionFor11Months:"11 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor2Years:"2 Years",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriodSelfExclusion:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntilSelfExclusion:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText:"<p>在自我排除期間,您的帳戶將完全受到限制。</br> 自我排除僅可在您選擇的期間結束後,通過與客戶支援聯繫進行解除,並將接受審查和冷靜期。</br> 或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中暫停(最多6週)。</br> 如果您更願意關閉帳戶,可以通過'<a href='{baseurl}/{lang}/account/account-closure'>關閉帳戶</a>'選項進行關閉。</br> 我們建議您閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取進一步的建議。</p>",selfExclusionEmailText:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor2Months:"2個月",SelfExclusionFor3Months:"3個月",SelfExclusionFor6Months:"6個月",SelfExclusionFor7Months:"7個月",SelfExclusionFor8Months:"8個月",SelfExclusionFor9Months:"9個月",SelfExclusionFor10Months:"10個月",SelfExclusionFor11Months:"11個月",SelfExclusionFor1Year:"1年",SelfExclusionFor2Years:"2年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到",selfExclusionSuccess:"自我排斥活躍",confirmationModalTitle:"確認",confirmationModalTextPeriodSelfExclusion:"您確定要自我排除 {period} 嗎?",confirmationModalTextUntilSelfExclusion:"您確定要自我排除直到 {date} 嗎?",generalError:"提取自我排除时发生错误。",errorSelfExclusionCall:"发出自我排除请求时出现问题。",InvalidSession:"会话已过期。"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText:"<p>Pendant la période d'auto-exclusion, l'accès à votre compte sera entièrement restreint.</br> L'auto-exclusion ne peut être levée qu'après la période que vous avez sélectionnée et en contactant le Service Client, sous réserve d'une révision et d'une période de réflexion.</br> Alternativement, vous pouvez choisir de prendre un '<a href='{baseurl}/{lang}/account/timeout'>temps de pause</a>' (jusqu'à 6 semaines) via l'option correspondante.</br> Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br> Nous vous recommandons également de consulter nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu Responsable</a>' pour des conseils supplémentaires si nécessaire.</p>",selfExclusionEmailText:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor30Days:"30 Jours",SelfExclusionFor2Months:"2 Mois",SelfExclusionFor3Months:"3 Mois",SelfExclusionFor6Months:"6 Mois",SelfExclusionFor7Months:"7 Mois",SelfExclusionFor8Months:"8 Mois",SelfExclusionFor9Months:"9 Mois",SelfExclusionFor10Months:"10 Mois",SelfExclusionFor11Months:"11 Mois",SelfExclusionFor1Year:"1 An",SelfExclusionFor2Years:"2 Ans",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à",selfExclusionSuccess:"Auto exclusion active",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodSelfExclusion:"Êtes-vous sûr de vouloir vous auto-exclure pour {period} ?",confirmationModalTextUntilSelfExclusion:"Êtes-vous sûr de vouloir vous auto-exclure jusqu'au {date} ?",generalError:"Une erreur s'est produite lors de la récupération de l'auto-exclusion.",errorSelfExclusionCall:"Un problème est survenu lors de la demande d'auto-exclusion.",InvalidSession:"La session a expiré."},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText:"<p>În timpul perioadei de autoexcludere, accesul la contul dvs. va fi complet restricționat.</br> Autoexcluderea poate fi ridicată numai după ce perioada selectată de dvs. a expirat, contactând Suportul Clienți, și va fi supusă unei revizuiri și unei perioade de reflecție.</br> Alternativ, puteți alege să luați o '<a href='{baseurl}/{lang}/account/timeout'>pauză</a>' (o întrerupere de până la 6 săptămâni) prin opțiunea corespunzătoare.</br> Dacă preferați să vă închideți contul, puteți face acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br> Vă recomandăm, de asemenea, să consultați paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc Responsabil</a>' pentru sfaturi suplimentare, dacă este necesar.</p>",selfExclusionEmailText:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor30Days:"30 de Zile",SelfExclusionFor2Months:"2 Luni",SelfExclusionFor3Months:"3 Luni",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor7Months:"7 Luni",SelfExclusionFor8Months:"8 Luni",SelfExclusionFor9Months:"9 Luni",SelfExclusionFor10Months:"10 Luni",SelfExclusionFor11Months:"11 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor2Years:"2 Ani",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la",selfExclusionSuccess:"Auto-excludere activa",confirmationModalTitle:"Confirmare",confirmationModalTextPeriodSelfExclusion:"Sunteți sigur că doriți să vă auto-excludeți pentru {period}?",confirmationModalTextUntilSelfExclusion:"Sunteți sigur că doriți să vă auto-excludeți până la {date}?",generalError:"A apărut o eroare la preluarea auto-excluderii.",errorSelfExclusionCall:"A apărut o problemă la efectuarea cererii de auto-excludere.",InvalidSession:"Sesiunea a expirat."},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo se puede levantar después de que haya pasado el período seleccionado, comunicándose con Atención al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede optar por tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (un descanso de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos que lea nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor2Years:"2 Años",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto Exclusión activa.",confirmationModalTitle:"Confirmación",confirmationModalTextPeriodSelfExclusion:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntilSelfExclusion:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta estará totalmente restrito.</br> A autoexclusão só pode ser levantada após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a uma revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer uma '<a href='{baseurl}/{lang}/account/timeout'>pausa</a>' (um intervalo de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar a sua conta, pode fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia as nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriodSelfExclusion:"Tem a certeza de que deseja autoexcluir-se por {period}?",confirmationModalTextUntilSelfExclusion:"Tem a certeza de que deseja autoexcluir-se até {date}?",generalError:"Ocorreu um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Ocorreu um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText:"<p>Tijekom razdoblja samoisključenja, pristup vašem računu bit će potpuno ograničen.</br> Samoisključenje se može ukinuti tek nakon što istekne razdoblje koje ste odabrali, uz kontaktiranje Korisničke podrške, uz reviziju i razdoblje hlađenja.</br> Alternativno, možete odabrati '<a href='{baseurl}/{lang}/account/timeout'>stanku</a>' (pauzu do 6 tjedana) putem odgovarajuće opcije.</br> Ako radije želite zatvoriti svoj račun, to možete učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br> Također vam preporučujemo da pročitate naše stranice s pomoći o '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za dodatne savjete, ako su vam potrebni.</p>",selfExclusionEmailText:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor2Months:"2 Mjeseca",SelfExclusionFor3Months:"3 Mjeseca",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor7Months:"7 Mjeseci",SelfExclusionFor8Months:"8 Mjeseci",SelfExclusionFor9Months:"9 Mjeseci",SelfExclusionFor10Months:"10 Mjeseci",SelfExclusionFor11Months:"11 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor2Years:"2 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do",selfExclusionSuccess:"Aktivno samoisključivanje",confirmationModalTitle:"Potvrda",confirmationModalTextPeriodSelfExclusion:"Jeste li sigurni da se želite samoisključiti na {period}?",confirmationModalTextUntilSelfExclusion:"Jeste li sigurni da se želite samoisključiti do {date}?",generalError:"Došlo je do pogreške prilikom dohvaćanja samoisključenja.",errorSelfExclusionCall:"Došlo je do problema prilikom slanja zahtjeva za samoisključenje.",InvalidSession:"Sesija je istekla."},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta será completamente restrito.</br> A autoexclusão só pode ser removida após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer um '<a href='{baseurl}/{lang}/account/timeout'>intervalo</a>' (uma pausa de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar sua conta, você pode fazer isso através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriodSelfExclusion:"Você tem certeza de que deseja se autoexcluir por {period}?",confirmationModalTextUntilSelfExclusion:"Você tem certeza de que deseja se autoexcluir até {date}?",generalError:"Houve um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Houve um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo puede levantarse después de que haya pasado el período que seleccionó, comunicándose con el Servicio al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede elegir tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (una pausa de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo mediante la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos leer nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si lo necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto-exclusión activa",confirmationModalTitle:"Confirmación",confirmationModalTextPeriodSelfExclusion:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntilSelfExclusion:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText:"<p>Kendinizi dışlama süresince hesabınıza erişiminiz tamamen kısıtlanacaktır.</br> Kendinizi dışlama, yalnızca seçtiğiniz süre sona erdikten sonra, Müşteri Hizmetleri ile iletişime geçerek kaldırılabilir ve inceleme ile bir düşünme süresine tabi olacaktır.</br> Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Mola</a>' seçeneğiyle hizmetlerimizden (6 haftaya kadar bir ara) faydalanmayı tercih edebilirsiniz.</br> Hesabınızı kapatmayı tercih ederseniz, bunu '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla yapabilirsiniz.</br> Ayrıca, gerektiğinde daha fazla tavsiye almak için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Oyun</a>' yardım sayfalarımızı okumanızı öneririz.</p>",selfExclusionEmailText:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor2Months:"2 Ay",SelfExclusionFor3Months:"3 Ay",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor7Months:"7 Ay",SelfExclusionFor8Months:"8 Ay",SelfExclusionFor9Months:"9 Ay",SelfExclusionFor10Months:"10 Ay",SelfExclusionFor11Months:"11 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor2Years:"2 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar",selfExclusionSuccess:"Kendini dışlama etkin",confirmationModalTitle:"Onay",confirmationModalTextPeriodSelfExclusion:"{period} için kendinizi hariç tutmak istediğinizden emin misiniz?",confirmationModalTextUntilSelfExclusion:"{date} tarihine kadar kendinizi hariç tutmak istediğinizden emin misiniz?",generalError:"Kendi kendini dışlama alınırken bir hata oluştu.",errorSelfExclusionCall:"Kendi kendini dışlama isteği yapılırken bir sorun oluştu.",InvalidSession:"Oturum süresi doldu."}};function ud(o){c.append_styles(o,"svelte-st6cko",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionContainer{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));container-type:inline-size}.SelfExclusionContainer .SelfExclusionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:10px;max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.SelfExclusionContainer .SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionNotification{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionNotification.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionNotification .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px;min-height:180px}@container (max-width: 768px){.SelfExclusionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}}.SelfExclusionConfigWrapper{width:50%;height:100%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emw--color-white, #FFFFFF);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:600px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--color-primary, #23B04E);border-radius:var(--emw--border-radius-medium, 10px);padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave:hover{color:white;background:var(--emw--color-primary);opacity:0.6}.SelfExclusionActionButtons .SelfExclusionSave:active{background:var(--emw--color-primary);opacity:0.6}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function Yo(o,t,e){const i=o.slice();return i[56]=t[e],i}function hd(o){let t,e,i,s,r=o[22]("titleSelfExclusion")+"",n,a,l,d,u=o[22]("selfExclusionText",{values:{operatorname:o[3],baseurl:o[5],lang:o[2]}})+"",h,p,m=o[22]("selfExclusionEmailText")+"",b,f,g,y,v,E,w,C,q,F=o[22](`${o[15]}`)+"",R,N,P,D,T,K,z,te,se,j,J,B,L,X=o[22]("save")+"",ae,me,_e,Se,ge,be,Z=o[24]&&fd(o),Q=c.ensure_array_like(o[11]),M=[];for(let x=0;x<Q.length;x+=1)M[x]=$o(Yo(o,Q,x));let O=o[18]&&jo(o);function de(x,k){return x[17]?gd:x[19]?md:_d}let re=de(o),G=re(o),ie=o[25]&&bd(o);return{c(){t=c.element("div"),e=c.element("form"),Z&&Z.c(),i=c.space(),s=c.element("h2"),n=c.text(r),a=c.space(),l=c.element("div"),d=c.element("p"),h=c.space(),p=c.element("p"),b=c.text(m),f=c.space(),g=c.element("a"),y=c.text(o[4]),E=c.space(),w=c.element("div"),C=c.element("div"),q=c.element("p"),R=c.text(F),N=c.space(),P=c.svg_element("svg"),D=c.svg_element("g"),T=c.svg_element("path"),K=c.space(),z=c.element("div");for(let x=0;x<M.length;x+=1)M[x].c();te=c.space(),O&&O.c(),se=c.space(),j=c.element("div"),G.c(),J=c.space(),B=c.element("div"),L=c.element("button"),ae=c.text(X),Se=c.space(),ie&&ie.c(),c.attr(s,"class","PlayerSelfExclusionTitle "+(o[24]?"PlayerSelfExclusionTitleNone":"")),c.attr(d,"class","SelfExclusionDescriptionText"),c.attr(g,"href",v="mailto:"+o[4]),c.attr(p,"class","SelfExclusionDescriptionText"),c.attr(l,"class","SelfExclusionDescription "+(o[24]?"SelfExclusionDescriptionMobile":"")),c.attr(T,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),c.attr(T,"stroke-linecap","round"),c.attr(P,"xmlns","http://www.w3.org/2000/svg"),c.attr(P,"xmlns:xlink","http://www.w3.org/1999/xlink"),c.attr(P,"version","1.1"),c.attr(P,"viewBox","0 0 100 100"),c.attr(P,"xml:space","preserve"),c.attr(P,"class","SelfExclusionConfigIcon"),c.toggle_class(P,"active",o[20]),c.attr(C,"class","SelfExclusionConfigLabel"),c.attr(z,"class","SelfExclusionDropDown"),c.toggle_class(z,"active",o[20]),c.attr(w,"class","SelfExclusionConfigWrapper "+(o[24]?"SelfExclusionConfigWrapperMobile":"")),c.toggle_class(w,"active",o[20]),c.attr(j,"class","SelfExclusionDescription "+(o[24]?"SelfExclusionDescriptionMobile":"")),c.attr(L,"class",me="SelfExclusionSave "+(o[19]?"active":"")),L.disabled=_e=!o[19],c.attr(B,"class","SelfExclusionActionButtons "+(o[24]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[24]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(x,k){c.insert(x,t,k),c.append(t,e),Z&&Z.m(e,null),c.append(e,i),c.append(e,s),c.append(s,n),c.append(e,a),c.append(e,l),c.append(l,d),d.innerHTML=u,c.append(l,h),c.append(l,p),c.append(p,b),c.append(p,f),c.append(p,g),c.append(g,y),c.append(e,E),c.append(e,w),c.append(w,C),c.append(C,q),c.append(q,R),c.append(C,N),c.append(C,P),c.append(P,D),c.append(D,T),c.append(w,K),c.append(w,z);for(let H=0;H<M.length;H+=1)M[H]&&M[H].m(z,null);c.append(e,te),O&&O.m(e,null),c.append(e,se),c.append(e,j),G.m(j,null),c.append(e,J),c.append(e,B),c.append(B,L),c.append(L,ae),c.append(t,Se),ie&&ie.m(t,null),ge||(be=[c.listen(C,"click",o[37]),c.listen(L,"click",o[40])],ge=!0)},p(x,k){if(x[24]&&Z.p(x,k),k[0]&4194304&&r!==(r=x[22]("titleSelfExclusion")+"")&&c.set_data(n,r),k[0]&4194348&&u!==(u=x[22]("selfExclusionText",{values:{operatorname:x[3],baseurl:x[5],lang:x[2]}})+"")&&(d.innerHTML=u),k[0]&4194304&&m!==(m=x[22]("selfExclusionEmailText")+"")&&c.set_data(b,m),k[0]&16&&c.set_data(y,x[4]),k[0]&16&&v!==(v="mailto:"+x[4])&&c.attr(g,"href",v),k[0]&4227072&&F!==(F=x[22](`${x[15]}`)+"")&&c.set_data(R,F),k[0]&1048576&&c.toggle_class(P,"active",x[20]),k[0]&138414080){Q=c.ensure_array_like(x[11]);let H;for(H=0;H<Q.length;H+=1){const ft=Yo(x,Q,H);M[H]?M[H].p(ft,k):(M[H]=$o(ft),M[H].c(),M[H].m(z,null))}for(;H<M.length;H+=1)M[H].d(1);M.length=Q.length}k[0]&1048576&&c.toggle_class(z,"active",x[20]),k[0]&1048576&&c.toggle_class(w,"active",x[20]),x[18]?O?O.p(x,k):(O=jo(x),O.c(),O.m(e,se)):O&&(O.d(1),O=null),re===(re=de(x))&&G?G.p(x,k):(G.d(1),G=re(x),G&&(G.c(),G.m(j,null))),k[0]&4194304&&X!==(X=x[22]("save")+"")&&c.set_data(ae,X),k[0]&524288&&me!==(me="SelfExclusionSave "+(x[19]?"active":""))&&c.attr(L,"class",me),k[0]&524288&&_e!==(_e=!x[19])&&(L.disabled=_e),x[25]&&ie.p(x,k)},d(x){x&&c.detach(t),Z&&Z.d(),c.destroy_each(M,x),O&&O.d(),G.d(),ie&&ie.d(),ge=!1,c.run_all(be)}}}function pd(o){let t,e,i,s,r,n,a,l,d,u,h,p,m,b,f,g,y,v,E,w,C;function q(N,P){return N[24]?yd:vd}let R=q(o)(o);return{c(){t=c.element("div"),e=c.element("div"),R.c(),i=c.space(),s=c.element("div"),r=c.element("ui-skeleton"),n=c.space(),a=c.element("div"),l=c.space(),d=c.element("ui-skeleton"),u=c.space(),h=c.element("div"),p=c.space(),m=c.element("div"),b=c.element("ui-skeleton"),f=c.space(),g=c.element("div"),y=c.space(),v=c.element("ui-skeleton"),E=c.space(),w=c.element("div"),C=c.element("ui-skeleton"),c.set_custom_element_data(r,"structure","text"),c.set_custom_element_data(r,"height",o[24]?"15px":"20px"),c.set_custom_element_data(r,"rows","6"),c.set_custom_element_data(r,"width","100%"),c.set_style(a,"height",o[24]?"10px":"20px"),c.set_custom_element_data(d,"structure","text"),c.set_custom_element_data(d,"height",o[24]?"15px":"20px"),c.set_custom_element_data(d,"width","30%"),c.set_style(h,"height","10px"),c.attr(s,"class","SelfExclusionDescription"),c.set_custom_element_data(b,"structure","rectangle"),c.set_custom_element_data(b,"width",o[24]?"100%":"50%"),c.set_custom_element_data(b,"height",o[24]?"30px":"44px"),c.set_style(g,"height",o[24]?"15px":"20px"),c.set_custom_element_data(v,"structure","text"),c.set_custom_element_data(v,"height",o[24]?"15px":"20px"),c.set_custom_element_data(v,"width","30%"),c.attr(m,"class","SelfExclusionConfig"),c.set_custom_element_data(C,"structure","rectangle"),c.set_custom_element_data(C,"width","100%"),c.set_custom_element_data(C,"height",o[24]?"35px":"50px"),c.attr(w,"class","SelfExclusionActionButtons "+(o[24]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[24]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(N,P){c.insert(N,t,P),c.append(t,e),R.m(e,null),c.append(e,i),c.append(e,s),c.append(s,r),c.append(s,n),c.append(s,a),c.append(s,l),c.append(s,d),c.append(s,u),c.append(s,h),c.append(e,p),c.append(e,m),c.append(m,b),c.append(m,f),c.append(m,g),c.append(m,y),c.append(m,v),c.append(e,E),c.append(e,w),c.append(w,C)},p:c.noop,d(N){N&&c.detach(t),R.d()}}}function fd(o){let t,e,i,s,r,n,a,l,d,u,h=o[22]("titleSelfExclusion")+"",p,m,b;return{c(){t=c.element("div"),e=c.svg_element("svg"),i=c.svg_element("defs"),s=c.svg_element("style"),r=c.text(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=c.svg_element("g"),a=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(a,"transform","translate(20 158)"),c.attr(n,"transform","translate(-20 -158)"),c.attr(e,"xmlns","http://www.w3.org/2000/svg"),c.attr(e,"width","15"),c.attr(e,"height","15"),c.attr(e,"viewBox","0 0 15 15"),c.attr(u,"class","PlayerSelfExclusionTitleMobile"),c.attr(t,"class","MenuReturnButton")},m(f,g){c.insert(f,t,g),c.append(t,e),c.append(e,i),c.append(i,s),c.append(s,r),c.append(e,n),c.append(n,a),c.append(a,l),c.append(t,d),c.append(t,u),c.append(u,p),m||(b=c.listen(t,"click",o[36]),m=!0)},p(f,g){g[0]&4194304&&h!==(h=f[22]("titleSelfExclusion")+"")&&c.set_data(p,h)},d(f){f&&c.detach(t),m=!1,b()}}}function $o(o){let t,e=o[22](`${o[56].key}`)+"",i,s,r;function n(){return o[38](o[56])}return{c(){t=c.element("div"),i=c.text(e)},m(a,l){c.insert(a,t,l),c.append(t,i),s||(r=c.listen(t,"click",n),s=!0)},p(a,l){o=a,l[0]&4196352&&e!==(e=o[22](`${o[56].key}`)+"")&&c.set_data(i,e)},d(a){a&&c.detach(t),s=!1,r()}}}function jo(o){let t,e,i=o[22]("duration")+"",s,r,n,a=o[22]("dateInstructions")+"",l,d,u,h,p,m,b;return{c(){t=c.element("div"),e=c.element("label"),s=c.text(i),r=c.space(),n=c.element("span"),l=c.text(a),d=c.space(),u=c.element("strong"),h=c.text(o[23]),p=c.element("strong"),m=c.space(),b=c.element("vaadin-date-picker"),c.attr(e,"for","SelfExclusionDate"),c.attr(n,"class","SelfExclusionDateInstructions"),c.set_custom_element_data(b,"min",o[12]),c.set_custom_element_data(b,"max",o[13]),c.set_custom_element_data(b,"value",o[14]),c.attr(t,"class","SelfExclusionDateWrapper "+(o[24]?"SelfExclusionDateWrapperMobile":""))},m(f,g){c.insert(f,t,g),c.append(t,e),c.append(e,s),c.append(t,r),c.append(t,n),c.append(n,l),c.append(n,d),c.append(n,u),c.append(u,h),c.append(u,p),c.append(t,m),c.append(t,b),o[39](b)},p(f,g){g[0]&4194304&&i!==(i=f[22]("duration")+"")&&c.set_data(s,i),g[0]&4194304&&a!==(a=f[22]("dateInstructions")+"")&&c.set_data(l,a),g[0]&4096&&c.set_custom_element_data(b,"min",f[12]),g[0]&8192&&c.set_custom_element_data(b,"max",f[13]),g[0]&16384&&c.set_custom_element_data(b,"value",f[14])},d(f){f&&c.detach(t),o[39](null)}}}function md(o){let t,e,i=o[22]("temporarySelfExclusion",{values:{date:he.dayjs(o[14]).format(o[23])}})+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&4210688&&i!==(i=r[22]("temporarySelfExclusion",{values:{date:he.dayjs(r[14]).format(r[23])}})+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function _d(o){let t,e,i=o[22]("noPeriodSelected")+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&4194304&&i!==(i=r[22]("noPeriodSelected")+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function gd(o){let t,e,i=o[22]("permanentSelfExclusion")+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&4194304&&i!==(i=r[22]("permanentSelfExclusion")+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function bd(o){let t,e,i,s;return{c(){t=c.element("player-account-modal"),e=c.element("player-account-general-confirmation-modal"),c.set_custom_element_data(e,"modaltitle",i=o[22]("confirmationModalTitle")),c.set_custom_element_data(e,"modaltext",o[16]),c.set_custom_element_data(e,"hascancelbutton",!1),c.set_custom_element_data(e,"modalconfirmevent",s={type:"setSelfExclusion",userid:o[1],selectedPeriodKey:o[15],session:o[0]}),c.set_custom_element_data(e,"mbsource",o[8]),c.set_custom_element_data(e,"lang",o[2]),c.set_custom_element_data(t,"clientstyling",o[6]),c.set_custom_element_data(t,"clientstylingurl",o[7]),c.set_custom_element_data(t,"mbsource",o[8]),c.set_custom_element_data(t,"showmodaleventname","ShowSelfExclusionConfirmationModal")},m(r,n){c.insert(r,t,n),c.append(t,e)},p(r,n){n[0]&4194304&&i!==(i=r[22]("confirmationModalTitle"))&&c.set_custom_element_data(e,"modaltitle",i),n[0]&65536&&c.set_custom_element_data(e,"modaltext",r[16]),n[0]&32771&&s!==(s={type:"setSelfExclusion",userid:r[1],selectedPeriodKey:r[15],session:r[0]})&&c.set_custom_element_data(e,"modalconfirmevent",s),n[0]&256&&c.set_custom_element_data(e,"mbsource",r[8]),n[0]&4&&c.set_custom_element_data(e,"lang",r[2]),n[0]&64&&c.set_custom_element_data(t,"clientstyling",r[6]),n[0]&128&&c.set_custom_element_data(t,"clientstylingurl",r[7]),n[0]&256&&c.set_custom_element_data(t,"mbsource",r[8])},d(r){r&&c.detach(t)}}}function vd(o){let t;return{c(){t=c.element("ui-skeleton"),c.set_custom_element_data(t,"structure","title"),c.set_custom_element_data(t,"width","100px"),c.set_custom_element_data(t,"margin-top","20px"),c.set_custom_element_data(t,"margin-bottom","20px")},m(e,i){c.insert(e,t,i)},d(e){e&&c.detach(t)}}}function yd(o){let t;return{c(){t=c.element("div"),t.innerHTML='<ui-skeleton structure="title" width="20px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton> <ui-skeleton structure="title" width="100px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton>',c.attr(t,"class","MenuReturnButton")},m(e,i){c.insert(e,t,i)},d(e){e&&c.detach(t)}}}function xd(o){let t;function e(r,n){return r[21]?pd:hd}let i=e(o),s=i(o);return{c(){t=c.element("div"),s.c()},m(r,n){c.insert(r,t,n),s.m(t,null),o[41](t)},p(r,n){i===(i=e(r))&&s?s.p(r,n):(s.d(1),s=i(r),s&&(s.c(),s.m(t,null)))},i:c.noop,o:c.noop,d(r){r&&c.detach(t),s.d(),o[41](null)}}}function wd(o,t,e){let i;c.component_subscribe(o,c.$format,_=>e(22,i=_)),he.dayjs.extend(yr);let{endpoint:s="",session:r="",userid:n="",lang:a="en",gmversion:l="",operator:d="Everymatrix",supportemail:u="",baseurl:h="",clientstyling:p="",clientstylingurl:m="",mbsource:b,translationurl:f="",hasconfirmationmodal:g="false",dateformat:y="DD/MM/YYYY",sendnotificationemail:v="false"}=t,E,w,C=[],q={},F=y.toUpperCase(),R=window.navigator.userAgent,N,P,D="",T="",K="selectAPeriod",z="",te="",se=c.getDevice(R)!=="PC",j=!1,J=!1,B=!1,L=!1,X=g==="true",ae=!0;const me=()=>{fetch(f).then(V=>V.json()).then(V=>{Object.keys(V).forEach(U=>{Bo(U,V[U])})}).catch(V=>{console.log(V)})};Object.keys(Ho).forEach(_=>{Bo(_,Ho[_])});const _e=()=>{let _=new URL(`${s}/v1/player/selfExclusionSettings`);fetch(_,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(U=>ge(U)).then(U=>{e(11,C=U.periods)}).catch(U=>{console.log(U),window.postMessage({type:"WidgetNotification",data:{type:"error",message:U.message}},window.location.href)}).finally(()=>{e(21,ae=!1)})},Se=_=>{_.data.type==="setSelfExclusion"&&(e(1,n=_.data.userid),e(15,K=_.data.selectedPeriodKey),e(0,r=_.data.session),O())},ge=_=>qe(this,null,function*(){var V;if(!_.ok){q=yield _.json(),te=(V=q.thirdPartyResponse)==null?void 0:V.errorCode;const U=i(te||"generalError");throw new Error(U)}return _.json()}),be=()=>{e(20,L=!L)},Z=_=>{switch(T=_.text,e(15,K=_.key),e(19,B=!0),e(20,L=!1),e(17,j=!1),e(18,J=!1),T){case"Until":e(18,J=!0),e(12,N=he.dayjs().add(6,"months").format("YYYY-MM-DD")),e(13,P=he.dayjs().add(5,"years").format("YYYY-MM-DD")),e(14,D=N);break;case"Permanent":e(17,j=!j);break;default:const[V,U]=T.split(" "),Ae=U.includes("Day")?"days":U.includes("Month")?"months":U.includes("Year")?"years":null;if(!Ae)return;e(14,D=he.dayjs().add(Number(V),Ae).format("YYYY-MM-DD"));break}X&&Q()},Q=()=>{if(!X||!T||!D){e(16,z="");return}e(16,z=J?i("confirmationModalTextUntilSelfExclusion",{values:{date:he.dayjs(D).format(F)}}):i("confirmationModalTextPeriodSelfExclusion",{values:{period:i(T)}}))},M=_=>{_.preventDefault(),X?(Q(),window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href)):O()},O=()=>{e(21,ae=!0);const _=new URL(`${s}/v2/player/${n}/limits${l==="gm16"?"/session":""}`),U={method:"PUT",headers:{"X-SessionID":r,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({selfExclusion:{period:K,expiryDate:D,selfExclusionReason:"UserRequest",sendNotificationEmail:v==="true"}})};fetch(_.href,U).then(Ae=>ge(Ae)).then(Ae=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("selfExclusionSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href)}).catch(Ae=>{console.error(i("errorSelfExclusionCall"),Ae),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i("errorSelfExclusionCall")}},window.location.href)}).finally(()=>{e(21,ae=!1)})},de=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:se},window.location.href)},re=_=>{e(14,D=_.target.value)},G=()=>{w.addEventListener("change",re,!1),e(10,w.i18n=_t(mt({},w.i18n),{formatDate:_=>he.dayjs(new Date(_.year,_.month,_.day)).format(F),parseDate:_=>{const V=he.dayjs(_,F);return{year:V.year(),month:V.month(),day:V.date()}}}),w)};c.onMount(()=>(window.addEventListener("message",Se,!1),()=>{w.removeEventListener("change",re),window.removeEventListener("message",Se)}));const ie=()=>{dd(a)},x=()=>de(),k=()=>be(),H=_=>Z(_);function ft(_){c.binding_callbacks[_?"unshift":"push"](()=>{w=_,e(10,w)})}const wr=_=>M(_);function Er(_){c.binding_callbacks[_?"unshift":"push"](()=>{E=_,e(9,E)})}return o.$$set=_=>{"endpoint"in _&&e(30,s=_.endpoint),"session"in _&&e(0,r=_.session),"userid"in _&&e(1,n=_.userid),"lang"in _&&e(2,a=_.lang),"gmversion"in _&&e(31,l=_.gmversion),"operator"in _&&e(3,d=_.operator),"supportemail"in _&&e(4,u=_.supportemail),"baseurl"in _&&e(5,h=_.baseurl),"clientstyling"in _&&e(6,p=_.clientstyling),"clientstylingurl"in _&&e(7,m=_.clientstylingurl),"mbsource"in _&&e(8,b=_.mbsource),"translationurl"in _&&e(32,f=_.translationurl),"hasconfirmationmodal"in _&&e(33,g=_.hasconfirmationmodal),"dateformat"in _&&e(34,y=_.dateformat),"sendnotificationemail"in _&&e(35,v=_.sendnotificationemail)},o.$$.update=()=>{o.$$.dirty[0]&4&&a&&ie(),o.$$.dirty[0]&1073741827|o.$$.dirty[1]&1&&s&&r&&n&&l&&_e(),o.$$.dirty[0]&1024&&w&&G(),o.$$.dirty[0]&576&&p&&E&&c.setClientStyling(E,p),o.$$.dirty[0]&640&&m&&E&&c.setClientStylingURL(E,m),o.$$.dirty[0]&768&&b&&E&&c.setStreamStyling(E,`${b}.Style`),o.$$.dirty[1]&2&&f&&me()},X&&Q(),[r,n,a,d,u,h,p,m,b,E,w,C,N,P,D,K,z,j,J,B,L,ae,i,F,se,X,be,Z,M,de,s,l,f,g,y,v,x,k,H,ft,wr,Er]}class xr extends c.SvelteComponent{constructor(t){super(),c.init(this,t,wd,xd,c.safe_not_equal,{endpoint:30,session:0,userid:1,lang:2,gmversion:31,operator:3,supportemail:4,baseurl:5,clientstyling:6,clientstylingurl:7,mbsource:8,translationurl:32,hasconfirmationmodal:33,dateformat:34,sendnotificationemail:35},ud,[-1,-1])}get endpoint(){return this.$$.ctx[30]}set endpoint(t){this.$$set({endpoint:t}),c.flush()}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),c.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),c.flush()}get lang(){return this.$$.ctx[2]}set lang(t){this.$$set({lang:t}),c.flush()}get gmversion(){return this.$$.ctx[31]}set gmversion(t){this.$$set({gmversion:t}),c.flush()}get operator(){return this.$$.ctx[3]}set operator(t){this.$$set({operator:t}),c.flush()}get supportemail(){return this.$$.ctx[4]}set supportemail(t){this.$$set({supportemail:t}),c.flush()}get baseurl(){return this.$$.ctx[5]}set baseurl(t){this.$$set({baseurl:t}),c.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(t){this.$$set({clientstyling:t}),c.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),c.flush()}get mbsource(){return this.$$.ctx[8]}set mbsource(t){this.$$set({mbsource:t}),c.flush()}get translationurl(){return this.$$.ctx[32]}set translationurl(t){this.$$set({translationurl:t}),c.flush()}get hasconfirmationmodal(){return this.$$.ctx[33]}set hasconfirmationmodal(t){this.$$set({hasconfirmationmodal:t}),c.flush()}get dateformat(){return this.$$.ctx[34]}set dateformat(t){this.$$set({dateformat:t}),c.flush()}get sendnotificationemail(){return this.$$.ctx[35]}set sendnotificationemail(t){this.$$set({sendnotificationemail:t}),c.flush()}}c.create_custom_element(xr,{endpoint:{},session:{},userid:{},lang:{},gmversion:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},hasconfirmationmodal:{},dateformat:{},sendnotificationemail:{}},[],[],!0);const Ed=Object.freeze(Object.defineProperty({__proto__:null,default:xr},Symbol.toStringTag,{value:"Module"}));exports.CustomParseFormat=yr;exports.PlayerAccountSelfExclusion_ce=Ed;
3555
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Zc(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Qc(this.inputElement,this._labelController)),this._tooltipController=new Zs(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(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}ce(ld);var vr={exports:{}};(function(o,t){(function(e,i){o.exports=i()})(c.commonjsGlobal,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},i=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d\d/,r=/\d\d?/,n=/\d*[^-_:/,()\s\d]+/,a={},l=function(f){return(f=+f)+(f>68?1900:2e3)},d=function(f){return function(g){this[f]=+g}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var y=g.match(/([+-]|\d\d)/g),v=60*y[1]+(+y[2]||0);return v===0?0:y[0]==="+"?-v:v}(f)}],h=function(f){var g=a[f];return g&&(g.indexOf?g:g.s.concat(g.f))},p=function(f,g){var y,v=a.meridiem;if(v){for(var E=1;E<=24;E+=1)if(f.indexOf(v(E,0,g))>-1){y=E>12;break}}else y=f===(g?"pm":"PM");return y},m={A:[n,function(f){this.afternoon=p(f,!1)}],a:[n,function(f){this.afternoon=p(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[s,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[s,d("day")],Do:[n,function(f){var g=a.ordinal,y=f.match(/\d+/);if(this.day=y[0],g)for(var v=1;v<=31;v+=1)g(v).replace(/\[|\]/g,"")===f&&(this.day=v)}],M:[r,d("month")],MM:[s,d("month")],MMM:[n,function(f){var g=h("months"),y=(h("monthsShort")||g.map(function(v){return v.slice(0,3)})).indexOf(f)+1;if(y<1)throw new Error;this.month=y%12||y}],MMMM:[n,function(f){var g=h("months").indexOf(f)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,d("year")],YY:[s,function(f){this.year=l(f)}],YYYY:[/\d{4}/,d("year")],Z:u,ZZ:u};function b(f){var g,y;g=f,y=a&&a.formats;for(var v=(f=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(N,P,D){var T=D&&D.toUpperCase();return P||y[D]||e[D]||y[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,z,te){return z||te.slice(1)})})).match(i),E=v.length,w=0;w<E;w+=1){var C=v[w],q=m[C],F=q&&q[0],R=q&&q[1];v[w]=R?{regex:F,parser:R}:C.replace(/^\[|\]$/g,"")}return function(N){for(var P={},D=0,T=0;D<E;D+=1){var K=v[D];if(typeof K=="string")T+=K.length;else{var z=K.regex,te=K.parser,se=N.slice(T),j=z.exec(se)[0];te.call(P,j),N=N.replace(j,"")}}return function(J){var B=J.afternoon;if(B!==void 0){var L=J.hours;B?L<12&&(J.hours+=12):L===12&&(J.hours=0),delete J.afternoon}}(P),P}}return function(f,g,y){y.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(l=f.parseTwoDigitYear);var v=g.prototype,E=v.parse;v.parse=function(w){var C=w.date,q=w.utc,F=w.args;this.$u=q;var R=F[1];if(typeof R=="string"){var N=F[2]===!0,P=F[3]===!0,D=N||P,T=F[2];P&&(T=F[2]),a=this.$locale(),!N&&T&&(a=y.Ls[T]),this.$d=function(se,j,J){try{if(["x","X"].indexOf(j)>-1)return new Date((j==="X"?1e3:1)*se);var B=b(j)(se),L=B.year,X=B.month,ae=B.day,me=B.hours,_e=B.minutes,Se=B.seconds,ge=B.milliseconds,be=B.zone,Z=new Date,Q=ae||(L||X?1:Z.getDate()),M=L||Z.getFullYear(),O=0;L&&!X||(O=X>0?X-1:Z.getMonth());var de=me||0,re=_e||0,G=Se||0,ie=ge||0;return be?new Date(Date.UTC(M,O,Q,de,re,G,ie+60*be.offset*1e3)):J?new Date(Date.UTC(M,O,Q,de,re,G,ie)):new Date(M,O,Q,de,re,G,ie)}catch(x){return new Date("")}}(C,R,q),this.init(),T&&T!==!0&&(this.$L=this.locale(T).$L),D&&C!=this.format(R)&&(this.$d=new Date("")),a={}}else if(R instanceof Array)for(var K=R.length,z=1;z<=K;z+=1){F[1]=R[z-1];var te=y.apply(this,F);if(te.isValid()){this.$d=te.$d,this.$L=te.$L,this.init();break}z===K&&(this.$d=new Date(""))}else E.call(this,w)}}})})(vr);var cd=vr.exports;const yr=c.getDefaultExportFromCjs(cd);function Bo(o,t){c.addMessages(o,t)}function dd(o){c.$locale.set(o)}const Ho={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor2Months:"2 Months",SelfExclusionFor3Months:"3 Months",SelfExclusionFor6Months:"6 Months",SelfExclusionFor7Months:"7 Months",SelfExclusionFor8Months:"8 Months",SelfExclusionFor9Months:"9 Months",SelfExclusionFor10Months:"10 Months",SelfExclusionFor11Months:"11 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor2Years:"2 Years",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriodSelfExclusion:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntilSelfExclusion:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"en-us":{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor2Months:"2 Months",SelfExclusionFor3Months:"3 Months",SelfExclusionFor6Months:"6 Months",SelfExclusionFor7Months:"7 Months",SelfExclusionFor8Months:"8 Months",SelfExclusionFor9Months:"9 Months",SelfExclusionFor10Months:"10 Months",SelfExclusionFor11Months:"11 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor2Years:"2 Years",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriodSelfExclusion:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntilSelfExclusion:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText:"<p>在自我排除期間,您的帳戶將完全受到限制。</br> 自我排除僅可在您選擇的期間結束後,通過與客戶支援聯繫進行解除,並將接受審查和冷靜期。</br> 或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中暫停(最多6週)。</br> 如果您更願意關閉帳戶,可以通過'<a href='{baseurl}/{lang}/account/account-closure'>關閉帳戶</a>'選項進行關閉。</br> 我們建議您閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取進一步的建議。</p>",selfExclusionEmailText:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor2Months:"2個月",SelfExclusionFor3Months:"3個月",SelfExclusionFor6Months:"6個月",SelfExclusionFor7Months:"7個月",SelfExclusionFor8Months:"8個月",SelfExclusionFor9Months:"9個月",SelfExclusionFor10Months:"10個月",SelfExclusionFor11Months:"11個月",SelfExclusionFor1Year:"1年",SelfExclusionFor2Years:"2年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到",selfExclusionSuccess:"自我排斥活躍",confirmationModalTitle:"確認",confirmationModalTextPeriodSelfExclusion:"您確定要自我排除 {period} 嗎?",confirmationModalTextUntilSelfExclusion:"您確定要自我排除直到 {date} 嗎?",generalError:"提取自我排除时发生错误。",errorSelfExclusionCall:"发出自我排除请求时出现问题。",InvalidSession:"会话已过期。"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText:"<p>Pendant la période d'auto-exclusion, l'accès à votre compte sera entièrement restreint.</br> L'auto-exclusion ne peut être levée qu'après la période que vous avez sélectionnée et en contactant le Service Client, sous réserve d'une révision et d'une période de réflexion.</br> Alternativement, vous pouvez choisir de prendre un '<a href='{baseurl}/{lang}/account/timeout'>temps de pause</a>' (jusqu'à 6 semaines) via l'option correspondante.</br> Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br> Nous vous recommandons également de consulter nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu Responsable</a>' pour des conseils supplémentaires si nécessaire.</p>",selfExclusionEmailText:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor30Days:"30 Jours",SelfExclusionFor2Months:"2 Mois",SelfExclusionFor3Months:"3 Mois",SelfExclusionFor6Months:"6 Mois",SelfExclusionFor7Months:"7 Mois",SelfExclusionFor8Months:"8 Mois",SelfExclusionFor9Months:"9 Mois",SelfExclusionFor10Months:"10 Mois",SelfExclusionFor11Months:"11 Mois",SelfExclusionFor1Year:"1 An",SelfExclusionFor2Years:"2 Ans",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à",selfExclusionSuccess:"Auto exclusion active",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodSelfExclusion:"Êtes-vous sûr de vouloir vous auto-exclure pour {period} ?",confirmationModalTextUntilSelfExclusion:"Êtes-vous sûr de vouloir vous auto-exclure jusqu'au {date} ?",generalError:"Une erreur s'est produite lors de la récupération de l'auto-exclusion.",errorSelfExclusionCall:"Un problème est survenu lors de la demande d'auto-exclusion.",InvalidSession:"La session a expiré."},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText:"<p>În timpul perioadei de autoexcludere, accesul la contul dvs. va fi complet restricționat.</br> Autoexcluderea poate fi ridicată numai după ce perioada selectată de dvs. a expirat, contactând Suportul Clienți, și va fi supusă unei revizuiri și unei perioade de reflecție.</br> Alternativ, puteți alege să luați o '<a href='{baseurl}/{lang}/account/timeout'>pauză</a>' (o întrerupere de până la 6 săptămâni) prin opțiunea corespunzătoare.</br> Dacă preferați să vă închideți contul, puteți face acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br> Vă recomandăm, de asemenea, să consultați paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc Responsabil</a>' pentru sfaturi suplimentare, dacă este necesar.</p>",selfExclusionEmailText:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor30Days:"30 de Zile",SelfExclusionFor2Months:"2 Luni",SelfExclusionFor3Months:"3 Luni",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor7Months:"7 Luni",SelfExclusionFor8Months:"8 Luni",SelfExclusionFor9Months:"9 Luni",SelfExclusionFor10Months:"10 Luni",SelfExclusionFor11Months:"11 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor2Years:"2 Ani",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la",selfExclusionSuccess:"Auto-excludere activa",confirmationModalTitle:"Confirmare",confirmationModalTextPeriodSelfExclusion:"Sunteți sigur că doriți să vă auto-excludeți pentru {period}?",confirmationModalTextUntilSelfExclusion:"Sunteți sigur că doriți să vă auto-excludeți până la {date}?",generalError:"A apărut o eroare la preluarea auto-excluderii.",errorSelfExclusionCall:"A apărut o problemă la efectuarea cererii de auto-excludere.",InvalidSession:"Sesiunea a expirat."},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo se puede levantar después de que haya pasado el período seleccionado, comunicándose con Atención al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede optar por tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (un descanso de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos que lea nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor2Years:"2 Años",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto Exclusión activa.",confirmationModalTitle:"Confirmación",confirmationModalTextPeriodSelfExclusion:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntilSelfExclusion:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta estará totalmente restrito.</br> A autoexclusão só pode ser levantada após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a uma revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer uma '<a href='{baseurl}/{lang}/account/timeout'>pausa</a>' (um intervalo de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar a sua conta, pode fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia as nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriodSelfExclusion:"Tem a certeza de que deseja autoexcluir-se por {period}?",confirmationModalTextUntilSelfExclusion:"Tem a certeza de que deseja autoexcluir-se até {date}?",generalError:"Ocorreu um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Ocorreu um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText:"<p>Tijekom razdoblja samoisključenja, pristup vašem računu bit će potpuno ograničen.</br> Samoisključenje se može ukinuti tek nakon što istekne razdoblje koje ste odabrali, uz kontaktiranje Korisničke podrške, uz reviziju i razdoblje hlađenja.</br> Alternativno, možete odabrati '<a href='{baseurl}/{lang}/account/timeout'>stanku</a>' (pauzu do 6 tjedana) putem odgovarajuće opcije.</br> Ako radije želite zatvoriti svoj račun, to možete učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br> Također vam preporučujemo da pročitate naše stranice s pomoći o '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za dodatne savjete, ako su vam potrebni.</p>",selfExclusionEmailText:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor2Months:"2 Mjeseca",SelfExclusionFor3Months:"3 Mjeseca",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor7Months:"7 Mjeseci",SelfExclusionFor8Months:"8 Mjeseci",SelfExclusionFor9Months:"9 Mjeseci",SelfExclusionFor10Months:"10 Mjeseci",SelfExclusionFor11Months:"11 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor2Years:"2 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do",selfExclusionSuccess:"Aktivno samoisključivanje",confirmationModalTitle:"Potvrda",confirmationModalTextPeriodSelfExclusion:"Jeste li sigurni da se želite samoisključiti na {period}?",confirmationModalTextUntilSelfExclusion:"Jeste li sigurni da se želite samoisključiti do {date}?",generalError:"Došlo je do pogreške prilikom dohvaćanja samoisključenja.",errorSelfExclusionCall:"Došlo je do problema prilikom slanja zahtjeva za samoisključenje.",InvalidSession:"Sesija je istekla."},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta será completamente restrito.</br> A autoexclusão só pode ser removida após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer um '<a href='{baseurl}/{lang}/account/timeout'>intervalo</a>' (uma pausa de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar sua conta, você pode fazer isso através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriodSelfExclusion:"Você tem certeza de que deseja se autoexcluir por {period}?",confirmationModalTextUntilSelfExclusion:"Você tem certeza de que deseja se autoexcluir até {date}?",generalError:"Houve um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Houve um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo puede levantarse después de que haya pasado el período que seleccionó, comunicándose con el Servicio al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede elegir tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (una pausa de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo mediante la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos leer nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si lo necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto-exclusión activa",confirmationModalTitle:"Confirmación",confirmationModalTextPeriodSelfExclusion:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntilSelfExclusion:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText:"<p>Kendinizi dışlama süresince hesabınıza erişiminiz tamamen kısıtlanacaktır.</br> Kendinizi dışlama, yalnızca seçtiğiniz süre sona erdikten sonra, Müşteri Hizmetleri ile iletişime geçerek kaldırılabilir ve inceleme ile bir düşünme süresine tabi olacaktır.</br> Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Mola</a>' seçeneğiyle hizmetlerimizden (6 haftaya kadar bir ara) faydalanmayı tercih edebilirsiniz.</br> Hesabınızı kapatmayı tercih ederseniz, bunu '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla yapabilirsiniz.</br> Ayrıca, gerektiğinde daha fazla tavsiye almak için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Oyun</a>' yardım sayfalarımızı okumanızı öneririz.</p>",selfExclusionEmailText:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor2Months:"2 Ay",SelfExclusionFor3Months:"3 Ay",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor7Months:"7 Ay",SelfExclusionFor8Months:"8 Ay",SelfExclusionFor9Months:"9 Ay",SelfExclusionFor10Months:"10 Ay",SelfExclusionFor11Months:"11 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor2Years:"2 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar",selfExclusionSuccess:"Kendini dışlama etkin",confirmationModalTitle:"Onay",confirmationModalTextPeriodSelfExclusion:"{period} için kendinizi hariç tutmak istediğinizden emin misiniz?",confirmationModalTextUntilSelfExclusion:"{date} tarihine kadar kendinizi hariç tutmak istediğinizden emin misiniz?",generalError:"Kendi kendini dışlama alınırken bir hata oluştu.",errorSelfExclusionCall:"Kendi kendini dışlama isteği yapılırken bir sorun oluştu.",InvalidSession:"Oturum süresi doldu."}};function ud(o){c.append_styles(o,"svelte-st6cko",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionContainer{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));container-type:inline-size}.SelfExclusionContainer .SelfExclusionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:10px;max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.SelfExclusionContainer .SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionNotification{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionNotification.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionNotification .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px;min-height:180px}@container (max-width: 768px){.SelfExclusionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}.SelfExclusionDescription .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}}.SelfExclusionConfigWrapper{width:50%;height:100%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emw--color-white, #FFFFFF);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:600px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--color-primary, #23B04E);border-radius:var(--emw--border-radius-medium, 10px);padding:30px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF)}.SelfExclusionActionButtons .SelfExclusionSave:hover{color:white;background:var(--emw--color-primary);opacity:0.6}.SelfExclusionActionButtons .SelfExclusionSave:active{background:var(--emw--color-primary);opacity:0.6}.SelfExclusionActionButtons .SelfExclusionSave.active{cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924)}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function $o(o,t,e){const i=o.slice();return i[56]=t[e],i}function hd(o){let t,e,i,s,r=o[22]("titleSelfExclusion")+"",n,a,l,d,u=o[22]("selfExclusionText",{values:{operatorname:o[3],baseurl:o[5],lang:o[2]}})+"",h,p,m=o[22]("selfExclusionEmailText")+"",b,f,g,y,v,E,w,C,q,F=o[22](`${o[15]}`)+"",R,N,P,D,T,K,z,te,se,j,J,B,L,X=o[22]("save")+"",ae,me,_e,Se,ge,be,Z=o[24]&&fd(o),Q=c.ensure_array_like(o[11]),M=[];for(let x=0;x<Q.length;x+=1)M[x]=Yo($o(o,Q,x));let O=o[18]&&jo(o);function de(x,k){return x[17]?gd:x[19]?md:_d}let re=de(o),G=re(o),ie=o[25]&&bd(o);return{c(){t=c.element("div"),e=c.element("form"),Z&&Z.c(),i=c.space(),s=c.element("h2"),n=c.text(r),a=c.space(),l=c.element("div"),d=c.element("p"),h=c.space(),p=c.element("p"),b=c.text(m),f=c.space(),g=c.element("a"),y=c.text(o[4]),E=c.space(),w=c.element("div"),C=c.element("div"),q=c.element("p"),R=c.text(F),N=c.space(),P=c.svg_element("svg"),D=c.svg_element("g"),T=c.svg_element("path"),K=c.space(),z=c.element("div");for(let x=0;x<M.length;x+=1)M[x].c();te=c.space(),O&&O.c(),se=c.space(),j=c.element("div"),G.c(),J=c.space(),B=c.element("div"),L=c.element("button"),ae=c.text(X),Se=c.space(),ie&&ie.c(),c.attr(s,"class","PlayerSelfExclusionTitle "+(o[24]?"PlayerSelfExclusionTitleNone":"")),c.attr(d,"class","SelfExclusionDescriptionText"),c.attr(g,"href",v="mailto:"+o[4]),c.attr(p,"class","SelfExclusionDescriptionText"),c.attr(l,"class","SelfExclusionDescription "+(o[24]?"SelfExclusionDescriptionMobile":"")),c.attr(T,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),c.attr(T,"stroke-linecap","round"),c.attr(P,"xmlns","http://www.w3.org/2000/svg"),c.attr(P,"xmlns:xlink","http://www.w3.org/1999/xlink"),c.attr(P,"version","1.1"),c.attr(P,"viewBox","0 0 100 100"),c.attr(P,"xml:space","preserve"),c.attr(P,"class","SelfExclusionConfigIcon"),c.toggle_class(P,"active",o[20]),c.attr(C,"class","SelfExclusionConfigLabel"),c.attr(z,"class","SelfExclusionDropDown"),c.toggle_class(z,"active",o[20]),c.attr(w,"class","SelfExclusionConfigWrapper "+(o[24]?"SelfExclusionConfigWrapperMobile":"")),c.toggle_class(w,"active",o[20]),c.attr(j,"class","SelfExclusionDescription "+(o[24]?"SelfExclusionDescriptionMobile":"")),c.attr(L,"class",me="SelfExclusionSave "+(o[19]?"active":"")),L.disabled=_e=!o[19],c.attr(B,"class","SelfExclusionActionButtons "+(o[24]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[24]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(x,k){c.insert(x,t,k),c.append(t,e),Z&&Z.m(e,null),c.append(e,i),c.append(e,s),c.append(s,n),c.append(e,a),c.append(e,l),c.append(l,d),d.innerHTML=u,c.append(l,h),c.append(l,p),c.append(p,b),c.append(p,f),c.append(p,g),c.append(g,y),c.append(e,E),c.append(e,w),c.append(w,C),c.append(C,q),c.append(q,R),c.append(C,N),c.append(C,P),c.append(P,D),c.append(D,T),c.append(w,K),c.append(w,z);for(let H=0;H<M.length;H+=1)M[H]&&M[H].m(z,null);c.append(e,te),O&&O.m(e,null),c.append(e,se),c.append(e,j),G.m(j,null),c.append(e,J),c.append(e,B),c.append(B,L),c.append(L,ae),c.append(t,Se),ie&&ie.m(t,null),ge||(be=[c.listen(C,"click",o[37]),c.listen(L,"click",o[40])],ge=!0)},p(x,k){if(x[24]&&Z.p(x,k),k[0]&4194304&&r!==(r=x[22]("titleSelfExclusion")+"")&&c.set_data(n,r),k[0]&4194348&&u!==(u=x[22]("selfExclusionText",{values:{operatorname:x[3],baseurl:x[5],lang:x[2]}})+"")&&(d.innerHTML=u),k[0]&4194304&&m!==(m=x[22]("selfExclusionEmailText")+"")&&c.set_data(b,m),k[0]&16&&c.set_data(y,x[4]),k[0]&16&&v!==(v="mailto:"+x[4])&&c.attr(g,"href",v),k[0]&4227072&&F!==(F=x[22](`${x[15]}`)+"")&&c.set_data(R,F),k[0]&1048576&&c.toggle_class(P,"active",x[20]),k[0]&138414080){Q=c.ensure_array_like(x[11]);let H;for(H=0;H<Q.length;H+=1){const mt=$o(x,Q,H);M[H]?M[H].p(mt,k):(M[H]=Yo(mt),M[H].c(),M[H].m(z,null))}for(;H<M.length;H+=1)M[H].d(1);M.length=Q.length}k[0]&1048576&&c.toggle_class(z,"active",x[20]),k[0]&1048576&&c.toggle_class(w,"active",x[20]),x[18]?O?O.p(x,k):(O=jo(x),O.c(),O.m(e,se)):O&&(O.d(1),O=null),re===(re=de(x))&&G?G.p(x,k):(G.d(1),G=re(x),G&&(G.c(),G.m(j,null))),k[0]&4194304&&X!==(X=x[22]("save")+"")&&c.set_data(ae,X),k[0]&524288&&me!==(me="SelfExclusionSave "+(x[19]?"active":""))&&c.attr(L,"class",me),k[0]&524288&&_e!==(_e=!x[19])&&(L.disabled=_e),x[25]&&ie.p(x,k)},d(x){x&&c.detach(t),Z&&Z.d(),c.destroy_each(M,x),O&&O.d(),G.d(),ie&&ie.d(),ge=!1,c.run_all(be)}}}function pd(o){let t,e,i,s,r,n,a,l,d,u,h,p,m,b,f,g,y,v,E,w,C;function q(N,P){return N[24]?yd:vd}let R=q(o)(o);return{c(){t=c.element("div"),e=c.element("div"),R.c(),i=c.space(),s=c.element("div"),r=c.element("ui-skeleton"),n=c.space(),a=c.element("div"),l=c.space(),d=c.element("ui-skeleton"),u=c.space(),h=c.element("div"),p=c.space(),m=c.element("div"),b=c.element("ui-skeleton"),f=c.space(),g=c.element("div"),y=c.space(),v=c.element("ui-skeleton"),E=c.space(),w=c.element("div"),C=c.element("ui-skeleton"),c.set_custom_element_data(r,"structure","text"),c.set_custom_element_data(r,"height",o[24]?"15px":"20px"),c.set_custom_element_data(r,"rows","6"),c.set_custom_element_data(r,"width","100%"),c.set_style(a,"height",o[24]?"10px":"20px"),c.set_custom_element_data(d,"structure","text"),c.set_custom_element_data(d,"height",o[24]?"15px":"20px"),c.set_custom_element_data(d,"width","30%"),c.set_style(h,"height","10px"),c.attr(s,"class","SelfExclusionDescription"),c.set_custom_element_data(b,"structure","rectangle"),c.set_custom_element_data(b,"width",o[24]?"100%":"50%"),c.set_custom_element_data(b,"height",o[24]?"30px":"44px"),c.set_style(g,"height",o[24]?"15px":"20px"),c.set_custom_element_data(v,"structure","text"),c.set_custom_element_data(v,"height",o[24]?"15px":"20px"),c.set_custom_element_data(v,"width","30%"),c.attr(m,"class","SelfExclusionConfig"),c.set_custom_element_data(C,"structure","rectangle"),c.set_custom_element_data(C,"width","100%"),c.set_custom_element_data(C,"height",o[24]?"35px":"50px"),c.attr(w,"class","SelfExclusionActionButtons "+(o[24]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(o[24]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(N,P){c.insert(N,t,P),c.append(t,e),R.m(e,null),c.append(e,i),c.append(e,s),c.append(s,r),c.append(s,n),c.append(s,a),c.append(s,l),c.append(s,d),c.append(s,u),c.append(s,h),c.append(e,p),c.append(e,m),c.append(m,b),c.append(m,f),c.append(m,g),c.append(m,y),c.append(m,v),c.append(e,E),c.append(e,w),c.append(w,C)},p:c.noop,d(N){N&&c.detach(t),R.d()}}}function fd(o){let t,e,i,s,r,n,a,l,d,u,h=o[22]("titleSelfExclusion")+"",p,m,b;return{c(){t=c.element("div"),e=c.svg_element("svg"),i=c.svg_element("defs"),s=c.svg_element("style"),r=c.text(".aaa{fill:var(--emw--color-primary, #22B04E);}"),n=c.svg_element("g"),a=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(a,"transform","translate(20 158)"),c.attr(n,"transform","translate(-20 -158)"),c.attr(e,"xmlns","http://www.w3.org/2000/svg"),c.attr(e,"width","15"),c.attr(e,"height","15"),c.attr(e,"viewBox","0 0 15 15"),c.attr(u,"class","PlayerSelfExclusionTitleMobile"),c.attr(t,"class","MenuReturnButton")},m(f,g){c.insert(f,t,g),c.append(t,e),c.append(e,i),c.append(i,s),c.append(s,r),c.append(e,n),c.append(n,a),c.append(a,l),c.append(t,d),c.append(t,u),c.append(u,p),m||(b=c.listen(t,"click",o[36]),m=!0)},p(f,g){g[0]&4194304&&h!==(h=f[22]("titleSelfExclusion")+"")&&c.set_data(p,h)},d(f){f&&c.detach(t),m=!1,b()}}}function Yo(o){let t,e=o[22](`${o[56].key}`)+"",i,s,r;function n(){return o[38](o[56])}return{c(){t=c.element("div"),i=c.text(e)},m(a,l){c.insert(a,t,l),c.append(t,i),s||(r=c.listen(t,"click",n),s=!0)},p(a,l){o=a,l[0]&4196352&&e!==(e=o[22](`${o[56].key}`)+"")&&c.set_data(i,e)},d(a){a&&c.detach(t),s=!1,r()}}}function jo(o){let t,e,i=o[22]("duration")+"",s,r,n,a=o[22]("dateInstructions")+"",l,d,u,h,p,m,b;return{c(){t=c.element("div"),e=c.element("label"),s=c.text(i),r=c.space(),n=c.element("span"),l=c.text(a),d=c.space(),u=c.element("strong"),h=c.text(o[23]),p=c.element("strong"),m=c.space(),b=c.element("vaadin-date-picker"),c.attr(e,"for","SelfExclusionDate"),c.attr(n,"class","SelfExclusionDateInstructions"),c.set_custom_element_data(b,"min",o[12]),c.set_custom_element_data(b,"max",o[13]),c.set_custom_element_data(b,"value",o[14]),c.attr(t,"class","SelfExclusionDateWrapper "+(o[24]?"SelfExclusionDateWrapperMobile":""))},m(f,g){c.insert(f,t,g),c.append(t,e),c.append(e,s),c.append(t,r),c.append(t,n),c.append(n,l),c.append(n,d),c.append(n,u),c.append(u,h),c.append(u,p),c.append(t,m),c.append(t,b),o[39](b)},p(f,g){g[0]&4194304&&i!==(i=f[22]("duration")+"")&&c.set_data(s,i),g[0]&4194304&&a!==(a=f[22]("dateInstructions")+"")&&c.set_data(l,a),g[0]&4096&&c.set_custom_element_data(b,"min",f[12]),g[0]&8192&&c.set_custom_element_data(b,"max",f[13]),g[0]&16384&&c.set_custom_element_data(b,"value",f[14])},d(f){f&&c.detach(t),o[39](null)}}}function md(o){let t,e,i=o[22]("temporarySelfExclusion",{values:{date:he.dayjs(o[14]).format(o[23])}})+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&4210688&&i!==(i=r[22]("temporarySelfExclusion",{values:{date:he.dayjs(r[14]).format(r[23])}})+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function _d(o){let t,e,i=o[22]("noPeriodSelected")+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&4194304&&i!==(i=r[22]("noPeriodSelected")+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function gd(o){let t,e,i=o[22]("permanentSelfExclusion")+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(i),c.attr(t,"class","SelfExclusionDescriptionText")},m(r,n){c.insert(r,t,n),c.append(t,e),c.append(e,s)},p(r,n){n[0]&4194304&&i!==(i=r[22]("permanentSelfExclusion")+"")&&c.set_data(s,i)},d(r){r&&c.detach(t)}}}function bd(o){let t,e,i,s;return{c(){t=c.element("player-account-modal"),e=c.element("player-account-general-confirmation-modal"),c.set_custom_element_data(e,"modaltitle",i=o[22]("confirmationModalTitle")),c.set_custom_element_data(e,"modaltext",o[16]),c.set_custom_element_data(e,"hascancelbutton",!1),c.set_custom_element_data(e,"modalconfirmevent",s={type:"setSelfExclusion",userid:o[1],selectedPeriodKey:o[15],session:o[0]}),c.set_custom_element_data(e,"mbsource",o[8]),c.set_custom_element_data(e,"lang",o[2]),c.set_custom_element_data(t,"clientstyling",o[6]),c.set_custom_element_data(t,"clientstylingurl",o[7]),c.set_custom_element_data(t,"mbsource",o[8]),c.set_custom_element_data(t,"showmodaleventname","ShowSelfExclusionConfirmationModal")},m(r,n){c.insert(r,t,n),c.append(t,e)},p(r,n){n[0]&4194304&&i!==(i=r[22]("confirmationModalTitle"))&&c.set_custom_element_data(e,"modaltitle",i),n[0]&65536&&c.set_custom_element_data(e,"modaltext",r[16]),n[0]&32771&&s!==(s={type:"setSelfExclusion",userid:r[1],selectedPeriodKey:r[15],session:r[0]})&&c.set_custom_element_data(e,"modalconfirmevent",s),n[0]&256&&c.set_custom_element_data(e,"mbsource",r[8]),n[0]&4&&c.set_custom_element_data(e,"lang",r[2]),n[0]&64&&c.set_custom_element_data(t,"clientstyling",r[6]),n[0]&128&&c.set_custom_element_data(t,"clientstylingurl",r[7]),n[0]&256&&c.set_custom_element_data(t,"mbsource",r[8])},d(r){r&&c.detach(t)}}}function vd(o){let t;return{c(){t=c.element("ui-skeleton"),c.set_custom_element_data(t,"structure","title"),c.set_custom_element_data(t,"width","100px"),c.set_custom_element_data(t,"margin-top","20px"),c.set_custom_element_data(t,"margin-bottom","20px")},m(e,i){c.insert(e,t,i)},d(e){e&&c.detach(t)}}}function yd(o){let t;return{c(){t=c.element("div"),t.innerHTML='<ui-skeleton structure="title" width="20px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton> <ui-skeleton structure="title" width="100px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton>',c.attr(t,"class","MenuReturnButton")},m(e,i){c.insert(e,t,i)},d(e){e&&c.detach(t)}}}function xd(o){let t;function e(r,n){return r[21]?pd:hd}let i=e(o),s=i(o);return{c(){t=c.element("div"),s.c()},m(r,n){c.insert(r,t,n),s.m(t,null),o[41](t)},p(r,n){i===(i=e(r))&&s?s.p(r,n):(s.d(1),s=i(r),s&&(s.c(),s.m(t,null)))},i:c.noop,o:c.noop,d(r){r&&c.detach(t),s.d(),o[41](null)}}}function wd(o,t,e){let i;c.component_subscribe(o,c.$format,_=>e(22,i=_)),he.dayjs.extend(yr);let{endpoint:s="",session:r="",userid:n="",lang:a="en",gmversion:l="",operator:d="Everymatrix",supportemail:u="",baseurl:h="",clientstyling:p="",clientstylingurl:m="",mbsource:b,translationurl:f="",hasconfirmationmodal:g="false",dateformat:y="DD/MM/YYYY",sendnotificationemail:v="false"}=t,E,w,C=[],q={},F=y.toUpperCase(),R=window.navigator.userAgent,N,P,D="",T="",K="selectAPeriod",z="",te="",se=c.getDevice(R)!=="PC",j=!1,J=!1,B=!1,L=!1,X=g==="true",ae=!0;const me=()=>{fetch(f).then(V=>V.json()).then(V=>{Object.keys(V).forEach(U=>{Bo(U,V[U])})}).catch(V=>{console.log(V)})};Object.keys(Ho).forEach(_=>{Bo(_,Ho[_])});const _e=()=>{let _=new URL(`${s}/v1/player/selfExclusionSettings`);fetch(_,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(U=>ge(U)).then(U=>{e(11,C=U.periods)}).catch(U=>{console.log(U),window.postMessage({type:"WidgetNotification",data:{type:"error",message:U.message}},window.location.href)}).finally(()=>{e(21,ae=!1)})},Se=_=>{_.data.type==="setSelfExclusion"&&(e(1,n=_.data.userid),e(15,K=_.data.selectedPeriodKey),e(0,r=_.data.session),O())},ge=_=>Ke(this,null,function*(){var V;if(!_.ok){q=yield _.json(),te=(V=q.thirdPartyResponse)==null?void 0:V.errorCode;const U=i(te||"generalError");throw new Error(U)}return _.json()}),be=()=>{e(20,L=!L)},Z=_=>{switch(T=_.text,e(15,K=_.key),e(19,B=!0),e(20,L=!1),e(17,j=!1),e(18,J=!1),T){case"Until":e(18,J=!0),e(12,N=he.dayjs().add(6,"months").format("YYYY-MM-DD")),e(13,P=he.dayjs().add(5,"years").format("YYYY-MM-DD")),e(14,D=N);break;case"Permanent":e(17,j=!j);break;default:const[V,U]=T.split(" "),Ae=U.includes("Day")?"days":U.includes("Month")?"months":U.includes("Year")?"years":null;if(!Ae)return;e(14,D=he.dayjs().add(Number(V),Ae).format("YYYY-MM-DD"));break}X&&Q()},Q=()=>{if(!X||!T||!D){e(16,z="");return}e(16,z=J?i("confirmationModalTextUntilSelfExclusion",{values:{date:he.dayjs(D).format(F)}}):i("confirmationModalTextPeriodSelfExclusion",{values:{period:i(T)}}))},M=_=>{_.preventDefault(),X?(Q(),window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href)):O()},O=()=>{e(21,ae=!0);const _=new URL(`${s}/v2/player/${n}/limits${l==="gm16"?"/session":""}`),U={method:"PUT",headers:{"X-SessionID":r,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({selfExclusion:{period:K,expiryDate:D,selfExclusionReason:"UserRequest",sendNotificationEmail:v==="true"}})};fetch(_.href,U).then(Ae=>ge(Ae)).then(Ae=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:i("selfExclusionSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href)}).catch(Ae=>{console.error(i("errorSelfExclusionCall"),Ae),window.postMessage({type:"WidgetNotification",data:{type:"error",message:i("errorSelfExclusionCall")}},window.location.href)}).finally(()=>{e(21,ae=!1)})},de=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:se},window.location.href)},re=_=>{e(14,D=_.target.value)},G=()=>{w.addEventListener("change",re,!1),e(10,w.i18n=gt(_t({},w.i18n),{formatDate:_=>he.dayjs(new Date(_.year,_.month,_.day)).format(F),parseDate:_=>{const V=he.dayjs(_,F);return{year:V.year(),month:V.month(),day:V.date()}}}),w)};c.onMount(()=>(window.addEventListener("message",Se,!1),()=>{w.removeEventListener("change",re),window.removeEventListener("message",Se)}));const ie=()=>{dd(a)},x=()=>de(),k=()=>be(),H=_=>Z(_);function mt(_){c.binding_callbacks[_?"unshift":"push"](()=>{w=_,e(10,w)})}const wr=_=>M(_);function Er(_){c.binding_callbacks[_?"unshift":"push"](()=>{E=_,e(9,E)})}return o.$$set=_=>{"endpoint"in _&&e(30,s=_.endpoint),"session"in _&&e(0,r=_.session),"userid"in _&&e(1,n=_.userid),"lang"in _&&e(2,a=_.lang),"gmversion"in _&&e(31,l=_.gmversion),"operator"in _&&e(3,d=_.operator),"supportemail"in _&&e(4,u=_.supportemail),"baseurl"in _&&e(5,h=_.baseurl),"clientstyling"in _&&e(6,p=_.clientstyling),"clientstylingurl"in _&&e(7,m=_.clientstylingurl),"mbsource"in _&&e(8,b=_.mbsource),"translationurl"in _&&e(32,f=_.translationurl),"hasconfirmationmodal"in _&&e(33,g=_.hasconfirmationmodal),"dateformat"in _&&e(34,y=_.dateformat),"sendnotificationemail"in _&&e(35,v=_.sendnotificationemail)},o.$$.update=()=>{o.$$.dirty[0]&4&&a&&ie(),o.$$.dirty[0]&1073741827|o.$$.dirty[1]&1&&s&&r&&n&&l&&_e(),o.$$.dirty[0]&1024&&w&&G(),o.$$.dirty[0]&576&&p&&E&&c.setClientStyling(E,p),o.$$.dirty[0]&640&&m&&E&&c.setClientStylingURL(E,m),o.$$.dirty[0]&768&&b&&E&&c.setStreamStyling(E,`${b}.Style`),o.$$.dirty[1]&2&&f&&me()},X&&Q(),[r,n,a,d,u,h,p,m,b,E,w,C,N,P,D,K,z,j,J,B,L,ae,i,F,se,X,be,Z,M,de,s,l,f,g,y,v,x,k,H,mt,wr,Er]}class xr extends c.SvelteComponent{constructor(t){super(),c.init(this,t,wd,xd,c.safe_not_equal,{endpoint:30,session:0,userid:1,lang:2,gmversion:31,operator:3,supportemail:4,baseurl:5,clientstyling:6,clientstylingurl:7,mbsource:8,translationurl:32,hasconfirmationmodal:33,dateformat:34,sendnotificationemail:35},ud,[-1,-1])}get endpoint(){return this.$$.ctx[30]}set endpoint(t){this.$$set({endpoint:t}),c.flush()}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),c.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),c.flush()}get lang(){return this.$$.ctx[2]}set lang(t){this.$$set({lang:t}),c.flush()}get gmversion(){return this.$$.ctx[31]}set gmversion(t){this.$$set({gmversion:t}),c.flush()}get operator(){return this.$$.ctx[3]}set operator(t){this.$$set({operator:t}),c.flush()}get supportemail(){return this.$$.ctx[4]}set supportemail(t){this.$$set({supportemail:t}),c.flush()}get baseurl(){return this.$$.ctx[5]}set baseurl(t){this.$$set({baseurl:t}),c.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(t){this.$$set({clientstyling:t}),c.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),c.flush()}get mbsource(){return this.$$.ctx[8]}set mbsource(t){this.$$set({mbsource:t}),c.flush()}get translationurl(){return this.$$.ctx[32]}set translationurl(t){this.$$set({translationurl:t}),c.flush()}get hasconfirmationmodal(){return this.$$.ctx[33]}set hasconfirmationmodal(t){this.$$set({hasconfirmationmodal:t}),c.flush()}get dateformat(){return this.$$.ctx[34]}set dateformat(t){this.$$set({dateformat:t}),c.flush()}get sendnotificationemail(){return this.$$.ctx[35]}set sendnotificationemail(t){this.$$set({sendnotificationemail:t}),c.flush()}}c.create_custom_element(xr,{endpoint:{},session:{},userid:{},lang:{},gmversion:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},hasconfirmationmodal:{},dateformat:{},sendnotificationemail:{}},[],[],!0);const Ed=Object.freeze(Object.defineProperty({__proto__:null,default:xr},Symbol.toStringTag,{value:"Module"}));exports.CustomParseFormat=yr;exports.PlayerAccountSelfExclusion_ce=Ed;