@everymatrix/player-account-controller-nd 1.87.26 → 1.87.27

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 (307) hide show
  1. package/components/GeneralLogout-Bwv0R9Hx.cjs +1 -0
  2. package/components/GeneralLogout-CdYyFZiD.js +300 -0
  3. package/components/GeneralLogout-DjPWd715.js +300 -0
  4. package/components/PlayerAccountBettingHistory-BPts9L4K.js +311 -0
  5. package/components/PlayerAccountBettingHistory-CCEasrSq.cjs +1 -0
  6. package/components/PlayerAccountBettingHistory-Ds82YpR5.js +310 -0
  7. package/components/{PlayerAccountBiometrics-OoKttQC1.js → PlayerAccountBiometrics-CHQqEwdZ.js} +97 -97
  8. package/components/PlayerAccountBiometrics-DEwVaGaY.cjs +1 -0
  9. package/components/{PlayerAccountBiometrics-BZpak-jo.js → PlayerAccountBiometrics-SOxELijD.js} +97 -97
  10. package/components/{PlayerAccountBiometricsAction-RjMo224K.js → PlayerAccountBiometricsAction-BO4ObpAd.js} +51 -51
  11. package/components/{PlayerAccountBiometricsAction-B2am4bpR.js → PlayerAccountBiometricsAction-CJDxb-eB.js} +53 -53
  12. package/components/PlayerAccountBiometricsAction-JDEeJtaN.cjs +1 -0
  13. package/components/{PlayerAccountClosureNd-CfMix_Ps.js → PlayerAccountClosureNd-CZFgXgtB.js} +91 -91
  14. package/components/PlayerAccountClosureNd-DhddTn-2.cjs +1 -0
  15. package/components/{PlayerAccountClosureNd-esNM0ZPD.js → PlayerAccountClosureNd-Dx8vSSXH.js} +95 -95
  16. package/components/PlayerAccountControllerNd-BBPLpWUA.js +12739 -0
  17. package/components/PlayerAccountControllerNd-CzqEuSO8.cjs +21 -0
  18. package/components/PlayerAccountControllerNd-DqI8LBP9.js +12696 -0
  19. package/components/{PlayerAccountGamingLimits-C_xzRgfV.js → PlayerAccountGamingLimits-8UkYjdM7.js} +99 -99
  20. package/components/PlayerAccountGamingLimits-Df14C2-n.cjs +1 -0
  21. package/components/{PlayerAccountGamingLimits-Ctn3FjqL.js → PlayerAccountGamingLimits-DrBGlo8g.js} +94 -94
  22. package/components/PlayerAccountGamingLimitsConfirmationModal-BLQCZBNJ.cjs +1 -0
  23. package/components/{PlayerAccountGamingLimitsConfirmationModal-DQY-UCwZ.js → PlayerAccountGamingLimitsConfirmationModal-BfTeuLWJ.js} +71 -71
  24. package/components/{PlayerAccountGamingLimitsConfirmationModal-CnAfgPkJ.js → PlayerAccountGamingLimitsConfirmationModal-BjQtd3FS.js} +86 -86
  25. package/components/PlayerAccountGamingLimitsGroupEdit-B0MvkuKa.cjs +1 -0
  26. package/components/PlayerAccountGamingLimitsGroupEdit-BQ9Tyf_4.js +1535 -0
  27. package/components/PlayerAccountGamingLimitsGroupEdit-CQJhFijw.js +1535 -0
  28. package/components/{PlayerAccountGamingLimitsHistory2Nd-CIkQtVKl.js → PlayerAccountGamingLimitsHistory2Nd-BfbuLtzh.js} +118 -118
  29. package/components/PlayerAccountGamingLimitsHistory2Nd-Cd7jX7px.cjs +1 -0
  30. package/components/{PlayerAccountGamingLimitsHistory2Nd-BGTw8CKy.js → PlayerAccountGamingLimitsHistory2Nd-Du6qvnt4.js} +140 -140
  31. package/components/{PlayerAccountGamingLimitsInfoCard-p2DzRnru.js → PlayerAccountGamingLimitsInfoCard-BDTlesGq.js} +233 -233
  32. package/components/{PlayerAccountGamingLimitsInfoCard-BhYr-aTy.js → PlayerAccountGamingLimitsInfoCard-Bs3LadQH.js} +235 -235
  33. package/components/PlayerAccountGamingLimitsInfoCard-CzleCVwr.cjs +1 -0
  34. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-BYWVDRrQ.js → PlayerAccountGamingLimitsPage2Gm16Nd-C5SW9HEQ.js} +957 -957
  35. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-CG87OHI3.js → PlayerAccountGamingLimitsPage2Gm16Nd-C9KMi9d6.js} +915 -915
  36. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-D0uTHKGt.cjs → PlayerAccountGamingLimitsPage2Gm16Nd-DSsVJPRB.cjs} +6 -6
  37. package/components/{PlayerAccountGamingLimitsPopup-B_bJGEYV.js → PlayerAccountGamingLimitsPopup-B9C8GRHd.js} +30 -30
  38. package/components/PlayerAccountGamingLimitsPopup-CfUFVRPL.cjs +1 -0
  39. package/components/{PlayerAccountGamingLimitsPopup-BBxhJP2t.js → PlayerAccountGamingLimitsPopup-DOlH1lX9.js} +38 -38
  40. package/components/PlayerAccountGamingLimitsWrapper2Nd-BjYWqiIp.cjs +4 -0
  41. package/components/{PlayerAccountGamingLimitsWrapper2Nd-C_6lkNVg.js → PlayerAccountGamingLimitsWrapper2Nd-CwY4mLbD.js} +82 -82
  42. package/components/{PlayerAccountGamingLimitsWrapper2Nd-B6nvQYBf.js → PlayerAccountGamingLimitsWrapper2Nd-EWFmIHbi.js} +82 -82
  43. package/components/{PlayerAccountGeneralConfirmationModal-DhdwRQsk.js → PlayerAccountGeneralConfirmationModal-BodkUqYV.js} +104 -104
  44. package/components/{PlayerAccountGeneralConfirmationModal-D5Beiwfg.js → PlayerAccountGeneralConfirmationModal-BweeYla_.js} +106 -106
  45. package/components/PlayerAccountGeneralConfirmationModal-CpeEHdvU.cjs +1 -0
  46. package/components/PlayerAccountMenuNd-BYu9Kn6q.cjs +1 -0
  47. package/components/{PlayerAccountMenuNd-DGdGzok9.js → PlayerAccountMenuNd-C-2jXq2-.js} +103 -103
  48. package/components/{PlayerAccountMenuNd-Bn6SqVNi.js → PlayerAccountMenuNd-dzMyecgB.js} +103 -103
  49. package/components/{PlayerAccountModal-DadxWqve.js → PlayerAccountModal-DOqkzs-o.js} +58 -58
  50. package/components/{PlayerAccountModal-bePysWNS.js → PlayerAccountModal-DPss2_FK.js} +58 -58
  51. package/components/PlayerAccountModal-DSpV-1by.cjs +1 -0
  52. package/components/PlayerAccountNotifications-BE528Lo_.cjs +1 -0
  53. package/components/{PlayerAccountNotifications-Dn5h2dH-.js → PlayerAccountNotifications-Csnt6org.js} +86 -86
  54. package/components/{PlayerAccountNotifications-Bc4mmMSG.js → PlayerAccountNotifications-Du8W3dvE.js} +126 -126
  55. package/components/PlayerAccountProductRestriction-BsFbbgLx.js +1495 -0
  56. package/components/PlayerAccountProductRestriction-D9PyM6eR.js +1460 -0
  57. package/components/PlayerAccountProductRestriction-Egw5dW9r.cjs +4 -0
  58. package/components/{PlayerAccountReviewFrequency-DTDB54eA.js → PlayerAccountReviewFrequency-5-rOUZ9b.js} +235 -235
  59. package/components/{PlayerAccountReviewFrequency-BMKHgE_L.js → PlayerAccountReviewFrequency-B6eYUTpJ.js} +245 -245
  60. package/components/PlayerAccountReviewFrequency-Z17vOXSI.cjs +4 -0
  61. package/components/PlayerAccountSelfExclusionNd-Bh-9WR1s.cjs +1 -0
  62. package/components/PlayerAccountSelfExclusionNd-WXojIXtf.js +1563 -0
  63. package/components/PlayerAccountSelfExclusionNd-hR8hyqzc.js +1535 -0
  64. package/components/{PlayerAccountSelfExclusionNd-CdpEeI3v.js → PlayerAccountTimeout-BCswyUJg.js} +2275 -2539
  65. package/components/{PlayerAccountSelfExclusionNd-GEKez9Cr.js → PlayerAccountTimeout-Bfm3bGxi.js} +2309 -2573
  66. package/components/{PlayerAccountSelfExclusionNd-DhQyYPye.cjs → PlayerAccountTimeout-BtEdNBUU.cjs} +160 -160
  67. package/components/PlayerAccountTransactionsHistory-B_r1L7fP.cjs +4 -0
  68. package/components/{PlayerAccountTransactionsHistory-CB8tUin2.js → PlayerAccountTransactionsHistory-CVvkXPf-.js} +304 -303
  69. package/components/{PlayerAccountTransactionsHistory-CuRfSIFD.js → PlayerAccountTransactionsHistory-Cxn_VA2N.js} +293 -292
  70. package/components/{PlayerActiveBonuses-B1QGTuE7.js → PlayerActiveBonuses-Cg_ku_vr.js} +190 -191
  71. package/components/{PlayerActiveBonuses-C-leW89T.js → PlayerActiveBonuses-DQFk60mp.js} +221 -220
  72. package/components/PlayerActiveBonuses-YFmoEwBA.cjs +4 -0
  73. package/components/PlayerBonusCard-CLcpryhY.cjs +1 -0
  74. package/components/{PlayerBonusCard--3a42B1v.js → PlayerBonusCard-CjrA2cGw.js} +53 -53
  75. package/components/{PlayerBonusCard-BM1djyEE.js → PlayerBonusCard-Ds3aQ6st.js} +53 -53
  76. package/components/PlayerBonusHistory-CUvHouHW.js +20048 -0
  77. package/components/PlayerBonusHistory-CVACWXfq.js +20037 -0
  78. package/components/{PlayerAccountProductRestriction-iB1RGRkJ.cjs → PlayerBonusHistory-CdiBMCsK.cjs} +295 -294
  79. package/components/{PlayerChangePasswordNd-DAX2Dod3.js → PlayerChangePasswordNd-BbebFwOs.js} +221 -221
  80. package/components/PlayerChangePasswordNd-DO3LJGHP.cjs +1 -0
  81. package/components/{PlayerChangePasswordNd-DvS35-LH.js → PlayerChangePasswordNd-bZvkj2yw.js} +227 -227
  82. package/components/{PlayerDeposit-CDa7RanD.js → PlayerDeposit-Cj9vmYOx.js} +51 -51
  83. package/components/PlayerDeposit-D0t_PuIq.cjs +1 -0
  84. package/components/{PlayerDeposit-CWZCNKC7.js → PlayerDeposit-Ld5JrWjO.js} +45 -45
  85. package/components/{PlayerGamingHistory-jJLaowmj.js → PlayerGamingHistory-Bv08VRsv.js} +372 -373
  86. package/components/{PlayerGamingHistory-BGVnZdLa.js → PlayerGamingHistory-DmchM4re.js} +402 -403
  87. package/components/PlayerGamingHistory-hVeUSK-2.cjs +1 -0
  88. package/components/PlayerPendingWithdrawals-Bl7pUeY4.cjs +1 -0
  89. package/components/{PlayerPendingWithdrawals-DfVCFhR5.js → PlayerPendingWithdrawals-CykJNGBF.js} +54 -54
  90. package/components/{PlayerPendingWithdrawals-CeQ170yk.js → PlayerPendingWithdrawals-Dt7oXMqQ.js} +49 -49
  91. package/components/PlayerProfileInfo-DFYAUCkn.cjs +4 -0
  92. package/components/{PlayerProfileInfo-DbkBbrWm.js → PlayerProfileInfo-DsNmtxaj.js} +726 -726
  93. package/components/{PlayerProfileInfo-DqDnHpr2.js → PlayerProfileInfo-MA8pLRgf.js} +733 -733
  94. package/components/{PlayerRealityCheck-W7WvnWiQ.js → PlayerRealityCheck-BI5ggva_.js} +209 -209
  95. package/components/PlayerRealityCheck-BT_ztnOc.cjs +1 -0
  96. package/components/{PlayerRealityCheck-DzSls4ms.js → PlayerRealityCheck-nR4UHOwC.js} +217 -217
  97. package/components/PlayerTransactionHistory-CnsY_nI5.cjs +1 -0
  98. package/components/{PlayerTransactionHistory-DTxBYW9d.js → PlayerTransactionHistory-NqF2BBiI.js} +60 -60
  99. package/components/{PlayerTransactionHistory-CHW2VFzU.js → PlayerTransactionHistory-SkzWV1dM.js} +68 -68
  100. package/components/PlayerWithdrawal-6q2Hoff_.cjs +1 -0
  101. package/components/{PlayerWithdrawal-DZewaRZG.js → PlayerWithdrawal-C05RHLaR.js} +61 -61
  102. package/components/{PlayerWithdrawal-PqV8UamD.js → PlayerWithdrawal-gqT_tCMj.js} +65 -65
  103. package/es2015/player-account-controller-nd.cjs +1 -1
  104. package/es2015/player-account-controller-nd.js +7 -7
  105. package/esnext/player-account-controller-nd.js +1 -1
  106. package/lazy/general-logout-AjWGsSPF.js +16 -0
  107. package/lazy/general-logout-BHWXbE0Y.js +16 -0
  108. package/lazy/general-logout-FBMQ7yf7.cjs +1 -0
  109. package/lazy/{pam-change-password-AlOm5cr5.cjs → pam-change-password-BDUTekns.cjs} +1 -1
  110. package/lazy/{pam-change-password-C0GDc1-6.js → pam-change-password-DkQC7NqW.js} +1 -1
  111. package/lazy/{pam-change-password-CjEH2xAC.js → pam-change-password-j2fZyk86.js} +1 -1
  112. package/lazy/{player-account-betting-history-DlKYro-8.cjs → player-account-betting-history-Bf4AVIuh.cjs} +1 -1
  113. package/lazy/{player-account-betting-history-TNVapYuj.js → player-account-betting-history-LL3MczXQ.js} +1 -1
  114. package/lazy/{player-account-betting-history-BN-ku90H.js → player-account-betting-history-Mtpt-58U.js} +1 -1
  115. package/lazy/{player-account-biometrics-CS9kBgaZ.cjs → player-account-biometrics-BFfAA3Qd.cjs} +1 -1
  116. package/lazy/{player-account-biometrics-1EKn_0rG.js → player-account-biometrics-BVEOZZjp.js} +1 -1
  117. package/lazy/{player-account-biometrics-DHxxaEW9.js → player-account-biometrics-a4f_rkEM.js} +1 -1
  118. package/lazy/{player-account-biometrics-action-CSOdXe8T.js → player-account-biometrics-action-D1Bv6myE.js} +1 -1
  119. package/lazy/{player-account-biometrics-action-C6DWrJ4F.cjs → player-account-biometrics-action-D5keszYC.cjs} +1 -1
  120. package/lazy/{player-account-biometrics-action-Bz04rXro.js → player-account-biometrics-action-DppYbjgz.js} +1 -1
  121. package/lazy/{player-account-closure-nd-BkX2jAMD.js → player-account-closure-nd-5VNLzj-r.js} +1 -1
  122. package/lazy/{player-account-closure-nd-BVUdxwEr.js → player-account-closure-nd-CgjY7vdg.js} +1 -1
  123. package/lazy/{player-account-closure-nd-Kp5scGGo.cjs → player-account-closure-nd-D0Qg5U4o.cjs} +1 -1
  124. package/lazy/{player-account-gaming-limits-DEnvIgaH.js → player-account-gaming-limits-68E-eLG-.js} +1 -1
  125. package/lazy/{player-account-gaming-limits-DtFbmD_W.cjs → player-account-gaming-limits-B25uQpoU.cjs} +1 -1
  126. package/lazy/{player-account-gaming-limits-CCNLQneo.js → player-account-gaming-limits-DBy6G0gk.js} +1 -1
  127. package/lazy/{player-account-gaming-limits-confirmation-modal-DcLv0BPe.js → player-account-gaming-limits-confirmation-modal-B9oDWf3p.js} +1 -1
  128. package/lazy/{player-account-gaming-limits-confirmation-modal-B025c3El.js → player-account-gaming-limits-confirmation-modal-DYKeZdrP.js} +1 -1
  129. package/lazy/{player-account-gaming-limits-confirmation-modal-BdbfEsBn.cjs → player-account-gaming-limits-confirmation-modal-hQdhwryx.cjs} +1 -1
  130. package/lazy/player-account-gaming-limits-group-edit-B9lQx0EY.js +19 -0
  131. package/lazy/player-account-gaming-limits-group-edit-C5jhYpo9.cjs +1 -0
  132. package/lazy/player-account-gaming-limits-group-edit-DfENLg6R.js +19 -0
  133. package/lazy/{player-account-gaming-limits-history-2-nd-DDcq9wPF.js → player-account-gaming-limits-history-2-nd-CY-i_lx8.js} +1 -1
  134. package/lazy/{player-account-gaming-limits-history-2-nd-DaleQI1O.cjs → player-account-gaming-limits-history-2-nd-DJ888GEO.cjs} +1 -1
  135. package/lazy/{player-account-gaming-limits-history-2-nd-DR2QJ832.js → player-account-gaming-limits-history-2-nd-o-WdeApc.js} +1 -1
  136. package/lazy/{player-account-gaming-limits-info-card-D_paLKYW.cjs → player-account-gaming-limits-info-card-Ca90pCF1.cjs} +1 -1
  137. package/lazy/{player-account-gaming-limits-info-card-UqKk5YRG.js → player-account-gaming-limits-info-card-CpVJFiu7.js} +1 -1
  138. package/lazy/{player-account-gaming-limits-info-card-CqVNFkPo.js → player-account-gaming-limits-info-card-nnVaYcUJ.js} +1 -1
  139. package/lazy/{player-account-gaming-limits-page-2-gm16-nd-unI90BsV.cjs → player-account-gaming-limits-page-2-gm16-nd-3VvKQL0V.cjs} +1 -1
  140. package/lazy/{player-account-gaming-limits-page-2-gm16-nd-4Q0jSRYf.js → player-account-gaming-limits-page-2-gm16-nd-Di-lf4c-.js} +1 -1
  141. package/lazy/{player-account-gaming-limits-page-2-gm16-nd-CwUQoceU.js → player-account-gaming-limits-page-2-gm16-nd-JMOezpT8.js} +1 -1
  142. package/lazy/{player-account-gaming-limits-popup-BcJ5LWdY.js → player-account-gaming-limits-popup-Bp-nnrxa.js} +1 -1
  143. package/lazy/{player-account-gaming-limits-popup-CdHgHFPb.js → player-account-gaming-limits-popup-CgIOupMe.js} +1 -1
  144. package/lazy/{player-account-gaming-limits-popup--U0ySglo.cjs → player-account-gaming-limits-popup-oiVscWc7.cjs} +1 -1
  145. package/lazy/{player-account-gaming-limits-wrapper-2-nd-DIVWZxlh.js → player-account-gaming-limits-wrapper-2-nd-BU0FaOqd.js} +1 -1
  146. package/lazy/{player-account-gaming-limits-wrapper-2-nd-BIwYfENS.js → player-account-gaming-limits-wrapper-2-nd-DDnd7ilE.js} +1 -1
  147. package/lazy/{player-account-gaming-limits-wrapper-2-nd-Cl8879oG.cjs → player-account-gaming-limits-wrapper-2-nd-R4H4wJYe.cjs} +1 -1
  148. package/lazy/{player-account-general-confirmation-modal-CVgKPwXi.js → player-account-general-confirmation-modal-DKPeh6uk.js} +1 -1
  149. package/lazy/{player-account-general-confirmation-modal-B0OaRcZO.cjs → player-account-general-confirmation-modal-DsUI8_as.cjs} +1 -1
  150. package/lazy/{player-account-general-confirmation-modal-cBM55D5t.js → player-account-general-confirmation-modal-XA055-Bf.js} +1 -1
  151. package/lazy/{player-account-menu-nd-FOQfOStS.js → player-account-menu-nd-BRb08IPc.js} +1 -1
  152. package/lazy/{player-account-menu-nd-C0lCBkPn.cjs → player-account-menu-nd-CFivjFbM.cjs} +1 -1
  153. package/lazy/{player-account-menu-nd-Bvin7scU.js → player-account-menu-nd-WbriZ3QE.js} +1 -1
  154. package/lazy/{player-account-modal-BueW0TP-.js → player-account-modal-BAJYAvNe.js} +1 -1
  155. package/lazy/{player-account-modal-BIe31VNS.js → player-account-modal-DXsEA0Ra.js} +1 -1
  156. package/lazy/{player-account-modal-BXoInGeg.cjs → player-account-modal-PXjJKOc_.cjs} +1 -1
  157. package/lazy/{player-account-notifications-AG_zgFna.js → player-account-notifications-BJrMpuV9.js} +1 -1
  158. package/lazy/{player-account-notifications-DukgErgO.js → player-account-notifications-CqUwFwFv.js} +1 -1
  159. package/lazy/{player-account-notifications-Sje-PdYU.cjs → player-account-notifications-Dnrl6HMD.cjs} +1 -1
  160. package/lazy/player-account-product-restriction-BC8rde_m.cjs +1 -0
  161. package/lazy/player-account-product-restriction-Di-RSrPn.js +16 -0
  162. package/lazy/player-account-product-restriction-Dk99NWI4.js +16 -0
  163. package/lazy/{player-account-review-frequency-DxEXVKCA.js → player-account-review-frequency-CkM6NO5u.js} +1 -1
  164. package/lazy/{player-account-review-frequency-I6csp41f.js → player-account-review-frequency-cseW-hvV.js} +1 -1
  165. package/lazy/{player-account-review-frequency-C6bJUysK.cjs → player-account-review-frequency-wuqHieBq.cjs} +1 -1
  166. package/lazy/{player-account-self-exclusion-nd-BeoDRdHh.js → player-account-self-exclusion-nd-D29Sql38.js} +1 -1
  167. package/lazy/{player-account-self-exclusion-nd-ClpM2tLP.js → player-account-self-exclusion-nd-DgNstGAY.js} +1 -1
  168. package/lazy/{player-account-self-exclusion-nd-Bi6nByYV.cjs → player-account-self-exclusion-nd-n5znXgwp.cjs} +1 -1
  169. package/lazy/player-account-timeout-CncXUCQn.cjs +1 -0
  170. package/lazy/{player-account-product-restriction-DdiQqlb8.js → player-account-timeout-TkjBmKPR.js} +2 -2
  171. package/lazy/{player-account-product-restriction-DSHPj6Ge.js → player-account-timeout-hBJlUkJj.js} +2 -2
  172. package/lazy/{player-account-transactions-history-DnyKI4uh.js → player-account-transactions-history-CDfyaz4e.js} +1 -1
  173. package/lazy/{player-account-transactions-history-DWFmGV0x.js → player-account-transactions-history-Dhi2ei72.js} +1 -1
  174. package/lazy/{player-account-transactions-history-7_2Bsts1.cjs → player-account-transactions-history-DxduEVen.cjs} +1 -1
  175. package/lazy/{player-active-bonuses-BY6s0RrQ.js → player-active-bonuses-9ZalIESO.js} +1 -1
  176. package/lazy/{player-active-bonuses-BVjlBxiF.js → player-active-bonuses-Bt_ClbOt.js} +1 -1
  177. package/lazy/{player-active-bonuses-C5OI5LtI.cjs → player-active-bonuses-Byx2O8OK.cjs} +1 -1
  178. package/lazy/{player-bonus-card-gWls3eAM.js → player-bonus-card-Bp8IoJdb.js} +1 -1
  179. package/lazy/{player-bonus-card-CyAM3TLf.cjs → player-bonus-card-Cx9Z6Unr.cjs} +1 -1
  180. package/lazy/{player-bonus-card-CwyKl7Fo.js → player-bonus-card-DnDjAGz9.js} +1 -1
  181. package/lazy/{general-logout-CFVrAZ1t.js → player-bonus-history-5zpX69Az.js} +2 -2
  182. package/lazy/{general-logout-Wcs9-2Pz.js → player-bonus-history-D45z3J-Z.js} +2 -2
  183. package/lazy/{general-logout-DdTvMvkn.cjs → player-bonus-history-IX10cHDz.cjs} +1 -1
  184. package/lazy/{player-change-password-nd-DoxPo46-.cjs → player-change-password-nd-BuA-TrOa.cjs} +1 -1
  185. package/lazy/{player-change-password-nd-ClKOLb8r.js → player-change-password-nd-CerNN5GG.js} +1 -1
  186. package/lazy/{player-change-password-nd-B-n5ppEK.js → player-change-password-nd-aoaVWLb8.js} +1 -1
  187. package/lazy/{player-deposit-BQ6yIA9X.js → player-deposit-6MAIa4wn.js} +1 -1
  188. package/lazy/{player-deposit-BQwPZ83t.js → player-deposit-CVIiqCxi.js} +1 -1
  189. package/lazy/{player-deposit-Dtrsw1lA.cjs → player-deposit-Cp-RAuvc.cjs} +1 -1
  190. package/lazy/{player-gaming-history-BdGaH7MD.cjs → player-gaming-history-AI5pUTKV.cjs} +1 -1
  191. package/lazy/{player-gaming-history-BjBOnS1W.js → player-gaming-history-DIBp-_mT.js} +1 -1
  192. package/lazy/{player-gaming-history-BgdBxGWw.js → player-gaming-history-Dxqkrozw.js} +1 -1
  193. package/lazy/{player-kyc-verification-B5pCUSnk.js → player-kyc-verification-BZP7kUUO.js} +1 -1
  194. package/lazy/{player-kyc-verification-DlZifvve.js → player-kyc-verification-CM0zwZli.js} +1 -1
  195. package/lazy/{player-kyc-verification-BF4tf48l.cjs → player-kyc-verification-CTNRJ426.cjs} +1 -1
  196. package/lazy/{player-pending-withdrawals-79bMxhaa.cjs → player-pending-withdrawals-B7ivfIF1.cjs} +1 -1
  197. package/lazy/{player-pending-withdrawals-_P0uIgma.js → player-pending-withdrawals-BEhET_o8.js} +1 -1
  198. package/lazy/{player-pending-withdrawals-D6Y4E9ce.js → player-pending-withdrawals-DBY-pmaE.js} +1 -1
  199. package/lazy/{player-profile-info-kJ-EcNO_.cjs → player-profile-info-B8UxeKuQ.cjs} +1 -1
  200. package/lazy/{player-profile-info-DcBkxRcA.js → player-profile-info-BLVWdHgR.js} +1 -1
  201. package/lazy/{player-profile-info-WnZGk3JQ.js → player-profile-info-BYUrYdoF.js} +1 -1
  202. package/lazy/{player-reality-check-Au8og8hl.cjs → player-reality-check-B6C5C4Rf.cjs} +1 -1
  203. package/lazy/{player-reality-check-DUC6TenT.js → player-reality-check-B6v65mZ-.js} +1 -1
  204. package/lazy/{player-reality-check-mWm2ryAd.js → player-reality-check-jj2H3eyi.js} +1 -1
  205. package/lazy/{player-transaction-history-BJVIUBee.js → player-transaction-history-7ZFgLY0t.js} +1 -1
  206. package/lazy/{player-transaction-history-NFSIfQcd.cjs → player-transaction-history-DAS9PtjD.cjs} +1 -1
  207. package/lazy/{player-transaction-history-C8Bpi4DA.js → player-transaction-history-DLwzIeDP.js} +1 -1
  208. package/lazy/{player-withdrawal-1KVKXAxd.js → player-withdrawal-C6kEpg1V.js} +1 -1
  209. package/lazy/{player-withdrawal-DlZgjMOh.cjs → player-withdrawal-CW6yoX-5.cjs} +1 -1
  210. package/lazy/{player-withdrawal-UZU8-ppC.js → player-withdrawal-jDk1Z96D.js} +1 -1
  211. package/lazy/{ui-skeleton-BUCYetAg.js → ui-skeleton-BBQWByBl.js} +1 -1
  212. package/lazy/{ui-skeleton-BgUTfAtW.cjs → ui-skeleton-DCHcpm1I.cjs} +1 -1
  213. package/lazy/{ui-skeleton-C-dgOp3G.js → ui-skeleton-D_9rhDxL.js} +1 -1
  214. package/lazy/{user-deposit-withdrawal-BPgWs5L8.js → user-deposit-withdrawal-CDN8DDAf.js} +1 -1
  215. package/lazy/{user-deposit-withdrawal-DPuxBhFZ.cjs → user-deposit-withdrawal-CLrG_muR.cjs} +1 -1
  216. package/lazy/{user-deposit-withdrawal-DBFYKdyJ.js → user-deposit-withdrawal-LBLtDULY.js} +1 -1
  217. package/lazy/{user-transaction-history-B91xe-Pp.cjs → user-transaction-history-CODVmehQ.cjs} +1 -1
  218. package/lazy/{user-transaction-history-BLupDBlt.js → user-transaction-history-CoyTaqaz.js} +1 -1
  219. package/lazy/{user-transaction-history-D8DLm_8b.js → user-transaction-history-D-8VbKaf.js} +1 -1
  220. package/package.json +1 -1
  221. package/stencil/app-globals-0f993ce5-BjWsvLzr.cjs +1 -0
  222. package/stencil/{app-globals-0f993ce5-DzSE6TtH.js → app-globals-0f993ce5-XUXOuUQl.js} +4 -4
  223. package/stencil/{checkbox-group-input_16-tPQE2pxT.cjs → checkbox-group-input_16-BniNMHds.cjs} +1 -1
  224. package/stencil/{checkbox-group-input_16-C2U40PRd.js → checkbox-group-input_16-C2eDNlT5.js} +2 -2
  225. package/stencil/{checkbox-group-input_16-BzuatS1O.js → checkbox-group-input_16-CFQo3UCY.js} +2 -2
  226. package/stencil/{pam-change-password-6b535bd5-BXXd-JH1.js → pam-change-password-25b46f90-CREK_7H0.js} +122 -93
  227. package/stencil/{pam-change-password-6b535bd5-DIIkqQAT.cjs → pam-change-password-25b46f90-CSbDvQn6.cjs} +2 -2
  228. package/stencil/{pam-change-password-6b535bd5-CECTr5ou.js → pam-change-password-25b46f90-DZ8i_l2V.js} +121 -93
  229. package/stencil/{pam-change-password-I_UDtXjh.js → pam-change-password-ClQVPr8a.js} +3 -3
  230. package/stencil/pam-change-password-CvSWIqGx.cjs +1 -0
  231. package/stencil/{pam-change-password-CeHGulmv.js → pam-change-password-k5uXqpgZ.js} +3 -3
  232. package/stencil/{player-kyc-verification-B-Gwyevd.js → player-kyc-verification-CIgWZTIp.js} +95 -67
  233. package/stencil/{player-kyc-verification-Czftixd5.cjs → player-kyc-verification-DTf6J3oe.cjs} +2 -2
  234. package/stencil/{player-kyc-verification-38ukgicS.js → player-kyc-verification-f9L2NsQ9.js} +125 -98
  235. package/stencil/{ui-skeleton-Bp-l1XOX.cjs → ui-skeleton-DCajaTYn.cjs} +1 -1
  236. package/stencil/{ui-skeleton-Ur_BR5_B.js → ui-skeleton-Dd7tqzYw.js} +3 -3
  237. package/stencil/{ui-skeleton-ed169f8f-BC-qcUzg.cjs → ui-skeleton-ed169f8f-CzsV8lCL.cjs} +1 -1
  238. package/stencil/{ui-skeleton-ed169f8f-Dlrug2eB.js → ui-skeleton-ed169f8f-DMVI4VdD.js} +1 -1
  239. package/stencil/{ui-skeleton-ed169f8f-CScXzcMr.js → ui-skeleton-ed169f8f-W8BHwBHY.js} +1 -1
  240. package/stencil/{ui-skeleton--3Oejuq9.js → ui-skeleton-fEyshHrf.js} +3 -3
  241. package/stencil/user-deposit-withdrawal-Bh2KC6s5.cjs +72 -0
  242. package/stencil/{user-deposit-withdrawal-Ca_vjCHW.js → user-deposit-withdrawal-C4XkkxTv.js} +327 -300
  243. package/stencil/{user-deposit-withdrawal-CF2Gsvjt.js → user-deposit-withdrawal-D0OM-Emr.js} +372 -344
  244. package/stencil/{user-transaction-history-BfPSa4ia.js → user-transaction-history-BKRAtQSf.js} +3 -3
  245. package/stencil/{user-transaction-history-OpRaM0zM.js → user-transaction-history-CV0Cuc3e.js} +3 -3
  246. package/stencil/{user-transaction-history-D7eoRXas.cjs → user-transaction-history-wra_Cx3b.cjs} +1 -1
  247. package/stencil/{user-transaction-history_2-3zA9r-wE.js → user-transaction-history_2-B4dInDtd.js} +1701 -1651
  248. package/stencil/{user-transaction-history_2-BSYuOzxw.js → user-transaction-history_2-DjIeJ8Gy.js} +916 -911
  249. package/stencil/{user-transaction-history_2-CUThFqsc.cjs → user-transaction-history_2-DmPuYVuq.cjs} +275 -275
  250. package/components/GeneralLogout-BhFf4pXj.js +0 -4917
  251. package/components/GeneralLogout-CabJYhl_.cjs +0 -21
  252. package/components/GeneralLogout-kVL3KJCW.js +0 -4954
  253. package/components/PlayerAccountBettingHistory-C4kUhIyD.js +0 -310
  254. package/components/PlayerAccountBettingHistory-CDhOm69b.cjs +0 -1
  255. package/components/PlayerAccountBettingHistory-DqrW1eC0.js +0 -311
  256. package/components/PlayerAccountBiometrics-gFISK4P0.cjs +0 -1
  257. package/components/PlayerAccountBiometricsAction-DuFLD8TU.cjs +0 -1
  258. package/components/PlayerAccountClosureNd-qQb5QSAr.cjs +0 -1
  259. package/components/PlayerAccountControllerNd-C6p_kKyh.js +0 -8058
  260. package/components/PlayerAccountControllerNd-SlCHyjHq.js +0 -8075
  261. package/components/PlayerAccountControllerNd-rq8YRAF8.cjs +0 -1
  262. package/components/PlayerAccountGamingLimits-D7Vqty05.cjs +0 -1
  263. package/components/PlayerAccountGamingLimitsConfirmationModal-Db9y9UT0.cjs +0 -1
  264. package/components/PlayerAccountGamingLimitsGroupEdit-BT_aUQxr.js +0 -4731
  265. package/components/PlayerAccountGamingLimitsGroupEdit-CGNgCFWP.js +0 -4731
  266. package/components/PlayerAccountGamingLimitsGroupEdit-CjXacuNt.cjs +0 -2
  267. package/components/PlayerAccountGamingLimitsHistory2Nd-C0NPtChp.cjs +0 -1
  268. package/components/PlayerAccountGamingLimitsInfoCard-lRbryLtl.cjs +0 -1
  269. package/components/PlayerAccountGamingLimitsPopup-COhkcQaf.cjs +0 -1
  270. package/components/PlayerAccountGamingLimitsWrapper2Nd-BKcchGbA.cjs +0 -4
  271. package/components/PlayerAccountGeneralConfirmationModal-BfjwI9f3.cjs +0 -1
  272. package/components/PlayerAccountMenuNd-DfBW-4HX.cjs +0 -1
  273. package/components/PlayerAccountModal-DyIiDJCX.cjs +0 -1
  274. package/components/PlayerAccountNotifications-D3KJc-M4.cjs +0 -1
  275. package/components/PlayerAccountProductRestriction-BScIHqvQ.js +0 -17539
  276. package/components/PlayerAccountProductRestriction-BqDZjIRL.js +0 -17504
  277. package/components/PlayerAccountReviewFrequency-6vdzPgd4.cjs +0 -4
  278. package/components/PlayerAccountTimeout-BFuhuOpT.cjs +0 -1
  279. package/components/PlayerAccountTimeout-Dc_dhq__.js +0 -976
  280. package/components/PlayerAccountTimeout-JeSj9Gxs.js +0 -976
  281. package/components/PlayerAccountTransactionsHistory-DbdgijDb.cjs +0 -4
  282. package/components/PlayerActiveBonuses-Dm3TsqWq.cjs +0 -4
  283. package/components/PlayerBonusCard-D3RRaRG3.cjs +0 -1
  284. package/components/PlayerBonusHistory-BvbveVm4.js +0 -1106
  285. package/components/PlayerBonusHistory-DIhVjnFh.cjs +0 -4
  286. package/components/PlayerBonusHistory-DUyoAOkj.js +0 -1095
  287. package/components/PlayerChangePasswordNd-PdozpMfL.cjs +0 -1
  288. package/components/PlayerDeposit-BMiKdbNV.cjs +0 -1
  289. package/components/PlayerGamingHistory-CG3IxutB.cjs +0 -1
  290. package/components/PlayerPendingWithdrawals-Adf-S-0n.cjs +0 -1
  291. package/components/PlayerProfileInfo-Csb61mgQ.cjs +0 -4
  292. package/components/PlayerRealityCheck-D9_TyV9_.cjs +0 -1
  293. package/components/PlayerTransactionHistory-CzAXZ_UN.cjs +0 -1
  294. package/components/PlayerWithdrawal-C7i6UasK.cjs +0 -1
  295. package/lazy/player-account-gaming-limits-group-edit-BXHQNeDR.cjs +0 -1
  296. package/lazy/player-account-gaming-limits-group-edit-BcwaoXQ4.js +0 -19
  297. package/lazy/player-account-gaming-limits-group-edit-b3EMH7cg.js +0 -19
  298. package/lazy/player-account-product-restriction-wSKzQzGt.cjs +0 -1
  299. package/lazy/player-account-timeout-BMr_crpG.cjs +0 -1
  300. package/lazy/player-account-timeout-D3l_SP1p.js +0 -16
  301. package/lazy/player-account-timeout-nQzir3AH.js +0 -16
  302. package/lazy/player-bonus-history-BMThS-9k.js +0 -16
  303. package/lazy/player-bonus-history-D2d4fDQx.cjs +0 -1
  304. package/lazy/player-bonus-history-EBcErvT8.js +0 -16
  305. package/stencil/app-globals-0f993ce5-DgYhdguE.cjs +0 -1
  306. package/stencil/pam-change-password-DfJ3Hz_h.cjs +0 -1
  307. package/stencil/user-deposit-withdrawal-BXny5CR4.cjs +0 -72
