@everymatrix/player-account-controller 1.91.0 → 1.91.1

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 (137) hide show
  1. package/components/{GeneralLogout-CZx06fEj.cjs → GeneralLogout-DwUKWQEM.cjs} +1 -1
  2. package/components/{GeneralLogout-CfTLK2Bc.js → GeneralLogout-RtZ56Nn3.js} +1 -1
  3. package/components/{GeneralLogout-hD19E-Zw.js → GeneralLogout-WQPZo1XA.js} +1 -1
  4. package/components/{PlayerAccountBettingHistory-CktRMlqd.cjs → PlayerAccountBettingHistory-B73xqRDd.cjs} +1 -1
  5. package/components/{PlayerAccountBettingHistory-CA7auAML.js → PlayerAccountBettingHistory-CmbPT188.js} +1 -1
  6. package/components/{PlayerAccountBettingHistory-DqxCb3Vd.js → PlayerAccountBettingHistory-CvFZhJr5.js} +1 -1
  7. package/components/{PlayerAccountBiometrics-_e_GPij0.cjs → PlayerAccountBiometrics-8QlKdliQ.cjs} +1 -1
  8. package/components/{PlayerAccountBiometrics-BkD_4qfK.js → PlayerAccountBiometrics-DPDH3rze.js} +2 -2
  9. package/components/{PlayerAccountBiometrics-SFhwP7hC.js → PlayerAccountBiometrics-NfD7xlui.js} +2 -2
  10. package/components/{PlayerAccountBiometricsAction-BNbtq7KV.js → PlayerAccountBiometricsAction-Cerl0hxM.js} +1 -1
  11. package/components/{PlayerAccountBiometricsAction-1lBtdXlm.js → PlayerAccountBiometricsAction-DfVIWqGO.js} +1 -1
  12. package/components/{PlayerAccountBiometricsAction-y4GZTxcT.cjs → PlayerAccountBiometricsAction-oyPYqpGN.cjs} +1 -1
  13. package/components/{PlayerAccountClosure-BicB6rYD.js → PlayerAccountClosure-CaVbfY7o.js} +1 -1
  14. package/components/{PlayerAccountClosure-BVmcfM4z.js → PlayerAccountClosure-DNkokDK1.js} +1 -1
  15. package/components/{PlayerAccountClosure-D7HxqU1N.cjs → PlayerAccountClosure-wcTZTC1v.cjs} +1 -1
  16. package/components/PlayerAccountController-DErgObNK.cjs +21 -0
  17. package/components/{PlayerAccountController-B1uYSIz3.js → PlayerAccountController-DG3KbTWa.js} +115 -111
  18. package/components/{PlayerAccountController-RTgAeQIt.js → PlayerAccountController-DyqNYFxa.js} +49 -45
  19. package/components/{PlayerAccountGamingLimits-9nxBFWJ_.js → PlayerAccountGamingLimits-C92dYqb3.js} +2 -2
  20. package/components/{PlayerAccountGamingLimits-8cX20yx0.js → PlayerAccountGamingLimits-Dr2DFwJy.js} +2 -2
  21. package/components/{PlayerAccountGamingLimits-Dx5_vi1Q.cjs → PlayerAccountGamingLimits-Ur_9kp2o.cjs} +1 -1
  22. package/components/{PlayerAccountGamingLimitsConfirmationModal-BF_ch2qb.cjs → PlayerAccountGamingLimitsConfirmationModal-BdKrgcP9.cjs} +1 -1
  23. package/components/{PlayerAccountGamingLimitsConfirmationModal-Y-C4A1I2.js → PlayerAccountGamingLimitsConfirmationModal-DzSs9Wlh.js} +15 -15
  24. package/components/{PlayerAccountGamingLimitsConfirmationModal-CJgc8OTg.js → PlayerAccountGamingLimitsConfirmationModal-JoLpq5Qd.js} +12 -12
  25. package/components/{PlayerAccountGamingLimitsGroupEdit-CEM4at0P.js → PlayerAccountGamingLimitsGroupEdit-C61nqLfa.js} +5 -5
  26. package/components/{PlayerAccountGamingLimitsGroupEdit-DejiPaBu.js → PlayerAccountGamingLimitsGroupEdit-CGPf2GzC.js} +5 -5
  27. package/components/{PlayerAccountGamingLimitsGroupEdit-D-yNkbWZ.cjs → PlayerAccountGamingLimitsGroupEdit-CQylV_LW.cjs} +1 -1
  28. package/components/{PlayerAccountGamingLimitsHistory2-BiTbzLOf.js → PlayerAccountGamingLimitsHistory2-BntJofdm.js} +1 -1
  29. package/components/{PlayerAccountGamingLimitsHistory2-320drqSz.js → PlayerAccountGamingLimitsHistory2-CEqiSFnd.js} +1 -1
  30. package/components/{PlayerAccountGamingLimitsHistory2-CJzOaUU_.cjs → PlayerAccountGamingLimitsHistory2-DJ-Cjyp1.cjs} +1 -1
  31. package/components/{PlayerAccountGamingLimitsInfoCard-DFDthU1l.js → PlayerAccountGamingLimitsInfoCard-Bzww1-RJ.js} +4 -4
  32. package/components/{PlayerAccountGamingLimitsInfoCard-oZ_FtdRr.cjs → PlayerAccountGamingLimitsInfoCard-CZcelMtY.cjs} +1 -1
  33. package/components/{PlayerAccountGamingLimitsInfoCard-DDu6HRZw.js → PlayerAccountGamingLimitsInfoCard-DnWRF2MA.js} +4 -4
  34. package/components/{PlayerAccountGamingLimitsPage2Gm16-DROry-l8.js → PlayerAccountGamingLimitsPage2Gm16-B-RLJAxy.js} +2 -2
  35. package/components/{PlayerAccountGamingLimitsPage2Gm16-CPTiY5Gi.js → PlayerAccountGamingLimitsPage2Gm16-BIphnM6Y.js} +2 -2
  36. package/components/{PlayerAccountGamingLimitsPage2Gm16-Cax6QJLC.cjs → PlayerAccountGamingLimitsPage2Gm16-CNA7QruD.cjs} +2 -2
  37. package/components/{PlayerAccountGamingLimitsPopup-Bkweu2PX.js → PlayerAccountGamingLimitsPopup-BdBRIFfU.js} +1 -1
  38. package/components/{PlayerAccountGamingLimitsPopup-D89lxHJp.js → PlayerAccountGamingLimitsPopup-CSLlyssM.js} +1 -1
  39. package/components/{PlayerAccountGamingLimitsPopup-D8YDDkab.cjs → PlayerAccountGamingLimitsPopup-o3iv0A6x.cjs} +1 -1
  40. package/components/{PlayerAccountGamingLimitsWrapper2-BT8njqvW.js → PlayerAccountGamingLimitsWrapper2-05u-l372.js} +3 -3
  41. package/components/{PlayerAccountGamingLimitsWrapper2-BGsrIa9G.cjs → PlayerAccountGamingLimitsWrapper2-DcQHUkFT.cjs} +1 -1
  42. package/components/{PlayerAccountGamingLimitsWrapper2-kXLXzvuq.js → PlayerAccountGamingLimitsWrapper2-DwZwd-hy.js} +3 -3
  43. package/components/{PlayerAccountGeneralConfirmationModal-DD6-ZM6O.cjs → PlayerAccountGeneralConfirmationModal-BbGVvtLY.cjs} +1 -1
  44. package/components/{PlayerAccountGeneralConfirmationModal-D_pYKyRi.js → PlayerAccountGeneralConfirmationModal-CjKLQaHH.js} +22 -22
  45. package/components/{PlayerAccountGeneralConfirmationModal-CUnk1KbD.js → PlayerAccountGeneralConfirmationModal-Cst4rd-S.js} +20 -20
  46. package/components/{PlayerAccountMenu-B3wxhtKr.cjs → PlayerAccountMenu-C3slbiux.cjs} +1 -1
  47. package/components/{PlayerAccountMenu-DK810GKe.js → PlayerAccountMenu-CdjH1gEW.js} +2 -2
  48. package/components/{PlayerAccountMenu-C2qI1Gjj.js → PlayerAccountMenu-Cr_HRHLF.js} +2 -2
  49. package/components/{PlayerAccountModal-CgbTqk4Z.js → PlayerAccountModal-BRWjYAGu.js} +36 -36
  50. package/components/{PlayerAccountModal-LSGvdqwB.js → PlayerAccountModal-C6p2KI7k.js} +39 -39
  51. package/components/{PlayerAccountModal-BqZx6Q1_.cjs → PlayerAccountModal-u6LegtfR.cjs} +1 -1
  52. package/components/{PlayerAccountNotifications-BQ9xn1VL.js → PlayerAccountNotifications-C2A1_LCL.js} +1 -1
  53. package/components/{PlayerAccountNotifications-CNdLGJFQ.cjs → PlayerAccountNotifications-QFoWBKny.cjs} +1 -1
  54. package/components/{PlayerAccountNotifications-u-d--KIi.js → PlayerAccountNotifications-tWE-aFjO.js} +1 -1
  55. package/components/{PlayerAccountProductRestriction-DzSoX2xT.js → PlayerAccountProductRestriction-B0Ri7MHw.js} +3 -3
  56. package/components/{PlayerAccountProductRestriction-hNSYwwQJ.js → PlayerAccountProductRestriction-DkDbBfka.js} +3 -3
  57. package/components/{PlayerAccountProductRestriction-DBZ66u9m.cjs → PlayerAccountProductRestriction-HHHbDtlq.cjs} +1 -1
  58. package/components/{PlayerAccountReviewFrequency-B1ken94Z.js → PlayerAccountReviewFrequency-CV609scj.js} +1 -1
  59. package/components/{PlayerAccountReviewFrequency-BhTI5ygr.cjs → PlayerAccountReviewFrequency-D9TTXGcO.cjs} +1 -1
  60. package/components/{PlayerAccountReviewFrequency-BwxBa9uB.js → PlayerAccountReviewFrequency-DpI_eJta.js} +1 -1
  61. package/components/{PlayerAccountSelfExclusion-BcTJOKLt.js → PlayerAccountSelfExclusion-B0jQ5C6c.js} +2 -2
  62. package/components/{PlayerAccountSelfExclusion-BEiUYvo8.cjs → PlayerAccountSelfExclusion-B9-rTgYV.cjs} +1 -1
  63. package/components/{PlayerAccountSelfExclusion-BgretRDx.js → PlayerAccountSelfExclusion-DoGu-Fe9.js} +2 -2
  64. package/components/{PlayerAccountTimeout-BQNMtPRB.cjs → PlayerAccountTimeout-Bi1R5_Rb.cjs} +9 -9
  65. package/components/{PlayerAccountTimeout-Dc8BBO2V.js → PlayerAccountTimeout-CJccgvCT.js} +137 -137
  66. package/components/{PlayerAccountTimeout-vy__wvIh.js → PlayerAccountTimeout-ojIglJPR.js} +137 -137
  67. package/components/{PlayerAccountTransactionsHistory-dOFdBYm7.js → PlayerAccountTransactionsHistory-Coa29LAd.js} +925 -877
  68. package/components/PlayerAccountTransactionsHistory-DUwj5lNk.cjs +4 -0
  69. package/components/{PlayerAccountTransactionsHistory-Co83Xe7f.js → PlayerAccountTransactionsHistory-DjwLYkfj.js} +1003 -955
  70. package/components/PlayerActiveBonuses-B65W7Wz0.js +1253 -0
  71. package/components/PlayerActiveBonuses-BBeMkdSY.cjs +4 -0
  72. package/components/PlayerActiveBonuses-Bx0uoqz4.js +1254 -0
  73. package/components/{PlayerBonusCard-CC3I7Uun.js → PlayerBonusCard-CbkfDKjT.js} +2 -2
  74. package/components/{PlayerBonusCard-BPNrGywL.js → PlayerBonusCard-CqeLHQ0G.js} +2 -2
  75. package/components/{PlayerBonusCard-ju9yDt9H.cjs → PlayerBonusCard-TMDOHvnL.cjs} +1 -1
  76. package/components/{PlayerBonusHistory-B6tJiRPL.js → PlayerBonusHistory-7zvs9Ym9.js} +852 -831
  77. package/components/{PlayerBonusHistory-BEcvSevy.js → PlayerBonusHistory-DwI1OKTw.js} +853 -832
  78. package/components/{PlayerBonusHistory-DBQ6rFhB.cjs → PlayerBonusHistory-Mjrhaj6a.cjs} +130 -130
  79. package/components/{PlayerChangePassword-TqYGnJRR.cjs → PlayerChangePassword-BmC4EyoL.cjs} +1 -1
  80. package/components/{PlayerChangePassword-oyX7WtIB.js → PlayerChangePassword-BqjLItv0.js} +1 -1
  81. package/components/{PlayerChangePassword-1DgloKUI.js → PlayerChangePassword-CfFZhaXQ.js} +1 -1
  82. package/components/{PlayerDeposit-Ae3zKmKx.js → PlayerDeposit-Ba0qJRp2.js} +1 -1
  83. package/components/{PlayerDeposit-B6wgBKOs.js → PlayerDeposit-DP8bCOdN.js} +1 -1
  84. package/components/{PlayerDeposit-C5Q6t3-y.cjs → PlayerDeposit-o49phTHz.cjs} +1 -1
  85. package/components/{PlayerGamingHistory-C_lmfCru.js → PlayerGamingHistory-BgapmKYI.js} +41 -41
  86. package/components/{PlayerGamingHistory-B0n_kQiV.js → PlayerGamingHistory-DV6Slzt_.js} +42 -42
  87. package/components/{PlayerGamingHistory-DuE6DQ-m.cjs → PlayerGamingHistory-DvW-LsKl.cjs} +1 -1
  88. package/components/{PlayerPendingWithdrawals-BYWg7-_P.js → PlayerPendingWithdrawals-BZ62DYZ9.js} +1 -1
  89. package/components/{PlayerPendingWithdrawals-BqXkv2-Y.js → PlayerPendingWithdrawals-CedsWvDL.js} +1 -1
  90. package/components/{PlayerPendingWithdrawals-D0CqKeVG.cjs → PlayerPendingWithdrawals-HEjFhSrJ.cjs} +1 -1
  91. package/components/{PlayerProfileInfo-iRKwx8zy.js → PlayerProfileInfo-BDF3Bqtt.js} +1647 -1338
  92. package/components/{PlayerProfileInfo-DTNpqqu6.js → PlayerProfileInfo-DPDI61Mv.js} +1647 -1329
  93. package/components/PlayerProfileInfo-DXVRL3lh.cjs +4 -0
  94. package/components/{PlayerRealityCheck-DpLxecMn.js → PlayerRealityCheck-CLVunEKT.js} +22 -22
  95. package/components/{PlayerRealityCheck-q7yC_T2b.cjs → PlayerRealityCheck-CMZtzPkR.cjs} +1 -1
  96. package/components/{PlayerRealityCheck-BVugi2xm.js → PlayerRealityCheck-DgPTeJe_.js} +21 -21
  97. package/components/{PlayerTransactionHistory-DnU7U9r2.cjs → PlayerTransactionHistory-BEqLK737.cjs} +1 -1
  98. package/components/{PlayerTransactionHistory-DNgb0l0d.js → PlayerTransactionHistory-CHhOIZhh.js} +1 -1
  99. package/components/{PlayerTransactionHistory-BFLvQwa2.js → PlayerTransactionHistory-S0lzcu95.js} +1 -1
  100. package/components/{PlayerWithdrawal-DNO0w4Mf.js → PlayerWithdrawal-BqAC-Oq4.js} +1 -1
  101. package/components/{PlayerWithdrawal-BYEfF5HL.js → PlayerWithdrawal-C46pCXyV.js} +1 -1
  102. package/components/{PlayerWithdrawal-q2z7ub8O.cjs → PlayerWithdrawal-DKCRQ9pT.cjs} +1 -1
  103. package/components/QrSessionGenerator--jEOQTub.cjs +8 -0
  104. package/components/QrSessionGenerator-BkFSg0GV.js +1773 -0
  105. package/components/QrSessionGenerator-DgIh_dAl.js +1790 -0
  106. package/es2015/player-account-controller.cjs +1 -1
  107. package/es2015/player-account-controller.js +1 -1
  108. package/esnext/player-account-controller.js +1 -1
  109. package/package.json +1 -1
  110. package/stencil/{checkbox-group-input_16-DFnfVjZQ.js → checkbox-group-input_16-BClc1QAF.js} +2376 -2306
  111. package/stencil/{checkbox-group-input_16-BOlBVPuK.cjs → checkbox-group-input_16-BzGXxdU9.cjs} +249 -249
  112. package/stencil/{checkbox-group-input_16-CqrjL3Bm.js → checkbox-group-input_16-_13Kv9Zi.js} +2374 -2304
  113. package/stencil/{index-c666b6e6-CUrOCQZ4.cjs → index-7469517b-8Vfz7n3C.cjs} +1 -1
  114. package/stencil/{index-c666b6e6-D2XV3pxn.js → index-7469517b-Bmgiy_n-.js} +31 -31
  115. package/stencil/{index-c666b6e6-CKyPRY9v.js → index-7469517b-ulg1Qmdy.js} +32 -32
  116. package/stencil/{index-9c0f6c58-DEdG7mVW.js → index-9c0f6c58-CK57ve5P.js} +1 -1
  117. package/stencil/{index-9c0f6c58-Bd8abek0.cjs → index-9c0f6c58-DnbhPPTI.cjs} +1 -1
  118. package/stencil/{index-9c0f6c58-LdtWdXWH.js → index-9c0f6c58-P8h0R10S.js} +1 -1
  119. package/stencil/{pam-change-password-20667ec7-DxeS48v8.js → pam-change-password-259289fa-7sJvUi0P.js} +119 -76
  120. package/stencil/{pam-change-password-20667ec7-gdoPQSVy.cjs → pam-change-password-259289fa-CR3dv02q.cjs} +36 -2
  121. package/stencil/{pam-change-password-20667ec7-CdjcMbLl.js → pam-change-password-259289fa-DvjX931m.js} +119 -76
  122. package/stencil/pam-change-password-BiAsiO8l.js +25 -0
  123. package/stencil/pam-change-password-Dil_uhA4.js +7 -0
  124. package/stencil/pam-change-password-DnCN0UHR.cjs +1 -0
  125. package/stencil/{player-kyc-verification-BVyIvjQs.js → player-kyc-verification-C2xE1hLK.js} +126 -96
  126. package/stencil/player-kyc-verification-Cb647IzH.cjs +181 -0
  127. package/stencil/{player-kyc-verification-DaKmgzNJ.js → player-kyc-verification-mnYQMtSn.js} +135 -105
  128. package/components/PlayerAccountController-Cfjy33Ek.cjs +0 -21
  129. package/components/PlayerAccountTransactionsHistory-DmXGYQDM.cjs +0 -4
  130. package/components/PlayerActiveBonuses-CWQdnuVo.js +0 -1215
  131. package/components/PlayerActiveBonuses-Dp5ZJgik.cjs +0 -4
  132. package/components/PlayerActiveBonuses-v2Qt6nA5.js +0 -1214
  133. package/components/PlayerProfileInfo-C-J7FN_C.cjs +0 -4
  134. package/stencil/pam-change-password-B3-5i5W3.js +0 -25
  135. package/stencil/pam-change-password-Btjglzia.js +0 -7
  136. package/stencil/pam-change-password-DlEAZlEY.cjs +0 -1
  137. package/stencil/player-kyc-verification-Bq0WwkeW.cjs +0 -181
@@ -1,13 +1,13 @@
1
- "use strict";var ll=Object.defineProperty,dl=Object.defineProperties;var cl=Object.getOwnPropertyDescriptors;var So=Object.getOwnPropertySymbols;var ul=Object.prototype.hasOwnProperty,hl=Object.prototype.propertyIsEnumerable;var Oo=(i,e,t)=>e in i?ll(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,jr=(i,e)=>{for(var t in e||(e={}))ul.call(e,t)&&Oo(i,t,e[t]);if(So)for(var t of So(e))hl.call(e,t)&&Oo(i,t,e[t]);return i},Gr=(i,e)=>dl(i,cl(e));const c=require("./PlayerAccountController-Cfjy33Ek.cjs");require("./PlayerActiveBonuses-Dp5ZJgik.cjs");function Me(i){"@babel/helpers - typeof";return Me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(i)}function le(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function q(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function re(i){q(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||Me(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function pl(i,e){q(2,arguments);var t=re(i),r=le(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var o=t.getDate(),a=new Date(t.getTime());a.setMonth(t.getMonth()+r+1,0);var n=a.getDate();return o>=n?a:(t.setFullYear(a.getFullYear(),a.getMonth(),o),t)}function ml(i,e){q(2,arguments);var t=re(i).getTime(),r=le(e);return new Date(t+r)}var _l={};function gt(){return _l}function Wa(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}function fl(i){q(1,arguments);var e=re(i);return e.setHours(0,0,0,0),e}var vl=6e4,gl=36e5,bl=1e3;function yl(i){return q(1,arguments),i instanceof Date||Me(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function wl(i){if(q(1,arguments),!yl(i)&&typeof i!="number")return!1;var e=re(i);return!isNaN(Number(e))}function xl(i){q(1,arguments);var e=re(i);return e.setHours(23,59,59,999),e}function qa(i,e){q(2,arguments);var t=le(e);return ml(i,-t)}var Cl=864e5;function kl(i){q(1,arguments);var e=re(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),o=t-r;return Math.floor(o/Cl)+1}function pt(i){q(1,arguments);var e=1,t=re(i),r=t.getUTCDay(),o=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function Ya(i){q(1,arguments);var e=re(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var o=pt(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var n=pt(a);return e.getTime()>=o.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function El(i){q(1,arguments);var e=Ya(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=pt(t);return r}var Pl=6048e5;function ja(i){q(1,arguments);var e=re(i),t=pt(e).getTime()-El(e).getTime();return Math.round(t/Pl)+1}function Ze(i,e){var t,r,o,a,n,s,l,d;q(1,arguments);var u=gt(),h=le((t=(r=(o=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=re(i),m=p.getUTCDay(),b=(m<h?7:0)+m-h;return p.setUTCDate(p.getUTCDate()-b),p.setUTCHours(0,0,0,0),p}function Vi(i,e){var t,r,o,a,n,s,l,d;q(1,arguments);var u=re(i),h=u.getUTCFullYear(),p=gt(),m=le((t=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(h+1,0,m),b.setUTCHours(0,0,0,0);var w=Ze(b,e),x=new Date(0);x.setUTCFullYear(h,0,m),x.setUTCHours(0,0,0,0);var k=Ze(x,e);return u.getTime()>=w.getTime()?h+1:u.getTime()>=k.getTime()?h:h-1}function Al(i,e){var t,r,o,a,n,s,l,d;q(1,arguments);var u=gt(),h=le((t=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),p=Vi(i,e),m=new Date(0);m.setUTCFullYear(p,0,h),m.setUTCHours(0,0,0,0);var b=Ze(m,e);return b}var Tl=6048e5;function Ga(i,e){q(1,arguments);var t=re(i),r=Ze(t,e).getTime()-Al(t,e).getTime();return Math.round(r/Tl)+1}function R(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var Fe={y:function(e,t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return R(t==="yy"?o%100:o,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):R(r+1,2)},d:function(e,t){return R(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return R(e.getUTCHours()%12||12,t.length)},H:function(e,t){return R(e.getUTCHours(),t.length)},m:function(e,t){return R(e.getUTCMinutes(),t.length)},s:function(e,t){return R(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,o=e.getUTCMilliseconds(),a=Math.floor(o*Math.pow(10,r-3));return R(a,t.length)}},at={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Il={G:function(e,t,r){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var o=e.getUTCFullYear(),a=o>0?o:1-o;return r.ordinalNumber(a,{unit:"year"})}return Fe.y(e,t)},Y:function(e,t,r,o){var a=Vi(e,o),n=a>0?a:1-a;if(t==="YY"){var s=n%100;return R(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):R(n,t.length)},R:function(e,t){var r=Ya(e);return R(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return R(r,t.length)},Q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return R(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return R(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){var o=e.getUTCMonth();switch(t){case"M":case"MM":return Fe.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return R(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){var a=Ga(e,o);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):R(a,t.length)},I:function(e,t,r){var o=ja(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):R(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Fe.d(e,t)},D:function(e,t,r){var o=kl(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):R(o,t.length)},E:function(e,t,r){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){var a=e.getUTCDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return R(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){var a=e.getUTCDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return R(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var o=e.getUTCDay(),a=o===0?7:o;switch(t){case"i":return String(a);case"ii":return R(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){var o=e.getUTCHours(),a=o/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var o=e.getUTCHours(),a;switch(o===12?a=at.noon:o===0?a=at.midnight:a=o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var o=e.getUTCHours(),a;switch(o>=17?a=at.evening:o>=12?a=at.afternoon:o>=4?a=at.morning:a=at.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var o=e.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return Fe.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Fe.H(e,t)},K:function(e,t,r){var o=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):R(o,t.length)},k:function(e,t,r){var o=e.getUTCHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):R(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Fe.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Fe.s(e,t)},S:function(e,t){return Fe.S(e,t)},X:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return No(n);case"XXXX":case"XX":return Ke(n);case"XXXXX":case"XXX":default:return Ke(n,":")}},x:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"x":return No(n);case"xxxx":case"xx":return Ke(n);case"xxxxx":case"xxx":default:return Ke(n,":")}},O:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mo(n,":");case"OOOO":default:return"GMT"+Ke(n,":")}},z:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mo(n,":");case"zzzz":default:return"GMT"+Ke(n,":")}},t:function(e,t,r,o){var a=o._originalDate||e,n=Math.floor(a.getTime()/1e3);return R(n,t.length)},T:function(e,t,r,o){var a=o._originalDate||e,n=a.getTime();return R(n,t.length)}};function Mo(i,e){var t=i>0?"-":"+",r=Math.abs(i),o=Math.floor(r/60),a=r%60;if(a===0)return t+String(o);var n=e;return t+String(o)+n+R(a,2)}function No(i,e){if(i%60===0){var t=i>0?"-":"+";return t+R(Math.abs(i)/60,2)}return Ke(i,e)}function Ke(i,e){var t=e||"",r=i>0?"-":"+",o=Math.abs(i),a=R(Math.floor(o/60),2),n=R(o%60,2);return r+a+t+n}var zo=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Ka=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Dl=function(e,t){var r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return zo(e,t);var n;switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",zo(o,t)).replace("{{time}}",Ka(a,t))},ui={p:Ka,P:Dl},Sl=["D","DD"],Ol=["YY","YYYY"];function Xa(i){return Sl.indexOf(i)!==-1}function Qa(i){return Ol.indexOf(i)!==-1}function gr(i,e,t){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ml={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Nl=function(e,t,r){var o,a=Ml[e];return typeof a=="string"?o=a:t===1?o=a.one:o=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function Kr(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,r=i.formats[t]||i.formats[i.defaultWidth];return r}}var zl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Ll={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Bl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fl={date:Kr({formats:zl,defaultWidth:"full"}),time:Kr({formats:Ll,defaultWidth:"full"}),dateTime:Kr({formats:Bl,defaultWidth:"full"})},Vl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Rl=function(e,t,r,o){return Vl[e]};function Pt(i){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",o;if(r==="formatting"&&i.formattingValues){var a=i.defaultFormattingWidth||i.defaultWidth,n=t!=null&&t.width?String(t.width):a;o=i.formattingValues[n]||i.formattingValues[a]}else{var s=i.defaultWidth,l=t!=null&&t.width?String(t.width):i.defaultWidth;o=i.values[l]||i.values[s]}var d=i.argumentCallback?i.argumentCallback(e):e;return o[d]}}var Hl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$l={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ul={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Wl={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ql={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Yl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jl=function(e,t){var r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Gl={ordinalNumber:jl,era:Pt({values:Hl,defaultWidth:"wide"}),quarter:Pt({values:$l,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Pt({values:Ul,defaultWidth:"wide"}),day:Pt({values:Wl,defaultWidth:"wide"}),dayPeriod:Pt({values:ql,defaultWidth:"wide",formattingValues:Yl,defaultFormattingWidth:"wide"})};function At(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,o=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],a=e.match(o);if(!a)return null;var n=a[0],s=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],l=Array.isArray(s)?Xl(s,function(h){return h.test(n)}):Kl(s,function(h){return h.test(n)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var u=e.slice(n.length);return{value:d,rest:u}}}function Kl(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function Xl(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function Ql(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var o=r[0],a=e.match(i.parsePattern);if(!a)return null;var n=i.valueCallback?i.valueCallback(a[0]):a[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(o.length);return{value:n,rest:s}}}var Jl=/^(\d+)(th|st|nd|rd)?/i,Zl=/\d+/i,ed={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},td={any:[/^b/i,/^(a|c)/i]},rd={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},id={any:[/1/i,/2/i,/3/i,/4/i]},od={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ad={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},nd={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},sd={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ld={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},dd={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cd={ordinalNumber:Ql({matchPattern:Jl,parsePattern:Zl,valueCallback:function(e){return parseInt(e,10)}}),era:At({matchPatterns:ed,defaultMatchWidth:"wide",parsePatterns:td,defaultParseWidth:"any"}),quarter:At({matchPatterns:rd,defaultMatchWidth:"wide",parsePatterns:id,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:At({matchPatterns:od,defaultMatchWidth:"wide",parsePatterns:ad,defaultParseWidth:"any"}),day:At({matchPatterns:nd,defaultMatchWidth:"wide",parsePatterns:sd,defaultParseWidth:"any"}),dayPeriod:At({matchPatterns:ld,defaultMatchWidth:"any",parsePatterns:dd,defaultParseWidth:"any"})},Ja={code:"en-US",formatDistance:Nl,formatLong:Fl,formatRelative:Rl,localize:Gl,match:cd,options:{weekStartsOn:0,firstWeekContainsDate:1}},ud=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pd=/^'([^]*?)'?$/,md=/''/g,_d=/[a-zA-Z]/;function Te(i,e,t){var r,o,a,n,s,l,d,u,h,p,m,b,w,x;q(2,arguments);var k=String(e),E=gt(),B=(r=(o=void 0)!==null&&o!==void 0?o:E.locale)!==null&&r!==void 0?r:Ja,F=le((a=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:E.firstWeekContainsDate)!==null&&n!==void 0?n:(d=E.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(F>=1&&F<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=le((h=(p=(m=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&p!==void 0?p:(w=E.locale)===null||w===void 0||(x=w.options)===null||x===void 0?void 0:x.weekStartsOn)!==null&&h!==void 0?h:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!B.localize)throw new RangeError("locale must contain localize property");if(!B.formatLong)throw new RangeError("locale must contain formatLong property");var C=re(i);if(!wl(C))throw new RangeError("Invalid time value");var W=Wa(C),M=qa(C,W),ne={firstWeekContainsDate:F,weekStartsOn:O,locale:B,_originalDate:C},me=k.match(hd).map(function($){var Z=$[0];if(Z==="p"||Z==="P"){var de=ui[Z];return de($,B.formatLong)}return $}).join("").match(ud).map(function($){if($==="''")return"'";var Z=$[0];if(Z==="'")return fd($);var de=Il[Z];if(de)return Qa($)&&gr($,e,String(i)),Xa($)&&gr($,e,String(i)),de(M,$,B.localize,ne);if(Z.match(_d))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Z+"`");return $}).join("");return me}function fd(i){var e=i.match(pd);return e?e[1].replace(md,"'"):i}function vd(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);return i}function gd(i){return q(1,arguments),re(i).getFullYear()}function Lo(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function bd(i,e){if(i){if(typeof i=="string")return Lo(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Lo(i,e):void 0}}function Bo(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=bd(i))||e){t&&(i=t);var r=0,o=function(){};return{s:o,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,n=!0,s=!1;return{s:function(){t=t.call(i)},n:function(){var d=t.next();return n=d.done,d},e:function(d){s=!0,a=d},f:function(){try{n||t.return==null||t.return()}finally{if(s)throw a}}}}function v(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function hi(i,e){return hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},hi(i,e)}function N(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&hi(i,e)}function br(i){return br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},br(i)}function Za(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Za=function(){return!!i})()}function yd(i,e){if(e&&(Me(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(i)}function z(i){var e=Za();return function(){var t,r=br(i);if(e){var o=br(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return yd(this,t)}}function T(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function wd(i,e){if(Me(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e);if(Me(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function en(i){var e=wd(i,"string");return Me(e)=="symbol"?e:e+""}function xd(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,en(r.key),r)}}function I(i,e,t){return e&&xd(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function f(i,e,t){return(e=en(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var Cd=10,tn=function(){function i(){T(this,i),f(this,"priority",void 0),f(this,"subPriority",0)}return I(i,[{key:"validate",value:function(t,r){return!0}}]),i}(),kd=function(i){N(t,i);var e=z(t);function t(r,o,a,n,s){var l;return T(this,t),l=e.call(this),l.value=r,l.validateValue=o,l.setValue=a,l.priority=n,s&&(l.subPriority=s),l}return I(t,[{key:"validate",value:function(o,a){return this.validateValue(o,this.value,a)}},{key:"set",value:function(o,a,n){return this.setValue(o,a,this.value,n)}}]),t}(tn),Ed=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",Cd),f(v(r),"subPriority",-1),r}return I(t,[{key:"set",value:function(o,a){if(a.timestampIsSet)return o;var n=new Date(0);return n.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),n.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),n}}]),t}(tn),V=function(){function i(){T(this,i),f(this,"incompatibleTokens",void 0),f(this,"priority",void 0),f(this,"subPriority",void 0)}return I(i,[{key:"run",value:function(t,r,o,a){var n=this.parse(t,r,o,a);return n?{setter:new kd(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,o){return!0}}]),i}(),Pd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",140),f(v(r),"incompatibleTokens",["R","u","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"})||n.era(o,{width:"narrow"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})||n.era(o,{width:"abbreviated"})||n.era(o,{width:"narrow"})}}},{key:"set",value:function(o,a,n){return a.era=n,o.setUTCFullYear(n,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),X={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ke={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Q(i,e){return i&&{value:e(i.value),rest:i.rest}}function j(i,e){var t=e.match(i);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function Ee(i,e){var t=e.match(i);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,n=t[5]?parseInt(t[5],10):0;return{value:r*(o*gl+a*vl+n*bl),rest:e.slice(t[0].length)}}function rn(i){return j(X.anyDigitsSigned,i)}function G(i,e){switch(i){case 1:return j(X.singleDigit,e);case 2:return j(X.twoDigits,e);case 3:return j(X.threeDigits,e);case 4:return j(X.fourDigits,e);default:return j(new RegExp("^\\d{1,"+i+"}"),e)}}function yr(i,e){switch(i){case 1:return j(X.singleDigitSigned,e);case 2:return j(X.twoDigitsSigned,e);case 3:return j(X.threeDigitsSigned,e);case 4:return j(X.fourDigitsSigned,e);default:return j(new RegExp("^-?\\d{1,"+i+"}"),e)}}function Ri(i){switch(i){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function on(i,e){var t=e>0,r=t?e:1-e,o;if(r<=50)o=i||100;else{var a=r+50,n=Math.floor(a/100)*100,s=i>=a%100;o=i+n-(s?100:0)}return t?o:1-o}function an(i){return i%400===0||i%4===0&&i%100!==0}var Ad=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="yy"}};switch(a){case"y":return Q(G(4,o),s);case"yo":return Q(n.ordinalNumber(o,{unit:"year"}),s);default:return Q(G(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,n){var s=o.getUTCFullYear();if(n.isTwoDigitYear){var l=on(n.year,s);return o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}var d=!("era"in a)||a.era===1?n.year:1-n.year;return o.setUTCFullYear(d,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Td=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return Q(G(4,o),s);case"Yo":return Q(n.ordinalNumber(o,{unit:"year"}),s);default:return Q(G(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,n,s){var l=Vi(o,s);if(n.isTwoDigitYear){var d=on(n.year,l);return o.setUTCFullYear(d,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Ze(o,s)}var u=!("era"in a)||a.era===1?n.year:1-n.year;return o.setUTCFullYear(u,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Ze(o,s)}}]),t}(V),Id=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a){return yr(a==="R"?4:a.length,o)}},{key:"set",value:function(o,a,n){var s=new Date(0);return s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),pt(s)}}]),t}(V),Dd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a){return yr(a==="u"?4:a.length,o)}},{key:"set",value:function(o,a,n){return o.setUTCFullYear(n,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Sd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",120),f(v(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"Q":case"QQ":return G(a.length,o);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"})||n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})||n.quarter(o,{width:"abbreviated",context:"formatting"})||n.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,n){return o.setUTCMonth((n-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Od=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",120),f(v(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"q":case"qq":return G(a.length,o);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"})||n.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})||n.quarter(o,{width:"abbreviated",context:"standalone"})||n.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,n){return o.setUTCMonth((n-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Md=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),f(v(r),"priority",110),r}return I(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d-1};switch(a){case"M":return Q(j(X.month,o),s);case"MM":return Q(G(2,o),s);case"Mo":return Q(n.ordinalNumber(o,{unit:"month"}),s);case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"})||n.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})||n.month(o,{width:"abbreviated",context:"formatting"})||n.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){return o.setUTCMonth(n,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Nd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",110),f(v(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d-1};switch(a){case"L":return Q(j(X.month,o),s);case"LL":return Q(G(2,o),s);case"Lo":return Q(n.ordinalNumber(o,{unit:"month"}),s);case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"})||n.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})||n.month(o,{width:"abbreviated",context:"standalone"})||n.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){return o.setUTCMonth(n,1),o.setUTCHours(0,0,0,0),o}}]),t}(V);function zd(i,e,t){q(2,arguments);var r=re(i),o=le(e),a=Ga(r,t)-o;return r.setUTCDate(r.getUTCDate()-a*7),r}var Ld=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",100),f(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"w":return j(X.week,o);case"wo":return n.ordinalNumber(o,{unit:"week"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,n,s){return Ze(zd(o,n,s),s)}}]),t}(V);function Bd(i,e){q(2,arguments);var t=re(i),r=le(e),o=ja(t)-r;return t.setUTCDate(t.getUTCDate()-o*7),t}var Fd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",100),f(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"I":return j(X.week,o);case"Io":return n.ordinalNumber(o,{unit:"week"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,n){return pt(Bd(o,n))}}]),t}(V),Vd=[31,28,31,30,31,30,31,31,30,31,30,31],Rd=[31,29,31,30,31,30,31,31,30,31,30,31],Hd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"subPriority",1),f(v(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"d":return j(X.date,o);case"do":return n.ordinalNumber(o,{unit:"date"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){var n=o.getUTCFullYear(),s=an(n),l=o.getUTCMonth();return s?a>=1&&a<=Rd[l]:a>=1&&a<=Vd[l]}},{key:"set",value:function(o,a,n){return o.setUTCDate(n),o.setUTCHours(0,0,0,0),o}}]),t}(V),$d=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"subpriority",1),f(v(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"D":case"DD":return j(X.dayOfYear,o);case"Do":return n.ordinalNumber(o,{unit:"date"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){var n=o.getUTCFullYear(),s=an(n);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(o,a,n){return o.setUTCMonth(0,n),o.setUTCHours(0,0,0,0),o}}]),t}(V);function Hi(i,e,t){var r,o,a,n,s,l,d,u;q(2,arguments);var h=gt(),p=le((r=(o=(a=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&o!==void 0?o:(d=h.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=re(i),b=le(e),w=m.getUTCDay(),x=b%7,k=(x+7)%7,E=(k<p?7:0)+b-w;return m.setUTCDate(m.getUTCDate()+E),m}var Ud=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=Hi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(V),Wd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n,s){var l=function(u){var h=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+h};switch(a){case"e":case"ee":return Q(G(a.length,o),l);case"eo":return Q(n.ordinalNumber(o,{unit:"day"}),l);case"eee":return n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=Hi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(V),qd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n,s){var l=function(u){var h=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+h};switch(a){case"c":case"cc":return Q(G(a.length,o),l);case"co":return Q(n.ordinalNumber(o,{unit:"day"}),l);case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"})||n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})||n.day(o,{width:"abbreviated",context:"standalone"})||n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=Hi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(V);function Yd(i,e){q(2,arguments);var t=le(e);t%7===0&&(t=t-7);var r=1,o=re(i),a=o.getUTCDay(),n=t%7,s=(n+7)%7,l=(s<r?7:0)+t-a;return o.setUTCDate(o.getUTCDate()+l),o}var jd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d===0?7:d};switch(a){case"i":case"ii":return G(a.length,o);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return Q(n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s);case"iiiii":return Q(n.day(o,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Q(n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Q(n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(o,a){return a>=1&&a<=7}},{key:"set",value:function(o,a,n){return o=Yd(o,n),o.setUTCHours(0,0,0,0),o}}]),t}(V),Gd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",80),f(v(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"a":case"aa":case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(Ri(n),0,0,0),o}}]),t}(V),Kd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",80),f(v(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"b":case"bb":case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(Ri(n),0,0,0),o}}]),t}(V),Xd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",80),f(v(r),"incompatibleTokens",["a","b","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(Ri(n),0,0,0),o}}]),t}(V),Qd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["H","K","k","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"h":return j(X.hour12h,o);case"ho":return n.ordinalNumber(o,{unit:"hour"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=12}},{key:"set",value:function(o,a,n){var s=o.getUTCHours()>=12;return s&&n<12?o.setUTCHours(n+12,0,0,0):!s&&n===12?o.setUTCHours(0,0,0,0):o.setUTCHours(n,0,0,0),o}}]),t}(V),Jd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"H":return j(X.hour23h,o);case"Ho":return n.ordinalNumber(o,{unit:"hour"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=23}},{key:"set",value:function(o,a,n){return o.setUTCHours(n,0,0,0),o}}]),t}(V),Zd=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["h","H","k","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"K":return j(X.hour11h,o);case"Ko":return n.ordinalNumber(o,{unit:"hour"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){var s=o.getUTCHours()>=12;return s&&n<12?o.setUTCHours(n+12,0,0,0):o.setUTCHours(n,0,0,0),o}}]),t}(V),ec=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"k":return j(X.hour24h,o);case"ko":return n.ordinalNumber(o,{unit:"hour"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=24}},{key:"set",value:function(o,a,n){var s=n<=24?n%24:n;return o.setUTCHours(s,0,0,0),o}}]),t}(V),tc=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",60),f(v(r),"incompatibleTokens",["t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"m":return j(X.minute,o);case"mo":return n.ordinalNumber(o,{unit:"minute"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,n){return o.setUTCMinutes(n,0,0),o}}]),t}(V),rc=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",50),f(v(r),"incompatibleTokens",["t","T"]),r}return I(t,[{key:"parse",value:function(o,a,n){switch(a){case"s":return j(X.second,o);case"so":return n.ordinalNumber(o,{unit:"second"});default:return G(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,n){return o.setUTCSeconds(n,0),o}}]),t}(V),ic=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",30),f(v(r),"incompatibleTokens",["t","T"]),r}return I(t,[{key:"parse",value:function(o,a){var n=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return Q(G(a.length,o),n)}},{key:"set",value:function(o,a,n){return o.setUTCMilliseconds(n),o}}]),t}(V),oc=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",10),f(v(r),"incompatibleTokens",["t","T","x"]),r}return I(t,[{key:"parse",value:function(o,a){switch(a){case"X":return Ee(ke.basicOptionalMinutes,o);case"XX":return Ee(ke.basic,o);case"XXXX":return Ee(ke.basicOptionalSeconds,o);case"XXXXX":return Ee(ke.extendedOptionalSeconds,o);case"XXX":default:return Ee(ke.extended,o)}}},{key:"set",value:function(o,a,n){return a.timestampIsSet?o:new Date(o.getTime()-n)}}]),t}(V),ac=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",10),f(v(r),"incompatibleTokens",["t","T","X"]),r}return I(t,[{key:"parse",value:function(o,a){switch(a){case"x":return Ee(ke.basicOptionalMinutes,o);case"xx":return Ee(ke.basic,o);case"xxxx":return Ee(ke.basicOptionalSeconds,o);case"xxxxx":return Ee(ke.extendedOptionalSeconds,o);case"xxx":default:return Ee(ke.extended,o)}}},{key:"set",value:function(o,a,n){return a.timestampIsSet?o:new Date(o.getTime()-n)}}]),t}(V),nc=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",40),f(v(r),"incompatibleTokens","*"),r}return I(t,[{key:"parse",value:function(o){return rn(o)}},{key:"set",value:function(o,a,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(V),sc=function(i){N(t,i);var e=z(t);function t(){var r;T(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",20),f(v(r),"incompatibleTokens","*"),r}return I(t,[{key:"parse",value:function(o){return rn(o)}},{key:"set",value:function(o,a,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(V),lc={G:new Pd,y:new Ad,Y:new Td,R:new Id,u:new Dd,Q:new Sd,q:new Od,M:new Md,L:new Nd,w:new Ld,I:new Fd,d:new Hd,D:new $d,E:new Ud,e:new Wd,c:new qd,i:new jd,a:new Gd,b:new Kd,B:new Xd,h:new Qd,H:new Jd,K:new Zd,k:new ec,m:new tc,s:new rc,S:new ic,X:new oc,x:new ac,t:new nc,T:new sc},dc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,uc=/^'([^]*?)'?$/,hc=/''/g,pc=/\S/,mc=/[a-zA-Z]/;function pi(i,e,t,r){var o,a,n,s,l,d,u,h,p,m,b,w,x,k;q(3,arguments);var E=String(i),B=String(e),F=gt(),O=(o=(a=void 0)!==null&&a!==void 0?a:F.locale)!==null&&o!==void 0?o:Ja;if(!O.match)throw new RangeError("locale must contain match property");var C=le((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:F.firstWeekContainsDate)!==null&&s!==void 0?s:(u=F.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var W=le((p=(m=(b=(w=void 0)!==null&&w!==void 0?w:void 0)!==null&&b!==void 0?b:F.weekStartsOn)!==null&&m!==void 0?m:(x=F.locale)===null||x===void 0||(k=x.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&p!==void 0?p:0);if(!(W>=0&&W<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(B==="")return E===""?re(t):new Date(NaN);var M={firstWeekContainsDate:C,weekStartsOn:W,locale:O},ne=[new Ed],me=B.match(cc).map(function(K){var A=K[0];if(A in ui){var oe=ui[A];return oe(K,O.formatLong)}return K}).join("").match(dc),$=[],Z=Bo(me),de;try{var ze=function(){var A=de.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Qa(A)&&gr(A,B,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Xa(A)&&gr(A,B,i);var oe=A[0],qe=lc[oe];if(qe){var Ct=qe.incompatibleTokens;if(Array.isArray(Ct)){var ar=$.find(function(Et){return Ct.includes(Et.token)||Et.token===oe});if(ar)throw new RangeError("The format string mustn't contain `".concat(ar.fullToken,"` and `").concat(A,"` at the same time"))}else if(qe.incompatibleTokens==="*"&&$.length>0)throw new RangeError("The format string mustn't contain `".concat(A,"` and any other token at the same time"));$.push({token:oe,fullToken:A});var kt=qe.run(E,A,O.match,M);if(!kt)return{v:new Date(NaN)};ne.push(kt.setter),E=kt.rest}else{if(oe.match(mc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+oe+"`");if(A==="''"?A="'":oe==="'"&&(A=_c(A)),E.indexOf(A)===0)E=E.slice(A.length);else return{v:new Date(NaN)}}};for(Z.s();!(de=Z.n()).done;){var ue=ze();if(Me(ue)==="object")return ue.v}}catch(K){Z.e(K)}finally{Z.f()}if(E.length>0&&pc.test(E))return new Date(NaN);var Le=ne.map(function(K){return K.priority}).sort(function(K,A){return A-K}).filter(function(K,A,oe){return oe.indexOf(K)===A}).map(function(K){return ne.filter(function(A){return A.priority===K}).sort(function(A,oe){return oe.subPriority-A.subPriority})}).map(function(K){return K[0]}),ye=re(t);if(isNaN(ye.getTime()))return new Date(NaN);var ee=qa(ye,Wa(ye)),U={},Y=Bo(Le),xt;try{for(Y.s();!(xt=Y.n()).done;){var or=xt.value;if(!or.validate(ee,M))return new Date(NaN);var We=or.set(ee,U,M);Array.isArray(We)?(ee=We[0],vd(U,We[1])):ee=We}}catch(K){Y.e(K)}finally{Y.f()}return ee}function _c(i){return i.match(uc)[1].replace(hc,"'")}function nn(i,e){q(2,arguments);var t=le(e);return pl(i,-t)}function Fo(i,e){c.addMessages(i,e)}function fc(i){c.$locale.set(i)}const Vo={en:{titleBonusesHistory:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{titleBonusesHistory:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{titleBonusesHistory:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{titleBonusesHistory:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{titleBonusesHistory:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{titleBonusesHistory:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."},hr:{titleBonusesHistory:"Povijest bonusa",dateFrom:"Od:",dateTo:"Do:",dateFilter:"Filter",noBonusHistory:"Nemate bonusa u povijesti."},"pt-br":{titleBonusesHistory:"Histórico de bônus",dateFrom:"De:",dateTo:"PARA:",dateFilter:"Filtro",noBonusHistory:"Não há bônus para o período selecionado"},"es-mx":{titleBonusesHistory:"Historial de bonos",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene bonus para el periodo seleccionado"},tr:{titleBonusesHistory:"Bonus Geçmişi",dateFrom:"İtibaren:",dateTo:"İle:",dateFilter:"Filtre",noBonusHistory:"Seçilen dönem için bonusunuz yok."},"en-us":{titleBonusesHistory:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."}};var vc=Object.defineProperty,gc=Object.defineProperties,bc=Object.getOwnPropertyDescriptors,Ro=Object.getOwnPropertySymbols,yc=Object.prototype.hasOwnProperty,wc=Object.prototype.propertyIsEnumerable,mi=(i,e,t)=>e in i?vc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,wr=(i,e)=>{for(var t in e||(e={}))yc.call(e,t)&&mi(i,t,e[t]);if(Ro)for(var t of Ro(e))wc.call(e,t)&&mi(i,t,e[t]);return i},sn=(i,e)=>gc(i,bc(e)),se=(i,e,t)=>(mi(i,typeof e!="symbol"?e+"":e,t),t),xr=(i,e,t)=>new Promise((r,o)=>{var a=l=>{try{s(t.next(l))}catch(d){o(d)}},n=l=>{try{s(t.throw(l))}catch(d){o(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(i,e)).next())});/**
1
+ "use strict";var ll=Object.defineProperty,dl=Object.defineProperties;var cl=Object.getOwnPropertyDescriptors;var So=Object.getOwnPropertySymbols;var ul=Object.prototype.hasOwnProperty,hl=Object.prototype.propertyIsEnumerable;var Oo=(i,e,t)=>e in i?ll(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,jr=(i,e)=>{for(var t in e||(e={}))ul.call(e,t)&&Oo(i,t,e[t]);if(So)for(var t of So(e))hl.call(e,t)&&Oo(i,t,e[t]);return i},Gr=(i,e)=>dl(i,cl(e));const c=require("./PlayerAccountController-DErgObNK.cjs");require("./PlayerActiveBonuses-BBeMkdSY.cjs");function Me(i){"@babel/helpers - typeof";return Me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(i)}function ce(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function q(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function oe(i){q(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||Me(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function pl(i,e){q(2,arguments);var t=oe(i),r=ce(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var o=t.getDate(),a=new Date(t.getTime());a.setMonth(t.getMonth()+r+1,0);var n=a.getDate();return o>=n?a:(t.setFullYear(a.getFullYear(),a.getMonth(),o),t)}function ml(i,e){q(2,arguments);var t=oe(i).getTime(),r=ce(e);return new Date(t+r)}var _l={};function gt(){return _l}function Wa(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}function fl(i){q(1,arguments);var e=oe(i);return e.setHours(0,0,0,0),e}var vl=6e4,gl=36e5,bl=1e3;function yl(i){return q(1,arguments),i instanceof Date||Me(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function wl(i){if(q(1,arguments),!yl(i)&&typeof i!="number")return!1;var e=oe(i);return!isNaN(Number(e))}function xl(i){q(1,arguments);var e=oe(i);return e.setHours(23,59,59,999),e}function qa(i,e){q(2,arguments);var t=ce(e);return ml(i,-t)}var Cl=864e5;function kl(i){q(1,arguments);var e=oe(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),o=t-r;return Math.floor(o/Cl)+1}function pt(i){q(1,arguments);var e=1,t=oe(i),r=t.getUTCDay(),o=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-o),t.setUTCHours(0,0,0,0),t}function Ya(i){q(1,arguments);var e=oe(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var o=pt(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var n=pt(a);return e.getTime()>=o.getTime()?t+1:e.getTime()>=n.getTime()?t:t-1}function El(i){q(1,arguments);var e=Ya(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=pt(t);return r}var Pl=6048e5;function ja(i){q(1,arguments);var e=oe(i),t=pt(e).getTime()-El(e).getTime();return Math.round(t/Pl)+1}function Ze(i,e){var t,r,o,a,n,s,l,d;q(1,arguments);var u=gt(),h=ce((t=(r=(o=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=oe(i),m=p.getUTCDay(),b=(m<h?7:0)+m-h;return p.setUTCDate(p.getUTCDate()-b),p.setUTCHours(0,0,0,0),p}function Vi(i,e){var t,r,o,a,n,s,l,d;q(1,arguments);var u=oe(i),h=u.getUTCFullYear(),p=gt(),m=ce((t=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(h+1,0,m),b.setUTCHours(0,0,0,0);var x=Ze(b,e),w=new Date(0);w.setUTCFullYear(h,0,m),w.setUTCHours(0,0,0,0);var C=Ze(w,e);return u.getTime()>=x.getTime()?h+1:u.getTime()>=C.getTime()?h:h-1}function Al(i,e){var t,r,o,a,n,s,l,d;q(1,arguments);var u=gt(),h=ce((t=(r=(o=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(n=e.locale)===null||n===void 0||(s=n.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),p=Vi(i,e),m=new Date(0);m.setUTCFullYear(p,0,h),m.setUTCHours(0,0,0,0);var b=Ze(m,e);return b}var Tl=6048e5;function Ga(i,e){q(1,arguments);var t=oe(i),r=Ze(t,e).getTime()-Al(t,e).getTime();return Math.round(r/Tl)+1}function $(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var Fe={y:function(e,t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return $(t==="yy"?o%100:o,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):$(r+1,2)},d:function(e,t){return $(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return $(e.getUTCHours()%12||12,t.length)},H:function(e,t){return $(e.getUTCHours(),t.length)},m:function(e,t){return $(e.getUTCMinutes(),t.length)},s:function(e,t){return $(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,o=e.getUTCMilliseconds(),a=Math.floor(o*Math.pow(10,r-3));return $(a,t.length)}},at={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Il={G:function(e,t,r){var o=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var o=e.getUTCFullYear(),a=o>0?o:1-o;return r.ordinalNumber(a,{unit:"year"})}return Fe.y(e,t)},Y:function(e,t,r,o){var a=Vi(e,o),n=a>0?a:1-a;if(t==="YY"){var s=n%100;return $(s,2)}return t==="Yo"?r.ordinalNumber(n,{unit:"year"}):$(n,t.length)},R:function(e,t){var r=Ya(e);return $(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return $(r,t.length)},Q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return $(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){var o=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return $(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){var o=e.getUTCMonth();switch(t){case"M":case"MM":return Fe.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){var o=e.getUTCMonth();switch(t){case"L":return String(o+1);case"LL":return $(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){var a=Ga(e,o);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):$(a,t.length)},I:function(e,t,r){var o=ja(e);return t==="Io"?r.ordinalNumber(o,{unit:"week"}):$(o,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Fe.d(e,t)},D:function(e,t,r){var o=kl(e);return t==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):$(o,t.length)},E:function(e,t,r){var o=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){var a=e.getUTCDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return $(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){var a=e.getUTCDay(),n=(a-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return $(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var o=e.getUTCDay(),a=o===0?7:o;switch(t){case"i":return String(a);case"ii":return $(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){var o=e.getUTCHours(),a=o/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var o=e.getUTCHours(),a;switch(o===12?a=at.noon:o===0?a=at.midnight:a=o/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var o=e.getUTCHours(),a;switch(o>=17?a=at.evening:o>=12?a=at.afternoon:o>=4?a=at.morning:a=at.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var o=e.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return Fe.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Fe.H(e,t)},K:function(e,t,r){var o=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(o,{unit:"hour"}):$(o,t.length)},k:function(e,t,r){var o=e.getUTCHours();return o===0&&(o=24),t==="ko"?r.ordinalNumber(o,{unit:"hour"}):$(o,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Fe.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Fe.s(e,t)},S:function(e,t){return Fe.S(e,t)},X:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return No(n);case"XXXX":case"XX":return Ke(n);case"XXXXX":case"XXX":default:return Ke(n,":")}},x:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"x":return No(n);case"xxxx":case"xx":return Ke(n);case"xxxxx":case"xxx":default:return Ke(n,":")}},O:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mo(n,":");case"OOOO":default:return"GMT"+Ke(n,":")}},z:function(e,t,r,o){var a=o._originalDate||e,n=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mo(n,":");case"zzzz":default:return"GMT"+Ke(n,":")}},t:function(e,t,r,o){var a=o._originalDate||e,n=Math.floor(a.getTime()/1e3);return $(n,t.length)},T:function(e,t,r,o){var a=o._originalDate||e,n=a.getTime();return $(n,t.length)}};function Mo(i,e){var t=i>0?"-":"+",r=Math.abs(i),o=Math.floor(r/60),a=r%60;if(a===0)return t+String(o);var n=e;return t+String(o)+n+$(a,2)}function No(i,e){if(i%60===0){var t=i>0?"-":"+";return t+$(Math.abs(i)/60,2)}return Ke(i,e)}function Ke(i,e){var t=e||"",r=i>0?"-":"+",o=Math.abs(i),a=$(Math.floor(o/60),2),n=$(o%60,2);return r+a+t+n}var zo=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Ka=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},Dl=function(e,t){var r=e.match(/(P+)(p+)?/)||[],o=r[1],a=r[2];if(!a)return zo(e,t);var n;switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"});break}return n.replace("{{date}}",zo(o,t)).replace("{{time}}",Ka(a,t))},ui={p:Ka,P:Dl},Sl=["D","DD"],Ol=["YY","YYYY"];function Xa(i){return Sl.indexOf(i)!==-1}function Qa(i){return Ol.indexOf(i)!==-1}function gr(i,e,t){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ml={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Nl=function(e,t,r){var o,a=Ml[e];return typeof a=="string"?o=a:t===1?o=a.one:o=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function Kr(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,r=i.formats[t]||i.formats[i.defaultWidth];return r}}var zl={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Bl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ll={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Fl={date:Kr({formats:zl,defaultWidth:"full"}),time:Kr({formats:Bl,defaultWidth:"full"}),dateTime:Kr({formats:Ll,defaultWidth:"full"})},Vl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Rl=function(e,t,r,o){return Vl[e]};function Pt(i){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",o;if(r==="formatting"&&i.formattingValues){var a=i.defaultFormattingWidth||i.defaultWidth,n=t!=null&&t.width?String(t.width):a;o=i.formattingValues[n]||i.formattingValues[a]}else{var s=i.defaultWidth,l=t!=null&&t.width?String(t.width):i.defaultWidth;o=i.values[l]||i.values[s]}var d=i.argumentCallback?i.argumentCallback(e):e;return o[d]}}var Hl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$l={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ul={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Wl={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ql={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Yl={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},jl=function(e,t){var r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Gl={ordinalNumber:jl,era:Pt({values:Hl,defaultWidth:"wide"}),quarter:Pt({values:$l,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Pt({values:Ul,defaultWidth:"wide"}),day:Pt({values:Wl,defaultWidth:"wide"}),dayPeriod:Pt({values:ql,defaultWidth:"wide",formattingValues:Yl,defaultFormattingWidth:"wide"})};function At(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,o=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],a=e.match(o);if(!a)return null;var n=a[0],s=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],l=Array.isArray(s)?Xl(s,function(h){return h.test(n)}):Kl(s,function(h){return h.test(n)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var u=e.slice(n.length);return{value:d,rest:u}}}function Kl(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function Xl(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function Ql(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var o=r[0],a=e.match(i.parsePattern);if(!a)return null;var n=i.valueCallback?i.valueCallback(a[0]):a[0];n=t.valueCallback?t.valueCallback(n):n;var s=e.slice(o.length);return{value:n,rest:s}}}var Jl=/^(\d+)(th|st|nd|rd)?/i,Zl=/\d+/i,ed={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},td={any:[/^b/i,/^(a|c)/i]},rd={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},id={any:[/1/i,/2/i,/3/i,/4/i]},od={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},ad={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},nd={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},sd={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ld={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},dd={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cd={ordinalNumber:Ql({matchPattern:Jl,parsePattern:Zl,valueCallback:function(e){return parseInt(e,10)}}),era:At({matchPatterns:ed,defaultMatchWidth:"wide",parsePatterns:td,defaultParseWidth:"any"}),quarter:At({matchPatterns:rd,defaultMatchWidth:"wide",parsePatterns:id,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:At({matchPatterns:od,defaultMatchWidth:"wide",parsePatterns:ad,defaultParseWidth:"any"}),day:At({matchPatterns:nd,defaultMatchWidth:"wide",parsePatterns:sd,defaultParseWidth:"any"}),dayPeriod:At({matchPatterns:ld,defaultMatchWidth:"any",parsePatterns:dd,defaultParseWidth:"any"})},Ja={code:"en-US",formatDistance:Nl,formatLong:Fl,formatRelative:Rl,localize:Gl,match:cd,options:{weekStartsOn:0,firstWeekContainsDate:1}},ud=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,hd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pd=/^'([^]*?)'?$/,md=/''/g,_d=/[a-zA-Z]/;function Te(i,e,t){var r,o,a,n,s,l,d,u,h,p,m,b,x,w;q(2,arguments);var C=String(e),k=gt(),F=(r=(o=void 0)!==null&&o!==void 0?o:k.locale)!==null&&r!==void 0?r:Ja,R=ce((a=(n=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:k.firstWeekContainsDate)!==null&&n!==void 0?n:(d=k.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var G=ce((h=(p=(m=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&m!==void 0?m:k.weekStartsOn)!==null&&p!==void 0?p:(x=k.locale)===null||x===void 0||(w=x.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&h!==void 0?h:0);if(!(G>=0&&G<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!F.localize)throw new RangeError("locale must contain localize property");if(!F.formatLong)throw new RangeError("locale must contain formatLong property");var N=oe(i);if(!wl(N))throw new RangeError("Invalid time value");var Q=Wa(N),K=qa(N,Q),H={firstWeekContainsDate:R,weekStartsOn:G,locale:F,_originalDate:N},E=C.match(hd).map(function(P){var T=P[0];if(T==="p"||T==="P"){var ae=ui[T];return ae(P,F.formatLong)}return P}).join("").match(ud).map(function(P){if(P==="''")return"'";var T=P[0];if(T==="'")return fd(P);var ae=Il[T];if(ae)return Qa(P)&&gr(P,e,String(i)),Xa(P)&&gr(P,e,String(i)),ae(K,P,F.localize,H);if(T.match(_d))throw new RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");return P}).join("");return E}function fd(i){var e=i.match(pd);return e?e[1].replace(md,"'"):i}function vd(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);return i}function gd(i){return q(1,arguments),oe(i).getFullYear()}function Bo(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function bd(i,e){if(i){if(typeof i=="string")return Bo(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Bo(i,e):void 0}}function Lo(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=bd(i))||e){t&&(i=t);var r=0,o=function(){};return{s:o,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,n=!0,s=!1;return{s:function(){t=t.call(i)},n:function(){var d=t.next();return n=d.done,d},e:function(d){s=!0,a=d},f:function(){try{n||t.return==null||t.return()}finally{if(s)throw a}}}}function v(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function hi(i,e){return hi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},hi(i,e)}function z(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&hi(i,e)}function br(i){return br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},br(i)}function Za(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Za=function(){return!!i})()}function yd(i,e){if(e&&(Me(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(i)}function B(i){var e=Za();return function(){var t,r=br(i);if(e){var o=br(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return yd(this,t)}}function D(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function wd(i,e){if(Me(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e);if(Me(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function en(i){var e=wd(i,"string");return Me(e)=="symbol"?e:e+""}function xd(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,en(r.key),r)}}function S(i,e,t){return e&&xd(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function f(i,e,t){return(e=en(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var Cd=10,tn=function(){function i(){D(this,i),f(this,"priority",void 0),f(this,"subPriority",0)}return S(i,[{key:"validate",value:function(t,r){return!0}}]),i}(),kd=function(i){z(t,i);var e=B(t);function t(r,o,a,n,s){var l;return D(this,t),l=e.call(this),l.value=r,l.validateValue=o,l.setValue=a,l.priority=n,s&&(l.subPriority=s),l}return S(t,[{key:"validate",value:function(o,a){return this.validateValue(o,this.value,a)}},{key:"set",value:function(o,a,n){return this.setValue(o,a,this.value,n)}}]),t}(tn),Ed=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",Cd),f(v(r),"subPriority",-1),r}return S(t,[{key:"set",value:function(o,a){if(a.timestampIsSet)return o;var n=new Date(0);return n.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),n.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),n}}]),t}(tn),V=function(){function i(){D(this,i),f(this,"incompatibleTokens",void 0),f(this,"priority",void 0),f(this,"subPriority",void 0)}return S(i,[{key:"run",value:function(t,r,o,a){var n=this.parse(t,r,o,a);return n?{setter:new kd(n.value,this.validate,this.set,this.priority,this.subPriority),rest:n.rest}:null}},{key:"validate",value:function(t,r,o){return!0}}]),i}(),Pd=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",140),f(v(r),"incompatibleTokens",["R","u","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"G":case"GG":case"GGG":return n.era(o,{width:"abbreviated"})||n.era(o,{width:"narrow"});case"GGGGG":return n.era(o,{width:"narrow"});case"GGGG":default:return n.era(o,{width:"wide"})||n.era(o,{width:"abbreviated"})||n.era(o,{width:"narrow"})}}},{key:"set",value:function(o,a,n){return a.era=n,o.setUTCFullYear(n,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Z={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ke={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ee(i,e){return i&&{value:e(i.value),rest:i.rest}}function j(i,e){var t=e.match(i);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function Ee(i,e){var t=e.match(i);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,o=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,n=t[5]?parseInt(t[5],10):0;return{value:r*(o*gl+a*vl+n*bl),rest:e.slice(t[0].length)}}function rn(i){return j(Z.anyDigitsSigned,i)}function X(i,e){switch(i){case 1:return j(Z.singleDigit,e);case 2:return j(Z.twoDigits,e);case 3:return j(Z.threeDigits,e);case 4:return j(Z.fourDigits,e);default:return j(new RegExp("^\\d{1,"+i+"}"),e)}}function yr(i,e){switch(i){case 1:return j(Z.singleDigitSigned,e);case 2:return j(Z.twoDigitsSigned,e);case 3:return j(Z.threeDigitsSigned,e);case 4:return j(Z.fourDigitsSigned,e);default:return j(new RegExp("^-?\\d{1,"+i+"}"),e)}}function Ri(i){switch(i){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function on(i,e){var t=e>0,r=t?e:1-e,o;if(r<=50)o=i||100;else{var a=r+50,n=Math.floor(a/100)*100,s=i>=a%100;o=i+n-(s?100:0)}return t?o:1-o}function an(i){return i%400===0||i%4===0&&i%100!==0}var Ad=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="yy"}};switch(a){case"y":return ee(X(4,o),s);case"yo":return ee(n.ordinalNumber(o,{unit:"year"}),s);default:return ee(X(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,n){var s=o.getUTCFullYear();if(n.isTwoDigitYear){var l=on(n.year,s);return o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}var d=!("era"in a)||a.era===1?n.year:1-n.year;return o.setUTCFullYear(d,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Td=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){var s=function(d){return{year:d,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return ee(X(4,o),s);case"Yo":return ee(n.ordinalNumber(o,{unit:"year"}),s);default:return ee(X(a.length,o),s)}}},{key:"validate",value:function(o,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(o,a,n,s){var l=Vi(o,s);if(n.isTwoDigitYear){var d=on(n.year,l);return o.setUTCFullYear(d,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Ze(o,s)}var u=!("era"in a)||a.era===1?n.year:1-n.year;return o.setUTCFullYear(u,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),Ze(o,s)}}]),t}(V),Id=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return S(t,[{key:"parse",value:function(o,a){return yr(a==="R"?4:a.length,o)}},{key:"set",value:function(o,a,n){var s=new Date(0);return s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0),pt(s)}}]),t}(V),Dd=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",130),f(v(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return S(t,[{key:"parse",value:function(o,a){return yr(a==="u"?4:a.length,o)}},{key:"set",value:function(o,a,n){return o.setUTCFullYear(n,0,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Sd=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",120),f(v(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"Q":case"QQ":return X(a.length,o);case"Qo":return n.ordinalNumber(o,{unit:"quarter"});case"QQQ":return n.quarter(o,{width:"abbreviated",context:"formatting"})||n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(o,{width:"wide",context:"formatting"})||n.quarter(o,{width:"abbreviated",context:"formatting"})||n.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,n){return o.setUTCMonth((n-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Od=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",120),f(v(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"q":case"qq":return X(a.length,o);case"qo":return n.ordinalNumber(o,{unit:"quarter"});case"qqq":return n.quarter(o,{width:"abbreviated",context:"standalone"})||n.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(o,{width:"wide",context:"standalone"})||n.quarter(o,{width:"abbreviated",context:"standalone"})||n.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=1&&a<=4}},{key:"set",value:function(o,a,n){return o.setUTCMonth((n-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Md=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),f(v(r),"priority",110),r}return S(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d-1};switch(a){case"M":return ee(j(Z.month,o),s);case"MM":return ee(X(2,o),s);case"Mo":return ee(n.ordinalNumber(o,{unit:"month"}),s);case"MMM":return n.month(o,{width:"abbreviated",context:"formatting"})||n.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(o,{width:"wide",context:"formatting"})||n.month(o,{width:"abbreviated",context:"formatting"})||n.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){return o.setUTCMonth(n,1),o.setUTCHours(0,0,0,0),o}}]),t}(V),Nd=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",110),f(v(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d-1};switch(a){case"L":return ee(j(Z.month,o),s);case"LL":return ee(X(2,o),s);case"Lo":return ee(n.ordinalNumber(o,{unit:"month"}),s);case"LLL":return n.month(o,{width:"abbreviated",context:"standalone"})||n.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(o,{width:"wide",context:"standalone"})||n.month(o,{width:"abbreviated",context:"standalone"})||n.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){return o.setUTCMonth(n,1),o.setUTCHours(0,0,0,0),o}}]),t}(V);function zd(i,e,t){q(2,arguments);var r=oe(i),o=ce(e),a=Ga(r,t)-o;return r.setUTCDate(r.getUTCDate()-a*7),r}var Bd=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",100),f(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"w":return j(Z.week,o);case"wo":return n.ordinalNumber(o,{unit:"week"});default:return X(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,n,s){return Ze(zd(o,n,s),s)}}]),t}(V);function Ld(i,e){q(2,arguments);var t=oe(i),r=ce(e),o=ja(t)-r;return t.setUTCDate(t.getUTCDate()-o*7),t}var Fd=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",100),f(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"I":return j(Z.week,o);case"Io":return n.ordinalNumber(o,{unit:"week"});default:return X(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=53}},{key:"set",value:function(o,a,n){return pt(Ld(o,n))}}]),t}(V),Vd=[31,28,31,30,31,30,31,31,30,31,30,31],Rd=[31,29,31,30,31,30,31,31,30,31,30,31],Hd=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"subPriority",1),f(v(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"d":return j(Z.date,o);case"do":return n.ordinalNumber(o,{unit:"date"});default:return X(a.length,o)}}},{key:"validate",value:function(o,a){var n=o.getUTCFullYear(),s=an(n),l=o.getUTCMonth();return s?a>=1&&a<=Rd[l]:a>=1&&a<=Vd[l]}},{key:"set",value:function(o,a,n){return o.setUTCDate(n),o.setUTCHours(0,0,0,0),o}}]),t}(V),$d=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"subpriority",1),f(v(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"D":case"DD":return j(Z.dayOfYear,o);case"Do":return n.ordinalNumber(o,{unit:"date"});default:return X(a.length,o)}}},{key:"validate",value:function(o,a){var n=o.getUTCFullYear(),s=an(n);return s?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(o,a,n){return o.setUTCMonth(0,n),o.setUTCHours(0,0,0,0),o}}]),t}(V);function Hi(i,e,t){var r,o,a,n,s,l,d,u;q(2,arguments);var h=gt(),p=ce((r=(o=(a=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&o!==void 0?o:(d=h.locale)===null||d===void 0||(u=d.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=oe(i),b=ce(e),x=m.getUTCDay(),w=b%7,C=(w+7)%7,k=(C<p?7:0)+b-x;return m.setUTCDate(m.getUTCDate()+k),m}var Ud=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"E":case"EE":case"EEE":return n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=Hi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(V),Wd=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n,s){var l=function(u){var h=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+h};switch(a){case"e":case"ee":return ee(X(a.length,o),l);case"eo":return ee(n.ordinalNumber(o,{unit:"day"}),l);case"eee":return n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=Hi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(V),qd=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n,s){var l=function(u){var h=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+h};switch(a){case"c":case"cc":return ee(X(a.length,o),l);case"co":return ee(n.ordinalNumber(o,{unit:"day"}),l);case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"})||n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})||n.day(o,{width:"abbreviated",context:"standalone"})||n.day(o,{width:"short",context:"standalone"})||n.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,a){return a>=0&&a<=6}},{key:"set",value:function(o,a,n,s){return o=Hi(o,n,s),o.setUTCHours(0,0,0,0),o}}]),t}(V);function Yd(i,e){q(2,arguments);var t=ce(e);t%7===0&&(t=t-7);var r=1,o=oe(i),a=o.getUTCDay(),n=t%7,s=(n+7)%7,l=(s<r?7:0)+t-a;return o.setUTCDate(o.getUTCDate()+l),o}var jd=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",90),f(v(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){var s=function(d){return d===0?7:d};switch(a){case"i":case"ii":return X(a.length,o);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return ee(n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s);case"iiiii":return ee(n.day(o,{width:"narrow",context:"formatting"}),s);case"iiiiii":return ee(n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s);case"iiii":default:return ee(n.day(o,{width:"wide",context:"formatting"})||n.day(o,{width:"abbreviated",context:"formatting"})||n.day(o,{width:"short",context:"formatting"})||n.day(o,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(o,a){return a>=1&&a<=7}},{key:"set",value:function(o,a,n){return o=Yd(o,n),o.setUTCHours(0,0,0,0),o}}]),t}(V),Gd=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",80),f(v(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"a":case"aa":case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(Ri(n),0,0,0),o}}]),t}(V),Kd=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",80),f(v(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"b":case"bb":case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(Ri(n),0,0,0),o}}]),t}(V),Xd=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",80),f(v(r),"incompatibleTokens",["a","b","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})||n.dayPeriod(o,{width:"abbreviated",context:"formatting"})||n.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,a,n){return o.setUTCHours(Ri(n),0,0,0),o}}]),t}(V),Qd=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["H","K","k","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"h":return j(Z.hour12h,o);case"ho":return n.ordinalNumber(o,{unit:"hour"});default:return X(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=12}},{key:"set",value:function(o,a,n){var s=o.getUTCHours()>=12;return s&&n<12?o.setUTCHours(n+12,0,0,0):!s&&n===12?o.setUTCHours(0,0,0,0):o.setUTCHours(n,0,0,0),o}}]),t}(V),Jd=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"H":return j(Z.hour23h,o);case"Ho":return n.ordinalNumber(o,{unit:"hour"});default:return X(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=23}},{key:"set",value:function(o,a,n){return o.setUTCHours(n,0,0,0),o}}]),t}(V),Zd=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["h","H","k","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"K":return j(Z.hour11h,o);case"Ko":return n.ordinalNumber(o,{unit:"hour"});default:return X(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=11}},{key:"set",value:function(o,a,n){var s=o.getUTCHours()>=12;return s&&n<12?o.setUTCHours(n+12,0,0,0):o.setUTCHours(n,0,0,0),o}}]),t}(V),ec=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",70),f(v(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"k":return j(Z.hour24h,o);case"ko":return n.ordinalNumber(o,{unit:"hour"});default:return X(a.length,o)}}},{key:"validate",value:function(o,a){return a>=1&&a<=24}},{key:"set",value:function(o,a,n){var s=n<=24?n%24:n;return o.setUTCHours(s,0,0,0),o}}]),t}(V),tc=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",60),f(v(r),"incompatibleTokens",["t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"m":return j(Z.minute,o);case"mo":return n.ordinalNumber(o,{unit:"minute"});default:return X(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,n){return o.setUTCMinutes(n,0,0),o}}]),t}(V),rc=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",50),f(v(r),"incompatibleTokens",["t","T"]),r}return S(t,[{key:"parse",value:function(o,a,n){switch(a){case"s":return j(Z.second,o);case"so":return n.ordinalNumber(o,{unit:"second"});default:return X(a.length,o)}}},{key:"validate",value:function(o,a){return a>=0&&a<=59}},{key:"set",value:function(o,a,n){return o.setUTCSeconds(n,0),o}}]),t}(V),ic=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",30),f(v(r),"incompatibleTokens",["t","T"]),r}return S(t,[{key:"parse",value:function(o,a){var n=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return ee(X(a.length,o),n)}},{key:"set",value:function(o,a,n){return o.setUTCMilliseconds(n),o}}]),t}(V),oc=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",10),f(v(r),"incompatibleTokens",["t","T","x"]),r}return S(t,[{key:"parse",value:function(o,a){switch(a){case"X":return Ee(ke.basicOptionalMinutes,o);case"XX":return Ee(ke.basic,o);case"XXXX":return Ee(ke.basicOptionalSeconds,o);case"XXXXX":return Ee(ke.extendedOptionalSeconds,o);case"XXX":default:return Ee(ke.extended,o)}}},{key:"set",value:function(o,a,n){return a.timestampIsSet?o:new Date(o.getTime()-n)}}]),t}(V),ac=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",10),f(v(r),"incompatibleTokens",["t","T","X"]),r}return S(t,[{key:"parse",value:function(o,a){switch(a){case"x":return Ee(ke.basicOptionalMinutes,o);case"xx":return Ee(ke.basic,o);case"xxxx":return Ee(ke.basicOptionalSeconds,o);case"xxxxx":return Ee(ke.extendedOptionalSeconds,o);case"xxx":default:return Ee(ke.extended,o)}}},{key:"set",value:function(o,a,n){return a.timestampIsSet?o:new Date(o.getTime()-n)}}]),t}(V),nc=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",40),f(v(r),"incompatibleTokens","*"),r}return S(t,[{key:"parse",value:function(o){return rn(o)}},{key:"set",value:function(o,a,n){return[new Date(n*1e3),{timestampIsSet:!0}]}}]),t}(V),sc=function(i){z(t,i);var e=B(t);function t(){var r;D(this,t);for(var o=arguments.length,a=new Array(o),n=0;n<o;n++)a[n]=arguments[n];return r=e.call.apply(e,[this].concat(a)),f(v(r),"priority",20),f(v(r),"incompatibleTokens","*"),r}return S(t,[{key:"parse",value:function(o){return rn(o)}},{key:"set",value:function(o,a,n){return[new Date(n),{timestampIsSet:!0}]}}]),t}(V),lc={G:new Pd,y:new Ad,Y:new Td,R:new Id,u:new Dd,Q:new Sd,q:new Od,M:new Md,L:new Nd,w:new Bd,I:new Fd,d:new Hd,D:new $d,E:new Ud,e:new Wd,c:new qd,i:new jd,a:new Gd,b:new Kd,B:new Xd,h:new Qd,H:new Jd,K:new Zd,k:new ec,m:new tc,s:new rc,S:new ic,X:new oc,x:new ac,t:new nc,T:new sc},dc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,uc=/^'([^]*?)'?$/,hc=/''/g,pc=/\S/,mc=/[a-zA-Z]/;function pi(i,e,t,r){var o,a,n,s,l,d,u,h,p,m,b,x,w,C;q(3,arguments);var k=String(i),F=String(e),R=gt(),G=(o=(a=void 0)!==null&&a!==void 0?a:R.locale)!==null&&o!==void 0?o:Ja;if(!G.match)throw new RangeError("locale must contain match property");var N=ce((n=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:R.firstWeekContainsDate)!==null&&s!==void 0?s:(u=R.locale)===null||u===void 0||(h=u.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(N>=1&&N<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Q=ce((p=(m=(b=(x=void 0)!==null&&x!==void 0?x:void 0)!==null&&b!==void 0?b:R.weekStartsOn)!==null&&m!==void 0?m:(w=R.locale)===null||w===void 0||(C=w.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&p!==void 0?p:0);if(!(Q>=0&&Q<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(F==="")return k===""?oe(t):new Date(NaN);var K={firstWeekContainsDate:N,weekStartsOn:Q,locale:G},H=[new Ed],E=F.match(cc).map(function(J){var I=J[0];if(I in ui){var se=ui[I];return se(J,G.formatLong)}return J}).join("").match(dc),P=[],T=Lo(E),ae;try{var ze=function(){var I=ae.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Qa(I)&&gr(I,F,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Xa(I)&&gr(I,F,i);var se=I[0],qe=lc[se];if(qe){var Ct=qe.incompatibleTokens;if(Array.isArray(Ct)){var ar=P.find(function(Et){return Ct.includes(Et.token)||Et.token===se});if(ar)throw new RangeError("The format string mustn't contain `".concat(ar.fullToken,"` and `").concat(I,"` at the same time"))}else if(qe.incompatibleTokens==="*"&&P.length>0)throw new RangeError("The format string mustn't contain `".concat(I,"` and any other token at the same time"));P.push({token:se,fullToken:I});var kt=qe.run(k,I,G.match,K);if(!kt)return{v:new Date(NaN)};H.push(kt.setter),k=kt.rest}else{if(se.match(mc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+se+"`");if(I==="''"?I="'":se==="'"&&(I=_c(I)),k.indexOf(I)===0)k=k.slice(I.length);else return{v:new Date(NaN)}}};for(T.s();!(ae=T.n()).done;){var he=ze();if(Me(he)==="object")return he.v}}catch(J){T.e(J)}finally{T.f()}if(k.length>0&&pc.test(k))return new Date(NaN);var Be=H.map(function(J){return J.priority}).sort(function(J,I){return I-J}).filter(function(J,I,se){return se.indexOf(J)===I}).map(function(J){return H.filter(function(I){return I.priority===J}).sort(function(I,se){return se.subPriority-I.subPriority})}).map(function(J){return J[0]}),ye=oe(t);if(isNaN(ye.getTime()))return new Date(NaN);var re=qa(ye,Wa(ye)),W={},Y=Lo(Be),xt;try{for(Y.s();!(xt=Y.n()).done;){var or=xt.value;if(!or.validate(re,K))return new Date(NaN);var We=or.set(re,W,K);Array.isArray(We)?(re=We[0],vd(W,We[1])):re=We}}catch(J){Y.e(J)}finally{Y.f()}return re}function _c(i){return i.match(uc)[1].replace(hc,"'")}function nn(i,e){q(2,arguments);var t=ce(e);return pl(i,-t)}function Fo(i,e){c.addMessages(i,e)}function fc(i){c.$locale.set(i)}const Vo={en:{titleBonusesHistory:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."},"zh-hk":{titleBonusesHistory:"獎金歷史",dateFrom:"從:",dateTo:"至:",dateFilter:"篩選",noBonusHistory:"您目前沒有獎金歷史。"},fr:{titleBonusesHistory:"Historique du bonus",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtre",noBonusHistory:"Vous n'avez pas d'historique de bonus pour le moment."},ro:{titleBonusesHistory:"Istoric bonusuri",dateFrom:"De la",dateTo:"La",dateFilter:"Filtru",noBonusHistory:"Nu ai bonusuri pentru perioada selectata."},es:{titleBonusesHistory:"Historial de Bonos",dateFrom:"Desde:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene Bonos para el periodo seleccionado."},pt:{titleBonusesHistory:"Histórico de bônus",dateFrom:"A partir de:",dateTo:"Para:",dateFilter:"Filtro:",noBonusHistory:"Você não tem histórico de bônus no momento."},hr:{titleBonusesHistory:"Povijest bonusa",dateFrom:"Od:",dateTo:"Do:",dateFilter:"Filter",noBonusHistory:"Nemate bonusa u povijesti."},"pt-br":{titleBonusesHistory:"Histórico de bônus",dateFrom:"De:",dateTo:"PARA:",dateFilter:"Filtro",noBonusHistory:"Não há bônus para o período selecionado"},"es-mx":{titleBonusesHistory:"Historial de bonos",dateFrom:"De:",dateTo:"A:",dateFilter:"Filtro",noBonusHistory:"No tiene bonus para el periodo seleccionado"},tr:{titleBonusesHistory:"Bonus Geçmişi",dateFrom:"İtibaren:",dateTo:"İle:",dateFilter:"Filtre",noBonusHistory:"Seçilen dönem için bonusunuz yok."},"en-us":{titleBonusesHistory:"Bonus History",dateFrom:"From:",dateTo:"To:",dateFilter:"Filter",noBonusHistory:"You have no bonuses for the selected period."}};var vc=Object.defineProperty,gc=Object.defineProperties,bc=Object.getOwnPropertyDescriptors,Ro=Object.getOwnPropertySymbols,yc=Object.prototype.hasOwnProperty,wc=Object.prototype.propertyIsEnumerable,mi=(i,e,t)=>e in i?vc(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,wr=(i,e)=>{for(var t in e||(e={}))yc.call(e,t)&&mi(i,t,e[t]);if(Ro)for(var t of Ro(e))wc.call(e,t)&&mi(i,t,e[t]);return i},sn=(i,e)=>gc(i,bc(e)),de=(i,e,t)=>(mi(i,typeof e!="symbol"?e+"":e,t),t),xr=(i,e,t)=>new Promise((r,o)=>{var a=l=>{try{s(t.next(l))}catch(d){o(d)}},n=l=>{try{s(t.throw(l))}catch(d){o(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,n);s((t=t.apply(i,e)).next())});/**
3
3
  * @license
4
4
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5
5
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
- */function P(i,e="24.5.10"){Object.defineProperty(i,"version",{get(){return e}});const t=customElements.get(i.is);if(!t)customElements.define(i.is,i);else{const r=t.version;r&&i.version&&r===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
6
+ */function A(i,e="24.5.10"){Object.defineProperty(i,"version",{get(){return e}});const t=customElements.get(i.is);if(!t)customElements.define(i.is,i);else{const r=t.version;r&&i.version&&r===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
7
7
  * @license
8
8
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9
9
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10
- */class xc extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}P(xc);/**
10
+ */class xc extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}A(xc);/**
11
11
  * @license
12
12
  * Copyright 2019 Google LLC
13
13
  * SPDX-License-Identifier: BSD-3-Clause
@@ -15,13 +15,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
15
15
  * @license
16
16
  * Copyright 2017 Google LLC
17
17
  * SPDX-License-Identifier: BSD-3-Clause
18
- */const{is:kc,defineProperty:Ec,getOwnPropertyDescriptor:Pc,getOwnPropertyNames:Ac,getOwnPropertySymbols:Tc,getPrototypeOf:Ic}=Object,mt=globalThis,Uo=mt.trustedTypes,Dc=Uo?Uo.emptyScript:"",Wo=mt.reactiveElementPolyfillSupport,Lt=(i,e)=>i,_i={toAttribute(i,e){switch(e){case Boolean:i=i?Dc:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(r){t=null}}return t}},dn=(i,e)=>!kc(i,e),qo={attribute:!0,type:String,converter:_i,reflect:!1,useDefault:!1,hasChanged:dn};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),mt.litPropertyMetadata!=null||(mt.litPropertyMetadata=new WeakMap);let st=class extends HTMLElement{static addInitializer(i){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,e=qo){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(i)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(i,e),!e.noAccessor){const t=Symbol(),r=this.getPropertyDescriptor(i,t,e);r!==void 0&&Ec(this.prototype,i,r)}}static getPropertyDescriptor(i,e,t){var r;const{get:o,set:a}=(r=Pc(this.prototype,i))!=null?r:{get(){return this[e]},set(n){this[e]=n}};return{get:o,set(n){const s=o==null?void 0:o.call(this);a==null||a.call(this,n),this.requestUpdate(i,s,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var e;return(e=this.elementProperties.get(i))!=null?e:qo}static _$Ei(){if(this.hasOwnProperty(Lt("elementProperties")))return;const i=Ic(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Lt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Lt("properties"))){const e=this.properties,t=[...Ac(e),...Tc(e)];for(const r of t)this.createProperty(r,e[r])}const i=this[Symbol.metadata];if(i!==null){const e=litPropertyMetadata.get(i);if(e!==void 0)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){const e=[];if(Array.isArray(i)){const t=new Set(i.flat(1/0).reverse());for(const r of t)e.unshift($o(r))}else i!==void 0&&e.push($o(i));return e}static _$Eu(i,e){const t=e.attribute;return t===!1?void 0:typeof t=="string"?t:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(e=>e(this))}addController(i){var e,t;((e=this._$EO)!=null?e:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((t=i.hostConnected)==null||t.call(i))}removeController(i){var e;(e=this._$EO)==null||e.delete(i)}_$E_(){const i=new Map,e=this.constructor.elementProperties;for(const t of e.keys())this.hasOwnProperty(t)&&(i.set(t,this[t]),delete this[t]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var i;const e=(i=this.shadowRoot)!=null?i:this.attachShadow(this.constructor.shadowRootOptions);return ln(e,this.constructor.elementStyles),e}connectedCallback(){var i;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(i=this._$EO)==null||i.forEach(e=>{var t;return(t=e.hostConnected)==null?void 0:t.call(e)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(e=>{var t;return(t=e.hostDisconnected)==null?void 0:t.call(e)})}attributeChangedCallback(i,e,t){this._$AK(i,t)}_$ET(i,e){var t;const r=this.constructor.elementProperties.get(i),o=this.constructor._$Eu(i,r);if(o!==void 0&&r.reflect===!0){const a=(((t=r.converter)==null?void 0:t.toAttribute)!==void 0?r.converter:_i).toAttribute(e,r.type);this._$Em=i,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$Em=null}}_$AK(i,e){var t,r,o;const a=this.constructor,n=a._$Eh.get(i);if(n!==void 0&&this._$Em!==n){const s=a.getPropertyOptions(n),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((t=s.converter)==null?void 0:t.fromAttribute)!==void 0?s.converter:_i;this._$Em=n;const d=l.fromAttribute(e,s.type);this[n]=(o=d!=null?d:(r=this._$Ej)==null?void 0:r.get(n))!=null?o:d,this._$Em=null}}requestUpdate(i,e,t,r=!1,o){var a,n;if(i!==void 0){const s=this.constructor;if(r===!1&&(o=this[i]),t!=null||(t=s.getPropertyOptions(i)),!(((a=t.hasChanged)!=null?a:dn)(o,e)||t.useDefault&&t.reflect&&o===((n=this._$Ej)==null?void 0:n.get(i))&&!this.hasAttribute(s._$Eu(i,t))))return;this.C(i,e,t)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(i,e,{useDefault:t,reflect:r,wrapped:o},a){var n,s,l;t&&!((n=this._$Ej)!=null?n:this._$Ej=new Map).has(i)&&(this._$Ej.set(i,(s=a!=null?a:e)!=null?s:this[i]),o!==!0||a!==void 0)||(this._$AL.has(i)||(this.hasUpdated||t||(e=void 0),this._$AL.set(i,e)),r===!0&&this._$Em!==i&&((l=this._$Eq)!=null?l:this._$Eq=new Set).add(i))}_$EP(){return xr(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const i=this.scheduleUpdate();return i!=null&&(yield i),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,a]of this._$Ep)this[o]=a;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[o,a]of r){const{wrapped:n}=a,s=this[o];n!==!0||this._$AL.has(o)||s===void 0||this.C(o,void 0,a,s)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(r=>{var o;return(o=r.hostUpdate)==null?void 0:o.call(r)}),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(i){}_$AE(i){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostUpdated)==null?void 0:r.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(i){}firstUpdated(i){}};var Yo;st.elementStyles=[],st.shadowRootOptions={mode:"open"},st[Lt("elementProperties")]=new Map,st[Lt("finalized")]=new Map,Wo==null||Wo({ReactiveElement:st}),((Yo=mt.reactiveElementVersions)!=null?Yo:mt.reactiveElementVersions=[]).push("2.1.2");/**
18
+ */const{is:kc,defineProperty:Ec,getOwnPropertyDescriptor:Pc,getOwnPropertyNames:Ac,getOwnPropertySymbols:Tc,getPrototypeOf:Ic}=Object,mt=globalThis,Uo=mt.trustedTypes,Dc=Uo?Uo.emptyScript:"",Wo=mt.reactiveElementPolyfillSupport,Bt=(i,e)=>i,_i={toAttribute(i,e){switch(e){case Boolean:i=i?Dc:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(r){t=null}}return t}},dn=(i,e)=>!kc(i,e),qo={attribute:!0,type:String,converter:_i,reflect:!1,useDefault:!1,hasChanged:dn};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),mt.litPropertyMetadata!=null||(mt.litPropertyMetadata=new WeakMap);let st=class extends HTMLElement{static addInitializer(i){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,e=qo){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(i)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(i,e),!e.noAccessor){const t=Symbol(),r=this.getPropertyDescriptor(i,t,e);r!==void 0&&Ec(this.prototype,i,r)}}static getPropertyDescriptor(i,e,t){var r;const{get:o,set:a}=(r=Pc(this.prototype,i))!=null?r:{get(){return this[e]},set(n){this[e]=n}};return{get:o,set(n){const s=o==null?void 0:o.call(this);a==null||a.call(this,n),this.requestUpdate(i,s,t)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){var e;return(e=this.elementProperties.get(i))!=null?e:qo}static _$Ei(){if(this.hasOwnProperty(Bt("elementProperties")))return;const i=Ic(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Bt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Bt("properties"))){const e=this.properties,t=[...Ac(e),...Tc(e)];for(const r of t)this.createProperty(r,e[r])}const i=this[Symbol.metadata];if(i!==null){const e=litPropertyMetadata.get(i);if(e!==void 0)for(const[t,r]of e)this.elementProperties.set(t,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){const e=[];if(Array.isArray(i)){const t=new Set(i.flat(1/0).reverse());for(const r of t)e.unshift($o(r))}else i!==void 0&&e.push($o(i));return e}static _$Eu(i,e){const t=e.attribute;return t===!1?void 0:typeof t=="string"?t:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(e=>e(this))}addController(i){var e,t;((e=this._$EO)!=null?e:this._$EO=new Set).add(i),this.renderRoot!==void 0&&this.isConnected&&((t=i.hostConnected)==null||t.call(i))}removeController(i){var e;(e=this._$EO)==null||e.delete(i)}_$E_(){const i=new Map,e=this.constructor.elementProperties;for(const t of e.keys())this.hasOwnProperty(t)&&(i.set(t,this[t]),delete this[t]);i.size>0&&(this._$Ep=i)}createRenderRoot(){var i;const e=(i=this.shadowRoot)!=null?i:this.attachShadow(this.constructor.shadowRootOptions);return ln(e,this.constructor.elementStyles),e}connectedCallback(){var i;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(i=this._$EO)==null||i.forEach(e=>{var t;return(t=e.hostConnected)==null?void 0:t.call(e)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(e=>{var t;return(t=e.hostDisconnected)==null?void 0:t.call(e)})}attributeChangedCallback(i,e,t){this._$AK(i,t)}_$ET(i,e){var t;const r=this.constructor.elementProperties.get(i),o=this.constructor._$Eu(i,r);if(o!==void 0&&r.reflect===!0){const a=(((t=r.converter)==null?void 0:t.toAttribute)!==void 0?r.converter:_i).toAttribute(e,r.type);this._$Em=i,a==null?this.removeAttribute(o):this.setAttribute(o,a),this._$Em=null}}_$AK(i,e){var t,r,o;const a=this.constructor,n=a._$Eh.get(i);if(n!==void 0&&this._$Em!==n){const s=a.getPropertyOptions(n),l=typeof s.converter=="function"?{fromAttribute:s.converter}:((t=s.converter)==null?void 0:t.fromAttribute)!==void 0?s.converter:_i;this._$Em=n;const d=l.fromAttribute(e,s.type);this[n]=(o=d!=null?d:(r=this._$Ej)==null?void 0:r.get(n))!=null?o:d,this._$Em=null}}requestUpdate(i,e,t,r=!1,o){var a,n;if(i!==void 0){const s=this.constructor;if(r===!1&&(o=this[i]),t!=null||(t=s.getPropertyOptions(i)),!(((a=t.hasChanged)!=null?a:dn)(o,e)||t.useDefault&&t.reflect&&o===((n=this._$Ej)==null?void 0:n.get(i))&&!this.hasAttribute(s._$Eu(i,t))))return;this.C(i,e,t)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(i,e,{useDefault:t,reflect:r,wrapped:o},a){var n,s,l;t&&!((n=this._$Ej)!=null?n:this._$Ej=new Map).has(i)&&(this._$Ej.set(i,(s=a!=null?a:e)!=null?s:this[i]),o!==!0||a!==void 0)||(this._$AL.has(i)||(this.hasUpdated||t||(e=void 0),this._$AL.set(i,e)),r===!0&&this._$Em!==i&&((l=this._$Eq)!=null?l:this._$Eq=new Set).add(i))}_$EP(){return xr(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const i=this.scheduleUpdate();return i!=null&&(yield i),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,a]of this._$Ep)this[o]=a;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[o,a]of r){const{wrapped:n}=a,s=this[o];n!==!0||this._$AL.has(o)||s===void 0||this.C(o,void 0,a,s)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),(i=this._$EO)==null||i.forEach(r=>{var o;return(o=r.hostUpdate)==null?void 0:o.call(r)}),this.update(t)):this._$EM()}catch(r){throw e=!1,this._$EM(),r}e&&this._$AE(t)}willUpdate(i){}_$AE(i){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostUpdated)==null?void 0:r.call(t)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(i){}firstUpdated(i){}};var Yo;st.elementStyles=[],st.shadowRootOptions={mode:"open"},st[Bt("elementProperties")]=new Map,st[Bt("finalized")]=new Map,Wo==null||Wo({ReactiveElement:st}),((Yo=mt.reactiveElementVersions)!=null?Yo:mt.reactiveElementVersions=[]).push("2.1.2");/**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
22
  */const Cr=globalThis,jo=i=>i,kr=Cr.trustedTypes,Go=kr?kr.createPolicy("lit-html",{createHTML:i=>i}):void 0,cn="$lit$",Ve=`lit$${Math.random().toFixed(9).slice(2)}$`,un="?"+Ve,Sc=`<${un}>`,et=document,Ft=()=>et.createComment(""),Vt=i=>i===null||typeof i!="object"&&typeof i!="function",qi=Array.isArray,Oc=i=>qi(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Xr=`[
23
23
  \f\r]`,Tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ko=/-->/g,Xo=/>/g,Ge=RegExp(`>|${Xr}(?:([^\\s"'>=/]+)(${Xr}*=${Xr}*(?:[^
24
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Qo=/'/g,Jo=/"/g,hn=/^(?:script|style|textarea|title)$/i,_t=Symbol.for("lit-noChange"),ie=Symbol.for("lit-nothing"),Zo=new WeakMap,Xe=et.createTreeWalker(et,129);function pn(i,e){if(!qi(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Go!==void 0?Go.createHTML(e):e}const Mc=(i,e)=>{const t=i.length-1,r=[];let o,a=e===2?"<svg>":e===3?"<math>":"",n=Tt;for(let s=0;s<t;s++){const l=i[s];let d,u,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,u=n.exec(l),u!==null);)p=n.lastIndex,n===Tt?u[1]==="!--"?n=Ko:u[1]!==void 0?n=Xo:u[2]!==void 0?(hn.test(u[2])&&(o=RegExp("</"+u[2],"g")),n=Ge):u[3]!==void 0&&(n=Ge):n===Ge?u[0]===">"?(n=o!=null?o:Tt,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?Ge:u[3]==='"'?Jo:Qo):n===Jo||n===Qo?n=Ge:n===Ko||n===Xo?n=Tt:(n=Ge,o=void 0);const m=n===Ge&&i[s+1].startsWith("/>")?" ":"";a+=n===Tt?l+Sc:h>=0?(r.push(d),l.slice(0,h)+cn+l.slice(h)+Ve+m):l+Ve+(h===-2?s:m)}return[pn(i,a+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Rt{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let a=0,n=0;const s=e.length-1,l=this.parts,[d,u]=Mc(e,t);if(this.el=Rt.createElement(d,r),Xe.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=Xe.nextNode())!==null&&l.length<s;){if(o.nodeType===1){if(o.hasAttributes())for(const h of o.getAttributeNames())if(h.endsWith(cn)){const p=u[n++],m=o.getAttribute(h).split(Ve),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:a,name:b[2],strings:m,ctor:b[1]==="."?zc:b[1]==="?"?Lc:b[1]==="@"?Bc:Nr}),o.removeAttribute(h)}else h.startsWith(Ve)&&(l.push({type:6,index:a}),o.removeAttribute(h));if(hn.test(o.tagName)){const h=o.textContent.split(Ve),p=h.length-1;if(p>0){o.textContent=kr?kr.emptyScript:"";for(let m=0;m<p;m++)o.append(h[m],Ft()),Xe.nextNode(),l.push({type:2,index:++a});o.append(h[p],Ft())}}}else if(o.nodeType===8)if(o.data===un)l.push({type:2,index:a});else{let h=-1;for(;(h=o.data.indexOf(Ve,h+1))!==-1;)l.push({type:7,index:a}),h+=Ve.length-1}a++}}static createElement(e,t){const r=et.createElement("template");return r.innerHTML=e,r}}function ft(i,e,t=i,r){var o,a,n;if(e===_t)return e;let s=r!==void 0?(o=t._$Co)==null?void 0:o[r]:t._$Cl;const l=Vt(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==l&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,r)),r!==void 0?((n=t._$Co)!=null?n:t._$Co=[])[r]=s:t._$Cl=s),s!==void 0&&(e=ft(i,s._$AS(i,e.values),s,r)),e}class Nc{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:r},parts:o}=this._$AD,a=((t=e==null?void 0:e.creationScope)!=null?t:et).importNode(r,!0);Xe.currentNode=a;let n=Xe.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new Xt(n,n.nextSibling,this,e):d.type===1?u=new d.ctor(n,d.name,d.strings,this,e):d.type===6&&(u=new Fc(n,this,e)),this._$AV.push(u),d=o[++l]}s!==(d==null?void 0:d.index)&&(n=Xe.nextNode(),s++)}return Xe.currentNode=et,a}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Xt{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,o){var a;this.type=2,this._$AH=ie,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=(a=o==null?void 0:o.isConnected)!=null?a:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ft(this,e,t),Vt(e)?e===ie||e==null||e===""?(this._$AH!==ie&&this._$AR(),this._$AH=ie):e!==this._$AH&&e!==_t&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Oc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ie&&Vt(this._$AH)?this._$AA.nextSibling.data=e:this.T(et.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:o}=e,a=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Rt.createElement(pn(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)==null?void 0:t._$AD)===a)this._$AH.p(r);else{const n=new Nc(a,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let t=Zo.get(e.strings);return t===void 0&&Zo.set(e.strings,t=new Rt(e)),t}k(e){qi(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const a of e)o===t.length?t.push(r=new Xt(this.O(Ft()),this.O(Ft()),this,this.options)):r=t[o],r._$AI(a),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e!==this._$AB;){const o=jo(e).nextSibling;jo(e).remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Nr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,a){this.type=1,this._$AH=ie,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ie}_$AI(e,t=this,r,o){const a=this.strings;let n=!1;if(a===void 0)e=ft(this,e,t,0),n=!Vt(e)||e!==this._$AH&&e!==_t,n&&(this._$AH=e);else{const s=e;let l,d;for(e=a[0],l=0;l<a.length-1;l++)d=ft(this,s[r+l],t,l),d===_t&&(d=this._$AH[l]),n||(n=!Vt(d)||d!==this._$AH[l]),d===ie?e=ie:e!==ie&&(e+=(d!=null?d:"")+a[l+1]),this._$AH[l]=d}n&&!o&&this.j(e)}j(e){e===ie?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class zc extends Nr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ie?void 0:e}}class Lc extends Nr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ie)}}class Bc extends Nr{constructor(e,t,r,o,a){super(e,t,r,o,a),this.type=5}_$AI(e,t=this){var r;if((e=(r=ft(this,e,t,0))!=null?r:ie)===_t)return;const o=this._$AH,a=e===ie&&o!==ie||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==ie&&(o===ie||a);a&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class Fc{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){ft(this,e)}}const ea=Cr.litHtmlPolyfillSupport;var ta;ea==null||ea(Rt,Xt),((ta=Cr.litHtmlVersions)!=null?ta:Cr.litHtmlVersions=[]).push("3.3.2");const mn=(i,e,t)=>{var r,o;const a=(r=t==null?void 0:t.renderBefore)!=null?r:e;let n=a._$litPart$;if(n===void 0){const s=(o=t==null?void 0:t.renderBefore)!=null?o:null;a._$litPart$=n=new Xt(e.insertBefore(Ft(),s),s,void 0,t!=null?t:{})}return n._$AI(i),n};/**
24
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Qo=/'/g,Jo=/"/g,hn=/^(?:script|style|textarea|title)$/i,_t=Symbol.for("lit-noChange"),ne=Symbol.for("lit-nothing"),Zo=new WeakMap,Xe=et.createTreeWalker(et,129);function pn(i,e){if(!qi(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Go!==void 0?Go.createHTML(e):e}const Mc=(i,e)=>{const t=i.length-1,r=[];let o,a=e===2?"<svg>":e===3?"<math>":"",n=Tt;for(let s=0;s<t;s++){const l=i[s];let d,u,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,u=n.exec(l),u!==null);)p=n.lastIndex,n===Tt?u[1]==="!--"?n=Ko:u[1]!==void 0?n=Xo:u[2]!==void 0?(hn.test(u[2])&&(o=RegExp("</"+u[2],"g")),n=Ge):u[3]!==void 0&&(n=Ge):n===Ge?u[0]===">"?(n=o!=null?o:Tt,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?Ge:u[3]==='"'?Jo:Qo):n===Jo||n===Qo?n=Ge:n===Ko||n===Xo?n=Tt:(n=Ge,o=void 0);const m=n===Ge&&i[s+1].startsWith("/>")?" ":"";a+=n===Tt?l+Sc:h>=0?(r.push(d),l.slice(0,h)+cn+l.slice(h)+Ve+m):l+Ve+(h===-2?s:m)}return[pn(i,a+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class Rt{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let a=0,n=0;const s=e.length-1,l=this.parts,[d,u]=Mc(e,t);if(this.el=Rt.createElement(d,r),Xe.currentNode=this.el.content,t===2||t===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(o=Xe.nextNode())!==null&&l.length<s;){if(o.nodeType===1){if(o.hasAttributes())for(const h of o.getAttributeNames())if(h.endsWith(cn)){const p=u[n++],m=o.getAttribute(h).split(Ve),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:a,name:b[2],strings:m,ctor:b[1]==="."?zc:b[1]==="?"?Bc:b[1]==="@"?Lc:Nr}),o.removeAttribute(h)}else h.startsWith(Ve)&&(l.push({type:6,index:a}),o.removeAttribute(h));if(hn.test(o.tagName)){const h=o.textContent.split(Ve),p=h.length-1;if(p>0){o.textContent=kr?kr.emptyScript:"";for(let m=0;m<p;m++)o.append(h[m],Ft()),Xe.nextNode(),l.push({type:2,index:++a});o.append(h[p],Ft())}}}else if(o.nodeType===8)if(o.data===un)l.push({type:2,index:a});else{let h=-1;for(;(h=o.data.indexOf(Ve,h+1))!==-1;)l.push({type:7,index:a}),h+=Ve.length-1}a++}}static createElement(e,t){const r=et.createElement("template");return r.innerHTML=e,r}}function ft(i,e,t=i,r){var o,a,n;if(e===_t)return e;let s=r!==void 0?(o=t._$Co)==null?void 0:o[r]:t._$Cl;const l=Vt(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==l&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,r)),r!==void 0?((n=t._$Co)!=null?n:t._$Co=[])[r]=s:t._$Cl=s),s!==void 0&&(e=ft(i,s._$AS(i,e.values),s,r)),e}class Nc{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:r},parts:o}=this._$AD,a=((t=e==null?void 0:e.creationScope)!=null?t:et).importNode(r,!0);Xe.currentNode=a;let n=Xe.nextNode(),s=0,l=0,d=o[0];for(;d!==void 0;){if(s===d.index){let u;d.type===2?u=new Xt(n,n.nextSibling,this,e):d.type===1?u=new d.ctor(n,d.name,d.strings,this,e):d.type===6&&(u=new Fc(n,this,e)),this._$AV.push(u),d=o[++l]}s!==(d==null?void 0:d.index)&&(n=Xe.nextNode(),s++)}return Xe.currentNode=et,a}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Xt{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,o){var a;this.type=2,this._$AH=ne,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=(a=o==null?void 0:o.isConnected)!=null?a:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ft(this,e,t),Vt(e)?e===ne||e==null||e===""?(this._$AH!==ne&&this._$AR(),this._$AH=ne):e!==this._$AH&&e!==_t&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Oc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ne&&Vt(this._$AH)?this._$AA.nextSibling.data=e:this.T(et.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:o}=e,a=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Rt.createElement(pn(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)==null?void 0:t._$AD)===a)this._$AH.p(r);else{const n=new Nc(a,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let t=Zo.get(e.strings);return t===void 0&&Zo.set(e.strings,t=new Rt(e)),t}k(e){qi(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const a of e)o===t.length?t.push(r=new Xt(this.O(Ft()),this.O(Ft()),this,this.options)):r=t[o],r._$AI(a),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e!==this._$AB;){const o=jo(e).nextSibling;jo(e).remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class Nr{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,a){this.type=1,this._$AH=ne,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ne}_$AI(e,t=this,r,o){const a=this.strings;let n=!1;if(a===void 0)e=ft(this,e,t,0),n=!Vt(e)||e!==this._$AH&&e!==_t,n&&(this._$AH=e);else{const s=e;let l,d;for(e=a[0],l=0;l<a.length-1;l++)d=ft(this,s[r+l],t,l),d===_t&&(d=this._$AH[l]),n||(n=!Vt(d)||d!==this._$AH[l]),d===ne?e=ne:e!==ne&&(e+=(d!=null?d:"")+a[l+1]),this._$AH[l]=d}n&&!o&&this.j(e)}j(e){e===ne?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class zc extends Nr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ne?void 0:e}}class Bc extends Nr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ne)}}class Lc extends Nr{constructor(e,t,r,o,a){super(e,t,r,o,a),this.type=5}_$AI(e,t=this){var r;if((e=(r=ft(this,e,t,0))!=null?r:ne)===_t)return;const o=this._$AH,a=e===ne&&o!==ne||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==ne&&(o===ne||a);a&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class Fc{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){ft(this,e)}}const ea=Cr.litHtmlPolyfillSupport;var ta;ea==null||ea(Rt,Xt),((ta=Cr.litHtmlVersions)!=null?ta:Cr.litHtmlVersions=[]).push("3.3.2");const mn=(i,e,t)=>{var r,o;const a=(r=t==null?void 0:t.renderBefore)!=null?r:e;let n=a._$litPart$;if(n===void 0){const s=(o=t==null?void 0:t.renderBefore)!=null?o:null;a._$litPart$=n=new Xt(e.insertBefore(Ft(),s),s,void 0,t!=null?t:{})}return n._$AI(i),n};/**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
@@ -34,7 +34,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
34
34
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
35
35
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
36
36
  */const _n=[],fi=new Set,Yi=new Set;function fn(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Vc(i){return fn(customElements.get(i))}function Rc(i=[]){return[i].flat(1/0).filter(e=>e instanceof Wi?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function vn(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function gn(i){return i.map(e=>e.cssText).join(`
37
- `)}const Er="vaadin-themable-mixin-style";function Hc(i,e){const t=document.createElement("style");t.id=Er,t.textContent=gn(i),e.content.appendChild(t)}function $c(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof lt)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),ln(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(Er),r=e.prototype._template;t.textContent=r.content.getElementById(Er).textContent}}function Uc(i){fi.forEach(e=>{const t=e.deref();t instanceof i?$c(t):t||fi.delete(e)})}function bn(i){if(i.prototype instanceof lt)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(Er).textContent=gn(i.getStylesForThis())}Yi.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&bn(t)})}function Wc(i,e){const t=i.__themes;return!t||!e?!1:t.some(r=>r.styles.some(o=>e.some(a=>a.cssText===o.cssText)))}function y(i,e,t={}){e=Rc(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):_n.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&Yi.forEach(r=>{if(vn(i,r)&&Vc(r)){const o=customElements.get(r);Wc(o,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" 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".`),bn(o),Uc(o)}})}function vi(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():_n}function qc(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function yn(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const r=vi().find(o=>o.moduleId===t);r?e.push(...yn(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function Yc(i){const e=`${i}-default-theme`,t=vi().filter(r=>r.moduleId!==e&&vn(r.themeFor,i)).map(r=>sn(wr({},r),{styles:[...yn(r),...r.styles],includePriority:qc(r.moduleId)})).sort((r,o)=>o.includePriority-r.includePriority);return t.length>0?t:vi().filter(r=>r.moduleId===e)}const H=i=>class extends zr(i){constructor(){super(),fi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Yi.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||fn(this)||Hc(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=i.__themes||[],t=Object.getPrototypeOf(this.prototype),r=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...r,...Yc(this.is)];const o=this.__themes.flatMap(a=>a.styles);return o.filter((a,n)=>n===o.lastIndexOf(a))}};/**
37
+ `)}const Er="vaadin-themable-mixin-style";function Hc(i,e){const t=document.createElement("style");t.id=Er,t.textContent=gn(i),e.content.appendChild(t)}function $c(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof lt)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),ln(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(Er),r=e.prototype._template;t.textContent=r.content.getElementById(Er).textContent}}function Uc(i){fi.forEach(e=>{const t=e.deref();t instanceof i?$c(t):t||fi.delete(e)})}function bn(i){if(i.prototype instanceof lt)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(Er).textContent=gn(i.getStylesForThis())}Yi.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&bn(t)})}function Wc(i,e){const t=i.__themes;return!t||!e?!1:t.some(r=>r.styles.some(o=>e.some(a=>a.cssText===o.cssText)))}function y(i,e,t={}){e=Rc(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):_n.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&Yi.forEach(r=>{if(vn(i,r)&&Vc(r)){const o=customElements.get(r);Wc(o,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" 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".`),bn(o),Uc(o)}})}function vi(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():_n}function qc(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function yn(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const r=vi().find(o=>o.moduleId===t);r?e.push(...yn(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function Yc(i){const e=`${i}-default-theme`,t=vi().filter(r=>r.moduleId!==e&&vn(r.themeFor,i)).map(r=>sn(wr({},r),{styles:[...yn(r),...r.styles],includePriority:qc(r.moduleId)})).sort((r,o)=>o.includePriority-r.includePriority);return t.length>0?t:vi().filter(r=>r.moduleId===e)}const U=i=>class extends zr(i){constructor(){super(),fi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Yi.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||fn(this)||Hc(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=i.__themes||[],t=Object.getPrototypeOf(this.prototype),r=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...r,...Yc(this.is)];const o=this.__themes.flatMap(a=>a.styles);return o.filter((a,n)=>n===o.lastIndexOf(a))}};/**
38
38
  * @license
39
39
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
40
40
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -889,7 +889,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
889
889
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
890
890
  Code distributed by Google as part of the polymer project is also
891
891
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
892
- */let ru=/(url\()([^)]*)(\))/g,iu=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,sr,fe;function Bt(i,e){if(i&&iu.test(i)||i==="//")return i;if(sr===void 0){sr=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",sr=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),sr)try{return new URL(i,e).href}catch(t){return i}return fe||(fe=document.implementation.createHTMLDocument("temp"),fe.base=fe.createElement("base"),fe.head.appendChild(fe.base),fe.anchor=fe.createElement("a"),fe.body.appendChild(fe.anchor)),fe.base.href=e,fe.anchor.href=i,fe.anchor.href||i}function ji(i,e){return i.replace(ru,function(t,r,o,a){return r+"'"+Bt(o.replace(/["']/g,""),e)+"'"+a})}function Gi(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
892
+ */let ru=/(url\()([^)]*)(\))/g,iu=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,sr,fe;function Lt(i,e){if(i&&iu.test(i)||i==="//")return i;if(sr===void 0){sr=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",sr=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),sr)try{return new URL(i,e).href}catch(t){return i}return fe||(fe=document.implementation.createHTMLDocument("temp"),fe.base=fe.createElement("base"),fe.head.appendChild(fe.base),fe.anchor=fe.createElement("a"),fe.body.appendChild(fe.anchor)),fe.base.href=e,fe.anchor.href=i,fe.anchor.href||i}function ji(i,e){return i.replace(ru,function(t,r,o,a){return r+"'"+Lt(o.replace(/["']/g,""),e)+"'"+a})}function Gi(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
893
893
  @license
894
894
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
895
895
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -905,7 +905,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
905
905
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
906
906
  Code distributed by Google as part of the polymer project is also
907
907
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
908
- */let uu=0;const J=function(i){let e=i.__mixinApplications;e||(e=new WeakMap,i.__mixinApplications=e);let t=uu++;function r(o){let a=o.__mixinSet;if(a&&a[t])return o;let n=e,s=n.get(o);if(!s){s=i(o),n.set(o,s);let l=Object.create(s.__mixinSet||a||null);l[t]=!0,s.__mixinSet=l}return s}return r};/**
908
+ */let uu=0;const te=function(i){let e=i.__mixinApplications;e||(e=new WeakMap,i.__mixinApplications=e);let t=uu++;function r(o){let a=o.__mixinSet;if(a&&a[t])return o;let n=e,s=n.get(o);if(!s){s=i(o),n.set(o,s);let l=Object.create(s.__mixinSet||a||null);l[t]=!0,s.__mixinSet=l}return s}return r};/**
909
909
  @license
910
910
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
911
911
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -913,7 +913,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
913
913
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
914
914
  Code distributed by Google as part of the polymer project is also
915
915
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
916
- */let Ki={},kn={};function sa(i,e){Ki[i]=kn[i.toLowerCase()]=e}function la(i){return Ki[i]||kn[i.toLowerCase()]}function hu(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class $t extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=la(e);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(e,t,r,o){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Bt(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Gi(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Ar&&la(e)!==void 0)throw sa(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,sa(e,this),hu(this)}}}$t.prototype.modules=Ki;customElements.define("dom-module",$t);/**
916
+ */let Ki={},kn={};function sa(i,e){Ki[i]=kn[i.toLowerCase()]=e}function la(i){return Ki[i]||kn[i.toLowerCase()]}function hu(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class $t extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=la(e);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(e,t,r,o){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Lt(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Gi(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(Ar&&la(e)!==void 0)throw sa(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,sa(e,this),hu(this)}}}$t.prototype.modules=Ki;customElements.define("dom-module",$t);/**
917
917
  @license
918
918
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
919
919
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -929,7 +929,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
929
929
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
930
930
  Code distributed by Google as part of the polymer project is also
931
931
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
932
- */const ae=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?i=>ShadyDOM.patch(i):i=>i;/**
932
+ */const le=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?i=>ShadyDOM.patch(i):i=>i;/**
933
933
  @license
934
934
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
935
935
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -937,7 +937,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
937
937
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
938
938
  Code distributed by Google as part of the polymer project is also
939
939
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
940
- */function bi(i){return i.indexOf(".")>=0}function tt(i){let e=i.indexOf(".");return e===-1?i:i.slice(0,e)}function Tn(i,e){return i.indexOf(e+".")===0}function Ut(i,e){return e.indexOf(i+".")===0}function Wt(i,e,t){return e+t.slice(i.length)}function gu(i,e){return i===e||Tn(i,e)||Ut(i,e)}function Mt(i){if(Array.isArray(i)){let e=[];for(let t=0;t<i.length;t++){let r=i[t].toString().split(".");for(let o=0;o<r.length;o++)e.push(r[o])}return e.join(".")}else return i}function In(i){return Array.isArray(i)?Mt(i).split("."):i.toString().split(".")}function pe(i,e,t){let r=i,o=In(e);for(let a=0;a<o.length;a++){if(!r)return;let n=o[a];r=r[n]}return t&&(t.path=o.join(".")),r}function ua(i,e,t){let r=i,o=In(e),a=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let s=o[n];if(r=r[s],!r)return}r[a]=t}else r[e]=t;return o.join(".")}/**
940
+ */function bi(i){return i.indexOf(".")>=0}function tt(i){let e=i.indexOf(".");return e===-1?i:i.slice(0,e)}function Tn(i,e){return i.indexOf(e+".")===0}function Ut(i,e){return e.indexOf(i+".")===0}function Wt(i,e,t){return e+t.slice(i.length)}function gu(i,e){return i===e||Tn(i,e)||Ut(i,e)}function Mt(i){if(Array.isArray(i)){let e=[];for(let t=0;t<i.length;t++){let r=i[t].toString().split(".");for(let o=0;o<r.length;o++)e.push(r[o])}return e.join(".")}else return i}function In(i){return Array.isArray(i)?Mt(i).split("."):i.toString().split(".")}function me(i,e,t){let r=i,o=In(e);for(let a=0;a<o.length;a++){if(!r)return;let n=o[a];r=r[n]}return t&&(t.path=o.join(".")),r}function ua(i,e,t){let r=i,o=In(e),a=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let s=o[n];if(r=r[s],!r)return}r[a]=t}else r[e]=t;return o.join(".")}/**
941
941
  @license
942
942
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
943
943
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -945,7 +945,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
945
945
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
946
946
  Code distributed by Google as part of the polymer project is also
947
947
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
948
- */const Tr={},bu=/-[a-z]/g,yu=/([A-Z])/g;function Dn(i){return Tr[i]||(Tr[i]=i.indexOf("-")<0?i:i.replace(bu,e=>e[1].toUpperCase()))}function Lr(i){return Tr[i]||(Tr[i]=i.replace(yu,"-$1").toLowerCase())}/**
948
+ */const Tr={},bu=/-[a-z]/g,yu=/([A-Z])/g;function Dn(i){return Tr[i]||(Tr[i]=i.indexOf("-")<0?i:i.replace(bu,e=>e[1].toUpperCase()))}function Br(i){return Tr[i]||(Tr[i]=i.replace(yu,"-$1").toLowerCase())}/**
949
949
  @license
950
950
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
951
951
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -961,7 +961,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
961
961
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
962
962
  Code distributed by Google as part of the polymer project is also
963
963
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
964
- */const Eu=Mn,Nn=J(i=>{class e extends i{static createProperties(r){const o=this.prototype;for(let a in r)a in o||o._createPropertyAccessor(a)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,o){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,o))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[r];return o||(o=this.constructor.attributeNameForProperty(r),this.__dataAttributes[o]=r),o}_definePropertyAccessor(r,o){Object.defineProperty(this,r,{get(){return this.__data[r]},set:o?function(){}:function(a){this._setPendingProperty(r,a,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,o){this._setPendingProperty(r,o)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,o,a){let n=this.__data[r],s=this._shouldPropertyChange(r,o,n);return s&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=n),this.__data[r]=o,this.__dataPending[r]=o),s}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Eu.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 r=this.__data,o=this.__dataPending,a=this.__dataOld;this._shouldPropertiesChange(r,o,a)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,o,a)),this.__dataCounter--}_shouldPropertiesChange(r,o,a){return!!o}_propertiesChanged(r,o,a){}_shouldPropertyChange(r,o,a){return a!==o&&(a===a||o===o)}attributeChangedCallback(r,o,a,n){o!==a&&this._attributeToProperty(r,a),super.attributeChangedCallback&&super.attributeChangedCallback(r,o,a,n)}_attributeToProperty(r,o,a){if(!this.__serializing){const n=this.__dataAttributes,s=n&&n[r]||r;this[s]=this._deserializeValue(o,a||this.constructor.typeForProperty(s))}}_propertyToAttribute(r,o,a){this.__serializing=!0,a=arguments.length<3?this[r]:a,this._valueToNodeAttribute(this,a,o||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,o,a){const n=this._serializeValue(o);(a==="class"||a==="name"||a==="slot")&&(r=ae(r)),n===void 0?r.removeAttribute(a):r.setAttribute(a,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,o){switch(o){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return e});/**
964
+ */const Eu=Mn,Nn=te(i=>{class e extends i{static createProperties(r){const o=this.prototype;for(let a in r)a in o||o._createPropertyAccessor(a)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,o){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,o))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[r];return o||(o=this.constructor.attributeNameForProperty(r),this.__dataAttributes[o]=r),o}_definePropertyAccessor(r,o){Object.defineProperty(this,r,{get(){return this.__data[r]},set:o?function(){}:function(a){this._setPendingProperty(r,a,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,o){this._setPendingProperty(r,o)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,o,a){let n=this.__data[r],s=this._shouldPropertyChange(r,o,n);return s&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=n),this.__data[r]=o,this.__dataPending[r]=o),s}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Eu.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 r=this.__data,o=this.__dataPending,a=this.__dataOld;this._shouldPropertiesChange(r,o,a)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,o,a)),this.__dataCounter--}_shouldPropertiesChange(r,o,a){return!!o}_propertiesChanged(r,o,a){}_shouldPropertyChange(r,o,a){return a!==o&&(a===a||o===o)}attributeChangedCallback(r,o,a,n){o!==a&&this._attributeToProperty(r,a),super.attributeChangedCallback&&super.attributeChangedCallback(r,o,a,n)}_attributeToProperty(r,o,a){if(!this.__serializing){const n=this.__dataAttributes,s=n&&n[r]||r;this[s]=this._deserializeValue(o,a||this.constructor.typeForProperty(s))}}_propertyToAttribute(r,o,a){this.__serializing=!0,a=arguments.length<3?this[r]:a,this._valueToNodeAttribute(this,a,o||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,o,a){const n=this._serializeValue(o);(a==="class"||a==="name"||a==="slot")&&(r=le(r)),n===void 0?r.removeAttribute(a):r.setAttribute(a,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,o){switch(o){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return e});/**
965
965
  @license
966
966
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
967
967
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -969,7 +969,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
969
969
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
970
970
  Code distributed by Google as part of the polymer project is also
971
971
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
972
- */const zn={};let lr=HTMLElement.prototype;for(;lr;){let i=Object.getOwnPropertyNames(lr);for(let e=0;e<i.length;e++)zn[i[e]]=!0;lr=Object.getPrototypeOf(lr)}const Pu=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function Au(i,e){if(!zn[e]){let t=i[e];t!==void 0&&(i.__data?i._setPendingProperty(e,t):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[e]=t))}}const Tu=J(i=>{const e=Nn(i);class t extends e{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let a=0;a<o.length;a++)this.prototype._createPropertyAccessor(Dn(o[a]))}static attributeNameForProperty(o){return Lr(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let a in o)this._setProperty(a,o[a])}_ensureAttribute(o,a){const n=this;n.hasAttribute(o)||this._valueToNodeAttribute(n,a,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Pu(o))return o;try{return JSON.stringify(o)}catch(a){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,a){let n;switch(a){case Object:try{n=JSON.parse(o)}catch(s){n=o}break;case Array:try{n=JSON.parse(o)}catch(s){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:n=isNaN(o)?String(o):Number(o),n=new Date(n);break;default:n=super._deserializeValue(o,a);break}return n}_definePropertyAccessor(o,a){Au(this,o),super._definePropertyAccessor(o,a)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return t});/**
972
+ */const zn={};let lr=HTMLElement.prototype;for(;lr;){let i=Object.getOwnPropertyNames(lr);for(let e=0;e<i.length;e++)zn[i[e]]=!0;lr=Object.getPrototypeOf(lr)}const Pu=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function Au(i,e){if(!zn[e]){let t=i[e];t!==void 0&&(i.__data?i._setPendingProperty(e,t):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[e]=t))}}const Tu=te(i=>{const e=Nn(i);class t extends e{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let a=0;a<o.length;a++)this.prototype._createPropertyAccessor(Dn(o[a]))}static attributeNameForProperty(o){return Br(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let a in o)this._setProperty(a,o[a])}_ensureAttribute(o,a){const n=this;n.hasAttribute(o)||this._valueToNodeAttribute(n,a,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Pu(o))return o;try{return JSON.stringify(o)}catch(a){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,a){let n;switch(a){case Object:try{n=JSON.parse(o)}catch(s){n=o}break;case Array:try{n=JSON.parse(o)}catch(s){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:n=isNaN(o)?String(o):Number(o),n=new Date(n);break;default:n=super._deserializeValue(o,a);break}return n}_definePropertyAccessor(o,a){Au(this,o),super._definePropertyAccessor(o,a)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return t});/**
973
973
  @license
974
974
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
975
975
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -977,7 +977,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
977
977
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
978
978
  Code distributed by Google as part of the polymer project is also
979
979
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
980
- */const Iu={"dom-if":!0,"dom-repeat":!0};let ha=!1,pa=!1;function Du(){if(!ha){ha=!0;const i=document.createElement("textarea");i.placeholder="a",pa=i.placeholder===i.textContent}return pa}function Su(i){Du()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const Ou=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const o=t.getAttribute(r);if(i&&r.startsWith("on-")){e.setAttribute(r,i.createScript(o,r));return}e.setAttribute(r,o)}})();function Mu(i){let e=i.getAttribute("is");if(e&&Iu[e]){let t=i;for(t.removeAttribute("is"),i=t.ownerDocument.createElement(e),t.parentNode.replaceChild(i,t),i.appendChild(t);t.attributes.length;){const{name:r}=t.attributes[0];Ou(i,t,r),t.removeAttribute(r)}}return i}function Ln(i,e){let t=e.parentInfo&&Ln(i,e.parentInfo);if(t){for(let r=t.firstChild,o=0;r;r=r.nextSibling)if(e.parentIndex===o++)return r}else return i}function Nu(i,e,t,r){r.id&&(e[r.id]=t)}function zu(i,e,t){if(t.events&&t.events.length)for(let r=0,o=t.events,a;r<o.length&&(a=o[r]);r++)i._addMethodEventListenerToNode(e,a.name,a.value,i)}function Lu(i,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function Bu(i,e,t){return i=i._methodHost||i,function(r){i[t]?i[t](r,r.detail):console.warn("listener method `"+t+"` not defined")}}const Fu=J(i=>{class e extends i{static _parseTemplate(r,o){if(!r._templateInfo){let a=r._templateInfo={};a.nodeInfoList=[],a.nestedTemplate=!!o,a.stripWhiteSpace=o&&o.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,a,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,o,a){return this._parseTemplateNode(r.content,o,a)}static _parseTemplateNode(r,o,a){let n=!1,s=r;return s.localName=="template"&&!s.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(s,o,a)||n:s.localName==="slot"&&(o.hasInsertionPoint=!0),Su(s),s.firstChild&&this._parseTemplateChildNodes(s,o,a),s.hasAttributes&&s.hasAttributes()&&(n=this._parseTemplateNodeAttributes(s,o,a)||n),n||a.noted}static _parseTemplateChildNodes(r,o,a){if(!(r.localName==="script"||r.localName==="style"))for(let n=r.firstChild,s=0,l;n;n=l){if(n.localName=="template"&&(n=Mu(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,r.removeChild(u),u=l;if(o.stripWhiteSpace&&!n.textContent.trim()){r.removeChild(n);continue}}let d={parentIndex:s,parentInfo:a};this._parseTemplateNode(n,o,d)&&(d.infoIndex=o.nodeInfoList.push(d)-1),n.parentNode&&s++}}static _parseTemplateNestedTemplate(r,o,a){let n=r,s=this._parseTemplate(n,o);return(s.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),a.templateInfo=s,!0}static _parseTemplateNodeAttributes(r,o,a){let n=!1,s=Array.from(r.attributes);for(let l=s.length-1,d;d=s[l];l--)n=this._parseTemplateNodeAttribute(r,o,a,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(r,o,a,n,s){return n.slice(0,3)==="on-"?(r.removeAttribute(n),a.events=a.events||[],a.events.push({name:n.slice(3),value:s}),!0):n==="id"?(a.id=s,!0):!1}static _contentForTemplate(r){let o=r._templateInfo;return o&&o.content||r.content}_stampTemplate(r,o){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),o=o||this.constructor._parseTemplate(r);let a=o.nodeInfoList,n=o.content||r.content,s=document.importNode(n,!0);s.__noInsertionPoint=!o.hasInsertionPoint;let l=s.nodeList=new Array(a.length);s.$={};for(let d=0,u=a.length,h;d<u&&(h=a[d]);d++){let p=l[d]=Ln(s,h);Nu(this,s.$,p,h),Lu(this,p,h,o),zu(this,p,h)}return s=s,s}_addMethodEventListenerToNode(r,o,a,n){n=n||r;let s=Bu(n,o,a);return this._addEventListenerToNode(r,o,s),s}_addEventListenerToNode(r,o,a){r.addEventListener(o,a)}_removeEventListenerFromNode(r,o,a){r.removeEventListener(o,a)}}return e});/**
980
+ */const Iu={"dom-if":!0,"dom-repeat":!0};let ha=!1,pa=!1;function Du(){if(!ha){ha=!0;const i=document.createElement("textarea");i.placeholder="a",pa=i.placeholder===i.textContent}return pa}function Su(i){Du()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const Ou=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const o=t.getAttribute(r);if(i&&r.startsWith("on-")){e.setAttribute(r,i.createScript(o,r));return}e.setAttribute(r,o)}})();function Mu(i){let e=i.getAttribute("is");if(e&&Iu[e]){let t=i;for(t.removeAttribute("is"),i=t.ownerDocument.createElement(e),t.parentNode.replaceChild(i,t),i.appendChild(t);t.attributes.length;){const{name:r}=t.attributes[0];Ou(i,t,r),t.removeAttribute(r)}}return i}function Bn(i,e){let t=e.parentInfo&&Bn(i,e.parentInfo);if(t){for(let r=t.firstChild,o=0;r;r=r.nextSibling)if(e.parentIndex===o++)return r}else return i}function Nu(i,e,t,r){r.id&&(e[r.id]=t)}function zu(i,e,t){if(t.events&&t.events.length)for(let r=0,o=t.events,a;r<o.length&&(a=o[r]);r++)i._addMethodEventListenerToNode(e,a.name,a.value,i)}function Bu(i,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function Lu(i,e,t){return i=i._methodHost||i,function(r){i[t]?i[t](r,r.detail):console.warn("listener method `"+t+"` not defined")}}const Fu=te(i=>{class e extends i{static _parseTemplate(r,o){if(!r._templateInfo){let a=r._templateInfo={};a.nodeInfoList=[],a.nestedTemplate=!!o,a.stripWhiteSpace=o&&o.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,a,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,o,a){return this._parseTemplateNode(r.content,o,a)}static _parseTemplateNode(r,o,a){let n=!1,s=r;return s.localName=="template"&&!s.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(s,o,a)||n:s.localName==="slot"&&(o.hasInsertionPoint=!0),Su(s),s.firstChild&&this._parseTemplateChildNodes(s,o,a),s.hasAttributes&&s.hasAttributes()&&(n=this._parseTemplateNodeAttributes(s,o,a)||n),n||a.noted}static _parseTemplateChildNodes(r,o,a){if(!(r.localName==="script"||r.localName==="style"))for(let n=r.firstChild,s=0,l;n;n=l){if(n.localName=="template"&&(n=Mu(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,r.removeChild(u),u=l;if(o.stripWhiteSpace&&!n.textContent.trim()){r.removeChild(n);continue}}let d={parentIndex:s,parentInfo:a};this._parseTemplateNode(n,o,d)&&(d.infoIndex=o.nodeInfoList.push(d)-1),n.parentNode&&s++}}static _parseTemplateNestedTemplate(r,o,a){let n=r,s=this._parseTemplate(n,o);return(s.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),a.templateInfo=s,!0}static _parseTemplateNodeAttributes(r,o,a){let n=!1,s=Array.from(r.attributes);for(let l=s.length-1,d;d=s[l];l--)n=this._parseTemplateNodeAttribute(r,o,a,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(r,o,a,n,s){return n.slice(0,3)==="on-"?(r.removeAttribute(n),a.events=a.events||[],a.events.push({name:n.slice(3),value:s}),!0):n==="id"?(a.id=s,!0):!1}static _contentForTemplate(r){let o=r._templateInfo;return o&&o.content||r.content}_stampTemplate(r,o){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),o=o||this.constructor._parseTemplate(r);let a=o.nodeInfoList,n=o.content||r.content,s=document.importNode(n,!0);s.__noInsertionPoint=!o.hasInsertionPoint;let l=s.nodeList=new Array(a.length);s.$={};for(let d=0,u=a.length,h;d<u&&(h=a[d]);d++){let p=l[d]=Bn(s,h);Nu(this,s.$,p,h),Bu(this,p,h,o),zu(this,p,h)}return s=s,s}_addMethodEventListenerToNode(r,o,a,n){n=n||r;let s=Lu(n,o,a);return this._addEventListenerToNode(r,o,s),s}_addEventListenerToNode(r,o,a){r.addEventListener(o,a)}_removeEventListenerFromNode(r,o,a){r.removeEventListener(o,a)}}return e});/**
981
981
  * @fileoverview
982
982
  * @suppress {checkPrototypalTypes}
983
983
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -987,7 +987,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
987
987
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
988
988
  * Google as part of the polymer project is also subject to an additional IP
989
989
  * rights grant found at http://polymer.github.io/PATENTS.txt
990
- */let qt=0;const Yt=[],L={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Bn="__computeInfo",Vu=/[A-Z]/;function Qr(i,e,t){let r=i[e];if(!r)r=i[e]={};else if(!i.hasOwnProperty(e)&&(r=i[e]=Object.create(i[e]),t))for(let o in r){let a=r[o],n=r[o]=Array(a.length);for(let s=0;s<a.length;s++)n[s]=a[s]}return r}function Nt(i,e,t,r,o,a){if(e){let n=!1;const s=qt++;for(let l in t){let d=o?tt(l):l,u=e[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==s)&&(!o||Xi(l,m.trigger))&&(m.info&&(m.info.lastRun=s),m.fn(i,l,t,r,m.info,o,a),n=!0)}return n}return!1}function Ru(i,e,t,r,o,a,n,s){let l=!1,d=n?tt(r):r,u=e[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==t)&&(!n||Xi(r,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(i,r,o,a,m.info,n,s),l=!0);return l}function Xi(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&Tn(t,i))||!!(e.wildcard&&Ut(t,i))}else return!0}function ma(i,e,t,r,o){let a=typeof o.method=="string"?i[o.method]:o.method,n=o.property;a?a.call(i,i.__data[n],r[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function Hu(i,e,t,r,o){let a=i[L.NOTIFY],n,s=qt++;for(let d in e)e[d]&&(a&&Ru(i,a,s,d,t,r,o)||o&&$u(i,d,t))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function $u(i,e,t){let r=tt(e);if(r!==e){let o=Lr(r)+"-changed";return Fn(i,o,t[e],e),!0}return!1}function Fn(i,e,t,r){let o={value:t,queueProperty:!0};r&&(o.path=r),ae(i).dispatchEvent(new CustomEvent(e,{detail:o}))}function Uu(i,e,t,r,o,a){let n=(a?tt(e):e)!=e?e:null,s=n?pe(i,n):i.__data[e];n&&s===void 0&&(s=t[e]),Fn(i,o.eventName,s,n)}function Wu(i,e,t,r,o){let a,n=i.detail,s=n&&n.path;s?(r=Wt(t,r,s),a=n&&n.value):a=i.currentTarget[t],a=o?!a:a,(!e[L.READ_ONLY]||!e[L.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,a,!0,!!s)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function qu(i,e,t,r,o){let a=i.__data[e];Pr&&(a=Pr(a,o.attrName,"attribute",i)),i._propertyToAttribute(e,o.attrName,a)}function Yu(i,e,t,r){let o=i[L.COMPUTE];if(o)if(lu){qt++;const a=Gu(i),n=[];for(let l in e)_a(l,o,n,a,r);let s;for(;s=n.shift();)Vn(i,"",e,t,s)&&_a(s.methodInfo,o,n,a,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let a=e;for(;Nt(i,o,a,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),a=i.__dataPending,i.__dataPending=null}}const ju=(i,e,t)=>{let r=0,o=e.length-1,a=-1;for(;r<=o;){const n=r+o>>1,s=t.get(e[n].methodInfo)-t.get(i.methodInfo);if(s<0)r=n+1;else if(s>0)o=n-1;else{a=n;break}}a<0&&(a=o+1),e.splice(a,0,i)},_a=(i,e,t,r,o)=>{const a=o?tt(i):i,n=e[a];if(n)for(let s=0;s<n.length;s++){const l=n[s];l.info.lastRun!==qt&&(!o||Xi(i,l.trigger))&&(l.info.lastRun=qt,ju(l.info,t,r))}};function Gu(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[L.COMPUTE];let{counts:r,ready:o,total:a}=Ku(i),n;for(;n=o.shift();){e.set(n,e.size);const s=t[n];s&&s.forEach(l=>{const d=l.info.methodInfo;--a,--r[d]===0&&o.push(d)})}a!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function Ku(i){const e=i[Bn],t={},r=i[L.COMPUTE],o=[];let a=0;for(let n in e){const s=e[n];a+=t[n]=s.args.filter(l=>!l.literal).length+(s.dynamicFn?1:0)}for(let n in r)e[n]||o.push(n);return{counts:t,ready:o,total:a}}function Vn(i,e,t,r,o){let a=wi(i,e,t,r,o);if(a===Yt)return!1;let n=o.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,a,!0):(i[n]=a,!1)}function Xu(i,e,t){let r=i.__dataLinkedPaths;if(r){let o;for(let a in r){let n=r[a];Ut(a,e)?(o=Wt(a,n,e),i._setPendingPropertyOrPath(o,t,!0,!0)):Ut(n,e)&&(o=Wt(n,a,e),i._setPendingPropertyOrPath(o,t,!0,!0))}}}function Jr(i,e,t,r,o,a,n){t.bindings=t.bindings||[];let s={kind:r,target:o,parts:a,literal:n,isCompound:a.length!==1};if(t.bindings.push(s),th(s)){let{event:d,negate:u}=s.parts[0];s.listenerEvent=d||Lr(o)+"-changed",s.listenerNegate=u}let l=e.nodeInfoList.length;for(let d=0;d<s.parts.length;d++){let u=s.parts[d];u.compoundIndex=d,Qu(i,e,s,u,l)}}function Qu(i,e,t,r,o){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let a=r.dependencies,n={index:o,binding:t,part:r,evaluator:i};for(let s=0;s<a.length;s++){let l=a[s];typeof l=="string"&&(l=Hn(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Ju,info:n,trigger:l})}}}function Ju(i,e,t,r,o,a,n){let s=n[o.index],l=o.binding,d=o.part;if(a&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){let u=t[e];e=Wt(d.source,l.target,e),s._setPendingPropertyOrPath(e,u,!1,!0)&&i._enqueueClient(s)}else{let u=o.evaluator._evaluateBinding(i,d,e,t,r,a);u!==Yt&&Zu(i,s,l,d,u)}}function Zu(i,e,t,r,o){if(o=eh(e,o,t,r),Pr&&(o=Pr(o,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,o,t.target);else{let a=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[a]?(!e[L.READ_ONLY]||!e[L.READ_ONLY][a])&&e._setPendingProperty(a,o)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,a,o)}}function eh(i,e,t,r){if(t.isCompound){let o=i.__dataCompoundStorage[t.target];o[r.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function th(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function rh(i,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let o=0;o<r.length;o++){let a=r[o],n=t[o],s=a.bindings;if(s)for(let l=0;l<s.length;l++){let d=s[l];ih(n,d),oh(n,i,d)}n.__dataHost=i}}function ih(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=e.parts,o=new Array(r.length);for(let n=0;n<r.length;n++)o[n]=r[n].literal;let a=e.target;t[a]=o,e.literal&&e.kind=="property"&&(a==="className"&&(i=ae(i)),i[a]=e.literal)}}function oh(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(o){Wu(o,e,t.target,r.source,r.negate)})}}function fa(i,e,t,r,o,a){a=e.static||a&&(typeof a!="object"||a[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:a};for(let s=0,l;s<e.args.length&&(l=e.args[s]);s++)l.literal||i._addPropertyEffect(l.rootProperty,t,{fn:r,info:n,trigger:l});return a&&i._addPropertyEffect(e.methodName,t,{fn:r,info:n}),n}function wi(i,e,t,r,o){let a=i._methodHost||i,n=a[o.methodName];if(n){let s=i._marshalArgs(o.args,e,t);return s===Yt?Yt:n.apply(a,s)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const ah=[],Rn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",nh="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",sh="(?:'(?:[^'\\\\]|\\\\.)*')",lh='(?:"(?:[^"\\\\]|\\\\.)*")',dh="(?:"+sh+"|"+lh+")",va="(?:("+Rn+"|"+nh+"|"+dh+")\\s*)",ch="(?:"+va+"(?:,\\s*"+va+")*)",uh="(?:\\(\\s*(?:"+ch+"?)\\)\\s*)",hh="("+Rn+"\\s*"+uh+"?)",ph="(\\[\\[|{{)\\s*",mh="(?:]]|}})",_h="(?:(!)\\s*)?",fh=ph+_h+hh+mh,ga=new RegExp(fh,"g");function ba(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function Zr(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:ah};if(e[2].trim()){let r=e[2].replace(/\\,/g,"&comma;").split(",");return vh(r,t)}else return t}return null}function vh(i,e){return e.args=i.map(function(t){let r=Hn(t);return r.literal||(e.static=!1),r},this),e}function Hn(i){let e=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=tt(e),t.structured=bi(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function ya(i,e,t){let r=pe(i,t);return r===void 0&&(r=e[t]),r}function $n(i,e,t,r){const o={indexSplices:r};gi&&!i._overrideLegacyUndefined&&(e.splices=o),i.notifyPath(t+".splices",o),i.notifyPath(t+".length",e.length),gi&&!i._overrideLegacyUndefined&&(o.indexSplices=[])}function It(i,e,t,r,o,a){$n(i,e,t,[{index:r,addedCount:o,removed:a,object:e,type:"splice"}])}function gh(i){return i[0].toUpperCase()+i.substring(1)}const Qi=J(i=>{const e=Fu(Tu(i));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return L}_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(Dt.length){let o=Dt[Dt.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let a=this[L.READ_ONLY];for(let n in o)(!a||!a[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n])}_addPropertyEffect(o,a,n){this._createPropertyAccessor(o,a==L.READ_ONLY);let s=Qr(this,a,!0)[o];s||(s=this[a][o]=[]),s.push(n)}_removePropertyEffect(o,a,n){let s=Qr(this,a,!0)[o],l=s.indexOf(n);l>=0&&s.splice(l,1)}_hasPropertyEffect(o,a){let n=this[a];return!!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,L.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,L.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,L.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,L.COMPUTE)}_setPendingPropertyOrPath(o,a,n,s){if(s||tt(Array.isArray(o)?o[0]:o)!==o){if(!s){let l=pe(this,o);if(o=ua(this,o,a),!o||!super._shouldPropertyChange(o,a,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,a,n))return Xu(this,o,a),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,a,n);this[o]=a}return!1}_setUnmanagedPropertyToNode(o,a,n){(n!==o[a]||typeof n=="object")&&(a==="className"&&(o=ae(o)),o[a]=n)}_setPendingProperty(o,a,n){let s=this.__dataHasPaths&&bi(o),l=s?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,a,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),s?this.__dataTemp[o]=a:this.__data[o]=a,this.__dataPending[o]=a,(s||this[L.NOTIFY]&&this[L.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,a){this._setPendingProperty(o,a,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let a=0;a<o.length;a++){let n=o[a];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,a){for(let n in o)(a||!this[L.READ_ONLY]||!this[L.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,a,n){let s=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Yu(this,a,n,s),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(a,n,s),this._flushClients(),Nt(this,this[L.REFLECT],a,n,s),Nt(this,this[L.OBSERVE],a,n,s),l&&Hu(this,l,a,n,s),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,a,n){this[L.PROPAGATE]&&Nt(this,this[L.PROPAGATE],o,a,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,a,n)}_runEffectsForTemplate(o,a,n,s){const l=(d,u)=>{Nt(this,o.propertyEffects,d,n,u,o.nodeList);for(let h=o.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,u)};o.runEffects?o.runEffects(l,a,s):l(a,s)}linkPaths(o,a){o=Mt(o),a=Mt(a),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=a}unlinkPaths(o){o=Mt(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,a){let n={path:""},s=pe(this,o,n);$n(this,s,n.path,a)}get(o,a){return pe(a||this,o)}set(o,a,n){n?ua(n,o,a):(!this[L.READ_ONLY]||!this[L.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,a,!0)&&this._invalidateProperties()}push(o,...a){let n={path:""},s=pe(this,o,n),l=s.length,d=s.push(...a);return a.length&&It(this,s,n.path,l,a.length,[]),d}pop(o){let a={path:""},n=pe(this,o,a),s=!!n.length,l=n.pop();return s&&It(this,n,a.path,n.length,0,[l]),l}splice(o,a,n,...s){let l={path:""},d=pe(this,o,l);a<0?a=d.length-Math.floor(-a):a&&(a=Math.floor(a));let u;return arguments.length===2?u=d.splice(a):u=d.splice(a,n,...s),(s.length||u.length)&&It(this,d,l.path,a,s.length,u),u}shift(o){let a={path:""},n=pe(this,o,a),s=!!n.length,l=n.shift();return s&&It(this,n,a.path,0,0,[l]),l}unshift(o,...a){let n={path:""},s=pe(this,o,n),l=s.unshift(...a);return a.length&&It(this,s,n.path,0,a.length,[]),l}notifyPath(o,a){let n;if(arguments.length==1){let s={path:""};a=pe(this,o,s),n=s.path}else Array.isArray(o)?n=Mt(o):n=o;this._setPendingPropertyOrPath(n,a,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,a){this._addPropertyEffect(o,L.READ_ONLY),a&&(this["_set"+gh(o)]=function(n){this._setProperty(o,n)})}_createPropertyObserver(o,a,n){let s={property:o,method:a,dynamicFn:!!n};this._addPropertyEffect(o,L.OBSERVE,{fn:ma,info:s,trigger:{name:o}}),n&&this._addPropertyEffect(a,L.OBSERVE,{fn:ma,info:s,trigger:{name:a}})}_createMethodObserver(o,a){let n=Zr(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");fa(this,n,L.OBSERVE,wi,null,a)}_createNotifyingProperty(o){this._addPropertyEffect(o,L.NOTIFY,{fn:Uu,info:{eventName:Lr(o)+"-changed",property:o}})}_createReflectedProperty(o){let a=this.constructor.attributeNameForProperty(o);a[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+a+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,L.REFLECT,{fn:qu,info:{attrName:a}})}_createComputedProperty(o,a,n){let s=Zr(a);if(!s)throw new Error("Malformed computed expression '"+a+"'");const l=fa(this,s,L.COMPUTE,Vn,o,n);Qr(this,Bn)[o]=l}_marshalArgs(o,a,n){const s=this.__data,l=[];for(let d=0,u=o.length;d<u;d++){let{name:h,structured:p,wildcard:m,value:b,literal:w}=o[d];if(!w)if(m){const x=Ut(h,a),k=ya(s,n,x?a:h);b={path:x?a:h,value:k,base:x?pe(s,h):k}}else b=p?ya(s,n,h):s[h];if(gi&&!this._overrideLegacyUndefined&&b===void 0&&o.length>1)return Yt;l[d]=b}return l}static addPropertyEffect(o,a,n){this.prototype._addPropertyEffect(o,a,n)}static createPropertyObserver(o,a,n){this.prototype._createPropertyObserver(o,a,n)}static createMethodObserver(o,a){this.prototype._createMethodObserver(o,a)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,a){this.prototype._createReadOnlyProperty(o,a)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,a,n){this.prototype._createComputedProperty(o,a,n)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,a){let n=this.constructor._parseTemplate(o),s=this.__preBoundTemplateInfo==n;if(!s)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(a)if(n=Object.create(n),n.wasPreBound=s,!this.__templateInfo)this.__templateInfo=n;else{const l=o._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,a,n){let s=o.hostProps=o.hostProps||{};s[a]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[a]=l[a]||[]).push(n)}_stampTemplate(o,a){a=a||this._bindTemplate(o,!0),Dt.push(this);let n=super._stampTemplate(o,a);if(Dt.pop(),a.nodeList=n.nodeList,!a.wasPreBound){let s=a.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)s.push(l)}return n.templateInfo=a,rh(this,a),this.__dataClientsReady&&(this._runEffectsForTemplate(a,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const a=o.templateInfo,{previousSibling:n,nextSibling:s,parent:l}=a;n?n.nextSibling=s:l&&(l.firstChild=s),s?s.previousSibling=n:l&&(l.lastChild=n),a.nextSibling=a.previousSibling=null;let d=a.childNodes;for(let u=0;u<d.length;u++){let h=d[u];ae(ae(h).parentNode).removeChild(h)}}static _parseTemplateNode(o,a,n){let s=e._parseTemplateNode.call(this,o,a,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,a);l&&(o.textContent=ba(l)||" ",Jr(this,a,n,"text","textContent",l),s=!0)}return s}static _parseTemplateNodeAttribute(o,a,n,s,l){let d=this._parseBindings(l,a);if(d){let u=s,h="property";Vu.test(s)?h="attribute":s[s.length-1]=="$"&&(s=s.slice(0,-1),h="attribute");let p=ba(d);return p&&h=="attribute"&&(s=="class"&&o.hasAttribute("class")&&(p+=" "+o.getAttribute(s)),o.setAttribute(s,p)),h=="attribute"&&u=="disable-upgrade$"&&o.setAttribute(s,""),o.localName==="input"&&u==="value"&&o.setAttribute(u,""),o.removeAttribute(u),h==="property"&&(s=Dn(s)),Jr(this,a,n,h,s,d,p),!0}else return e._parseTemplateNodeAttribute.call(this,o,a,n,s,l)}static _parseTemplateNestedTemplate(o,a,n){let s=e._parseTemplateNestedTemplate.call(this,o,a,n);const l=o.parentNode,d=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";aa&&(u||h)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=d,n.noted=!0,s=!1);let p=d.hostProps;if(du&&u)p&&(a.hostProps=Object.assign(a.hostProps||{},p),aa||(n.parentInfo.noted=!0));else{let m="{";for(let b in p){let w=[{mode:m,source:b,dependencies:[b],hostProp:!0}];Jr(this,a,n,"property","_host_"+b,w)}}return s}static _parseBindings(o,a){let n=[],s=0,l;for(;(l=ga.exec(o))!==null;){l.index>s&&n.push({literal:o.slice(s,l.index)});let d=l[1][0],u=!!l[2],h=l[3].trim(),p=!1,m="",b=-1;d=="{"&&(b=h.indexOf("::"))>0&&(m=h.substring(b+2),h=h.substring(0,b),p=!0);let w=Zr(h),x=[];if(w){let{args:k,methodName:E}=w;for(let F=0;F<k.length;F++){let O=k[F];O.literal||x.push(O)}let B=a.dynamicFns;(B&&B[E]||w.static)&&(x.push(E),w.dynamicFn=!0)}else x.push(h);n.push({source:h,mode:d,negate:u,customEvent:p,signature:w,dependencies:x,event:m}),s=ga.lastIndex}if(s&&s<o.length){let d=o.substring(s);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(o,a,n,s,l,d){let u;return a.signature?u=wi(o,n,s,l,a.signature):n!=a.source?u=pe(o,a.source):d&&bi(n)?u=pe(o,n):u=o.__data[n],a.negate&&(u=!u),u}}return t}),Dt=[];/**
990
+ */let qt=0;const Yt=[],L={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ln="__computeInfo",Vu=/[A-Z]/;function Qr(i,e,t){let r=i[e];if(!r)r=i[e]={};else if(!i.hasOwnProperty(e)&&(r=i[e]=Object.create(i[e]),t))for(let o in r){let a=r[o],n=r[o]=Array(a.length);for(let s=0;s<a.length;s++)n[s]=a[s]}return r}function Nt(i,e,t,r,o,a){if(e){let n=!1;const s=qt++;for(let l in t){let d=o?tt(l):l,u=e[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==s)&&(!o||Xi(l,m.trigger))&&(m.info&&(m.info.lastRun=s),m.fn(i,l,t,r,m.info,o,a),n=!0)}return n}return!1}function Ru(i,e,t,r,o,a,n,s){let l=!1,d=n?tt(r):r,u=e[d];if(u)for(let h=0,p=u.length,m;h<p&&(m=u[h]);h++)(!m.info||m.info.lastRun!==t)&&(!n||Xi(r,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(i,r,o,a,m.info,n,s),l=!0);return l}function Xi(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&Tn(t,i))||!!(e.wildcard&&Ut(t,i))}else return!0}function ma(i,e,t,r,o){let a=typeof o.method=="string"?i[o.method]:o.method,n=o.property;a?a.call(i,i.__data[n],r[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function Hu(i,e,t,r,o){let a=i[L.NOTIFY],n,s=qt++;for(let d in e)e[d]&&(a&&Ru(i,a,s,d,t,r,o)||o&&$u(i,d,t))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function $u(i,e,t){let r=tt(e);if(r!==e){let o=Br(r)+"-changed";return Fn(i,o,t[e],e),!0}return!1}function Fn(i,e,t,r){let o={value:t,queueProperty:!0};r&&(o.path=r),le(i).dispatchEvent(new CustomEvent(e,{detail:o}))}function Uu(i,e,t,r,o,a){let n=(a?tt(e):e)!=e?e:null,s=n?me(i,n):i.__data[e];n&&s===void 0&&(s=t[e]),Fn(i,o.eventName,s,n)}function Wu(i,e,t,r,o){let a,n=i.detail,s=n&&n.path;s?(r=Wt(t,r,s),a=n&&n.value):a=i.currentTarget[t],a=o?!a:a,(!e[L.READ_ONLY]||!e[L.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,a,!0,!!s)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function qu(i,e,t,r,o){let a=i.__data[e];Pr&&(a=Pr(a,o.attrName,"attribute",i)),i._propertyToAttribute(e,o.attrName,a)}function Yu(i,e,t,r){let o=i[L.COMPUTE];if(o)if(lu){qt++;const a=Gu(i),n=[];for(let l in e)_a(l,o,n,a,r);let s;for(;s=n.shift();)Vn(i,"",e,t,s)&&_a(s.methodInfo,o,n,a,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let a=e;for(;Nt(i,o,a,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),a=i.__dataPending,i.__dataPending=null}}const ju=(i,e,t)=>{let r=0,o=e.length-1,a=-1;for(;r<=o;){const n=r+o>>1,s=t.get(e[n].methodInfo)-t.get(i.methodInfo);if(s<0)r=n+1;else if(s>0)o=n-1;else{a=n;break}}a<0&&(a=o+1),e.splice(a,0,i)},_a=(i,e,t,r,o)=>{const a=o?tt(i):i,n=e[a];if(n)for(let s=0;s<n.length;s++){const l=n[s];l.info.lastRun!==qt&&(!o||Xi(i,l.trigger))&&(l.info.lastRun=qt,ju(l.info,t,r))}};function Gu(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[L.COMPUTE];let{counts:r,ready:o,total:a}=Ku(i),n;for(;n=o.shift();){e.set(n,e.size);const s=t[n];s&&s.forEach(l=>{const d=l.info.methodInfo;--a,--r[d]===0&&o.push(d)})}a!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function Ku(i){const e=i[Ln],t={},r=i[L.COMPUTE],o=[];let a=0;for(let n in e){const s=e[n];a+=t[n]=s.args.filter(l=>!l.literal).length+(s.dynamicFn?1:0)}for(let n in r)e[n]||o.push(n);return{counts:t,ready:o,total:a}}function Vn(i,e,t,r,o){let a=wi(i,e,t,r,o);if(a===Yt)return!1;let n=o.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,a,!0):(i[n]=a,!1)}function Xu(i,e,t){let r=i.__dataLinkedPaths;if(r){let o;for(let a in r){let n=r[a];Ut(a,e)?(o=Wt(a,n,e),i._setPendingPropertyOrPath(o,t,!0,!0)):Ut(n,e)&&(o=Wt(n,a,e),i._setPendingPropertyOrPath(o,t,!0,!0))}}}function Jr(i,e,t,r,o,a,n){t.bindings=t.bindings||[];let s={kind:r,target:o,parts:a,literal:n,isCompound:a.length!==1};if(t.bindings.push(s),th(s)){let{event:d,negate:u}=s.parts[0];s.listenerEvent=d||Br(o)+"-changed",s.listenerNegate=u}let l=e.nodeInfoList.length;for(let d=0;d<s.parts.length;d++){let u=s.parts[d];u.compoundIndex=d,Qu(i,e,s,u,l)}}function Qu(i,e,t,r,o){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let a=r.dependencies,n={index:o,binding:t,part:r,evaluator:i};for(let s=0;s<a.length;s++){let l=a[s];typeof l=="string"&&(l=Hn(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Ju,info:n,trigger:l})}}}function Ju(i,e,t,r,o,a,n){let s=n[o.index],l=o.binding,d=o.part;if(a&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){let u=t[e];e=Wt(d.source,l.target,e),s._setPendingPropertyOrPath(e,u,!1,!0)&&i._enqueueClient(s)}else{let u=o.evaluator._evaluateBinding(i,d,e,t,r,a);u!==Yt&&Zu(i,s,l,d,u)}}function Zu(i,e,t,r,o){if(o=eh(e,o,t,r),Pr&&(o=Pr(o,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,o,t.target);else{let a=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[a]?(!e[L.READ_ONLY]||!e[L.READ_ONLY][a])&&e._setPendingProperty(a,o)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,a,o)}}function eh(i,e,t,r){if(t.isCompound){let o=i.__dataCompoundStorage[t.target];o[r.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function th(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function rh(i,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let o=0;o<r.length;o++){let a=r[o],n=t[o],s=a.bindings;if(s)for(let l=0;l<s.length;l++){let d=s[l];ih(n,d),oh(n,i,d)}n.__dataHost=i}}function ih(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=e.parts,o=new Array(r.length);for(let n=0;n<r.length;n++)o[n]=r[n].literal;let a=e.target;t[a]=o,e.literal&&e.kind=="property"&&(a==="className"&&(i=le(i)),i[a]=e.literal)}}function oh(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(o){Wu(o,e,t.target,r.source,r.negate)})}}function fa(i,e,t,r,o,a){a=e.static||a&&(typeof a!="object"||a[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:a};for(let s=0,l;s<e.args.length&&(l=e.args[s]);s++)l.literal||i._addPropertyEffect(l.rootProperty,t,{fn:r,info:n,trigger:l});return a&&i._addPropertyEffect(e.methodName,t,{fn:r,info:n}),n}function wi(i,e,t,r,o){let a=i._methodHost||i,n=a[o.methodName];if(n){let s=i._marshalArgs(o.args,e,t);return s===Yt?Yt:n.apply(a,s)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const ah=[],Rn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",nh="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",sh="(?:'(?:[^'\\\\]|\\\\.)*')",lh='(?:"(?:[^"\\\\]|\\\\.)*")',dh="(?:"+sh+"|"+lh+")",va="(?:("+Rn+"|"+nh+"|"+dh+")\\s*)",ch="(?:"+va+"(?:,\\s*"+va+")*)",uh="(?:\\(\\s*(?:"+ch+"?)\\)\\s*)",hh="("+Rn+"\\s*"+uh+"?)",ph="(\\[\\[|{{)\\s*",mh="(?:]]|}})",_h="(?:(!)\\s*)?",fh=ph+_h+hh+mh,ga=new RegExp(fh,"g");function ba(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function Zr(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:ah};if(e[2].trim()){let r=e[2].replace(/\\,/g,"&comma;").split(",");return vh(r,t)}else return t}return null}function vh(i,e){return e.args=i.map(function(t){let r=Hn(t);return r.literal||(e.static=!1),r},this),e}function Hn(i){let e=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=tt(e),t.structured=bi(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function ya(i,e,t){let r=me(i,t);return r===void 0&&(r=e[t]),r}function $n(i,e,t,r){const o={indexSplices:r};gi&&!i._overrideLegacyUndefined&&(e.splices=o),i.notifyPath(t+".splices",o),i.notifyPath(t+".length",e.length),gi&&!i._overrideLegacyUndefined&&(o.indexSplices=[])}function It(i,e,t,r,o,a){$n(i,e,t,[{index:r,addedCount:o,removed:a,object:e,type:"splice"}])}function gh(i){return i[0].toUpperCase()+i.substring(1)}const Qi=te(i=>{const e=Fu(Tu(i));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return L}_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(Dt.length){let o=Dt[Dt.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let a=this[L.READ_ONLY];for(let n in o)(!a||!a[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n])}_addPropertyEffect(o,a,n){this._createPropertyAccessor(o,a==L.READ_ONLY);let s=Qr(this,a,!0)[o];s||(s=this[a][o]=[]),s.push(n)}_removePropertyEffect(o,a,n){let s=Qr(this,a,!0)[o],l=s.indexOf(n);l>=0&&s.splice(l,1)}_hasPropertyEffect(o,a){let n=this[a];return!!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,L.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,L.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,L.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,L.COMPUTE)}_setPendingPropertyOrPath(o,a,n,s){if(s||tt(Array.isArray(o)?o[0]:o)!==o){if(!s){let l=me(this,o);if(o=ua(this,o,a),!o||!super._shouldPropertyChange(o,a,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,a,n))return Xu(this,o,a),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,a,n);this[o]=a}return!1}_setUnmanagedPropertyToNode(o,a,n){(n!==o[a]||typeof n=="object")&&(a==="className"&&(o=le(o)),o[a]=n)}_setPendingProperty(o,a,n){let s=this.__dataHasPaths&&bi(o),l=s?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,a,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),s?this.__dataTemp[o]=a:this.__data[o]=a,this.__dataPending[o]=a,(s||this[L.NOTIFY]&&this[L.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,a){this._setPendingProperty(o,a,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let a=0;a<o.length;a++){let n=o[a];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,a){for(let n in o)(a||!this[L.READ_ONLY]||!this[L.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,a,n){let s=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Yu(this,a,n,s),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(a,n,s),this._flushClients(),Nt(this,this[L.REFLECT],a,n,s),Nt(this,this[L.OBSERVE],a,n,s),l&&Hu(this,l,a,n,s),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,a,n){this[L.PROPAGATE]&&Nt(this,this[L.PROPAGATE],o,a,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,a,n)}_runEffectsForTemplate(o,a,n,s){const l=(d,u)=>{Nt(this,o.propertyEffects,d,n,u,o.nodeList);for(let h=o.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,u)};o.runEffects?o.runEffects(l,a,s):l(a,s)}linkPaths(o,a){o=Mt(o),a=Mt(a),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=a}unlinkPaths(o){o=Mt(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,a){let n={path:""},s=me(this,o,n);$n(this,s,n.path,a)}get(o,a){return me(a||this,o)}set(o,a,n){n?ua(n,o,a):(!this[L.READ_ONLY]||!this[L.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,a,!0)&&this._invalidateProperties()}push(o,...a){let n={path:""},s=me(this,o,n),l=s.length,d=s.push(...a);return a.length&&It(this,s,n.path,l,a.length,[]),d}pop(o){let a={path:""},n=me(this,o,a),s=!!n.length,l=n.pop();return s&&It(this,n,a.path,n.length,0,[l]),l}splice(o,a,n,...s){let l={path:""},d=me(this,o,l);a<0?a=d.length-Math.floor(-a):a&&(a=Math.floor(a));let u;return arguments.length===2?u=d.splice(a):u=d.splice(a,n,...s),(s.length||u.length)&&It(this,d,l.path,a,s.length,u),u}shift(o){let a={path:""},n=me(this,o,a),s=!!n.length,l=n.shift();return s&&It(this,n,a.path,0,0,[l]),l}unshift(o,...a){let n={path:""},s=me(this,o,n),l=s.unshift(...a);return a.length&&It(this,s,n.path,0,a.length,[]),l}notifyPath(o,a){let n;if(arguments.length==1){let s={path:""};a=me(this,o,s),n=s.path}else Array.isArray(o)?n=Mt(o):n=o;this._setPendingPropertyOrPath(n,a,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,a){this._addPropertyEffect(o,L.READ_ONLY),a&&(this["_set"+gh(o)]=function(n){this._setProperty(o,n)})}_createPropertyObserver(o,a,n){let s={property:o,method:a,dynamicFn:!!n};this._addPropertyEffect(o,L.OBSERVE,{fn:ma,info:s,trigger:{name:o}}),n&&this._addPropertyEffect(a,L.OBSERVE,{fn:ma,info:s,trigger:{name:a}})}_createMethodObserver(o,a){let n=Zr(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");fa(this,n,L.OBSERVE,wi,null,a)}_createNotifyingProperty(o){this._addPropertyEffect(o,L.NOTIFY,{fn:Uu,info:{eventName:Br(o)+"-changed",property:o}})}_createReflectedProperty(o){let a=this.constructor.attributeNameForProperty(o);a[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+a+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,L.REFLECT,{fn:qu,info:{attrName:a}})}_createComputedProperty(o,a,n){let s=Zr(a);if(!s)throw new Error("Malformed computed expression '"+a+"'");const l=fa(this,s,L.COMPUTE,Vn,o,n);Qr(this,Ln)[o]=l}_marshalArgs(o,a,n){const s=this.__data,l=[];for(let d=0,u=o.length;d<u;d++){let{name:h,structured:p,wildcard:m,value:b,literal:x}=o[d];if(!x)if(m){const w=Ut(h,a),C=ya(s,n,w?a:h);b={path:w?a:h,value:C,base:w?me(s,h):C}}else b=p?ya(s,n,h):s[h];if(gi&&!this._overrideLegacyUndefined&&b===void 0&&o.length>1)return Yt;l[d]=b}return l}static addPropertyEffect(o,a,n){this.prototype._addPropertyEffect(o,a,n)}static createPropertyObserver(o,a,n){this.prototype._createPropertyObserver(o,a,n)}static createMethodObserver(o,a){this.prototype._createMethodObserver(o,a)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,a){this.prototype._createReadOnlyProperty(o,a)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,a,n){this.prototype._createComputedProperty(o,a,n)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,a){let n=this.constructor._parseTemplate(o),s=this.__preBoundTemplateInfo==n;if(!s)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(a)if(n=Object.create(n),n.wasPreBound=s,!this.__templateInfo)this.__templateInfo=n;else{const l=o._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,a,n){let s=o.hostProps=o.hostProps||{};s[a]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[a]=l[a]||[]).push(n)}_stampTemplate(o,a){a=a||this._bindTemplate(o,!0),Dt.push(this);let n=super._stampTemplate(o,a);if(Dt.pop(),a.nodeList=n.nodeList,!a.wasPreBound){let s=a.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)s.push(l)}return n.templateInfo=a,rh(this,a),this.__dataClientsReady&&(this._runEffectsForTemplate(a,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const a=o.templateInfo,{previousSibling:n,nextSibling:s,parent:l}=a;n?n.nextSibling=s:l&&(l.firstChild=s),s?s.previousSibling=n:l&&(l.lastChild=n),a.nextSibling=a.previousSibling=null;let d=a.childNodes;for(let u=0;u<d.length;u++){let h=d[u];le(le(h).parentNode).removeChild(h)}}static _parseTemplateNode(o,a,n){let s=e._parseTemplateNode.call(this,o,a,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,a);l&&(o.textContent=ba(l)||" ",Jr(this,a,n,"text","textContent",l),s=!0)}return s}static _parseTemplateNodeAttribute(o,a,n,s,l){let d=this._parseBindings(l,a);if(d){let u=s,h="property";Vu.test(s)?h="attribute":s[s.length-1]=="$"&&(s=s.slice(0,-1),h="attribute");let p=ba(d);return p&&h=="attribute"&&(s=="class"&&o.hasAttribute("class")&&(p+=" "+o.getAttribute(s)),o.setAttribute(s,p)),h=="attribute"&&u=="disable-upgrade$"&&o.setAttribute(s,""),o.localName==="input"&&u==="value"&&o.setAttribute(u,""),o.removeAttribute(u),h==="property"&&(s=Dn(s)),Jr(this,a,n,h,s,d,p),!0}else return e._parseTemplateNodeAttribute.call(this,o,a,n,s,l)}static _parseTemplateNestedTemplate(o,a,n){let s=e._parseTemplateNestedTemplate.call(this,o,a,n);const l=o.parentNode,d=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";aa&&(u||h)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=d,n.noted=!0,s=!1);let p=d.hostProps;if(du&&u)p&&(a.hostProps=Object.assign(a.hostProps||{},p),aa||(n.parentInfo.noted=!0));else{let m="{";for(let b in p){let x=[{mode:m,source:b,dependencies:[b],hostProp:!0}];Jr(this,a,n,"property","_host_"+b,x)}}return s}static _parseBindings(o,a){let n=[],s=0,l;for(;(l=ga.exec(o))!==null;){l.index>s&&n.push({literal:o.slice(s,l.index)});let d=l[1][0],u=!!l[2],h=l[3].trim(),p=!1,m="",b=-1;d=="{"&&(b=h.indexOf("::"))>0&&(m=h.substring(b+2),h=h.substring(0,b),p=!0);let x=Zr(h),w=[];if(x){let{args:C,methodName:k}=x;for(let R=0;R<C.length;R++){let G=C[R];G.literal||w.push(G)}let F=a.dynamicFns;(F&&F[k]||x.static)&&(w.push(k),x.dynamicFn=!0)}else w.push(h);n.push({source:h,mode:d,negate:u,customEvent:p,signature:x,dependencies:w,event:m}),s=ga.lastIndex}if(s&&s<o.length){let d=o.substring(s);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(o,a,n,s,l,d){let u;return a.signature?u=wi(o,n,s,l,a.signature):n!=a.source?u=me(o,a.source):d&&bi(n)?u=me(o,n):u=o.__data[n],a.negate&&(u=!u),u}}return t}),Dt=[];/**
991
991
  @license
992
992
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
993
993
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1003,7 +1003,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1003
1003
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1004
1004
  Code distributed by Google as part of the polymer project is also
1005
1005
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1006
- */function bh(i){const e={};for(let t in i){const r=i[t];e[t]=typeof r=="function"?{type:r}:r}return e}const yh=J(i=>{const e=Nn(i);function t(a){const n=Object.getPrototypeOf(a);return n.prototype instanceof o?n:null}function r(a){if(!a.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",a))){let n=null;if(a.hasOwnProperty(JSCompiler_renameProperty("properties",a))){const s=a.properties;s&&(n=bh(s))}a.__ownProperties=n}return a.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(s=>this.prototype._addPropertyToAttributeMap(s)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=t(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=r(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=t(this);this.__properties=Object.assign({},n&&n._properties,r(this))}return this.__properties}static typeForProperty(n){const s=this._properties[n];return s&&s.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o});/**
1006
+ */function bh(i){const e={};for(let t in i){const r=i[t];e[t]=typeof r=="function"?{type:r}:r}return e}const yh=te(i=>{const e=Nn(i);function t(a){const n=Object.getPrototypeOf(a);return n.prototype instanceof o?n:null}function r(a){if(!a.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",a))){let n=null;if(a.hasOwnProperty(JSCompiler_renameProperty("properties",a))){const s=a.properties;s&&(n=bh(s))}a.__ownProperties=n}return a.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(s=>this.prototype._addPropertyToAttributeMap(s)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=t(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=r(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=t(this);this.__properties=Object.assign({},n&&n._properties,r(this))}return this.__properties}static typeForProperty(n){const s=this._properties[n];return s&&s.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o});/**
1007
1007
  * @fileoverview
1008
1008
  * @suppress {checkPrototypalTypes}
1009
1009
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1013,7 +1013,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1013
1013
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1014
1014
  * Google as part of the polymer project is also subject to an additional IP
1015
1015
  * rights grant found at http://polymer.github.io/PATENTS.txt
1016
- */const wh="3.5.2",wa=window.ShadyCSS&&window.ShadyCSS.cssBuild,xh=J(i=>{const e=yh(Qi(i));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let u in d){let h=d[u];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[u]=h)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,d,u,h){u.computed&&(u.readOnly=!0),u.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,u.computed,h)),u.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!u.computed):u.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),u.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):u.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),u.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):u.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),u.observer&&l._createPropertyObserver(d,u.observer,h[u.observer]),l._addPropertyToAttributeMap(d)}function a(l,d,u,h){if(!wa){const p=d.content.querySelectorAll("style"),m=Pn(d),b=vu(u),w=d.content.firstElementChild;for(let k=0;k<b.length;k++){let E=b[k];E.textContent=l._processStyleText(E.textContent,h),d.content.insertBefore(E,w)}let x=0;for(let k=0;k<m.length;k++){let E=m[k],B=p[x];B!==E?(E=E.cloneNode(!0),B.parentNode.insertBefore(E,B)):x++,E.textContent=l._processStyleText(E.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,u),cu&&wa&&ou){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&&(!Ar||nu)&&(d=$t.import(l,"template"),Ar&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class s extends e{static get polymerElementVersion(){return wh}static _finalizeClass(){e._finalizeClass.call(this);const d=r(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):xn||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let u in d)o(this.prototype,u,d[u],d)}static createObservers(d,u){const h=this.prototype;for(let p=0;p<d.length;p++)h._createMethodObserver(d[p],u)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Gi(d.url);else{const u=$t.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=au,this.importPath=this.constructor.importPath;let d=t(this.constructor);if(d)for(let u in d){let h=d[u];if(this._canApplyPropertyDefault(u)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(u)?this._setPendingProperty(u,p,!0):this[u]=p}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,u){return ji(d,u)}static _finalizeTemplate(d){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const h=this.importPath,p=h?Bt(h):"";a(this,u,d,p),this.prototype._bindTemplate(u)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const u=ae(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])),su&&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=Bt(this.importPath)),Bt(d,u)}static _parseTemplateContent(d,u,h){return u.dynamicFns=u.dynamicFns||this._properties,e._parseTemplateContent.call(this,d,u,h)}static _addTemplatePropertyEffect(d,u,h){return Cn&&!(u in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${u}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,d,u,h)}}return s});/**
1016
+ */const wh="3.5.2",wa=window.ShadyCSS&&window.ShadyCSS.cssBuild,xh=te(i=>{const e=yh(Qi(i));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let u in d){let h=d[u];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[u]=h)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,d,u,h){u.computed&&(u.readOnly=!0),u.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,u.computed,h)),u.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!u.computed):u.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),u.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):u.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),u.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):u.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),u.observer&&l._createPropertyObserver(d,u.observer,h[u.observer]),l._addPropertyToAttributeMap(d)}function a(l,d,u,h){if(!wa){const p=d.content.querySelectorAll("style"),m=Pn(d),b=vu(u),x=d.content.firstElementChild;for(let C=0;C<b.length;C++){let k=b[C];k.textContent=l._processStyleText(k.textContent,h),d.content.insertBefore(k,x)}let w=0;for(let C=0;C<m.length;C++){let k=m[C],F=p[w];F!==k?(k=k.cloneNode(!0),F.parentNode.insertBefore(k,F)):w++,k.textContent=l._processStyleText(k.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,u),cu&&wa&&ou){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&&(!Ar||nu)&&(d=$t.import(l,"template"),Ar&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class s extends e{static get polymerElementVersion(){return wh}static _finalizeClass(){e._finalizeClass.call(this);const d=r(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):xn||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let u in d)o(this.prototype,u,d[u],d)}static createObservers(d,u){const h=this.prototype;for(let p=0;p<d.length;p++)h._createMethodObserver(d[p],u)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Gi(d.url);else{const u=$t.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=au,this.importPath=this.constructor.importPath;let d=t(this.constructor);if(d)for(let u in d){let h=d[u];if(this._canApplyPropertyDefault(u)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(u)?this._setPendingProperty(u,p,!0):this[u]=p}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,u){return ji(d,u)}static _finalizeTemplate(d){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const h=this.importPath,p=h?Lt(h):"";a(this,u,d,p),this.prototype._bindTemplate(u)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const u=le(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])),su&&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=Lt(this.importPath)),Lt(d,u)}static _parseTemplateContent(d,u,h){return u.dynamicFns=u.dynamicFns||this._properties,e._parseTemplateContent.call(this,d,u,h)}static _addTemplatePropertyEffect(d,u,h){return Cn&&!(u in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${u}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,d,u,h)}}return s});/**
1017
1017
  @license
1018
1018
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1019
1019
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1021,7 +1021,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1021
1021
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1022
1022
  Code distributed by Google as part of the polymer project is also
1023
1023
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1024
- */const xa=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class Un{constructor(e,t){qn(e,t);const r=t.reduce((o,a,n)=>o+Wn(a)+e[n+1],e[0]);this.value=r.toString()}toString(){return this.value}}function Wn(i){if(i instanceof Un)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function Ch(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof Un)return Wn(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const D=function(i,...e){qn(i,e);const t=document.createElement("template");let r=e.reduce((o,a,n)=>o+Ch(a)+i[n+1],i[0]);return xa&&(r=xa.createHTML(r)),t.innerHTML=r,t},qn=(i,e)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||e.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1024
+ */const xa=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class Un{constructor(e,t){qn(e,t);const r=t.reduce((o,a,n)=>o+Wn(a)+e[n+1],e[0]);this.value=r.toString()}toString(){return this.value}}function Wn(i){if(i instanceof Un)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function Ch(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof Un)return Wn(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const O=function(i,...e){qn(i,e);const t=document.createElement("template");let r=e.reduce((o,a,n)=>o+Ch(a)+i[n+1],i[0]);return xa&&(r=xa.createHTML(r)),t.innerHTML=r,t},qn=(i,e)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||e.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1025
1025
  @license
1026
1026
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1027
1027
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1029,7 +1029,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1029
1029
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1030
1030
  Code distributed by Google as part of the polymer project is also
1031
1031
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1032
- */const S=xh(HTMLElement),kh=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,fr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Eh(){function i(){return!0}return Yn(i)}function Ph(){try{return Ah()?!0:Th()?fr?!Ih():!Eh():!1}catch(i){return!1}}function Ah(){return localStorage.getItem("vaadin.developmentmode.force")}function Th(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Ih(){return!!(fr&&Object.keys(fr).map(i=>fr[i]).filter(i=>i.productionMode).length>0)}function Yn(i,e){if(typeof i!="function")return;const t=kh.exec(i.toString());if(t)try{i=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return i(e)}window.Vaadin=window.Vaadin||{};const Ca=function(i,e){if(window.Vaadin.developmentMode)return Yn(i,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Ph());function Dh(){/*! vaadin-dev-mode:start
1032
+ */const M=xh(HTMLElement),kh=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,fr=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Eh(){function i(){return!0}return Yn(i)}function Ph(){try{return Ah()?!0:Th()?fr?!Ih():!Eh():!1}catch(i){return!1}}function Ah(){return localStorage.getItem("vaadin.developmentmode.force")}function Th(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Ih(){return!!(fr&&Object.keys(fr).map(i=>fr[i]).filter(i=>i.productionMode).length>0)}function Yn(i,e){if(typeof i!="function")return;const t=kh.exec(i.toString());if(t)try{i=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return i(e)}window.Vaadin=window.Vaadin||{};const Ca=function(i,e){if(window.Vaadin.developmentMode)return Yn(i,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Ph());function Dh(){/*! vaadin-dev-mode:start
1033
1033
  (function () {
1034
1034
  'use strict';
1035
1035
 
@@ -1535,7 +1535,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1535
1535
  * @license
1536
1536
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1537
1537
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1538
- */function Lh(i){const e=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){e.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return e}function Xn(i){const e=[];let t;return i.localName==="slot"?t=i.assignedElements():(e.push(i),t=[...i.children]),t.forEach(r=>e.push(...Xn(r))),e}function Ji(i){return i?new Set(i.split(" ")):new Set}function Br(i){return i?[...i].join(" "):""}function Qn(i,e,t){const r=Ji(i.getAttribute(e));r.add(t),i.setAttribute(e,Br(r))}function Bh(i,e,t){const r=Ji(i.getAttribute(e));if(r.delete(t),r.size===0){i.removeAttribute(e);return}i.setAttribute(e,Br(r))}function Fh(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
1538
+ */function Bh(i){const e=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){e.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return e}function Xn(i){const e=[];let t;return i.localName==="slot"?t=i.assignedElements():(e.push(i),t=[...i.children]),t.forEach(r=>e.push(...Xn(r))),e}function Ji(i){return i?new Set(i.split(" ")):new Set}function Lr(i){return i?[...i].join(" "):""}function Qn(i,e,t){const r=Ji(i.getAttribute(e));r.add(t),i.setAttribute(e,Lr(r))}function Lh(i,e,t){const r=Ji(i.getAttribute(e));if(r.delete(t),r.size===0){i.removeAttribute(e);return}i.setAttribute(e,Lr(r))}function Fh(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
1539
1539
  * @license
1540
1540
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1541
1541
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1547,11 +1547,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1547
1547
  * @license
1548
1548
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1549
1549
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1550
- */class ce extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${Qt()}`}constructor(e,t,r,o={}){super();const{initializer:a,multiple:n,observe:s,useUniqueId:l,uniqueIdPrefix:d}=o;this.host=e,this.slotName=t,this.tagName=r,this.observe=typeof s=="boolean"?s:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=a,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,d||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:r}=this;let o=this.defaultNode;return!o&&r&&(o=document.createElement(r),o instanceof Element&&(t!==""&&o.setAttribute("slot",t),this.defaultNode=o)),o&&(this.node=o,e.appendChild(o)),o}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Zi(r,({addedNodes:o,removedNodes:a})=>{const n=this.multiple?this.nodes:[this.node],s=o.filter(l=>!Fh(l)&&!n.includes(l));a.length&&(this.nodes=n.filter(l=>!a.includes(l)),a.forEach(l=>{this.teardownNode(l)})),s&&s.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...s].filter(l=>l!==this.defaultNode),s.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=s[0],this.initAddedNode(this.node)))})}}/**
1550
+ */class ue extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${Qt()}`}constructor(e,t,r,o={}){super();const{initializer:a,multiple:n,observe:s,useUniqueId:l,uniqueIdPrefix:d}=o;this.host=e,this.slotName=t,this.tagName=r,this.observe=typeof s=="boolean"?s:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=a,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,d||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:r}=this;let o=this.defaultNode;return!o&&r&&(o=document.createElement(r),o instanceof Element&&(t!==""&&o.setAttribute("slot",t),this.defaultNode=o)),o&&(this.node=o,e.appendChild(o)),o}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Zi(r,({addedNodes:o,removedNodes:a})=>{const n=this.multiple?this.nodes:[this.node],s=o.filter(l=>!Fh(l)&&!n.includes(l));a.length&&(this.nodes=n.filter(l=>!a.includes(l)),a.forEach(l=>{this.teardownNode(l)})),s&&s.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...s].filter(l=>l!==this.defaultNode),s.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=s[0],this.initAddedNode(this.node)))})}}/**
1551
1551
  * @license
1552
1552
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1553
1553
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1554
- */class Ne extends ce{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
1554
+ */class Ne extends ue{constructor(e){super(e,"tooltip"),this.setTarget(e)}initCustomNode(e){e.target=this.target,this.ariaTarget!==void 0&&(e.ariaTarget=this.ariaTarget),this.context!==void 0&&(e.context=this.context),this.manual!==void 0&&(e.manual=this.manual),this.opened!==void 0&&(e.opened=this.opened),this.position!==void 0&&(e._position=this.position),this.shouldShow!==void 0&&(e.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(e){this.ariaTarget=e;const t=this.node;t&&(t.ariaTarget=e)}setContext(e){this.context=e;const t=this.node;t&&(t.context=e)}setManual(e){this.manual=e;const t=this.node;t&&(t.manual=e)}setOpened(e){this.opened=e;const t=this.node;t&&(t.opened=e)}setPosition(e){this.position=e;const t=this.node;t&&(t._position=e)}setShouldShow(e){this.shouldShow=e;const t=this.node;t&&(t.shouldShow=e)}setTarget(e){this.target=e;const t=this.node;t&&(t.target=e)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
1555
1555
  @license
1556
1556
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1557
1557
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1563,11 +1563,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1563
1563
  * @license
1564
1564
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1565
1565
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1566
- */const yt=J(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
1566
+ */const yt=te(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
1567
1567
  * @license
1568
1568
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1569
1569
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1570
- */const rt=J(i=>class extends i{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
1570
+ */const rt=te(i=>class extends i{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
1571
1571
  * @license
1572
1572
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1573
1573
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1579,7 +1579,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1579
1579
  * @license
1580
1580
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1581
1581
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1582
- */const it=J(i=>class extends i{get _keyboardActive(){return Fr()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
1582
+ */const it=te(i=>class extends i{get _keyboardActive(){return Fr()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
1583
1583
  * @license
1584
1584
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1585
1585
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1587,23 +1587,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1587
1587
  * @license
1588
1588
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1589
1589
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1590
- */const Vr=J(i=>class extends it(as(i)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
1590
+ */const Vr=te(i=>class extends it(as(i)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
1591
1591
  * @license
1592
1592
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1593
1593
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1594
- */const so=J(i=>class extends i{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((t,r)=>{this._delegateAttribute(t,e[r])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,r)=>{this._delegateProperty(t,e[r])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
1594
+ */const so=te(i=>class extends i{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((t,r)=>{this._delegateAttribute(t,e[r])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,r)=>{this._delegateProperty(t,e[r])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
1595
1595
  * @license
1596
1596
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1597
1597
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1598
- */const Jt=J(i=>class extends i{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),!(e===""&&t===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}});/**
1598
+ */const Jt=te(i=>class extends i{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),!(e===""&&t===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}});/**
1599
1599
  * @license
1600
1600
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1601
1601
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1602
- */const ap=J(i=>class extends so(yt(Jt(i))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
1602
+ */const ap=te(i=>class extends so(yt(Jt(i))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
1603
1603
  * @license
1604
1604
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1605
1605
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1606
- */const ii=new Map;function lo(i){return ii.has(i)||ii.set(i,new WeakMap),ii.get(i)}function ns(i,e){i&&i.removeAttribute(e)}function ss(i,e){if(!i||!e)return;const t=lo(e);if(t.has(i))return;const r=Ji(i.getAttribute(e));t.set(i,new Set(r))}function np(i,e){if(!i||!e)return;const t=lo(e),r=t.get(i);!r||r.size===0?i.removeAttribute(e):Qn(i,e,Br(r)),t.delete(i)}function ht(i,e,t={newId:null,oldId:null,fromUser:!1}){if(!i||!e)return;const{newId:r,oldId:o,fromUser:a}=t,n=lo(e),s=n.get(i);if(!a&&s){o&&s.delete(o),r&&s.add(r);return}a&&(s?r||n.delete(i):ss(i,e),ns(i,e)),Bh(i,e,o);const l=r||Br(s);l&&Qn(i,e,l)}function sp(i,e){ss(i,e),ns(i,e)}/**
1606
+ */const ii=new Map;function lo(i){return ii.has(i)||ii.set(i,new WeakMap),ii.get(i)}function ns(i,e){i&&i.removeAttribute(e)}function ss(i,e){if(!i||!e)return;const t=lo(e);if(t.has(i))return;const r=Ji(i.getAttribute(e));t.set(i,new Set(r))}function np(i,e){if(!i||!e)return;const t=lo(e),r=t.get(i);!r||r.size===0?i.removeAttribute(e):Qn(i,e,Lr(r)),t.delete(i)}function ht(i,e,t={newId:null,oldId:null,fromUser:!1}){if(!i||!e)return;const{newId:r,oldId:o,fromUser:a}=t,n=lo(e),s=n.get(i);if(!a&&s){o&&s.delete(o),r&&s.add(r);return}a&&(s?r||n.delete(i):ss(i,e),ns(i,e)),Lh(i,e,o);const l=r||Lr(s);l&&Qn(i,e,l)}function sp(i,e){ss(i,e),ns(i,e)}/**
1607
1607
  * @license
1608
1608
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1609
1609
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1611,7 +1611,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1611
1611
  * @license
1612
1612
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1613
1613
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1614
- */const Pe=J(i=>typeof i.prototype.addController=="function"?i:class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
1614
+ */const Pe=te(i=>typeof i.prototype.addController=="function"?i:class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
1615
1615
  * @license
1616
1616
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1617
1617
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1619,7 +1619,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1619
1619
  * @license
1620
1620
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1621
1621
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1622
- */class co extends ce{constructor(e,t,r,o={}){super(e,t,r,sn(wr({},o),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(r=>{const o=r.target,a=o===this.node;r.type==="attributes"?a&&this.__updateNodeId(o):(a||o.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
1622
+ */class co extends ue{constructor(e,t,r,o={}){super(e,t,r,sn(wr({},o),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(r=>{const o=r.target,a=o===this.node;r.type==="attributes"?a&&this.__updateNodeId(o):(a||o.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
1623
1623
  * @license
1624
1624
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1625
1625
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1635,11 +1635,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1635
1635
  * @license
1636
1636
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1637
1637
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1638
- */const up=J(i=>class extends Pe(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new ls(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
1638
+ */const up=te(i=>class extends Pe(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new ls(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
1639
1639
  * @license
1640
1640
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1641
1641
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1642
- */const uo=J(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
1642
+ */const uo=te(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
1643
1643
  * @license
1644
1644
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1645
1645
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1647,7 +1647,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1647
1647
  * @license
1648
1648
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1649
1649
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1650
- */class Zt extends ce{constructor(e,t,r={}){const{uniqueIdPrefix:o}=r;super(e,"input","input",{initializer:(a,n)=>{n.value&&(a.value=n.value),n.type&&a.setAttribute("type",n.type),a.id=this.defaultId,typeof t=="function"&&t(a)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
1650
+ */class Zt extends ue{constructor(e,t,r={}){const{uniqueIdPrefix:o}=r;super(e,"input","input",{initializer:(a,n)=>{n.value&&(a.value=n.value),n.type&&a.setAttribute("type",n.type),a.id=this.defaultId,typeof t=="function"&&t(a)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
1651
1651
  * @license
1652
1652
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1653
1653
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1751,7 +1751,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1751
1751
  * @license
1752
1752
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1753
1753
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1754
- */y("vaadin-checkbox",pp,{moduleId:"vaadin-checkbox-styles"});class mp extends hp(be(H(S))){static get is(){return"vaadin-checkbox"}static get template(){return D`
1754
+ */y("vaadin-checkbox",pp,{moduleId:"vaadin-checkbox-styles"});class mp extends hp(be(U(M))){static get is(){return"vaadin-checkbox"}static get template(){return O`
1755
1755
  <div class="vaadin-checkbox-container">
1756
1756
  <div part="checkbox" aria-hidden="true"></div>
1757
1757
  <slot name="input"></slot>
@@ -1767,7 +1767,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1767
1767
  </div>
1768
1768
  </div>
1769
1769
  <slot name="tooltip"></slot>
1770
- `}ready(){super.ready(),this._tooltipController=new Ne(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}P(mp);/**
1770
+ `}ready(){super.ready(),this._tooltipController=new Ne(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}A(mp);/**
1771
1771
  * @license
1772
1772
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1773
1773
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2027,7 +2027,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2027
2027
  * @license
2028
2028
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
2029
2029
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2030
- */y("vaadin-checkbox-group",vp,{moduleId:"vaadin-checkbox-group-styles"});class gp extends fp(be(H(S))){static get is(){return"vaadin-checkbox-group"}static get template(){return D`
2030
+ */y("vaadin-checkbox-group",vp,{moduleId:"vaadin-checkbox-group-styles"});class gp extends fp(be(U(M))){static get is(){return"vaadin-checkbox-group"}static get template(){return O`
2031
2031
  <div class="vaadin-group-field-container">
2032
2032
  <div part="label">
2033
2033
  <slot name="label"></slot>
@@ -2048,7 +2048,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2048
2048
  </div>
2049
2049
 
2050
2050
  <slot name="tooltip"></slot>
2051
- `}}P(gp);/**
2051
+ `}}A(gp);/**
2052
2052
  * @license
2053
2053
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2054
2054
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3298,11 +3298,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3298
3298
  * @license
3299
3299
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3300
3300
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3301
- */y("vaadin-input-container",kp,{moduleId:"vaadin-input-container-styles"});class us extends Cp(H(ge(S))){static get is(){return"vaadin-input-container"}static get template(){return D`
3301
+ */y("vaadin-input-container",kp,{moduleId:"vaadin-input-container-styles"});class us extends Cp(U(ge(M))){static get is(){return"vaadin-input-container"}static get template(){return O`
3302
3302
  <slot name="prefix"></slot>
3303
3303
  <slot></slot>
3304
3304
  <slot name="suffix"></slot>
3305
- `}}P(us);/**
3305
+ `}}A(us);/**
3306
3306
  * @license
3307
3307
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3308
3308
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3381,7 +3381,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3381
3381
  * @license
3382
3382
  * Copyright (c) 2017 Anton Korzunov
3383
3383
  * SPDX-License-Identifier: MIT
3384
- */let nt=new WeakMap,cr=new WeakMap,ur={},oi=0;const Da=i=>i&&i.nodeType===Node.ELEMENT_NODE,ai=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},Mp=(i,e)=>Da(i)?e.map(t=>{if(!Da(t))return ai(t,"is not a valid element"),null;let r=t;for(;r&&r!==i;){if(i.contains(r))return t;r=r.getRootNode().host}return ai(t,"is not contained inside",i),null}).filter(t=>!!t):(ai(i,"is not a valid element"),[]),Np=(i,e,t,r)=>{const o=Mp(e,Array.isArray(i)?i:[i]);ur[t]||(ur[t]=new WeakMap);const a=ur[t],n=[],s=new Set,l=new Set(o),d=h=>{if(!h||s.has(h))return;s.add(h);const p=h.assignedSlot;p&&d(p),d(h.parentNode||h.host)};o.forEach(d);const u=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(s.has(m))u(m);else{const b=m.getAttribute(r),w=b!==null&&b!=="false",x=(nt.get(m)||0)+1,k=(a.get(m)||0)+1;nt.set(m,x),a.set(m,k),n.push(m),x===1&&w&&cr.set(m,!0),k===1&&m.setAttribute(t,"true"),w||m.setAttribute(r,"true")}})};return u(e),s.clear(),oi+=1,()=>{n.forEach(h=>{const p=nt.get(h)-1,m=a.get(h)-1;nt.set(h,p),a.set(h,m),p||(cr.has(h)?cr.delete(h):h.removeAttribute(r)),m||h.removeAttribute(t)}),oi-=1,oi||(nt=new WeakMap,nt=new WeakMap,cr=new WeakMap,ur={})}},ms=(i,e=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(i)?i:[i]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),Np(r,e,t,"aria-hidden")};/**
3384
+ */let nt=new WeakMap,cr=new WeakMap,ur={},oi=0;const Da=i=>i&&i.nodeType===Node.ELEMENT_NODE,ai=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},Mp=(i,e)=>Da(i)?e.map(t=>{if(!Da(t))return ai(t,"is not a valid element"),null;let r=t;for(;r&&r!==i;){if(i.contains(r))return t;r=r.getRootNode().host}return ai(t,"is not contained inside",i),null}).filter(t=>!!t):(ai(i,"is not a valid element"),[]),Np=(i,e,t,r)=>{const o=Mp(e,Array.isArray(i)?i:[i]);ur[t]||(ur[t]=new WeakMap);const a=ur[t],n=[],s=new Set,l=new Set(o),d=h=>{if(!h||s.has(h))return;s.add(h);const p=h.assignedSlot;p&&d(p),d(h.parentNode||h.host)};o.forEach(d);const u=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(s.has(m))u(m);else{const b=m.getAttribute(r),x=b!==null&&b!=="false",w=(nt.get(m)||0)+1,C=(a.get(m)||0)+1;nt.set(m,w),a.set(m,C),n.push(m),w===1&&x&&cr.set(m,!0),C===1&&m.setAttribute(t,"true"),x||m.setAttribute(r,"true")}})};return u(e),s.clear(),oi+=1,()=>{n.forEach(h=>{const p=nt.get(h)-1,m=a.get(h)-1;nt.set(h,p),a.set(h,m),p||(cr.has(h)?cr.delete(h):h.removeAttribute(r)),m||h.removeAttribute(t)}),oi-=1,oi||(nt=new WeakMap,nt=new WeakMap,cr=new WeakMap,ur={})}},ms=(i,e=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(i)?i:[i]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),Np(r,e,t,"aria-hidden")};/**
3385
3385
  * @license
3386
3386
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3387
3387
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3389,15 +3389,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3389
3389
  * @license
3390
3390
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3391
3391
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3392
- */class Lp{saveFocus(e){this.focusNode=e||Ti()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;Ti()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
3392
+ */class Bp{saveFocus(e){this.focusNode=e||Ti()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;Ti()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
3393
3393
  * @license
3394
3394
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3395
3395
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3396
- */const ni=[];class Bp{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return op(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(no).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");ni.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,ni.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(ni).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,r=e?-1:1,o=this.__focusedElementIndex,a=(t.length+o+r)%t.length,n=t[a];n.focus(),n.localName==="input"&&n.select()}}/**
3396
+ */const ni=[];class Lp{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return op(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(no).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");ni.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,ni.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(ni).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,r=e?-1:1,o=this.__focusedElementIndex,a=(t.length+o+r)%t.length,n=t[a];n.focus(),n.localName==="input"&&n.select()}}/**
3397
3397
  * @license
3398
3398
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3399
3399
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3400
- */const Fp=i=>class extends Pe(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new zp(this),this.__focusTrapController=new Bp(this),this.__focusRestorationController=new Lp}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=!Fr();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=Ti();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const r=e.ownerDocument;for(;t&&t!==r&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
3400
+ */const Fp=i=>class extends Pe(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new zp(this),this.__focusTrapController=new Lp(this),this.__focusRestorationController=new Bp}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=!Fr();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=Ti();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const r=e.ownerDocument;for(;t&&t!==r&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
3401
3401
  * @license
3402
3402
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3403
3403
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3409,11 +3409,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3409
3409
  * @license
3410
3410
  * Copyright (c) 2024 Vaadin Ltd.
3411
3411
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3412
- */function Rp(i,e){let t=null;const r=document.documentElement;function o(){t&&t.disconnect(),t=null}function a(n=!1,s=1){o();const{left:l,top:d,width:u,height:h}=i.getBoundingClientRect();if(n||e(),!u||!h)return;const p=Math.floor(d),m=Math.floor(r.clientWidth-(l+u)),b=Math.floor(r.clientHeight-(d+h)),w=Math.floor(l),x={rootMargin:`${-p}px ${-m}px ${-b}px ${-w}px`,threshold:Math.max(0,Math.min(1,s))||1};let k=!0;function E(B){let F=B[0].intersectionRatio;if(F!==s){if(!k)return a();F===0&&(F=1e-7),a(!1,F)}k=!1}t=new IntersectionObserver(E,x),t.observe(i)}return a(!0),o}/**
3412
+ */function Rp(i,e){let t=null;const r=document.documentElement;function o(){t&&t.disconnect(),t=null}function a(n=!1,s=1){o();const{left:l,top:d,width:u,height:h}=i.getBoundingClientRect();if(n||e(),!u||!h)return;const p=Math.floor(d),m=Math.floor(r.clientWidth-(l+u)),b=Math.floor(r.clientHeight-(d+h)),x=Math.floor(l),w={rootMargin:`${-p}px ${-m}px ${-b}px ${-x}px`,threshold:Math.max(0,Math.min(1,s))||1};let C=!0;function k(F){let R=F[0].intersectionRatio;if(R!==s){if(!C)return a();R===0&&(R=1e-7),a(!1,R)}C=!1}t=new IntersectionObserver(k,w),t.observe(i)}return a(!0),o}/**
3413
3413
  * @license
3414
3414
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3415
3415
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3416
- */const si={start:"top",end:"bottom"},li={start:"left",end:"right"},Sa=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),vo=i=>class extends i{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=Lh(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Rp(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,Sa.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,Sa.observe(t))),e){const r=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(r[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const r=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,r),a=!r&&o||r&&!o;this.style.alignItems=a?"flex-start":"flex-end";const n=this.getBoundingClientRect(),s=this.__calculatePositionInOneDimension(e,n,this.noVerticalOverlap,si,this,t),l=this.__calculatePositionInOneDimension(e,n,this.noHorizontalOverlap,li,this,o);Object.assign(this.style,s,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!a),this.toggleAttribute("start-aligned",a)}__shouldAlignStartHorizontally(e,t){const r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),a=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,r,o,this.__margins,a,this.noHorizontalOverlap,li)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const r=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,r,this.__margins,o,this.noVerticalOverlap,si)}__shouldAlignStart(e,t,r,o,a,n,s){const l=r-e[n?s.end:s.start]-o[s.end],d=e[n?s.start:s.end]-o[s.start],u=a?l:d,h=u>(a?d:l)||u>t;return a===h}__adjustBottomProperty(e,t,r){let o;if(e===t.end){if(t.end===si.end){const a=Math.min(window.innerHeight,document.documentElement.clientHeight);if(r>a&&this.__oldViewportHeight){const n=this.__oldViewportHeight-a;o=r-n}this.__oldViewportHeight=a}if(t.end===li.end){const a=Math.min(window.innerWidth,document.documentElement.clientWidth);if(r>a&&this.__oldViewportWidth){const n=this.__oldViewportWidth-a;o=r-n}this.__oldViewportWidth=a}}return o}__calculatePositionInOneDimension(e,t,r,o,a,n){const s=n?o.start:o.end,l=n?o.end:o.start,d=parseFloat(a.style[s]||getComputedStyle(a)[s]),u=this.__adjustBottomProperty(s,o,d),h=t[n?o.start:o.end]-e[r===n?o.end:o.start],p=u?`${u}px`:`${d+h*(n?-1:1)}px`;return{[s]:p,[l]:""}}};/**
3416
+ */const si={start:"top",end:"bottom"},li={start:"left",end:"right"},Sa=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),vo=i=>class extends i{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=Bh(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Rp(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,Sa.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,Sa.observe(t))),e){const r=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(r[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const r=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,r),a=!r&&o||r&&!o;this.style.alignItems=a?"flex-start":"flex-end";const n=this.getBoundingClientRect(),s=this.__calculatePositionInOneDimension(e,n,this.noVerticalOverlap,si,this,t),l=this.__calculatePositionInOneDimension(e,n,this.noHorizontalOverlap,li,this,o);Object.assign(this.style,s,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!a),this.toggleAttribute("start-aligned",a)}__shouldAlignStartHorizontally(e,t){const r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),a=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,r,o,this.__margins,a,this.noHorizontalOverlap,li)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const r=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,r,this.__margins,o,this.noVerticalOverlap,si)}__shouldAlignStart(e,t,r,o,a,n,s){const l=r-e[n?s.end:s.start]-o[s.end],d=e[n?s.start:s.end]-o[s.start],u=a?l:d,h=u>(a?d:l)||u>t;return a===h}__adjustBottomProperty(e,t,r){let o;if(e===t.end){if(t.end===si.end){const a=Math.min(window.innerHeight,document.documentElement.clientHeight);if(r>a&&this.__oldViewportHeight){const n=this.__oldViewportHeight-a;o=r-n}this.__oldViewportHeight=a}if(t.end===li.end){const a=Math.min(window.innerWidth,document.documentElement.clientWidth);if(r>a&&this.__oldViewportWidth){const n=this.__oldViewportWidth-a;o=r-n}this.__oldViewportWidth=a}}return o}__calculatePositionInOneDimension(e,t,r,o,a,n){const s=n?o.start:o.end,l=n?o.end:o.start,d=parseFloat(a.style[s]||getComputedStyle(a)[s]),u=this.__adjustBottomProperty(s,o,d),h=t[n?o.start:o.end]-e[r===n?o.end:o.start],p=u?`${u}px`:`${d+h*(n?-1:1)}px`;return{[s]:p,[l]:""}}};/**
3417
3417
  * @license
3418
3418
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
3419
3419
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3440,14 +3440,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3440
3440
  * @license
3441
3441
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3442
3442
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3443
- */y("vaadin-date-picker-overlay",[tr,$p],{moduleId:"vaadin-date-picker-overlay-styles"});class Up extends Hp(ge(H(S))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return D`
3443
+ */y("vaadin-date-picker-overlay",[tr,$p],{moduleId:"vaadin-date-picker-overlay-styles"});class Up extends Hp(ge(U(M))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return O`
3444
3444
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3445
3445
  <div part="overlay" id="overlay">
3446
3446
  <div part="content" id="content">
3447
3447
  <slot></slot>
3448
3448
  </div>
3449
3449
  </div>
3450
- `}}P(Up);/**
3450
+ `}}A(Up);/**
3451
3451
  * @license
3452
3452
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3453
3453
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3532,7 +3532,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3532
3532
  * @license
3533
3533
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3534
3534
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3535
- */y("vaadin-button",vs,{moduleId:"vaadin-button-styles"});class qp extends go(be(H(Pe(S)))){static get is(){return"vaadin-button"}static get template(){return Wp(D)}ready(){super.ready(),this._tooltipController=new Ne(this),this.addController(this._tooltipController)}}P(qp);/**
3535
+ */y("vaadin-button",vs,{moduleId:"vaadin-button-styles"});class qp extends go(be(U(Pe(M)))){static get is(){return"vaadin-button"}static get template(){return Wp(O)}ready(){super.ready(),this._tooltipController=new Ne(this),this.addController(this._tooltipController)}}A(qp);/**
3536
3536
  * @license
3537
3537
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3538
3538
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3622,7 +3622,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3622
3622
  height: 100%;
3623
3623
  }
3624
3624
  </style>
3625
- `;class Jp extends ws{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(xs.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=bs(t)}}P(Jp);/**
3625
+ `;class Jp extends ws{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(xs.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=bs(t)}}A(Jp);/**
3626
3626
  * @license
3627
3627
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3628
3628
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3660,7 +3660,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3660
3660
  border-left-color: #000;
3661
3661
  }
3662
3662
  </style>
3663
- `;class Zp extends ws{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Cs.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,r=new Date(t);return r.setFullYear(parseInt(e)+t.getFullYear()),r.getFullYear()}}P(Zp);/**
3663
+ `;class Zp extends ws{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Cs.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,r=new Date(t);return r.setFullYear(parseInt(e)+t.getFullYear()),r.getFullYear()}}A(Zp);/**
3664
3664
  * @license
3665
3665
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3666
3666
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3668,7 +3668,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3668
3668
  * @license
3669
3669
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3670
3670
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3671
- */class tm extends H(em(S)){static get is(){return"vaadin-date-picker-year"}static get template(){return D`
3671
+ */class tm extends U(em(M)){static get is(){return"vaadin-date-picker-year"}static get template(){return O`
3672
3672
  <style>
3673
3673
  :host {
3674
3674
  display: block;
@@ -3677,7 +3677,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3677
3677
  </style>
3678
3678
  <div part="year-number">[[year]]</div>
3679
3679
  <div part="year-separator" aria-hidden="true"></div>
3680
- `}}P(tm);/**
3680
+ `}}A(tm);/**
3681
3681
  @license
3682
3682
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3683
3683
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3685,7 +3685,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3685
3685
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3686
3686
  Code distributed by Google as part of the polymer project is also
3687
3687
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3688
- */function wo(i,e,t,r,o){let a;o&&(a=typeof t=="object"&&t!==null,a&&(r=i.__dataTemp[e]));let n=r!==t&&(r===r||t===t);return a&&n&&(i.__dataTemp[e]=t),n}const xo=J(i=>{class e extends i{_shouldPropertyChange(r,o,a){return wo(this,r,o,a,!0)}}return e}),rm=J(i=>{class e extends i{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,o,a){return wo(this,r,o,a,this.mutableData)}}return e});xo._mutablePropertyChange=wo;/**
3688
+ */function wo(i,e,t,r,o){let a;o&&(a=typeof t=="object"&&t!==null,a&&(r=i.__dataTemp[e]));let n=r!==t&&(r===r||t===t);return a&&n&&(i.__dataTemp[e]=t),n}const xo=te(i=>{class e extends i{_shouldPropertyChange(r,o,a){return wo(this,r,o,a,!0)}}return e}),rm=te(i=>{class e extends i{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,o,a){return wo(this,r,o,a,this.mutableData)}}return e});xo._mutablePropertyChange=wo;/**
3689
3689
  @license
3690
3690
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3691
3691
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3693,7 +3693,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3693
3693
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3694
3694
  Code distributed by Google as part of the polymer project is also
3695
3695
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3696
- */let Li=null;function Bi(){return Li}Bi.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Bi,writable:!0}});const ks=Qi(Bi),im=xo(ks);function om(i,e){Li=i,Object.setPrototypeOf(i,e.prototype),new e,Li=null}const am=Qi(class{});function nm(i,e){for(let t=0;t<e.length;t++){let r=e[t];if(!!i!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)i?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(i)r.__polymerReplaced__=document.createComment("hidden-slot"),ae(ae(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const o=r.__polymerReplaced__;o&&ae(ae(o).parentNode).replaceChild(r,o)}else r.style&&(i?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=i,r._showHideChildren&&r._showHideChildren(i)}}class Ue extends am{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let o=this.root.firstChild;o;o=o.nextSibling)t.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,o=>{o.model=this,r(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(e,t,r)}}_showHideChildren(e){nm(e,this.children)}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}Ue.prototype.__dataHost;Ue.prototype.__templatizeOptions;Ue.prototype._methodHost;Ue.prototype.__templatizeOwner;Ue.prototype.__hostProps;const sm=xo(Ue);function Oa(i){let e=i.__dataHost;return e&&e._methodHost||e}function lm(i,e,t){let r=t.mutableData?sm:Ue;Fi.mixin&&(r=Fi.mixin(r));let o=class extends r{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(i),um(o,i,e,t),o}function dm(i,e,t,r){let o=t.forwardHostProp;if(o&&e.hasHostProps){const a=i.localName=="template";let n=e.templatizeTemplateClass;if(!n){if(a){let l=t.mutableData?im:ks;class d extends l{}n=e.templatizeTemplateClass=d}else{const l=i.constructor;class d extends l{}n=e.templatizeTemplateClass=d}let s=e.hostProps;for(let l in s)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:cm(l,o)}),n.prototype._createNotifyingProperty("_host_"+l);Cn&&r&&mm(e,t,r)}if(i.__dataProto&&Object.assign(i.__data,i.__dataProto),a)om(i,n),i.__dataTemp={},i.__dataPending=null,i.__dataOld=null,i._enableProperties();else{Object.setPrototypeOf(i,n.prototype);const s=e.hostProps;for(let l in s)if(l="_host_"+l,l in i){const d=i[l];delete i[l],i.__data[l]=d}}}}function cm(i,e){return function(t,r,o){e.call(t.__templatizeOwner,r.substring(6),o[r])}}function um(i,e,t,r){let o=t.hostProps||{};for(let a in r.instanceProps){delete o[a];let n=r.notifyInstanceProp;n&&i.prototype._addPropertyEffect(a,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:hm(a,n)})}if(r.forwardHostProp&&e.__dataHost)for(let a in o)t.hasHostProps||(t.hasHostProps=!0),i.prototype._addPropertyEffect(a,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:pm()})}function hm(i,e){return function(t,r,o){e.call(t.__templatizeOwner,t,r,o[r])}}function pm(){return function(i,e,t){i.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function Fi(i,e,t){if(Ar&&!Oa(i))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},i.__templatizeOwner)throw new Error("A <template> can only be templatized once");i.__templatizeOwner=e;let r=(e?e.constructor:Ue)._parseTemplate(i),o=r.templatizeInstanceClass;o||(o=lm(i,r,t),r.templatizeInstanceClass=o);const a=Oa(i);dm(i,r,t,a);let n=class extends o{};return n.prototype._methodHost=a,n.prototype.__dataHost=i,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=r.hostProps,n=n,n}function mm(i,e,t){const r=t.constructor._properties,{propertyEffects:o}=i,{instanceProps:a}=e;for(let n in o)if(!r[n]&&!(a&&a[n])){const s=o[n];for(let l=0;l<s.length;l++){const{part:d}=s[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function _m(i,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=i)e=t.__dataHost;else return t;else e=ae(e).parentNode;return null}/**
3696
+ */let Bi=null;function Li(){return Bi}Li.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Li,writable:!0}});const ks=Qi(Li),im=xo(ks);function om(i,e){Bi=i,Object.setPrototypeOf(i,e.prototype),new e,Bi=null}const am=Qi(class{});function nm(i,e){for(let t=0;t<e.length;t++){let r=e[t];if(!!i!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)i?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(i)r.__polymerReplaced__=document.createComment("hidden-slot"),le(le(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const o=r.__polymerReplaced__;o&&le(le(o).parentNode).replaceChild(r,o)}else r.style&&(i?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=i,r._showHideChildren&&r._showHideChildren(i)}}class Ue extends am{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let o=this.root.firstChild;o;o=o.nextSibling)t.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,o=>{o.model=this,r(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(e,t,r)}}_showHideChildren(e){nm(e,this.children)}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}Ue.prototype.__dataHost;Ue.prototype.__templatizeOptions;Ue.prototype._methodHost;Ue.prototype.__templatizeOwner;Ue.prototype.__hostProps;const sm=xo(Ue);function Oa(i){let e=i.__dataHost;return e&&e._methodHost||e}function lm(i,e,t){let r=t.mutableData?sm:Ue;Fi.mixin&&(r=Fi.mixin(r));let o=class extends r{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(i),um(o,i,e,t),o}function dm(i,e,t,r){let o=t.forwardHostProp;if(o&&e.hasHostProps){const a=i.localName=="template";let n=e.templatizeTemplateClass;if(!n){if(a){let l=t.mutableData?im:ks;class d extends l{}n=e.templatizeTemplateClass=d}else{const l=i.constructor;class d extends l{}n=e.templatizeTemplateClass=d}let s=e.hostProps;for(let l in s)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:cm(l,o)}),n.prototype._createNotifyingProperty("_host_"+l);Cn&&r&&mm(e,t,r)}if(i.__dataProto&&Object.assign(i.__data,i.__dataProto),a)om(i,n),i.__dataTemp={},i.__dataPending=null,i.__dataOld=null,i._enableProperties();else{Object.setPrototypeOf(i,n.prototype);const s=e.hostProps;for(let l in s)if(l="_host_"+l,l in i){const d=i[l];delete i[l],i.__data[l]=d}}}}function cm(i,e){return function(t,r,o){e.call(t.__templatizeOwner,r.substring(6),o[r])}}function um(i,e,t,r){let o=t.hostProps||{};for(let a in r.instanceProps){delete o[a];let n=r.notifyInstanceProp;n&&i.prototype._addPropertyEffect(a,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:hm(a,n)})}if(r.forwardHostProp&&e.__dataHost)for(let a in o)t.hasHostProps||(t.hasHostProps=!0),i.prototype._addPropertyEffect(a,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:pm()})}function hm(i,e){return function(t,r,o){e.call(t.__templatizeOwner,t,r,o[r])}}function pm(){return function(i,e,t){i.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function Fi(i,e,t){if(Ar&&!Oa(i))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},i.__templatizeOwner)throw new Error("A <template> can only be templatized once");i.__templatizeOwner=e;let r=(e?e.constructor:Ue)._parseTemplate(i),o=r.templatizeInstanceClass;o||(o=lm(i,r,t),r.templatizeInstanceClass=o);const a=Oa(i);dm(i,r,t,a);let n=class extends o{};return n.prototype._methodHost=a,n.prototype.__dataHost=i,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=r.hostProps,n=n,n}function mm(i,e,t){const r=t.constructor._properties,{propertyEffects:o}=i,{instanceProps:a}=e;for(let n in o)if(!r[n]&&!(a&&a[n])){const s=o[n];for(let l=0;l<s.length;l++){const{part:d}=s[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function _m(i,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=i)e=t.__dataHost;else return t;else e=le(e).parentNode;return null}/**
3697
3697
  @license
3698
3698
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3699
3699
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3709,7 +3709,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3709
3709
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3710
3710
  Code distributed by Google as part of the polymer project is also
3711
3711
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3712
- */const vm=rm(S);class Na extends vm{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:!na,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),fm()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=ae(ae(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=Fi(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(o,a){let n=this.__instances;for(let s=0,l;s<n.length&&(l=n[s]);s++)l.forwardHostProp(o,a)},notifyInstanceProp:function(o,a,n){if(gu(this.as,a)){let s=o[this.itemsIndexAs];a==this.as&&(this.items[s]=n);let l=Wt(this.as,`${JSCompiler_renameProperty("items",this)}.${s}`,a);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,r=this.__getMethodHost();return function(){return r[t].apply(r,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let r=0;r<t.length;r++)e.indexOf(t[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Sr.debounce(this.__renderDebouncer,t>0?ku.after(t):Mn,e.bind(this)),Xp(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),yo()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length);this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!na||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=r;return this.__filterFn&&(t=t.filter((r,o,a)=>this.__filterFn(e[r],o,a))),this.__sortFn&&t.sort((r,o)=>this.__sortFn(e[r],e[o])),t}__calculateLimit(e){let t=e;const r=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),o=Math.max(t-r,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-r,0),this.__chunkCount),t=Math.min(r+o,e)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,r){const o=this.__itemsIdxToInstIdx={};let a;for(a=0;a<t;a++){let n=this.__instances[a],s=r[a],l=e[s];o[s]=a,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,a),n._setPendingProperty(this.itemsIndexAs,s),n._flushProperties()):this.__insertInstance(l,a,s)}for(let n=this.__instances.length-1;n>=a;n--)this.__detachAndRemoveInstance(n)}__detachInstance(e){let t=this.__instances[e];const r=ae(t.root);for(let o=0;o<t.children.length;o++){let a=t.children[o];r.appendChild(a)}return t}__attachInstance(e,t){let r=this.__instances[e];t.insertBefore(r.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){let o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=r,new this.__ctor(o)}__insertInstance(e,t,r){const o=this.__stampInstance(e,t,r);let a=this.__instances[t+1],n=a?a.children[0]:this;return ae(ae(this).parentNode).insertBefore(o.root,n),this.__instances[t]=o,o}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let r=e.slice(6),o=r.indexOf("."),a=o<0?r:r.substring(0,o);if(a==parseInt(a,10)){let n=o<0?"":r.substring(o+1);this.__handleObservedPaths(n);let s=this.__itemsIdxToInstIdx[a],l=this.__instances[s];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return _m(this.template,e)}}customElements.define(Na.is,Na);/**
3712
+ */const vm=rm(M);class Na extends vm{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:!na,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),fm()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=le(le(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=Fi(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(o,a){let n=this.__instances;for(let s=0,l;s<n.length&&(l=n[s]);s++)l.forwardHostProp(o,a)},notifyInstanceProp:function(o,a,n){if(gu(this.as,a)){let s=o[this.itemsIndexAs];a==this.as&&(this.items[s]=n);let l=Wt(this.as,`${JSCompiler_renameProperty("items",this)}.${s}`,a);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,r=this.__getMethodHost();return function(){return r[t].apply(r,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let r=0;r<t.length;r++)e.indexOf(t[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=Sr.debounce(this.__renderDebouncer,t>0?ku.after(t):Mn,e.bind(this)),Xp(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),yo()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length);this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!na||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=r;return this.__filterFn&&(t=t.filter((r,o,a)=>this.__filterFn(e[r],o,a))),this.__sortFn&&t.sort((r,o)=>this.__sortFn(e[r],e[o])),t}__calculateLimit(e){let t=e;const r=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),o=Math.max(t-r,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-r,0),this.__chunkCount),t=Math.min(r+o,e)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,r){const o=this.__itemsIdxToInstIdx={};let a;for(a=0;a<t;a++){let n=this.__instances[a],s=r[a],l=e[s];o[s]=a,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,a),n._setPendingProperty(this.itemsIndexAs,s),n._flushProperties()):this.__insertInstance(l,a,s)}for(let n=this.__instances.length-1;n>=a;n--)this.__detachAndRemoveInstance(n)}__detachInstance(e){let t=this.__instances[e];const r=le(t.root);for(let o=0;o<t.children.length;o++){let a=t.children[o];r.appendChild(a)}return t}__attachInstance(e,t){let r=this.__instances[e];t.insertBefore(r.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){let o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=r,new this.__ctor(o)}__insertInstance(e,t,r){const o=this.__stampInstance(e,t,r);let a=this.__instances[t+1],n=a?a.children[0]:this;return le(le(this).parentNode).insertBefore(o.root,n),this.__instances[t]=o,o}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let r=e.slice(6),o=r.indexOf("."),a=o<0?r:r.substring(0,o);if(a==parseInt(a,10)){let n=o<0?"":r.substring(o+1);this.__handleObservedPaths(n);let s=this.__itemsIdxToInstIdx[a],l=this.__instances[s];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return _m(this.template,e)}}customElements.define(Na.is,Na);/**
3713
3713
  * @license
3714
3714
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3715
3715
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3777,7 +3777,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3777
3777
  * @license
3778
3778
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3779
3779
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3780
- */y("vaadin-month-calendar",bm,{moduleId:"vaadin-month-calendar-styles"});class ym extends gm(H(S)){static get template(){return D`
3780
+ */y("vaadin-month-calendar",bm,{moduleId:"vaadin-month-calendar-styles"});class ym extends gm(U(M)){static get template(){return O`
3781
3781
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3782
3782
  <table
3783
3783
  id="monthGrid"
@@ -3819,7 +3819,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3819
3819
  </template>
3820
3820
  </tbody>
3821
3821
  </table>
3822
- `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,o,a,n){const s=["date"],l=e>zi(new Date),d=e<zi(new Date);return this.__isDayDisabled(e,o,a,n)&&s.push("disabled"),this.__isDayFocused(e,t)&&s.push("focused"),this.__isDaySelected(e,r)&&s.push("selected"),this._isToday(e)&&s.push("today"),d&&s.push("past"),l&&s.push("future"),s.join(" ")}__isDayFocused(e,t){return Oe(e,t)}__isDaySelected(e,t){return Oe(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r,o){return!vt(e,t,r,o)}__getDayAriaDisabled(e,t,r,o){if(!(e===void 0||t===void 0&&r===void 0&&o===void 0)&&this.__isDayDisabled(e,t,r,o))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}P(ym);/**
3822
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,o,a,n){const s=["date"],l=e>zi(new Date),d=e<zi(new Date);return this.__isDayDisabled(e,o,a,n)&&s.push("disabled"),this.__isDayFocused(e,t)&&s.push("focused"),this.__isDaySelected(e,r)&&s.push("selected"),this._isToday(e)&&s.push("today"),d&&s.push("past"),l&&s.push("future"),s.join(" ")}__isDayFocused(e,t){return Oe(e,t)}__isDaySelected(e,t){return Oe(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r,o){return!vt(e,t,r,o)}__getDayAriaDisabled(e,t,r,o){if(!(e===void 0||t===void 0&&r===void 0&&o===void 0)&&this.__isDayDisabled(e,t,r,o))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}A(ym);/**
3823
3823
  * @license
3824
3824
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3825
3825
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3827,7 +3827,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3827
3827
  * @license
3828
3828
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3829
3829
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3830
- */const wm=i=>class extends i{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(){rs(this.$.scrollers,"pan-y"),Ce(this.$.scrollers,"track",this._track.bind(this)),Ce(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ce(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ce(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Co(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new ce(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Ce(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new ce(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Ce(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new ce(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(r=>{r.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new ce(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Ce(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,r,o,a){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(r,o,a))}__updateCalendars(e,t,r,o,a,n,s,l,d,u){e&&e.length&&e.forEach(h=>{h.i18n=t,h.minDate=r,h.maxDate=o,h.isDateDisabled=u,h.focusedDate=n,h.selectedDate=a,h.showWeekNumbers=s,h.ignoreTaps=l,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(e,t,r){e&&e.length&&e.forEach(o=>{o.selectedDate=t,r?o.setAttribute("theme",r):o.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const r=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const s=this._calculateWeekScrollOffset(e);this._scrollToPosition(r+s,t);return}const o=this._monthScroller.position>r,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,n=this._monthScroller.position+a-1<r;o?this._scrollToPosition(r,t):n&&this._scrollToPosition(r-a+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let r=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(r+=1);return r/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,Re.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,r){return e&&t&&typeof t.formatDate=="function"?t.formatDate(bo(e)):r}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let r;this._revealPromise=new Promise(l=>{r=l});const o=(l,d,u,h)=>(l/=h/2,l<1?u/2*l*l+d:(l-=1,-u/2*(l*(l-2)-1)+d));let a=0;const n=this._monthScroller.position,s=l=>{a||(a=l);const d=l-a;if(d<this.scrollDuration){const u=o(d,n,this._targetPosition-n,this.scrollDuration);this._monthScroller.position=u,window.requestAnimationFrame(s)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:n}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,r(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(s)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return bs(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Oe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&Oe(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return xr(this,null,function*(){const r=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=r,t||(this._focusedMonthDate=r.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return xr(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{_o(this,()=>{yo(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(gs(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,r){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,r):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+e),t&&r.setDate(this.focusedDate.getDate()+t),r}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),r=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==r&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const r=new Date(0,0);r.setFullYear(e.getFullYear()),t==="minDate"?(r.setMonth(e.getMonth()),r.setDate(1)):(r.setMonth(e.getMonth()+1),r.setDate(0)),this._dateAllowed(r)?this.focusDate(r):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,r=this.maxDate,o=this.isDateDisabled){return vt(e,t,r,o)}_isTodayAllowed(e,t,r){return this._dateAllowed(this._getTodayMidnight(),e,t,r)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
3830
+ */const wm=i=>class extends i{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(){rs(this.$.scrollers,"pan-y"),Ce(this.$.scrollers,"track",this._track.bind(this)),Ce(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ce(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ce(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Co(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new ue(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),Ce(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new ue(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),Ce(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new ue(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(r=>{r.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new ue(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),Ce(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,r,o,a){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(r,o,a))}__updateCalendars(e,t,r,o,a,n,s,l,d,u){e&&e.length&&e.forEach(h=>{h.i18n=t,h.minDate=r,h.maxDate=o,h.isDateDisabled=u,h.focusedDate=n,h.selectedDate=a,h.showWeekNumbers=s,h.ignoreTaps=l,d?h.setAttribute("theme",d):h.removeAttribute("theme")})}__updateYears(e,t,r){e&&e.length&&e.forEach(o=>{o.selectedDate=t,r?o.setAttribute("theme",r):o.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const r=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const s=this._calculateWeekScrollOffset(e);this._scrollToPosition(r+s,t);return}const o=this._monthScroller.position>r,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,n=this._monthScroller.position+a-1<r;o?this._scrollToPosition(r,t):n&&this._scrollToPosition(r-a+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let r=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(r+=1);return r/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,Re.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,r){return e&&t&&typeof t.formatDate=="function"?t.formatDate(bo(e)):r}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let r;this._revealPromise=new Promise(l=>{r=l});const o=(l,d,u,h)=>(l/=h/2,l<1?u/2*l*l+d:(l-=1,-u/2*(l*(l-2)-1)+d));let a=0;const n=this._monthScroller.position,s=l=>{a||(a=l);const d=l-a;if(d<this.scrollDuration){const u=o(d,n,this._targetPosition-n,this.scrollDuration);this._monthScroller.position=u,window.requestAnimationFrame(s)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:n}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,r(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(s)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return bs(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){Oe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&Oe(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return xr(this,null,function*(){const r=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=r,t||(this._focusedMonthDate=r.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return xr(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{_o(this,()=>{yo(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(gs(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,r){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,r):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+e),t&&r.setDate(this.focusedDate.getDate()+t),r}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),r=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==r&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const r=new Date(0,0);r.setFullYear(e.getFullYear()),t==="minDate"?(r.setMonth(e.getMonth()),r.setDate(1)):(r.setMonth(e.getMonth()+1),r.setDate(0)),this._dateAllowed(r)?this.focusDate(r):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,r=this.maxDate,o=this.isDateDisabled){return vt(e,t,r,o)}_isTodayAllowed(e,t,r){return this._dateAllowed(this._getTodayMidnight(),e,t,r)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
3831
3831
  * @license
3832
3832
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3833
3833
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3895,7 +3895,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3895
3895
  * @license
3896
3896
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3897
3897
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3898
- */y("vaadin-date-picker-overlay-content",xm,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Cm extends wm(Pe(H(ge(S)))){static get template(){return D`
3898
+ */y("vaadin-date-picker-overlay-content",xm,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Cm extends wm(Pe(U(ge(M)))){static get template(){return O`
3899
3899
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3900
3900
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3901
3901
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3915,11 +3915,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3915
3915
  <slot name="today-button"></slot>
3916
3916
  <slot name="cancel-button"></slot>
3917
3917
  </div>
3918
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}P(Cm);/**
3918
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}A(Cm);/**
3919
3919
  * @license
3920
3920
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3921
3921
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3922
- */const di=new WeakMap;function km(i){return di.has(i)||di.set(i,new Set),di.get(i)}function Em(i,e){const t=document.createElement("style");t.textContent=i,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Es=J(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=km(e);this.slotStyles.forEach(r=>{t.has(r)||(Em(r,e),t.add(r))})}});/**
3922
+ */const di=new WeakMap;function km(i){return di.has(i)||di.set(i,new Set),di.get(i)}function Em(i,e){const t=document.createElement("style");t.textContent=i,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const Es=te(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=km(e);this.slotStyles.forEach(r=>{t.has(r)||(Em(r,e),t.add(r))})}});/**
3923
3923
  * @license
3924
3924
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3925
3925
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3927,7 +3927,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3927
3927
  * @license
3928
3928
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3929
3929
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3930
- */const ko=J(i=>class extends so(uo(Jt(i))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const r=this._hasValidConstraints(t),o=this.__previousHasConstraints&&!r;(this._hasValue||this.invalid)&&r?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=r}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3930
+ */const ko=te(i=>class extends so(uo(Jt(i))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const r=this._hasValidConstraints(t),o=this.__previousHasConstraints&&!r;(this._hasValue||this.invalid)&&r?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=r}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3931
3931
  * @license
3932
3932
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3933
3933
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4040,7 +4040,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4040
4040
  * @license
4041
4041
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4042
4042
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4043
- */y("vaadin-date-picker",[Wr,Im],{moduleId:"vaadin-date-picker-styles"});class Dm extends Tm(Ur(H(be(S)))){static get is(){return"vaadin-date-picker"}static get template(){return D`
4043
+ */y("vaadin-date-picker",[Wr,Im],{moduleId:"vaadin-date-picker-styles"});class Dm extends Tm(Ur(U(be(M)))){static get is(){return"vaadin-date-picker"}static get template(){return O`
4044
4044
  <div class="vaadin-date-picker-container">
4045
4045
  <div part="label">
4046
4046
  <slot name="label"></slot>
@@ -4082,7 +4082,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4082
4082
  ></vaadin-date-picker-overlay>
4083
4083
 
4084
4084
  <slot name="tooltip"></slot>
4085
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new er(this.inputElement,this._labelController)),this._tooltipController=new Ne(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}P(Dm);/**
4085
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new er(this.inputElement,this._labelController)),this._tooltipController=new Ne(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}A(Dm);/**
4086
4086
  * @license
4087
4087
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4088
4088
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4098,7 +4098,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4098
4098
  * @license
4099
4099
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4100
4100
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4101
- */y("vaadin-text-field",Wr,{moduleId:"vaadin-text-field-styles"});class Is extends Om(H(be(S))){static get is(){return"vaadin-text-field"}static get template(){return D`
4101
+ */y("vaadin-text-field",Wr,{moduleId:"vaadin-text-field-styles"});class Is extends Om(U(be(M))){static get is(){return"vaadin-text-field"}static get template(){return O`
4102
4102
  <div class="vaadin-field-container">
4103
4103
  <div part="label">
4104
4104
  <slot name="label"></slot>
@@ -4127,7 +4127,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4127
4127
  </div>
4128
4128
  </div>
4129
4129
  <slot name="tooltip"></slot>
4130
- `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new Ne(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}P(Is);/**
4130
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new Ne(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}A(Is);/**
4131
4131
  * @license
4132
4132
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4133
4133
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4170,23 +4170,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4170
4170
  * @license
4171
4171
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4172
4172
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4173
- */y("vaadin-password-field-button",vs,{moduleId:"vaadin-password-field-button-styles"});class zm extends go(ge(H(S))){static get is(){return"vaadin-password-field-button"}static get template(){return D``}}P(zm);/**
4173
+ */y("vaadin-password-field-button",vs,{moduleId:"vaadin-password-field-button-styles"});class zm extends go(ge(U(M))){static get is(){return"vaadin-password-field-button"}static get template(){return O``}}A(zm);/**
4174
4174
  * @license
4175
4175
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4176
4176
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4177
- */const Lm=i=>class extends Es(yt(it(Jt(i)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
4177
+ */const Bm=i=>class extends Es(yt(it(Jt(i)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
4178
4178
  ${e} [slot="input"]::-ms-reveal {
4179
4179
  display: none;
4180
4180
  }
4181
- `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new ce(this,"reveal","vaadin-password-field-button",{initializer:e=>{e.disabled=this.disabled,e.addEventListener("click",this.__boundRevealButtonClick),e.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(e){super._onChange(e),this.__lastChange=this.inputElement.value}_shouldSetFocus(e){return e.target===this.inputElement||e.target===this._revealNode}_shouldRemoveFocus(e){return!(e.relatedTarget===this._revealNode||e.relatedTarget===this.inputElement&&e.target===this._revealNode)}_setFocused(e){if(super._setFocused(e),!e)this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})));else{const t=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!t)}}__updateAriaLabel(e){e&&e.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",e.reveal)}__i18nChanged(e){this.__updateAriaLabel(e)}_revealButtonHiddenChanged(e){this._toggleRevealHidden(e)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(e){this._revealNode&&(e?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(e){this._revealNode&&this._revealNode.setAttribute("aria-pressed",e?"true":"false")}_passwordVisibleChanged(e){this._setType(e?"text":"password"),this._updateToggleState(e)}_disabledChanged(e,t){super._disabledChanged(e,t),this._revealNode&&(this._revealNode.disabled=e)}};/**
4181
+ `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new ue(this,"reveal","vaadin-password-field-button",{initializer:e=>{e.disabled=this.disabled,e.addEventListener("click",this.__boundRevealButtonClick),e.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(e){super._onChange(e),this.__lastChange=this.inputElement.value}_shouldSetFocus(e){return e.target===this.inputElement||e.target===this._revealNode}_shouldRemoveFocus(e){return!(e.relatedTarget===this._revealNode||e.relatedTarget===this.inputElement&&e.target===this._revealNode)}_setFocused(e){if(super._setFocused(e),!e)this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})));else{const t=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!t)}}__updateAriaLabel(e){e&&e.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",e.reveal)}__i18nChanged(e){this.__updateAriaLabel(e)}_revealButtonHiddenChanged(e){this._toggleRevealHidden(e)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(e){this._revealNode&&(e?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(e){this._revealNode&&this._revealNode.setAttribute("aria-pressed",e?"true":"false")}_passwordVisibleChanged(e){this._setType(e?"text":"password"),this._updateToggleState(e)}_disabledChanged(e,t){super._disabledChanged(e,t),this._revealNode&&(this._revealNode.disabled=e)}};/**
4182
4182
  * @license
4183
4183
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4184
4184
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4185
- */const Bm=D`
4185
+ */const Lm=O`
4186
4186
  <div part="reveal-button" slot="suffix">
4187
4187
  <slot name="reveal"></slot>
4188
4188
  </div>
4189
- `;let hr;class Fm extends Lm(Is){static get is(){return"vaadin-password-field"}static get template(){if(!hr){hr=super.template.cloneNode(!0);const e=Bm.content.querySelector('[part="reveal-button"]');hr.content.querySelector('[part="input-field"]').appendChild(e)}return hr}}P(Fm);const qr=_`
4189
+ `;let hr;class Fm extends Bm(Is){static get is(){return"vaadin-password-field"}static get template(){if(!hr){hr=super.template.cloneNode(!0);const e=Lm.content.querySelector('[part="reveal-button"]');hr.content.querySelector('[part="input-field"]').appendChild(e)}return hr}}A(Fm);const qr=_`
4190
4190
  :host {
4191
4191
  display: flex;
4192
4192
  align-items: center;
@@ -4374,7 +4374,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4374
4374
  * @license
4375
4375
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4376
4376
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4377
- */class Rm extends Ns(H(ge(S))){static get template(){return D`
4377
+ */class Rm extends Ns(U(ge(M))){static get template(){return O`
4378
4378
  <style>
4379
4379
  :host {
4380
4380
  display: block;
@@ -4388,7 +4388,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4388
4388
  <div part="content">
4389
4389
  <slot></slot>
4390
4390
  </div>
4391
- `}static get is(){return"vaadin-combo-box-item"}}P(Rm);/**
4391
+ `}static get is(){return"vaadin-combo-box-item"}}A(Rm);/**
4392
4392
  * @license
4393
4393
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4394
4394
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4406,13 +4406,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4406
4406
  flex-direction: column;
4407
4407
  height: 100%;
4408
4408
  }
4409
- `;y("vaadin-combo-box-overlay",[tr,Hm],{moduleId:"vaadin-combo-box-overlay-styles"});class $m extends zs(rr(ge(H(S)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return D`
4409
+ `;y("vaadin-combo-box-overlay",[tr,Hm],{moduleId:"vaadin-combo-box-overlay-styles"});class $m extends zs(rr(ge(U(M)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return O`
4410
4410
  <div id="backdrop" part="backdrop" hidden></div>
4411
4411
  <div part="overlay" id="overlay">
4412
4412
  <div part="loader"></div>
4413
4413
  <div part="content" id="content"><slot></slot></div>
4414
4414
  </div>
4415
- `}}P($m);/**
4415
+ `}}A($m);/**
4416
4416
  * @license
4417
4417
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
4418
4418
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4424,11 +4424,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4424
4424
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
4425
4425
  * Code distributed by Google as part of the polymer project is also
4426
4426
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
4427
- */const za=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Um=za&&za[1]>=8,La=3,Wm={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const i=this._virtualCount;return Math.max(0,i-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(i){i=this._clamp(i,0,this._maxVirtualStart),this._virtualStartVal=i},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(i){i%=this._physicalCount,i<0&&(i=this._physicalCount+i),this._physicalStartVal=i},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(i){this._physicalCountVal=i},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let i=this._firstVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;i=this._iterateItems((t,r)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return r})||0,this._firstVisibleIndexVal=i}return i},get lastVisibleIndex(){let i=this._lastVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,r)=>{e<this._scrollBottom&&(i=r),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=i}return i},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const i=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=i-this._scrollPosition;const t=e>=0;if(this._scrollPosition=i,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const r=Math.round(e/this._physicalAverage);this._virtualStart+=r,this._physicalStart+=r,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const r=this._getReusables(t);t?(this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length):(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length),this._update(r.indexes,t?null:r.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Ir)}},_getReusables(i){let e,t,r;const o=[],a=this._hiddenContentSize*this._ratio,n=this._virtualStart,s=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const u=this._physicalBottom+this._scrollOffset,h=this._scrollPosition,p=this._scrollBottom;for(i?(e=this._physicalStart,t=h-d):(e=this._physicalEnd,t=u-p);r=this._getPhysicalSizeIncrement(e),t-=r,!(o.length>=l||t<=a);)if(i){if(s+o.length+1>=this._virtualCount||d+r>=h-this._scrollOffset)break;o.push(e),d+=r,e=(e+1)%l}else{if(n-o.length<=0||d+this._physicalSize-r<=p)break;o.push(e),d-=r,e=e===0?l-1:e-1}return{indexes:o,physicalTop:d-this._scrollOffset}},_update(i,e){if(!(i&&i.length===0||this._physicalCount===0)){if(this._assignModels(i),this._updateMetrics(i),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(i){const e=this._clamp(this._physicalCount+i,La,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const r=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let o=0;o<e;o++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-r)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),Gn):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),Ir))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const i=this._getReusables(!0);this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length,this._update(i.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(La))},_itemsChanged(i){i.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,jt))},_iterateItems(i,e){let t,r,o,a;if(arguments.length===2&&e){for(a=0;a<e.length;a++)if(t=e[a],r=this._computeVidx(t),(o=i.call(this,t,r))!=null)return o}else{for(t=this._physicalStart,r=this._virtualStart;t<this._physicalCount;t++,r++)if((o=i.call(this,t,r))!=null)return o;for(t=0;t<this._physicalStart;t++,r++)if((o=i.call(this,t,r))!=null)return o}},_computeVidx(i){return i>=this._physicalStart?this._virtualStart+(i-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+i},_positionItems(){this._adjustScrollPosition();let i=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${i}px`,0,this._physicalItems[e]),i+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(i){return this._physicalSizes[i]},_adjustScrollPosition(){const i=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(i!==0){this._physicalTop-=i;const e=this._scrollPosition;!Um&&e>0&&this._resetScrollPosition(e-i)}},_resetScrollPosition(i){this.scrollTarget&&i>=0&&(this._scrollTop=i,this._scrollPosition=this._scrollTop)},_updateScrollerSize(i){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(i||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(i){if(typeof i!="number"||i<0||i>this.items.length-1||(zt(),this._physicalCount===0))return;i=this._clamp(i,0,this._virtualCount-1),(!this._isIndexRendered(i)||i>=this._maxVirtualStart)&&(this._virtualStart=i-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,r=0;const o=this._hiddenContentSize;for(;t<i&&r<=o;)r+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},jt)},_isIndexRendered(i){return i>=this._virtualStart&&i<=this._virtualEnd},_getPhysicalIndex(i){return(this._physicalStart+(i-this._virtualStart))%this._physicalCount},_clamp(i,e,t){return Math.min(t,Math.max(e,i))},_debounce(i,e,t){this._debouncers||(this._debouncers={}),this._debouncers[i]=ve.debounce(this._debouncers[i],t,e.bind(this)),Kn(this._debouncers[i])}};/**
4427
+ */const za=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Um=za&&za[1]>=8,Ba=3,Wm={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const i=this._virtualCount;return Math.max(0,i-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(i){i=this._clamp(i,0,this._maxVirtualStart),this._virtualStartVal=i},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(i){i%=this._physicalCount,i<0&&(i=this._physicalCount+i),this._physicalStartVal=i},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(i){this._physicalCountVal=i},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let i=this._firstVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;i=this._iterateItems((t,r)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return r})||0,this._firstVisibleIndexVal=i}return i},get lastVisibleIndex(){let i=this._lastVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,r)=>{e<this._scrollBottom&&(i=r),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=i}return i},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const i=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=i-this._scrollPosition;const t=e>=0;if(this._scrollPosition=i,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const r=Math.round(e/this._physicalAverage);this._virtualStart+=r,this._physicalStart+=r,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const r=this._getReusables(t);t?(this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length):(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length),this._update(r.indexes,t?null:r.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Ir)}},_getReusables(i){let e,t,r;const o=[],a=this._hiddenContentSize*this._ratio,n=this._virtualStart,s=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const u=this._physicalBottom+this._scrollOffset,h=this._scrollPosition,p=this._scrollBottom;for(i?(e=this._physicalStart,t=h-d):(e=this._physicalEnd,t=u-p);r=this._getPhysicalSizeIncrement(e),t-=r,!(o.length>=l||t<=a);)if(i){if(s+o.length+1>=this._virtualCount||d+r>=h-this._scrollOffset)break;o.push(e),d+=r,e=(e+1)%l}else{if(n-o.length<=0||d+this._physicalSize-r<=p)break;o.push(e),d-=r,e=e===0?l-1:e-1}return{indexes:o,physicalTop:d-this._scrollOffset}},_update(i,e){if(!(i&&i.length===0||this._physicalCount===0)){if(this._assignModels(i),this._updateMetrics(i),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(i){const e=this._clamp(this._physicalCount+i,Ba,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const r=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let o=0;o<e;o++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-r)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),Gn):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),Ir))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const i=this._getReusables(!0);this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length,this._update(i.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Ba))},_itemsChanged(i){i.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,jt))},_iterateItems(i,e){let t,r,o,a;if(arguments.length===2&&e){for(a=0;a<e.length;a++)if(t=e[a],r=this._computeVidx(t),(o=i.call(this,t,r))!=null)return o}else{for(t=this._physicalStart,r=this._virtualStart;t<this._physicalCount;t++,r++)if((o=i.call(this,t,r))!=null)return o;for(t=0;t<this._physicalStart;t++,r++)if((o=i.call(this,t,r))!=null)return o}},_computeVidx(i){return i>=this._physicalStart?this._virtualStart+(i-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+i},_positionItems(){this._adjustScrollPosition();let i=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${i}px`,0,this._physicalItems[e]),i+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(i){return this._physicalSizes[i]},_adjustScrollPosition(){const i=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(i!==0){this._physicalTop-=i;const e=this._scrollPosition;!Um&&e>0&&this._resetScrollPosition(e-i)}},_resetScrollPosition(i){this.scrollTarget&&i>=0&&(this._scrollTop=i,this._scrollPosition=this._scrollTop)},_updateScrollerSize(i){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(i||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(i){if(typeof i!="number"||i<0||i>this.items.length-1||(zt(),this._physicalCount===0))return;i=this._clamp(i,0,this._virtualCount-1),(!this._isIndexRendered(i)||i>=this._maxVirtualStart)&&(this._virtualStart=i-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,r=0;const o=this._hiddenContentSize;for(;t<i&&r<=o;)r+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},jt)},_isIndexRendered(i){return i>=this._virtualStart&&i<=this._virtualEnd},_getPhysicalIndex(i){return(this._physicalStart+(i-this._virtualStart))%this._physicalCount},_clamp(i,e,t){return Math.min(t,Math.max(e,i))},_debounce(i,e,t){this._debouncers||(this._debouncers={}),this._debouncers[i]=ve.debounce(this._debouncers[i],t,e.bind(this)),Kn(this._debouncers[i])}};/**
4428
4428
  * @license
4429
4429
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4430
4430
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4431
- */const qm=1e5,ci=1e3;class Ls{constructor({createElements:e,updateElement:t,scrollTarget:r,scrollContainer:o,elementsContainer:a,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=r,this.scrollContainer=o,this.elementsContainer=a||o,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:s}])=>{const l=s.width===0&&s.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",s=>this.__onWheel(s)),this.scrollTarget.addEventListener("virtualizer-element-focused",s=>this.__onElementFocused(s)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let r=Math.floor(e/this.size*this._virtualCount);this._virtualCount-r<t?(r=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):r<t?e<ci?(r=e,this._vidxOffset=0):(r=ci,this._vidxOffset=e-r):this._vidxOffset=e-r,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(r),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),zt(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const r=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),r.push(o))}),this.__afterElementsUpdated(r)}_updateMetrics(e){zt();let t=0,r=0;const o=this._physicalAverageCount,a=this._physicalAverage;this._iterateItems((n,s)=>{r+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),t+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+t-r,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((a*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),r=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return r;const o=parseFloat(t.paddingBottom)||0,a=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,s=parseFloat(t.borderTopWidth)||0;return r+o+a+n+s}__updateElement(e,t,r){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||r)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const r=t.offsetHeight;if(r===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=ve.debounce(this.__placeholderClearDebouncer,jt,()=>this._resizeHandler());else{this.__elementHeightQueue.push(r),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(a=>a!==void 0);this.__placeholderHeight=Math.round(o.reduce((a,n)=>a+n,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(r=>r.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,r;if(e>0&&(t=this.adjustedFirstVisibleIndex,r=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),zt(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);r!==void 0&&o!==void 0&&(this._scrollTop+=r-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),zt(),this._debounce("_update",this._update,Ir)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,qm)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),r=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",r.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(r),t}_assignModels(e){const t=[];this._iterateItems((r,o)=>{const a=this._physicalItems[r];a.hidden=o>=this.size,a.hidden?delete a.__lastUpdatedIndex:(a.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(a,a.__virtualIndex),t.push(a))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,r,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const r=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,r)||this.__nextFocusableSiblingMissing(t,r))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,o)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,r=this._getReusables(!t);r.indexes.length&&(this._physicalTop=r.physicalTop,t?(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length):(this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=ve.debounce(this.__fixInvalidItemPositioningDebouncer,Re.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=ve.debounce(this.__scrollReorderDebouncer,Re.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,r=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!r||t&&!o){const a=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(a?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=ve.debounce(this.__debouncerWheelAnimationFrame,jt,()=>{this._wheelAnimationFrame=!1});const r=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=ve.debounce(this._debouncerIgnoreNewWheel,Re.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&r<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():r>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=r}_hasScrolledAncestor(e,t,r){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,r)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,r)}_canScroll(e,t,r){return r>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||r<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),r=this.__getFocusedElement(t)||t[0];if(!r)return;const o=r.__virtualIndex-e,a=t.indexOf(r)-o;if(a>0)for(let n=0;n<a;n++)this.elementsContainer.appendChild(t[n]);else if(a<0)for(let n=t.length+a;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(Op){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const r=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(r*t)}else{const r=this._vidxOffset,o=ci,a=100;this._scrollTop===0?(this._vidxOffset=0,r!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex+(r-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,r!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-r)))}}}Object.setPrototypeOf(Ls.prototype,Wm);class Ym{constructor(e){this.__adapter=new Ls(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
4431
+ */const qm=1e5,ci=1e3;class Bs{constructor({createElements:e,updateElement:t,scrollTarget:r,scrollContainer:o,elementsContainer:a,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=r,this.scrollContainer=o,this.elementsContainer=a||o,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:s}])=>{const l=s.width===0&&s.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",s=>this.__onWheel(s)),this.scrollTarget.addEventListener("virtualizer-element-focused",s=>this.__onElementFocused(s)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let r=Math.floor(e/this.size*this._virtualCount);this._virtualCount-r<t?(r=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):r<t?e<ci?(r=e,this._vidxOffset=0):(r=ci,this._vidxOffset=e-r):this._vidxOffset=e-r,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(r),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),zt(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const r=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),r.push(o))}),this.__afterElementsUpdated(r)}_updateMetrics(e){zt();let t=0,r=0;const o=this._physicalAverageCount,a=this._physicalAverage;this._iterateItems((n,s)=>{r+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),t+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+t-r,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((a*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),r=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return r;const o=parseFloat(t.paddingBottom)||0,a=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,s=parseFloat(t.borderTopWidth)||0;return r+o+a+n+s}__updateElement(e,t,r){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||r)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const r=t.offsetHeight;if(r===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=ve.debounce(this.__placeholderClearDebouncer,jt,()=>this._resizeHandler());else{this.__elementHeightQueue.push(r),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(a=>a!==void 0);this.__placeholderHeight=Math.round(o.reduce((a,n)=>a+n,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(r=>r.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,r;if(e>0&&(t=this.adjustedFirstVisibleIndex,r=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),zt(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);r!==void 0&&o!==void 0&&(this._scrollTop+=r-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),zt(),this._debounce("_update",this._update,Ir)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,qm)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),r=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",r.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(r),t}_assignModels(e){const t=[];this._iterateItems((r,o)=>{const a=this._physicalItems[r];a.hidden=o>=this.size,a.hidden?delete a.__lastUpdatedIndex:(a.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(a,a.__virtualIndex),t.push(a))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,r,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const r=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,r)||this.__nextFocusableSiblingMissing(t,r))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,o)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,r=this._getReusables(!t);r.indexes.length&&(this._physicalTop=r.physicalTop,t?(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length):(this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=ve.debounce(this.__fixInvalidItemPositioningDebouncer,Re.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=ve.debounce(this.__scrollReorderDebouncer,Re.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,r=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!r||t&&!o){const a=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(a?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=ve.debounce(this.__debouncerWheelAnimationFrame,jt,()=>{this._wheelAnimationFrame=!1});const r=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=ve.debounce(this._debouncerIgnoreNewWheel,Re.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&r<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():r>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=r}_hasScrolledAncestor(e,t,r){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,r)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,r)}_canScroll(e,t,r){return r>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||r<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),r=this.__getFocusedElement(t)||t[0];if(!r)return;const o=r.__virtualIndex-e,a=t.indexOf(r)-o;if(a>0)for(let n=0;n<a;n++)this.elementsContainer.appendChild(t[n]);else if(a<0)for(let n=t.length+a;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(Op){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const r=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(r*t)}else{const r=this._vidxOffset,o=ci,a=100;this._scrollTop===0?(this._vidxOffset=0,r!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex+(r-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,r!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-r)))}}}Object.setPrototypeOf(Bs.prototype,Wm);class Ym{constructor(e){this.__adapter=new Bs(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
4432
4432
  * @license
4433
4433
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4434
4434
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4436,11 +4436,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4436
4436
  * @license
4437
4437
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4438
4438
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4439
- */const Bs=i=>class extends i{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,r)=>t+r)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${Qt()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let r=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),r=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(r=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,r));const o=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!o||e!==o.index)return;const a=o.getBoundingClientRect(),n=this.getBoundingClientRect(),s=a.bottom-n.bottom+this._viewportTotalPaddingBottom;s>0&&(this.scrollTop+=s)}_isItemSelected(e,t,r){return e instanceof $e?!1:r&&e!==void 0&&t!==void 0?Or(r,e)===Or(r,t):e===t}__initVirtualizer(){this.__virtualizer=new Ym({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const r=this.items[t],o=this.focusedIndex,a=this._isItemSelected(r,this.selectedItem,this.itemIdPath);e.setProperties({item:r,index:t,label:this.getItemLabel(r),selected:a,renderer:this.renderer,focused:!this.loading&&o===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(r):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",a.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),r instanceof $e&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,r=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||r&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
4439
+ */const Ls=i=>class extends i{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,r)=>t+r)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${Qt()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let r=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),r=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(r=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,r));const o=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!o||e!==o.index)return;const a=o.getBoundingClientRect(),n=this.getBoundingClientRect(),s=a.bottom-n.bottom+this._viewportTotalPaddingBottom;s>0&&(this.scrollTop+=s)}_isItemSelected(e,t,r){return e instanceof $e?!1:r&&e!==void 0&&t!==void 0?Or(r,e)===Or(r,t):e===t}__initVirtualizer(){this.__virtualizer=new Ym({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const r=this.items[t],o=this.focusedIndex,a=this._isItemSelected(r,this.selectedItem,this.itemIdPath);e.setProperties({item:r,index:t,label:this.getItemLabel(r),selected:a,renderer:this.renderer,focused:!this.loading&&o===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(r):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",a.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),r instanceof $e&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,r=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||r&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
4440
4440
  * @license
4441
4441
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4442
4442
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4443
- */class jm extends Bs(S){static get is(){return"vaadin-combo-box-scroller"}static get template(){return D`
4443
+ */class jm extends Ls(M){static get is(){return"vaadin-combo-box-scroller"}static get template(){return O`
4444
4444
  <style>
4445
4445
  :host {
4446
4446
  display: block;
@@ -4467,7 +4467,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4467
4467
  <div id="selector">
4468
4468
  <slot></slot>
4469
4469
  </div>
4470
- `}}P(jm);/**
4470
+ `}}A(jm);/**
4471
4471
  * @license
4472
4472
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4473
4473
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4479,11 +4479,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4479
4479
  * @license
4480
4480
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4481
4481
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4482
- */class Eo{constructor(e,t,r,o,a){se(this,"context"),se(this,"pageSize"),se(this,"items",[]),se(this,"pendingRequests",{}),se(this,"__subCacheByIndex",{}),se(this,"__size",0),se(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=r,this.parentCache=o,this.parentCacheIndex=a,this.__flatSize=r||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let r=0;r<e;r++)(t=this.items)[r]||(t[r]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(r=>{parseInt(r)*this.pageSize>=this.size&&delete this.pendingRequests[r]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const r=e*this.pageSize;t.forEach((o,a)=>{const n=r+a;(this.size===void 0||n<this.size)&&(this.items[n]=o)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new Eo(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((r,o)=>{const a=o.parentCacheIndex;return t>a?r+o.flatSize:r},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=Mr(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:r}=Mr(this,e);return{cache:t,scaledIndex:r}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
4482
+ */class Eo{constructor(e,t,r,o,a){de(this,"context"),de(this,"pageSize"),de(this,"items",[]),de(this,"pendingRequests",{}),de(this,"__subCacheByIndex",{}),de(this,"__size",0),de(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=r,this.parentCache=o,this.parentCacheIndex=a,this.__flatSize=r||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let r=0;r<e;r++)(t=this.items)[r]||(t[r]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(r=>{parseInt(r)*this.pageSize>=this.size&&delete this.pendingRequests[r]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const r=e*this.pageSize;t.forEach((o,a)=>{const n=r+a;(this.size===void 0||n<this.size)&&(this.items[n]=o)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new Eo(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((r,o)=>{const a=o.parentCacheIndex;return t>a?r+o.flatSize:r},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=Mr(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:r}=Mr(this,e);return{cache:t,scaledIndex:r}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
4483
4483
  * @license
4484
4484
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4485
4485
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4486
- */class Km extends EventTarget{constructor(e,{size:t,pageSize:r,isExpanded:o,getItemId:a,isPlaceholder:n,placeholder:s,dataProvider:l,dataProviderParams:d}){super(),se(this,"host"),se(this,"dataProvider"),se(this,"dataProviderParams"),se(this,"pageSize"),se(this,"isExpanded"),se(this,"getItemId"),se(this,"rootCache"),se(this,"placeholder"),se(this,"isPlaceholder"),this.host=e,this.pageSize=r,this.getItemId=a,this.isExpanded=o,this.placeholder=s,this.isPlaceholder=n,this.dataProvider=l,this.dataProviderParams=d,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return Mr(this.rootCache,e)}getItemContext(e){return Fs({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Vs(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:r,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(t,r)}ensureFlatIndexHierarchy(e){const{cache:t,item:r,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(r)&&this.isExpanded(r)&&!t.getSubCache(o)){const a=t.createSubCache(o);this.__loadCachePage(a,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new Eo(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let r={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(r=wr(wr({},r),this.dataProviderParams()));const o=(a,n)=>{e.pendingRequests[t]===o&&(n!==void 0?e.size=n:r.parentItem&&(e.size=a.length),e.setPage(t,a),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(r,o)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
4486
+ */class Km extends EventTarget{constructor(e,{size:t,pageSize:r,isExpanded:o,getItemId:a,isPlaceholder:n,placeholder:s,dataProvider:l,dataProviderParams:d}){super(),de(this,"host"),de(this,"dataProvider"),de(this,"dataProviderParams"),de(this,"pageSize"),de(this,"isExpanded"),de(this,"getItemId"),de(this,"rootCache"),de(this,"placeholder"),de(this,"isPlaceholder"),this.host=e,this.pageSize=r,this.getItemId=a,this.isExpanded=o,this.placeholder=s,this.isPlaceholder=n,this.dataProvider=l,this.dataProviderParams=d,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return Mr(this.rootCache,e)}getItemContext(e){return Fs({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Vs(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:r,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(t,r)}ensureFlatIndexHierarchy(e){const{cache:t,item:r,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(r)&&this.isExpanded(r)&&!t.getSubCache(o)){const a=t.createSubCache(o);this.__loadCachePage(a,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new Eo(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let r={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(r=wr(wr({},r),this.dataProviderParams()));const o=(a,n)=>{e.pendingRequests[t]===o&&(n!==void 0?e.size=n:r.parentItem&&(e.size=a.length),e.setPage(t,a),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(r,o)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
4487
4487
  * @license
4488
4488
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4489
4489
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4495,11 +4495,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4495
4495
  * @license
4496
4496
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4497
4497
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4498
- */function Ba(i){return i!=null}function Fa(i,e){return i.findIndex(t=>t instanceof $e?!1:e(t))}const Hs=i=>class extends ir(Pe(uo(it(rt(Jt(yt(i))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),Yr(this),this.addController(new Ts(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const r=this._overlayElement;r.renderer=o=>{o.innerHTML||o.appendChild(t)},r.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,r,o,a,n,s,l,d,u){if(e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,loading:o,selectedItem:a,itemIdPath:n,focusedIndex:s,renderer:l,theme:d,itemClassNameGenerator:u}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(h){}}_openedOrItemsChanged(e,t,r,o){this._overlayOpened=e&&(o||r||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&no(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(o=>o.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!Mi&&this.inputElement&&this.inputElement.focus():this._onClosed();const r=this._nativeInput;r&&(r.setAttribute("aria-expanded",!!e),e?r.setAttribute("aria-controls",this._scroller.id):r.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?Or(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?Or(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{Mi&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const r=this._inputElementValue;this._lastCustomValue=r;const o=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=r)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(Ba(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(r=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const r=t?t[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const a=this.__getItemIndexByValue(e,this._getItemValue(r));a>-1?this._focusedIndex=a:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!Ba(t)?-1:Fa(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Fa(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof $e)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(Fr()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4498
+ */function La(i){return i!=null}function Fa(i,e){return i.findIndex(t=>t instanceof $e?!1:e(t))}const Hs=i=>class extends ir(Pe(uo(it(rt(Jt(yt(i))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),Yr(this),this.addController(new Ts(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const r=this._overlayElement;r.renderer=o=>{o.innerHTML||o.appendChild(t)},r.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,r,o,a,n,s,l,d,u){if(e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,loading:o,selectedItem:a,itemIdPath:n,focusedIndex:s,renderer:l,theme:d,itemClassNameGenerator:u}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(h){}}_openedOrItemsChanged(e,t,r,o){this._overlayOpened=e&&(o||r||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&no(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(o=>o.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!Mi&&this.inputElement&&this.inputElement.focus():this._onClosed();const r=this._nativeInput;r&&(r.setAttribute("aria-expanded",!!e),e?r.setAttribute("aria-controls",this._scroller.id):r.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?Or(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?Or(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{Mi&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const r=this._inputElementValue;this._lastCustomValue=r;const o=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=r)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(La(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(r=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const r=t?t[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const a=this.__getItemIndexByValue(e,this._getItemValue(r));a>-1?this._focusedIndex=a:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!La(t)?-1:Fa(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Fa(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof $e)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(Fr()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4499
4499
  * @license
4500
4500
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4501
4501
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4502
- */y("vaadin-combo-box",Wr,{moduleId:"vaadin-combo-box-styles"});class Xm extends Rs(Hs(Gm(Ur(H(be(S)))))){static get is(){return"vaadin-combo-box"}static get template(){return D`
4502
+ */y("vaadin-combo-box",Wr,{moduleId:"vaadin-combo-box-styles"});class Xm extends Rs(Hs(Gm(Ur(U(be(M)))))){static get is(){return"vaadin-combo-box"}static get template(){return O`
4503
4503
  <style>
4504
4504
  :host([opened]) {
4505
4505
  pointer-events: auto;
@@ -4544,7 +4544,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4544
4544
  ></vaadin-combo-box-overlay>
4545
4545
 
4546
4546
  <slot name="tooltip"></slot>
4547
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new er(this.inputElement,this._labelController)),this._tooltipController=new Ne(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}P(Xm);/**
4547
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new er(this.inputElement,this._labelController)),this._tooltipController=new Ne(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}A(Xm);/**
4548
4548
  * @license
4549
4549
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4550
4550
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4714,7 +4714,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4714
4714
  * @license
4715
4715
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4716
4716
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4717
- */class e_ extends H(S){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return D`
4717
+ */class e_ extends U(M){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return O`
4718
4718
  <style>
4719
4719
  :host {
4720
4720
  display: inline-flex;
@@ -4743,7 +4743,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4743
4743
  </style>
4744
4744
  <div part="label">[[label]]</div>
4745
4745
  <div part="remove-button" on-click="_onRemoveClick"></div>
4746
- `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}P(e_);/**
4746
+ `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}A(e_);/**
4747
4747
  * @license
4748
4748
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4749
4749
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4757,11 +4757,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4757
4757
  :host([auto-expand-vertically]) #wrapper {
4758
4758
  flex-wrap: wrap;
4759
4759
  }
4760
- `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let pr;class t_ extends us{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!pr){pr=super.template.cloneNode(!0);const e=pr.content,t=e.querySelectorAll("slot"),r=document.createElement("div");r.setAttribute("id","wrapper"),e.insertBefore(r,t[2]),r.appendChild(t[0]),r.appendChild(t[1])}return pr}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}P(t_);/**
4760
+ `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let pr;class t_ extends us{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!pr){pr=super.template.cloneNode(!0);const e=pr.content,t=e.querySelectorAll("slot"),r=document.createElement("div");r.setAttribute("id","wrapper"),e.insertBefore(r,t[2]),r.appendChild(t[0]),r.appendChild(t[1])}return pr}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}A(t_);/**
4761
4761
  * @license
4762
4762
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4763
4763
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4764
- */class r_ extends Ns(H(ge(S))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return D`
4764
+ */class r_ extends Ns(U(ge(M))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return O`
4765
4765
  <style>
4766
4766
  :host {
4767
4767
  display: block;
@@ -4775,7 +4775,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4775
4775
  <div part="content">
4776
4776
  <slot></slot>
4777
4777
  </div>
4778
- `}}P(r_);/**
4778
+ `}}A(r_);/**
4779
4779
  * @license
4780
4780
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4781
4781
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4792,17 +4792,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4792
4792
  flex-direction: column;
4793
4793
  height: 100%;
4794
4794
  }
4795
- `;y("vaadin-multi-select-combo-box-overlay",[tr,i_],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class o_ extends zs(rr(ge(H(S)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return D`
4795
+ `;y("vaadin-multi-select-combo-box-overlay",[tr,i_],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class o_ extends zs(rr(ge(U(M)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return O`
4796
4796
  <div id="backdrop" part="backdrop" hidden></div>
4797
4797
  <div part="overlay" id="overlay">
4798
4798
  <div part="loader"></div>
4799
4799
  <div part="content" id="content"><slot></slot></div>
4800
4800
  </div>
4801
- `}}P(o_);/**
4801
+ `}}A(o_);/**
4802
4802
  * @license
4803
4803
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4804
4804
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4805
- */class a_ extends Bs(S){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return D`
4805
+ */class a_ extends Ls(M){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return O`
4806
4806
  <style>
4807
4807
  :host {
4808
4808
  display: block;
@@ -4829,11 +4829,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4829
4829
  <div id="selector">
4830
4830
  <slot></slot>
4831
4831
  </div>
4832
- `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,r){return e instanceof $e||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,r)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}P(a_);/**
4832
+ `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,r){return e instanceof $e||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,r)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}A(a_);/**
4833
4833
  * @license
4834
4834
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4835
4835
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4836
- */class n_ extends Rs(Hs(H(S))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return D`
4836
+ */class n_ extends Rs(Hs(U(M))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return O`
4837
4837
  <style>
4838
4838
  :host([opened]) {
4839
4839
  pointer-events: auto;
@@ -4851,11 +4851,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4851
4851
  no-vertical-overlap
4852
4852
  restore-focus-node="[[inputElement]]"
4853
4853
  ></vaadin-multi-select-combo-box-overlay>
4854
- `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(r=>this._comboBox._findIndex(r,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof $e||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}P(n_);/**
4854
+ `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(r=>this._comboBox._findIndex(r,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof $e||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}A(n_);/**
4855
4855
  * @license
4856
4856
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4857
4857
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4858
- */const mr=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),$s=J(i=>class extends i{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),mr.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,mr.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),mr.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&mr.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4858
+ */const mr=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),$s=te(i=>class extends i{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),mr.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,mr.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),mr.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&mr.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4859
4859
  * @license
4860
4860
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4861
4861
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4897,7 +4897,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4897
4897
  :host([auto-expand-horizontally]) [class$='container'] {
4898
4898
  width: auto;
4899
4899
  }
4900
- `;y("vaadin-multi-select-combo-box",[Wr,s_],{moduleId:"vaadin-multi-select-combo-box-styles"});class l_ extends $s(Ur(H(be(S)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return D`
4900
+ `;y("vaadin-multi-select-combo-box",[Wr,s_],{moduleId:"vaadin-multi-select-combo-box-styles"});class l_ extends $s(Ur(U(be(M)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return O`
4901
4901
  <div class="vaadin-multi-select-combo-box-container">
4902
4902
  <div part="label">
4903
4903
  <slot name="label"></slot>
@@ -4973,7 +4973,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4973
4973
  color: transparent !important;
4974
4974
  forced-color-adjust: none;
4975
4975
  }
4976
- `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new er(this.inputElement,this._labelController)),this._tooltipController=new Ne(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new ce(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),Yr(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),vr(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,r){if(r&&e){for(let o=0;o<t.length;o++)if(t[o]&&t[o][r]===e[r])return o;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,r){const o=t?"selected":"deselected",a=this.i18n.total.replace("{count}",r||0);vr(`${e} ${this.i18n[o]} ${a}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const r=this._getItemLabel(e);this.__announceItem(r,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],r=this._findIndex(e,t,this.itemIdPath),o=this._getItemLabel(e);let a=!1;if(r!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}t.splice(r,1)}else t.push(e),a=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(o,a,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,r){e?r||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const r=this._getItemLabel(e);return t.label=r,t.setAttribute("title",r),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",o=>this._onItemRemoved(o)),t.addEventListener("mousedown",o=>this._preventBlur(o)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const r=getComputedStyle(e),o=e.clientWidth+parseInt(r.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,r=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=t-r;e.length>1&&(o-=this.__getOverflowWidth());const a=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=e.length-1,u=null;d>=0;d--){const h=this.__createChip(e[d]);this.insertBefore(h,u),u=h,n.unshift(h)}const s=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<r){for(;n.length>1;){n.pop().remove(),s.unshift(e.pop());const d=s.length>0?r+this.__getOverflowWidth():r;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=d)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(a,o)}px`)}this._overflowItems=s;return}for(let n=e.length-1,s=null;n>=0;n--){const l=this.__createChip(e[n]);if(this.insertBefore(l,s),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(s===null)l.style.maxWidth=`${Math.max(a,o)}px`;else{l.remove();break}e.pop(),s=l}this._overflowItems=e}__updateOverflowChip(e,t,r,o){if(e){const a=t.length;e.label=`${a}`,e.setAttribute("count",`${a}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",a===0),e.disabled=r,e.readonly=o}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let o;this.__isRTL?r===e.length-1?o=-1:r>-1&&(o=r+1):r===-1?o=e.length-1:r>0&&(o=r-1),o!==void 0&&(this._focusedChipIndex=o)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let o;this.__isRTL?r===-1?o=e.length-1:r>0&&(o=r-1):r===e.length-1?o=-1:r>-1&&(o=r+1),o!==void 0&&(this._focusedChipIndex=o)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const r=this._chips;if(r.forEach((o,a)=>{o.toggleAttribute("focused",a===e)}),e>-1){const o=r[e].item,a=this._getItemLabel(o);vr(`${a} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}P(l_);y("vaadin-notification-card",_`
4976
+ `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Zt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new er(this.inputElement,this._labelController)),this._tooltipController=new Ne(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new ue(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),Yr(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),vr(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,r){if(r&&e){for(let o=0;o<t.length;o++)if(t[o]&&t[o][r]===e[r])return o;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,r){const o=t?"selected":"deselected",a=this.i18n.total.replace("{count}",r||0);vr(`${e} ${this.i18n[o]} ${a}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const r=this._getItemLabel(e);this.__announceItem(r,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],r=this._findIndex(e,t,this.itemIdPath),o=this._getItemLabel(e);let a=!1;if(r!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}t.splice(r,1)}else t.push(e),a=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(o,a,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,r){e?r||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const r=this._getItemLabel(e);return t.label=r,t.setAttribute("title",r),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",o=>this._onItemRemoved(o)),t.addEventListener("mousedown",o=>this._preventBlur(o)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const r=getComputedStyle(e),o=e.clientWidth+parseInt(r.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,r=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=t-r;e.length>1&&(o-=this.__getOverflowWidth());const a=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=e.length-1,u=null;d>=0;d--){const h=this.__createChip(e[d]);this.insertBefore(h,u),u=h,n.unshift(h)}const s=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<r){for(;n.length>1;){n.pop().remove(),s.unshift(e.pop());const d=s.length>0?r+this.__getOverflowWidth():r;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=d)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(a,o)}px`)}this._overflowItems=s;return}for(let n=e.length-1,s=null;n>=0;n--){const l=this.__createChip(e[n]);if(this.insertBefore(l,s),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(s===null)l.style.maxWidth=`${Math.max(a,o)}px`;else{l.remove();break}e.pop(),s=l}this._overflowItems=e}__updateOverflowChip(e,t,r,o){if(e){const a=t.length;e.label=`${a}`,e.setAttribute("count",`${a}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",a===0),e.disabled=r,e.readonly=o}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let o;this.__isRTL?r===e.length-1?o=-1:r>-1&&(o=r+1):r===-1?o=e.length-1:r>0&&(o=r-1),o!==void 0&&(this._focusedChipIndex=o)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let o;this.__isRTL?r===-1?o=e.length-1:r>0&&(o=r-1):r===e.length-1?o=-1:r>-1&&(o=r+1),o!==void 0&&(this._focusedChipIndex=o)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const r=this._chips;if(r.forEach((o,a)=>{o.toggleAttribute("focused",a===e)}),e>-1){const o=r[e].item,a=this._getItemLabel(o);vr(`${a} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}A(l_);y("vaadin-notification-card",_`
4977
4977
  :host {
4978
4978
  position: relative;
4979
4979
  margin: var(--lumo-space-s);
@@ -5195,7 +5195,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5195
5195
  * @license
5196
5196
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5197
5197
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5198
- */class c_ extends fs(H(be(S))){static get template(){return D`
5198
+ */class c_ extends fs(U(be(M))){static get template(){return O`
5199
5199
  <style>
5200
5200
  :host {
5201
5201
  position: fixed;
@@ -5262,7 +5262,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5262
5262
  <div region="bottom-end"><slot name="bottom-end"></slot></div>
5263
5263
  </div>
5264
5264
  <div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
5265
- `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),fo&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight;t&&r>e?this.style.bottom=`${r-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class u_ extends H(S){static get template(){return D`
5265
+ `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),fo&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight;t&&r>e?this.style.bottom=`${r-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class u_ extends U(M){static get template(){return O`
5266
5266
  <style>
5267
5267
  :host {
5268
5268
  display: block;
@@ -5284,14 +5284,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5284
5284
  <slot></slot>
5285
5285
  </div>
5286
5286
  </div>
5287
- `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class Se extends ir(zr(be(S))){static get template(){return D`
5287
+ `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class Se extends ir(zr(be(M))){static get template(){return O`
5288
5288
  <style>
5289
5289
  :host {
5290
5290
  display: none !important;
5291
5291
  }
5292
5292
  </style>
5293
5293
  <vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
5294
- `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return d_(e)?Se._createAndShowNotification(r=>{mn(e,r)},t):Se._createAndShowNotification(r=>{r.innerText=e},t)}static _createAndShowNotification(e,t){const r=document.createElement(Se.is);return t&&Number.isFinite(t.duration)&&(r.duration=t.duration),t&&t.position&&(r.position=t.position),t&&t.theme&&r.setAttribute("theme",t.theme),r.renderer=e,document.body.appendChild(r),r.opened=!0,r.addEventListener("opened-changed",o=>{o.detail.value||r.remove()}),r}get _container(){return Se._container||(Se._container=document.createElement("vaadin-notification-container"),document.body.appendChild(Se._container)),Se._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Yr(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,r){if(!r)return;const o=this._oldRenderer!==e;this._oldRenderer=e,o&&(r.innerHTML="",delete r._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}P(c_);P(u_);P(Se);const Us=_`
5294
+ `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return d_(e)?Se._createAndShowNotification(r=>{mn(e,r)},t):Se._createAndShowNotification(r=>{r.innerText=e},t)}static _createAndShowNotification(e,t){const r=document.createElement(Se.is);return t&&Number.isFinite(t.duration)&&(r.duration=t.duration),t&&t.position&&(r.position=t.position),t&&t.theme&&r.setAttribute("theme",t.theme),r.renderer=e,document.body.appendChild(r),r.opened=!0,r.addEventListener("opened-changed",o=>{o.detail.value||r.remove()}),r}get _container(){return Se._container||(Se._container=document.createElement("vaadin-notification-container"),document.body.appendChild(Se._container)),Se._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Yr(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,r){if(!r)return;const o=this._oldRenderer!==e;this._oldRenderer=e,o&&(r.innerHTML="",delete r._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}A(c_);A(u_);A(Se);const Us=_`
5295
5295
  :host {
5296
5296
  -webkit-tap-highlight-color: transparent;
5297
5297
  --_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
@@ -5415,7 +5415,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5415
5415
  * @license
5416
5416
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5417
5417
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5418
- */class m_ extends Ws(H(ge(S))){static get is(){return"vaadin-select-item"}static get template(){return D`
5418
+ */class m_ extends Ws(U(ge(M))){static get is(){return"vaadin-select-item"}static get template(){return O`
5419
5419
  <style>
5420
5420
  :host {
5421
5421
  display: inline-block;
@@ -5429,7 +5429,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5429
5429
  <div part="content">
5430
5430
  <slot></slot>
5431
5431
  </div>
5432
- `}ready(){super.ready(),this.setAttribute("role","option")}}P(m_);/**
5432
+ `}ready(){super.ready(),this.setAttribute("role","option")}}A(m_);/**
5433
5433
  * @license
5434
5434
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5435
5435
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -5445,7 +5445,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5445
5445
  * @license
5446
5446
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5447
5447
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5448
- */class v_ extends Ys(H(ge(Pe(S)))){static get is(){return"vaadin-select-list-box"}static get template(){return D`
5448
+ */class v_ extends Ys(U(ge(Pe(M)))){static get is(){return"vaadin-select-list-box"}static get template(){return O`
5449
5449
  <style>
5450
5450
  :host {
5451
5451
  display: flex;
@@ -5465,7 +5465,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5465
5465
  <div part="items">
5466
5466
  <slot></slot>
5467
5467
  </div>
5468
- `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}P(v_);/**
5468
+ `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}A(v_);/**
5469
5469
  * @license
5470
5470
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5471
5471
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -5488,14 +5488,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5488
5488
  outline: 3px solid;
5489
5489
  }
5490
5490
  }
5491
- `;y("vaadin-select-overlay",[tr,b_],{moduleId:"vaadin-select-overlay-styles"});class y_ extends g_(H(S)){static get is(){return"vaadin-select-overlay"}static get template(){return D`
5491
+ `;y("vaadin-select-overlay",[tr,b_],{moduleId:"vaadin-select-overlay-styles"});class y_ extends g_(U(M)){static get is(){return"vaadin-select-overlay"}static get template(){return O`
5492
5492
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
5493
5493
  <div part="overlay" id="overlay" tabindex="0">
5494
5494
  <div part="content" id="content">
5495
5495
  <slot></slot>
5496
5496
  </div>
5497
5497
  </div>
5498
- `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}P(y_);/**
5498
+ `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}A(y_);/**
5499
5499
  * @license
5500
5500
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5501
5501
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -5545,13 +5545,13 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5545
5545
  * @license
5546
5546
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5547
5547
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5548
- */y("vaadin-select-value-button",w_,{moduleId:"vaadin-select-value-button-styles"});class x_ extends go(H(S)){static get is(){return"vaadin-select-value-button"}static get template(){return D`
5548
+ */y("vaadin-select-value-button",w_,{moduleId:"vaadin-select-value-button-styles"});class x_ extends go(U(M)){static get is(){return"vaadin-select-value-button"}static get template(){return O`
5549
5549
  <div class="vaadin-button-container">
5550
5550
  <span part="label">
5551
5551
  <slot></slot>
5552
5552
  </span>
5553
5553
  </div>
5554
- `}}P(x_);/**
5554
+ `}}A(x_);/**
5555
5555
  * @license
5556
5556
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
5557
5557
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -5573,7 +5573,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5573
5573
  * @license
5574
5574
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
5575
5575
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5576
- */class k_ extends ce{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,r)=>{r._setFocusElement(t),r.ariaTarget=t,r.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
5576
+ */class k_ extends ue{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,r)=>{r._setFocusElement(t),r.ariaTarget=t,r.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
5577
5577
  * @license
5578
5578
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5579
5579
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -5581,7 +5581,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5581
5581
  * @license
5582
5582
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5583
5583
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5584
- */y("vaadin-select",[Ps,As,C_],{moduleId:"vaadin-select-styles"});class P_ extends E_(be(H(S))){static get is(){return"vaadin-select"}static get template(){return D`
5584
+ */y("vaadin-select",[Ps,As,C_],{moduleId:"vaadin-select-styles"});class P_ extends E_(be(U(M))){static get is(){return"vaadin-select"}static get template(){return O`
5585
5585
  <style>
5586
5586
  :host {
5587
5587
  position: relative;
@@ -5634,7 +5634,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5634
5634
  <div class="sr-only">
5635
5635
  <slot name="sr-label"></slot>
5636
5636
  </div>
5637
- `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Yr(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}P(P_);const js=_`
5637
+ `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Yr(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}A(P_);const js=_`
5638
5638
  /* Optical centering */
5639
5639
  :host::before,
5640
5640
  :host::after {
@@ -5979,7 +5979,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5979
5979
  * @license
5980
5980
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5981
5981
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5982
- */y("vaadin-confirm-dialog-overlay",[tr,T_,D_],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class S_ extends rr(ge(H(S))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return D`
5982
+ */y("vaadin-confirm-dialog-overlay",[tr,T_,D_],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class S_ extends rr(ge(U(M))){static get is(){return"vaadin-confirm-dialog-overlay"}static get template(){return O`
5983
5983
  <div part="backdrop" id="backdrop" hidden$="[[!withBackdrop]]"></div>
5984
5984
  <div part="overlay" id="overlay" tabindex="0">
5985
5985
  <section id="resizerContainer" class="resizer-container">
@@ -6000,7 +6000,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6000
6000
  </footer>
6001
6001
  </section>
6002
6002
  </div>
6003
- `}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}P(S_);class O_ extends I_(A_(ir(zr(S)))){static get is(){return"vaadin-confirm-dialog-dialog"}static get template(){return D`
6003
+ `}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","")}}A(S_);class O_ extends I_(A_(ir(zr(M)))){static get is(){return"vaadin-confirm-dialog-dialog"}static get template(){return O`
6004
6004
  <style>
6005
6005
  :host {
6006
6006
  display: none;
@@ -6021,15 +6021,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6021
6021
  restore-focus-on-close
6022
6022
  focus-trap
6023
6023
  ></vaadin-confirm-dialog-overlay>
6024
- `}}P(O_);/**
6024
+ `}}A(O_);/**
6025
6025
  * @license
6026
6026
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
6027
6027
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6028
- */const M_=i=>class extends i{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new ce(this,"header","h3",{initializer:e=>{this._headerNode=e}}),this.addController(this._headerController),this._messageController=new ce(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const t=document.createElement("div");t.style.display="contents";const r=`confirm-dialog-message-${Qt()}`;t.id=r,this.appendChild(t),t.appendChild(e),this._messageNodes=[...this._messageNodes,t]}}),this.addController(this._messageController),this._cancelController=new ce(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e)}}),this.addController(this._cancelController),this._rejectController=new ce(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e)}}),this.addController(this._rejectController),this._confirmController=new ce(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e)}}),this.addController(this._confirmController)}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog")}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(r=>{e.appendChild(r)});const t=e.querySelector('[slot="confirm-button"]');t&&t.focus()}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e)}),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(e,t,r){!e||!t||(r!==void 0?ht(e,"aria-describedby",{newId:r,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):t.forEach(o=>{ht(e,"aria-describedby",{newId:o.id})}),this.__oldAccessibleDescriptionRef=r)}__setupSlottedButton(e,t){const r=`_${e}Button`,o=`__${e}`;this[r]&&this[r]!==t&&this[r].remove(),t.addEventListener("click",this[o]),this[r]=t}__updateCancelButton(e,t,r,o){e&&(e===this._cancelController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r)),e.toggleAttribute("hidden",!o))}__updateConfirmButton(e,t,r){e&&e===this._confirmController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r))}__updateHeaderNode(e,t){e&&e===this._headerController.defaultNode&&(e.textContent=t)}__updateMessageNodes(e,t){if(e&&e.length>0){const r=e.find(o=>this._messageController.defaultNode&&o===this._messageController.defaultNode.parentElement);r&&(r.firstChild.textContent=t)}}__updateRejectButton(e,t,r,o){e&&(e===this._rejectController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r)),e.toggleAttribute("hidden",!o))}_escPressed(e){e.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(e){return e||"confirmation"}};/**
6028
+ */const M_=i=>class extends i{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new ue(this,"header","h3",{initializer:e=>{this._headerNode=e}}),this.addController(this._headerController),this._messageController=new ue(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const t=document.createElement("div");t.style.display="contents";const r=`confirm-dialog-message-${Qt()}`;t.id=r,this.appendChild(t),t.appendChild(e),this._messageNodes=[...this._messageNodes,t]}}),this.addController(this._messageController),this._cancelController=new ue(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e)}}),this.addController(this._cancelController),this._rejectController=new ue(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e)}}),this.addController(this._rejectController),this._confirmController=new ue(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e)}}),this.addController(this._confirmController)}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog")}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(r=>{e.appendChild(r)});const t=e.querySelector('[slot="confirm-button"]');t&&t.focus()}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e)}),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(e,t,r){!e||!t||(r!==void 0?ht(e,"aria-describedby",{newId:r,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):t.forEach(o=>{ht(e,"aria-describedby",{newId:o.id})}),this.__oldAccessibleDescriptionRef=r)}__setupSlottedButton(e,t){const r=`_${e}Button`,o=`__${e}`;this[r]&&this[r]!==t&&this[r].remove(),t.addEventListener("click",this[o]),this[r]=t}__updateCancelButton(e,t,r,o){e&&(e===this._cancelController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r)),e.toggleAttribute("hidden",!o))}__updateConfirmButton(e,t,r){e&&e===this._confirmController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r))}__updateHeaderNode(e,t){e&&e===this._headerController.defaultNode&&(e.textContent=t)}__updateMessageNodes(e,t){if(e&&e.length>0){const r=e.find(o=>this._messageController.defaultNode&&o===this._messageController.defaultNode.parentElement);r&&(r.firstChild.textContent=t)}}__updateRejectButton(e,t,r,o){e&&(e===this._rejectController.defaultNode&&(e.textContent=t,e.setAttribute("theme",r)),e.toggleAttribute("hidden",!o))}_escPressed(e){e.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(e){return e||"confirmation"}};/**
6029
6029
  * @license
6030
6030
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
6031
6031
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6032
- */class N_ extends M_(be(zr(Pe(S)))){static get template(){return D`
6032
+ */class N_ extends M_(be(zr(Pe(M)))){static get template(){return O`
6033
6033
  <style>
6034
6034
  :host,
6035
6035
  [hidden] {
@@ -6056,7 +6056,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6056
6056
  <slot name="reject-button"></slot>
6057
6057
  <slot name="confirm-button"></slot>
6058
6058
  </div>
6059
- `}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}P(N_);y("vaadin-tab",_`
6059
+ `}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}A(N_);y("vaadin-tab",_`
6060
6060
  :host {
6061
6061
  box-sizing: border-box;
6062
6062
  padding: 0.5rem 0.75rem;
@@ -6297,7 +6297,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6297
6297
  * @license
6298
6298
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6299
6299
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6300
- */const L_=_`
6300
+ */const B_=_`
6301
6301
  :host {
6302
6302
  display: block;
6303
6303
  }
@@ -6320,10 +6320,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6320
6320
  * @license
6321
6321
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6322
6322
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6323
- */y("vaadin-tab",L_,{moduleId:"vaadin-tab-styles"});class B_ extends be(H(z_(Pe(S)))){static get template(){return D`
6323
+ */y("vaadin-tab",B_,{moduleId:"vaadin-tab-styles"});class L_ extends be(U(z_(Pe(M)))){static get template(){return O`
6324
6324
  <slot></slot>
6325
6325
  <slot name="tooltip"></slot>
6326
- `}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new Ne(this),this.addController(this._tooltipController)}}P(B_);y("vaadin-tabs",_`
6326
+ `}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new Ne(this),this.addController(this._tooltipController)}}A(L_);y("vaadin-tabs",_`
6327
6327
  :host {
6328
6328
  -webkit-tap-highlight-color: transparent;
6329
6329
  }
@@ -6649,7 +6649,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6649
6649
  * @license
6650
6650
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6651
6651
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6652
- */y("vaadin-tabs",V_,{moduleId:"vaadin-tabs-styles"});class R_ extends F_(be(H(S))){static get template(){return D`
6652
+ */y("vaadin-tabs",V_,{moduleId:"vaadin-tabs-styles"});class R_ extends F_(be(U(M))){static get template(){return O`
6653
6653
  <div on-click="_scrollBack" part="back-button" aria-hidden="true"></div>
6654
6654
 
6655
6655
  <div id="scroll" part="tabs">
@@ -6657,7 +6657,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
6657
6657
  </div>
6658
6658
 
6659
6659
  <div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
6660
- `}static get is(){return"vaadin-tabs"}}P(R_);function H_(i){c.append_styles(i,"svelte-18j72sv",'.BonusesWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--color-typography-cotrast, #444444);padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.BonusesTitleMobile{font-size:var(--emw--size-standard, 16px)}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-large, 10px)}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.BonusesCalendarStartDate input,.BonusesCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 10px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;outline:none}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesCalendarFilter:disabled{background-image:none;background-color:var(--emw--button-disabled-text-color, #cccccc);color:var(--emw--button-disabled-text-color, #666);cursor:not-allowed;opacity:0.7;pointer-events:none;border:2px solid var(--emw--button-disabled-border-color, #aaaaaa)}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px;border-radius:var(--emw--border-radius-large, 10px)}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;font-weight:var(--emw--font-weight-bold, 700)}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-typography-cotrast, #444444);font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:var(--emw--font-weight-bold, 700)}.ModalLoader{width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function Va(i,e,t){const r=i.slice();return r[57]=e[t],r[59]=t,r}function Ra(i,e,t){const r=i.slice();return r[60]=e[t],r}function $_(i){let e,t,r,o,a,n,s,l,d,u,h=i[26]("titleBonusesHistory")+"",p,m,b;return{c(){e=c.element("div"),t=c.svg_element("svg"),r=c.svg_element("defs"),o=c.svg_element("style"),a=c.text(`.aaa {
6660
+ `}static get is(){return"vaadin-tabs"}}A(R_);function H_(i){c.append_styles(i,"svelte-bp2unp",'.BonusesWrapper{background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:var(--emw--border-radius-large, 10px);color:var(--emw--color-typography-cotrast, #444444);padding:50px;max-width:850px}.BonusesWrapper.BonusesWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesTitle{font-size:var(--emw--font-size-x-large, 26px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weigh-normal, 400)}.BonusesTitleMobile{font-size:var(--emw--size-standard, 16px)}.BonusesTitleNone{display:none}.BonusCalendarWrapper{display:flex;gap:15px;padding-bottom:30px;align-items:center}.BonusCalendarWrapper.BonusCalendarWrapperMobile{flex-direction:column;gap:10px;padding-bottom:15px}.BonusesCalendarContainer{display:flex;gap:20px}.BonusesCalendarContainer.BonusesCalendarContainerMobile{flex-direction:row;gap:0;justify-content:space-between;padding-bottom:0;width:100%}.BonusesCalendarStartDate,.BonusesCalendarEndDate{color:var(--emw--color-gray-300, #58586B);display:flex;position:relative;align-items:center;gap:10px}.BonusesCalendarStartDate.BonusesCalendarMobile,.BonusesCalendarEndDate.BonusesCalendarMobile{flex-direction:column;align-items:flex-start;gap:5px;width:48%}.BonusesCalendarStartDate.BonusesCalendarMobile .VaadinDatePicker,.BonusesCalendarEndDate.BonusesCalendarMobile .VaadinDatePicker{width:100%;border-radius:var(--emw--border-radius-large, 10px)}.BonusesCalendarStartDate label,.BonusesCalendarEndDate label{font-size:var(--emw--font-size-small, 14px);font-weight:300}.BonusesCalendarStartDate input,.BonusesCalendarEndDate input{width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:var(--emw--border-radius-small, 5px);box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px;outline-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesCalendarFilter{background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);color:var(--emw--button-text-color, #FFFFFF);border-radius:var(--emw--button-border-radius, 10px);cursor:pointer;width:120px;height:40px;font-size:var(--emw--font-size-medium, 15px);text-transform:uppercase;text-align:center;transition-duration:0.3s;box-sizing:border-box;padding:10px;outline:none}.BonusesCalendarFilter.BonusesCalendarFilterMobile{width:100%;height:44px}.BonusesCalendarFilter:active{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.BonusesCalendarFilter:disabled{background-image:none;background-color:var(--emw--button-disabled-text-color, #cccccc);color:var(--emw--button-disabled-text-color, #666);cursor:not-allowed;opacity:0.7;pointer-events:none;border:2px solid var(--emw--button-disabled-border-color, #aaaaaa)}.BonusesGrid{display:grid;grid-template-columns:1fr 1fr;gap:50px;border-radius:var(--emw--border-radius-large, 10px)}.BonusesGrid.BonusesGridMobile{grid-template-columns:1fr;gap:20px}.BonusesPaginationWrapper{margin:40px 0;display:block;line-break:anywhere;line-height:2em}.BonusesPaginationWrapper.BonusesPaginationWrapperMobile{text-align:center}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast,.BonusesPaginationWrapper .BonusesPage{all:unset;box-sizing:border-box;cursor:pointer}.BonusesPaginationWrapper .BonusesFirst,.BonusesPaginationWrapper .BonusesPrev,.BonusesPaginationWrapper .BonusesNext,.BonusesPaginationWrapper .BonusesLast{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;font-weight:var(--emw--font-weight-bold, 700)}.BonusesPaginationWrapper .BonusesFirst.Inactive,.BonusesPaginationWrapper .BonusesPrev.Inactive,.BonusesPaginationWrapper .BonusesNext.Inactive,.BonusesPaginationWrapper .BonusesLast.Inactive{color:var(--emw--color-gray-100, #E6E6E6);cursor:default}.BonusesPaginationWrapper .BonusesPage{margin:0 5px;color:var(--emw--color-typography-cotrast, #444444);font-size:var(--emw--size-standard, 16px);cursor:pointer;padding:5px 10px;white-space:nowrap}.BonusesPaginationWrapper .BonusesPage.BonusPageActive{background-color:var(--emw--color-white, #FFFFFF);font-weight:var(--emw--font-weight-bold, 700);cursor:default}.ModalLoader{width:300px;height:300px;margin:0 auto;display:flex;align-items:center;justify-content:center}.ModalLoader:after{content:" ";display:block;width:64px;height:64px;margin:8px;border-radius:50%;border:5px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E)) transparent;animation:Loader 1.2s linear infinite}@keyframes Loader{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}')}function Va(i,e,t){const r=i.slice();return r[57]=e[t],r[59]=t,r}function Ra(i,e,t){const r=i.slice();return r[60]=e[t],r}function $_(i){let e,t,r,o,a,n,s,l,d,u,h=i[26]("titleBonusesHistory")+"",p,m,b;return{c(){e=c.element("div"),t=c.svg_element("svg"),r=c.svg_element("defs"),o=c.svg_element("style"),a=c.text(`.aaa {
6661
6661
  fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
6662
6662
  }
6663
- `),n=c.svg_element("g"),s=c.svg_element("g"),l=c.svg_element("path"),d=c.space(),u=c.element("h2"),p=c.text(h),c.attr(l,"class","aaa"),c.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),c.attr(l,"transform","translate(15 15) rotate(180)"),c.attr(s,"transform","translate(20 158)"),c.attr(n,"transform","translate(-20 -158)"),c.attr(t,"xmlns","http://www.w3.org/2000/svg"),c.attr(t,"width","15"),c.attr(t,"height","15"),c.attr(t,"viewBox","0 0 15 15"),c.attr(u,"class","BonusesTitleMobile"),c.attr(e,"class","MenuReturnButton")},m(w,x){c.insert(w,e,x),c.append(e,t),c.append(t,r),c.append(r,o),c.append(o,a),c.append(t,n),c.append(n,s),c.append(s,l),c.append(e,d),c.append(e,u),c.append(u,p),m||(b=c.listen(e,"click",i[35]),m=!0)},p(w,x){x[0]&67108864&&h!==(h=w[26]("titleBonusesHistory")+"")&&c.set_data(p,h)},d(w){w&&c.detach(e),m=!1,b()}}}function U_(i){let e,t,r;function o(l,d){return l[22].length===0?Y_:q_}let a=o(i),n=a(i),s=i[22].length!==0&&$a(i);return{c(){e=c.element("div"),n.c(),t=c.space(),s&&s.c(),r=c.empty(),c.attr(e,"class","BonusesGrid "+(i[27]?"BonusesGridMobile":""))},m(l,d){c.insert(l,e,d),n.m(e,null),c.insert(l,t,d),s&&s.m(l,d),c.insert(l,r,d)},p(l,d){a===(a=o(l))&&n?n.p(l,d):(n.d(1),n=a(l),n&&(n.c(),n.m(e,null))),l[22].length!==0?s?s.p(l,d):(s=$a(l),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(l){l&&(c.detach(e),c.detach(t),c.detach(r)),n.d(),s&&s.d(l)}}}function W_(i){let e;return{c(){e=c.element("div"),c.attr(e,"class","ModalLoader")},m(t,r){c.insert(t,e,r)},p:c.noop,d(t){t&&c.detach(e)}}}function q_(i){let e,t=c.ensure_array_like(i[22]),r=[];for(let o=0;o<t.length;o+=1)r[o]=Ha(Ra(i,t,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();e=c.empty()},m(o,a){for(let n=0;n<r.length;n+=1)r[n]&&r[n].m(o,a);c.insert(o,e,a)},p(o,a){if(a[0]&62914975){t=c.ensure_array_like(o[22]);let n;for(n=0;n<t.length;n+=1){const s=Ra(o,t,n);r[n]?r[n].p(s,a):(r[n]=Ha(s),r[n].c(),r[n].m(e.parentNode,e))}for(;n<r.length;n+=1)r[n].d(1);r.length=t.length}},d(o){o&&c.detach(e),c.destroy_each(r,o)}}}function Y_(i){let e,t=i[26]("noBonusHistory")+"",r;return{c(){e=c.element("p"),r=c.text(t)},m(o,a){c.insert(o,e,a),c.append(e,r)},p(o,a){a[0]&67108864&&t!==(t=o[26]("noBonusHistory")+"")&&c.set_data(r,t)},d(o){o&&c.detach(e)}}}function j_(i){let e,t,r,o,a,n,s,l,d,u;return{c(){e=c.element("player-bonus-card"),c.set_custom_element_data(e,"termsandconditionsdescription",i[25]),c.set_custom_element_data(e,"termsandconditionsurl",i[23]),c.set_custom_element_data(e,"termsandconditionsasset",i[24]),c.set_custom_element_data(e,"bonuswalletid",t=i[60].walletId),c.set_custom_element_data(e,"bonusdate",r=i[60].granted),c.set_custom_element_data(e,"bonusstatus",o=i[60].status),c.set_custom_element_data(e,"bonusname",a=i[60].name),c.set_custom_element_data(e,"bonustype",n=i[60].type),c.set_custom_element_data(e,"bonusamount",s=i[60].extension.grantedPlayerCurrencyAmount),c.set_custom_element_data(e,"bonuswageringamount",l=`${i[60].fulfilledWR} / ${i[60].originalWageringRequirement}`),c.set_custom_element_data(e,"bonusremainingamount",d=i[60].currentAmount),c.set_custom_element_data(e,"bonuscurrency",u=i[60].currency),c.set_custom_element_data(e,"lang",i[0]),c.set_custom_element_data(e,"clientstyling",i[1]),c.set_custom_element_data(e,"clientstylingurl",i[2]),c.set_custom_element_data(e,"mbsource",i[3]),c.set_custom_element_data(e,"translationurl",i[4]),c.set_custom_element_data(e,"currencylocale",i[7]),c.set_custom_element_data(e,"dateformat",i[8])},m(h,p){c.insert(h,e,p)},p(h,p){p[0]&33554432&&c.set_custom_element_data(e,"termsandconditionsdescription",h[25]),p[0]&8388608&&c.set_custom_element_data(e,"termsandconditionsurl",h[23]),p[0]&16777216&&c.set_custom_element_data(e,"termsandconditionsasset",h[24]),p[0]&4194304&&t!==(t=h[60].walletId)&&c.set_custom_element_data(e,"bonuswalletid",t),p[0]&4194304&&r!==(r=h[60].granted)&&c.set_custom_element_data(e,"bonusdate",r),p[0]&4194304&&o!==(o=h[60].status)&&c.set_custom_element_data(e,"bonusstatus",o),p[0]&4194304&&a!==(a=h[60].name)&&c.set_custom_element_data(e,"bonusname",a),p[0]&4194304&&n!==(n=h[60].type)&&c.set_custom_element_data(e,"bonustype",n),p[0]&4194304&&s!==(s=h[60].extension.grantedPlayerCurrencyAmount)&&c.set_custom_element_data(e,"bonusamount",s),p[0]&4194304&&l!==(l=`${h[60].fulfilledWR} / ${h[60].originalWageringRequirement}`)&&c.set_custom_element_data(e,"bonuswageringamount",l),p[0]&4194304&&d!==(d=h[60].currentAmount)&&c.set_custom_element_data(e,"bonusremainingamount",d),p[0]&4194304&&u!==(u=h[60].currency)&&c.set_custom_element_data(e,"bonuscurrency",u),p[0]&1&&c.set_custom_element_data(e,"lang",h[0]),p[0]&2&&c.set_custom_element_data(e,"clientstyling",h[1]),p[0]&4&&c.set_custom_element_data(e,"clientstylingurl",h[2]),p[0]&8&&c.set_custom_element_data(e,"mbsource",h[3]),p[0]&16&&c.set_custom_element_data(e,"translationurl",h[4]),p[0]&128&&c.set_custom_element_data(e,"currencylocale",h[7]),p[0]&256&&c.set_custom_element_data(e,"dateformat",h[8])},d(h){h&&c.detach(e)}}}function G_(i){let e,t,r,o,a,n,s;return{c(){e=c.element("player-bonus-card"),c.set_custom_element_data(e,"termsandconditionsdescription",i[25]),c.set_custom_element_data(e,"termsandconditionsurl",i[23]),c.set_custom_element_data(e,"termsandconditionsasset",i[24]),c.set_custom_element_data(e,"bonuswalletid",t=i[60].walletId),c.set_custom_element_data(e,"bonusdate",r=i[60].granted),c.set_custom_element_data(e,"bonusstatus",o=i[60].status),c.set_custom_element_data(e,"bonusname",a=i[60].name),c.set_custom_element_data(e,"bonustype",n=i[60].type),c.set_custom_element_data(e,"bonuscurrency",s=i[60].currency),c.set_custom_element_data(e,"lang",i[0]),c.set_custom_element_data(e,"clientstyling",i[1]),c.set_custom_element_data(e,"clientstylingurl",i[2]),c.set_custom_element_data(e,"mbsource",i[3]),c.set_custom_element_data(e,"translationurl",i[4]),c.set_custom_element_data(e,"currencylocale",i[7]),c.set_custom_element_data(e,"dateformat",i[8])},m(l,d){c.insert(l,e,d)},p(l,d){d[0]&33554432&&c.set_custom_element_data(e,"termsandconditionsdescription",l[25]),d[0]&8388608&&c.set_custom_element_data(e,"termsandconditionsurl",l[23]),d[0]&16777216&&c.set_custom_element_data(e,"termsandconditionsasset",l[24]),d[0]&4194304&&t!==(t=l[60].walletId)&&c.set_custom_element_data(e,"bonuswalletid",t),d[0]&4194304&&r!==(r=l[60].granted)&&c.set_custom_element_data(e,"bonusdate",r),d[0]&4194304&&o!==(o=l[60].status)&&c.set_custom_element_data(e,"bonusstatus",o),d[0]&4194304&&a!==(a=l[60].name)&&c.set_custom_element_data(e,"bonusname",a),d[0]&4194304&&n!==(n=l[60].type)&&c.set_custom_element_data(e,"bonustype",n),d[0]&4194304&&s!==(s=l[60].currency)&&c.set_custom_element_data(e,"bonuscurrency",s),d[0]&1&&c.set_custom_element_data(e,"lang",l[0]),d[0]&2&&c.set_custom_element_data(e,"clientstyling",l[1]),d[0]&4&&c.set_custom_element_data(e,"clientstylingurl",l[2]),d[0]&8&&c.set_custom_element_data(e,"mbsource",l[3]),d[0]&16&&c.set_custom_element_data(e,"translationurl",l[4]),d[0]&128&&c.set_custom_element_data(e,"currencylocale",l[7]),d[0]&256&&c.set_custom_element_data(e,"dateformat",l[8])},d(l){l&&c.detach(e)}}}function Ha(i){let e;function t(a,n){return a[60].type==="freeRound"?G_:j_}let r=t(i),o=r(i);return{c(){o.c(),e=c.empty()},m(a,n){o.m(a,n),c.insert(a,e,n)},p(a,n){r===(r=t(a))&&o?o.p(a,n):(o.d(1),o=r(a),o&&(o.c(),o.m(e.parentNode,e)))},d(a){a&&c.detach(e),o.d(a)}}}function $a(i){let e,t,r,o,a,n,s,l,d,u,h,p,m,b,w,x,k,E,B,F=c.ensure_array_like(Array(i[20])),O=[];for(let C=0;C<F.length;C+=1)O[C]=Ua(Va(i,F,C));return{c(){e=c.element("div"),t=c.element("span"),r=c.text("|<"),a=c.space(),n=c.element("span"),s=c.text("<"),d=c.space();for(let C=0;C<O.length;C+=1)O[C].c();u=c.space(),h=c.element("span"),p=c.text(">"),b=c.space(),w=c.element("span"),x=c.text(">|"),c.attr(t,"class",o="BonusesFirst "+(i[21]===0?"Inactive":"")),c.attr(n,"class",l="BonusesPrev "+(i[21]===0?"Inactive":"")),c.attr(h,"class",m="BonusesNext "+(i[21]===i[20]-1?"Inactive":"")),c.attr(w,"class",k="BonusesLast "+(i[21]===i[20]-1?"Inactive":"")),c.attr(e,"class","BonusesPaginationWrapper "+(i[27]?"BonusesPaginationWrapperMobile":""))},m(C,W){c.insert(C,e,W),c.append(e,t),c.append(t,r),c.append(e,a),c.append(e,n),c.append(n,s),c.append(e,d);for(let M=0;M<O.length;M+=1)O[M]&&O[M].m(e,null);c.append(e,u),c.append(e,h),c.append(h,p),c.append(e,b),c.append(e,w),c.append(w,x),E||(B=[c.listen(t,"click",i[39]),c.listen(n,"click",i[40]),c.listen(h,"click",i[42]),c.listen(w,"click",i[43])],E=!0)},p(C,W){if(W[0]&2097152&&o!==(o="BonusesFirst "+(C[21]===0?"Inactive":""))&&c.attr(t,"class",o),W[0]&2097152&&l!==(l="BonusesPrev "+(C[21]===0?"Inactive":""))&&c.attr(n,"class",l),W[0]&1076887648){F=c.ensure_array_like(Array(C[20]));let M;for(M=0;M<F.length;M+=1){const ne=Va(C,F,M);O[M]?O[M].p(ne,W):(O[M]=Ua(ne),O[M].c(),O[M].m(e,u))}for(;M<O.length;M+=1)O[M].d(1);O.length=F.length}W[0]&3145728&&m!==(m="BonusesNext "+(C[21]===C[20]-1?"Inactive":""))&&c.attr(h,"class",m),W[0]&3145728&&k!==(k="BonusesLast "+(C[21]===C[20]-1?"Inactive":""))&&c.attr(w,"class",k)},d(C){C&&c.detach(e),c.destroy_each(O,C),E=!1,c.run_all(B)}}}function Ua(i){let e,t=i[59]+1+"",r,o,a,n;function s(){return i[41](i[59])}return{c(){e=c.element("span"),r=c.text(t),c.attr(e,"class",o="BonusesPage "+(i[59]===i[21]?"BonusPageActive":""))},m(l,d){c.insert(l,e,d),c.append(e,r),a||(n=c.listen(e,"click",s),a=!0)},p(l,d){i=l,d[0]&2097152&&o!==(o="BonusesPage "+(i[59]===i[21]?"BonusPageActive":""))&&c.attr(e,"class",o)},d(l){l&&c.detach(e),a=!1,n()}}}function K_(i){let e,t,r,o,a=i[26]("titleBonusesHistory")+"",n,s,l,d,u,h,p=i[26]("dateFrom")+"",m,b,w,x,k,E,B=i[26]("dateTo")+"",F,O,C,W,M,ne=i[26]("dateFilter")+"",me,$,Z,de,ze,ue=i[27]&&$_(i);function Le(U,Y){return U[14]?W_:U_}let ye=Le(i),ee=ye(i);return{c(){e=c.element("div"),t=c.element("div"),ue&&ue.c(),r=c.space(),o=c.element("h2"),n=c.text(a),s=c.space(),l=c.element("div"),d=c.element("div"),u=c.element("div"),h=c.element("label"),m=c.text(p),b=c.space(),w=c.element("vaadin-date-picker"),x=c.space(),k=c.element("div"),E=c.element("label"),F=c.text(B),O=c.space(),C=c.element("vaadin-date-picker"),W=c.space(),M=c.element("button"),me=c.text(ne),Z=c.space(),ee.c(),c.attr(o,"class","BonusesTitle "+(i[27]?"BonusesTitleNone":"")),c.attr(o,"part","BonusesTitle "+(i[27]?"BonusesTitleNone":"")),c.attr(h,"for","BonusCalendarStartDate"),c.set_custom_element_data(w,"max",i[28]),c.set_custom_element_data(w,"value",i[12]),c.set_custom_element_data(w,"placeholder",i[12]),c.set_custom_element_data(w,"class","VaadinDatePicker"),c.attr(u,"class","BonusesCalendarStartDate "+(i[27]?"BonusesCalendarMobile":"")),c.attr(E,"for","BonusesCalendarEndDate"),c.set_custom_element_data(C,"max",i[28]),c.set_custom_element_data(C,"min",i[15]),c.set_custom_element_data(C,"value",i[13]),c.set_custom_element_data(C,"placeholder",i[13]),c.set_custom_element_data(C,"class","VaadinDatePicker"),c.attr(k,"class","BonusesCalendarEndDate "+(i[27]?"BonusesCalendarMobile":"")),c.attr(d,"class","BonusesCalendarContainer "+(i[27]?"BonusesCalendarContainerMobile":"")),c.attr(M,"class","BonusesCalendarFilter "+(i[27]?"BonusesCalendarFilterMobile":"")),M.disabled=$=!i[16]||i[14],c.attr(l,"class","BonusCalendarWrapper "+(i[27]?"BonusCalendarWrapperMobile":"")),c.attr(t,"class","BonusesWrapper "+(i[27]?"BonusesWrapperMobile":""))},m(U,Y){c.insert(U,e,Y),c.append(e,t),ue&&ue.m(t,null),c.append(t,r),c.append(t,o),c.append(o,n),c.append(t,s),c.append(t,l),c.append(l,d),c.append(d,u),c.append(u,h),c.append(h,m),c.append(u,b),c.append(u,w),i[36](w),c.append(d,x),c.append(d,k),c.append(k,E),c.append(E,F),c.append(k,O),c.append(k,C),i[37](C),c.append(l,W),c.append(l,M),c.append(M,me),c.append(t,Z),ee.m(t,null),i[44](e),de||(ze=c.listen(M,"click",i[38]),de=!0)},p(U,Y){U[27]&&ue.p(U,Y),Y[0]&67108864&&a!==(a=U[26]("titleBonusesHistory")+"")&&c.set_data(n,a),Y[0]&67108864&&p!==(p=U[26]("dateFrom")+"")&&c.set_data(m,p),Y[0]&4096&&c.set_custom_element_data(w,"value",U[12]),Y[0]&4096&&c.set_custom_element_data(w,"placeholder",U[12]),Y[0]&67108864&&B!==(B=U[26]("dateTo")+"")&&c.set_data(F,B),Y[0]&32768&&c.set_custom_element_data(C,"min",U[15]),Y[0]&8192&&c.set_custom_element_data(C,"value",U[13]),Y[0]&8192&&c.set_custom_element_data(C,"placeholder",U[13]),Y[0]&67108864&&ne!==(ne=U[26]("dateFilter")+"")&&c.set_data(me,ne),Y[0]&81920&&$!==($=!U[16]||U[14])&&(M.disabled=$),ye===(ye=Le(U))&&ee?ee.p(U,Y):(ee.d(1),ee=ye(U),ee&&(ee.c(),ee.m(t,null)))},i:c.noop,o:c.noop,d(U){U&&c.detach(e),ue&&ue.d(),i[36](null),i[37](null),ee.d(),i[44](null),de=!1,ze()}}}let Ae=6;function X_(i,e,t){let r;c.component_subscribe(i,c.$format,g=>t(26,r=g));let{endpoint:o=""}=e,{session:a=""}=e,{playerid:n=""}=e,{lang:s="en"}=e,{clientstyling:l=""}=e,{clientstylingurl:d=""}=e,{mbsource:u}=e,{translationurl:h=""}=e,{bonushistorystatus:p=""}=e,{bonushistorytype:m=""}=e,{currencylocale:b=""}=e,{currency:w=""}=e,{dateformat:x="dd-MM-yyyy"}=e,k,E,B=!1,F=window.navigator.userAgent,O=c.getDevice(F)!=="PC",C,W;const M=Te(new Date,"yyyy-MM-dd");let ne="",me=Te(nn(new Date,3),`${x||"yyyy-MM-dd"}`),$=Te(new Date,`${x||"yyyy-MM-dd"}`),Z=!0,de=0,ze=0,ue=0,Le=0,ye=0,ee=[],U="",Y="",xt="";const or=()=>{fetch(h).then(te=>te.json()).then(te=>{Object.keys(te).forEach(xe=>{Fo(xe,te[xe])})}).catch(te=>{console.log(te)})};Object.keys(Vo).forEach(g=>{Fo(g,Vo[g])});const We=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:O},window.location.href)},K=(g,te)=>{const xe=pi(g,`${x||"yyyy-MM-dd"}`,new Date),Ye=te?xl(xe):fl(xe);return Te(Ye,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")},A=(g,te,xe)=>{t(14,B=!0);let Ye=new URL(`${o}/v1/player/${n}/bonusWallet`),nr=K(me,!1),nl=K($,!0),je="",Ao="",To="";te&&(Ao=te.split(",").map(Be=>`status=${Be}`).join(","),je=je+Ao+","),xe&&(To=xe.split(",").map(Be=>`type=${Be}`).join(","),je=je+To+","),je=je+`granted=[${nr}~${nl}]`,Ye.searchParams.append("filter",je),Ye.searchParams.append("pagination",`offset=${g},limit=${Ae}`);let sl={method:"GET",headers:{"X-SessionId":a}};fetch(Ye.href,sl).then(_e=>_e.json()).then(_e=>{Array.isArray(_e.items)&&_e.items.forEach(he=>{var Io,Do;const Be=(Do=(Io=he==null?void 0:he.extension)==null?void 0:Io.bonus)==null?void 0:Do.presentation;Be&&(t(23,U||(U=Be.url)),t(25,xt||(xt=Be.description)),t(24,Y||(Y=Be.assets)))}),t(20,Le=Math.ceil(_e.total/Ae)),g-Ae>=0&&t(17,de=g-Ae),g+Ae<_e.total&&t(18,ze=g+Ae),t(19,ue=(Le-1)*Ae),t(21,ye=g/Ae),t(22,ee=(_e==null?void 0:_e.items)||[]),b&&ee.forEach(he=>{he.fulfilledWR=oe(he.fulfilledWR),he.originalWageringRequirement=oe(he.originalWageringRequirement),he.currentAmount=oe(he.currentAmount),he.extension.grantedPlayerCurrencyAmount=oe(he.extension.grantedPlayerCurrencyAmount)})},_e=>{console.error(_e)}).finally(()=>{t(14,B=!1)}),window.postMessage({type:"ScrollToTop"},window.location.href)},oe=g=>new Intl.NumberFormat(b,{style:"currency",currency:w}).format(g).replace(/\s/g,""),qe=g=>{t(12,me=Te(new Date(g.target.value),`${x||"yyyy-MM-dd"}`)),t(15,ne=Te(new Date(g.target.value),"yyyy-MM-dd"))},Ct=g=>{t(13,$=Te(new Date(g.target.value),`${x||"yyyy-MM-dd"}`))},ar=()=>{const g=new Date(me),te=new Date($);g.getTime()>te.getTime()?t(16,Z=!1):t(16,Z=!0)},kt=()=>{C.addEventListener("change",qe,!1),W.addEventListener("change",Ct,!1)},Et=g=>{const{year:te,month:xe,day:Ye}=g,nr=new Date(te,xe,Ye);return Te(nr,x||"yyyy-MM-dd")},Po=g=>{const te=pi(g,x||"yyyy-MM-dd",new Date);return{year:te.getFullYear(),month:te.getMonth(),day:te.getDate()}};c.onMount(()=>(t(10,C.i18n=Gr(jr({},C.i18n),{formatDate:Et,parseDate:Po}),C),t(11,W.i18n=Gr(jr({},W.i18n),{formatDate:Et,parseDate:Po}),W),()=>{C.removeEventListener("change",qe),W.removeEventListener("change",Ct)}));const Ks=()=>{fc(s)},Xs=()=>We();function Qs(g){c.binding_callbacks[g?"unshift":"push"](()=>{C=g,t(10,C)})}function Js(g){c.binding_callbacks[g?"unshift":"push"](()=>{W=g,t(11,W)})}const Zs=()=>A(0,p,m),el=()=>A(0,p,m),tl=()=>A(de,p,m),rl=g=>A(g*Ae,p,m),il=()=>A(ze,p,m),ol=()=>A(ue,p,m);function al(g){c.binding_callbacks[g?"unshift":"push"](()=>{k=g,t(9,k)})}return i.$$set=g=>{"endpoint"in g&&t(31,o=g.endpoint),"session"in g&&t(32,a=g.session),"playerid"in g&&t(33,n=g.playerid),"lang"in g&&t(0,s=g.lang),"clientstyling"in g&&t(1,l=g.clientstyling),"clientstylingurl"in g&&t(2,d=g.clientstylingurl),"mbsource"in g&&t(3,u=g.mbsource),"translationurl"in g&&t(4,h=g.translationurl),"bonushistorystatus"in g&&t(5,p=g.bonushistorystatus),"bonushistorytype"in g&&t(6,m=g.bonushistorytype),"currencylocale"in g&&t(7,b=g.currencylocale),"currency"in g&&t(34,w=g.currency),"dateformat"in g&&t(8,x=g.dateformat)},i.$$.update=()=>{i.$$.dirty[0]&1&&s&&Ks(),i.$$.dirty[0]&3072&&C&&W&&kt(),i.$$.dirty[0]&12288&&me&&$&&ar(),i.$$.dirty[0]&96|i.$$.dirty[1]&7&&a&&n&&o&&A(0,p,m),i.$$.dirty[0]&514&&l&&k&&c.setClientStyling(k,l),i.$$.dirty[0]&516&&d&&k&&c.setClientStylingURL(k,d),i.$$.dirty[0]&520&&u&&k&&c.setStreamStyling(k,`${u}.Style`,E),i.$$.dirty[0]&16&&h&&or()},[s,l,d,u,h,p,m,b,x,k,C,W,me,$,B,ne,Z,de,ze,ue,Le,ye,ee,U,Y,xt,r,O,M,We,A,o,a,n,w,Xs,Qs,Js,Zs,el,tl,rl,il,ol,al]}class Gs extends c.SvelteComponent{constructor(e){super(),c.init(this,e,X_,K_,c.safe_not_equal,{endpoint:31,session:32,playerid:33,lang:0,clientstyling:1,clientstylingurl:2,mbsource:3,translationurl:4,bonushistorystatus:5,bonushistorytype:6,currencylocale:7,currency:34,dateformat:8},H_,[-1,-1,-1])}get endpoint(){return this.$$.ctx[31]}set endpoint(e){this.$$set({endpoint:e}),c.flush()}get session(){return this.$$.ctx[32]}set session(e){this.$$set({session:e}),c.flush()}get playerid(){return this.$$.ctx[33]}set playerid(e){this.$$set({playerid:e}),c.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),c.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),c.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),c.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),c.flush()}get translationurl(){return this.$$.ctx[4]}set translationurl(e){this.$$set({translationurl:e}),c.flush()}get bonushistorystatus(){return this.$$.ctx[5]}set bonushistorystatus(e){this.$$set({bonushistorystatus:e}),c.flush()}get bonushistorytype(){return this.$$.ctx[6]}set bonushistorytype(e){this.$$set({bonushistorytype:e}),c.flush()}get currencylocale(){return this.$$.ctx[7]}set currencylocale(e){this.$$set({currencylocale:e}),c.flush()}get currency(){return this.$$.ctx[34]}set currency(e){this.$$set({currency:e}),c.flush()}get dateformat(){return this.$$.ctx[8]}set dateformat(e){this.$$set({dateformat:e}),c.flush()}}c.create_custom_element(Gs,{endpoint:{},session:{},playerid:{},lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},bonushistorystatus:{},bonushistorytype:{},currencylocale:{},currency:{},dateformat:{}},[],[],!0);const Q_=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"}));exports.PlayerBonusHistory_ce=Q_;exports.format=Te;exports.getYear=gd;exports.parse=pi;exports.subMonths=nn;
6663
+ `),n=c.svg_element("g"),s=c.svg_element("g"),l=c.svg_element("path"),d=c.space(),u=c.element("h2"),p=c.text(h),c.attr(l,"class","aaa"),c.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),c.attr(l,"transform","translate(15 15) rotate(180)"),c.attr(s,"transform","translate(20 158)"),c.attr(n,"transform","translate(-20 -158)"),c.attr(t,"xmlns","http://www.w3.org/2000/svg"),c.attr(t,"width","15"),c.attr(t,"height","15"),c.attr(t,"viewBox","0 0 15 15"),c.attr(u,"class","BonusesTitleMobile"),c.attr(e,"class","MenuReturnButton")},m(x,w){c.insert(x,e,w),c.append(e,t),c.append(t,r),c.append(r,o),c.append(o,a),c.append(t,n),c.append(n,s),c.append(s,l),c.append(e,d),c.append(e,u),c.append(u,p),m||(b=c.listen(e,"click",i[35]),m=!0)},p(x,w){w[0]&67108864&&h!==(h=x[26]("titleBonusesHistory")+"")&&c.set_data(p,h)},d(x){x&&c.detach(e),m=!1,b()}}}function U_(i){let e,t,r;function o(l,d){return l[22].length===0?Y_:q_}let a=o(i),n=a(i),s=i[22].length!==0&&$a(i);return{c(){e=c.element("div"),n.c(),t=c.space(),s&&s.c(),r=c.empty(),c.attr(e,"class","BonusesGrid "+(i[27]?"BonusesGridMobile":""))},m(l,d){c.insert(l,e,d),n.m(e,null),c.insert(l,t,d),s&&s.m(l,d),c.insert(l,r,d)},p(l,d){a===(a=o(l))&&n?n.p(l,d):(n.d(1),n=a(l),n&&(n.c(),n.m(e,null))),l[22].length!==0?s?s.p(l,d):(s=$a(l),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(l){l&&(c.detach(e),c.detach(t),c.detach(r)),n.d(),s&&s.d(l)}}}function W_(i){let e;return{c(){e=c.element("div"),c.attr(e,"class","ModalLoader")},m(t,r){c.insert(t,e,r)},p:c.noop,d(t){t&&c.detach(e)}}}function q_(i){let e,t=c.ensure_array_like(i[22]),r=[];for(let o=0;o<t.length;o+=1)r[o]=Ha(Ra(i,t,o));return{c(){for(let o=0;o<r.length;o+=1)r[o].c();e=c.empty()},m(o,a){for(let n=0;n<r.length;n+=1)r[n]&&r[n].m(o,a);c.insert(o,e,a)},p(o,a){if(a[0]&62914975){t=c.ensure_array_like(o[22]);let n;for(n=0;n<t.length;n+=1){const s=Ra(o,t,n);r[n]?r[n].p(s,a):(r[n]=Ha(s),r[n].c(),r[n].m(e.parentNode,e))}for(;n<r.length;n+=1)r[n].d(1);r.length=t.length}},d(o){o&&c.detach(e),c.destroy_each(r,o)}}}function Y_(i){let e,t=i[26]("noBonusHistory")+"",r;return{c(){e=c.element("p"),r=c.text(t)},m(o,a){c.insert(o,e,a),c.append(e,r)},p(o,a){a[0]&67108864&&t!==(t=o[26]("noBonusHistory")+"")&&c.set_data(r,t)},d(o){o&&c.detach(e)}}}function j_(i){let e,t,r,o,a,n,s,l,d,u;return{c(){e=c.element("player-bonus-card"),c.set_custom_element_data(e,"termsandconditionsdescription",i[25]),c.set_custom_element_data(e,"termsandconditionsurl",i[23]),c.set_custom_element_data(e,"termsandconditionsasset",i[24]),c.set_custom_element_data(e,"bonuswalletid",t=i[60].walletId),c.set_custom_element_data(e,"bonusdate",r=i[60].granted),c.set_custom_element_data(e,"bonusstatus",o=i[60].status),c.set_custom_element_data(e,"bonusname",a=i[60].name),c.set_custom_element_data(e,"bonustype",n=i[60].type),c.set_custom_element_data(e,"bonusamount",s=i[60].extension.grantedPlayerCurrencyAmount),c.set_custom_element_data(e,"bonuswageringamount",l=`${i[60].fulfilledWR} / ${i[60].originalWageringRequirement}`),c.set_custom_element_data(e,"bonusremainingamount",d=i[60].currentAmount),c.set_custom_element_data(e,"bonuscurrency",u=i[60].currency),c.set_custom_element_data(e,"lang",i[0]),c.set_custom_element_data(e,"clientstyling",i[1]),c.set_custom_element_data(e,"clientstylingurl",i[2]),c.set_custom_element_data(e,"mbsource",i[3]),c.set_custom_element_data(e,"translationurl",i[4]),c.set_custom_element_data(e,"currencylocale",i[7]),c.set_custom_element_data(e,"dateformat",i[8])},m(h,p){c.insert(h,e,p)},p(h,p){p[0]&33554432&&c.set_custom_element_data(e,"termsandconditionsdescription",h[25]),p[0]&8388608&&c.set_custom_element_data(e,"termsandconditionsurl",h[23]),p[0]&16777216&&c.set_custom_element_data(e,"termsandconditionsasset",h[24]),p[0]&4194304&&t!==(t=h[60].walletId)&&c.set_custom_element_data(e,"bonuswalletid",t),p[0]&4194304&&r!==(r=h[60].granted)&&c.set_custom_element_data(e,"bonusdate",r),p[0]&4194304&&o!==(o=h[60].status)&&c.set_custom_element_data(e,"bonusstatus",o),p[0]&4194304&&a!==(a=h[60].name)&&c.set_custom_element_data(e,"bonusname",a),p[0]&4194304&&n!==(n=h[60].type)&&c.set_custom_element_data(e,"bonustype",n),p[0]&4194304&&s!==(s=h[60].extension.grantedPlayerCurrencyAmount)&&c.set_custom_element_data(e,"bonusamount",s),p[0]&4194304&&l!==(l=`${h[60].fulfilledWR} / ${h[60].originalWageringRequirement}`)&&c.set_custom_element_data(e,"bonuswageringamount",l),p[0]&4194304&&d!==(d=h[60].currentAmount)&&c.set_custom_element_data(e,"bonusremainingamount",d),p[0]&4194304&&u!==(u=h[60].currency)&&c.set_custom_element_data(e,"bonuscurrency",u),p[0]&1&&c.set_custom_element_data(e,"lang",h[0]),p[0]&2&&c.set_custom_element_data(e,"clientstyling",h[1]),p[0]&4&&c.set_custom_element_data(e,"clientstylingurl",h[2]),p[0]&8&&c.set_custom_element_data(e,"mbsource",h[3]),p[0]&16&&c.set_custom_element_data(e,"translationurl",h[4]),p[0]&128&&c.set_custom_element_data(e,"currencylocale",h[7]),p[0]&256&&c.set_custom_element_data(e,"dateformat",h[8])},d(h){h&&c.detach(e)}}}function G_(i){let e,t,r,o,a,n,s;return{c(){e=c.element("player-bonus-card"),c.set_custom_element_data(e,"termsandconditionsdescription",i[25]),c.set_custom_element_data(e,"termsandconditionsurl",i[23]),c.set_custom_element_data(e,"termsandconditionsasset",i[24]),c.set_custom_element_data(e,"bonuswalletid",t=i[60].walletId),c.set_custom_element_data(e,"bonusdate",r=i[60].granted),c.set_custom_element_data(e,"bonusstatus",o=i[60].status),c.set_custom_element_data(e,"bonusname",a=i[60].name),c.set_custom_element_data(e,"bonustype",n=i[60].type),c.set_custom_element_data(e,"bonuscurrency",s=i[60].currency),c.set_custom_element_data(e,"lang",i[0]),c.set_custom_element_data(e,"clientstyling",i[1]),c.set_custom_element_data(e,"clientstylingurl",i[2]),c.set_custom_element_data(e,"mbsource",i[3]),c.set_custom_element_data(e,"translationurl",i[4]),c.set_custom_element_data(e,"currencylocale",i[7]),c.set_custom_element_data(e,"dateformat",i[8])},m(l,d){c.insert(l,e,d)},p(l,d){d[0]&33554432&&c.set_custom_element_data(e,"termsandconditionsdescription",l[25]),d[0]&8388608&&c.set_custom_element_data(e,"termsandconditionsurl",l[23]),d[0]&16777216&&c.set_custom_element_data(e,"termsandconditionsasset",l[24]),d[0]&4194304&&t!==(t=l[60].walletId)&&c.set_custom_element_data(e,"bonuswalletid",t),d[0]&4194304&&r!==(r=l[60].granted)&&c.set_custom_element_data(e,"bonusdate",r),d[0]&4194304&&o!==(o=l[60].status)&&c.set_custom_element_data(e,"bonusstatus",o),d[0]&4194304&&a!==(a=l[60].name)&&c.set_custom_element_data(e,"bonusname",a),d[0]&4194304&&n!==(n=l[60].type)&&c.set_custom_element_data(e,"bonustype",n),d[0]&4194304&&s!==(s=l[60].currency)&&c.set_custom_element_data(e,"bonuscurrency",s),d[0]&1&&c.set_custom_element_data(e,"lang",l[0]),d[0]&2&&c.set_custom_element_data(e,"clientstyling",l[1]),d[0]&4&&c.set_custom_element_data(e,"clientstylingurl",l[2]),d[0]&8&&c.set_custom_element_data(e,"mbsource",l[3]),d[0]&16&&c.set_custom_element_data(e,"translationurl",l[4]),d[0]&128&&c.set_custom_element_data(e,"currencylocale",l[7]),d[0]&256&&c.set_custom_element_data(e,"dateformat",l[8])},d(l){l&&c.detach(e)}}}function Ha(i){let e;function t(a,n){return a[60].type==="freeRound"?G_:j_}let r=t(i),o=r(i);return{c(){o.c(),e=c.empty()},m(a,n){o.m(a,n),c.insert(a,e,n)},p(a,n){r===(r=t(a))&&o?o.p(a,n):(o.d(1),o=r(a),o&&(o.c(),o.m(e.parentNode,e)))},d(a){a&&c.detach(e),o.d(a)}}}function $a(i){let e,t,r,o,a,n,s,l,d,u,h,p,m,b,x,w,C,k,F,R,G,N,Q,K=c.ensure_array_like(Array(i[20])),H=[];for(let E=0;E<K.length;E+=1)H[E]=Ua(Va(i,K,E));return{c(){e=c.element("div"),t=c.element("button"),r=c.text("|<"),n=c.space(),s=c.element("button"),l=c.text("<"),h=c.space();for(let E=0;E<H.length;E+=1)H[E].c();p=c.space(),m=c.element("button"),b=c.text(">"),C=c.space(),k=c.element("button"),F=c.text(">|"),t.disabled=o=i[21]===0,c.attr(t,"class",a="BonusesFirst "+(i[21]===0?"Inactive":"")),s.disabled=d=i[21]===0,c.attr(s,"class",u="BonusesPrev "+(i[21]===0?"Inactive":"")),m.disabled=x=i[21]===i[20]-1,c.attr(m,"class",w="BonusesNext "+(i[21]===i[20]-1?"Inactive":"")),k.disabled=R=i[21]===i[20]-1,c.attr(k,"class",G="BonusesLast "+(i[21]===i[20]-1?"Inactive":"")),c.attr(e,"class","BonusesPaginationWrapper "+(i[27]?"BonusesPaginationWrapperMobile":""))},m(E,P){c.insert(E,e,P),c.append(e,t),c.append(t,r),c.append(e,n),c.append(e,s),c.append(s,l),c.append(e,h);for(let T=0;T<H.length;T+=1)H[T]&&H[T].m(e,null);c.append(e,p),c.append(e,m),c.append(m,b),c.append(e,C),c.append(e,k),c.append(k,F),N||(Q=[c.listen(t,"click",i[39]),c.listen(s,"click",i[40]),c.listen(m,"click",i[42]),c.listen(k,"click",i[43])],N=!0)},p(E,P){if(P[0]&2097152&&o!==(o=E[21]===0)&&(t.disabled=o),P[0]&2097152&&a!==(a="BonusesFirst "+(E[21]===0?"Inactive":""))&&c.attr(t,"class",a),P[0]&2097152&&d!==(d=E[21]===0)&&(s.disabled=d),P[0]&2097152&&u!==(u="BonusesPrev "+(E[21]===0?"Inactive":""))&&c.attr(s,"class",u),P[0]&1076887648){K=c.ensure_array_like(Array(E[20]));let T;for(T=0;T<K.length;T+=1){const ae=Va(E,K,T);H[T]?H[T].p(ae,P):(H[T]=Ua(ae),H[T].c(),H[T].m(e,p))}for(;T<H.length;T+=1)H[T].d(1);H.length=K.length}P[0]&3145728&&x!==(x=E[21]===E[20]-1)&&(m.disabled=x),P[0]&3145728&&w!==(w="BonusesNext "+(E[21]===E[20]-1?"Inactive":""))&&c.attr(m,"class",w),P[0]&3145728&&R!==(R=E[21]===E[20]-1)&&(k.disabled=R),P[0]&3145728&&G!==(G="BonusesLast "+(E[21]===E[20]-1?"Inactive":""))&&c.attr(k,"class",G)},d(E){E&&c.detach(e),c.destroy_each(H,E),N=!1,c.run_all(Q)}}}function Ua(i){let e,t=i[59]+1+"",r,o,a,n,s;function l(){return i[41](i[59])}return{c(){e=c.element("button"),r=c.text(t),e.disabled=o=i[59]===i[21],c.attr(e,"class",a="BonusesPage "+(i[59]===i[21]?"BonusPageActive":""))},m(d,u){c.insert(d,e,u),c.append(e,r),n||(s=c.listen(e,"click",l),n=!0)},p(d,u){i=d,u[0]&2097152&&o!==(o=i[59]===i[21])&&(e.disabled=o),u[0]&2097152&&a!==(a="BonusesPage "+(i[59]===i[21]?"BonusPageActive":""))&&c.attr(e,"class",a)},d(d){d&&c.detach(e),n=!1,s()}}}function K_(i){let e,t,r,o,a=i[26]("titleBonusesHistory")+"",n,s,l,d,u,h,p=i[26]("dateFrom")+"",m,b,x,w,C,k,F=i[26]("dateTo")+"",R,G,N,Q,K,H=i[26]("dateFilter")+"",E,P,T,ae,ze,he=i[27]&&$_(i);function Be(W,Y){return W[14]?W_:U_}let ye=Be(i),re=ye(i);return{c(){e=c.element("div"),t=c.element("div"),he&&he.c(),r=c.space(),o=c.element("h2"),n=c.text(a),s=c.space(),l=c.element("div"),d=c.element("div"),u=c.element("div"),h=c.element("label"),m=c.text(p),b=c.space(),x=c.element("vaadin-date-picker"),w=c.space(),C=c.element("div"),k=c.element("label"),R=c.text(F),G=c.space(),N=c.element("vaadin-date-picker"),Q=c.space(),K=c.element("button"),E=c.text(H),T=c.space(),re.c(),c.attr(o,"class","BonusesTitle "+(i[27]?"BonusesTitleNone":"")),c.attr(o,"part","BonusesTitle "+(i[27]?"BonusesTitleNone":"")),c.attr(h,"for","BonusCalendarStartDate"),c.set_custom_element_data(x,"max",i[28]),c.set_custom_element_data(x,"value",i[12]),c.set_custom_element_data(x,"placeholder",i[12]),c.set_custom_element_data(x,"class","VaadinDatePicker"),c.attr(u,"class","BonusesCalendarStartDate "+(i[27]?"BonusesCalendarMobile":"")),c.attr(k,"for","BonusesCalendarEndDate"),c.set_custom_element_data(N,"max",i[28]),c.set_custom_element_data(N,"min",i[15]),c.set_custom_element_data(N,"value",i[13]),c.set_custom_element_data(N,"placeholder",i[13]),c.set_custom_element_data(N,"class","VaadinDatePicker"),c.attr(C,"class","BonusesCalendarEndDate "+(i[27]?"BonusesCalendarMobile":"")),c.attr(d,"class","BonusesCalendarContainer "+(i[27]?"BonusesCalendarContainerMobile":"")),c.attr(K,"class","BonusesCalendarFilter "+(i[27]?"BonusesCalendarFilterMobile":"")),K.disabled=P=!i[16]||i[14],c.attr(l,"class","BonusCalendarWrapper "+(i[27]?"BonusCalendarWrapperMobile":"")),c.attr(t,"class","BonusesWrapper "+(i[27]?"BonusesWrapperMobile":""))},m(W,Y){c.insert(W,e,Y),c.append(e,t),he&&he.m(t,null),c.append(t,r),c.append(t,o),c.append(o,n),c.append(t,s),c.append(t,l),c.append(l,d),c.append(d,u),c.append(u,h),c.append(h,m),c.append(u,b),c.append(u,x),i[36](x),c.append(d,w),c.append(d,C),c.append(C,k),c.append(k,R),c.append(C,G),c.append(C,N),i[37](N),c.append(l,Q),c.append(l,K),c.append(K,E),c.append(t,T),re.m(t,null),i[44](e),ae||(ze=c.listen(K,"click",i[38]),ae=!0)},p(W,Y){W[27]&&he.p(W,Y),Y[0]&67108864&&a!==(a=W[26]("titleBonusesHistory")+"")&&c.set_data(n,a),Y[0]&67108864&&p!==(p=W[26]("dateFrom")+"")&&c.set_data(m,p),Y[0]&4096&&c.set_custom_element_data(x,"value",W[12]),Y[0]&4096&&c.set_custom_element_data(x,"placeholder",W[12]),Y[0]&67108864&&F!==(F=W[26]("dateTo")+"")&&c.set_data(R,F),Y[0]&32768&&c.set_custom_element_data(N,"min",W[15]),Y[0]&8192&&c.set_custom_element_data(N,"value",W[13]),Y[0]&8192&&c.set_custom_element_data(N,"placeholder",W[13]),Y[0]&67108864&&H!==(H=W[26]("dateFilter")+"")&&c.set_data(E,H),Y[0]&81920&&P!==(P=!W[16]||W[14])&&(K.disabled=P),ye===(ye=Be(W))&&re?re.p(W,Y):(re.d(1),re=ye(W),re&&(re.c(),re.m(t,null)))},i:c.noop,o:c.noop,d(W){W&&c.detach(e),he&&he.d(),i[36](null),i[37](null),re.d(),i[44](null),ae=!1,ze()}}}let Ae=6;function X_(i,e,t){let r;c.component_subscribe(i,c.$format,g=>t(26,r=g));let{endpoint:o=""}=e,{session:a=""}=e,{playerid:n=""}=e,{lang:s="en"}=e,{clientstyling:l=""}=e,{clientstylingurl:d=""}=e,{mbsource:u}=e,{translationurl:h=""}=e,{bonushistorystatus:p=""}=e,{bonushistorytype:m=""}=e,{currencylocale:b=""}=e,{currency:x=""}=e,{dateformat:w="dd-MM-yyyy"}=e,C,k,F=!1,R=window.navigator.userAgent,G=c.getDevice(R)!=="PC",N,Q;const K=Te(new Date,"yyyy-MM-dd");let H="",E=Te(nn(new Date,3),`${w||"yyyy-MM-dd"}`),P=Te(new Date,`${w||"yyyy-MM-dd"}`),T=!0,ae=0,ze=0,he=0,Be=0,ye=0,re=[],W="",Y="",xt="";const or=()=>{fetch(h).then(ie=>ie.json()).then(ie=>{Object.keys(ie).forEach(xe=>{Fo(xe,ie[xe])})}).catch(ie=>{console.log(ie)})};Object.keys(Vo).forEach(g=>{Fo(g,Vo[g])});const We=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:G},window.location.href)},J=(g,ie)=>{const xe=pi(g,`${w||"yyyy-MM-dd"}`,new Date),Ye=ie?xl(xe):fl(xe);return Te(Ye,"yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")},I=(g,ie,xe)=>{t(14,F=!0);let Ye=new URL(`${o}/v1/player/${n}/bonusWallet`),nr=J(E,!1),nl=J(P,!0),je="",Ao="",To="";ie&&(Ao=ie.split(",").map(Le=>`status=${Le}`).join(","),je=je+Ao+","),xe&&(To=xe.split(",").map(Le=>`type=${Le}`).join(","),je=je+To+","),je=je+`granted=[${nr}~${nl}]`,Ye.searchParams.append("filter",je),Ye.searchParams.append("pagination",`offset=${g},limit=${Ae}`);let sl={method:"GET",headers:{"X-SessionId":a}};fetch(Ye.href,sl).then(_e=>_e.json()).then(_e=>{Array.isArray(_e.items)&&_e.items.forEach(pe=>{var Io,Do;const Le=(Do=(Io=pe==null?void 0:pe.extension)==null?void 0:Io.bonus)==null?void 0:Do.presentation;Le&&(t(23,W||(W=Le.url)),t(25,xt||(xt=Le.description)),t(24,Y||(Y=Le.assets)))}),t(20,Be=Math.ceil(_e.total/Ae)),g-Ae>=0&&t(17,ae=g-Ae),g+Ae<_e.total&&t(18,ze=g+Ae),t(19,he=(Be-1)*Ae),t(21,ye=g/Ae),t(22,re=(_e==null?void 0:_e.items)||[]),b&&re.forEach(pe=>{pe.fulfilledWR=se(pe.fulfilledWR),pe.originalWageringRequirement=se(pe.originalWageringRequirement),pe.currentAmount=se(pe.currentAmount),pe.extension.grantedPlayerCurrencyAmount=se(pe.extension.grantedPlayerCurrencyAmount)})},_e=>{console.error(_e)}).finally(()=>{t(14,F=!1)}),window.postMessage({type:"ScrollToTop"},window.location.href)},se=g=>new Intl.NumberFormat(b,{style:"currency",currency:x}).format(g).replace(/\s/g,""),qe=g=>{t(12,E=Te(new Date(g.target.value),`${w||"yyyy-MM-dd"}`)),t(15,H=Te(new Date(g.target.value),"yyyy-MM-dd"))},Ct=g=>{t(13,P=Te(new Date(g.target.value),`${w||"yyyy-MM-dd"}`))},ar=()=>{const g=new Date(E),ie=new Date(P);g.getTime()>ie.getTime()?t(16,T=!1):t(16,T=!0)},kt=()=>{N.addEventListener("change",qe,!1),Q.addEventListener("change",Ct,!1)},Et=g=>{const{year:ie,month:xe,day:Ye}=g,nr=new Date(ie,xe,Ye);return Te(nr,w||"yyyy-MM-dd")},Po=g=>{const ie=pi(g,w||"yyyy-MM-dd",new Date);return{year:ie.getFullYear(),month:ie.getMonth(),day:ie.getDate()}};c.onMount(()=>(t(10,N.i18n=Gr(jr({},N.i18n),{formatDate:Et,parseDate:Po}),N),t(11,Q.i18n=Gr(jr({},Q.i18n),{formatDate:Et,parseDate:Po}),Q),()=>{N.removeEventListener("change",qe),Q.removeEventListener("change",Ct)}));const Ks=()=>{fc(s)},Xs=()=>We();function Qs(g){c.binding_callbacks[g?"unshift":"push"](()=>{N=g,t(10,N)})}function Js(g){c.binding_callbacks[g?"unshift":"push"](()=>{Q=g,t(11,Q)})}const Zs=()=>I(0,p,m),el=()=>I(0,p,m),tl=()=>I(ae,p,m),rl=g=>I(g*Ae,p,m),il=()=>I(ze,p,m),ol=()=>I(he,p,m);function al(g){c.binding_callbacks[g?"unshift":"push"](()=>{C=g,t(9,C)})}return i.$$set=g=>{"endpoint"in g&&t(31,o=g.endpoint),"session"in g&&t(32,a=g.session),"playerid"in g&&t(33,n=g.playerid),"lang"in g&&t(0,s=g.lang),"clientstyling"in g&&t(1,l=g.clientstyling),"clientstylingurl"in g&&t(2,d=g.clientstylingurl),"mbsource"in g&&t(3,u=g.mbsource),"translationurl"in g&&t(4,h=g.translationurl),"bonushistorystatus"in g&&t(5,p=g.bonushistorystatus),"bonushistorytype"in g&&t(6,m=g.bonushistorytype),"currencylocale"in g&&t(7,b=g.currencylocale),"currency"in g&&t(34,x=g.currency),"dateformat"in g&&t(8,w=g.dateformat)},i.$$.update=()=>{i.$$.dirty[0]&1&&s&&Ks(),i.$$.dirty[0]&3072&&N&&Q&&kt(),i.$$.dirty[0]&12288&&E&&P&&ar(),i.$$.dirty[0]&96|i.$$.dirty[1]&7&&a&&n&&o&&I(0,p,m),i.$$.dirty[0]&514&&l&&C&&c.setClientStyling(C,l),i.$$.dirty[0]&516&&d&&C&&c.setClientStylingURL(C,d),i.$$.dirty[0]&520&&u&&C&&c.setStreamStyling(C,`${u}.Style`,k),i.$$.dirty[0]&16&&h&&or()},[s,l,d,u,h,p,m,b,w,C,N,Q,E,P,F,H,T,ae,ze,he,Be,ye,re,W,Y,xt,r,G,K,We,I,o,a,n,x,Xs,Qs,Js,Zs,el,tl,rl,il,ol,al]}class Gs extends c.SvelteComponent{constructor(e){super(),c.init(this,e,X_,K_,c.safe_not_equal,{endpoint:31,session:32,playerid:33,lang:0,clientstyling:1,clientstylingurl:2,mbsource:3,translationurl:4,bonushistorystatus:5,bonushistorytype:6,currencylocale:7,currency:34,dateformat:8},H_,[-1,-1,-1])}get endpoint(){return this.$$.ctx[31]}set endpoint(e){this.$$set({endpoint:e}),c.flush()}get session(){return this.$$.ctx[32]}set session(e){this.$$set({session:e}),c.flush()}get playerid(){return this.$$.ctx[33]}set playerid(e){this.$$set({playerid:e}),c.flush()}get lang(){return this.$$.ctx[0]}set lang(e){this.$$set({lang:e}),c.flush()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(e){this.$$set({clientstyling:e}),c.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),c.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(e){this.$$set({mbsource:e}),c.flush()}get translationurl(){return this.$$.ctx[4]}set translationurl(e){this.$$set({translationurl:e}),c.flush()}get bonushistorystatus(){return this.$$.ctx[5]}set bonushistorystatus(e){this.$$set({bonushistorystatus:e}),c.flush()}get bonushistorytype(){return this.$$.ctx[6]}set bonushistorytype(e){this.$$set({bonushistorytype:e}),c.flush()}get currencylocale(){return this.$$.ctx[7]}set currencylocale(e){this.$$set({currencylocale:e}),c.flush()}get currency(){return this.$$.ctx[34]}set currency(e){this.$$set({currency:e}),c.flush()}get dateformat(){return this.$$.ctx[8]}set dateformat(e){this.$$set({dateformat:e}),c.flush()}}c.create_custom_element(Gs,{endpoint:{},session:{},playerid:{},lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},bonushistorystatus:{},bonushistorytype:{},currencylocale:{},currency:{},dateformat:{}},[],[],!0);const Q_=Object.freeze(Object.defineProperty({__proto__:null,default:Gs},Symbol.toStringTag,{value:"Module"}));exports.PlayerBonusHistory_ce=Q_;exports.format=Te;exports.getYear=gd;exports.parse=pi;exports.subMonths=nn;