@@ -1,4917 +0,0 @@
1
- function H() {
2
- }
3
- const Ar = (e) => e;
4
- function Pr(e, t) {
5
- for (const r in t)
6
- e[r] = t[r];
7
- return (
8
- /** @type {T & S} */
9
- e
10
- );
11
- }
12
- function $t(e) {
13
- return e();
14
- }
15
- function ht() {
16
- return /* @__PURE__ */ Object.create(null);
17
- }
18
- function D(e) {
19
- e.forEach($t);
20
- }
21
- function ae(e) {
22
- return typeof e == "function";
23
- }
24
- function Rt(e, t) {
25
- return e != e ? t == t : e !== t || e && typeof e == "object" || typeof e == "function";
26
- }
27
- let pe;
28
- function go(e, t) {
29
- return e === t ? !0 : (pe || (pe = document.createElement("a")), pe.href = t, e === pe.href);
30
- }
31
- function Or(e) {
32
- return Object.keys(e).length === 0;
33
- }
34
- function Ut(e, ...t) {
35
- if (e == null) {
36
- for (const n of t)
37
- n(void 0);
38
- return H;
39
- }
40
- const r = e.subscribe(...t);
41
- return r.unsubscribe ? () => r.unsubscribe() : r;
42
- }
43
- function Ir(e, t, r) {
44
- e.$$.on_destroy.push(Ut(t, r));
45
- }
46
- function vo(e, t, r, n) {
47
- if (e) {
48
- const i = Dt(e, t, r, n);
49
- return e[0](i);
50
- }
51
- }
52
- function Dt(e, t, r, n) {
53
- return e[1] && n ? Pr(r.ctx.slice(), e[1](n(t))) : r.ctx;
54
- }
55
- function _o(e, t, r, n) {
56
- if (e[2] && n) {
57
- const i = e[2](n(r));
58
- if (t.dirty === void 0)
59
- return i;
60
- if (typeof i == "object") {
61
- const o = [], a = Math.max(t.dirty.length, i.length);
62
- for (let s = 0; s < a; s += 1)
63
- o[s] = t.dirty[s] | i[s];
64
- return o;
65
- }
66
- return t.dirty | i;
67
- }
68
- return t.dirty;
69
- }
70
- function Eo(e, t, r, n, i, o) {
71
- if (i) {
72
- const a = Dt(t, r, n, o);
73
- e.p(a, i);
74
- }
75
- }
76
- function xo(e) {
77
- if (e.ctx.length > 32) {
78
- const t = [], r = e.ctx.length / 32;
79
- for (let n = 0; n < r; n++)
80
- t[n] = -1;
81
- return t;
82
- }
83
- return -1;
84
- }
85
- function So(e) {
86
- const t = {};
87
- for (const r in e)
88
- t[r] = !0;
89
- return t;
90
- }
91
- function wo(e) {
92
- return e ?? "";
93
- }
94
- function To(e) {
95
- return e && ae(e.destroy) ? e.destroy : H;
96
- }
97
- const Gt = typeof window < "u";
98
- let Lr = Gt ? () => window.performance.now() : () => Date.now(), st = Gt ? (e) => requestAnimationFrame(e) : H;
99
- const X = /* @__PURE__ */ new Set();
100
- function Ft(e) {
101
- X.forEach((t) => {
102
- t.c(e) || (X.delete(t), t.f());
103
- }), X.size !== 0 && st(Ft);
104
- }
105
- function Nr(e) {
106
- let t;
107
- return X.size === 0 && st(Ft), {
108
- promise: new Promise((r) => {
109
- X.add(t = { c: e, f: r });
110
- }),
111
- abort() {
112
- X.delete(t);
113
- }
114
- };
115
- }
116
- function A(e, t) {
117
- e.appendChild(t);
118
- }
119
- function Mr(e, t, r) {
120
- const n = at(e);
121
- if (!n.getElementById(t)) {
122
- const i = N("style");
123
- i.id = t, i.textContent = r, jt(n, i);
124
- }
125
- }
126
- function at(e) {
127
- if (!e)
128
- return document;
129
- const t = e.getRootNode ? e.getRootNode() : e.ownerDocument;
130
- return t && /** @type {ShadowRoot} */
131
- t.host ? (
132
- /** @type {ShadowRoot} */
133
- t
134
- ) : e.ownerDocument;
135
- }
136
- function Cr(e) {
137
- const t = N("style");
138
- return t.textContent = "/* empty */", jt(at(e), t), t.sheet;
139
- }
140
- function jt(e, t) {
141
- return A(
142
- /** @type {Document} */
143
- e.head || e,
144
- t
145
- ), t.sheet;
146
- }
147
- function ue(e, t, r) {
148
- e.insertBefore(t, r || null);
149
- }
150
- function G(e) {
151
- e.parentNode && e.parentNode.removeChild(e);
152
- }
153
- function Ho(e, t) {
154
- for (let r = 0; r < e.length; r += 1)
155
- e[r] && e[r].d(t);
156
- }
157
- function N(e) {
158
- return document.createElement(e);
159
- }
160
- function ee(e) {
161
- return document.createElementNS("http://www.w3.org/2000/svg", e);
162
- }
163
- function le(e) {
164
- return document.createTextNode(e);
165
- }
166
- function $r() {
167
- return le(" ");
168
- }
169
- function Bo() {
170
- return le("");
171
- }
172
- function kt(e, t, r, n) {
173
- return e.addEventListener(t, r, n), () => e.removeEventListener(t, r, n);
174
- }
175
- function Ao(e) {
176
- return function(t) {
177
- return t.preventDefault(), e.call(this, t);
178
- };
179
- }
180
- function B(e, t, r) {
181
- r == null ? e.removeAttribute(t) : e.getAttribute(t) !== r && e.setAttribute(t, r);
182
- }
183
- function Po(e, t, r) {
184
- const n = t.toLowerCase();
185
- n in e ? e[n] = typeof e[n] == "boolean" && r === "" ? !0 : r : t in e ? e[t] = typeof e[t] == "boolean" && r === "" ? !0 : r : B(e, t, r);
186
- }
187
- function Oo(e) {
188
- let t;
189
- return {
190
- /* push */
191
- p(...r) {
192
- t = r, t.forEach((n) => e.push(n));
193
- },
194
- /* remove */
195
- r() {
196
- t.forEach((r) => e.splice(e.indexOf(r), 1));
197
- }
198
- };
199
- }
200
- function Io(e) {
201
- return e === "" ? null : +e;
202
- }
203
- function Rr(e) {
204
- return Array.from(e.childNodes);
205
- }
206
- function Vt(e, t) {
207
- t = "" + t, e.data !== t && (e.data = /** @type {string} */
208
- t);
209
- }
210
- function Lo(e, t) {
211
- e.value = t ?? "";
212
- }
213
- function Ur(e, t, r, n) {
214
- r == null ? e.style.removeProperty(t) : e.style.setProperty(t, r, "");
215
- }
216
- function No(e, t, r) {
217
- for (let n = 0; n < e.options.length; n += 1) {
218
- const i = e.options[n];
219
- if (i.__value === t) {
220
- i.selected = !0;
221
- return;
222
- }
223
- }
224
- (!r || t !== void 0) && (e.selectedIndex = -1);
225
- }
226
- function Mo(e) {
227
- const t = e.querySelector(":checked");
228
- return t && t.__value;
229
- }
230
- function Co(e, t, r) {
231
- e.classList.toggle(t, !!r);
232
- }
233
- function Dr(e, t, { bubbles: r = !1, cancelable: n = !1 } = {}) {
234
- return new CustomEvent(e, { detail: t, bubbles: r, cancelable: n });
235
- }
236
- function Gr(e) {
237
- const t = {};
238
- return e.childNodes.forEach(
239
- /** @param {Element} node */
240
- (r) => {
241
- t[r.slot || "default"] = !0;
242
- }
243
- ), t;
244
- }
245
- const Ee = /* @__PURE__ */ new Map();
246
- let xe = 0;
247
- function Fr(e) {
248
- let t = 5381, r = e.length;
249
- for (; r--; )
250
- t = (t << 5) - t ^ e.charCodeAt(r);
251
- return t >>> 0;
252
- }
253
- function jr(e, t) {
254
- const r = { stylesheet: Cr(t), rules: {} };
255
- return Ee.set(e, r), r;
256
- }
257
- function ct(e, t, r, n, i, o, a, s = 0) {
258
- const l = 16.666 / n;
259
- let u = `{
260
- `;
261
- for (let _ = 0; _ <= 1; _ += l) {
262
- const w = t + (r - t) * o(_);
263
- u += _ * 100 + `%{${a(w, 1 - w)}}
264
- `;
265
- }
266
- const h = u + `100% {${a(r, 1 - r)}}
267
- }`, f = `__svelte_${Fr(h)}_${s}`, c = at(e), { stylesheet: d, rules: p } = Ee.get(c) || jr(c, e);
268
- p[f] || (p[f] = !0, d.insertRule(`@keyframes ${f} ${h}`, d.cssRules.length));
269
- const m = e.style.animation || "";
270
- return e.style.animation = `${m ? `${m}, ` : ""}${f} ${n}ms linear ${i}ms 1 both`, xe += 1, f;
271
- }
272
- function kr(e, t) {
273
- const r = (e.style.animation || "").split(", "), n = r.filter(
274
- t ? (o) => o.indexOf(t) < 0 : (o) => o.indexOf("__svelte") === -1
275
- // remove all Svelte animations
276
- ), i = r.length - n.length;
277
- i && (e.style.animation = n.join(", "), xe -= i, xe || Vr());
278
- }
279
- function Vr() {
280
- st(() => {
281
- xe || (Ee.forEach((e) => {
282
- const { ownerNode: t } = e.stylesheet;
283
- t && G(t);
284
- }), Ee.clear());
285
- });
286
- }
287
- let ie;
288
- function ne(e) {
289
- ie = e;
290
- }
291
- function Xt() {
292
- if (!ie)
293
- throw new Error("Function called outside component initialization");
294
- return ie;
295
- }
296
- function Xr(e) {
297
- Xt().$$.on_mount.push(e);
298
- }
299
- function $o(e) {
300
- Xt().$$.on_destroy.push(e);
301
- }
302
- const V = [], ke = [];
303
- let W = [];
304
- const ft = [], Wt = /* @__PURE__ */ Promise.resolve();
305
- let Ve = !1;
306
- function zt() {
307
- Ve || (Ve = !0, Wt.then(I));
308
- }
309
- function Ro() {
310
- return zt(), Wt;
311
- }
312
- function Se(e) {
313
- W.push(e);
314
- }
315
- const Me = /* @__PURE__ */ new Set();
316
- let j = 0;
317
- function I() {
318
- if (j !== 0)
319
- return;
320
- const e = ie;
321
- do {
322
- try {
323
- for (; j < V.length; ) {
324
- const t = V[j];
325
- j++, ne(t), Wr(t.$$);
326
- }
327
- } catch (t) {
328
- throw V.length = 0, j = 0, t;
329
- }
330
- for (ne(null), V.length = 0, j = 0; ke.length; )
331
- ke.pop()();
332
- for (let t = 0; t < W.length; t += 1) {
333
- const r = W[t];
334
- Me.has(r) || (Me.add(r), r());
335
- }
336
- W.length = 0;
337
- } while (V.length);
338
- for (; ft.length; )
339
- ft.pop()();
340
- Ve = !1, Me.clear(), ne(e);
341
- }
342
- function Wr(e) {
343
- if (e.fragment !== null) {
344
- e.update(), D(e.before_update);
345
- const t = e.dirty;
346
- e.dirty = [-1], e.fragment && e.fragment.p(e.ctx, t), e.after_update.forEach(Se);
347
- }
348
- }
349
- function zr(e) {
350
- const t = [], r = [];
351
- W.forEach((n) => e.indexOf(n) === -1 ? t.push(n) : r.push(n)), r.forEach((n) => n()), W = t;
352
- }
353
- let te;
354
- function Zr() {
355
- return te || (te = Promise.resolve(), te.then(() => {
356
- te = null;
357
- })), te;
358
- }
359
- function Ce(e, t, r) {
360
- e.dispatchEvent(Dr(`${t ? "intro" : "outro"}${r}`));
361
- }
362
- const be = /* @__PURE__ */ new Set();
363
- let M;
364
- function Uo() {
365
- M = {
366
- r: 0,
367
- c: [],
368
- p: M
369
- // parent group
370
- };
371
- }
372
- function Do() {
373
- M.r || D(M.c), M = M.p;
374
- }
375
- function qr(e, t) {
376
- e && e.i && (be.delete(e), e.i(t));
377
- }
378
- function Go(e, t, r, n) {
379
- if (e && e.o) {
380
- if (be.has(e))
381
- return;
382
- be.add(e), M.c.push(() => {
383
- be.delete(e), n && (r && e.d(1), n());
384
- }), e.o(t);
385
- } else
386
- n && n();
387
- }
388
- const Qr = { duration: 0 };
389
- function Fo(e, t, r, n) {
390
- let o = t(e, r, { direction: "both" }), a = n ? 0 : 1, s = null, l = null, u = null, h;
391
- function f() {
392
- u && kr(e, u);
393
- }
394
- function c(p, m) {
395
- const _ = (
396
- /** @type {Program['d']} */
397
- p.b - a
398
- );
399
- return m *= Math.abs(_), {
400
- a,
401
- b: p.b,
402
- d: _,
403
- duration: m,
404
- start: p.start,
405
- end: p.start + m,
406
- group: p.group
407
- };
408
- }
409
- function d(p) {
410
- const {
411
- delay: m = 0,
412
- duration: _ = 300,
413
- easing: w = Ar,
414
- tick: P = H,
415
- css: x
416
- } = o || Qr, O = {
417
- start: Lr() + m,
418
- b: p
419
- };
420
- p || (O.group = M, M.r += 1), "inert" in e && (p ? h !== void 0 && (e.inert = h) : (h = /** @type {HTMLElement} */
421
- e.inert, e.inert = !0)), s || l ? l = O : (x && (f(), u = ct(e, a, p, _, m, w, x)), p && P(0, 1), s = c(O, _), Se(() => Ce(e, p, "start")), Nr((T) => {
422
- if (l && T > l.start && (s = c(l, _), l = null, Ce(e, s.b, "start"), x && (f(), u = ct(
423
- e,
424
- a,
425
- s.b,
426
- s.duration,
427
- 0,
428
- w,
429
- o.css
430
- ))), s) {
431
- if (T >= s.end)
432
- P(a = s.b, 1 - a), Ce(e, s.b, "end"), l || (s.b ? f() : --s.group.r || D(s.group.c)), s = null;
433
- else if (T >= s.start) {
434
- const $ = T - s.start;
435
- a = s.a + s.d * w($ / s.duration), P(a, 1 - a);
436
- }
437
- }
438
- return !!(s || l);
439
- }));
440
- }
441
- return {
442
- run(p) {
443
- ae(o) ? Zr().then(() => {
444
- o = o({ direction: p ? "in" : "out" }), d(p);
445
- }) : d(p);
446
- },
447
- end() {
448
- f(), s = l = null;
449
- }
450
- };
451
- }
452
- function jo(e) {
453
- return e?.length !== void 0 ? e : Array.from(e);
454
- }
455
- function Jr(e, t, r) {
456
- const { fragment: n, after_update: i } = e.$$;
457
- n && n.m(t, r), Se(() => {
458
- const o = e.$$.on_mount.map($t).filter(ae);
459
- e.$$.on_destroy ? e.$$.on_destroy.push(...o) : D(o), e.$$.on_mount = [];
460
- }), i.forEach(Se);
461
- }
462
- function Yr(e, t) {
463
- const r = e.$$;
464
- r.fragment !== null && (zr(r.after_update), D(r.on_destroy), r.fragment && r.fragment.d(t), r.on_destroy = r.fragment = null, r.ctx = []);
465
- }
466
- function Kr(e, t) {
467
- e.$$.dirty[0] === -1 && (V.push(e), zt(), e.$$.dirty.fill(0)), e.$$.dirty[t / 31 | 0] |= 1 << t % 31;
468
- }
469
- function en(e, t, r, n, i, o, a = null, s = [-1]) {
470
- const l = ie;
471
- ne(e);
472
- const u = e.$$ = {
473
- fragment: null,
474
- ctx: [],
475
- // state
476
- props: o,
477
- update: H,
478
- not_equal: i,
479
- bound: ht(),
480
- // lifecycle
481
- on_mount: [],
482
- on_destroy: [],
483
- on_disconnect: [],
484
- before_update: [],
485
- after_update: [],
486
- context: new Map(t.context || (l ? l.$$.context : [])),
487
- // everything else
488
- callbacks: ht(),
489
- dirty: s,
490
- skip_bound: !1,
491
- root: t.target || l.$$.root
492
- };
493
- a && a(u.root);
494
- let h = !1;
495
- if (u.ctx = r ? r(e, t.props || {}, (f, c, ...d) => {
496
- const p = d.length ? d[0] : c;
497
- return u.ctx && i(u.ctx[f], u.ctx[f] = p) && (!u.skip_bound && u.bound[f] && u.bound[f](p), h && Kr(e, f)), c;
498
- }) : [], u.update(), h = !0, D(u.before_update), u.fragment = n ? n(u.ctx) : !1, t.target) {
499
- if (t.hydrate) {
500
- const f = Rr(t.target);
501
- u.fragment && u.fragment.l(f), f.forEach(G);
502
- } else
503
- u.fragment && u.fragment.c();
504
- t.intro && qr(e.$$.fragment), Jr(e, t.target, t.anchor), I();
505
- }
506
- ne(l);
507
- }
508
- let Zt;
509
- typeof HTMLElement == "function" && (Zt = class extends HTMLElement {
510
- /** The Svelte component constructor */
511
- $$ctor;
512
- /** Slots */
513
- $$s;
514
- /** The Svelte component instance */
515
- $$c;
516
- /** Whether or not the custom element is connected */
517
- $$cn = !1;
518
- /** Component props data */
519
- $$d = {};
520
- /** `true` if currently in the process of reflecting component props back to attributes */
521
- $$r = !1;
522
- /** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
523
- $$p_d = {};
524
- /** @type {Record<string, Function[]>} Event listeners */
525
- $$l = {};
526
- /** @type {Map<Function, Function>} Event listener unsubscribe functions */
527
- $$l_u = /* @__PURE__ */ new Map();
528
- constructor(e, t, r) {
529
- super(), this.$$ctor = e, this.$$s = t, r && this.attachShadow({ mode: "open" });
530
- }
531
- addEventListener(e, t, r) {
532
- if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
533
- const n = this.$$c.$on(e, t);
534
- this.$$l_u.set(t, n);
535
- }
536
- super.addEventListener(e, t, r);
537
- }
538
- removeEventListener(e, t, r) {
539
- if (super.removeEventListener(e, t, r), this.$$c) {
540
- const n = this.$$l_u.get(t);
541
- n && (n(), this.$$l_u.delete(t));
542
- }
543
- }
544
- async connectedCallback() {
545
- if (this.$$cn = !0, !this.$$c) {
546
- let e = function(i) {
547
- return () => {
548
- let o;
549
- return {
550
- c: function() {
551
- o = N("slot"), i !== "default" && B(o, "name", i);
552
- },
553
- /**
554
- * @param {HTMLElement} target
555
- * @param {HTMLElement} [anchor]
556
- */
557
- m: function(l, u) {
558
- ue(l, o, u);
559
- },
560
- d: function(l) {
561
- l && G(o);
562
- }
563
- };
564
- };
565
- };
566
- if (await Promise.resolve(), !this.$$cn || this.$$c)
567
- return;
568
- const t = {}, r = Gr(this);
569
- for (const i of this.$$s)
570
- i in r && (t[i] = [e(i)]);
571
- for (const i of this.attributes) {
572
- const o = this.$$g_p(i.name);
573
- o in this.$$d || (this.$$d[o] = ye(o, i.value, this.$$p_d, "toProp"));
574
- }
575
- for (const i in this.$$p_d)
576
- !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
577
- this.$$c = new this.$$ctor({
578
- target: this.shadowRoot || this,
579
- props: {
580
- ...this.$$d,
581
- $$slots: t,
582
- $$scope: {
583
- ctx: []
584
- }
585
- }
586
- });
587
- const n = () => {
588
- this.$$r = !0;
589
- for (const i in this.$$p_d)
590
- if (this.$$d[i] = this.$$c.$$.ctx[this.$$c.$$.props[i]], this.$$p_d[i].reflect) {
591
- const o = ye(
592
- i,
593
- this.$$d[i],
594
- this.$$p_d,
595
- "toAttribute"
596
- );
597
- o == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, o);
598
- }
599
- this.$$r = !1;
600
- };
601
- this.$$c.$$.after_update.push(n), n();
602
- for (const i in this.$$l)
603
- for (const o of this.$$l[i]) {
604
- const a = this.$$c.$on(i, o);
605
- this.$$l_u.set(o, a);
606
- }
607
- this.$$l = {};
608
- }
609
- }
610
- // We don't need this when working within Svelte code, but for compatibility of people using this outside of Svelte
611
- // and setting attributes through setAttribute etc, this is helpful
612
- attributeChangedCallback(e, t, r) {
613
- this.$$r || (e = this.$$g_p(e), this.$$d[e] = ye(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
614
- }
615
- disconnectedCallback() {
616
- this.$$cn = !1, Promise.resolve().then(() => {
617
- !this.$$cn && this.$$c && (this.$$c.$destroy(), this.$$c = void 0);
618
- });
619
- }
620
- $$g_p(e) {
621
- return Object.keys(this.$$p_d).find(
622
- (t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e
623
- ) || e;
624
- }
625
- });
626
- function ye(e, t, r, n) {
627
- const i = r[e]?.type;
628
- if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !n || !r[e])
629
- return t;
630
- if (n === "toAttribute")
631
- switch (i) {
632
- case "Object":
633
- case "Array":
634
- return t == null ? null : JSON.stringify(t);
635
- case "Boolean":
636
- return t ? "" : null;
637
- case "Number":
638
- return t ?? null;
639
- default:
640
- return t;
641
- }
642
- else
643
- switch (i) {
644
- case "Object":
645
- case "Array":
646
- return t && JSON.parse(t);
647
- case "Boolean":
648
- return t;
649
- case "Number":
650
- return t != null ? +t : t;
651
- default:
652
- return t;
653
- }
654
- }
655
- function tn(e, t, r, n, i, o) {
656
- let a = class extends Zt {
657
- constructor() {
658
- super(e, r, i), this.$$p_d = t;
659
- }
660
- static get observedAttributes() {
661
- return Object.keys(t).map(
662
- (s) => (t[s].attribute || s).toLowerCase()
663
- );
664
- }
665
- };
666
- return Object.keys(t).forEach((s) => {
667
- Object.defineProperty(a.prototype, s, {
668
- get() {
669
- return this.$$c && s in this.$$c ? this.$$c[s] : this.$$d[s];
670
- },
671
- set(l) {
672
- l = ye(s, l, t), this.$$d[s] = l, this.$$c?.$set({ [s]: l });
673
- }
674
- });
675
- }), n.forEach((s) => {
676
- Object.defineProperty(a.prototype, s, {
677
- get() {
678
- return this.$$c?.[s];
679
- }
680
- });
681
- }), e.element = /** @type {any} */
682
- a, a;
683
- }
684
- class rn {
685
- /**
686
- * ### PRIVATE API
687
- *
688
- * Do not use, may change at any time
689
- *
690
- * @type {any}
691
- */
692
- $$ = void 0;
693
- /**
694
- * ### PRIVATE API
695
- *
696
- * Do not use, may change at any time
697
- *
698
- * @type {any}
699
- */
700
- $$set = void 0;
701
- /** @returns {void} */
702
- $destroy() {
703
- Yr(this, 1), this.$destroy = H;
704
- }
705
- /**
706
- * @template {Extract<keyof Events, string>} K
707
- * @param {K} type
708
- * @param {((e: Events[K]) => void) | null | undefined} callback
709
- * @returns {() => void}
710
- */
711
- $on(t, r) {
712
- if (!ae(r))
713
- return H;
714
- const n = this.$$.callbacks[t] || (this.$$.callbacks[t] = []);
715
- return n.push(r), () => {
716
- const i = n.indexOf(r);
717
- i !== -1 && n.splice(i, 1);
718
- };
719
- }
720
- /**
721
- * @param {Partial<Props>} props
722
- * @returns {void}
723
- */
724
- $set(t) {
725
- this.$$set && !Or(t) && (this.$$.skip_bound = !0, this.$$set(t), this.$$.skip_bound = !1);
726
- }
727
- }
728
- const nn = "4";
729
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(nn);
730
- /*! *****************************************************************************
731
- Copyright (c) Microsoft Corporation.
732
-
733
- Permission to use, copy, modify, and/or distribute this software for any
734
- purpose with or without fee is hereby granted.
735
-
736
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
737
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
738
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
739
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
740
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
741
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
742
- PERFORMANCE OF THIS SOFTWARE.
743
- ***************************************************************************** */
744
- var Xe = function(e, t) {
745
- return Xe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
746
- r.__proto__ = n;
747
- } || function(r, n) {
748
- for (var i in n)
749
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
750
- }, Xe(e, t);
751
- };
752
- function he(e, t) {
753
- if (typeof t != "function" && t !== null)
754
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
755
- Xe(e, t);
756
- function r() {
757
- this.constructor = e;
758
- }
759
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
760
- }
761
- function We(e) {
762
- var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
763
- if (r)
764
- return r.call(e);
765
- if (e && typeof e.length == "number")
766
- return {
767
- next: function() {
768
- return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
769
- }
770
- };
771
- throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
772
- }
773
- function ze(e, t) {
774
- var r = typeof Symbol == "function" && e[Symbol.iterator];
775
- if (!r)
776
- return e;
777
- var n = r.call(e), i, o = [], a;
778
- try {
779
- for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
780
- o.push(i.value);
781
- } catch (s) {
782
- a = { error: s };
783
- } finally {
784
- try {
785
- i && !i.done && (r = n.return) && r.call(n);
786
- } finally {
787
- if (a)
788
- throw a.error;
789
- }
790
- }
791
- return o;
792
- }
793
- function Ze(e, t, r) {
794
- if (arguments.length === 2)
795
- for (var n = 0, i = t.length, o; n < i; n++)
796
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
797
- return e.concat(o || t);
798
- }
799
- function C(e) {
800
- return typeof e == "function";
801
- }
802
- function qt(e) {
803
- var t = function(n) {
804
- Error.call(n), n.stack = new Error().stack;
805
- }, r = e(t);
806
- return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
807
- }
808
- var $e = qt(function(e) {
809
- return function(r) {
810
- e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
811
- ` + r.map(function(n, i) {
812
- return i + 1 + ") " + n.toString();
813
- }).join(`
814
- `) : "", this.name = "UnsubscriptionError", this.errors = r;
815
- };
816
- });
817
- function qe(e, t) {
818
- if (e) {
819
- var r = e.indexOf(t);
820
- 0 <= r && e.splice(r, 1);
821
- }
822
- }
823
- var Be = function() {
824
- function e(t) {
825
- this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
826
- }
827
- return e.prototype.unsubscribe = function() {
828
- var t, r, n, i, o;
829
- if (!this.closed) {
830
- this.closed = !0;
831
- var a = this._parentage;
832
- if (a)
833
- if (this._parentage = null, Array.isArray(a))
834
- try {
835
- for (var s = We(a), l = s.next(); !l.done; l = s.next()) {
836
- var u = l.value;
837
- u.remove(this);
838
- }
839
- } catch (m) {
840
- t = { error: m };
841
- } finally {
842
- try {
843
- l && !l.done && (r = s.return) && r.call(s);
844
- } finally {
845
- if (t)
846
- throw t.error;
847
- }
848
- }
849
- else
850
- a.remove(this);
851
- var h = this.initialTeardown;
852
- if (C(h))
853
- try {
854
- h();
855
- } catch (m) {
856
- o = m instanceof $e ? m.errors : [m];
857
- }
858
- var f = this._finalizers;
859
- if (f) {
860
- this._finalizers = null;
861
- try {
862
- for (var c = We(f), d = c.next(); !d.done; d = c.next()) {
863
- var p = d.value;
864
- try {
865
- pt(p);
866
- } catch (m) {
867
- o = o ?? [], m instanceof $e ? o = Ze(Ze([], ze(o)), ze(m.errors)) : o.push(m);
868
- }
869
- }
870
- } catch (m) {
871
- n = { error: m };
872
- } finally {
873
- try {
874
- d && !d.done && (i = c.return) && i.call(c);
875
- } finally {
876
- if (n)
877
- throw n.error;
878
- }
879
- }
880
- }
881
- if (o)
882
- throw new $e(o);
883
- }
884
- }, e.prototype.add = function(t) {
885
- var r;
886
- if (t && t !== this)
887
- if (this.closed)
888
- pt(t);
889
- else {
890
- if (t instanceof e) {
891
- if (t.closed || t._hasParent(this))
892
- return;
893
- t._addParent(this);
894
- }
895
- (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
896
- }
897
- }, e.prototype._hasParent = function(t) {
898
- var r = this._parentage;
899
- return r === t || Array.isArray(r) && r.includes(t);
900
- }, e.prototype._addParent = function(t) {
901
- var r = this._parentage;
902
- this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
903
- }, e.prototype._removeParent = function(t) {
904
- var r = this._parentage;
905
- r === t ? this._parentage = null : Array.isArray(r) && qe(r, t);
906
- }, e.prototype.remove = function(t) {
907
- var r = this._finalizers;
908
- r && qe(r, t), t instanceof e && t._removeParent(this);
909
- }, e.EMPTY = function() {
910
- var t = new e();
911
- return t.closed = !0, t;
912
- }(), e;
913
- }(), Qt = Be.EMPTY;
914
- function Jt(e) {
915
- return e instanceof Be || e && "closed" in e && C(e.remove) && C(e.add) && C(e.unsubscribe);
916
- }
917
- function pt(e) {
918
- C(e) ? e() : e.unsubscribe();
919
- }
920
- var on = {
921
- Promise: void 0
922
- }, sn = {
923
- setTimeout: function(e, t) {
924
- for (var r = [], n = 2; n < arguments.length; n++)
925
- r[n - 2] = arguments[n];
926
- return setTimeout.apply(void 0, Ze([e, t], ze(r)));
927
- },
928
- clearTimeout: function(e) {
929
- return clearTimeout(e);
930
- },
931
- delegate: void 0
932
- };
933
- function an(e) {
934
- sn.setTimeout(function() {
935
- throw e;
936
- });
937
- }
938
- function dt() {
939
- }
940
- function ge(e) {
941
- e();
942
- }
943
- var Yt = function(e) {
944
- he(t, e);
945
- function t(r) {
946
- var n = e.call(this) || this;
947
- return n.isStopped = !1, r ? (n.destination = r, Jt(r) && r.add(n)) : n.destination = hn, n;
948
- }
949
- return t.create = function(r, n, i) {
950
- return new Qe(r, n, i);
951
- }, t.prototype.next = function(r) {
952
- this.isStopped || this._next(r);
953
- }, t.prototype.error = function(r) {
954
- this.isStopped || (this.isStopped = !0, this._error(r));
955
- }, t.prototype.complete = function() {
956
- this.isStopped || (this.isStopped = !0, this._complete());
957
- }, t.prototype.unsubscribe = function() {
958
- this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
959
- }, t.prototype._next = function(r) {
960
- this.destination.next(r);
961
- }, t.prototype._error = function(r) {
962
- try {
963
- this.destination.error(r);
964
- } finally {
965
- this.unsubscribe();
966
- }
967
- }, t.prototype._complete = function() {
968
- try {
969
- this.destination.complete();
970
- } finally {
971
- this.unsubscribe();
972
- }
973
- }, t;
974
- }(Be), un = function() {
975
- function e(t) {
976
- this.partialObserver = t;
977
- }
978
- return e.prototype.next = function(t) {
979
- var r = this.partialObserver;
980
- if (r.next)
981
- try {
982
- r.next(t);
983
- } catch (n) {
984
- de(n);
985
- }
986
- }, e.prototype.error = function(t) {
987
- var r = this.partialObserver;
988
- if (r.error)
989
- try {
990
- r.error(t);
991
- } catch (n) {
992
- de(n);
993
- }
994
- else
995
- de(t);
996
- }, e.prototype.complete = function() {
997
- var t = this.partialObserver;
998
- if (t.complete)
999
- try {
1000
- t.complete();
1001
- } catch (r) {
1002
- de(r);
1003
- }
1004
- }, e;
1005
- }(), Qe = function(e) {
1006
- he(t, e);
1007
- function t(r, n, i) {
1008
- var o = e.call(this) || this, a;
1009
- return C(r) || !r ? a = {
1010
- next: r ?? void 0,
1011
- error: n ?? void 0,
1012
- complete: i ?? void 0
1013
- } : a = r, o.destination = new un(a), o;
1014
- }
1015
- return t;
1016
- }(Yt);
1017
- function de(e) {
1018
- an(e);
1019
- }
1020
- function ln(e) {
1021
- throw e;
1022
- }
1023
- var hn = {
1024
- closed: !0,
1025
- next: dt,
1026
- error: ln,
1027
- complete: dt
1028
- }, cn = function() {
1029
- return typeof Symbol == "function" && Symbol.observable || "@@observable";
1030
- }();
1031
- function fn(e) {
1032
- return e;
1033
- }
1034
- function pn(e) {
1035
- return e.length === 0 ? fn : e.length === 1 ? e[0] : function(r) {
1036
- return e.reduce(function(n, i) {
1037
- return i(n);
1038
- }, r);
1039
- };
1040
- }
1041
- var mt = function() {
1042
- function e(t) {
1043
- t && (this._subscribe = t);
1044
- }
1045
- return e.prototype.lift = function(t) {
1046
- var r = new e();
1047
- return r.source = this, r.operator = t, r;
1048
- }, e.prototype.subscribe = function(t, r, n) {
1049
- var i = this, o = mn(t) ? t : new Qe(t, r, n);
1050
- return ge(function() {
1051
- var a = i, s = a.operator, l = a.source;
1052
- o.add(s ? s.call(o, l) : l ? i._subscribe(o) : i._trySubscribe(o));
1053
- }), o;
1054
- }, e.prototype._trySubscribe = function(t) {
1055
- try {
1056
- return this._subscribe(t);
1057
- } catch (r) {
1058
- t.error(r);
1059
- }
1060
- }, e.prototype.forEach = function(t, r) {
1061
- var n = this;
1062
- return r = bt(r), new r(function(i, o) {
1063
- var a = new Qe({
1064
- next: function(s) {
1065
- try {
1066
- t(s);
1067
- } catch (l) {
1068
- o(l), a.unsubscribe();
1069
- }
1070
- },
1071
- error: o,
1072
- complete: i
1073
- });
1074
- n.subscribe(a);
1075
- });
1076
- }, e.prototype._subscribe = function(t) {
1077
- var r;
1078
- return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
1079
- }, e.prototype[cn] = function() {
1080
- return this;
1081
- }, e.prototype.pipe = function() {
1082
- for (var t = [], r = 0; r < arguments.length; r++)
1083
- t[r] = arguments[r];
1084
- return pn(t)(this);
1085
- }, e.prototype.toPromise = function(t) {
1086
- var r = this;
1087
- return t = bt(t), new t(function(n, i) {
1088
- var o;
1089
- r.subscribe(function(a) {
1090
- return o = a;
1091
- }, function(a) {
1092
- return i(a);
1093
- }, function() {
1094
- return n(o);
1095
- });
1096
- });
1097
- }, e.create = function(t) {
1098
- return new e(t);
1099
- }, e;
1100
- }();
1101
- function bt(e) {
1102
- var t;
1103
- return (t = e ?? on.Promise) !== null && t !== void 0 ? t : Promise;
1104
- }
1105
- function dn(e) {
1106
- return e && C(e.next) && C(e.error) && C(e.complete);
1107
- }
1108
- function mn(e) {
1109
- return e && e instanceof Yt || dn(e) && Jt(e);
1110
- }
1111
- var bn = qt(function(e) {
1112
- return function() {
1113
- e(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1114
- };
1115
- }), Kt = function(e) {
1116
- he(t, e);
1117
- function t() {
1118
- var r = e.call(this) || this;
1119
- return r.closed = !1, r.currentObservers = null, r.observers = [], r.isStopped = !1, r.hasError = !1, r.thrownError = null, r;
1120
- }
1121
- return t.prototype.lift = function(r) {
1122
- var n = new yt(this, this);
1123
- return n.operator = r, n;
1124
- }, t.prototype._throwIfClosed = function() {
1125
- if (this.closed)
1126
- throw new bn();
1127
- }, t.prototype.next = function(r) {
1128
- var n = this;
1129
- ge(function() {
1130
- var i, o;
1131
- if (n._throwIfClosed(), !n.isStopped) {
1132
- n.currentObservers || (n.currentObservers = Array.from(n.observers));
1133
- try {
1134
- for (var a = We(n.currentObservers), s = a.next(); !s.done; s = a.next()) {
1135
- var l = s.value;
1136
- l.next(r);
1137
- }
1138
- } catch (u) {
1139
- i = { error: u };
1140
- } finally {
1141
- try {
1142
- s && !s.done && (o = a.return) && o.call(a);
1143
- } finally {
1144
- if (i)
1145
- throw i.error;
1146
- }
1147
- }
1148
- }
1149
- });
1150
- }, t.prototype.error = function(r) {
1151
- var n = this;
1152
- ge(function() {
1153
- if (n._throwIfClosed(), !n.isStopped) {
1154
- n.hasError = n.isStopped = !0, n.thrownError = r;
1155
- for (var i = n.observers; i.length; )
1156
- i.shift().error(r);
1157
- }
1158
- });
1159
- }, t.prototype.complete = function() {
1160
- var r = this;
1161
- ge(function() {
1162
- if (r._throwIfClosed(), !r.isStopped) {
1163
- r.isStopped = !0;
1164
- for (var n = r.observers; n.length; )
1165
- n.shift().complete();
1166
- }
1167
- });
1168
- }, t.prototype.unsubscribe = function() {
1169
- this.isStopped = this.closed = !0, this.observers = this.currentObservers = null;
1170
- }, Object.defineProperty(t.prototype, "observed", {
1171
- get: function() {
1172
- var r;
1173
- return ((r = this.observers) === null || r === void 0 ? void 0 : r.length) > 0;
1174
- },
1175
- enumerable: !1,
1176
- configurable: !0
1177
- }), t.prototype._trySubscribe = function(r) {
1178
- return this._throwIfClosed(), e.prototype._trySubscribe.call(this, r);
1179
- }, t.prototype._subscribe = function(r) {
1180
- return this._throwIfClosed(), this._checkFinalizedStatuses(r), this._innerSubscribe(r);
1181
- }, t.prototype._innerSubscribe = function(r) {
1182
- var n = this, i = this, o = i.hasError, a = i.isStopped, s = i.observers;
1183
- return o || a ? Qt : (this.currentObservers = null, s.push(r), new Be(function() {
1184
- n.currentObservers = null, qe(s, r);
1185
- }));
1186
- }, t.prototype._checkFinalizedStatuses = function(r) {
1187
- var n = this, i = n.hasError, o = n.thrownError, a = n.isStopped;
1188
- i ? r.error(o) : a && r.complete();
1189
- }, t.prototype.asObservable = function() {
1190
- var r = new mt();
1191
- return r.source = this, r;
1192
- }, t.create = function(r, n) {
1193
- return new yt(r, n);
1194
- }, t;
1195
- }(mt), yt = function(e) {
1196
- he(t, e);
1197
- function t(r, n) {
1198
- var i = e.call(this) || this;
1199
- return i.destination = r, i.source = n, i;
1200
- }
1201
- return t.prototype.next = function(r) {
1202
- var n, i;
1203
- (i = (n = this.destination) === null || n === void 0 ? void 0 : n.next) === null || i === void 0 || i.call(n, r);
1204
- }, t.prototype.error = function(r) {
1205
- var n, i;
1206
- (i = (n = this.destination) === null || n === void 0 ? void 0 : n.error) === null || i === void 0 || i.call(n, r);
1207
- }, t.prototype.complete = function() {
1208
- var r, n;
1209
- (n = (r = this.destination) === null || r === void 0 ? void 0 : r.complete) === null || n === void 0 || n.call(r);
1210
- }, t.prototype._subscribe = function(r) {
1211
- var n, i;
1212
- return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(r)) !== null && i !== void 0 ? i : Qt;
1213
- }, t;
1214
- }(Kt), er = {
1215
- now: function() {
1216
- return (er.delegate || Date).now();
1217
- },
1218
- delegate: void 0
1219
- }, yn = function(e) {
1220
- he(t, e);
1221
- function t(r, n, i) {
1222
- r === void 0 && (r = 1 / 0), n === void 0 && (n = 1 / 0), i === void 0 && (i = er);
1223
- var o = e.call(this) || this;
1224
- return o._bufferSize = r, o._windowTime = n, o._timestampProvider = i, o._buffer = [], o._infiniteTimeWindow = !0, o._infiniteTimeWindow = n === 1 / 0, o._bufferSize = Math.max(1, r), o._windowTime = Math.max(1, n), o;
1225
- }
1226
- return t.prototype.next = function(r) {
1227
- var n = this, i = n.isStopped, o = n._buffer, a = n._infiniteTimeWindow, s = n._timestampProvider, l = n._windowTime;
1228
- i || (o.push(r), !a && o.push(s.now() + l)), this._trimBuffer(), e.prototype.next.call(this, r);
1229
- }, t.prototype._subscribe = function(r) {
1230
- this._throwIfClosed(), this._trimBuffer();
1231
- for (var n = this._innerSubscribe(r), i = this, o = i._infiniteTimeWindow, a = i._buffer, s = a.slice(), l = 0; l < s.length && !r.closed; l += o ? 1 : 2)
1232
- r.next(s[l]);
1233
- return this._checkFinalizedStatuses(r), n;
1234
- }, t.prototype._trimBuffer = function() {
1235
- var r = this, n = r._bufferSize, i = r._timestampProvider, o = r._buffer, a = r._infiniteTimeWindow, s = (a ? 1 : 2) * n;
1236
- if (n < 1 / 0 && s < o.length && o.splice(0, o.length - s), !a) {
1237
- for (var l = i.now(), u = 0, h = 1; h < o.length && o[h] <= l; h += 2)
1238
- u = h;
1239
- u && o.splice(0, u + 1);
1240
- }
1241
- }, t;
1242
- }(Kt);
1243
- const gt = [], vt = {}, gn = (e, t = 0) => {
1244
- if (gt.indexOf(e) == -1) {
1245
- const r = new yn(t);
1246
- vt[e] = r, gt.push(e);
1247
- }
1248
- return vt[e];
1249
- }, k = [];
1250
- function vn(e, t) {
1251
- return {
1252
- subscribe: Ae(e, t).subscribe
1253
- };
1254
- }
1255
- function Ae(e, t = H) {
1256
- let r;
1257
- const n = /* @__PURE__ */ new Set();
1258
- function i(s) {
1259
- if (Rt(e, s) && (e = s, r)) {
1260
- const l = !k.length;
1261
- for (const u of n)
1262
- u[1](), k.push(u, e);
1263
- if (l) {
1264
- for (let u = 0; u < k.length; u += 2)
1265
- k[u][0](k[u + 1]);
1266
- k.length = 0;
1267
- }
1268
- }
1269
- }
1270
- function o(s) {
1271
- i(s(e));
1272
- }
1273
- function a(s, l = H) {
1274
- const u = [s, l];
1275
- return n.add(u), n.size === 1 && (r = t(i, o) || H), s(e), () => {
1276
- n.delete(u), n.size === 0 && r && (r(), r = null);
1277
- };
1278
- }
1279
- return { set: i, update: o, subscribe: a };
1280
- }
1281
- function J(e, t, r) {
1282
- const n = !Array.isArray(e), i = n ? [e] : e;
1283
- if (!i.every(Boolean))
1284
- throw new Error("derived() expects stores as input, got a falsy value");
1285
- const o = t.length < 2;
1286
- return vn(r, (a, s) => {
1287
- let l = !1;
1288
- const u = [];
1289
- let h = 0, f = H;
1290
- const c = () => {
1291
- if (h)
1292
- return;
1293
- f();
1294
- const p = t(n ? u[0] : u, a, s);
1295
- o ? a(p) : f = ae(p) ? p : H;
1296
- }, d = i.map(
1297
- (p, m) => Ut(
1298
- p,
1299
- (_) => {
1300
- u[m] = _, h &= ~(1 << m), l && c();
1301
- },
1302
- () => {
1303
- h |= 1 << m;
1304
- }
1305
- )
1306
- );
1307
- return l = !0, c(), function() {
1308
- D(d), f(), l = !1;
1309
- };
1310
- });
1311
- }
1312
- var ko = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1313
- function _n(e) {
1314
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1315
- }
1316
- var En = function(t) {
1317
- return xn(t) && !Sn(t);
1318
- };
1319
- function xn(e) {
1320
- return !!e && typeof e == "object";
1321
- }
1322
- function Sn(e) {
1323
- var t = Object.prototype.toString.call(e);
1324
- return t === "[object RegExp]" || t === "[object Date]" || Hn(e);
1325
- }
1326
- var wn = typeof Symbol == "function" && Symbol.for, Tn = wn ? Symbol.for("react.element") : 60103;
1327
- function Hn(e) {
1328
- return e.$$typeof === Tn;
1329
- }
1330
- function Bn(e) {
1331
- return Array.isArray(e) ? [] : {};
1332
- }
1333
- function oe(e, t) {
1334
- return t.clone !== !1 && t.isMergeableObject(e) ? z(Bn(e), e, t) : e;
1335
- }
1336
- function An(e, t, r) {
1337
- return e.concat(t).map(function(n) {
1338
- return oe(n, r);
1339
- });
1340
- }
1341
- function Pn(e, t) {
1342
- if (!t.customMerge)
1343
- return z;
1344
- var r = t.customMerge(e);
1345
- return typeof r == "function" ? r : z;
1346
- }
1347
- function On(e) {
1348
- return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(e).filter(function(t) {
1349
- return Object.propertyIsEnumerable.call(e, t);
1350
- }) : [];
1351
- }
1352
- function _t(e) {
1353
- return Object.keys(e).concat(On(e));
1354
- }
1355
- function tr(e, t) {
1356
- try {
1357
- return t in e;
1358
- } catch {
1359
- return !1;
1360
- }
1361
- }
1362
- function In(e, t) {
1363
- return tr(e, t) && !(Object.hasOwnProperty.call(e, t) && Object.propertyIsEnumerable.call(e, t));
1364
- }
1365
- function Ln(e, t, r) {
1366
- var n = {};
1367
- return r.isMergeableObject(e) && _t(e).forEach(function(i) {
1368
- n[i] = oe(e[i], r);
1369
- }), _t(t).forEach(function(i) {
1370
- In(e, i) || (tr(e, i) && r.isMergeableObject(t[i]) ? n[i] = Pn(i, r)(e[i], t[i], r) : n[i] = oe(t[i], r));
1371
- }), n;
1372
- }
1373
- function z(e, t, r) {
1374
- r = r || {}, r.arrayMerge = r.arrayMerge || An, r.isMergeableObject = r.isMergeableObject || En, r.cloneUnlessOtherwiseSpecified = oe;
1375
- var n = Array.isArray(t), i = Array.isArray(e), o = n === i;
1376
- return o ? n ? r.arrayMerge(e, t, r) : Ln(e, t, r) : oe(t, r);
1377
- }
1378
- z.all = function(t, r) {
1379
- if (!Array.isArray(t))
1380
- throw new Error("first argument should be an array");
1381
- return t.reduce(function(n, i) {
1382
- return z(n, i, r);
1383
- }, {});
1384
- };
1385
- var Nn = z, Mn = Nn;
1386
- const Cn = /* @__PURE__ */ _n(Mn);
1387
- var Je = function(e, t) {
1388
- return Je = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
1389
- r.__proto__ = n;
1390
- } || function(r, n) {
1391
- for (var i in n)
1392
- Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
1393
- }, Je(e, t);
1394
- };
1395
- function Pe(e, t) {
1396
- if (typeof t != "function" && t !== null)
1397
- throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
1398
- Je(e, t);
1399
- function r() {
1400
- this.constructor = e;
1401
- }
1402
- e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
1403
- }
1404
- var L = function() {
1405
- return L = Object.assign || function(t) {
1406
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1407
- r = arguments[n];
1408
- for (var o in r)
1409
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1410
- }
1411
- return t;
1412
- }, L.apply(this, arguments);
1413
- };
1414
- function $n(e, t) {
1415
- var r = {};
1416
- for (var n in e)
1417
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
1418
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
1419
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1420
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
1421
- return r;
1422
- }
1423
- function Re(e, t, r) {
1424
- if (r || arguments.length === 2)
1425
- for (var n = 0, i = t.length, o; n < i; n++)
1426
- (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
1427
- return e.concat(o || Array.prototype.slice.call(t));
1428
- }
1429
- function Ue(e, t) {
1430
- var r = t && t.cache ? t.cache : kn, n = t && t.serializer ? t.serializer : Fn, i = t && t.strategy ? t.strategy : Dn;
1431
- return i(e, {
1432
- cache: r,
1433
- serializer: n
1434
- });
1435
- }
1436
- function Rn(e) {
1437
- return e == null || typeof e == "number" || typeof e == "boolean";
1438
- }
1439
- function Un(e, t, r, n) {
1440
- var i = Rn(n) ? n : r(n), o = t.get(i);
1441
- return typeof o > "u" && (o = e.call(this, n), t.set(i, o)), o;
1442
- }
1443
- function rr(e, t, r) {
1444
- var n = Array.prototype.slice.call(arguments, 3), i = r(n), o = t.get(i);
1445
- return typeof o > "u" && (o = e.apply(this, n), t.set(i, o)), o;
1446
- }
1447
- function nr(e, t, r, n, i) {
1448
- return r.bind(t, e, n, i);
1449
- }
1450
- function Dn(e, t) {
1451
- var r = e.length === 1 ? Un : rr;
1452
- return nr(e, this, r, t.cache.create(), t.serializer);
1453
- }
1454
- function Gn(e, t) {
1455
- return nr(e, this, rr, t.cache.create(), t.serializer);
1456
- }
1457
- var Fn = function() {
1458
- return JSON.stringify(arguments);
1459
- }, jn = (
1460
- /** @class */
1461
- function() {
1462
- function e() {
1463
- this.cache = /* @__PURE__ */ Object.create(null);
1464
- }
1465
- return e.prototype.get = function(t) {
1466
- return this.cache[t];
1467
- }, e.prototype.set = function(t, r) {
1468
- this.cache[t] = r;
1469
- }, e;
1470
- }()
1471
- ), kn = {
1472
- create: function() {
1473
- return new jn();
1474
- }
1475
- }, De = {
1476
- variadic: Gn
1477
- }, we = function() {
1478
- return we = Object.assign || function(t) {
1479
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1480
- r = arguments[n];
1481
- for (var o in r)
1482
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1483
- }
1484
- return t;
1485
- }, we.apply(this, arguments);
1486
- };
1487
- var b;
1488
- (function(e) {
1489
- e[e.EXPECT_ARGUMENT_CLOSING_BRACE = 1] = "EXPECT_ARGUMENT_CLOSING_BRACE", e[e.EMPTY_ARGUMENT = 2] = "EMPTY_ARGUMENT", e[e.MALFORMED_ARGUMENT = 3] = "MALFORMED_ARGUMENT", e[e.EXPECT_ARGUMENT_TYPE = 4] = "EXPECT_ARGUMENT_TYPE", e[e.INVALID_ARGUMENT_TYPE = 5] = "INVALID_ARGUMENT_TYPE", e[e.EXPECT_ARGUMENT_STYLE = 6] = "EXPECT_ARGUMENT_STYLE", e[e.INVALID_NUMBER_SKELETON = 7] = "INVALID_NUMBER_SKELETON", e[e.INVALID_DATE_TIME_SKELETON = 8] = "INVALID_DATE_TIME_SKELETON", e[e.EXPECT_NUMBER_SKELETON = 9] = "EXPECT_NUMBER_SKELETON", e[e.EXPECT_DATE_TIME_SKELETON = 10] = "EXPECT_DATE_TIME_SKELETON", e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE = 11] = "UNCLOSED_QUOTE_IN_ARGUMENT_STYLE", e[e.EXPECT_SELECT_ARGUMENT_OPTIONS = 12] = "EXPECT_SELECT_ARGUMENT_OPTIONS", e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE = 13] = "EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE = 14] = "INVALID_PLURAL_ARGUMENT_OFFSET_VALUE", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR = 15] = "EXPECT_SELECT_ARGUMENT_SELECTOR", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR = 16] = "EXPECT_PLURAL_ARGUMENT_SELECTOR", e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT = 17] = "EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT", e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT = 18] = "EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT", e[e.INVALID_PLURAL_ARGUMENT_SELECTOR = 19] = "INVALID_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR = 20] = "DUPLICATE_PLURAL_ARGUMENT_SELECTOR", e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR = 21] = "DUPLICATE_SELECT_ARGUMENT_SELECTOR", e[e.MISSING_OTHER_CLAUSE = 22] = "MISSING_OTHER_CLAUSE", e[e.INVALID_TAG = 23] = "INVALID_TAG", e[e.INVALID_TAG_NAME = 25] = "INVALID_TAG_NAME", e[e.UNMATCHED_CLOSING_TAG = 26] = "UNMATCHED_CLOSING_TAG", e[e.UNCLOSED_TAG = 27] = "UNCLOSED_TAG";
1490
- })(b || (b = {}));
1491
- var v;
1492
- (function(e) {
1493
- e[e.literal = 0] = "literal", e[e.argument = 1] = "argument", e[e.number = 2] = "number", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.select = 5] = "select", e[e.plural = 6] = "plural", e[e.pound = 7] = "pound", e[e.tag = 8] = "tag";
1494
- })(v || (v = {}));
1495
- var Z;
1496
- (function(e) {
1497
- e[e.number = 0] = "number", e[e.dateTime = 1] = "dateTime";
1498
- })(Z || (Z = {}));
1499
- function Et(e) {
1500
- return e.type === v.literal;
1501
- }
1502
- function Vn(e) {
1503
- return e.type === v.argument;
1504
- }
1505
- function ir(e) {
1506
- return e.type === v.number;
1507
- }
1508
- function or(e) {
1509
- return e.type === v.date;
1510
- }
1511
- function sr(e) {
1512
- return e.type === v.time;
1513
- }
1514
- function ar(e) {
1515
- return e.type === v.select;
1516
- }
1517
- function ur(e) {
1518
- return e.type === v.plural;
1519
- }
1520
- function Xn(e) {
1521
- return e.type === v.pound;
1522
- }
1523
- function lr(e) {
1524
- return e.type === v.tag;
1525
- }
1526
- function hr(e) {
1527
- return !!(e && typeof e == "object" && e.type === Z.number);
1528
- }
1529
- function Ye(e) {
1530
- return !!(e && typeof e == "object" && e.type === Z.dateTime);
1531
- }
1532
- var cr = /[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/, Wn = /(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;
1533
- function zn(e) {
1534
- var t = {};
1535
- return e.replace(Wn, function(r) {
1536
- var n = r.length;
1537
- switch (r[0]) {
1538
- case "G":
1539
- t.era = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1540
- break;
1541
- case "y":
1542
- t.year = n === 2 ? "2-digit" : "numeric";
1543
- break;
1544
- case "Y":
1545
- case "u":
1546
- case "U":
1547
- case "r":
1548
- throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");
1549
- case "q":
1550
- case "Q":
1551
- throw new RangeError("`q/Q` (quarter) patterns are not supported");
1552
- case "M":
1553
- case "L":
1554
- t.month = ["numeric", "2-digit", "short", "long", "narrow"][n - 1];
1555
- break;
1556
- case "w":
1557
- case "W":
1558
- throw new RangeError("`w/W` (week) patterns are not supported");
1559
- case "d":
1560
- t.day = ["numeric", "2-digit"][n - 1];
1561
- break;
1562
- case "D":
1563
- case "F":
1564
- case "g":
1565
- throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");
1566
- case "E":
1567
- t.weekday = n === 4 ? "long" : n === 5 ? "narrow" : "short";
1568
- break;
1569
- case "e":
1570
- if (n < 4)
1571
- throw new RangeError("`e..eee` (weekday) patterns are not supported");
1572
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
1573
- break;
1574
- case "c":
1575
- if (n < 4)
1576
- throw new RangeError("`c..ccc` (weekday) patterns are not supported");
1577
- t.weekday = ["short", "long", "narrow", "short"][n - 4];
1578
- break;
1579
- case "a":
1580
- t.hour12 = !0;
1581
- break;
1582
- case "b":
1583
- case "B":
1584
- throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");
1585
- case "h":
1586
- t.hourCycle = "h12", t.hour = ["numeric", "2-digit"][n - 1];
1587
- break;
1588
- case "H":
1589
- t.hourCycle = "h23", t.hour = ["numeric", "2-digit"][n - 1];
1590
- break;
1591
- case "K":
1592
- t.hourCycle = "h11", t.hour = ["numeric", "2-digit"][n - 1];
1593
- break;
1594
- case "k":
1595
- t.hourCycle = "h24", t.hour = ["numeric", "2-digit"][n - 1];
1596
- break;
1597
- case "j":
1598
- case "J":
1599
- case "C":
1600
- throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");
1601
- case "m":
1602
- t.minute = ["numeric", "2-digit"][n - 1];
1603
- break;
1604
- case "s":
1605
- t.second = ["numeric", "2-digit"][n - 1];
1606
- break;
1607
- case "S":
1608
- case "A":
1609
- throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");
1610
- case "z":
1611
- t.timeZoneName = n < 4 ? "short" : "long";
1612
- break;
1613
- case "Z":
1614
- case "O":
1615
- case "v":
1616
- case "V":
1617
- case "X":
1618
- case "x":
1619
- throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead");
1620
- }
1621
- return "";
1622
- }), t;
1623
- }
1624
- var E = function() {
1625
- return E = Object.assign || function(t) {
1626
- for (var r, n = 1, i = arguments.length; n < i; n++) {
1627
- r = arguments[n];
1628
- for (var o in r)
1629
- Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
1630
- }
1631
- return t;
1632
- }, E.apply(this, arguments);
1633
- };
1634
- var Zn = /[\t-\r \x85\u200E\u200F\u2028\u2029]/i;
1635
- function qn(e) {
1636
- if (e.length === 0)
1637
- throw new Error("Number skeleton cannot be empty");
1638
- for (var t = e.split(Zn).filter(function(c) {
1639
- return c.length > 0;
1640
- }), r = [], n = 0, i = t; n < i.length; n++) {
1641
- var o = i[n], a = o.split("/");
1642
- if (a.length === 0)
1643
- throw new Error("Invalid number skeleton");
1644
- for (var s = a[0], l = a.slice(1), u = 0, h = l; u < h.length; u++) {
1645
- var f = h[u];
1646
- if (f.length === 0)
1647
- throw new Error("Invalid number skeleton");
1648
- }
1649
- r.push({ stem: s, options: l });
1650
- }
1651
- return r;
1652
- }
1653
- function Qn(e) {
1654
- return e.replace(/^(.*?)-/, "");
1655
- }
1656
- var xt = /^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g, fr = /^(@+)?(\+|#+)?[rs]?$/g, Jn = /(\*)(0+)|(#+)(0+)|(0+)/g, pr = /^(0+)$/;
1657
- function St(e) {
1658
- var t = {};
1659
- return e[e.length - 1] === "r" ? t.roundingPriority = "morePrecision" : e[e.length - 1] === "s" && (t.roundingPriority = "lessPrecision"), e.replace(fr, function(r, n, i) {
1660
- return typeof i != "string" ? (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length) : i === "+" ? t.minimumSignificantDigits = n.length : n[0] === "#" ? t.maximumSignificantDigits = n.length : (t.minimumSignificantDigits = n.length, t.maximumSignificantDigits = n.length + (typeof i == "string" ? i.length : 0)), "";
1661
- }), t;
1662
- }
1663
- function dr(e) {
1664
- switch (e) {
1665
- case "sign-auto":
1666
- return {
1667
- signDisplay: "auto"
1668
- };
1669
- case "sign-accounting":
1670
- case "()":
1671
- return {
1672
- currencySign: "accounting"
1673
- };
1674
- case "sign-always":
1675
- case "+!":
1676
- return {
1677
- signDisplay: "always"
1678
- };
1679
- case "sign-accounting-always":
1680
- case "()!":
1681
- return {
1682
- signDisplay: "always",
1683
- currencySign: "accounting"
1684
- };
1685
- case "sign-except-zero":
1686
- case "+?":
1687
- return {
1688
- signDisplay: "exceptZero"
1689
- };
1690
- case "sign-accounting-except-zero":
1691
- case "()?":
1692
- return {
1693
- signDisplay: "exceptZero",
1694
- currencySign: "accounting"
1695
- };
1696
- case "sign-never":
1697
- case "+_":
1698
- return {
1699
- signDisplay: "never"
1700
- };
1701
- }
1702
- }
1703
- function Yn(e) {
1704
- var t;
1705
- if (e[0] === "E" && e[1] === "E" ? (t = {
1706
- notation: "engineering"
1707
- }, e = e.slice(2)) : e[0] === "E" && (t = {
1708
- notation: "scientific"
1709
- }, e = e.slice(1)), t) {
1710
- var r = e.slice(0, 2);
1711
- if (r === "+!" ? (t.signDisplay = "always", e = e.slice(2)) : r === "+?" && (t.signDisplay = "exceptZero", e = e.slice(2)), !pr.test(e))
1712
- throw new Error("Malformed concise eng/scientific notation");
1713
- t.minimumIntegerDigits = e.length;
1714
- }
1715
- return t;
1716
- }
1717
- function wt(e) {
1718
- var t = {}, r = dr(e);
1719
- return r || t;
1720
- }
1721
- function Kn(e) {
1722
- for (var t = {}, r = 0, n = e; r < n.length; r++) {
1723
- var i = n[r];
1724
- switch (i.stem) {
1725
- case "percent":
1726
- case "%":
1727
- t.style = "percent";
1728
- continue;
1729
- case "%x100":
1730
- t.style = "percent", t.scale = 100;
1731
- continue;
1732
- case "currency":
1733
- t.style = "currency", t.currency = i.options[0];
1734
- continue;
1735
- case "group-off":
1736
- case ",_":
1737
- t.useGrouping = !1;
1738
- continue;
1739
- case "precision-integer":
1740
- case ".":
1741
- t.maximumFractionDigits = 0;
1742
- continue;
1743
- case "measure-unit":
1744
- case "unit":
1745
- t.style = "unit", t.unit = Qn(i.options[0]);
1746
- continue;
1747
- case "compact-short":
1748
- case "K":
1749
- t.notation = "compact", t.compactDisplay = "short";
1750
- continue;
1751
- case "compact-long":
1752
- case "KK":
1753
- t.notation = "compact", t.compactDisplay = "long";
1754
- continue;
1755
- case "scientific":
1756
- t = E(E(E({}, t), { notation: "scientific" }), i.options.reduce(function(l, u) {
1757
- return E(E({}, l), wt(u));
1758
- }, {}));
1759
- continue;
1760
- case "engineering":
1761
- t = E(E(E({}, t), { notation: "engineering" }), i.options.reduce(function(l, u) {
1762
- return E(E({}, l), wt(u));
1763
- }, {}));
1764
- continue;
1765
- case "notation-simple":
1766
- t.notation = "standard";
1767
- continue;
1768
- case "unit-width-narrow":
1769
- t.currencyDisplay = "narrowSymbol", t.unitDisplay = "narrow";
1770
- continue;
1771
- case "unit-width-short":
1772
- t.currencyDisplay = "code", t.unitDisplay = "short";
1773
- continue;
1774
- case "unit-width-full-name":
1775
- t.currencyDisplay = "name", t.unitDisplay = "long";
1776
- continue;
1777
- case "unit-width-iso-code":
1778
- t.currencyDisplay = "symbol";
1779
- continue;
1780
- case "scale":
1781
- t.scale = parseFloat(i.options[0]);
1782
- continue;
1783
- case "rounding-mode-floor":
1784
- t.roundingMode = "floor";
1785
- continue;
1786
- case "rounding-mode-ceiling":
1787
- t.roundingMode = "ceil";
1788
- continue;
1789
- case "rounding-mode-down":
1790
- t.roundingMode = "trunc";
1791
- continue;
1792
- case "rounding-mode-up":
1793
- t.roundingMode = "expand";
1794
- continue;
1795
- case "rounding-mode-half-even":
1796
- t.roundingMode = "halfEven";
1797
- continue;
1798
- case "rounding-mode-half-down":
1799
- t.roundingMode = "halfTrunc";
1800
- continue;
1801
- case "rounding-mode-half-up":
1802
- t.roundingMode = "halfExpand";
1803
- continue;
1804
- case "integer-width":
1805
- if (i.options.length > 1)
1806
- throw new RangeError("integer-width stems only accept a single optional option");
1807
- i.options[0].replace(Jn, function(l, u, h, f, c, d) {
1808
- if (u)
1809
- t.minimumIntegerDigits = h.length;
1810
- else {
1811
- if (f && c)
1812
- throw new Error("We currently do not support maximum integer digits");
1813
- if (d)
1814
- throw new Error("We currently do not support exact integer digits");
1815
- }
1816
- return "";
1817
- });
1818
- continue;
1819
- }
1820
- if (pr.test(i.stem)) {
1821
- t.minimumIntegerDigits = i.stem.length;
1822
- continue;
1823
- }
1824
- if (xt.test(i.stem)) {
1825
- if (i.options.length > 1)
1826
- throw new RangeError("Fraction-precision stems only accept a single optional option");
1827
- i.stem.replace(xt, function(l, u, h, f, c, d) {
1828
- return h === "*" ? t.minimumFractionDigits = u.length : f && f[0] === "#" ? t.maximumFractionDigits = f.length : c && d ? (t.minimumFractionDigits = c.length, t.maximumFractionDigits = c.length + d.length) : (t.minimumFractionDigits = u.length, t.maximumFractionDigits = u.length), "";
1829
- });
1830
- var o = i.options[0];
1831
- o === "w" ? t = E(E({}, t), { trailingZeroDisplay: "stripIfInteger" }) : o && (t = E(E({}, t), St(o)));
1832
- continue;
1833
- }
1834
- if (fr.test(i.stem)) {
1835
- t = E(E({}, t), St(i.stem));
1836
- continue;
1837
- }
1838
- var a = dr(i.stem);
1839
- a && (t = E(E({}, t), a));
1840
- var s = Yn(i.stem);
1841
- s && (t = E(E({}, t), s));
1842
- }
1843
- return t;
1844
- }
1845
- var me = {
1846
- "001": [
1847
- "H",
1848
- "h"
1849
- ],
1850
- 419: [
1851
- "h",
1852
- "H",
1853
- "hB",
1854
- "hb"
1855
- ],
1856
- AC: [
1857
- "H",
1858
- "h",
1859
- "hb",
1860
- "hB"
1861
- ],
1862
- AD: [
1863
- "H",
1864
- "hB"
1865
- ],
1866
- AE: [
1867
- "h",
1868
- "hB",
1869
- "hb",
1870
- "H"
1871
- ],
1872
- AF: [
1873
- "H",
1874
- "hb",
1875
- "hB",
1876
- "h"
1877
- ],
1878
- AG: [
1879
- "h",
1880
- "hb",
1881
- "H",
1882
- "hB"
1883
- ],
1884
- AI: [
1885
- "H",
1886
- "h",
1887
- "hb",
1888
- "hB"
1889
- ],
1890
- AL: [
1891
- "h",
1892
- "H",
1893
- "hB"
1894
- ],
1895
- AM: [
1896
- "H",
1897
- "hB"
1898
- ],
1899
- AO: [
1900
- "H",
1901
- "hB"
1902
- ],
1903
- AR: [
1904
- "h",
1905
- "H",
1906
- "hB",
1907
- "hb"
1908
- ],
1909
- AS: [
1910
- "h",
1911
- "H"
1912
- ],
1913
- AT: [
1914
- "H",
1915
- "hB"
1916
- ],
1917
- AU: [
1918
- "h",
1919
- "hb",
1920
- "H",
1921
- "hB"
1922
- ],
1923
- AW: [
1924
- "H",
1925
- "hB"
1926
- ],
1927
- AX: [
1928
- "H"
1929
- ],
1930
- AZ: [
1931
- "H",
1932
- "hB",
1933
- "h"
1934
- ],
1935
- BA: [
1936
- "H",
1937
- "hB",
1938
- "h"
1939
- ],
1940
- BB: [
1941
- "h",
1942
- "hb",
1943
- "H",
1944
- "hB"
1945
- ],
1946
- BD: [
1947
- "h",
1948
- "hB",
1949
- "H"
1950
- ],
1951
- BE: [
1952
- "H",
1953
- "hB"
1954
- ],
1955
- BF: [
1956
- "H",
1957
- "hB"
1958
- ],
1959
- BG: [
1960
- "H",
1961
- "hB",
1962
- "h"
1963
- ],
1964
- BH: [
1965
- "h",
1966
- "hB",
1967
- "hb",
1968
- "H"
1969
- ],
1970
- BI: [
1971
- "H",
1972
- "h"
1973
- ],
1974
- BJ: [
1975
- "H",
1976
- "hB"
1977
- ],
1978
- BL: [
1979
- "H",
1980
- "hB"
1981
- ],
1982
- BM: [
1983
- "h",
1984
- "hb",
1985
- "H",
1986
- "hB"
1987
- ],
1988
- BN: [
1989
- "hb",
1990
- "hB",
1991
- "h",
1992
- "H"
1993
- ],
1994
- BO: [
1995
- "h",
1996
- "H",
1997
- "hB",
1998
- "hb"
1999
- ],
2000
- BQ: [
2001
- "H"
2002
- ],
2003
- BR: [
2004
- "H",
2005
- "hB"
2006
- ],
2007
- BS: [
2008
- "h",
2009
- "hb",
2010
- "H",
2011
- "hB"
2012
- ],
2013
- BT: [
2014
- "h",
2015
- "H"
2016
- ],
2017
- BW: [
2018
- "H",
2019
- "h",
2020
- "hb",
2021
- "hB"
2022
- ],
2023
- BY: [
2024
- "H",
2025
- "h"
2026
- ],
2027
- BZ: [
2028
- "H",
2029
- "h",
2030
- "hb",
2031
- "hB"
2032
- ],
2033
- CA: [
2034
- "h",
2035
- "hb",
2036
- "H",
2037
- "hB"
2038
- ],
2039
- CC: [
2040
- "H",
2041
- "h",
2042
- "hb",
2043
- "hB"
2044
- ],
2045
- CD: [
2046
- "hB",
2047
- "H"
2048
- ],
2049
- CF: [
2050
- "H",
2051
- "h",
2052
- "hB"
2053
- ],
2054
- CG: [
2055
- "H",
2056
- "hB"
2057
- ],
2058
- CH: [
2059
- "H",
2060
- "hB",
2061
- "h"
2062
- ],
2063
- CI: [
2064
- "H",
2065
- "hB"
2066
- ],
2067
- CK: [
2068
- "H",
2069
- "h",
2070
- "hb",
2071
- "hB"
2072
- ],
2073
- CL: [
2074
- "h",
2075
- "H",
2076
- "hB",
2077
- "hb"
2078
- ],
2079
- CM: [
2080
- "H",
2081
- "h",
2082
- "hB"
2083
- ],
2084
- CN: [
2085
- "H",
2086
- "hB",
2087
- "hb",
2088
- "h"
2089
- ],
2090
- CO: [
2091
- "h",
2092
- "H",
2093
- "hB",
2094
- "hb"
2095
- ],
2096
- CP: [
2097
- "H"
2098
- ],
2099
- CR: [
2100
- "h",
2101
- "H",
2102
- "hB",
2103
- "hb"
2104
- ],
2105
- CU: [
2106
- "h",
2107
- "H",
2108
- "hB",
2109
- "hb"
2110
- ],
2111
- CV: [
2112
- "H",
2113
- "hB"
2114
- ],
2115
- CW: [
2116
- "H",
2117
- "hB"
2118
- ],
2119
- CX: [
2120
- "H",
2121
- "h",
2122
- "hb",
2123
- "hB"
2124
- ],
2125
- CY: [
2126
- "h",
2127
- "H",
2128
- "hb",
2129
- "hB"
2130
- ],
2131
- CZ: [
2132
- "H"
2133
- ],
2134
- DE: [
2135
- "H",
2136
- "hB"
2137
- ],
2138
- DG: [
2139
- "H",
2140
- "h",
2141
- "hb",
2142
- "hB"
2143
- ],
2144
- DJ: [
2145
- "h",
2146
- "H"
2147
- ],
2148
- DK: [
2149
- "H"
2150
- ],
2151
- DM: [
2152
- "h",
2153
- "hb",
2154
- "H",
2155
- "hB"
2156
- ],
2157
- DO: [
2158
- "h",
2159
- "H",
2160
- "hB",
2161
- "hb"
2162
- ],
2163
- DZ: [
2164
- "h",
2165
- "hB",
2166
- "hb",
2167
- "H"
2168
- ],
2169
- EA: [
2170
- "H",
2171
- "h",
2172
- "hB",
2173
- "hb"
2174
- ],
2175
- EC: [
2176
- "h",
2177
- "H",
2178
- "hB",
2179
- "hb"
2180
- ],
2181
- EE: [
2182
- "H",
2183
- "hB"
2184
- ],
2185
- EG: [
2186
- "h",
2187
- "hB",
2188
- "hb",
2189
- "H"
2190
- ],
2191
- EH: [
2192
- "h",
2193
- "hB",
2194
- "hb",
2195
- "H"
2196
- ],
2197
- ER: [
2198
- "h",
2199
- "H"
2200
- ],
2201
- ES: [
2202
- "H",
2203
- "hB",
2204
- "h",
2205
- "hb"
2206
- ],
2207
- ET: [
2208
- "hB",
2209
- "hb",
2210
- "h",
2211
- "H"
2212
- ],
2213
- FI: [
2214
- "H"
2215
- ],
2216
- FJ: [
2217
- "h",
2218
- "hb",
2219
- "H",
2220
- "hB"
2221
- ],
2222
- FK: [
2223
- "H",
2224
- "h",
2225
- "hb",
2226
- "hB"
2227
- ],
2228
- FM: [
2229
- "h",
2230
- "hb",
2231
- "H",
2232
- "hB"
2233
- ],
2234
- FO: [
2235
- "H",
2236
- "h"
2237
- ],
2238
- FR: [
2239
- "H",
2240
- "hB"
2241
- ],
2242
- GA: [
2243
- "H",
2244
- "hB"
2245
- ],
2246
- GB: [
2247
- "H",
2248
- "h",
2249
- "hb",
2250
- "hB"
2251
- ],
2252
- GD: [
2253
- "h",
2254
- "hb",
2255
- "H",
2256
- "hB"
2257
- ],
2258
- GE: [
2259
- "H",
2260
- "hB",
2261
- "h"
2262
- ],
2263
- GF: [
2264
- "H",
2265
- "hB"
2266
- ],
2267
- GG: [
2268
- "H",
2269
- "h",
2270
- "hb",
2271
- "hB"
2272
- ],
2273
- GH: [
2274
- "h",
2275
- "H"
2276
- ],
2277
- GI: [
2278
- "H",
2279
- "h",
2280
- "hb",
2281
- "hB"
2282
- ],
2283
- GL: [
2284
- "H",
2285
- "h"
2286
- ],
2287
- GM: [
2288
- "h",
2289
- "hb",
2290
- "H",
2291
- "hB"
2292
- ],
2293
- GN: [
2294
- "H",
2295
- "hB"
2296
- ],
2297
- GP: [
2298
- "H",
2299
- "hB"
2300
- ],
2301
- GQ: [
2302
- "H",
2303
- "hB",
2304
- "h",
2305
- "hb"
2306
- ],
2307
- GR: [
2308
- "h",
2309
- "H",
2310
- "hb",
2311
- "hB"
2312
- ],
2313
- GT: [
2314
- "h",
2315
- "H",
2316
- "hB",
2317
- "hb"
2318
- ],
2319
- GU: [
2320
- "h",
2321
- "hb",
2322
- "H",
2323
- "hB"
2324
- ],
2325
- GW: [
2326
- "H",
2327
- "hB"
2328
- ],
2329
- GY: [
2330
- "h",
2331
- "hb",
2332
- "H",
2333
- "hB"
2334
- ],
2335
- HK: [
2336
- "h",
2337
- "hB",
2338
- "hb",
2339
- "H"
2340
- ],
2341
- HN: [
2342
- "h",
2343
- "H",
2344
- "hB",
2345
- "hb"
2346
- ],
2347
- HR: [
2348
- "H",
2349
- "hB"
2350
- ],
2351
- HU: [
2352
- "H",
2353
- "h"
2354
- ],
2355
- IC: [
2356
- "H",
2357
- "h",
2358
- "hB",
2359
- "hb"
2360
- ],
2361
- ID: [
2362
- "H"
2363
- ],
2364
- IE: [
2365
- "H",
2366
- "h",
2367
- "hb",
2368
- "hB"
2369
- ],
2370
- IL: [
2371
- "H",
2372
- "hB"
2373
- ],
2374
- IM: [
2375
- "H",
2376
- "h",
2377
- "hb",
2378
- "hB"
2379
- ],
2380
- IN: [
2381
- "h",
2382
- "H"
2383
- ],
2384
- IO: [
2385
- "H",
2386
- "h",
2387
- "hb",
2388
- "hB"
2389
- ],
2390
- IQ: [
2391
- "h",
2392
- "hB",
2393
- "hb",
2394
- "H"
2395
- ],
2396
- IR: [
2397
- "hB",
2398
- "H"
2399
- ],
2400
- IS: [
2401
- "H"
2402
- ],
2403
- IT: [
2404
- "H",
2405
- "hB"
2406
- ],
2407
- JE: [
2408
- "H",
2409
- "h",
2410
- "hb",
2411
- "hB"
2412
- ],
2413
- JM: [
2414
- "h",
2415
- "hb",
2416
- "H",
2417
- "hB"
2418
- ],
2419
- JO: [
2420
- "h",
2421
- "hB",
2422
- "hb",
2423
- "H"
2424
- ],
2425
- JP: [
2426
- "H",
2427
- "K",
2428
- "h"
2429
- ],
2430
- KE: [
2431
- "hB",
2432
- "hb",
2433
- "H",
2434
- "h"
2435
- ],
2436
- KG: [
2437
- "H",
2438
- "h",
2439
- "hB",
2440
- "hb"
2441
- ],
2442
- KH: [
2443
- "hB",
2444
- "h",
2445
- "H",
2446
- "hb"
2447
- ],
2448
- KI: [
2449
- "h",
2450
- "hb",
2451
- "H",
2452
- "hB"
2453
- ],
2454
- KM: [
2455
- "H",
2456
- "h",
2457
- "hB",
2458
- "hb"
2459
- ],
2460
- KN: [
2461
- "h",
2462
- "hb",
2463
- "H",
2464
- "hB"
2465
- ],
2466
- KP: [
2467
- "h",
2468
- "H",
2469
- "hB",
2470
- "hb"
2471
- ],
2472
- KR: [
2473
- "h",
2474
- "H",
2475
- "hB",
2476
- "hb"
2477
- ],
2478
- KW: [
2479
- "h",
2480
- "hB",
2481
- "hb",
2482
- "H"
2483
- ],
2484
- KY: [
2485
- "h",
2486
- "hb",
2487
- "H",
2488
- "hB"
2489
- ],
2490
- KZ: [
2491
- "H",
2492
- "hB"
2493
- ],
2494
- LA: [
2495
- "H",
2496
- "hb",
2497
- "hB",
2498
- "h"
2499
- ],
2500
- LB: [
2501
- "h",
2502
- "hB",
2503
- "hb",
2504
- "H"
2505
- ],
2506
- LC: [
2507
- "h",
2508
- "hb",
2509
- "H",
2510
- "hB"
2511
- ],
2512
- LI: [
2513
- "H",
2514
- "hB",
2515
- "h"
2516
- ],
2517
- LK: [
2518
- "H",
2519
- "h",
2520
- "hB",
2521
- "hb"
2522
- ],
2523
- LR: [
2524
- "h",
2525
- "hb",
2526
- "H",
2527
- "hB"
2528
- ],
2529
- LS: [
2530
- "h",
2531
- "H"
2532
- ],
2533
- LT: [
2534
- "H",
2535
- "h",
2536
- "hb",
2537
- "hB"
2538
- ],
2539
- LU: [
2540
- "H",
2541
- "h",
2542
- "hB"
2543
- ],
2544
- LV: [
2545
- "H",
2546
- "hB",
2547
- "hb",
2548
- "h"
2549
- ],
2550
- LY: [
2551
- "h",
2552
- "hB",
2553
- "hb",
2554
- "H"
2555
- ],
2556
- MA: [
2557
- "H",
2558
- "h",
2559
- "hB",
2560
- "hb"
2561
- ],
2562
- MC: [
2563
- "H",
2564
- "hB"
2565
- ],
2566
- MD: [
2567
- "H",
2568
- "hB"
2569
- ],
2570
- ME: [
2571
- "H",
2572
- "hB",
2573
- "h"
2574
- ],
2575
- MF: [
2576
- "H",
2577
- "hB"
2578
- ],
2579
- MG: [
2580
- "H",
2581
- "h"
2582
- ],
2583
- MH: [
2584
- "h",
2585
- "hb",
2586
- "H",
2587
- "hB"
2588
- ],
2589
- MK: [
2590
- "H",
2591
- "h",
2592
- "hb",
2593
- "hB"
2594
- ],
2595
- ML: [
2596
- "H"
2597
- ],
2598
- MM: [
2599
- "hB",
2600
- "hb",
2601
- "H",
2602
- "h"
2603
- ],
2604
- MN: [
2605
- "H",
2606
- "h",
2607
- "hb",
2608
- "hB"
2609
- ],
2610
- MO: [
2611
- "h",
2612
- "hB",
2613
- "hb",
2614
- "H"
2615
- ],
2616
- MP: [
2617
- "h",
2618
- "hb",
2619
- "H",
2620
- "hB"
2621
- ],
2622
- MQ: [
2623
- "H",
2624
- "hB"
2625
- ],
2626
- MR: [
2627
- "h",
2628
- "hB",
2629
- "hb",
2630
- "H"
2631
- ],
2632
- MS: [
2633
- "H",
2634
- "h",
2635
- "hb",
2636
- "hB"
2637
- ],
2638
- MT: [
2639
- "H",
2640
- "h"
2641
- ],
2642
- MU: [
2643
- "H",
2644
- "h"
2645
- ],
2646
- MV: [
2647
- "H",
2648
- "h"
2649
- ],
2650
- MW: [
2651
- "h",
2652
- "hb",
2653
- "H",
2654
- "hB"
2655
- ],
2656
- MX: [
2657
- "h",
2658
- "H",
2659
- "hB",
2660
- "hb"
2661
- ],
2662
- MY: [
2663
- "hb",
2664
- "hB",
2665
- "h",
2666
- "H"
2667
- ],
2668
- MZ: [
2669
- "H",
2670
- "hB"
2671
- ],
2672
- NA: [
2673
- "h",
2674
- "H",
2675
- "hB",
2676
- "hb"
2677
- ],
2678
- NC: [
2679
- "H",
2680
- "hB"
2681
- ],
2682
- NE: [
2683
- "H"
2684
- ],
2685
- NF: [
2686
- "H",
2687
- "h",
2688
- "hb",
2689
- "hB"
2690
- ],
2691
- NG: [
2692
- "H",
2693
- "h",
2694
- "hb",
2695
- "hB"
2696
- ],
2697
- NI: [
2698
- "h",
2699
- "H",
2700
- "hB",
2701
- "hb"
2702
- ],
2703
- NL: [
2704
- "H",
2705
- "hB"
2706
- ],
2707
- NO: [
2708
- "H",
2709
- "h"
2710
- ],
2711
- NP: [
2712
- "H",
2713
- "h",
2714
- "hB"
2715
- ],
2716
- NR: [
2717
- "H",
2718
- "h",
2719
- "hb",
2720
- "hB"
2721
- ],
2722
- NU: [
2723
- "H",
2724
- "h",
2725
- "hb",
2726
- "hB"
2727
- ],
2728
- NZ: [
2729
- "h",
2730
- "hb",
2731
- "H",
2732
- "hB"
2733
- ],
2734
- OM: [
2735
- "h",
2736
- "hB",
2737
- "hb",
2738
- "H"
2739
- ],
2740
- PA: [
2741
- "h",
2742
- "H",
2743
- "hB",
2744
- "hb"
2745
- ],
2746
- PE: [
2747
- "h",
2748
- "H",
2749
- "hB",
2750
- "hb"
2751
- ],
2752
- PF: [
2753
- "H",
2754
- "h",
2755
- "hB"
2756
- ],
2757
- PG: [
2758
- "h",
2759
- "H"
2760
- ],
2761
- PH: [
2762
- "h",
2763
- "hB",
2764
- "hb",
2765
- "H"
2766
- ],
2767
- PK: [
2768
- "h",
2769
- "hB",
2770
- "H"
2771
- ],
2772
- PL: [
2773
- "H",
2774
- "h"
2775
- ],
2776
- PM: [
2777
- "H",
2778
- "hB"
2779
- ],
2780
- PN: [
2781
- "H",
2782
- "h",
2783
- "hb",
2784
- "hB"
2785
- ],
2786
- PR: [
2787
- "h",
2788
- "H",
2789
- "hB",
2790
- "hb"
2791
- ],
2792
- PS: [
2793
- "h",
2794
- "hB",
2795
- "hb",
2796
- "H"
2797
- ],
2798
- PT: [
2799
- "H",
2800
- "hB"
2801
- ],
2802
- PW: [
2803
- "h",
2804
- "H"
2805
- ],
2806
- PY: [
2807
- "h",
2808
- "H",
2809
- "hB",
2810
- "hb"
2811
- ],
2812
- QA: [
2813
- "h",
2814
- "hB",
2815
- "hb",
2816
- "H"
2817
- ],
2818
- RE: [
2819
- "H",
2820
- "hB"
2821
- ],
2822
- RO: [
2823
- "H",
2824
- "hB"
2825
- ],
2826
- RS: [
2827
- "H",
2828
- "hB",
2829
- "h"
2830
- ],
2831
- RU: [
2832
- "H"
2833
- ],
2834
- RW: [
2835
- "H",
2836
- "h"
2837
- ],
2838
- SA: [
2839
- "h",
2840
- "hB",
2841
- "hb",
2842
- "H"
2843
- ],
2844
- SB: [
2845
- "h",
2846
- "hb",
2847
- "H",
2848
- "hB"
2849
- ],
2850
- SC: [
2851
- "H",
2852
- "h",
2853
- "hB"
2854
- ],
2855
- SD: [
2856
- "h",
2857
- "hB",
2858
- "hb",
2859
- "H"
2860
- ],
2861
- SE: [
2862
- "H"
2863
- ],
2864
- SG: [
2865
- "h",
2866
- "hb",
2867
- "H",
2868
- "hB"
2869
- ],
2870
- SH: [
2871
- "H",
2872
- "h",
2873
- "hb",
2874
- "hB"
2875
- ],
2876
- SI: [
2877
- "H",
2878
- "hB"
2879
- ],
2880
- SJ: [
2881
- "H"
2882
- ],
2883
- SK: [
2884
- "H"
2885
- ],
2886
- SL: [
2887
- "h",
2888
- "hb",
2889
- "H",
2890
- "hB"
2891
- ],
2892
- SM: [
2893
- "H",
2894
- "h",
2895
- "hB"
2896
- ],
2897
- SN: [
2898
- "H",
2899
- "h",
2900
- "hB"
2901
- ],
2902
- SO: [
2903
- "h",
2904
- "H"
2905
- ],
2906
- SR: [
2907
- "H",
2908
- "hB"
2909
- ],
2910
- SS: [
2911
- "h",
2912
- "hb",
2913
- "H",
2914
- "hB"
2915
- ],
2916
- ST: [
2917
- "H",
2918
- "hB"
2919
- ],
2920
- SV: [
2921
- "h",
2922
- "H",
2923
- "hB",
2924
- "hb"
2925
- ],
2926
- SX: [
2927
- "H",
2928
- "h",
2929
- "hb",
2930
- "hB"
2931
- ],
2932
- SY: [
2933
- "h",
2934
- "hB",
2935
- "hb",
2936
- "H"
2937
- ],
2938
- SZ: [
2939
- "h",
2940
- "hb",
2941
- "H",
2942
- "hB"
2943
- ],
2944
- TA: [
2945
- "H",
2946
- "h",
2947
- "hb",
2948
- "hB"
2949
- ],
2950
- TC: [
2951
- "h",
2952
- "hb",
2953
- "H",
2954
- "hB"
2955
- ],
2956
- TD: [
2957
- "h",
2958
- "H",
2959
- "hB"
2960
- ],
2961
- TF: [
2962
- "H",
2963
- "h",
2964
- "hB"
2965
- ],
2966
- TG: [
2967
- "H",
2968
- "hB"
2969
- ],
2970
- TH: [
2971
- "H",
2972
- "h"
2973
- ],
2974
- TJ: [
2975
- "H",
2976
- "h"
2977
- ],
2978
- TL: [
2979
- "H",
2980
- "hB",
2981
- "hb",
2982
- "h"
2983
- ],
2984
- TM: [
2985
- "H",
2986
- "h"
2987
- ],
2988
- TN: [
2989
- "h",
2990
- "hB",
2991
- "hb",
2992
- "H"
2993
- ],
2994
- TO: [
2995
- "h",
2996
- "H"
2997
- ],
2998
- TR: [
2999
- "H",
3000
- "hB"
3001
- ],
3002
- TT: [
3003
- "h",
3004
- "hb",
3005
- "H",
3006
- "hB"
3007
- ],
3008
- TW: [
3009
- "hB",
3010
- "hb",
3011
- "h",
3012
- "H"
3013
- ],
3014
- TZ: [
3015
- "hB",
3016
- "hb",
3017
- "H",
3018
- "h"
3019
- ],
3020
- UA: [
3021
- "H",
3022
- "hB",
3023
- "h"
3024
- ],
3025
- UG: [
3026
- "hB",
3027
- "hb",
3028
- "H",
3029
- "h"
3030
- ],
3031
- UM: [
3032
- "h",
3033
- "hb",
3034
- "H",
3035
- "hB"
3036
- ],
3037
- US: [
3038
- "h",
3039
- "hb",
3040
- "H",
3041
- "hB"
3042
- ],
3043
- UY: [
3044
- "h",
3045
- "H",
3046
- "hB",
3047
- "hb"
3048
- ],
3049
- UZ: [
3050
- "H",
3051
- "hB",
3052
- "h"
3053
- ],
3054
- VA: [
3055
- "H",
3056
- "h",
3057
- "hB"
3058
- ],
3059
- VC: [
3060
- "h",
3061
- "hb",
3062
- "H",
3063
- "hB"
3064
- ],
3065
- VE: [
3066
- "h",
3067
- "H",
3068
- "hB",
3069
- "hb"
3070
- ],
3071
- VG: [
3072
- "h",
3073
- "hb",
3074
- "H",
3075
- "hB"
3076
- ],
3077
- VI: [
3078
- "h",
3079
- "hb",
3080
- "H",
3081
- "hB"
3082
- ],
3083
- VN: [
3084
- "H",
3085
- "h"
3086
- ],
3087
- VU: [
3088
- "h",
3089
- "H"
3090
- ],
3091
- WF: [
3092
- "H",
3093
- "hB"
3094
- ],
3095
- WS: [
3096
- "h",
3097
- "H"
3098
- ],
3099
- XK: [
3100
- "H",
3101
- "hB",
3102
- "h"
3103
- ],
3104
- YE: [
3105
- "h",
3106
- "hB",
3107
- "hb",
3108
- "H"
3109
- ],
3110
- YT: [
3111
- "H",
3112
- "hB"
3113
- ],
3114
- ZA: [
3115
- "H",
3116
- "h",
3117
- "hb",
3118
- "hB"
3119
- ],
3120
- ZM: [
3121
- "h",
3122
- "hb",
3123
- "H",
3124
- "hB"
3125
- ],
3126
- ZW: [
3127
- "H",
3128
- "h"
3129
- ],
3130
- "af-ZA": [
3131
- "H",
3132
- "h",
3133
- "hB",
3134
- "hb"
3135
- ],
3136
- "ar-001": [
3137
- "h",
3138
- "hB",
3139
- "hb",
3140
- "H"
3141
- ],
3142
- "ca-ES": [
3143
- "H",
3144
- "h",
3145
- "hB"
3146
- ],
3147
- "en-001": [
3148
- "h",
3149
- "hb",
3150
- "H",
3151
- "hB"
3152
- ],
3153
- "en-HK": [
3154
- "h",
3155
- "hb",
3156
- "H",
3157
- "hB"
3158
- ],
3159
- "en-IL": [
3160
- "H",
3161
- "h",
3162
- "hb",
3163
- "hB"
3164
- ],
3165
- "en-MY": [
3166
- "h",
3167
- "hb",
3168
- "H",
3169
- "hB"
3170
- ],
3171
- "es-BR": [
3172
- "H",
3173
- "h",
3174
- "hB",
3175
- "hb"
3176
- ],
3177
- "es-ES": [
3178
- "H",
3179
- "h",
3180
- "hB",
3181
- "hb"
3182
- ],
3183
- "es-GQ": [
3184
- "H",
3185
- "h",
3186
- "hB",
3187
- "hb"
3188
- ],
3189
- "fr-CA": [
3190
- "H",
3191
- "h",
3192
- "hB"
3193
- ],
3194
- "gl-ES": [
3195
- "H",
3196
- "h",
3197
- "hB"
3198
- ],
3199
- "gu-IN": [
3200
- "hB",
3201
- "hb",
3202
- "h",
3203
- "H"
3204
- ],
3205
- "hi-IN": [
3206
- "hB",
3207
- "h",
3208
- "H"
3209
- ],
3210
- "it-CH": [
3211
- "H",
3212
- "h",
3213
- "hB"
3214
- ],
3215
- "it-IT": [
3216
- "H",
3217
- "h",
3218
- "hB"
3219
- ],
3220
- "kn-IN": [
3221
- "hB",
3222
- "h",
3223
- "H"
3224
- ],
3225
- "ml-IN": [
3226
- "hB",
3227
- "h",
3228
- "H"
3229
- ],
3230
- "mr-IN": [
3231
- "hB",
3232
- "hb",
3233
- "h",
3234
- "H"
3235
- ],
3236
- "pa-IN": [
3237
- "hB",
3238
- "hb",
3239
- "h",
3240
- "H"
3241
- ],
3242
- "ta-IN": [
3243
- "hB",
3244
- "h",
3245
- "hb",
3246
- "H"
3247
- ],
3248
- "te-IN": [
3249
- "hB",
3250
- "h",
3251
- "H"
3252
- ],
3253
- "zu-ZA": [
3254
- "H",
3255
- "hB",
3256
- "hb",
3257
- "h"
3258
- ]
3259
- };
3260
- function ei(e, t) {
3261
- for (var r = "", n = 0; n < e.length; n++) {
3262
- var i = e.charAt(n);
3263
- if (i === "j") {
3264
- for (var o = 0; n + 1 < e.length && e.charAt(n + 1) === i; )
3265
- o++, n++;
3266
- var a = 1 + (o & 1), s = o < 2 ? 1 : 3 + (o >> 1), l = "a", u = ti(t);
3267
- for ((u == "H" || u == "k") && (s = 0); s-- > 0; )
3268
- r += l;
3269
- for (; a-- > 0; )
3270
- r = u + r;
3271
- } else
3272
- i === "J" ? r += "H" : r += i;
3273
- }
3274
- return r;
3275
- }
3276
- function ti(e) {
3277
- var t = e.hourCycle;
3278
- if (t === void 0 && // @ts-ignore hourCycle(s) is not identified yet
3279
- e.hourCycles && // @ts-ignore
3280
- e.hourCycles.length && (t = e.hourCycles[0]), t)
3281
- switch (t) {
3282
- case "h24":
3283
- return "k";
3284
- case "h23":
3285
- return "H";
3286
- case "h12":
3287
- return "h";
3288
- case "h11":
3289
- return "K";
3290
- default:
3291
- throw new Error("Invalid hourCycle");
3292
- }
3293
- var r = e.language, n;
3294
- r !== "root" && (n = e.maximize().region);
3295
- var i = me[n || ""] || me[r || ""] || me["".concat(r, "-001")] || me["001"];
3296
- return i[0];
3297
- }
3298
- var Ge, ri = new RegExp("^".concat(cr.source, "*")), ni = new RegExp("".concat(cr.source, "*$"));
3299
- function y(e, t) {
3300
- return { start: e, end: t };
3301
- }
3302
- var ii = !!String.prototype.startsWith && "_a".startsWith("a", 1), oi = !!String.fromCodePoint, si = !!Object.fromEntries, ai = !!String.prototype.codePointAt, ui = !!String.prototype.trimStart, li = !!String.prototype.trimEnd, hi = !!Number.isSafeInteger, ci = hi ? Number.isSafeInteger : function(e) {
3303
- return typeof e == "number" && isFinite(e) && Math.floor(e) === e && Math.abs(e) <= 9007199254740991;
3304
- }, Ke = !0;
3305
- try {
3306
- var fi = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3307
- Ke = ((Ge = fi.exec("a")) === null || Ge === void 0 ? void 0 : Ge[0]) === "a";
3308
- } catch {
3309
- Ke = !1;
3310
- }
3311
- var Tt = ii ? (
3312
- // Native
3313
- function(t, r, n) {
3314
- return t.startsWith(r, n);
3315
- }
3316
- ) : (
3317
- // For IE11
3318
- function(t, r, n) {
3319
- return t.slice(n, n + r.length) === r;
3320
- }
3321
- ), et = oi ? String.fromCodePoint : (
3322
- // IE11
3323
- function() {
3324
- for (var t = [], r = 0; r < arguments.length; r++)
3325
- t[r] = arguments[r];
3326
- for (var n = "", i = t.length, o = 0, a; i > o; ) {
3327
- if (a = t[o++], a > 1114111)
3328
- throw RangeError(a + " is not a valid code point");
3329
- n += a < 65536 ? String.fromCharCode(a) : String.fromCharCode(((a -= 65536) >> 10) + 55296, a % 1024 + 56320);
3330
- }
3331
- return n;
3332
- }
3333
- ), Ht = (
3334
- // native
3335
- si ? Object.fromEntries : (
3336
- // Ponyfill
3337
- function(t) {
3338
- for (var r = {}, n = 0, i = t; n < i.length; n++) {
3339
- var o = i[n], a = o[0], s = o[1];
3340
- r[a] = s;
3341
- }
3342
- return r;
3343
- }
3344
- )
3345
- ), mr = ai ? (
3346
- // Native
3347
- function(t, r) {
3348
- return t.codePointAt(r);
3349
- }
3350
- ) : (
3351
- // IE 11
3352
- function(t, r) {
3353
- var n = t.length;
3354
- if (!(r < 0 || r >= n)) {
3355
- var i = t.charCodeAt(r), o;
3356
- return i < 55296 || i > 56319 || r + 1 === n || (o = t.charCodeAt(r + 1)) < 56320 || o > 57343 ? i : (i - 55296 << 10) + (o - 56320) + 65536;
3357
- }
3358
- }
3359
- ), pi = ui ? (
3360
- // Native
3361
- function(t) {
3362
- return t.trimStart();
3363
- }
3364
- ) : (
3365
- // Ponyfill
3366
- function(t) {
3367
- return t.replace(ri, "");
3368
- }
3369
- ), di = li ? (
3370
- // Native
3371
- function(t) {
3372
- return t.trimEnd();
3373
- }
3374
- ) : (
3375
- // Ponyfill
3376
- function(t) {
3377
- return t.replace(ni, "");
3378
- }
3379
- );
3380
- function br(e, t) {
3381
- return new RegExp(e, t);
3382
- }
3383
- var tt;
3384
- if (Ke) {
3385
- var Bt = br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)", "yu");
3386
- tt = function(t, r) {
3387
- var n;
3388
- Bt.lastIndex = r;
3389
- var i = Bt.exec(t);
3390
- return (n = i[1]) !== null && n !== void 0 ? n : "";
3391
- };
3392
- } else
3393
- tt = function(t, r) {
3394
- for (var n = []; ; ) {
3395
- var i = mr(t, r);
3396
- if (i === void 0 || yr(i) || gi(i))
3397
- break;
3398
- n.push(i), r += i >= 65536 ? 2 : 1;
3399
- }
3400
- return et.apply(void 0, n);
3401
- };
3402
- var mi = (
3403
- /** @class */
3404
- function() {
3405
- function e(t, r) {
3406
- r === void 0 && (r = {}), this.message = t, this.position = { offset: 0, line: 1, column: 1 }, this.ignoreTag = !!r.ignoreTag, this.locale = r.locale, this.requiresOtherClause = !!r.requiresOtherClause, this.shouldParseSkeletons = !!r.shouldParseSkeletons;
3407
- }
3408
- return e.prototype.parse = function() {
3409
- if (this.offset() !== 0)
3410
- throw Error("parser can only be used once");
3411
- return this.parseMessage(0, "", !1);
3412
- }, e.prototype.parseMessage = function(t, r, n) {
3413
- for (var i = []; !this.isEOF(); ) {
3414
- var o = this.char();
3415
- if (o === 123) {
3416
- var a = this.parseArgument(t, n);
3417
- if (a.err)
3418
- return a;
3419
- i.push(a.val);
3420
- } else {
3421
- if (o === 125 && t > 0)
3422
- break;
3423
- if (o === 35 && (r === "plural" || r === "selectordinal")) {
3424
- var s = this.clonePosition();
3425
- this.bump(), i.push({
3426
- type: v.pound,
3427
- location: y(s, this.clonePosition())
3428
- });
3429
- } else if (o === 60 && !this.ignoreTag && this.peek() === 47) {
3430
- if (n)
3431
- break;
3432
- return this.error(b.UNMATCHED_CLOSING_TAG, y(this.clonePosition(), this.clonePosition()));
3433
- } else if (o === 60 && !this.ignoreTag && rt(this.peek() || 0)) {
3434
- var a = this.parseTag(t, r);
3435
- if (a.err)
3436
- return a;
3437
- i.push(a.val);
3438
- } else {
3439
- var a = this.parseLiteral(t, r);
3440
- if (a.err)
3441
- return a;
3442
- i.push(a.val);
3443
- }
3444
- }
3445
- }
3446
- return { val: i, err: null };
3447
- }, e.prototype.parseTag = function(t, r) {
3448
- var n = this.clonePosition();
3449
- this.bump();
3450
- var i = this.parseTagName();
3451
- if (this.bumpSpace(), this.bumpIf("/>"))
3452
- return {
3453
- val: {
3454
- type: v.literal,
3455
- value: "<".concat(i, "/>"),
3456
- location: y(n, this.clonePosition())
3457
- },
3458
- err: null
3459
- };
3460
- if (this.bumpIf(">")) {
3461
- var o = this.parseMessage(t + 1, r, !0);
3462
- if (o.err)
3463
- return o;
3464
- var a = o.val, s = this.clonePosition();
3465
- if (this.bumpIf("</")) {
3466
- if (this.isEOF() || !rt(this.char()))
3467
- return this.error(b.INVALID_TAG, y(s, this.clonePosition()));
3468
- var l = this.clonePosition(), u = this.parseTagName();
3469
- return i !== u ? this.error(b.UNMATCHED_CLOSING_TAG, y(l, this.clonePosition())) : (this.bumpSpace(), this.bumpIf(">") ? {
3470
- val: {
3471
- type: v.tag,
3472
- value: i,
3473
- children: a,
3474
- location: y(n, this.clonePosition())
3475
- },
3476
- err: null
3477
- } : this.error(b.INVALID_TAG, y(s, this.clonePosition())));
3478
- } else
3479
- return this.error(b.UNCLOSED_TAG, y(n, this.clonePosition()));
3480
- } else
3481
- return this.error(b.INVALID_TAG, y(n, this.clonePosition()));
3482
- }, e.prototype.parseTagName = function() {
3483
- var t = this.offset();
3484
- for (this.bump(); !this.isEOF() && yi(this.char()); )
3485
- this.bump();
3486
- return this.message.slice(t, this.offset());
3487
- }, e.prototype.parseLiteral = function(t, r) {
3488
- for (var n = this.clonePosition(), i = ""; ; ) {
3489
- var o = this.tryParseQuote(r);
3490
- if (o) {
3491
- i += o;
3492
- continue;
3493
- }
3494
- var a = this.tryParseUnquoted(t, r);
3495
- if (a) {
3496
- i += a;
3497
- continue;
3498
- }
3499
- var s = this.tryParseLeftAngleBracket();
3500
- if (s) {
3501
- i += s;
3502
- continue;
3503
- }
3504
- break;
3505
- }
3506
- var l = y(n, this.clonePosition());
3507
- return {
3508
- val: { type: v.literal, value: i, location: l },
3509
- err: null
3510
- };
3511
- }, e.prototype.tryParseLeftAngleBracket = function() {
3512
- return !this.isEOF() && this.char() === 60 && (this.ignoreTag || // If at the opening tag or closing tag position, bail.
3513
- !bi(this.peek() || 0)) ? (this.bump(), "<") : null;
3514
- }, e.prototype.tryParseQuote = function(t) {
3515
- if (this.isEOF() || this.char() !== 39)
3516
- return null;
3517
- switch (this.peek()) {
3518
- case 39:
3519
- return this.bump(), this.bump(), "'";
3520
- case 123:
3521
- case 60:
3522
- case 62:
3523
- case 125:
3524
- break;
3525
- case 35:
3526
- if (t === "plural" || t === "selectordinal")
3527
- break;
3528
- return null;
3529
- default:
3530
- return null;
3531
- }
3532
- this.bump();
3533
- var r = [this.char()];
3534
- for (this.bump(); !this.isEOF(); ) {
3535
- var n = this.char();
3536
- if (n === 39)
3537
- if (this.peek() === 39)
3538
- r.push(39), this.bump();
3539
- else {
3540
- this.bump();
3541
- break;
3542
- }
3543
- else
3544
- r.push(n);
3545
- this.bump();
3546
- }
3547
- return et.apply(void 0, r);
3548
- }, e.prototype.tryParseUnquoted = function(t, r) {
3549
- if (this.isEOF())
3550
- return null;
3551
- var n = this.char();
3552
- return n === 60 || n === 123 || n === 35 && (r === "plural" || r === "selectordinal") || n === 125 && t > 0 ? null : (this.bump(), et(n));
3553
- }, e.prototype.parseArgument = function(t, r) {
3554
- var n = this.clonePosition();
3555
- if (this.bump(), this.bumpSpace(), this.isEOF())
3556
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
3557
- if (this.char() === 125)
3558
- return this.bump(), this.error(b.EMPTY_ARGUMENT, y(n, this.clonePosition()));
3559
- var i = this.parseIdentifierIfPossible().value;
3560
- if (!i)
3561
- return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
3562
- if (this.bumpSpace(), this.isEOF())
3563
- return this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition()));
3564
- switch (this.char()) {
3565
- case 125:
3566
- return this.bump(), {
3567
- val: {
3568
- type: v.argument,
3569
- // value does not include the opening and closing braces.
3570
- value: i,
3571
- location: y(n, this.clonePosition())
3572
- },
3573
- err: null
3574
- };
3575
- case 44:
3576
- return this.bump(), this.bumpSpace(), this.isEOF() ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(n, this.clonePosition())) : this.parseArgumentOptions(t, r, i, n);
3577
- default:
3578
- return this.error(b.MALFORMED_ARGUMENT, y(n, this.clonePosition()));
3579
- }
3580
- }, e.prototype.parseIdentifierIfPossible = function() {
3581
- var t = this.clonePosition(), r = this.offset(), n = tt(this.message, r), i = r + n.length;
3582
- this.bumpTo(i);
3583
- var o = this.clonePosition(), a = y(t, o);
3584
- return { value: n, location: a };
3585
- }, e.prototype.parseArgumentOptions = function(t, r, n, i) {
3586
- var o, a = this.clonePosition(), s = this.parseIdentifierIfPossible().value, l = this.clonePosition();
3587
- switch (s) {
3588
- case "":
3589
- return this.error(b.EXPECT_ARGUMENT_TYPE, y(a, l));
3590
- case "number":
3591
- case "date":
3592
- case "time": {
3593
- this.bumpSpace();
3594
- var u = null;
3595
- if (this.bumpIf(",")) {
3596
- this.bumpSpace();
3597
- var h = this.clonePosition(), f = this.parseSimpleArgStyleIfPossible();
3598
- if (f.err)
3599
- return f;
3600
- var c = di(f.val);
3601
- if (c.length === 0)
3602
- return this.error(b.EXPECT_ARGUMENT_STYLE, y(this.clonePosition(), this.clonePosition()));
3603
- var d = y(h, this.clonePosition());
3604
- u = { style: c, styleLocation: d };
3605
- }
3606
- var p = this.tryParseArgumentClose(i);
3607
- if (p.err)
3608
- return p;
3609
- var m = y(i, this.clonePosition());
3610
- if (u && Tt(u?.style, "::", 0)) {
3611
- var _ = pi(u.style.slice(2));
3612
- if (s === "number") {
3613
- var f = this.parseNumberSkeletonFromString(_, u.styleLocation);
3614
- return f.err ? f : {
3615
- val: { type: v.number, value: n, location: m, style: f.val },
3616
- err: null
3617
- };
3618
- } else {
3619
- if (_.length === 0)
3620
- return this.error(b.EXPECT_DATE_TIME_SKELETON, m);
3621
- var w = _;
3622
- this.locale && (w = ei(_, this.locale));
3623
- var c = {
3624
- type: Z.dateTime,
3625
- pattern: w,
3626
- location: u.styleLocation,
3627
- parsedOptions: this.shouldParseSkeletons ? zn(w) : {}
3628
- }, P = s === "date" ? v.date : v.time;
3629
- return {
3630
- val: { type: P, value: n, location: m, style: c },
3631
- err: null
3632
- };
3633
- }
3634
- }
3635
- return {
3636
- val: {
3637
- type: s === "number" ? v.number : s === "date" ? v.date : v.time,
3638
- value: n,
3639
- location: m,
3640
- style: (o = u?.style) !== null && o !== void 0 ? o : null
3641
- },
3642
- err: null
3643
- };
3644
- }
3645
- case "plural":
3646
- case "selectordinal":
3647
- case "select": {
3648
- var x = this.clonePosition();
3649
- if (this.bumpSpace(), !this.bumpIf(","))
3650
- return this.error(b.EXPECT_SELECT_ARGUMENT_OPTIONS, y(x, we({}, x)));
3651
- this.bumpSpace();
3652
- var O = this.parseIdentifierIfPossible(), T = 0;
3653
- if (s !== "select" && O.value === "offset") {
3654
- if (!this.bumpIf(":"))
3655
- return this.error(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, y(this.clonePosition(), this.clonePosition()));
3656
- this.bumpSpace();
3657
- var f = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE, b.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);
3658
- if (f.err)
3659
- return f;
3660
- this.bumpSpace(), O = this.parseIdentifierIfPossible(), T = f.val;
3661
- }
3662
- var $ = this.tryParsePluralOrSelectOptions(t, s, r, O);
3663
- if ($.err)
3664
- return $;
3665
- var p = this.tryParseArgumentClose(i);
3666
- if (p.err)
3667
- return p;
3668
- var fe = y(i, this.clonePosition());
3669
- return s === "select" ? {
3670
- val: {
3671
- type: v.select,
3672
- value: n,
3673
- options: Ht($.val),
3674
- location: fe
3675
- },
3676
- err: null
3677
- } : {
3678
- val: {
3679
- type: v.plural,
3680
- value: n,
3681
- options: Ht($.val),
3682
- offset: T,
3683
- pluralType: s === "plural" ? "cardinal" : "ordinal",
3684
- location: fe
3685
- },
3686
- err: null
3687
- };
3688
- }
3689
- default:
3690
- return this.error(b.INVALID_ARGUMENT_TYPE, y(a, l));
3691
- }
3692
- }, e.prototype.tryParseArgumentClose = function(t) {
3693
- return this.isEOF() || this.char() !== 125 ? this.error(b.EXPECT_ARGUMENT_CLOSING_BRACE, y(t, this.clonePosition())) : (this.bump(), { val: !0, err: null });
3694
- }, e.prototype.parseSimpleArgStyleIfPossible = function() {
3695
- for (var t = 0, r = this.clonePosition(); !this.isEOF(); ) {
3696
- var n = this.char();
3697
- switch (n) {
3698
- case 39: {
3699
- this.bump();
3700
- var i = this.clonePosition();
3701
- if (!this.bumpUntil("'"))
3702
- return this.error(b.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE, y(i, this.clonePosition()));
3703
- this.bump();
3704
- break;
3705
- }
3706
- case 123: {
3707
- t += 1, this.bump();
3708
- break;
3709
- }
3710
- case 125: {
3711
- if (t > 0)
3712
- t -= 1;
3713
- else
3714
- return {
3715
- val: this.message.slice(r.offset, this.offset()),
3716
- err: null
3717
- };
3718
- break;
3719
- }
3720
- default:
3721
- this.bump();
3722
- break;
3723
- }
3724
- }
3725
- return {
3726
- val: this.message.slice(r.offset, this.offset()),
3727
- err: null
3728
- };
3729
- }, e.prototype.parseNumberSkeletonFromString = function(t, r) {
3730
- var n = [];
3731
- try {
3732
- n = qn(t);
3733
- } catch {
3734
- return this.error(b.INVALID_NUMBER_SKELETON, r);
3735
- }
3736
- return {
3737
- val: {
3738
- type: Z.number,
3739
- tokens: n,
3740
- location: r,
3741
- parsedOptions: this.shouldParseSkeletons ? Kn(n) : {}
3742
- },
3743
- err: null
3744
- };
3745
- }, e.prototype.tryParsePluralOrSelectOptions = function(t, r, n, i) {
3746
- for (var o, a = !1, s = [], l = /* @__PURE__ */ new Set(), u = i.value, h = i.location; ; ) {
3747
- if (u.length === 0) {
3748
- var f = this.clonePosition();
3749
- if (r !== "select" && this.bumpIf("=")) {
3750
- var c = this.tryParseDecimalInteger(b.EXPECT_PLURAL_ARGUMENT_SELECTOR, b.INVALID_PLURAL_ARGUMENT_SELECTOR);
3751
- if (c.err)
3752
- return c;
3753
- h = y(f, this.clonePosition()), u = this.message.slice(f.offset, this.offset());
3754
- } else
3755
- break;
3756
- }
3757
- if (l.has(u))
3758
- return this.error(r === "select" ? b.DUPLICATE_SELECT_ARGUMENT_SELECTOR : b.DUPLICATE_PLURAL_ARGUMENT_SELECTOR, h);
3759
- u === "other" && (a = !0), this.bumpSpace();
3760
- var d = this.clonePosition();
3761
- if (!this.bumpIf("{"))
3762
- return this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT : b.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT, y(this.clonePosition(), this.clonePosition()));
3763
- var p = this.parseMessage(t + 1, r, n);
3764
- if (p.err)
3765
- return p;
3766
- var m = this.tryParseArgumentClose(d);
3767
- if (m.err)
3768
- return m;
3769
- s.push([
3770
- u,
3771
- {
3772
- value: p.val,
3773
- location: y(d, this.clonePosition())
3774
- }
3775
- ]), l.add(u), this.bumpSpace(), o = this.parseIdentifierIfPossible(), u = o.value, h = o.location;
3776
- }
3777
- return s.length === 0 ? this.error(r === "select" ? b.EXPECT_SELECT_ARGUMENT_SELECTOR : b.EXPECT_PLURAL_ARGUMENT_SELECTOR, y(this.clonePosition(), this.clonePosition())) : this.requiresOtherClause && !a ? this.error(b.MISSING_OTHER_CLAUSE, y(this.clonePosition(), this.clonePosition())) : { val: s, err: null };
3778
- }, e.prototype.tryParseDecimalInteger = function(t, r) {
3779
- var n = 1, i = this.clonePosition();
3780
- this.bumpIf("+") || this.bumpIf("-") && (n = -1);
3781
- for (var o = !1, a = 0; !this.isEOF(); ) {
3782
- var s = this.char();
3783
- if (s >= 48 && s <= 57)
3784
- o = !0, a = a * 10 + (s - 48), this.bump();
3785
- else
3786
- break;
3787
- }
3788
- var l = y(i, this.clonePosition());
3789
- return o ? (a *= n, ci(a) ? { val: a, err: null } : this.error(r, l)) : this.error(t, l);
3790
- }, e.prototype.offset = function() {
3791
- return this.position.offset;
3792
- }, e.prototype.isEOF = function() {
3793
- return this.offset() === this.message.length;
3794
- }, e.prototype.clonePosition = function() {
3795
- return {
3796
- offset: this.position.offset,
3797
- line: this.position.line,
3798
- column: this.position.column
3799
- };
3800
- }, e.prototype.char = function() {
3801
- var t = this.position.offset;
3802
- if (t >= this.message.length)
3803
- throw Error("out of bound");
3804
- var r = mr(this.message, t);
3805
- if (r === void 0)
3806
- throw Error("Offset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3807
- return r;
3808
- }, e.prototype.error = function(t, r) {
3809
- return {
3810
- val: null,
3811
- err: {
3812
- kind: t,
3813
- message: this.message,
3814
- location: r
3815
- }
3816
- };
3817
- }, e.prototype.bump = function() {
3818
- if (!this.isEOF()) {
3819
- var t = this.char();
3820
- t === 10 ? (this.position.line += 1, this.position.column = 1, this.position.offset += 1) : (this.position.column += 1, this.position.offset += t < 65536 ? 1 : 2);
3821
- }
3822
- }, e.prototype.bumpIf = function(t) {
3823
- if (Tt(this.message, t, this.offset())) {
3824
- for (var r = 0; r < t.length; r++)
3825
- this.bump();
3826
- return !0;
3827
- }
3828
- return !1;
3829
- }, e.prototype.bumpUntil = function(t) {
3830
- var r = this.offset(), n = this.message.indexOf(t, r);
3831
- return n >= 0 ? (this.bumpTo(n), !0) : (this.bumpTo(this.message.length), !1);
3832
- }, e.prototype.bumpTo = function(t) {
3833
- if (this.offset() > t)
3834
- throw Error("targetOffset ".concat(t, " must be greater than or equal to the current offset ").concat(this.offset()));
3835
- for (t = Math.min(t, this.message.length); ; ) {
3836
- var r = this.offset();
3837
- if (r === t)
3838
- break;
3839
- if (r > t)
3840
- throw Error("targetOffset ".concat(t, " is at invalid UTF-16 code unit boundary"));
3841
- if (this.bump(), this.isEOF())
3842
- break;
3843
- }
3844
- }, e.prototype.bumpSpace = function() {
3845
- for (; !this.isEOF() && yr(this.char()); )
3846
- this.bump();
3847
- }, e.prototype.peek = function() {
3848
- if (this.isEOF())
3849
- return null;
3850
- var t = this.char(), r = this.offset(), n = this.message.charCodeAt(r + (t >= 65536 ? 2 : 1));
3851
- return n ?? null;
3852
- }, e;
3853
- }()
3854
- );
3855
- function rt(e) {
3856
- return e >= 97 && e <= 122 || e >= 65 && e <= 90;
3857
- }
3858
- function bi(e) {
3859
- return rt(e) || e === 47;
3860
- }
3861
- function yi(e) {
3862
- return e === 45 || e === 46 || e >= 48 && e <= 57 || e === 95 || e >= 97 && e <= 122 || e >= 65 && e <= 90 || e == 183 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8255 && e <= 8256 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
3863
- }
3864
- function yr(e) {
3865
- return e >= 9 && e <= 13 || e === 32 || e === 133 || e >= 8206 && e <= 8207 || e === 8232 || e === 8233;
3866
- }
3867
- function gi(e) {
3868
- return e >= 33 && e <= 35 || e === 36 || e >= 37 && e <= 39 || e === 40 || e === 41 || e === 42 || e === 43 || e === 44 || e === 45 || e >= 46 && e <= 47 || e >= 58 && e <= 59 || e >= 60 && e <= 62 || e >= 63 && e <= 64 || e === 91 || e === 92 || e === 93 || e === 94 || e === 96 || e === 123 || e === 124 || e === 125 || e === 126 || e === 161 || e >= 162 && e <= 165 || e === 166 || e === 167 || e === 169 || e === 171 || e === 172 || e === 174 || e === 176 || e === 177 || e === 182 || e === 187 || e === 191 || e === 215 || e === 247 || e >= 8208 && e <= 8213 || e >= 8214 && e <= 8215 || e === 8216 || e === 8217 || e === 8218 || e >= 8219 && e <= 8220 || e === 8221 || e === 8222 || e === 8223 || e >= 8224 && e <= 8231 || e >= 8240 && e <= 8248 || e === 8249 || e === 8250 || e >= 8251 && e <= 8254 || e >= 8257 && e <= 8259 || e === 8260 || e === 8261 || e === 8262 || e >= 8263 && e <= 8273 || e === 8274 || e === 8275 || e >= 8277 && e <= 8286 || e >= 8592 && e <= 8596 || e >= 8597 && e <= 8601 || e >= 8602 && e <= 8603 || e >= 8604 && e <= 8607 || e === 8608 || e >= 8609 && e <= 8610 || e === 8611 || e >= 8612 && e <= 8613 || e === 8614 || e >= 8615 && e <= 8621 || e === 8622 || e >= 8623 && e <= 8653 || e >= 8654 && e <= 8655 || e >= 8656 && e <= 8657 || e === 8658 || e === 8659 || e === 8660 || e >= 8661 && e <= 8691 || e >= 8692 && e <= 8959 || e >= 8960 && e <= 8967 || e === 8968 || e === 8969 || e === 8970 || e === 8971 || e >= 8972 && e <= 8991 || e >= 8992 && e <= 8993 || e >= 8994 && e <= 9e3 || e === 9001 || e === 9002 || e >= 9003 && e <= 9083 || e === 9084 || e >= 9085 && e <= 9114 || e >= 9115 && e <= 9139 || e >= 9140 && e <= 9179 || e >= 9180 && e <= 9185 || e >= 9186 && e <= 9254 || e >= 9255 && e <= 9279 || e >= 9280 && e <= 9290 || e >= 9291 && e <= 9311 || e >= 9472 && e <= 9654 || e === 9655 || e >= 9656 && e <= 9664 || e === 9665 || e >= 9666 && e <= 9719 || e >= 9720 && e <= 9727 || e >= 9728 && e <= 9838 || e === 9839 || e >= 9840 && e <= 10087 || e === 10088 || e === 10089 || e === 10090 || e === 10091 || e === 10092 || e === 10093 || e === 10094 || e === 10095 || e === 10096 || e === 10097 || e === 10098 || e === 10099 || e === 10100 || e === 10101 || e >= 10132 && e <= 10175 || e >= 10176 && e <= 10180 || e === 10181 || e === 10182 || e >= 10183 && e <= 10213 || e === 10214 || e === 10215 || e === 10216 || e === 10217 || e === 10218 || e === 10219 || e === 10220 || e === 10221 || e === 10222 || e === 10223 || e >= 10224 && e <= 10239 || e >= 10240 && e <= 10495 || e >= 10496 && e <= 10626 || e === 10627 || e === 10628 || e === 10629 || e === 10630 || e === 10631 || e === 10632 || e === 10633 || e === 10634 || e === 10635 || e === 10636 || e === 10637 || e === 10638 || e === 10639 || e === 10640 || e === 10641 || e === 10642 || e === 10643 || e === 10644 || e === 10645 || e === 10646 || e === 10647 || e === 10648 || e >= 10649 && e <= 10711 || e === 10712 || e === 10713 || e === 10714 || e === 10715 || e >= 10716 && e <= 10747 || e === 10748 || e === 10749 || e >= 10750 && e <= 11007 || e >= 11008 && e <= 11055 || e >= 11056 && e <= 11076 || e >= 11077 && e <= 11078 || e >= 11079 && e <= 11084 || e >= 11085 && e <= 11123 || e >= 11124 && e <= 11125 || e >= 11126 && e <= 11157 || e === 11158 || e >= 11159 && e <= 11263 || e >= 11776 && e <= 11777 || e === 11778 || e === 11779 || e === 11780 || e === 11781 || e >= 11782 && e <= 11784 || e === 11785 || e === 11786 || e === 11787 || e === 11788 || e === 11789 || e >= 11790 && e <= 11798 || e === 11799 || e >= 11800 && e <= 11801 || e === 11802 || e === 11803 || e === 11804 || e === 11805 || e >= 11806 && e <= 11807 || e === 11808 || e === 11809 || e === 11810 || e === 11811 || e === 11812 || e === 11813 || e === 11814 || e === 11815 || e === 11816 || e === 11817 || e >= 11818 && e <= 11822 || e === 11823 || e >= 11824 && e <= 11833 || e >= 11834 && e <= 11835 || e >= 11836 && e <= 11839 || e === 11840 || e === 11841 || e === 11842 || e >= 11843 && e <= 11855 || e >= 11856 && e <= 11857 || e === 11858 || e >= 11859 && e <= 11903 || e >= 12289 && e <= 12291 || e === 12296 || e === 12297 || e === 12298 || e === 12299 || e === 12300 || e === 12301 || e === 12302 || e === 12303 || e === 12304 || e === 12305 || e >= 12306 && e <= 12307 || e === 12308 || e === 12309 || e === 12310 || e === 12311 || e === 12312 || e === 12313 || e === 12314 || e === 12315 || e === 12316 || e === 12317 || e >= 12318 && e <= 12319 || e === 12320 || e === 12336 || e === 64830 || e === 64831 || e >= 65093 && e <= 65094;
3869
- }
3870
- function nt(e) {
3871
- e.forEach(function(t) {
3872
- if (delete t.location, ar(t) || ur(t))
3873
- for (var r in t.options)
3874
- delete t.options[r].location, nt(t.options[r].value);
3875
- else
3876
- ir(t) && hr(t.style) || (or(t) || sr(t)) && Ye(t.style) ? delete t.style.location : lr(t) && nt(t.children);
3877
- });
3878
- }
3879
- function vi(e, t) {
3880
- t === void 0 && (t = {}), t = we({ shouldParseSkeletons: !0, requiresOtherClause: !0 }, t);
3881
- var r = new mi(e, t).parse();
3882
- if (r.err) {
3883
- var n = SyntaxError(b[r.err.kind]);
3884
- throw n.location = r.err.location, n.originalMessage = r.err.message, n;
3885
- }
3886
- return t?.captureLocation || nt(r.val), r.val;
3887
- }
3888
- var q;
3889
- (function(e) {
3890
- e.MISSING_VALUE = "MISSING_VALUE", e.INVALID_VALUE = "INVALID_VALUE", e.MISSING_INTL_API = "MISSING_INTL_API";
3891
- })(q || (q = {}));
3892
- var Oe = (
3893
- /** @class */
3894
- function(e) {
3895
- Pe(t, e);
3896
- function t(r, n, i) {
3897
- var o = e.call(this, r) || this;
3898
- return o.code = n, o.originalMessage = i, o;
3899
- }
3900
- return t.prototype.toString = function() {
3901
- return "[formatjs Error: ".concat(this.code, "] ").concat(this.message);
3902
- }, t;
3903
- }(Error)
3904
- ), At = (
3905
- /** @class */
3906
- function(e) {
3907
- Pe(t, e);
3908
- function t(r, n, i, o) {
3909
- return e.call(this, 'Invalid values for "'.concat(r, '": "').concat(n, '". Options are "').concat(Object.keys(i).join('", "'), '"'), q.INVALID_VALUE, o) || this;
3910
- }
3911
- return t;
3912
- }(Oe)
3913
- ), _i = (
3914
- /** @class */
3915
- function(e) {
3916
- Pe(t, e);
3917
- function t(r, n, i) {
3918
- return e.call(this, 'Value for "'.concat(r, '" must be of type ').concat(n), q.INVALID_VALUE, i) || this;
3919
- }
3920
- return t;
3921
- }(Oe)
3922
- ), Ei = (
3923
- /** @class */
3924
- function(e) {
3925
- Pe(t, e);
3926
- function t(r, n) {
3927
- return e.call(this, 'The intl string context variable "'.concat(r, '" was not provided to the string "').concat(n, '"'), q.MISSING_VALUE, n) || this;
3928
- }
3929
- return t;
3930
- }(Oe)
3931
- ), S;
3932
- (function(e) {
3933
- e[e.literal = 0] = "literal", e[e.object = 1] = "object";
3934
- })(S || (S = {}));
3935
- function xi(e) {
3936
- return e.length < 2 ? e : e.reduce(function(t, r) {
3937
- var n = t[t.length - 1];
3938
- return !n || n.type !== S.literal || r.type !== S.literal ? t.push(r) : n.value += r.value, t;
3939
- }, []);
3940
- }
3941
- function Si(e) {
3942
- return typeof e == "function";
3943
- }
3944
- function ve(e, t, r, n, i, o, a) {
3945
- if (e.length === 1 && Et(e[0]))
3946
- return [
3947
- {
3948
- type: S.literal,
3949
- value: e[0].value
3950
- }
3951
- ];
3952
- for (var s = [], l = 0, u = e; l < u.length; l++) {
3953
- var h = u[l];
3954
- if (Et(h)) {
3955
- s.push({
3956
- type: S.literal,
3957
- value: h.value
3958
- });
3959
- continue;
3960
- }
3961
- if (Xn(h)) {
3962
- typeof o == "number" && s.push({
3963
- type: S.literal,
3964
- value: r.getNumberFormat(t).format(o)
3965
- });
3966
- continue;
3967
- }
3968
- var f = h.value;
3969
- if (!(i && f in i))
3970
- throw new Ei(f, a);
3971
- var c = i[f];
3972
- if (Vn(h)) {
3973
- (!c || typeof c == "string" || typeof c == "number") && (c = typeof c == "string" || typeof c == "number" ? String(c) : ""), s.push({
3974
- type: typeof c == "string" ? S.literal : S.object,
3975
- value: c
3976
- });
3977
- continue;
3978
- }
3979
- if (or(h)) {
3980
- var d = typeof h.style == "string" ? n.date[h.style] : Ye(h.style) ? h.style.parsedOptions : void 0;
3981
- s.push({
3982
- type: S.literal,
3983
- value: r.getDateTimeFormat(t, d).format(c)
3984
- });
3985
- continue;
3986
- }
3987
- if (sr(h)) {
3988
- var d = typeof h.style == "string" ? n.time[h.style] : Ye(h.style) ? h.style.parsedOptions : n.time.medium;
3989
- s.push({
3990
- type: S.literal,
3991
- value: r.getDateTimeFormat(t, d).format(c)
3992
- });
3993
- continue;
3994
- }
3995
- if (ir(h)) {
3996
- var d = typeof h.style == "string" ? n.number[h.style] : hr(h.style) ? h.style.parsedOptions : void 0;
3997
- d && d.scale && (c = c * (d.scale || 1)), s.push({
3998
- type: S.literal,
3999
- value: r.getNumberFormat(t, d).format(c)
4000
- });
4001
- continue;
4002
- }
4003
- if (lr(h)) {
4004
- var p = h.children, m = h.value, _ = i[m];
4005
- if (!Si(_))
4006
- throw new _i(m, "function", a);
4007
- var w = ve(p, t, r, n, i, o), P = _(w.map(function(T) {
4008
- return T.value;
4009
- }));
4010
- Array.isArray(P) || (P = [P]), s.push.apply(s, P.map(function(T) {
4011
- return {
4012
- type: typeof T == "string" ? S.literal : S.object,
4013
- value: T
4014
- };
4015
- }));
4016
- }
4017
- if (ar(h)) {
4018
- var x = h.options[c] || h.options.other;
4019
- if (!x)
4020
- throw new At(h.value, c, Object.keys(h.options), a);
4021
- s.push.apply(s, ve(x.value, t, r, n, i));
4022
- continue;
4023
- }
4024
- if (ur(h)) {
4025
- var x = h.options["=".concat(c)];
4026
- if (!x) {
4027
- if (!Intl.PluralRules)
4028
- throw new Oe(`Intl.PluralRules is not available in this environment.
4029
- Try polyfilling it using "@formatjs/intl-pluralrules"
4030
- `, q.MISSING_INTL_API, a);
4031
- var O = r.getPluralRules(t, { type: h.pluralType }).select(c - (h.offset || 0));
4032
- x = h.options[O] || h.options.other;
4033
- }
4034
- if (!x)
4035
- throw new At(h.value, c, Object.keys(h.options), a);
4036
- s.push.apply(s, ve(x.value, t, r, n, i, c - (h.offset || 0)));
4037
- continue;
4038
- }
4039
- }
4040
- return xi(s);
4041
- }
4042
- function wi(e, t) {
4043
- return t ? L(L(L({}, e || {}), t || {}), Object.keys(e).reduce(function(r, n) {
4044
- return r[n] = L(L({}, e[n]), t[n] || {}), r;
4045
- }, {})) : e;
4046
- }
4047
- function Ti(e, t) {
4048
- return t ? Object.keys(e).reduce(function(r, n) {
4049
- return r[n] = wi(e[n], t[n]), r;
4050
- }, L({}, e)) : e;
4051
- }
4052
- function Fe(e) {
4053
- return {
4054
- create: function() {
4055
- return {
4056
- get: function(t) {
4057
- return e[t];
4058
- },
4059
- set: function(t, r) {
4060
- e[t] = r;
4061
- }
4062
- };
4063
- }
4064
- };
4065
- }
4066
- function Hi(e) {
4067
- return e === void 0 && (e = {
4068
- number: {},
4069
- dateTime: {},
4070
- pluralRules: {}
4071
- }), {
4072
- getNumberFormat: Ue(function() {
4073
- for (var t, r = [], n = 0; n < arguments.length; n++)
4074
- r[n] = arguments[n];
4075
- return new ((t = Intl.NumberFormat).bind.apply(t, Re([void 0], r, !1)))();
4076
- }, {
4077
- cache: Fe(e.number),
4078
- strategy: De.variadic
4079
- }),
4080
- getDateTimeFormat: Ue(function() {
4081
- for (var t, r = [], n = 0; n < arguments.length; n++)
4082
- r[n] = arguments[n];
4083
- return new ((t = Intl.DateTimeFormat).bind.apply(t, Re([void 0], r, !1)))();
4084
- }, {
4085
- cache: Fe(e.dateTime),
4086
- strategy: De.variadic
4087
- }),
4088
- getPluralRules: Ue(function() {
4089
- for (var t, r = [], n = 0; n < arguments.length; n++)
4090
- r[n] = arguments[n];
4091
- return new ((t = Intl.PluralRules).bind.apply(t, Re([void 0], r, !1)))();
4092
- }, {
4093
- cache: Fe(e.pluralRules),
4094
- strategy: De.variadic
4095
- })
4096
- };
4097
- }
4098
- var Bi = (
4099
- /** @class */
4100
- function() {
4101
- function e(t, r, n, i) {
4102
- r === void 0 && (r = e.defaultLocale);
4103
- var o = this;
4104
- if (this.formatterCache = {
4105
- number: {},
4106
- dateTime: {},
4107
- pluralRules: {}
4108
- }, this.format = function(l) {
4109
- var u = o.formatToParts(l);
4110
- if (u.length === 1)
4111
- return u[0].value;
4112
- var h = u.reduce(function(f, c) {
4113
- return !f.length || c.type !== S.literal || typeof f[f.length - 1] != "string" ? f.push(c.value) : f[f.length - 1] += c.value, f;
4114
- }, []);
4115
- return h.length <= 1 ? h[0] || "" : h;
4116
- }, this.formatToParts = function(l) {
4117
- return ve(o.ast, o.locales, o.formatters, o.formats, l, void 0, o.message);
4118
- }, this.resolvedOptions = function() {
4119
- var l;
4120
- return {
4121
- locale: ((l = o.resolvedLocale) === null || l === void 0 ? void 0 : l.toString()) || Intl.NumberFormat.supportedLocalesOf(o.locales)[0]
4122
- };
4123
- }, this.getAst = function() {
4124
- return o.ast;
4125
- }, this.locales = r, this.resolvedLocale = e.resolveLocale(r), typeof t == "string") {
4126
- if (this.message = t, !e.__parse)
4127
- throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");
4128
- var a = i || {};
4129
- a.formatters;
4130
- var s = $n(a, ["formatters"]);
4131
- this.ast = e.__parse(t, L(L({}, s), { locale: this.resolvedLocale }));
4132
- } else
4133
- this.ast = t;
4134
- if (!Array.isArray(this.ast))
4135
- throw new TypeError("A message must be provided as a String or AST.");
4136
- this.formats = Ti(e.formats, n), this.formatters = i && i.formatters || Hi(this.formatterCache);
4137
- }
4138
- return Object.defineProperty(e, "defaultLocale", {
4139
- get: function() {
4140
- return e.memoizedDefaultLocale || (e.memoizedDefaultLocale = new Intl.NumberFormat().resolvedOptions().locale), e.memoizedDefaultLocale;
4141
- },
4142
- enumerable: !1,
4143
- configurable: !0
4144
- }), e.memoizedDefaultLocale = null, e.resolveLocale = function(t) {
4145
- if (!(typeof Intl.Locale > "u")) {
4146
- var r = Intl.NumberFormat.supportedLocalesOf(t);
4147
- return r.length > 0 ? new Intl.Locale(r[0]) : new Intl.Locale(typeof t == "string" ? t : t[0]);
4148
- }
4149
- }, e.__parse = vi, e.formats = {
4150
- number: {
4151
- integer: {
4152
- maximumFractionDigits: 0
4153
- },
4154
- currency: {
4155
- style: "currency"
4156
- },
4157
- percent: {
4158
- style: "percent"
4159
- }
4160
- },
4161
- date: {
4162
- short: {
4163
- month: "numeric",
4164
- day: "numeric",
4165
- year: "2-digit"
4166
- },
4167
- medium: {
4168
- month: "short",
4169
- day: "numeric",
4170
- year: "numeric"
4171
- },
4172
- long: {
4173
- month: "long",
4174
- day: "numeric",
4175
- year: "numeric"
4176
- },
4177
- full: {
4178
- weekday: "long",
4179
- month: "long",
4180
- day: "numeric",
4181
- year: "numeric"
4182
- }
4183
- },
4184
- time: {
4185
- short: {
4186
- hour: "numeric",
4187
- minute: "numeric"
4188
- },
4189
- medium: {
4190
- hour: "numeric",
4191
- minute: "numeric",
4192
- second: "numeric"
4193
- },
4194
- long: {
4195
- hour: "numeric",
4196
- minute: "numeric",
4197
- second: "numeric",
4198
- timeZoneName: "short"
4199
- },
4200
- full: {
4201
- hour: "numeric",
4202
- minute: "numeric",
4203
- second: "numeric",
4204
- timeZoneName: "short"
4205
- }
4206
- }
4207
- }, e;
4208
- }()
4209
- );
4210
- function Ai(e, t) {
4211
- if (t == null)
4212
- return;
4213
- if (t in e)
4214
- return e[t];
4215
- const r = t.split(".");
4216
- let n = e;
4217
- for (let i = 0; i < r.length; i++)
4218
- if (typeof n == "object") {
4219
- if (i > 0) {
4220
- const o = r.slice(i, r.length).join(".");
4221
- if (o in n) {
4222
- n = n[o];
4223
- break;
4224
- }
4225
- }
4226
- n = n[r[i]];
4227
- } else
4228
- n = void 0;
4229
- return n;
4230
- }
4231
- const U = {}, Pi = (e, t, r) => r && (t in U || (U[t] = {}), e in U[t] || (U[t][e] = r), r), gr = (e, t) => {
4232
- if (t == null)
4233
- return;
4234
- if (t in U && e in U[t])
4235
- return U[t][e];
4236
- const r = Ie(t);
4237
- for (let n = 0; n < r.length; n++) {
4238
- const i = r[n], o = Ii(i, e);
4239
- if (o)
4240
- return Pi(e, t, o);
4241
- }
4242
- };
4243
- let ut;
4244
- const ce = Ae({});
4245
- function Oi(e) {
4246
- return ut[e] || null;
4247
- }
4248
- function vr(e) {
4249
- return e in ut;
4250
- }
4251
- function Ii(e, t) {
4252
- if (!vr(e))
4253
- return null;
4254
- const r = Oi(e);
4255
- return Ai(r, t);
4256
- }
4257
- function Li(e) {
4258
- if (e == null)
4259
- return;
4260
- const t = Ie(e);
4261
- for (let r = 0; r < t.length; r++) {
4262
- const n = t[r];
4263
- if (vr(n))
4264
- return n;
4265
- }
4266
- }
4267
- function _r(e, ...t) {
4268
- delete U[e], ce.update((r) => (r[e] = Cn.all([r[e] || {}, ...t]), r));
4269
- }
4270
- J(
4271
- [ce],
4272
- ([e]) => Object.keys(e)
4273
- );
4274
- ce.subscribe((e) => ut = e);
4275
- const _e = {};
4276
- function Ni(e, t) {
4277
- _e[e].delete(t), _e[e].size === 0 && delete _e[e];
4278
- }
4279
- function Er(e) {
4280
- return _e[e];
4281
- }
4282
- function Mi(e) {
4283
- return Ie(e).map((t) => {
4284
- const r = Er(t);
4285
- return [t, r ? [...r] : []];
4286
- }).filter(([, t]) => t.length > 0);
4287
- }
4288
- function it(e) {
4289
- return e == null ? !1 : Ie(e).some(
4290
- (t) => {
4291
- var r;
4292
- return (r = Er(t)) == null ? void 0 : r.size;
4293
- }
4294
- );
4295
- }
4296
- function Ci(e, t) {
4297
- return Promise.all(
4298
- t.map((n) => (Ni(e, n), n().then((i) => i.default || i)))
4299
- ).then((n) => _r(e, ...n));
4300
- }
4301
- const re = {};
4302
- function xr(e) {
4303
- if (!it(e))
4304
- return e in re ? re[e] : Promise.resolve();
4305
- const t = Mi(e);
4306
- return re[e] = Promise.all(
4307
- t.map(
4308
- ([r, n]) => Ci(r, n)
4309
- )
4310
- ).then(() => {
4311
- if (it(e))
4312
- return xr(e);
4313
- delete re[e];
4314
- }), re[e];
4315
- }
4316
- const $i = {
4317
- number: {
4318
- scientific: { notation: "scientific" },
4319
- engineering: { notation: "engineering" },
4320
- compactLong: { notation: "compact", compactDisplay: "long" },
4321
- compactShort: { notation: "compact", compactDisplay: "short" }
4322
- },
4323
- date: {
4324
- short: { month: "numeric", day: "numeric", year: "2-digit" },
4325
- medium: { month: "short", day: "numeric", year: "numeric" },
4326
- long: { month: "long", day: "numeric", year: "numeric" },
4327
- full: { weekday: "long", month: "long", day: "numeric", year: "numeric" }
4328
- },
4329
- time: {
4330
- short: { hour: "numeric", minute: "numeric" },
4331
- medium: { hour: "numeric", minute: "numeric", second: "numeric" },
4332
- long: {
4333
- hour: "numeric",
4334
- minute: "numeric",
4335
- second: "numeric",
4336
- timeZoneName: "short"
4337
- },
4338
- full: {
4339
- hour: "numeric",
4340
- minute: "numeric",
4341
- second: "numeric",
4342
- timeZoneName: "short"
4343
- }
4344
- }
4345
- }, Ri = {
4346
- fallbackLocale: null,
4347
- loadingDelay: 200,
4348
- formats: $i,
4349
- warnOnMissingMessages: !0,
4350
- handleMissingMessage: void 0,
4351
- ignoreTag: !0
4352
- }, Ui = Ri;
4353
- function Q() {
4354
- return Ui;
4355
- }
4356
- const je = Ae(!1);
4357
- var Di = Object.defineProperty, Gi = Object.defineProperties, Fi = Object.getOwnPropertyDescriptors, Pt = Object.getOwnPropertySymbols, ji = Object.prototype.hasOwnProperty, ki = Object.prototype.propertyIsEnumerable, Ot = (e, t, r) => t in e ? Di(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Vi = (e, t) => {
4358
- for (var r in t || (t = {}))
4359
- ji.call(t, r) && Ot(e, r, t[r]);
4360
- if (Pt)
4361
- for (var r of Pt(t))
4362
- ki.call(t, r) && Ot(e, r, t[r]);
4363
- return e;
4364
- }, Xi = (e, t) => Gi(e, Fi(t));
4365
- let ot;
4366
- const Te = Ae(null);
4367
- function It(e) {
4368
- return e.split("-").map((t, r, n) => n.slice(0, r + 1).join("-")).reverse();
4369
- }
4370
- function Ie(e, t = Q().fallbackLocale) {
4371
- const r = It(e);
4372
- return t ? [.../* @__PURE__ */ new Set([...r, ...It(t)])] : r;
4373
- }
4374
- function F() {
4375
- return ot ?? void 0;
4376
- }
4377
- Te.subscribe((e) => {
4378
- ot = e ?? void 0, typeof window < "u" && e != null && document.documentElement.setAttribute("lang", e);
4379
- });
4380
- const Wi = (e) => {
4381
- if (e && Li(e) && it(e)) {
4382
- const { loadingDelay: t } = Q();
4383
- let r;
4384
- return typeof window < "u" && F() != null && t ? r = window.setTimeout(
4385
- () => je.set(!0),
4386
- t
4387
- ) : je.set(!0), xr(e).then(() => {
4388
- Te.set(e);
4389
- }).finally(() => {
4390
- clearTimeout(r), je.set(!1);
4391
- });
4392
- }
4393
- return Te.set(e);
4394
- }, Y = Xi(Vi({}, Te), {
4395
- set: Wi
4396
- }), Le = (e) => {
4397
- const t = /* @__PURE__ */ Object.create(null);
4398
- return (n) => {
4399
- const i = JSON.stringify(n);
4400
- return i in t ? t[i] : t[i] = e(n);
4401
- };
4402
- };
4403
- var zi = Object.defineProperty, He = Object.getOwnPropertySymbols, Sr = Object.prototype.hasOwnProperty, wr = Object.prototype.propertyIsEnumerable, Lt = (e, t, r) => t in e ? zi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, lt = (e, t) => {
4404
- for (var r in t || (t = {}))
4405
- Sr.call(t, r) && Lt(e, r, t[r]);
4406
- if (He)
4407
- for (var r of He(t))
4408
- wr.call(t, r) && Lt(e, r, t[r]);
4409
- return e;
4410
- }, K = (e, t) => {
4411
- var r = {};
4412
- for (var n in e)
4413
- Sr.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
4414
- if (e != null && He)
4415
- for (var n of He(e))
4416
- t.indexOf(n) < 0 && wr.call(e, n) && (r[n] = e[n]);
4417
- return r;
4418
- };
4419
- const se = (e, t) => {
4420
- const { formats: r } = Q();
4421
- if (e in r && t in r[e])
4422
- return r[e][t];
4423
- throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`);
4424
- }, Zi = Le(
4425
- (e) => {
4426
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4427
- if (r == null)
4428
- throw new Error('[svelte-i18n] A "locale" must be set to format numbers');
4429
- return n && (i = se("number", n)), new Intl.NumberFormat(r, i);
4430
- }
4431
- ), qi = Le(
4432
- (e) => {
4433
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4434
- if (r == null)
4435
- throw new Error('[svelte-i18n] A "locale" must be set to format dates');
4436
- return n ? i = se("date", n) : Object.keys(i).length === 0 && (i = se("date", "short")), new Intl.DateTimeFormat(r, i);
4437
- }
4438
- ), Qi = Le(
4439
- (e) => {
4440
- var t = e, { locale: r, format: n } = t, i = K(t, ["locale", "format"]);
4441
- if (r == null)
4442
- throw new Error(
4443
- '[svelte-i18n] A "locale" must be set to format time values'
4444
- );
4445
- return n ? i = se("time", n) : Object.keys(i).length === 0 && (i = se("time", "short")), new Intl.DateTimeFormat(r, i);
4446
- }
4447
- ), Ji = (e = {}) => {
4448
- var t = e, {
4449
- locale: r = F()
4450
- } = t, n = K(t, [
4451
- "locale"
4452
- ]);
4453
- return Zi(lt({ locale: r }, n));
4454
- }, Yi = (e = {}) => {
4455
- var t = e, {
4456
- locale: r = F()
4457
- } = t, n = K(t, [
4458
- "locale"
4459
- ]);
4460
- return qi(lt({ locale: r }, n));
4461
- }, Ki = (e = {}) => {
4462
- var t = e, {
4463
- locale: r = F()
4464
- } = t, n = K(t, [
4465
- "locale"
4466
- ]);
4467
- return Qi(lt({ locale: r }, n));
4468
- }, eo = Le(
4469
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4470
- (e, t = F()) => new Bi(e, t, Q().formats, {
4471
- ignoreTag: Q().ignoreTag
4472
- })
4473
- ), to = (e, t = {}) => {
4474
- var r, n, i, o;
4475
- let a = t;
4476
- typeof e == "object" && (a = e, e = a.id);
4477
- const {
4478
- values: s,
4479
- locale: l = F(),
4480
- default: u
4481
- } = a;
4482
- if (l == null)
4483
- throw new Error(
4484
- "[svelte-i18n] Cannot format a message without first setting the initial locale."
4485
- );
4486
- let h = gr(e, l);
4487
- if (!h)
4488
- h = (o = (i = (n = (r = Q()).handleMissingMessage) == null ? void 0 : n.call(r, { locale: l, id: e, defaultValue: u })) != null ? i : u) != null ? o : e;
4489
- else if (typeof h != "string")
4490
- return console.warn(
4491
- `[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`
4492
- ), h;
4493
- if (!s)
4494
- return h;
4495
- let f = h;
4496
- try {
4497
- f = eo(h, l).format(s);
4498
- } catch (c) {
4499
- c instanceof Error && console.warn(
4500
- `[svelte-i18n] Message "${e}" has syntax error:`,
4501
- c.message
4502
- );
4503
- }
4504
- return f;
4505
- }, ro = (e, t) => Ki(t).format(e), no = (e, t) => Yi(t).format(e), io = (e, t) => Ji(t).format(e), oo = (e, t = F()) => gr(e, t), so = J([Y, ce], () => to);
4506
- J([Y], () => ro);
4507
- J([Y], () => no);
4508
- J([Y], () => io);
4509
- J([Y, ce], () => oo);
4510
- window.emWidgets = { topic: gn };
4511
- const Vo = (e) => !!(e.toLowerCase().match(/android/i) || e.toLowerCase().match(/blackberry|bb/i) || e.toLowerCase().match(/iphone|ipad|ipod/i) || e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)), Tr = (e) => e.toLowerCase().match(/android/i) ? "Android" : e.toLowerCase().match(/iphone/i) ? "iPhone" : e.toLowerCase().match(/ipad|ipod/i) ? "iPad" : "PC", Xo = (e) => e.match(/CustomNative/i) ? "NativeApp" : Tr(e) === "PC" ? "Desktop" : "Mobile";
4512
- function Wo(e, t) {
4513
- const r = () => !0;
4514
- switch (typeof e) {
4515
- case "string": {
4516
- const n = e.trim();
4517
- return n && isFinite(Number(n)) && r();
4518
- }
4519
- case "number":
4520
- return isFinite(e) && r();
4521
- default:
4522
- return !1;
4523
- }
4524
- }
4525
- String(Number.MAX_SAFE_INTEGER).length;
4526
- function Nt(e, t) {
4527
- if (e) {
4528
- const r = document.createElement("style");
4529
- r.innerHTML = t, e.appendChild(r);
4530
- }
4531
- }
4532
- function ao(e, t) {
4533
- if (!e || !t)
4534
- return;
4535
- const r = new URL(t);
4536
- fetch(r.href).then((n) => n.text()).then((n) => {
4537
- const i = document.createElement("style");
4538
- i.innerHTML = n, e && e.appendChild(i);
4539
- }).catch((n) => {
4540
- console.error("There was an error while trying to load client styling from URL", n);
4541
- });
4542
- }
4543
- function uo(e, t, r) {
4544
- if (window.emMessageBus) {
4545
- const n = document.createElement("style");
4546
- window.emMessageBus.subscribe(t, (i) => {
4547
- n.innerHTML = i, e && e.appendChild(n);
4548
- });
4549
- }
4550
- }
4551
- const lo = (e, t = {}) => {
4552
- const r = new CustomEvent("track-custom-event", {
4553
- detail: {
4554
- type: e,
4555
- data: t
4556
- },
4557
- bubbles: !0,
4558
- composed: !0
4559
- });
4560
- document.dispatchEvent(r);
4561
- };
4562
- function Mt(e, t) {
4563
- _r(e, t);
4564
- }
4565
- function ho(e) {
4566
- Y.set(e);
4567
- }
4568
- const Ct = {
4569
- en: {
4570
- logoutButton: "Logout"
4571
- },
4572
- "zh-hk": {
4573
- logoutButton: "登出"
4574
- },
4575
- fr: {
4576
- logoutButton: "Déconnexion"
4577
- },
4578
- tr: {
4579
- logoutButton: "Çıkış Yap"
4580
- },
4581
- ro: {
4582
- logoutButton: "Iesire"
4583
- },
4584
- es: {
4585
- logoutButton: "Cerrar sesión"
4586
- },
4587
- pt: {
4588
- logoutButton: "Sair"
4589
- },
4590
- hr: {
4591
- logoutButton: "Odjava"
4592
- },
4593
- "pt-br": {
4594
- logoutButton: "Fechar Sessão"
4595
- },
4596
- "es-mx": {
4597
- logoutButton: "Cerrar sesión"
4598
- },
4599
- "en-us": {
4600
- logoutButton: "Logout"
4601
- }
4602
- };
4603
- function co(e) {
4604
- Mr(e, "svelte-xtnqa3", "*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.PlayerAccountMenuItemBox{padding:20px;font-size:16px;display:inline-flex;width:100%;box-sizing:border-box;align-items:center;cursor:pointer}.PlayerAccountMenuItemBox .PlayerLogoutText{margin-left:20px}.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox{height:auto;justify-content:center;position:relative;display:flex;width:unset;padding:0}.PlayerAccountMenuItemBoxMobile.PlayerAccountMenuItemBox svg{fill:var(--emw--pam-typography-color-nav-bg, var(--emw--color-white, #FFFFFF))}");
4605
- }
4606
- function fo(e) {
4607
- let t, r, n, i = (
4608
- /*$_*/
4609
- e[2]("logoutButton") + ""
4610
- ), o, a, s;
4611
- return {
4612
- c() {
4613
- t = N("div"), r = N("button"), n = N("span"), o = le(i), B(t, "class", "GeneralLogout");
4614
- },
4615
- m(l, u) {
4616
- ue(l, t, u), A(t, r), A(r, n), A(n, o), a || (s = kt(
4617
- r,
4618
- "click",
4619
- /*click_handler_1*/
4620
- e[14]
4621
- ), a = !0);
4622
- },
4623
- p(l, u) {
4624
- u & /*$_*/
4625
- 4 && i !== (i = /*$_*/
4626
- l[2]("logoutButton") + "") && Vt(o, i);
4627
- },
4628
- d(l) {
4629
- l && G(t), a = !1, s();
4630
- }
4631
- };
4632
- }
4633
- function po(e) {
4634
- let t, r, n, i, o, a, s, l, u, h, f, c = !/*isMobile*/
4635
- e[3] && mo(e);
4636
- return {
4637
- c() {
4638
- t = N("p"), r = N("span"), n = ee("svg"), i = ee("defs"), o = ee("style"), a = le(".a88316b4-2478-4a69-b2eb-d32a5fb419dd{fill:var(--emw--color-white, #FFFFFF);}"), s = ee("path"), l = ee("path"), u = $r(), c && c.c(), B(s, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), B(s, "d", "M147.16,67.69,115.42,36a9.6,9.6,0,1,0-13.58,13.58l15.32,15.31H49.58a9.63,9.63,0,1,0,0,19.26h67.58L101.84,99.42a9.64,9.64,0,0,0,6.79,16.43,9.41,9.41,0,0,0,6.79-2.85l31.74-31.73a9.53,9.53,0,0,0,0-13.58Z"), B(l, "class", "a88316b4-2478-4a69-b2eb-d32a5fb419dd"), B(l, "d", "M45.16,122.16H19.26V26.79H45.32a9.63,9.63,0,1,0,0-19.26H9.63A9.56,9.56,0,0,0,0,17.16V131.63a9.57,9.57,0,0,0,9.63,9.64H45.32A9.57,9.57,0,0,0,55,131.63a9.78,9.78,0,0,0-9.79-9.47Z"), B(n, "id", "bbfaf345-72af-4296-bf4b-2fd41fc03d5d"), B(n, "data-name", "Layer 1"), B(n, "xmlns", "http://www.w3.org/2000/svg"), B(n, "viewBox", "0 0 150 150"), Ur(r, "width", /*isMobile*/
4639
- e[3] ? (
4640
- /*mediaQuery*/
4641
- e[4].matches ? "20px" : "24px"
4642
- ) : "20px"), B(t, "class", "PlayerAccountMenuItemBox " + /*isMobile*/
4643
- (e[3] ? "PlayerAccountMenuItemBoxMobile" : "") + " " + /*mediaQuery*/
4644
- (e[4].matches && /*isMobile*/
4645
- e[3] ? "PlayerAccountMenuItemBoxTablet" : ""));
4646
- },
4647
- m(d, p) {
4648
- ue(d, t, p), A(t, r), A(r, n), A(n, i), A(i, o), A(o, a), A(n, s), A(n, l), A(t, u), c && c.m(t, null), h || (f = kt(
4649
- t,
4650
- "click",
4651
- /*click_handler*/
4652
- e[13]
4653
- ), h = !0);
4654
- },
4655
- p(d, p) {
4656
- /*isMobile*/
4657
- d[3] || c.p(d, p);
4658
- },
4659
- d(d) {
4660
- d && G(t), c && c.d(), h = !1, f();
4661
- }
4662
- };
4663
- }
4664
- function mo(e) {
4665
- let t, r = (
4666
- /*$_*/
4667
- e[2]("logoutButton") + ""
4668
- ), n;
4669
- return {
4670
- c() {
4671
- t = N("span"), n = le(r), B(t, "class", "PlayerLogoutText");
4672
- },
4673
- m(i, o) {
4674
- ue(i, t, o), A(t, n);
4675
- },
4676
- p(i, o) {
4677
- o & /*$_*/
4678
- 4 && r !== (r = /*$_*/
4679
- i[2]("logoutButton") + "") && Vt(n, r);
4680
- },
4681
- d(i) {
4682
- i && G(t);
4683
- }
4684
- };
4685
- }
4686
- function bo(e) {
4687
- let t;
4688
- function r(o, a) {
4689
- return (
4690
- /*buttonlocation*/
4691
- o[0] === "PlayerAccountMenu" ? po : fo
4692
- );
4693
- }
4694
- let n = r(e), i = n(e);
4695
- return {
4696
- c() {
4697
- t = N("div"), i.c();
4698
- },
4699
- m(o, a) {
4700
- ue(o, t, a), i.m(t, null), e[15](t);
4701
- },
4702
- p(o, [a]) {
4703
- n === (n = r(o)) && i ? i.p(o, a) : (i.d(1), i = n(o), i && (i.c(), i.m(t, null)));
4704
- },
4705
- i: H,
4706
- o: H,
4707
- d(o) {
4708
- o && G(t), i.d(), e[15](null);
4709
- }
4710
- };
4711
- }
4712
- function yo(e, t, r) {
4713
- let n;
4714
- Ir(e, so, (g) => r(2, n = g));
4715
- let { endpoint: i = "" } = t, { session: o = "" } = t, { buttonlocation: a = "" } = t, { lang: s = "" } = t, { mbsource: l } = t, { clientstyling: u = "" } = t, { clientstylingurl: h = "" } = t, { translationurl: f = "" } = t, c = "", d = !1, p, m = window.navigator.userAgent, _ = Tr(m) !== "PC";
4716
- const w = window.matchMedia("(min-width: 768px)"), P = () => {
4717
- fetch(f).then((R) => R.json()).then((R) => {
4718
- Object.keys(R).forEach((Ne) => {
4719
- Mt(Ne, R[Ne]);
4720
- });
4721
- }).catch((R) => {
4722
- console.log(R);
4723
- });
4724
- };
4725
- Object.keys(Ct).forEach((g) => {
4726
- Mt(g, Ct[g]);
4727
- });
4728
- const x = () => {
4729
- let g = new Headers();
4730
- g.append("Content-type", "application/json"), g.append("X-SessionID", o);
4731
- let R = { method: "DELETE", headers: g };
4732
- fetch(`${i}/v1/player/session/player`, R).then((Ne) => {
4733
- window.postMessage({ type: "LogoutSuccessfull" }, window.location.href), lo("logged_out", {});
4734
- });
4735
- }, O = () => (i || (c = "GENERAL-LOGOUT - Endpoint is missing! Please provide a valid endpointURL.", d = !0, console.error(c)), o || (c = "GENERAL-LOGOUT - Session is missing! Please provide a valid session.", d = !0, console.error(c)), d), T = () => {
4736
- ho(s);
4737
- };
4738
- Xr(() => () => {
4739
- });
4740
- const $ = () => x(), fe = () => x();
4741
- function Br(g) {
4742
- ke[g ? "unshift" : "push"](() => {
4743
- p = g, r(1, p);
4744
- });
4745
- }
4746
- return e.$$set = (g) => {
4747
- "endpoint" in g && r(6, i = g.endpoint), "session" in g && r(7, o = g.session), "buttonlocation" in g && r(0, a = g.buttonlocation), "lang" in g && r(8, s = g.lang), "mbsource" in g && r(9, l = g.mbsource), "clientstyling" in g && r(10, u = g.clientstyling), "clientstylingurl" in g && r(11, h = g.clientstylingurl), "translationurl" in g && r(12, f = g.translationurl);
4748
- }, e.$$.update = () => {
4749
- e.$$.dirty & /*endpoint, session, buttonlocation*/
4750
- 193 && i && o && a && O(), e.$$.dirty & /*lang*/
4751
- 256 && s && T(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4752
- 1026 && u && p && Nt(), e.$$.dirty & /*clientstyling, customStylingContainer*/
4753
- 1026 && u && p && Nt(p, u), e.$$.dirty & /*clientstylingurl, customStylingContainer*/
4754
- 2050 && h && p && ao(p, h), e.$$.dirty & /*mbsource, customStylingContainer*/
4755
- 514 && l && p && uo(p, `${l}.Style`), e.$$.dirty & /*translationurl*/
4756
- 4096 && f && P();
4757
- }, [
4758
- a,
4759
- p,
4760
- n,
4761
- _,
4762
- w,
4763
- x,
4764
- i,
4765
- o,
4766
- s,
4767
- l,
4768
- u,
4769
- h,
4770
- f,
4771
- $,
4772
- fe,
4773
- Br
4774
- ];
4775
- }
4776
- class Hr extends rn {
4777
- constructor(t) {
4778
- super(), en(
4779
- this,
4780
- t,
4781
- yo,
4782
- bo,
4783
- Rt,
4784
- {
4785
- endpoint: 6,
4786
- session: 7,
4787
- buttonlocation: 0,
4788
- lang: 8,
4789
- mbsource: 9,
4790
- clientstyling: 10,
4791
- clientstylingurl: 11,
4792
- translationurl: 12
4793
- },
4794
- co
4795
- );
4796
- }
4797
- get endpoint() {
4798
- return this.$$.ctx[6];
4799
- }
4800
- set endpoint(t) {
4801
- this.$$set({ endpoint: t }), I();
4802
- }
4803
- get session() {
4804
- return this.$$.ctx[7];
4805
- }
4806
- set session(t) {
4807
- this.$$set({ session: t }), I();
4808
- }
4809
- get buttonlocation() {
4810
- return this.$$.ctx[0];
4811
- }
4812
- set buttonlocation(t) {
4813
- this.$$set({ buttonlocation: t }), I();
4814
- }
4815
- get lang() {
4816
- return this.$$.ctx[8];
4817
- }
4818
- set lang(t) {
4819
- this.$$set({ lang: t }), I();
4820
- }
4821
- get mbsource() {
4822
- return this.$$.ctx[9];
4823
- }
4824
- set mbsource(t) {
4825
- this.$$set({ mbsource: t }), I();
4826
- }
4827
- get clientstyling() {
4828
- return this.$$.ctx[10];
4829
- }
4830
- set clientstyling(t) {
4831
- this.$$set({ clientstyling: t }), I();
4832
- }
4833
- get clientstylingurl() {
4834
- return this.$$.ctx[11];
4835
- }
4836
- set clientstylingurl(t) {
4837
- this.$$set({ clientstylingurl: t }), I();
4838
- }
4839
- get translationurl() {
4840
- return this.$$.ctx[12];
4841
- }
4842
- set translationurl(t) {
4843
- this.$$set({ translationurl: t }), I();
4844
- }
4845
- }
4846
- tn(Hr, { endpoint: {}, session: {}, buttonlocation: {}, lang: {}, mbsource: {}, clientstyling: {}, clientstylingurl: {}, translationurl: {} }, [], [], !0);
4847
- const zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4848
- __proto__: null,
4849
- default: Hr
4850
- }, Symbol.toStringTag, { value: "Module" }));
4851
- export {
4852
- Y as $,
4853
- uo as A,
4854
- tn as B,
4855
- Bo as C,
4856
- jo as D,
4857
- Ho as E,
4858
- ce as F,
4859
- Xo as G,
4860
- Ro as H,
4861
- To as I,
4862
- ae as J,
4863
- vo as K,
4864
- Go as L,
4865
- qr as M,
4866
- Eo as N,
4867
- xo as O,
4868
- _o as P,
4869
- Ao as Q,
4870
- Mo as R,
4871
- rn as S,
4872
- Io as T,
4873
- No as U,
4874
- Lo as V,
4875
- Se as W,
4876
- Vo as X,
4877
- Ur as Y,
4878
- wo as Z,
4879
- Uo as _,
4880
- _r as a,
4881
- Do as a0,
4882
- So as a1,
4883
- go as a2,
4884
- Ar as a3,
4885
- Fo as a4,
4886
- _n as a5,
4887
- ko as a6,
4888
- Oo as a7,
4889
- $o as a8,
4890
- Wo as a9,
4891
- zo as aa,
4892
- Mr as b,
4893
- Vt as c,
4894
- G as d,
4895
- B as e,
4896
- I as f,
4897
- Po as g,
4898
- ue as h,
4899
- en as i,
4900
- A as j,
4901
- N as k,
4902
- kt as l,
4903
- $r as m,
4904
- H as n,
4905
- Co as o,
4906
- Ir as p,
4907
- so as q,
4908
- D as r,
4909
- Rt as s,
4910
- le as t,
4911
- Tr as u,
4912
- Xr as v,
4913
- ee as w,
4914
- ke as x,
4915
- Nt as y,
4916
- ao as z
4917
- };