@saasquatch/mint-components 1.5.0-7 → 1.5.0-73

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 (759) hide show
  1. package/CHANGELOG.md +156 -24
  2. package/dist/cjs/GenericTableView-2cdb4c5d.js +108 -0
  3. package/dist/cjs/{jss-preset-default.esm-6304d24f.js → JSS-c65a40f1.js} +5 -3
  4. package/dist/cjs/ShadowViewAddon-fbbacd12.js +2228 -0
  5. package/dist/cjs/extends-08099afd.js +21 -0
  6. package/dist/cjs/{global-89f66e76.js → global-58d95b21.js} +82 -185
  7. package/dist/cjs/{index.module-c0bf9df0.js → index.module-54724339.js} +51 -50
  8. package/dist/cjs/insertcss-04580cfa.js +47 -0
  9. package/dist/cjs/loader.cjs.js +7 -5
  10. package/dist/cjs/luxon-59ca7d19.js +8348 -0
  11. package/dist/cjs/mint-components.cjs.js +7 -5
  12. package/dist/cjs/{sqm-asset-card-view-07f86880.js → sqm-asset-card-view-d9ac6a95.js} +2 -3
  13. package/dist/cjs/sqm-asset-card.cjs.entry.js +8 -7
  14. package/dist/cjs/sqm-big-stat-view-e5dc0877.js +40 -0
  15. package/dist/cjs/sqm-big-stat.cjs.entry.js +10 -8
  16. package/dist/cjs/sqm-brand_28.cjs.entry.js +7262 -0
  17. package/dist/cjs/sqm-form-message.cjs.entry.js +31 -0
  18. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +9 -8
  19. package/dist/cjs/{sqm-hero-view-bb3d00a1.js → sqm-hero-view-a13795c0.js} +6 -7
  20. package/dist/cjs/sqm-hero.cjs.entry.js +7 -6
  21. package/dist/cjs/sqm-image_4.cjs.entry.js +200 -0
  22. package/dist/cjs/sqm-leaderboard-rank-view-35015d30.js +10 -0
  23. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +12 -13
  24. package/dist/cjs/{sqm-name-fields-view-24614ac7.js → sqm-name-fields-view-c95e4768.js} +2 -3
  25. package/dist/cjs/sqm-name-fields.cjs.entry.js +9 -8
  26. package/dist/cjs/{sqm-navigation-sidebar-item-view-a2bdcf05.js → sqm-navigation-sidebar-item-view-da648fbc.js} +7 -6
  27. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +10 -9
  28. package/dist/cjs/{sqm-navigation-sidebar-view-d06e1885.js → sqm-navigation-sidebar-view-36632c96.js} +2 -3
  29. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -4
  30. package/dist/cjs/sqm-password-field.cjs.entry.js +581 -0
  31. package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -5
  32. package/dist/cjs/{sqm-portal-container-view-d144735a.js → sqm-portal-container-view-fdfb3656.js} +9 -5
  33. package/dist/cjs/{sqm-portal-email-verification-view-5093ac20.js → sqm-portal-email-verification-view-f42557ca.js} +5 -6
  34. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +24 -15
  35. package/dist/cjs/{sqm-portal-footer-view-03408484.js → sqm-portal-footer-view-5e6903c9.js} +3 -4
  36. package/dist/cjs/sqm-portal-footer.cjs.entry.js +10 -8
  37. package/dist/cjs/{sqm-portal-forgot-password-view-1704d285.js → sqm-portal-forgot-password-view-10c0b54f.js} +3 -4
  38. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +30 -17
  39. package/dist/cjs/sqm-portal-logout.cjs.entry.js +7 -6
  40. package/dist/cjs/{sqm-portal-profile-view-fa2db439.js → sqm-portal-profile-view-637d2fe7.js} +5 -6
  41. package/dist/cjs/sqm-portal-profile.cjs.entry.js +20 -18
  42. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +10 -9
  43. package/dist/cjs/{sqm-portal-reset-password-view-4d78fd6d.js → sqm-portal-reset-password-view-1fdc957e.js} +3 -4
  44. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +27 -18
  45. package/dist/cjs/{sqm-portal-section-view-3b008930.js → sqm-portal-section-view-186a5f7e.js} +4 -6
  46. package/dist/cjs/{sqm-portal-verify-email-view-b595e302.js → sqm-portal-verify-email-view-4c78e231.js} +3 -4
  47. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +29 -20
  48. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +491 -0
  49. package/dist/cjs/sqm-refresh-button.cjs.entry.js +54 -0
  50. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +765 -0
  51. package/dist/cjs/{sqm-stat-container-view-ee7b00ff.js → sqm-stat-container-view-5b2db929.js} +3 -4
  52. package/dist/cjs/sqm-stat-container.cjs.entry.js +6 -5
  53. package/dist/cjs/sqm-stencilbook.cjs.entry.js +14212 -0
  54. package/dist/cjs/sqm-tab-group.cjs.entry.js +20 -0
  55. package/dist/cjs/sqm-tab-panel.cjs.entry.js +20 -0
  56. package/dist/cjs/sqm-tab.cjs.entry.js +20 -0
  57. package/dist/cjs/{sqm-text-span-view-b5ae787b.js → sqm-text-span-view-f101dedf.js} +2 -3
  58. package/dist/cjs/sqm-text-span.cjs.entry.js +5 -4
  59. package/dist/cjs/{extends-0302d27d.js → stencil-hooks.module-87a1f4f7.js} +0 -19
  60. package/dist/cjs/use-callback-e754042f.js +7 -0
  61. package/dist/cjs/useChildElements-4bc9b219.js +61 -0
  62. package/dist/cjs/{useDemoBigStat-5d71bbdf.js → useDemoBigStat-426e3319.js} +22 -48
  63. package/dist/cjs/useReferralTable-e473585e.js +348 -0
  64. package/dist/cjs/{utils-95e5317c.js → utils-01dbfd4a.js} +9 -0
  65. package/dist/collection/collection-manifest.json +44 -5
  66. package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +2 -4
  67. package/dist/collection/components/sqm-big-stat/BigStat.stories.js +8 -1
  68. package/dist/collection/components/sqm-big-stat/sqm-big-stat-view.js +2 -4
  69. package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +21 -1
  70. package/dist/collection/components/sqm-big-stat/useBigStat.js +14 -4
  71. package/dist/collection/components/sqm-big-stat/useDemoBigStat.js +2 -0
  72. package/dist/collection/components/sqm-brand/sqm-brand.js +32 -2
  73. package/dist/collection/components/sqm-card-feed/CardFeed.stories.js +104 -0
  74. package/dist/collection/components/sqm-card-feed/sqm-card-feed-view.js +27 -0
  75. package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +79 -0
  76. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +2 -4
  77. package/dist/collection/components/sqm-hero/sqm-hero-view.js +2 -4
  78. package/dist/collection/components/sqm-hero-image/HeroImage.stories.js +40 -0
  79. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +134 -0
  80. package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +515 -0
  81. package/dist/collection/components/sqm-image/Image.stories.js +25 -0
  82. package/dist/collection/components/sqm-image/sqm-image-view.js +33 -0
  83. package/dist/collection/components/sqm-image/sqm-image.js +180 -0
  84. package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +525 -11
  85. package/dist/collection/components/sqm-leaderboard/UseLeaderboard.stories.js +62 -8
  86. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +86 -11
  87. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.css +21 -1
  88. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +173 -12
  89. package/dist/collection/components/sqm-leaderboard/useLeaderboard.js +31 -3
  90. package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +1 -4
  91. package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +1 -1
  92. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +2 -4
  93. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +2 -4
  94. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +5 -5
  95. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +1 -1
  96. package/dist/collection/components/sqm-password-field/passwordValidation.js +2 -4
  97. package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +2 -4
  98. package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password-view.js +2 -4
  99. package/dist/collection/components/sqm-portal-container/PortalContainer.stories.js +32 -0
  100. package/dist/collection/components/sqm-portal-container/sqm-portal-container-view.js +9 -6
  101. package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +78 -0
  102. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification-view.js +4 -6
  103. package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +27 -0
  104. package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +2 -1
  105. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +2 -4
  106. package/dist/collection/components/sqm-portal-forgot-password/PortalForgotPassword.stories.js +4 -0
  107. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +2 -4
  108. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +55 -3
  109. package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +4 -2
  110. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +2 -4
  111. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +6 -0
  112. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +3 -5
  113. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +59 -4
  114. package/dist/collection/components/sqm-portal-login/usePortalLogin.js +4 -2
  115. package/dist/collection/components/sqm-portal-profile/PortalProfile.stories.js +1 -7
  116. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +2 -4
  117. package/dist/collection/components/sqm-portal-register/PortalRegister.stories.js +12 -0
  118. package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +3 -4
  119. package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +56 -2
  120. package/dist/collection/components/sqm-portal-register/usePortalRegister.js +3 -0
  121. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password-view.js +3 -5
  122. package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +30 -1
  123. package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +1 -1
  124. package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +2 -4
  125. package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +30 -1
  126. package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +2 -2
  127. package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +28 -44
  128. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +33 -30
  129. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +7 -47
  130. package/dist/collection/components/sqm-program-explainer-step/ProgramExplainerStep.stories.js +5 -17
  131. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +43 -38
  132. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +33 -10
  133. package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +78 -0
  134. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +52 -0
  135. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +100 -0
  136. package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe-view.js +2 -4
  137. package/dist/collection/components/sqm-referral-table/ReferralTable.stories.js +95 -66
  138. package/dist/collection/components/sqm-referral-table/ReferralTableCell.stories.js +1 -1
  139. package/dist/collection/components/sqm-referral-table/ReferralTableRewardsCell.stories.js +25 -25
  140. package/dist/collection/components/sqm-referral-table/UseReferralTable.stories.js +119 -0
  141. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-date-cell.js +23 -5
  142. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +197 -26
  143. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-status-cell.js +14 -1
  144. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-user-cell.js +2 -3
  145. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +9 -5
  146. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +156 -3
  147. package/dist/collection/components/sqm-referral-table/sqm-referral-table-view.js +3 -7
  148. package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +162 -15
  149. package/dist/collection/components/sqm-referral-table/useReferralTable.js +379 -16
  150. package/dist/collection/components/sqm-refresh-button/RefreshButtonView.js +8 -0
  151. package/dist/collection/components/sqm-refresh-button/sqm-refresh-button.js +66 -0
  152. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeList.stories.js +7 -6
  153. package/dist/collection/components/sqm-reward-exchange-list/RewardExchangeListData.js +105 -23
  154. package/dist/collection/components/sqm-reward-exchange-list/assets/Reward-image.png +0 -0
  155. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +320 -206
  156. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +256 -14
  157. package/dist/collection/components/sqm-reward-exchange-list/useRewardExchangeList.js +20 -8
  158. package/dist/collection/components/sqm-rewards-table/RewardsTable.stories.js +67 -0
  159. package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +214 -0
  160. package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +79 -1
  161. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.js +22 -3
  162. package/dist/collection/components/sqm-rewards-table/cells/{sqm-rewards-table-rewards-cell.js → sqm-rewards-table-reward-cell.js} +89 -53
  163. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +142 -30
  164. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +155 -2
  165. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +8 -4
  166. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +42 -16
  167. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +83 -3
  168. package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +34 -6
  169. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table.js +158 -16
  170. package/dist/collection/components/sqm-rewards-table/useRewardsTable.js +28 -19
  171. package/dist/collection/components/sqm-share-button/ShareButton.stories.js +59 -6
  172. package/dist/collection/components/sqm-share-button/sqm-share-button-view.js +67 -11
  173. package/dist/collection/components/sqm-share-button/sqm-share-button.js +71 -13
  174. package/dist/collection/components/sqm-share-button/useShareButton.js +1 -1
  175. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +2 -4
  176. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +3 -5
  177. package/dist/collection/components/sqm-stencilbook/AutoColor.js +10 -10
  178. package/dist/collection/components/sqm-stencilbook/Themes.js +3 -11
  179. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +21 -1
  180. package/dist/collection/components/sqm-tab/sqm-tab.js +19 -0
  181. package/dist/collection/components/sqm-tab-group/sqm-tab-group.js +19 -0
  182. package/dist/collection/components/sqm-tab-panel/sqm-tab-panel.js +19 -0
  183. package/dist/collection/{tables → components/sqm-table-cell}/sqm-table-cell.js +0 -0
  184. package/dist/collection/{tables → components/sqm-table-row}/sqm-table-row.js +0 -0
  185. package/dist/collection/components/sqm-task-card/DetailsView.js +53 -0
  186. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +169 -164
  187. package/dist/collection/components/sqm-task-card/UseTaskCard.stories.js +28 -2
  188. package/dist/collection/components/sqm-task-card/progress-bar/SVGs.js +1 -1
  189. package/dist/collection/components/sqm-task-card/progress-bar/progress-bar-view.js +349 -319
  190. package/dist/collection/components/sqm-task-card/sqm-task-card-view.js +247 -205
  191. package/dist/collection/components/sqm-task-card/sqm-task-card.js +227 -25
  192. package/dist/collection/components/sqm-task-card/useTaskCard.js +43 -0
  193. package/dist/collection/components/sqm-text/sqm-text.js +18 -18
  194. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +2 -4
  195. package/dist/collection/components/sqm-timeline/SVGs.js +10 -0
  196. package/dist/collection/components/sqm-timeline/Timeline.stories.js +64 -0
  197. package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +203 -0
  198. package/dist/collection/components/sqm-timeline/sqm-timeline.js +115 -0
  199. package/dist/collection/components/sqm-titled-section/TitledSection.stories.js +233 -0
  200. package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +4 -7
  201. package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +39 -3
  202. package/dist/collection/components/sqm-user-name/sqm-user-name.js +1 -1
  203. package/dist/collection/components/sqm-user-name/useUserName.js +1 -1
  204. package/dist/collection/global/global.js +1 -1
  205. package/dist/collection/global/styles.js +14 -72
  206. package/dist/collection/global/styles.ts +14 -72
  207. package/dist/collection/stories/NewPortal.stories.js +17 -19
  208. package/dist/collection/styling/JSS.js +9 -0
  209. package/dist/collection/tables/GenericTableView.js +87 -35
  210. package/dist/collection/tables/TableSlots.js +9 -1
  211. package/dist/collection/utils/RequiredPropsError.js +2 -4
  212. package/dist/collection/utils/utils.js +8 -0
  213. package/dist/esm/GenericTableView-79b65de0.js +106 -0
  214. package/dist/esm/{jss-preset-default.esm-71fae192.js → JSS-96eeab98.js} +5 -2
  215. package/dist/esm/ShadowViewAddon-98630948.js +2209 -0
  216. package/dist/esm/extends-c31f1eff.js +19 -0
  217. package/dist/esm/{global-e0e25c22.js → global-58010a55.js} +20 -121
  218. package/dist/esm/{index.module-eb50a8d2.js → index.module-ec3dcc82.js} +11 -10
  219. package/dist/esm/insertcss-bcaf3818.js +45 -0
  220. package/dist/esm/loader.js +7 -5
  221. package/dist/esm/luxon-5fa22651.js +8346 -0
  222. package/dist/esm/mint-components.js +7 -5
  223. package/dist/esm/{sqm-asset-card-view-6f360937.js → sqm-asset-card-view-f9ca5345.js} +2 -3
  224. package/dist/esm/sqm-asset-card.entry.js +7 -6
  225. package/dist/esm/sqm-big-stat-view-309f7c1f.js +38 -0
  226. package/dist/esm/sqm-big-stat.entry.js +8 -6
  227. package/dist/esm/sqm-brand_28.entry.js +7231 -0
  228. package/dist/esm/sqm-form-message.entry.js +27 -0
  229. package/dist/esm/sqm-graphql-client-provider.entry.js +7 -6
  230. package/dist/esm/{sqm-hero-view-bfd8abd1.js → sqm-hero-view-190bc812.js} +4 -5
  231. package/dist/esm/sqm-hero.entry.js +6 -5
  232. package/dist/esm/sqm-image_4.entry.js +193 -0
  233. package/dist/esm/sqm-leaderboard-rank-view-da91f5f3.js +8 -0
  234. package/dist/esm/sqm-leaderboard-rank.entry.js +10 -11
  235. package/dist/esm/{sqm-name-fields-view-4162fb7b.js → sqm-name-fields-view-69b1583f.js} +2 -3
  236. package/dist/esm/sqm-name-fields.entry.js +7 -6
  237. package/dist/esm/{sqm-navigation-sidebar-item-view-2d8c368c.js → sqm-navigation-sidebar-item-view-a6f7f96c.js} +7 -6
  238. package/dist/esm/sqm-navigation-sidebar-item.entry.js +9 -8
  239. package/dist/esm/{sqm-navigation-sidebar-view-2242502c.js → sqm-navigation-sidebar-view-816558e3.js} +2 -3
  240. package/dist/esm/sqm-navigation-sidebar.entry.js +4 -3
  241. package/dist/esm/sqm-password-field.entry.js +577 -0
  242. package/dist/esm/sqm-popup-container.entry.js +5 -4
  243. package/dist/esm/{sqm-portal-container-view-73757ca5.js → sqm-portal-container-view-f74db584.js} +9 -5
  244. package/dist/esm/{sqm-portal-email-verification-view-2af31979.js → sqm-portal-email-verification-view-2c8bfca8.js} +5 -6
  245. package/dist/esm/sqm-portal-email-verification.entry.js +19 -10
  246. package/dist/esm/{sqm-portal-footer-view-60cd9ae5.js → sqm-portal-footer-view-a6c21fb9.js} +4 -5
  247. package/dist/esm/sqm-portal-footer.entry.js +9 -7
  248. package/dist/esm/{sqm-portal-forgot-password-view-e3a6a716.js → sqm-portal-forgot-password-view-fa088f83.js} +3 -4
  249. package/dist/esm/sqm-portal-forgot-password.entry.js +25 -12
  250. package/dist/esm/sqm-portal-logout.entry.js +6 -5
  251. package/dist/esm/{sqm-portal-profile-view-f1deea0f.js → sqm-portal-profile-view-6a4ab589.js} +5 -6
  252. package/dist/esm/sqm-portal-profile.entry.js +13 -11
  253. package/dist/esm/sqm-portal-protected-route.entry.js +8 -7
  254. package/dist/esm/{sqm-portal-reset-password-view-a4e50da2.js → sqm-portal-reset-password-view-73e14282.js} +3 -4
  255. package/dist/esm/sqm-portal-reset-password.entry.js +23 -14
  256. package/dist/esm/{sqm-portal-section-view-f0876545.js → sqm-portal-section-view-88a80af9.js} +4 -6
  257. package/dist/esm/{sqm-portal-verify-email-view-6f18bac2.js → sqm-portal-verify-email-view-cbf1cfdc.js} +3 -4
  258. package/dist/esm/sqm-portal-verify-email.entry.js +21 -12
  259. package/dist/esm/sqm-referral-table_11.entry.js +477 -0
  260. package/dist/esm/sqm-refresh-button.entry.js +50 -0
  261. package/dist/esm/sqm-rewards-table_9.entry.js +753 -0
  262. package/dist/esm/{sqm-stat-container-view-4133feb6.js → sqm-stat-container-view-8a565c5a.js} +3 -4
  263. package/dist/esm/sqm-stat-container.entry.js +5 -4
  264. package/dist/esm/sqm-stencilbook.entry.js +14208 -0
  265. package/dist/esm/sqm-tab-group.entry.js +16 -0
  266. package/dist/esm/sqm-tab-panel.entry.js +16 -0
  267. package/dist/esm/sqm-tab.entry.js +16 -0
  268. package/dist/esm/{sqm-text-span-view-1781df94.js → sqm-text-span-view-7e61c95c.js} +2 -3
  269. package/dist/esm/sqm-text-span.entry.js +4 -3
  270. package/dist/esm/{extends-3a3f9fe2.js → stencil-hooks.module-2f159754.js} +1 -19
  271. package/dist/esm/{use-callback-b38a1523.js → use-callback-d8ef4b5d.js} +1 -1
  272. package/dist/esm/{re-render-6d5b856e.js → useChildElements-c11d6189.js} +21 -6
  273. package/dist/esm/{useDemoBigStat-d227b2f9.js → useDemoBigStat-022e116d.js} +20 -45
  274. package/dist/esm/useReferralTable-bccb9ac0.js +345 -0
  275. package/dist/esm/{utils-454405f5.js → utils-1d345130.js} +9 -1
  276. package/dist/esm-es5/GenericTableView-79b65de0.js +1 -0
  277. package/dist/esm-es5/{jss-preset-default.esm-71fae192.js → JSS-96eeab98.js} +2 -2
  278. package/dist/esm-es5/ShadowViewAddon-98630948.js +1 -0
  279. package/dist/esm-es5/extends-c31f1eff.js +1 -0
  280. package/dist/esm-es5/{global-e0e25c22.js → global-58010a55.js} +2 -2
  281. package/dist/esm-es5/index.module-ec3dcc82.js +1 -0
  282. package/dist/esm-es5/insertcss-bcaf3818.js +1 -0
  283. package/dist/esm-es5/loader.js +1 -1
  284. package/dist/esm-es5/luxon-5fa22651.js +1 -0
  285. package/dist/esm-es5/mint-components.js +1 -1
  286. package/dist/esm-es5/sqm-asset-card-view-f9ca5345.js +1 -0
  287. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  288. package/dist/esm-es5/sqm-big-stat-view-309f7c1f.js +1 -0
  289. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  290. package/dist/esm-es5/sqm-brand_28.entry.js +1 -0
  291. package/dist/esm-es5/sqm-form-message.entry.js +1 -0
  292. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  293. package/dist/esm-es5/sqm-hero-view-190bc812.js +1 -0
  294. package/dist/esm-es5/sqm-hero.entry.js +1 -1
  295. package/dist/esm-es5/sqm-image_4.entry.js +1 -0
  296. package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +1 -0
  297. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  298. package/dist/esm-es5/sqm-name-fields-view-69b1583f.js +1 -0
  299. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  300. package/dist/esm-es5/sqm-navigation-sidebar-item-view-a6f7f96c.js +1 -0
  301. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  302. package/dist/esm-es5/sqm-navigation-sidebar-view-816558e3.js +1 -0
  303. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  304. package/dist/esm-es5/sqm-password-field.entry.js +1 -0
  305. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  306. package/dist/esm-es5/sqm-portal-container-view-f74db584.js +1 -0
  307. package/dist/esm-es5/sqm-portal-email-verification-view-2c8bfca8.js +1 -0
  308. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  309. package/dist/esm-es5/sqm-portal-footer-view-a6c21fb9.js +1 -0
  310. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  311. package/dist/esm-es5/sqm-portal-forgot-password-view-fa088f83.js +1 -0
  312. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  313. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  314. package/dist/esm-es5/sqm-portal-profile-view-6a4ab589.js +1 -0
  315. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  316. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  317. package/dist/esm-es5/sqm-portal-reset-password-view-73e14282.js +1 -0
  318. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  319. package/dist/esm-es5/sqm-portal-section-view-88a80af9.js +1 -0
  320. package/dist/esm-es5/sqm-portal-verify-email-view-cbf1cfdc.js +1 -0
  321. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  322. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -0
  323. package/dist/esm-es5/sqm-refresh-button.entry.js +1 -0
  324. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -0
  325. package/dist/esm-es5/sqm-stat-container-view-8a565c5a.js +1 -0
  326. package/dist/esm-es5/sqm-stat-container.entry.js +1 -1
  327. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -0
  328. package/dist/esm-es5/sqm-tab-group.entry.js +1 -0
  329. package/dist/esm-es5/sqm-tab-panel.entry.js +1 -0
  330. package/dist/esm-es5/sqm-tab.entry.js +1 -0
  331. package/dist/esm-es5/sqm-text-span-view-7e61c95c.js +1 -0
  332. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  333. package/dist/esm-es5/{extends-3a3f9fe2.js → stencil-hooks.module-2f159754.js} +1 -1
  334. package/dist/esm-es5/use-callback-d8ef4b5d.js +1 -0
  335. package/dist/esm-es5/useChildElements-c11d6189.js +1 -0
  336. package/dist/esm-es5/useDemoBigStat-022e116d.js +1 -0
  337. package/dist/esm-es5/useReferralTable-bccb9ac0.js +1 -0
  338. package/dist/esm-es5/utils-1d345130.js +1 -0
  339. package/dist/mint-components/assets/Reward-image.png +0 -0
  340. package/dist/mint-components/global/styles.ts +14 -72
  341. package/dist/mint-components/mint-components.esm.js +1 -1
  342. package/dist/mint-components/mint-components.js +1 -1
  343. package/dist/mint-components/p-01748c80.system.entry.js +1 -0
  344. package/dist/mint-components/p-023dcaee.js +1 -0
  345. package/dist/mint-components/{p-0e8ae7e3.system.js → p-0988f079.system.js} +22 -22
  346. package/dist/mint-components/p-0aee946d.js +1 -0
  347. package/dist/mint-components/p-0c19f830.entry.js +1 -0
  348. package/dist/mint-components/p-0d66fc45.js +239 -0
  349. package/dist/mint-components/p-1288be55.entry.js +1 -0
  350. package/dist/mint-components/p-12c6ad5d.system.entry.js +1 -0
  351. package/dist/mint-components/{p-24fa8920.system.entry.js → p-136e2028.system.entry.js} +1 -1
  352. package/dist/mint-components/p-14655192.js +161 -0
  353. package/dist/mint-components/p-179988b5.js +1 -0
  354. package/dist/mint-components/p-18003e9c.system.js +1 -0
  355. package/dist/mint-components/p-1959da16.system.js +1 -0
  356. package/dist/mint-components/p-197d1027.system.entry.js +1 -0
  357. package/dist/mint-components/p-1c17892a.system.js +1 -0
  358. package/dist/mint-components/p-1d1e9197.js +1 -0
  359. package/dist/mint-components/p-204fd08c.js +1 -0
  360. package/dist/mint-components/p-232db563.system.entry.js +1 -0
  361. package/dist/mint-components/p-2454f30a.system.entry.js +1 -0
  362. package/dist/mint-components/p-27849b7e.system.entry.js +1 -0
  363. package/dist/mint-components/p-27e04aaf.entry.js +1 -0
  364. package/dist/mint-components/p-2d7db47e.entry.js +1 -0
  365. package/dist/mint-components/p-348461ec.system.entry.js +1 -0
  366. package/dist/mint-components/p-373fa002.js +1 -0
  367. package/dist/mint-components/p-382a1bca.system.js +1 -0
  368. package/dist/mint-components/p-3a374367.js +1 -0
  369. package/dist/mint-components/p-3b184c32.js +1 -0
  370. package/dist/mint-components/{p-1b7d89a7.system.js → p-3bbb90a9.system.js} +2 -2
  371. package/dist/mint-components/p-3e556042.js +1 -0
  372. package/dist/mint-components/p-408551bc.entry.js +1 -0
  373. package/dist/mint-components/p-4275c957.system.entry.js +1 -0
  374. package/dist/mint-components/p-4279da4b.system.js +1 -0
  375. package/dist/mint-components/p-4991f4c0.system.entry.js +1 -0
  376. package/dist/mint-components/p-49c9ff69.entry.js +1 -0
  377. package/dist/mint-components/p-4a1b7d35.js +1 -0
  378. package/dist/mint-components/p-4dbf5bbf.system.js +1 -0
  379. package/dist/mint-components/p-4e05c65a.js +1 -0
  380. package/dist/mint-components/p-53af4433.system.js +1 -0
  381. package/dist/mint-components/p-54986541.entry.js +1 -0
  382. package/dist/mint-components/p-591de129.js +1 -0
  383. package/dist/mint-components/p-59454f33.system.js +1 -0
  384. package/dist/mint-components/p-595e84f8.system.entry.js +1 -0
  385. package/dist/mint-components/{p-8fd8682c.js → p-5a2bd8cc.js} +3 -3
  386. package/dist/mint-components/p-5ab40dfa.system.js +1 -0
  387. package/dist/mint-components/p-5c75acad.js +1 -0
  388. package/dist/mint-components/p-5e3f4daa.system.entry.js +1 -0
  389. package/dist/mint-components/p-61d68133.system.entry.js +1 -0
  390. package/dist/mint-components/p-61d769e2.system.js +1 -0
  391. package/dist/mint-components/p-63a6475a.system.entry.js +1 -0
  392. package/dist/mint-components/p-673407d4.entry.js +150 -0
  393. package/dist/mint-components/p-68c38020.entry.js +1 -0
  394. package/dist/mint-components/p-6b43e4cc.system.js +1 -0
  395. package/dist/mint-components/p-71a4e832.entry.js +13 -0
  396. package/dist/mint-components/p-72a978c8.entry.js +1 -0
  397. package/dist/mint-components/p-73d5306f.js +1 -0
  398. package/dist/mint-components/p-76325d9c.system.entry.js +1 -0
  399. package/dist/mint-components/p-7a5c88bc.js +1 -0
  400. package/dist/mint-components/p-7aea48a0.entry.js +1 -0
  401. package/dist/mint-components/p-7d74b018.system.entry.js +1 -0
  402. package/dist/mint-components/p-81681ebd.system.entry.js +1 -0
  403. package/dist/mint-components/p-81f34787.js +1 -0
  404. package/dist/mint-components/p-854ad349.entry.js +9 -0
  405. package/dist/mint-components/p-871536c7.entry.js +1 -0
  406. package/dist/mint-components/p-875f46d7.system.entry.js +1 -0
  407. package/dist/mint-components/p-88765e8f.system.entry.js +1 -0
  408. package/dist/mint-components/p-8a55dda8.system.js +1 -0
  409. package/dist/mint-components/p-8bcaafaf.system.js +1 -0
  410. package/dist/mint-components/p-8d3f01f7.entry.js +90 -0
  411. package/dist/mint-components/p-8d74871c.system.js +1 -0
  412. package/dist/mint-components/p-91d119ad.system.js +1 -0
  413. package/dist/mint-components/{p-015b683f.system.js → p-9580888c.system.js} +2 -2
  414. package/dist/mint-components/p-95e36be8.entry.js +1 -0
  415. package/dist/mint-components/p-96c971fa.entry.js +1 -0
  416. package/dist/mint-components/p-975d4358.js +1 -0
  417. package/dist/mint-components/p-97f843f9.system.entry.js +1 -0
  418. package/dist/mint-components/p-98393bf0.entry.js +1 -0
  419. package/dist/mint-components/p-9b48d01e.js +1 -0
  420. package/dist/mint-components/p-9f65904f.entry.js +1 -0
  421. package/dist/mint-components/p-a09e3176.system.js +1 -0
  422. package/dist/mint-components/p-a2038ff2.entry.js +1 -0
  423. package/dist/mint-components/p-a674c833.system.entry.js +1 -0
  424. package/dist/mint-components/p-aab3dc7b.system.entry.js +1 -0
  425. package/dist/mint-components/p-ac65007d.js +1 -0
  426. package/dist/mint-components/p-af7d926d.system.entry.js +1 -0
  427. package/dist/mint-components/p-b0c32d15.system.js +1 -0
  428. package/dist/mint-components/p-b0d6a380.system.js +1 -0
  429. package/dist/mint-components/p-b0e8c584.system.entry.js +1 -0
  430. package/dist/mint-components/p-b18cc44f.js +1 -0
  431. package/dist/mint-components/p-b3201e4c.entry.js +1 -0
  432. package/dist/mint-components/p-b3af1c6f.js +1 -0
  433. package/dist/mint-components/p-b69365f5.entry.js +1 -0
  434. package/dist/mint-components/{p-44578b22.js → p-b7da9a8a.js} +1 -1
  435. package/dist/mint-components/p-b8434fc0.system.js +1 -0
  436. package/dist/mint-components/p-b9974b87.entry.js +1 -0
  437. package/dist/mint-components/p-bc19e1c2.system.js +1 -0
  438. package/dist/mint-components/p-bf055b6c.system.js +1 -0
  439. package/dist/mint-components/p-c3f300e8.system.js +1 -0
  440. package/dist/mint-components/p-c968ea28.system.entry.js +1 -0
  441. package/dist/mint-components/p-caad0168.entry.js +1 -0
  442. package/dist/mint-components/p-ce0ec1c4.system.js +1 -0
  443. package/dist/mint-components/p-d0acc0d5.system.js +1 -0
  444. package/dist/mint-components/p-d1520098.js +1 -0
  445. package/dist/mint-components/p-d312db42.entry.js +1 -0
  446. package/dist/mint-components/p-d33eb961.js +1 -0
  447. package/dist/mint-components/p-d6ef4765.system.entry.js +1 -0
  448. package/dist/mint-components/{p-e608f340.entry.js → p-d8a45132.entry.js} +2 -2
  449. package/dist/mint-components/p-dcff1a85.entry.js +1 -0
  450. package/dist/mint-components/p-df466813.system.js +1 -0
  451. package/dist/mint-components/p-e00e11b1.system.js +1 -0
  452. package/dist/mint-components/p-e08f5f8e.js +1 -0
  453. package/dist/mint-components/p-e1166d9b.system.entry.js +1 -0
  454. package/dist/mint-components/p-e7a29898.entry.js +1 -0
  455. package/dist/mint-components/p-e7b20665.entry.js +1 -0
  456. package/dist/mint-components/p-ea110693.system.js +1 -0
  457. package/dist/mint-components/p-ea197664.js +1 -0
  458. package/dist/mint-components/p-f241ee8a.system.entry.js +1 -0
  459. package/dist/mint-components/p-f372c8d8.entry.js +1 -0
  460. package/dist/mint-components/p-f4c0cd0b.js +1 -0
  461. package/dist/mint-components/p-f5cba1f7.system.entry.js +1 -0
  462. package/dist/mint-components/p-f80e4997.system.entry.js +1 -0
  463. package/dist/mint-components/p-f8d95abc.system.js +1 -0
  464. package/dist/mint-components/p-fc3bbee6.js +30 -0
  465. package/dist/mint-components/p-fe4d9531.system.js +1 -0
  466. package/dist/types/components/sqm-big-stat/sqm-big-stat-view.d.ts +1 -0
  467. package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +6 -0
  468. package/dist/types/components/sqm-big-stat/useBigStat.d.ts +1 -0
  469. package/dist/types/components/sqm-brand/sqm-brand.d.ts +8 -0
  470. package/dist/types/components/sqm-card-feed/CardFeed.stories.d.ts +5 -0
  471. package/dist/types/components/sqm-card-feed/sqm-card-feed-view.d.ts +6 -0
  472. package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +18 -0
  473. package/dist/types/components/sqm-hero-image/HeroImage.stories.d.ts +16 -0
  474. package/dist/types/components/sqm-hero-image/sqm-hero-image-view.d.ts +24 -0
  475. package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +99 -0
  476. package/dist/types/components/sqm-image/Image.stories.d.ts +11 -0
  477. package/dist/types/components/sqm-image/sqm-image-view.d.ts +10 -0
  478. package/dist/types/components/sqm-image/sqm-image.d.ts +42 -0
  479. package/dist/types/components/sqm-leaderboard/Leaderboard.stories.d.ts +6 -3
  480. package/dist/types/components/sqm-leaderboard/UseLeaderboard.stories.d.ts +6 -0
  481. package/dist/types/components/sqm-leaderboard/sqm-leaderboard-view.d.ts +10 -0
  482. package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +24 -2
  483. package/dist/types/components/sqm-leaderboard/useLeaderboard.d.ts +3 -0
  484. package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +2 -0
  485. package/dist/types/components/sqm-portal-container/PortalContainer.stories.d.ts +12 -0
  486. package/dist/types/components/sqm-portal-container/sqm-portal-container-view.d.ts +3 -0
  487. package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +14 -0
  488. package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +6 -0
  489. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.d.ts +1 -0
  490. package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +10 -0
  491. package/dist/types/components/sqm-portal-forgot-password/usePortalForgotPassword.d.ts +3 -1
  492. package/dist/types/components/sqm-portal-login/sqm-portal-login-view.d.ts +2 -0
  493. package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +8 -0
  494. package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +3 -3
  495. package/dist/types/components/sqm-portal-register/PortalRegister.stories.d.ts +1 -0
  496. package/dist/types/components/sqm-portal-register/sqm-portal-register-view.d.ts +6 -3
  497. package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +10 -0
  498. package/dist/types/components/sqm-portal-register/usePortalRegister.d.ts +1 -0
  499. package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +8 -0
  500. package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +8 -0
  501. package/dist/types/components/sqm-portal-verify-email/usePortalVerifyEmail.d.ts +2 -1
  502. package/dist/types/components/sqm-program-explainer/ProgramExplainer.stories.d.ts +1 -2
  503. package/dist/types/components/sqm-program-explainer/sqm-program-explainer-view.d.ts +2 -4
  504. package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +5 -13
  505. package/dist/types/components/sqm-program-explainer-step/ProgramExplainerStep.stories.d.ts +2 -1
  506. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +5 -4
  507. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +15 -6
  508. package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +16 -0
  509. package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +11 -0
  510. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +22 -0
  511. package/dist/types/components/sqm-referral-table/UseReferralTable.stories.d.ts +28 -0
  512. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-date-cell.d.ts +2 -1
  513. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.d.ts +7 -0
  514. package/dist/types/components/sqm-referral-table/cells/sqm-referral-table-user-cell.d.ts +1 -1
  515. package/dist/types/components/sqm-referral-table/columns/ReferralTableColumn.d.ts +1 -1
  516. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -1
  517. package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +25 -1
  518. package/dist/types/components/sqm-referral-table/sqm-referral-table-view.d.ts +1 -1
  519. package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +14 -2
  520. package/dist/types/components/sqm-referral-table/useReferralTable.d.ts +4 -2
  521. package/dist/types/components/sqm-refresh-button/RefreshButtonView.d.ts +15 -0
  522. package/dist/types/components/sqm-refresh-button/sqm-refresh-button.d.ts +12 -0
  523. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeList.stories.d.ts +5 -2
  524. package/dist/types/components/sqm-reward-exchange-list/RewardExchangeListData.d.ts +416 -7
  525. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.d.ts +3 -0
  526. package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +47 -0
  527. package/dist/types/components/sqm-reward-exchange-list/useRewardExchangeList.d.ts +0 -1
  528. package/dist/types/components/sqm-rewards-table/RewardsTable.stories.d.ts +5 -0
  529. package/dist/types/components/sqm-rewards-table/RewardsTableCell.stories.d.ts +27 -0
  530. package/dist/types/components/sqm-rewards-table/UseRewardsTable.stories.d.ts +18 -0
  531. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-date-cell.d.ts +1 -0
  532. package/dist/types/components/sqm-rewards-table/cells/{sqm-rewards-table-rewards-cell.d.ts → sqm-rewards-table-reward-cell.d.ts} +3 -1
  533. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.d.ts +6 -0
  534. package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +6 -1
  535. package/dist/types/components/sqm-rewards-table/columns/RewardTableColumn.d.ts +1 -1
  536. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +1 -1
  537. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +9 -5
  538. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +15 -1
  539. package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +6 -2
  540. package/dist/types/components/sqm-rewards-table/sqm-rewards-table.d.ts +12 -2
  541. package/dist/types/components/sqm-share-button/ShareButton.stories.d.ts +5 -1
  542. package/dist/types/components/sqm-share-button/sqm-share-button-view.d.ts +3 -0
  543. package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +18 -2
  544. package/dist/types/components/sqm-stencilbook/Themes.d.ts +1 -1
  545. package/dist/types/components/sqm-tab/sqm-tab.d.ts +6 -0
  546. package/dist/types/components/sqm-tab-group/sqm-tab-group.d.ts +6 -0
  547. package/dist/types/components/sqm-tab-panel/sqm-tab-panel.d.ts +6 -0
  548. package/dist/types/{tables → components/sqm-table-cell}/sqm-table-cell.d.ts +0 -0
  549. package/dist/types/{tables → components/sqm-table-row}/sqm-table-row.d.ts +0 -0
  550. package/dist/types/components/sqm-task-card/DetailsView.d.ts +41 -0
  551. package/dist/types/components/sqm-task-card/UseTaskCard.stories.d.ts +6 -0
  552. package/dist/types/components/sqm-task-card/progress-bar/SVGs.d.ts +1 -1
  553. package/dist/types/components/sqm-task-card/sqm-task-card-view.d.ts +32 -15
  554. package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +49 -5
  555. package/dist/types/components/sqm-task-card/useTaskCard.d.ts +11 -0
  556. package/dist/types/components/sqm-timeline/SVGs.d.ts +3 -0
  557. package/dist/types/components/sqm-timeline/Timeline.stories.d.ts +8 -0
  558. package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +31 -0
  559. package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +15 -0
  560. package/dist/types/components/sqm-titled-section/TitledSection.stories.d.ts +9 -0
  561. package/dist/types/components/sqm-titled-section/sqm-portal-section-view.d.ts +1 -0
  562. package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +12 -1
  563. package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +1 -1
  564. package/dist/types/components.d.ts +1190 -98
  565. package/dist/types/global/styles.d.ts +1 -1
  566. package/dist/types/saasquatch.d.ts +5 -0
  567. package/dist/types/styling/JSS.d.ts +7 -0
  568. package/dist/types/tables/GenericTableView.d.ts +4 -1
  569. package/dist/types/tables/TableSlots.d.ts +1 -0
  570. package/dist/types/utils/utils.d.ts +1 -0
  571. package/grapesjs/grapesjs.js +1 -1
  572. package/package.json +10 -11
  573. package/dist/cjs/ShadowViewAddon-475e00d3.js +0 -127
  574. package/dist/cjs/re-render-124b56ee.js +0 -45
  575. package/dist/cjs/sqm-brand_38.cjs.entry.js +0 -29924
  576. package/dist/cjs/sqm-leaderboard-rank-view-510f16d3.js +0 -131
  577. package/dist/cjs/sqm-leaderboard.cjs.entry.js +0 -69
  578. package/dist/cjs/sqm-portal-container.cjs.entry.js +0 -35
  579. package/dist/cjs/sqm-program-explainer-step-view-6a01cda0.js +0 -70
  580. package/dist/cjs/sqm-program-explainer-step.cjs.entry.js +0 -22
  581. package/dist/cjs/sqm-program-explainer-view-8a4af972.js +0 -45
  582. package/dist/cjs/sqm-program-explainer.cjs.entry.js +0 -23
  583. package/dist/cjs/sqm-referral-table-column.cjs.entry.js +0 -30
  584. package/dist/cjs/sqm-referral-table-date-column.cjs.entry.js +0 -47
  585. package/dist/cjs/sqm-referral-table-rewards-column.cjs.entry.js +0 -38
  586. package/dist/cjs/sqm-referral-table-status-column.cjs.entry.js +0 -45
  587. package/dist/cjs/sqm-referral-table-user-column.cjs.entry.js +0 -57
  588. package/dist/cjs/sqm-share-code.cjs.entry.js +0 -106
  589. package/dist/cjs/sqm-share-link-view-a935d07e.js +0 -24
  590. package/dist/cjs/sqm-titled-section.cjs.entry.js +0 -36
  591. package/dist/cjs/use-callback-fadb2643.js +0 -7
  592. package/dist/collection/components/sqm-reward-exchange-list/assets/placeholder.png +0 -0
  593. package/dist/esm/ShadowViewAddon-558fabb7.js +0 -122
  594. package/dist/esm/sqm-brand_38.entry.js +0 -29883
  595. package/dist/esm/sqm-leaderboard-rank-view-cd1e8962.js +0 -128
  596. package/dist/esm/sqm-leaderboard.entry.js +0 -65
  597. package/dist/esm/sqm-portal-container.entry.js +0 -31
  598. package/dist/esm/sqm-program-explainer-step-view-41c1eecd.js +0 -68
  599. package/dist/esm/sqm-program-explainer-step.entry.js +0 -18
  600. package/dist/esm/sqm-program-explainer-view-098a64a9.js +0 -43
  601. package/dist/esm/sqm-program-explainer.entry.js +0 -19
  602. package/dist/esm/sqm-referral-table-column.entry.js +0 -26
  603. package/dist/esm/sqm-referral-table-date-column.entry.js +0 -43
  604. package/dist/esm/sqm-referral-table-rewards-column.entry.js +0 -34
  605. package/dist/esm/sqm-referral-table-status-column.entry.js +0 -41
  606. package/dist/esm/sqm-referral-table-user-column.entry.js +0 -53
  607. package/dist/esm/sqm-share-code.entry.js +0 -102
  608. package/dist/esm/sqm-share-link-view-9282b8e8.js +0 -22
  609. package/dist/esm/sqm-titled-section.entry.js +0 -32
  610. package/dist/esm-es5/ShadowViewAddon-558fabb7.js +0 -1
  611. package/dist/esm-es5/index.module-eb50a8d2.js +0 -1
  612. package/dist/esm-es5/re-render-6d5b856e.js +0 -1
  613. package/dist/esm-es5/sqm-asset-card-view-6f360937.js +0 -1
  614. package/dist/esm-es5/sqm-brand_38.entry.js +0 -1
  615. package/dist/esm-es5/sqm-hero-view-bfd8abd1.js +0 -1
  616. package/dist/esm-es5/sqm-leaderboard-rank-view-cd1e8962.js +0 -1
  617. package/dist/esm-es5/sqm-leaderboard.entry.js +0 -1
  618. package/dist/esm-es5/sqm-name-fields-view-4162fb7b.js +0 -1
  619. package/dist/esm-es5/sqm-navigation-sidebar-item-view-2d8c368c.js +0 -1
  620. package/dist/esm-es5/sqm-navigation-sidebar-view-2242502c.js +0 -1
  621. package/dist/esm-es5/sqm-portal-container-view-73757ca5.js +0 -1
  622. package/dist/esm-es5/sqm-portal-container.entry.js +0 -1
  623. package/dist/esm-es5/sqm-portal-email-verification-view-2af31979.js +0 -1
  624. package/dist/esm-es5/sqm-portal-footer-view-60cd9ae5.js +0 -1
  625. package/dist/esm-es5/sqm-portal-forgot-password-view-e3a6a716.js +0 -1
  626. package/dist/esm-es5/sqm-portal-profile-view-f1deea0f.js +0 -1
  627. package/dist/esm-es5/sqm-portal-reset-password-view-a4e50da2.js +0 -1
  628. package/dist/esm-es5/sqm-portal-section-view-f0876545.js +0 -1
  629. package/dist/esm-es5/sqm-portal-verify-email-view-6f18bac2.js +0 -1
  630. package/dist/esm-es5/sqm-program-explainer-step-view-41c1eecd.js +0 -1
  631. package/dist/esm-es5/sqm-program-explainer-step.entry.js +0 -1
  632. package/dist/esm-es5/sqm-program-explainer-view-098a64a9.js +0 -1
  633. package/dist/esm-es5/sqm-program-explainer.entry.js +0 -1
  634. package/dist/esm-es5/sqm-referral-table-column.entry.js +0 -1
  635. package/dist/esm-es5/sqm-referral-table-date-column.entry.js +0 -1
  636. package/dist/esm-es5/sqm-referral-table-rewards-column.entry.js +0 -1
  637. package/dist/esm-es5/sqm-referral-table-status-column.entry.js +0 -1
  638. package/dist/esm-es5/sqm-referral-table-user-column.entry.js +0 -1
  639. package/dist/esm-es5/sqm-share-code.entry.js +0 -1
  640. package/dist/esm-es5/sqm-share-link-view-9282b8e8.js +0 -1
  641. package/dist/esm-es5/sqm-stat-container-view-4133feb6.js +0 -1
  642. package/dist/esm-es5/sqm-text-span-view-1781df94.js +0 -1
  643. package/dist/esm-es5/sqm-titled-section.entry.js +0 -1
  644. package/dist/esm-es5/use-callback-b38a1523.js +0 -1
  645. package/dist/esm-es5/useDemoBigStat-d227b2f9.js +0 -1
  646. package/dist/esm-es5/utils-454405f5.js +0 -1
  647. package/dist/mint-components/assets/placeholder.png +0 -0
  648. package/dist/mint-components/p-02dc36a4.system.js +0 -1
  649. package/dist/mint-components/p-03e93c82.system.js +0 -1
  650. package/dist/mint-components/p-0a39b23c.system.entry.js +0 -1
  651. package/dist/mint-components/p-0bcefa93.entry.js +0 -1
  652. package/dist/mint-components/p-0d8b2757.system.entry.js +0 -1
  653. package/dist/mint-components/p-10103ce2.system.js +0 -1
  654. package/dist/mint-components/p-12071042.system.entry.js +0 -1
  655. package/dist/mint-components/p-1575e8a3.system.js +0 -1
  656. package/dist/mint-components/p-1705e549.entry.js +0 -1
  657. package/dist/mint-components/p-1b5b5928.system.js +0 -1
  658. package/dist/mint-components/p-1e182e88.system.js +0 -1
  659. package/dist/mint-components/p-1f95b411.js +0 -1
  660. package/dist/mint-components/p-2027edc0.system.entry.js +0 -1
  661. package/dist/mint-components/p-20c95798.entry.js +0 -1
  662. package/dist/mint-components/p-21b4044a.entry.js +0 -1
  663. package/dist/mint-components/p-21df3f85.system.entry.js +0 -1
  664. package/dist/mint-components/p-221bd06e.js +0 -1
  665. package/dist/mint-components/p-2338162a.entry.js +0 -1
  666. package/dist/mint-components/p-282ed862.js +0 -1
  667. package/dist/mint-components/p-29ee7d11.system.entry.js +0 -1
  668. package/dist/mint-components/p-2e63dcfd.system.js +0 -1
  669. package/dist/mint-components/p-3143cce4.entry.js +0 -1
  670. package/dist/mint-components/p-34112d74.entry.js +0 -1
  671. package/dist/mint-components/p-34696973.system.js +0 -1
  672. package/dist/mint-components/p-35476f7e.system.js +0 -1
  673. package/dist/mint-components/p-40e83a85.system.js +0 -1
  674. package/dist/mint-components/p-412d31b1.js +0 -1
  675. package/dist/mint-components/p-46493de5.system.entry.js +0 -1
  676. package/dist/mint-components/p-4658d225.system.entry.js +0 -1
  677. package/dist/mint-components/p-4b719313.js +0 -1
  678. package/dist/mint-components/p-509dda90.js +0 -1
  679. package/dist/mint-components/p-53b0c355.system.js +0 -1
  680. package/dist/mint-components/p-53e51b3f.entry.js +0 -1
  681. package/dist/mint-components/p-53ec4863.entry.js +0 -1
  682. package/dist/mint-components/p-547a0354.system.js +0 -1
  683. package/dist/mint-components/p-55f8387d.system.js +0 -1
  684. package/dist/mint-components/p-562199e3.system.js +0 -1
  685. package/dist/mint-components/p-5939212e.system.entry.js +0 -1
  686. package/dist/mint-components/p-5d925bb6.js +0 -1
  687. package/dist/mint-components/p-5e4e7f01.system.js +0 -1
  688. package/dist/mint-components/p-60ae1ec5.system.js +0 -1
  689. package/dist/mint-components/p-61acba7a.js +0 -1
  690. package/dist/mint-components/p-65c79eec.entry.js +0 -1
  691. package/dist/mint-components/p-69f28472.system.js +0 -1
  692. package/dist/mint-components/p-6d27cd05.system.entry.js +0 -1
  693. package/dist/mint-components/p-739b3032.js +0 -1
  694. package/dist/mint-components/p-748ad4f5.entry.js +0 -1
  695. package/dist/mint-components/p-759d3800.entry.js +0 -13
  696. package/dist/mint-components/p-760762d3.entry.js +0 -13
  697. package/dist/mint-components/p-7cdbe82a.entry.js +0 -1
  698. package/dist/mint-components/p-7ff22998.system.entry.js +0 -1
  699. package/dist/mint-components/p-81786aa0.js +0 -1
  700. package/dist/mint-components/p-85efd952.entry.js +0 -1
  701. package/dist/mint-components/p-86255b95.entry.js +0 -1
  702. package/dist/mint-components/p-88fdfd94.system.entry.js +0 -1
  703. package/dist/mint-components/p-8ec5127e.system.entry.js +0 -1
  704. package/dist/mint-components/p-952ed169.js +0 -1
  705. package/dist/mint-components/p-97b946c2.system.entry.js +0 -1
  706. package/dist/mint-components/p-99f1208f.js +0 -1
  707. package/dist/mint-components/p-9b4f2af6.js +0 -1
  708. package/dist/mint-components/p-9be0cb19.entry.js +0 -1
  709. package/dist/mint-components/p-9c79643f.system.js +0 -1
  710. package/dist/mint-components/p-a0a26fc5.system.entry.js +0 -1
  711. package/dist/mint-components/p-a355eeaf.system.entry.js +0 -1
  712. package/dist/mint-components/p-a565e753.entry.js +0 -1
  713. package/dist/mint-components/p-a8246a50.system.entry.js +0 -1
  714. package/dist/mint-components/p-a831de18.entry.js +0 -1
  715. package/dist/mint-components/p-a833dbb3.js +0 -1
  716. package/dist/mint-components/p-a88a08bb.system.js +0 -1
  717. package/dist/mint-components/p-a8b913a8.js +0 -1
  718. package/dist/mint-components/p-a9a6f205.entry.js +0 -1
  719. package/dist/mint-components/p-aaf68d9d.system.js +0 -1
  720. package/dist/mint-components/p-aee83885.system.entry.js +0 -1
  721. package/dist/mint-components/p-b86cbac3.system.entry.js +0 -1
  722. package/dist/mint-components/p-b90574e5.entry.js +0 -372
  723. package/dist/mint-components/p-ba505a8c.js +0 -1
  724. package/dist/mint-components/p-bb76c6f3.system.js +0 -1
  725. package/dist/mint-components/p-bd903567.js +0 -1
  726. package/dist/mint-components/p-be3a0cc4.system.js +0 -1
  727. package/dist/mint-components/p-c0f9d0b1.entry.js +0 -1
  728. package/dist/mint-components/p-c3bf9440.entry.js +0 -1
  729. package/dist/mint-components/p-c65cfc9d.system.js +0 -1
  730. package/dist/mint-components/p-ca40dbaa.system.entry.js +0 -1
  731. package/dist/mint-components/p-cc189fc4.system.js +0 -1
  732. package/dist/mint-components/p-cc652a53.entry.js +0 -1
  733. package/dist/mint-components/p-d19d6012.js +0 -235
  734. package/dist/mint-components/p-d3c7dbfc.entry.js +0 -1
  735. package/dist/mint-components/p-d4a1bce9.system.entry.js +0 -1
  736. package/dist/mint-components/p-d68f6b64.system.entry.js +0 -1
  737. package/dist/mint-components/p-d7d6bf44.system.js +0 -1
  738. package/dist/mint-components/p-db5a1e78.js +0 -1
  739. package/dist/mint-components/p-e069bc2d.entry.js +0 -1
  740. package/dist/mint-components/p-e14c15ca.system.entry.js +0 -1
  741. package/dist/mint-components/p-e36ff7fa.entry.js +0 -1
  742. package/dist/mint-components/p-e426715b.js +0 -1
  743. package/dist/mint-components/p-e43cc1f8.system.entry.js +0 -1
  744. package/dist/mint-components/p-e7cb4274.system.entry.js +0 -1
  745. package/dist/mint-components/p-ebcd8a59.js +0 -1
  746. package/dist/mint-components/p-ee684b5f.js +0 -1
  747. package/dist/mint-components/p-ef7f70f2.system.entry.js +0 -1
  748. package/dist/mint-components/p-f20d9204.system.entry.js +0 -1
  749. package/dist/mint-components/p-f5cfc52a.entry.js +0 -1
  750. package/dist/mint-components/p-f7f87338.js +0 -1
  751. package/dist/mint-components/p-f85f36c6.system.entry.js +0 -1
  752. package/dist/mint-components/p-f9ada3d7.system.js +0 -1
  753. package/dist/mint-components/p-f9cb55dc.entry.js +0 -1
  754. package/dist/mint-components/p-faf66fdb.js +0 -17
  755. package/dist/mint-components/p-fb1b6fdf.js +0 -1
  756. package/dist/mint-components/p-fcd03042.entry.js +0 -1
  757. package/dist/mint-components/p-fd281e6b.system.entry.js +0 -1
  758. package/dist/mint-components/p-fee468b7.system.entry.js +0 -1
  759. package/dist/mint-components/p-fee6801c.js +0 -1
@@ -0,0 +1 @@
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var e in s)if(Object.prototype.hasOwnProperty.call(s,e))t[e]=s[e]}return t};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-9580888c.system.js","./p-e00e11b1.system.js","./p-b0d6a380.system.js","./p-1c17892a.system.js","./p-4bd679a7.system.js","./p-126bcba1.system.js","./p-3bbb90a9.system.js"],(function(t){"use strict";var s,i,n,e,a,r,o,l,u;return{setters:[function(t){s=t.h;i=t.r},function(t){n=t.o;e=t.k;a=t.m},function(){},function(t){r=t.k},function(){},function(t){o=t.c},function(t){l=t.E},function(t){u=t.c}],execute:function(){var c={error:{length:"Length should be a valid positive number",password:"Password should be a valid string"},regex:{digits:"(\\d.*)",letters:"([a-zA-Z].*)",symbols:"([`~\\!@#\\$%\\^\\&\\*\\(\\)\\-_\\=\\+\\[\\{\\}\\]\\\\|;:\\'\",<.>\\/\\?€£¥₹§±].*)",spaces:"([\\s].*)"}};var d=c.regex;function p(t,s){if(s&&s>1){var i=parseInt(s,10);return new RegExp(t+"{"+i+",}").test(this.password)===this.positive}return new RegExp(t).test(this.password)===this.positive}var v={not:function t(s){this.positive=false;if(s){return p.call(this,s)}return true},has:function t(s){this.positive=true;if(s){return p.call(this,s)}return true},is:function t(){this.positive=true;return true},min:function t(s){return this.password.length>=s},max:function t(s){return this.password.length<=s},digits:function t(s){return p.call(this,d.digits,s)},letters:function t(s){return p.call(this,d.letters,s)},uppercase:function t(s){if(s&&s>1){var i=0;var n=0;while(n<s&&i<this.password.length){var e=this.password.charAt(i);if(e!==e.toLowerCase()){n++}i++}return n===s===this.positive}return this.password!==this.password.toLowerCase()===this.positive},lowercase:function t(s){if(s&&s>1){var i=0;var n=0;while(n<s&&i<this.password.length){var e=this.password.charAt(i);if(e!==e.toUpperCase()){n++}i++}return n===s===this.positive}return this.password!==this.password.toUpperCase()===this.positive},symbols:function t(s){return p.call(this,d.symbols,s)},spaces:function t(s){return p.call(this,d.spaces,s)},oneOf:function t(s){return s.indexOf(this.password)>=0===this.positive}};var h=c.error;function f(t){var s=Number(t);if(isNaN(s)||!Number.isInteger(s)||s<1){throw new Error(h.length)}}function m(t){return v[t.method].apply(this,t.arguments)}function g(t,s){this.properties.push({method:t,arguments:s});return this}var y=function(){function t(){this.properties=[]}t.prototype.validate=function(t,s){var i=this;this.list=Boolean(s&&s.list);this.password=String(t);this.positive=true;if(this.list){return this.properties.reduce((function(t,s){if(!m.call(i,s)){return t.concat(s.method)}return t}),[])}return this.properties.every(m.bind(this))};t.prototype.letters=function(t){t&&f(t);return g.call(this,"letters",arguments)};t.prototype.digits=function(t){t&&f(t);return g.call(this,"digits",arguments)};t.prototype.symbols=function(t){t&&f(t);return g.call(this,"symbols",arguments)};t.prototype.min=function(t){f(t);return g.call(this,"min",arguments)};t.prototype.max=function(t){f(t);return g.call(this,"max",arguments)};t.prototype.lowercase=function(t){t&&f(t);return g.call(this,"lowercase",arguments)};t.prototype.uppercase=function(t){t&&f(t);return g.call(this,"uppercase",arguments)};t.prototype.spaces=function(t){t&&f(t);return g.call(this,"spaces",arguments)};t.prototype.has=function(){return g.call(this,"has",arguments)};t.prototype.not=function(){return g.call(this,"not",arguments)};t.prototype.is=function(){return g.call(this,"is",arguments)};t.prototype.oneOf=function(){return g.call(this,"oneOf",arguments)};return t}();var w=y;var b=(new w).is().min(8).has().uppercase().has().lowercase().has(/([\d`~\!@#\$%\^\&\*\(\)\-_\=\+\[\{\}\]\\\|;:'",<.>\/\?€£¥₹§±].*){1,}/);var x=function(t){var s=b.validate(t,{list:true});var i=k(s,t);return i};var L=function(){return s("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},s("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM4.8 9L1.8 6L2.646 5.154L4.8 7.302L9.354 2.748L10.2 3.6L4.8 9Z",fill:"#259053"}))};var V=function(){return s("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM6 10.8C3.354 10.8 1.2 8.646 1.2 6C1.2 3.354 3.354 1.2 6 1.2C8.646 1.2 10.8 3.354 10.8 6C10.8 8.646 8.646 10.8 6 10.8ZM8.754 3.348L4.8 7.302L3.246 5.754L2.4 6.6L4.8 9L9.6 4.2L8.754 3.348Z",fill:"#555555"}))};var C={min:"be a minimum of 8 characters",uppercase:"contain at least 1 uppercase character",lowercase:"contain at least 1 lowercase character",has:"contain at least 1 number or symbol"};var _={display:"flex",alignItems:"center",fontSize:"var(--sl-font-size-small)","& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}};var I={Base:{fontSize:"var(--sl-font-size-small)"},ValidationList:{"list-style-type":"none",paddingRight:"var(--sl-spacing-large)",margin:"var(--sl-spacing-small) 0 var(--sl-spacing-x-large)","& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-xx-small)"},"& *":{"line-height":"var(--sl-line-height-dense)"}},ValidationItemValid:__assign(__assign({},_),{color:"var(--sl-color-success-600)"}),ValidationItemInvalid:__assign({},_)};var E=u(I);var j=E.toString();var k=function(t,i){if(!t.length&&i)return s("div",{class:E.classes.ValidationItemValid,style:{paddingBottom:"var(--sl-spacing-x-large)"}},s("style",{type:"text/css"},j),s(L,null)," ",s("span",null,"Password has met all requirements"));return s("div",{class:E.classes.Base},s("style",{type:"text/css"},j),"Password must meet the following requirements:",s("ul",{class:E.classes.ValidationList},Object.keys(C).map((function(i){return t.includes(i)?s("li",{class:E.classes.ValidationItemInvalid},s(V,null)," ",s("span",null,C[i])):s("li",{class:E.classes.ValidationItemValid},s(L,null)," ",s("span",null,C[i]))}))))};var O={InputContainer:{"& > :not(:last-child)":{"margin-bottom":"20px"}},ErrorStyle:l};var S="\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var D=u(O);var P=D.toString();function B(t){var i,n;var e=t.states,a=t.callbacks;return s("div",{class:D.classes.InputContainer},s("style",{type:"text/css"},S,P),s("sl-input",Object.assign({exportparts:"label: input-label",type:"password",name:"/password",label:e.content.fieldLabel||"Password",required:true,validationError:function(t){var s=t.value;if(!s){return"Cannot be empty"}}},((i=e.validationErrors)===null||i===void 0?void 0:i.password)?{class:D.classes.ErrorStyle,helpText:((n=e.validationErrors)===null||n===void 0?void 0:n.password)||"Cannot be empty"}:[],{onInput:function(t){return e.enableValidation&&a.onInput(t)}})),e.dynamicValidation)}var M="sq:validation-state";function Z(t){var s=n(M);var i=e(""),a=i[0],r=i[1];function o(t){var s=x(t.target.value);r(s)}return{states:{enableValidation:t.enableValidation,dynamicValidation:a,validationErrors:s===null||s===void 0?void 0:s.validationErrors,content:{fieldLabel:t.fieldLabel}},callbacks:{onInput:o}}}var q=t("sqm_password_field",function(){function t(t){i(this,t);this.ignored=true;this.fieldLabel="Password";this.enableValidation=true;a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=r()?z(this):Z(this),i=t.states,n=t.callbacks;return s(B,{states:i,callbacks:n})};return t}());function z(t){var s,i,n,a,r,l,u;var c=e(""),d=c[0],p=c[1];var v=e(""),h=v[0],f=v[1];if(t.demoData&&h!=((s=t===null||t===void 0?void 0:t.demoData)===null||s===void 0?void 0:s.initValue)){var m=x(((i=t===null||t===void 0?void 0:t.demoData)===null||i===void 0?void 0:i.initValue)||"");p(((n=t===null||t===void 0?void 0:t.demoData)===null||n===void 0?void 0:n.initValue)===""?"":m);f((a=t===null||t===void 0?void 0:t.demoData)===null||a===void 0?void 0:a.initValue)}function g(t){var s=x(t.target.value);p(s)}return o({states:{enableValidation:true,dynamicValidation:d,validationErrors:((l=(r=t===null||t===void 0?void 0:t.demoData)===null||r===void 0?void 0:r.states)===null||l===void 0?void 0:l.validationErrors)||{},content:{fieldLabel:"Password"}},callbacks:{onInput:g}},((u=t===null||t===void 0?void 0:t.demoData)===null||u===void 0?void 0:u.states)||{},{arrayMerge:function(t,s){return s}})}}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-ff17b3a4.system.js","./p-126bcba1.system.js","./p-3bbb90a9.system.js"],(function(t){"use strict";var e,n,s;return{setters:[function(t){e=t.h},function(t){n=t.E},function(t){s=t.c}],execute:function(){t("N",o);var a={InputContainer:{"& > :not(:last-child)":{"margin-bottom":"20px"}},FieldsContainer:{"& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-large)"}},ErrorStyle:n};var l="\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n\nsl-input::part(label){\n font-size: var(--sl-input-label-font-size-small);\n font-weight: var(--sl-font-weight-semibold);\n}\n";var i=s(a);var r=i.toString();function o(t){var n=t.states;var s=n===null||n===void 0?void 0:n.validationErrors;return e("div",{class:i.classes.FieldsContainer},e("style",{type:"text/css"},l,r),e("sl-input",Object.assign({exportparts:"label: input-label",name:"/firstName",type:"text",label:n.content.firstNameLabel,required:true},(s===null||s===void 0?void 0:s.firstName)?{class:i.classes.ErrorStyle,helpText:(s===null||s===void 0?void 0:s.firstName)||"Cannot be empty"}:[])),e("sl-input",Object.assign({exportparts:"label: input-label",name:"/lastName",type:"text",label:n.content.lastNameLabel,required:true},(s===null||s===void 0?void 0:s.lastName)?{class:i.classes.ErrorStyle,helpText:(s===null||s===void 0?void 0:s.lastName)||"Cannot be empty"}:[])))}}}}));
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,i){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(i.next(e))}catch(e){a(e)}}function s(e){try{u(i["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):r(e.value).then(o,s)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(i)throw new TypeError("Generator is already executing.");while(n)try{if(i=1,r&&(a=o[0]&2?r["return"]:o[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;if(r=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;r=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];r=0}finally{i=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-9580888c.system.js","./p-0988f079.system.js","./p-e00e11b1.system.js","./p-b0d6a380.system.js","./p-1c17892a.system.js","./p-61d769e2.system.js","./p-4bd679a7.system.js","./p-126bcba1.system.js","./p-3bbb90a9.system.js","./p-8bcaafaf.system.js","./p-18003e9c.system.js"],(function(e){"use strict";var t,n,i,r,a,o,s,u,c,l;return{setters:[function(e){t=e.r;n=e.h},function(e){i=e.k;r=e.u;a=e.m},function(){},function(){},function(e){o=e.u;s=e.n;u=e.k},function(){},function(){},function(e){c=e.c},function(){},function(){},function(){},function(e){l=e.P}],execute:function(){function f(e){var t=this;var n,a,u,c,l;var f=o(),d=f[0],v=f[1],m=v.loading,y=v.data,h=v.errors;var p=s();var b=(n=p===null||p===void 0?void 0:p.managedIdentity)===null||n===void 0?void 0:n.email;var g=i(false),w=g[0],_=g[1];var x=i(""),j=x[0],k=x[1];var P=new URLSearchParams(window.location.search);var E=P.get("nextPage");var V=function(){return __awaiter(t,void 0,void 0,(function(){var t,n,i;return __generator(this,(function(r){switch(r.label){case 0:if(!b)return[2];k("");t=E?{nextPage:E}:null;n=e.redirectPath;i={email:b,urlParams:t,redirectPath:n};return[4,d(i)];case 1:r.sent();return[2]}}))}))};r((function(){var e;if((e=y===null||y===void 0?void 0:y.requestManagedIdentityVerificationEmail)===null||e===void 0?void 0:e.success){_(true)}}),[(a=y===null||y===void 0?void 0:y.requestManagedIdentityVerificationEmail)===null||a===void 0?void 0:a.success]);r((function(){if(h===null||h===void 0?void 0:h.message){k("Network request failed.")}}),[h]);return{states:{loading:m,error:((l=(c=(u=h===null||h===void 0?void 0:h.response)===null||u===void 0?void 0:u.errors)===null||c===void 0?void 0:c[0])===null||l===void 0?void 0:l.message)||j,success:w},callbacks:{submit:V},content:{email:b,verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText}}}var d=e("sqm_portal_email_verification",function(){function e(e){t(this,e);this.ignored=true;this.redirectPath="/verifyEmail";this.emailVerificationHeader="Verify your email";this.resendEmailButtonText="Re-send Email";this.verifyMessage="A verification email was sent to {email}. Please verify your email to continue to the portal.";a(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=u()?v(this):f(this),t=e.states,i=e.callbacks,r=e.content;return n(l,{states:t,callbacks:i,content:r})};return e}());function v(e){var t=this;return c({states:{error:"",loading:false,success:false},callbacks:{submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))}},content:{email:"test@example.com",verifyMessage:"A verification email was sent to {email}. Please verify your email to continue to the portal.",emailVerificationHeader:"Verify your email",resendEmailButtonText:"Re-send Email"}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -0,0 +1 @@
1
+ import{r as s,h as a}from"./p-64c3217a.js";import{k as t,u as o,m as e}from"./p-b7da9a8a.js";import"./p-d1520098.js";import{o as r,k as i,p as l}from"./p-3b184c32.js";import"./p-81f34787.js";import{j as n}from"./p-e7e129ac.js";import{c}from"./p-c1086930.js";import"./p-26f627aa.js";import"./p-373fa002.js";import"./p-179988b5.js";import{P as d}from"./p-4a1b7d35.js";const m=class{constructor(a){s(this,a),this.ignored=!0,this.redirectPath="/resetPassword",this.emailLabel="Email",this.submitLabel="Request Password Reset",this.loginPath="/login",e(this)}disconnectedCallback(){}render(){const{states:s,callbacks:e}=i()?c({states:{error:"",loading:!1,success:!1},callbacks:{submit:async()=>{}}},this.demoData||{},{arrayMerge:(s,a)=>a}):function(s){var a,e,i,l;const[c,d]=t(!1),[m,p]=t(""),[u,{loading:b,data:v,errors:h}]=r(),f=new URLSearchParams(window.location.search).get("nextPage");return o((()=>{var s;(null===(s=null==v?void 0:v.requestManagedIdentityPasswordResetEmail)||void 0===s?void 0:s.success)&&d(!0)}),[null===(a=null==v?void 0:v.requestManagedIdentityPasswordResetEmail)||void 0===a?void 0:a.success]),o((()=>{(null==h?void 0:h.message)&&p("Network request failed.")}),[h]),{states:{loading:b,error:(null===(l=null===(i=null===(e=null==h?void 0:h.response)||void 0===e?void 0:e.errors)||void 0===i?void 0:i[0])||void 0===l?void 0:l.message)||m,success:c,loginPath:s.loginPath},callbacks:{submit:async a=>{p("");let t=a.detail.formData;null==t||t.forEach(((s,a)=>{n.set(t,a,s)}));const o={email:t.email,urlParams:f?{nextPage:f}:null,redirectPath:s.redirectPath};await u(o)}}}}(this),m={secondaryButton:a("slot",{name:"secondaryButton"},a("sl-button",{type:"text",disabled:s.loading,onClick:()=>l.push(s.loginPath)},"Sign In")),messageSlot:a("slot",{name:"messageSlot"},"Enter your email below to receive a password reset link."),emailLabel:this.emailLabel,submitLabel:this.submitLabel};return a(d,{states:s,callbacks:e,content:m})}};export{m as sqm_portal_forgot_password}
@@ -0,0 +1 @@
1
+ import{h as s}from"./p-64c3217a.js";import{A as t,a as e,b as a}from"./p-26f627aa.js";import{c as r}from"./p-373fa002.js";import{T as o}from"./p-179988b5.js";const n=r({Wrapper:t,Column:{...e},ButtonsContainer:a,SecondaryButton:{cursor:"pointer",width:"25%"}}),i=n.toString();function p(t){const{states:e,callbacks:a,content:r}=t;return s("div",{class:n.classes.Wrapper},s("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",i),s(o,{type:"h3"},r.messageSlot),s("sl-form",{class:n.classes.Column,"onSl-submit":a.submit},t.states.error&&s("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},s("div",{part:"erroralert-text"},t.states.error)),t.states.success&&s("sqm-form-message",{type:"success",exportparts:"successalert-icon"},s("div",{part:"successalert-text"},"If an account with that email exists, a password reset email will be sent.")),s("sl-input",{exportparts:"label: input-label",type:"email",name:"/email",label:r.emailLabel||"Email",disabled:e.loading,required:!0}),s("div",{class:n.classes.ButtonsContainer},s("sl-button",{submit:!0,loading:e.loading,exportparts:"base: primarybutton-base",type:"primary"},r.submitLabel||"Reset Password"),s("div",{class:n.classes.SecondaryButton},r.secondaryButton))))}export{p as P}
@@ -0,0 +1 @@
1
+ System.register(["./p-ff17b3a4.system.js","./p-0988f079.system.js","./p-3bbb90a9.system.js","./p-8bcaafaf.system.js","./p-bc19e1c2.system.js"],(function(e){"use strict";var t,s,a,l,i;return{setters:[function(e){t=e.h},function(e){s=e.i},function(e){a=e.c},function(e){l=e.T},function(e){i=e.P}],execute:function(){e("P",r);function r(e){var r,n,o,u,d;var m=e.states,p=e.callbacks;var c=m.text,v=m.formState;var b=v.errors,f=v.error;var g={FormStyle:{"& >*:not(:last-child)":{"margin-bottom":"32px"}},Error:{"&::part(erroralert-base)":{"margin-bottom":"32px"}},NameInputStyle:{"&:not(:last-child)":{"margin-right":"var(--sl-spacing-medium)"}}};var y=a(g);var x=y.toString();var N=((r=m.user)===null||r===void 0?void 0:r.countryCode)?s.formatDisplayName((n=m.user)===null||n===void 0?void 0:n.countryCode,{type:"region"}):"";return t(i,Object.assign({},{direction:"row",padding:"xxx-large",gap:"xxx-large",minWidth:"600px"}),t("style",{type:"text/css"},x),t(l,Object.assign({},{type:"h1"}),c.editProfileHeader),t(l,Object.assign({},{type:"h2"}),c.editProfileSubHeader),t("form",{class:y.classes.FormStyle,onSubmit:p.onSubmit},m.success&&t("sqm-form-message",{exportparts:"success-icon"},t("div",{part:"successalert-text"},"Your profile has been successfully updated.")),f&&t("sqm-form-message",{class:y.classes.Error,type:"error",exportparts:"erroralert-icon"},t("div",{part:"erroralert-text"},f)),t(i,Object.assign({},{direction:"row",padding:"none",gap:"32px",minWidth:"50%"}),t("sl-input",Object.assign({class:y.classes.NameInputStyle,exportparts:"label: input-label",value:(o=m.user)===null||o===void 0?void 0:o.firstName,onInput:p.onChange,label:c.firstnametext,disabled:m.loading},(b===null||b===void 0?void 0:b.firstName)&&(b===null||b===void 0?void 0:b.firstName.status)!=="valid"?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{id:"firstName",name:"firstName",error:(b===null||b===void 0?void 0:b.firstName)&&(b===null||b===void 0?void 0:b.firstName.status)!=="valid"?b===null||b===void 0?void 0:b.firstName.message:undefined})),t("sl-input",Object.assign({class:y.classes.NameInputStyle,exportparts:"label: input-label",value:(u=m.user)===null||u===void 0?void 0:u.lastName,onInput:p.onChange,label:c.lastnametext,disabled:m.loading,id:"lastName",name:"lastName"},(b===null||b===void 0?void 0:b.lastName)&&(b===null||b===void 0?void 0:b.lastName.status)!=="valid"?{class:"ErrorStyles",helpText:"Cannot be empty"}:[],{error:(b===null||b===void 0?void 0:b.lastName)&&(b===null||b===void 0?void 0:b.lastName.status)!=="valid"?b===null||b===void 0?void 0:b.lastName.message:undefined}))),t("sl-input",{label:c.emailtext,value:(d=m.user)===null||d===void 0?void 0:d.email,exportparts:"label: input-label",disabled:true}),m.showCountry&&t("sl-input",{label:c.countrytext,value:N,exportparts:"label: input-label",disabled:true}),t("sl-button",{type:"primary",loading:m.loading,disabled:m.submitDisabled,onClick:function(e){p.onSubmit(e)},submit:true},c.submitChangeButtonText)))}}}}));
@@ -0,0 +1 @@
1
+ function n(n){let t={};for(const o of function(n){var t=[];return Object.keys(n).forEach((o=>{"function"==typeof Object.getOwnPropertyDescriptor(n,o).get&&t.push(o)})),t}(Object.getPrototypeOf(n)))t[o]=n[o];return t}function t(n){const t=n.filter((n=>!n.value));return!!t.length&&t}function o(n){const t=null==n?void 0:n.split("_");return t&&1!==t.length?`${t[0]}-${t[1].toUpperCase()}`:n}export{t as a,n as g,o as l}
@@ -0,0 +1 @@
1
+ System.register(["./p-ff17b3a4.system.js","./p-3bbb90a9.system.js"],(function(n){"use strict";var t,e;return{setters:[function(n){t=n.h},function(n){e=n.c}],execute:function(){n("P",a);function a(n){var a={LabelContainer:{"margin-bottom":n.labelMargin==="none"?n.labelMargin:"var(--sl-spacing-"+n.labelMargin+")"},SectionContainer:{textAlign:n.textAlign||"left",padding:n.padding==="none"?"0":"var(--sl-spacing-"+n.padding+")"}};var s=e(a);var i=s.toString();return t("div",{class:s.classes.SectionContainer},t("style",{type:"text/css"},i),t("div",{class:s.classes.LabelContainer},n.label),n.content)}}}}));
@@ -0,0 +1 @@
1
+ import{r as o,h as a}from"./p-64c3217a.js";import{k as e,u as i,m as t}from"./p-b7da9a8a.js";import"./p-d1520098.js";import{n as s,t as l,p as d,k as r}from"./p-3b184c32.js";import"./p-81f34787.js";import{c as n}from"./p-c1086930.js";import"./p-26f627aa.js";import"./p-373fa002.js";import"./p-179988b5.js";import{P as c}from"./p-1d1e9197.js";const v=class{constructor(a){o(this,a),this.ignored=!0,this.nextPage="/",this.failedPage="/",t(this)}disconnectedCallback(){}render(){const{states:o,data:t,callbacks:v}=r()?n({states:{error:"",loading:!1,verified:!0},data:{oobCode:"code"},callbacks:{failed:()=>{console.log("failed")},gotoNextPage:()=>{}}},this.demoData||{},{arrayMerge:(o,a)=>a}):function({nextPage:o,failedPage:a}){var t,r,n,c,v;const[p,m]=e(!1),[u,f]=e(!0),b=s(),[h,{loading:g,data:j,errors:P}]=l(),[k,x]=e(""),C=new URLSearchParams(window.location.search),w=C.get("oobCode"),y=C.get("nextPage");C.delete("oobCode");const N=()=>(C.delete("nextPage"),d.push({pathname:y||o,search:C.toString()&&"?"+C.toString()}));return i((()=>{var o;(null===(o=null==j?void 0:j.verifyManagedIdentityEmail)||void 0===o?void 0:o.success)&&m(!0)}),[null===(t=null==j?void 0:j.verifyManagedIdentityEmail)||void 0===t?void 0:t.success]),i((()=>{(async()=>{w&&(x(""),await h({oobCode:w}))})()}),[]),i((()=>{var o,a;(null===(o=null==b?void 0:b.managedIdentity)||void 0===o?void 0:o.emailVerified)?(f(!1),setTimeout((()=>{N()}),3e3)):w&&!1!==(null===(a=null==j?void 0:j.verifyManagedIdentityEmail)||void 0===a?void 0:a.success)?b||(f(!1),setTimeout((()=>{N()}),3e3)):f(!1)}),[null===(r=null==b?void 0:b.managedIdentity)||void 0===r?void 0:r.emailVerified]),i((()=>{(null==P?void 0:P.message)&&x("Network request failed.")}),[P]),{states:{loading:g||u,error:(null===(v=null===(c=null===(n=null==P?void 0:P.response)||void 0===n?void 0:n.errors)||void 0===c?void 0:c[0])||void 0===v?void 0:v.message)||k,verified:p},data:{oobCode:w},callbacks:{failed:()=>d.push({pathname:a,search:C.toString()&&"?"+C.toString()}),gotoNextPage:N}}}(this);return a(c,{states:o,data:t,callbacks:v})}};export{v as sqm_portal_verify_email}
@@ -0,0 +1 @@
1
+ import{c as n}from"./p-b7da9a8a.js";var t=n((function(n,t){function r(n,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(n,e.key,e)}}function e(n,t,e){return t&&r(n.prototype,t),e&&r(n,e),n}function i(){return(i=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(n[e]=r[e])}return n}).apply(this,arguments)}function u(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n,s(n,t)}function o(n){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}function s(n,t){return(s=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function a(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(n){return!1}}function c(n,t,r){return(c=a()?Reflect.construct:function(n,t,r){var e=[null];e.push.apply(e,t);var i=new(Function.bind.apply(n,e));return r&&s(i,r.prototype),i}).apply(null,arguments)}function h(n){var t="function"==typeof Map?new Map:void 0;return(h=function(n){if(null===n||-1===Function.toString.call(n).indexOf("[native code]"))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return c(n,arguments,o(this).constructor)}return r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),s(r,n)})(n)}function f(n,t){(null==t||t>n.length)&&(t=n.length);for(var r=0,e=new Array(t);r<t;r++)e[r]=n[r];return e}function l(n,t){var r="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(r)return(r=r.call(n)).next.bind(r);if(Array.isArray(n)||(r=function(n,t){if(n){if("string"==typeof n)return f(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(n,t):void 0}}(n))||t&&n&&"number"==typeof n.length){r&&(n=r);var e=0;return function(){return e>=n.length?{done:!0}:{done:!1,value:n[e++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(t,"__esModule",{value:!0});var d=function(n){function t(){return n.apply(this,arguments)||this}return u(t,n),t}(h(Error)),v=function(n){function t(t){return n.call(this,"Invalid DateTime: "+t.toMessage())||this}return u(t,n),t}(d),y=function(n){function t(t){return n.call(this,"Invalid Interval: "+t.toMessage())||this}return u(t,n),t}(d),m=function(n){function t(t){return n.call(this,"Invalid Duration: "+t.toMessage())||this}return u(t,n),t}(d),w=function(n){function t(){return n.apply(this,arguments)||this}return u(t,n),t}(d),g=function(n){function t(t){return n.call(this,"Invalid unit "+t)||this}return u(t,n),t}(d),k=function(n){function t(){return n.apply(this,arguments)||this}return u(t,n),t}(d),M=function(n){function t(){return n.call(this,"Zone is an abstract class")||this}return u(t,n),t}(d),p="numeric",b="short",T="long",N={year:p,month:p,day:p},E={year:p,month:b,day:p},S={year:p,month:b,day:p,weekday:b},D={year:p,month:T,day:p},I={year:p,month:T,day:p,weekday:T},O={hour:p,minute:p},A={hour:p,minute:p,second:p},Z={hour:p,minute:p,second:p,timeZoneName:b},_={hour:p,minute:p,second:p,timeZoneName:T},L={hour:p,minute:p,hourCycle:"h23"},x={hour:p,minute:p,second:p,hourCycle:"h23"},F={hour:p,minute:p,second:p,hourCycle:"h23",timeZoneName:b},j={hour:p,minute:p,second:p,hourCycle:"h23",timeZoneName:T},H={year:p,month:p,day:p,hour:p,minute:p},q={year:p,month:p,day:p,hour:p,minute:p,second:p},W={year:p,month:b,day:p,hour:p,minute:p},C={year:p,month:b,day:p,hour:p,minute:p,second:p},R={year:p,month:b,day:p,weekday:b,hour:p,minute:p},G={year:p,month:T,day:p,hour:p,minute:p,timeZoneName:b},z={year:p,month:T,day:p,hour:p,minute:p,second:p,timeZoneName:b},J={year:p,month:T,day:p,weekday:T,hour:p,minute:p,timeZoneName:T},U={year:p,month:T,day:p,weekday:T,hour:p,minute:p,second:p,timeZoneName:T};function Y(n){return void 0===n}function P(n){return"number"==typeof n}function $(n){return"number"==typeof n&&n%1==0}function V(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(n){return!1}}function B(n,t,r){if(0!==n.length)return n.reduce((function(n,e){var i=[t(e),e];return n&&r(n[0],i[0])===n[0]?n:i}),null)[1]}function K(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function Q(n,t,r){return $(n)&&n>=t&&n<=r}function X(n,t){void 0===t&&(t=2);var r=n<0?"-":"",e=r?-1*n:n;return""+r+(e.toString().length<t?("0".repeat(t)+e).slice(-t):e.toString())}function nn(n){return Y(n)||null===n||""===n?void 0:parseInt(n,10)}function tn(n){if(!Y(n)&&null!==n&&""!==n){var t=1e3*parseFloat("0."+n);return Math.floor(t)}}function rn(n,t,r){void 0===r&&(r=!1);var e=Math.pow(10,t);return(r?Math.trunc:Math.round)(n*e)/e}function en(n){return n%4==0&&(n%100!=0||n%400==0)}function un(n){return en(n)?366:365}function on(n,t){var r,e=(r=t-1)-12*Math.floor(r/12)+1;return 2===e?en(n+(t-e)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][e-1]}function sn(n){var t=Date.UTC(n.year,n.month-1,n.day,n.hour,n.minute,n.second,n.millisecond);return n.year<100&&n.year>=0&&(t=new Date(t)).setUTCFullYear(t.getUTCFullYear()-1900),+t}function an(n){var t=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7,r=n-1,e=(r+Math.floor(r/4)-Math.floor(r/100)+Math.floor(r/400))%7;return 4===t||3===e?53:52}function cn(n){return n>99?n:n>60?1900+n:2e3+n}function hn(n,t,r,e){void 0===e&&(e=null);var u=new Date(n),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};e&&(o.timeZone=e);var s=i({timeZoneName:t},o),a=new Intl.DateTimeFormat(r,s).formatToParts(u).find((function(n){return"timezonename"===n.type.toLowerCase()}));return a?a.value:null}function fn(n,t){var r=parseInt(n,10);Number.isNaN(r)&&(r=0);var e=parseInt(t,10)||0;return 60*r+(r<0||Object.is(r,-0)?-e:e)}function ln(n){var t=Number(n);if("boolean"==typeof n||""===n||Number.isNaN(t))throw new k("Invalid unit value "+n);return t}function dn(n,t){var r={};for(var e in n)if(K(n,e)){var i=n[e];if(null==i)continue;r[t(e)]=ln(i)}return r}function vn(n,t){var r=Math.trunc(Math.abs(n/60)),e=Math.trunc(Math.abs(n%60)),i=n>=0?"+":"-";switch(t){case"short":return""+i+X(r,2)+":"+X(e,2);case"narrow":return""+i+r+(e>0?":"+e:"");case"techie":return""+i+X(r,2)+X(e,2);default:throw new RangeError("Value format "+t+" is out of range for property format")}}function yn(n){return function(n){return["hour","minute","second","millisecond"].reduce((function(t,r){return t[r]=n[r],t}),{})}(n)}var mn=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z_+-]{1,256}(\/[A-Za-z_+-]{1,256})?)?/,wn=["January","February","March","April","May","June","July","August","September","October","November","December"],gn=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],kn=["J","F","M","A","M","J","J","A","S","O","N","D"];function Mn(n){switch(n){case"narrow":return[].concat(kn);case"short":return[].concat(gn);case"long":return[].concat(wn);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var pn=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],bn=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Tn=["M","T","W","T","F","S","S"];function Nn(n){switch(n){case"narrow":return[].concat(Tn);case"short":return[].concat(bn);case"long":return[].concat(pn);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var En=["AM","PM"],Sn=["Before Christ","Anno Domini"],Dn=["BC","AD"],In=["B","A"];function On(n){switch(n){case"narrow":return[].concat(In);case"short":return[].concat(Dn);case"long":return[].concat(Sn);default:return null}}function An(n,t){for(var r,e="",i=l(n);!(r=i()).done;){var u=r.value;e+=u.literal?u.val:t(u.val)}return e}var Zn={D:N,DD:E,DDD:D,DDDD:I,t:O,tt:A,ttt:Z,tttt:_,T:L,TT:x,TTT:F,TTTT:j,f:H,ff:W,fff:G,ffff:J,F:q,FF:C,FFF:z,FFFF:U},_n=function(){function n(n,t){this.opts=t,this.loc=n,this.systemLoc=null}n.create=function(t,r){return void 0===r&&(r={}),new n(t,r)},n.parseFormat=function(n){for(var t=null,r="",e=!1,i=[],u=0;u<n.length;u++){var o=n.charAt(u);"'"===o?(r.length>0&&i.push({literal:e,val:r}),t=null,r="",e=!e):e||o===t?r+=o:(r.length>0&&i.push({literal:!1,val:r}),r=o,t=o)}return r.length>0&&i.push({literal:e,val:r}),i},n.macroTokenToFormatOpts=function(n){return Zn[n]};var t=n.prototype;return t.formatWithSystemDefault=function(n,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(n,i({},this.opts,t)).format()},t.formatDateTime=function(n,t){return void 0===t&&(t={}),this.loc.dtFormatter(n,i({},this.opts,t)).format()},t.formatDateTimeParts=function(n,t){return void 0===t&&(t={}),this.loc.dtFormatter(n,i({},this.opts,t)).formatToParts()},t.resolvedOptions=function(n,t){return void 0===t&&(t={}),this.loc.dtFormatter(n,i({},this.opts,t)).resolvedOptions()},t.num=function(n,t){if(void 0===t&&(t=0),this.opts.forceSimple)return X(n,t);var r=i({},this.opts);return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(n)},t.formatDateTimeFromString=function(t,r){var e=this,i="en"===this.loc.listingMode(),u=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=function(n,r){return e.loc.extract(t,n,r)},s=function(n){return t.isOffsetFixed&&0===t.offset&&n.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,n.format):""},a=function(n,r){return i?function(n,t){return Mn(t)[n.month-1]}(t,n):o(r?{month:n}:{month:n,day:"numeric"},"month")},c=function(n,r){return i?function(n,t){return Nn(t)[n.weekday-1]}(t,n):o(r?{weekday:n}:{weekday:n,month:"long",day:"numeric"},"weekday")},h=function(n){return i?function(n,t){return On(t)[n.year<0?0:1]}(t,n):o({era:n},"era")};return An(n.parseFormat(r),(function(r){switch(r){case"S":return e.num(t.millisecond);case"u":case"SSS":return e.num(t.millisecond,3);case"s":return e.num(t.second);case"ss":return e.num(t.second,2);case"m":return e.num(t.minute);case"mm":return e.num(t.minute,2);case"h":return e.num(t.hour%12==0?12:t.hour%12);case"hh":return e.num(t.hour%12==0?12:t.hour%12,2);case"H":return e.num(t.hour);case"HH":return e.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:e.opts.allowZ});case"ZZ":return s({format:"short",allowZ:e.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:e.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:e.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:e.loc.locale});case"z":return t.zoneName;case"a":return i?function(n){return En[n.hour<12?0:1]}(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return u?o({day:"numeric"},"day"):e.num(t.day);case"dd":return u?o({day:"2-digit"},"day"):e.num(t.day,2);case"c":return e.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return e.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return u?o({month:"numeric",day:"numeric"},"month"):e.num(t.month);case"LL":return u?o({month:"2-digit",day:"numeric"},"month"):e.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return u?o({month:"numeric"},"month"):e.num(t.month);case"MM":return u?o({month:"2-digit"},"month"):e.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return u?o({year:"numeric"},"year"):e.num(t.year);case"yy":return u?o({year:"2-digit"},"year"):e.num(t.year.toString().slice(-2),2);case"yyyy":return u?o({year:"numeric"},"year"):e.num(t.year,4);case"yyyyyy":return u?o({year:"numeric"},"year"):e.num(t.year,6);case"G":return h("short");case"GG":return h("long");case"GGGGG":return h("narrow");case"kk":return e.num(t.weekYear.toString().slice(-2),2);case"kkkk":return e.num(t.weekYear,4);case"W":return e.num(t.weekNumber);case"WW":return e.num(t.weekNumber,2);case"o":return e.num(t.ordinal);case"ooo":return e.num(t.ordinal,3);case"q":return e.num(t.quarter);case"qq":return e.num(t.quarter,2);case"X":return e.num(Math.floor(t.ts/1e3));case"x":return e.num(t.ts);default:return function(r){var i=n.macroTokenToFormatOpts(r);return i?e.formatWithSystemDefault(t,i):r}(r)}}))},t.formatDurationFromString=function(t,r){var e,i=this,u=function(n){switch(n[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},o=n.parseFormat(r),s=o.reduce((function(n,t){return t.literal?n:n.concat(t.val)}),[]),a=t.shiftTo.apply(t,s.map(u).filter((function(n){return n})));return An(o,(e=a,function(n){var t=u(n);return t?i.num(e.get(t),n.length):n}))},n}(),Ln=function(){function n(n,t){this.reason=n,this.explanation=t}return n.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},n}(),xn=function(){function n(){}var t=n.prototype;return t.offsetName=function(){throw new M},t.formatOffset=function(){throw new M},t.offset=function(){throw new M},t.equals=function(){throw new M},e(n,[{key:"type",get:function(){throw new M}},{key:"name",get:function(){throw new M}},{key:"isUniversal",get:function(){throw new M}},{key:"isValid",get:function(){throw new M}}]),n}(),Fn=null,jn=function(n){function t(){return n.apply(this,arguments)||this}u(t,n);var r=t.prototype;return r.offsetName=function(n,t){return hn(n,t.format,t.locale)},r.formatOffset=function(n,t){return vn(this.offset(n),t)},r.offset=function(n){return-new Date(n).getTimezoneOffset()},r.equals=function(n){return"system"===n.type},e(t,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===Fn&&(Fn=new t),Fn}}]),t}(xn),Hn=RegExp("^"+mn.source+"$"),qn={},Wn={year:0,month:1,day:2,hour:3,minute:4,second:5},Cn={},Rn=function(n){function t(r){var e;return(e=n.call(this)||this).zoneName=r,e.valid=t.isValidZone(r),e}u(t,n),t.create=function(n){return Cn[n]||(Cn[n]=new t(n)),Cn[n]},t.resetCache=function(){Cn={},qn={}},t.isValidSpecifier=function(n){return!(!n||!n.match(Hn))},t.isValidZone=function(n){try{return new Intl.DateTimeFormat("en-US",{timeZone:n}).format(),!0}catch(n){return!1}},t.parseGMTOffset=function(n){if(n){var t=n.match(/^Etc\/GMT(0|[+-]\d{1,2})$/i);if(t)return-60*parseInt(t[1])}return null};var r=t.prototype;return r.offsetName=function(n,t){return hn(n,t.format,t.locale,this.name)},r.formatOffset=function(n,t){return vn(this.offset(n),t)},r.offset=function(n){var t=new Date(n);if(isNaN(t))return NaN;var r,e=(qn[r=this.name]||(qn[r]=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),qn[r]),i=e.formatToParts?function(n,t){for(var r=n.formatToParts(t),e=[],i=0;i<r.length;i++){var u=r[i],o=u.value,s=Wn[u.type];Y(s)||(e[s]=parseInt(o,10))}return e}(e,t):function(n,t){var r=n.format(t).replace(/\u200E/g,""),e=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[e[3],e[1],e[2],e[4],e[5],e[6]]}(e,t),u=+t,o=u%1e3;return(sn({year:i[0],month:i[1],day:i[2],hour:i[3],minute:i[4],second:i[5],millisecond:0})-(u-=o>=0?o:1e3+o))/6e4},r.equals=function(n){return"iana"===n.type&&n.name===this.name},e(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(xn),Gn=null,zn=function(n){function t(t){var r;return(r=n.call(this)||this).fixed=t,r}u(t,n),t.instance=function(n){return 0===n?t.utcInstance:new t(n)},t.parseSpecifier=function(n){if(n){var r=n.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(fn(r[1],r[2]))}return null};var r=t.prototype;return r.offsetName=function(){return this.name},r.formatOffset=function(n,t){return vn(this.fixed,t)},r.offset=function(){return this.fixed},r.equals=function(n){return"fixed"===n.type&&n.fixed===this.fixed},e(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+vn(this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===Gn&&(Gn=new t(0)),Gn}}]),t}(xn),Jn=function(n){function t(t){var r;return(r=n.call(this)||this).zoneName=t,r}u(t,n);var r=t.prototype;return r.offsetName=function(){return null},r.formatOffset=function(){return""},r.offset=function(){return NaN},r.equals=function(){return!1},e(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(xn);function Un(n,t){var r;if(Y(n)||null===n)return t;if(n instanceof xn)return n;if("string"==typeof n){var e=n.toLowerCase();return"local"===e||"system"===e?t:"utc"===e||"gmt"===e?zn.utcInstance:null!=(r=Rn.parseGMTOffset(n))?zn.instance(r):Rn.isValidSpecifier(e)?Rn.create(n):zn.parseSpecifier(e)||new Jn(n)}return P(n)?zn.instance(n):"object"==typeof n&&n.offset&&"number"==typeof n.offset?n:new Jn(n)}var Yn,Pn=function(){return Date.now()},$n="system",Vn=null,Bn=null,Kn=null,Qn=function(){function n(){}return n.resetCaches=function(){ct.resetCache(),Rn.resetCache()},e(n,null,[{key:"now",get:function(){return Pn},set:function(n){Pn=n}},{key:"defaultZone",get:function(){return Un($n,jn.instance)},set:function(n){$n=n}},{key:"defaultLocale",get:function(){return Vn},set:function(n){Vn=n}},{key:"defaultNumberingSystem",get:function(){return Bn},set:function(n){Bn=n}},{key:"defaultOutputCalendar",get:function(){return Kn},set:function(n){Kn=n}},{key:"throwOnInvalid",get:function(){return Yn},set:function(n){Yn=n}}]),n}(),Xn=["base"],nt={};function tt(n,t){void 0===t&&(t={});var r=JSON.stringify([n,t]),e=nt[r];return e||(e=new Intl.DateTimeFormat(n,t),nt[r]=e),e}var rt={},et={};var it=null;function ut(n,t,r,e,i){var u=n.listingMode(r);return"error"===u?null:"en"===u?e(t):i(t)}var ot=function(){function n(n,t,r){if(this.padTo=r.padTo||0,this.floor=r.floor||!1,!t){var e={useGrouping:!1};r.padTo>0&&(e.minimumIntegerDigits=r.padTo),this.inf=function(n,t){void 0===t&&(t={});var r=JSON.stringify([n,t]),e=rt[r];return e||(e=new Intl.NumberFormat(n,t),rt[r]=e),e}(n,e)}}return n.prototype.format=function(n){if(this.inf){var t=this.floor?Math.floor(n):n;return this.inf.format(t)}return X(this.floor?Math.floor(n):rn(n,3),this.padTo)},n}(),st=function(){function n(n,t,r){var e;if(this.opts=r,n.zone.isUniversal){var u=n.offset/60*-1,o=u>=0?"Etc/GMT+"+u:"Etc/GMT"+u,s=Rn.isValidZone(o);0!==n.offset&&s?(e=o,this.dt=n):(e="UTC",this.dt=r.timeZoneName||0===n.offset?n:se.fromMillis(n.ts+60*n.offset*1e3))}else"system"===n.zone.type?this.dt=n:(this.dt=n,e=n.zone.name);var a=i({},this.opts);e&&(a.timeZone=e),this.dtf=tt(t,a)}var t=n.prototype;return t.format=function(){return this.dtf.format(this.dt.toJSDate())},t.formatToParts=function(){return this.dtf.formatToParts(this.dt.toJSDate())},t.resolvedOptions=function(){return this.dtf.resolvedOptions()},n}(),at=function(){function n(n,t,r){this.opts=i({style:"long"},r),!t&&V()&&(this.rtf=function(n,t){void 0===t&&(t={});var r=function(n,t){if(null==n)return{};var r,e,i={},u=Object.keys(n);for(e=0;e<u.length;e++)t.indexOf(r=u[e])>=0||(i[r]=n[r]);return i}(t,Xn),e=JSON.stringify([n,r]),i=et[e];return i||(i=new Intl.RelativeTimeFormat(n,t),et[e]=i),i}(n,r))}var t=n.prototype;return t.format=function(n,t){return this.rtf?this.rtf.format(n,t):function(n,t,r,e){void 0===r&&(r="always"),void 0===e&&(e=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},u=-1===["hours","minutes","seconds"].indexOf(n);if("auto"===r&&u){var o="days"===n;switch(t){case 1:return o?"tomorrow":"next "+i[n][0];case-1:return o?"yesterday":"last "+i[n][0];case 0:return o?"today":"this "+i[n][0]}}var s=Object.is(t,-0)||t<0,a=Math.abs(t),c=1===a,h=i[n],f=e?c?h[1]:h[2]||h[1]:c?i[n][0]:n;return s?a+" "+f+" ago":"in "+a+" "+f}(t,n,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(n,t){return this.rtf?this.rtf.formatToParts(n,t):[]},n}(),ct=function(){function n(n,t,r,e){var i=function(n){var t=n.indexOf("-u-");if(-1===t)return[n];var r,e=n.substring(0,t);try{r=tt(n).resolvedOptions()}catch(n){r=tt(e).resolvedOptions()}return[e,r.numberingSystem,r.calendar]}(n),u=i[1],o=i[2];this.locale=i[0],this.numberingSystem=t||u||null,this.outputCalendar=r||o||null,this.intl=function(n,t,r){return r||t?(n+="-u",r&&(n+="-ca-"+r),t&&(n+="-nu-"+t),n):n}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=e,this.fastNumbersCached=null}n.fromOpts=function(t){return n.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)},n.create=function(t,r,e,i){void 0===i&&(i=!1);var u=t||Qn.defaultLocale;return new n(u||(i?"en-US":it||(it="en-US")),r||Qn.defaultNumberingSystem,e||Qn.defaultOutputCalendar,u)},n.resetCache=function(){it=null,nt={},rt={},et={}},n.fromObject=function(t){var r=void 0===t?{}:t;return n.create(r.locale,r.numberingSystem,r.outputCalendar)};var t=n.prototype;return t.listingMode=function(){return this.isEnglish()&&!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar)?"en":"intl"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?n.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this},t.redefaultToEN=function(n){return void 0===n&&(n={}),this.clone(i({},n,{defaultToEN:!0}))},t.redefaultToSystem=function(n){return void 0===n&&(n={}),this.clone(i({},n,{defaultToEN:!1}))},t.months=function(n,t,r){var e=this;return void 0===t&&(t=!1),void 0===r&&(r=!0),ut(this,n,r,Mn,(function(){var r=t?{month:n,day:"numeric"}:{month:n},i=t?"format":"standalone";return e.monthsCache[i][n]||(e.monthsCache[i][n]=function(n){for(var t=[],r=1;r<=12;r++){var e=se.utc(2016,r,1);t.push(n(e))}return t}((function(n){return e.extract(n,r,"month")}))),e.monthsCache[i][n]}))},t.weekdays=function(n,t,r){var e=this;return void 0===t&&(t=!1),void 0===r&&(r=!0),ut(this,n,r,Nn,(function(){var r=t?{weekday:n,year:"numeric",month:"long",day:"numeric"}:{weekday:n},i=t?"format":"standalone";return e.weekdaysCache[i][n]||(e.weekdaysCache[i][n]=function(n){for(var t=[],r=1;r<=7;r++){var e=se.utc(2016,11,13+r);t.push(n(e))}return t}((function(n){return e.extract(n,r,"weekday")}))),e.weekdaysCache[i][n]}))},t.meridiems=function(n){var t=this;return void 0===n&&(n=!0),ut(this,void 0,n,(function(){return En}),(function(){if(!t.meridiemCache){var n={hour:"numeric",hourCycle:"h12"};t.meridiemCache=[se.utc(2016,11,13,9),se.utc(2016,11,13,19)].map((function(r){return t.extract(r,n,"dayperiod")}))}return t.meridiemCache}))},t.eras=function(n,t){var r=this;return void 0===t&&(t=!0),ut(this,n,t,On,(function(){var t={era:n};return r.eraCache[n]||(r.eraCache[n]=[se.utc(-40,1,1),se.utc(2017,1,1)].map((function(n){return r.extract(n,t,"era")}))),r.eraCache[n]}))},t.extract=function(n,t,r){var e=this.dtFormatter(n,t).formatToParts().find((function(n){return n.type.toLowerCase()===r}));return e?e.value:null},t.numberFormatter=function(n){return void 0===n&&(n={}),new ot(this.intl,n.forceSimple||this.fastNumbers,n)},t.dtFormatter=function(n,t){return void 0===t&&(t={}),new st(n,this.intl,t)},t.relFormatter=function(n){return void 0===n&&(n={}),new at(this.intl,this.isEnglish(),n)},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.equals=function(n){return this.locale===n.locale&&this.numberingSystem===n.numberingSystem&&this.outputCalendar===n.outputCalendar},e(n,[{key:"fastNumbers",get:function(){var n;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(n=this).numberingSystem||"latn"===n.numberingSystem)&&("latn"===n.numberingSystem||!n.locale||n.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(n.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),n}();function ht(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];var e=t.reduce((function(n,t){return n+t.source}),"");return RegExp("^"+e+"$")}function ft(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return function(n){return t.reduce((function(t,r){var e=t[0],u=t[1],o=r(n,t[2]),s=o[1],a=o[2];return[i({},e,o[0]),u||s,a]}),[{},null,1]).slice(0,2)}}function lt(n){if(null==n)return[null,null];for(var t=arguments.length,r=new Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];for(var i=0,u=r;i<u.length;i++){var o=u[i],s=o[0],a=o[1],c=s.exec(n);if(c)return a(c)}return[null,null]}function dt(){for(var n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];return function(n,r){var e,i={};for(e=0;e<t.length;e++)i[t[e]]=nn(n[r+e]);return[i,null,r+e]}}var vt=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,yt=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,mt=RegExp(""+yt.source+vt.source+"?"),wt=RegExp("(?:T"+mt.source+")?"),gt=dt("weekYear","weekNumber","weekDay"),kt=dt("year","ordinal"),Mt=RegExp(yt.source+" ?(?:"+vt.source+"|("+mn.source+"))?"),pt=RegExp("(?: "+Mt.source+")?");function bt(n,t,r){var e=n[t];return Y(e)?r:nn(e)}function Tt(n,t){return[{year:bt(n,t),month:bt(n,t+1,1),day:bt(n,t+2,1)},null,t+3]}function Nt(n,t){return[{hours:bt(n,t,0),minutes:bt(n,t+1,0),seconds:bt(n,t+2,0),milliseconds:tn(n[t+3])},null,t+4]}function Et(n,t){var r=!n[t]&&!n[t+1],e=fn(n[t+1],n[t+2]);return[{},r?null:zn.instance(e),t+3]}function St(n,t){return[{},n[t]?Rn.create(n[t]):null,t+1]}var Dt=RegExp("^T?"+yt.source+"$"),It=/^-?P(?:(?:(-?\d{1,9})Y)?(?:(-?\d{1,9})M)?(?:(-?\d{1,9})W)?(?:(-?\d{1,9})D)?(?:T(?:(-?\d{1,9})H)?(?:(-?\d{1,9})M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function Ot(n){var t=n[2],r=n[3],e=n[4],i=n[5],u=n[6],o=n[7],s=n[8],a="-"===n[0][0],c=o&&"-"===o[0],h=function(n,t){return void 0===t&&(t=!1),void 0!==n&&(t||n&&a)?-n:n};return[{years:h(nn(n[1])),months:h(nn(t)),weeks:h(nn(r)),days:h(nn(e)),hours:h(nn(i)),minutes:h(nn(u)),seconds:h(nn(o),"-0"===o),milliseconds:h(tn(s),c)}]}var At={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Zt(n,t,r,e,i,u,o){var s={year:2===t.length?cn(nn(t)):nn(t),month:gn.indexOf(r)+1,day:nn(e),hour:nn(i),minute:nn(u)};return o&&(s.second=nn(o)),n&&(s.weekday=n.length>3?pn.indexOf(n)+1:bn.indexOf(n)+1),s}var _t=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Lt(n){var t,r=n[8],e=n[9],i=n[10],u=n[11],o=Zt(n[1],n[4],n[3],n[2],n[5],n[6],n[7]);return t=r?At[r]:e?0:fn(i,u),[o,new zn(t)]}var xt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Ft=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,jt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Ht(n){return[Zt(n[1],n[4],n[3],n[2],n[5],n[6],n[7]),zn.utcInstance]}function qt(n){return[Zt(n[1],n[7],n[2],n[3],n[4],n[5],n[6]),zn.utcInstance]}var Wt=ht(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,wt),Ct=ht(/(\d{4})-?W(\d\d)(?:-?(\d))?/,wt),Rt=ht(/(\d{4})-?(\d{3})/,wt),Gt=ht(mt),zt=ft(Tt,Nt,Et),Jt=ft(gt,Nt,Et),Ut=ft(kt,Nt,Et),Yt=ft(Nt,Et),Pt=ft(Nt),$t=ht(/(\d{4})-(\d\d)-(\d\d)/,pt),Vt=ht(Mt),Bt=ft(Tt,Nt,Et,St),Kt=ft(Nt,Et,St),Qt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Xt=i({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},Qt),nr=i({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},Qt),tr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],rr=tr.slice(0).reverse();function er(n,t,r){void 0===r&&(r=!1);var e={values:r?t.values:i({},n.values,t.values||{}),loc:n.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||n.conversionAccuracy};return new ur(e)}function ir(n,t,r,e,i){var u=n[i][r],o=t[r]/u,s=Math.sign(o)!==Math.sign(e[i])&&0!==e[i]&&Math.abs(o)<=1?function(n){return n<0?Math.floor(n):Math.ceil(n)}(o):Math.trunc(o);e[i]+=s,t[r]-=s*u}var ur=function(){function n(n){var t="longterm"===n.conversionAccuracy||!1;this.values=n.values,this.loc=n.loc||ct.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=n.invalid||null,this.matrix=t?nr:Xt,this.isLuxonDuration=!0}n.fromMillis=function(t,r){return n.fromObject({milliseconds:t},r)},n.fromObject=function(t,r){if(void 0===r&&(r={}),null==t||"object"!=typeof t)throw new k("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new n({values:dn(t,n.normalizeUnit),loc:ct.fromObject(r),conversionAccuracy:r.conversionAccuracy})},n.fromISO=function(t,r){var e=function(n){return lt(n,[It,Ot])}(t)[0];return e?n.fromObject(e,r):n.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},n.fromISOTime=function(t,r){var e=function(n){return lt(n,[Dt,Pt])}(t)[0];return e?n.fromObject(e,r):n.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},n.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new k("need to specify a reason the Duration is invalid");var e=t instanceof Ln?t:new Ln(t,r);if(Qn.throwOnInvalid)throw new m(e);return new n({invalid:e})},n.normalizeUnit=function(n){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[n?n.toLowerCase():n];if(!t)throw new g(n);return t},n.isDuration=function(n){return n&&n.isLuxonDuration||!1};var t=n.prototype;return t.toFormat=function(n,t){void 0===t&&(t={});var r=i({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?_n.create(this.loc,r).formatDurationFromString(this,n):"Invalid Duration"},t.toObject=function(){return this.isValid?i({},this.values):{}},t.toISO=function(){if(!this.isValid)return null;var n="P";return 0!==this.years&&(n+=this.years+"Y"),0===this.months&&0===this.quarters||(n+=this.months+3*this.quarters+"M"),0!==this.weeks&&(n+=this.weeks+"W"),0!==this.days&&(n+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(n+="T"),0!==this.hours&&(n+=this.hours+"H"),0!==this.minutes&&(n+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(n+=rn(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===n&&(n+="T0S"),n},t.toISOTime=function(n){if(void 0===n&&(n={}),!this.isValid)return null;var t=this.toMillis();if(t<0||t>=864e5)return null;n=i({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},n);var r=this.shiftTo("hours","minutes","seconds","milliseconds"),e="basic"===n.format?"hhmm":"hh:mm";n.suppressSeconds&&0===r.seconds&&0===r.milliseconds||(e+="basic"===n.format?"ss":":ss",n.suppressMilliseconds&&0===r.milliseconds||(e+=".SSS"));var u=r.toFormat(e);return n.includePrefix&&(u="T"+u),u},t.toJSON=function(){return this.toISO()},t.toString=function(){return this.toISO()},t.toMillis=function(){return this.as("milliseconds")},t.valueOf=function(){return this.toMillis()},t.plus=function(n){if(!this.isValid)return this;for(var t,r=or(n),e={},i=l(tr);!(t=i()).done;){var u=t.value;(K(r.values,u)||K(this.values,u))&&(e[u]=r.get(u)+this.get(u))}return er(this,{values:e},!0)},t.minus=function(n){if(!this.isValid)return this;var t=or(n);return this.plus(t.negate())},t.mapUnits=function(n){if(!this.isValid)return this;for(var t={},r=0,e=Object.keys(this.values);r<e.length;r++){var i=e[r];t[i]=ln(n(this.values[i],i))}return er(this,{values:t},!0)},t.get=function(t){return this[n.normalizeUnit(t)]},t.set=function(t){return this.isValid?er(this,{values:i({},this.values,dn(t,n.normalizeUnit))}):this},t.reconfigure=function(n){var t=void 0===n?{}:n,r=t.conversionAccuracy,e={loc:this.loc.clone({locale:t.locale,numberingSystem:t.numberingSystem})};return r&&(e.conversionAccuracy=r),er(this,e)},t.as=function(n){return this.isValid?this.shiftTo(n).get(n):NaN},t.normalize=function(){if(!this.isValid)return this;var n=this.toObject();return function(n,t){rr.reduce((function(r,e){return Y(t[e])?r:(r&&ir(n,t,r,t,e),e)}),null)}(this.matrix,n),er(this,{values:n},!0)},t.shiftTo=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];if(!this.isValid)return this;if(0===r.length)return this;r=r.map((function(t){return n.normalizeUnit(t)}));for(var i,u,o={},s={},a=this.toObject(),c=l(tr);!(u=c()).done;){var h=u.value;if(r.indexOf(h)>=0){i=h;var f=0;for(var d in s)f+=this.matrix[d][h]*s[d],s[d]=0;P(a[h])&&(f+=a[h]);var v=Math.trunc(f);for(var y in o[h]=v,s[h]=f-v,a)tr.indexOf(y)>tr.indexOf(h)&&ir(this.matrix,a,y,o,h)}else P(a[h])&&(s[h]=a[h])}for(var m in s)0!==s[m]&&(o[i]+=m===i?s[m]:s[m]/this.matrix[i][m]);return er(this,{values:o},!0).normalize()},t.negate=function(){if(!this.isValid)return this;for(var n={},t=0,r=Object.keys(this.values);t<r.length;t++){var e=r[t];n[e]=-this.values[e]}return er(this,{values:n},!0)},t.equals=function(n){if(!this.isValid||!n.isValid)return!1;if(!this.loc.equals(n.loc))return!1;for(var t,r=l(tr);!(t=r()).done;){var e=t.value;if(u=n.values[e],!(void 0===(i=this.values[e])||0===i?void 0===u||0===u:i===u))return!1}var i,u;return!0},e(n,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),n}();function or(n){if(P(n))return ur.fromMillis(n);if(ur.isDuration(n))return n;if("object"==typeof n)return ur.fromObject(n);throw new k("Unknown duration argument "+n+" of type "+typeof n)}var sr="Invalid Interval";function ar(n,t){return n&&n.isValid?t&&t.isValid?t<n?cr.invalid("end before start","The end of an interval must be after its start, but you had start="+n.toISO()+" and end="+t.toISO()):null:cr.invalid("missing or invalid end"):cr.invalid("missing or invalid start")}var cr=function(){function n(n){this.s=n.start,this.e=n.end,this.invalid=n.invalid||null,this.isLuxonInterval=!0}n.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new k("need to specify a reason the Interval is invalid");var e=t instanceof Ln?t:new Ln(t,r);if(Qn.throwOnInvalid)throw new y(e);return new n({invalid:e})},n.fromDateTimes=function(t,r){var e=ae(t),i=ae(r),u=ar(e,i);return null==u?new n({start:e,end:i}):u},n.after=function(t,r){var e=or(r),i=ae(t);return n.fromDateTimes(i,i.plus(e))},n.before=function(t,r){var e=or(r),i=ae(t);return n.fromDateTimes(i.minus(e),i)},n.fromISO=function(t,r){var e=(t||"").split("/",2),i=e[0],u=e[1];if(i&&u){var o,s,a,c;try{s=(o=se.fromISO(i,r)).isValid}catch(u){s=!1}try{c=(a=se.fromISO(u,r)).isValid}catch(u){c=!1}if(s&&c)return n.fromDateTimes(o,a);if(s){var h=ur.fromISO(u,r);if(h.isValid)return n.after(o,h)}else if(c){var f=ur.fromISO(i,r);if(f.isValid)return n.before(a,f)}}return n.invalid("unparsable",'the input "'+t+"\" can't be parsed as ISO 8601")},n.isInterval=function(n){return n&&n.isLuxonInterval||!1};var t=n.prototype;return t.length=function(n){return void 0===n&&(n="milliseconds"),this.isValid?this.toDuration.apply(this,[n]).get(n):NaN},t.count=function(n){if(void 0===n&&(n="milliseconds"),!this.isValid)return NaN;var t=this.start.startOf(n),r=this.end.startOf(n);return Math.floor(r.diff(t,n).get(n))+1},t.hasSame=function(n){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,n))},t.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},t.isAfter=function(n){return!!this.isValid&&this.s>n},t.isBefore=function(n){return!!this.isValid&&this.e<=n},t.contains=function(n){return!!this.isValid&&this.s<=n&&this.e>n},t.set=function(t){var r=void 0===t?{}:t;return this.isValid?n.fromDateTimes(r.start||this.s,r.end||this.e):this},t.splitAt=function(){var t=this;if(!this.isValid)return[];for(var r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];for(var u=e.map(ae).filter((function(n){return t.contains(n)})).sort(),o=[],s=this.s,a=0;s<this.e;){var c=u[a]||this.e,h=+c>+this.e?this.e:c;o.push(n.fromDateTimes(s,h)),s=h,a+=1}return o},t.splitBy=function(t){var r=or(t);if(!this.isValid||!r.isValid||0===r.as("milliseconds"))return[];for(var e,i=this.s,u=1,o=[];i<this.e;){var s=this.start.plus(r.mapUnits((function(n){return n*u})));o.push(n.fromDateTimes(i,e=+s>+this.e?this.e:s)),i=e,u+=1}return o},t.divideEqually=function(n){return this.isValid?this.splitBy(this.length()/n).slice(0,n):[]},t.overlaps=function(n){return this.e>n.s&&this.s<n.e},t.abutsStart=function(n){return!!this.isValid&&+this.e==+n.s},t.abutsEnd=function(n){return!!this.isValid&&+n.e==+this.s},t.engulfs=function(n){return!!this.isValid&&this.s<=n.s&&this.e>=n.e},t.equals=function(n){return!(!this.isValid||!n.isValid)&&this.s.equals(n.s)&&this.e.equals(n.e)},t.intersection=function(t){if(!this.isValid)return this;var r=this.s>t.s?this.s:t.s,e=this.e<t.e?this.e:t.e;return r>=e?null:n.fromDateTimes(r,e)},t.union=function(t){return this.isValid?n.fromDateTimes(this.s<t.s?this.s:t.s,this.e>t.e?this.e:t.e):this},n.merge=function(n){var t=n.sort((function(n,t){return n.s-t.s})).reduce((function(n,t){var r=n[0],e=n[1];return e?e.overlaps(t)||e.abutsStart(t)?[r,e.union(t)]:[r.concat([e]),t]:[r,t]}),[[],null]),r=t[0],e=t[1];return e&&r.push(e),r},n.xor=function(t){for(var r,e,i=null,u=0,o=[],s=t.map((function(n){return[{time:n.s,type:"s"},{time:n.e,type:"e"}]})),a=l((r=Array.prototype).concat.apply(r,s).sort((function(n,t){return n.time-t.time})));!(e=a()).done;){var c=e.value;1===(u+="s"===c.type?1:-1)?i=c.time:(i&&+i!=+c.time&&o.push(n.fromDateTimes(i,c.time)),i=null)}return n.merge(o)},t.difference=function(){for(var t=this,r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];return n.xor([this].concat(e)).map((function(n){return t.intersection(n)})).filter((function(n){return n&&!n.isEmpty()}))},t.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":sr},t.toISO=function(n){return this.isValid?this.s.toISO(n)+"/"+this.e.toISO(n):sr},t.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():sr},t.toISOTime=function(n){return this.isValid?this.s.toISOTime(n)+"/"+this.e.toISOTime(n):sr},t.toFormat=function(n,t){var r=(void 0===t?{}:t).separator,e=void 0===r?" – ":r;return this.isValid?""+this.s.toFormat(n)+e+this.e.toFormat(n):sr},t.toDuration=function(n,t){return this.isValid?this.e.diff(this.s,n,t):ur.invalid(this.invalidReason)},t.mapEndpoints=function(t){return n.fromDateTimes(t(this.s),t(this.e))},e(n,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),n}(),hr=function(){function n(){}return n.hasDST=function(n){void 0===n&&(n=Qn.defaultZone);var t=se.now().setZone(n).set({month:12});return!n.isUniversal&&t.offset!==t.set({month:6}).offset},n.isValidIANAZone=function(n){return Rn.isValidSpecifier(n)&&Rn.isValidZone(n)},n.normalizeZone=function(n){return Un(n,Qn.defaultZone)},n.months=function(n,t){void 0===n&&(n="long");var r=void 0===t?{}:t,e=r.locale,i=r.numberingSystem,u=r.locObj,o=r.outputCalendar;return((void 0===u?null:u)||ct.create(void 0===e?null:e,void 0===i?null:i,void 0===o?"gregory":o)).months(n)},n.monthsFormat=function(n,t){void 0===n&&(n="long");var r=void 0===t?{}:t,e=r.locale,i=r.numberingSystem,u=r.locObj,o=r.outputCalendar;return((void 0===u?null:u)||ct.create(void 0===e?null:e,void 0===i?null:i,void 0===o?"gregory":o)).months(n,!0)},n.weekdays=function(n,t){void 0===n&&(n="long");var r=void 0===t?{}:t,e=r.locale,i=r.numberingSystem,u=r.locObj;return((void 0===u?null:u)||ct.create(void 0===e?null:e,void 0===i?null:i,null)).weekdays(n)},n.weekdaysFormat=function(n,t){void 0===n&&(n="long");var r=void 0===t?{}:t,e=r.locale,i=r.numberingSystem,u=r.locObj;return((void 0===u?null:u)||ct.create(void 0===e?null:e,void 0===i?null:i,null)).weekdays(n,!0)},n.meridiems=function(n){var t=(void 0===n?{}:n).locale;return ct.create(void 0===t?null:t).meridiems()},n.eras=function(n,t){void 0===n&&(n="short");var r=(void 0===t?{}:t).locale;return ct.create(void 0===r?null:r,null,"gregory").eras(n)},n.features=function(){return{relative:V()}},n}();function fr(n,t){var r=function(n){return n.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},e=r(t)-r(n);return Math.floor(ur.fromMillis(e).as("days"))}var lr={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},dr={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},vr=lr.hanidec.replace(/[\[|\]]/g,"").split("");function yr(n,t){return void 0===t&&(t=""),new RegExp(""+lr[n.numberingSystem||"latn"]+t)}function mr(n,t){return void 0===t&&(t=function(n){return n}),{regex:n,deser:function(n){return t(function(n){var t=parseInt(n,10);if(isNaN(t)){t="";for(var r=0;r<n.length;r++){var e=n.charCodeAt(r);if(-1!==n[r].search(lr.hanidec))t+=vr.indexOf(n[r]);else for(var i in dr){var u=dr[i],o=u[0];e>=o&&e<=u[1]&&(t+=e-o)}}return parseInt(t,10)}return t}(n[0]))}}}var wr="( |"+String.fromCharCode(160)+")",gr=new RegExp(wr,"g");function kr(n){return n.replace(/\./g,"\\.?").replace(gr,wr)}function Mr(n){return n.replace(/\./g,"").replace(gr," ").toLowerCase()}function pr(n,t){return null===n?null:{regex:RegExp(n.map(kr).join("|")),deser:function(r){var e=r[0];return n.findIndex((function(n){return Mr(e)===Mr(n)}))+t}}}function br(n,t){return{regex:n,deser:function(n){return fn(n[1],n[2])},groups:t}}function Tr(n){return{regex:n,deser:function(n){return n[0]}}}var Nr={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}},Er=null;function Sr(n,t,r){var e=function(n,t){var r;return(r=Array.prototype).concat.apply(r,n.map((function(n){return function(n,t){if(n.literal)return n;var r=_n.macroTokenToFormatOpts(n.val);if(!r)return n;var e=_n.create(t,r).formatDateTimeParts((Er||(Er=se.fromMillis(1555555555555)),Er)).map((function(n){return function(n,t,r){var e=n.type;if("literal"===e)return{literal:!0,val:n.value};var i=Nr[e];return"object"==typeof i&&(i=i[r[e]]),i?{literal:!1,val:i}:void 0}(n,0,r)}));return e.includes(void 0)?n:e}(n,t)})))}(_n.parseFormat(r),n),i=e.map((function(t){return r=t,i=yr(e=n),u=yr(e,"{2}"),o=yr(e,"{3}"),s=yr(e,"{4}"),a=yr(e,"{6}"),c=yr(e,"{1,2}"),h=yr(e,"{1,3}"),f=yr(e,"{1,6}"),l=yr(e,"{1,9}"),d=yr(e,"{2,4}"),v=yr(e,"{4,6}"),y=function(n){return{regex:RegExp((t=n.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:function(n){return n[0]},literal:!0};var t},(m=function(n){if(r.literal)return y(n);switch(n.val){case"G":return pr(e.eras("short",!1),0);case"GG":return pr(e.eras("long",!1),0);case"y":return mr(f);case"yy":return mr(d,cn);case"yyyy":return mr(s);case"yyyyy":return mr(v);case"yyyyyy":return mr(a);case"M":return mr(c);case"MM":return mr(u);case"MMM":return pr(e.months("short",!0,!1),1);case"MMMM":return pr(e.months("long",!0,!1),1);case"L":return mr(c);case"LL":return mr(u);case"LLL":return pr(e.months("short",!1,!1),1);case"LLLL":return pr(e.months("long",!1,!1),1);case"d":return mr(c);case"dd":return mr(u);case"o":return mr(h);case"ooo":return mr(o);case"HH":return mr(u);case"H":return mr(c);case"hh":return mr(u);case"h":return mr(c);case"mm":return mr(u);case"m":case"q":return mr(c);case"qq":return mr(u);case"s":return mr(c);case"ss":return mr(u);case"S":return mr(h);case"SSS":return mr(o);case"u":return Tr(l);case"a":return pr(e.meridiems(),0);case"kkkk":return mr(s);case"kk":return mr(d,cn);case"W":return mr(c);case"WW":return mr(u);case"E":case"c":return mr(i);case"EEE":return pr(e.weekdays("short",!1,!1),1);case"EEEE":return pr(e.weekdays("long",!1,!1),1);case"ccc":return pr(e.weekdays("short",!0,!1),1);case"cccc":return pr(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return br(new RegExp("([+-]"+c.source+")(?::("+u.source+"))?"),2);case"ZZZ":return br(new RegExp("([+-]"+c.source+")("+u.source+")?"),2);case"z":return Tr(/[a-z_+-/]{1,256}?/i);default:return y(n)}}(r)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=r,m;var r,e,i,u,o,s,a,c,h,f,l,d,v,y,m})),u=i.find((function(n){return n.invalidReason}));if(u)return{input:t,tokens:e,invalidReason:u.invalidReason};var o=function(n){return["^"+n.map((function(n){return n.regex})).reduce((function(n,t){return n+"("+t.source+")"}),"")+"$",n]}(i),s=o[1],a=RegExp(o[0],"i"),c=function(n,t,r){var e=n.match(t);if(e){var i={},u=1;for(var o in r)if(K(r,o)){var s=r[o],a=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(e.slice(u,u+a))),u+=a}return[e,i]}return[e,{}]}(t,a,s),h=c[0],f=c[1],l=f?function(n){var t;return t=Y(n.Z)?Y(n.z)?null:Rn.create(n.z):new zn(n.Z),Y(n.q)||(n.M=3*(n.q-1)+1),Y(n.h)||(n.h<12&&1===n.a?n.h+=12:12===n.h&&0===n.a&&(n.h=0)),0===n.G&&n.y&&(n.y=-n.y),Y(n.u)||(n.S=tn(n.u)),[Object.keys(n).reduce((function(t,r){var e=function(n){switch(n){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}}(r);return e&&(t[e]=n[r]),t}),{}),t]}(f):[null,null],d=l[0],v=l[1];if(K(f,"a")&&K(f,"H"))throw new w("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:e,regex:a,rawMatches:h,matches:f,result:d,zone:v}}var Dr=[0,31,59,90,120,151,181,212,243,273,304,334],Ir=[0,31,60,91,121,152,182,213,244,274,305,335];function Or(n,t){return new Ln("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+n+", which is invalid")}function Ar(n,t,r){var e=new Date(Date.UTC(n,t-1,r)).getUTCDay();return 0===e?7:e}function Zr(n,t,r){return r+(en(n)?Ir:Dr)[t-1]}function _r(n,t){var r=en(n)?Ir:Dr,e=r.findIndex((function(n){return n<t}));return{month:e+1,day:t-r[e]}}function Lr(n){var t,r=n.year,e=n.month,u=n.day,o=Zr(r,e,u),s=Ar(r,e,u),a=Math.floor((o-s+10)/7);return a<1?a=an(t=r-1):a>an(r)?(t=r+1,a=1):t=r,i({weekYear:t,weekNumber:a,weekday:s},yn(n))}function xr(n){var t,r=n.weekYear,e=n.weekNumber,u=n.weekday,o=Ar(r,1,4),s=un(r),a=7*e+u-o-3;a<1?a+=un(t=r-1):a>s?(t=r+1,a-=un(r)):t=r;var c=_r(t,a);return i({year:t,month:c.month,day:c.day},yn(n))}function Fr(n){var t=n.year;return i({year:t,ordinal:Zr(t,n.month,n.day)},yn(n))}function jr(n){var t=n.year,r=_r(t,n.ordinal);return i({year:t,month:r.month,day:r.day},yn(n))}function Hr(n){var t=$(n.year),r=Q(n.month,1,12),e=Q(n.day,1,on(n.year,n.month));return t?r?!e&&Or("day",n.day):Or("month",n.month):Or("year",n.year)}function qr(n){var t=n.hour,r=n.minute,e=n.second,i=n.millisecond,u=Q(t,0,23)||24===t&&0===r&&0===e&&0===i,o=Q(r,0,59),s=Q(e,0,59),a=Q(i,0,999);return u?o?s?!a&&Or("millisecond",i):Or("second",e):Or("minute",r):Or("hour",t)}var Wr="Invalid DateTime",Cr=864e13;function Rr(n){return new Ln("unsupported zone",'the zone "'+n.name+'" is not supported')}function Gr(n){return null===n.weekData&&(n.weekData=Lr(n.c)),n.weekData}function zr(n,t){var r={ts:n.ts,zone:n.zone,c:n.c,o:n.o,loc:n.loc,invalid:n.invalid};return new se(i({},r,t,{old:r}))}function Jr(n,t,r){var e=n-60*t*1e3,i=r.offset(e);if(t===i)return[e,t];var u=r.offset(e-=60*(i-t)*1e3);return i===u?[e,i]:[n-60*Math.min(i,u)*1e3,Math.max(i,u)]}function Ur(n,t){var r=new Date(n+=60*t*1e3);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function Yr(n,t,r){return Jr(sn(n),t,r)}function Pr(n,t){var r=n.o,e=n.c.year+Math.trunc(t.years),u=n.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),o=i({},n.c,{year:e,month:u,day:Math.min(n.c.day,on(e,u))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),s=ur.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=Jr(sn(o),r,n.zone),c=a[0],h=a[1];return 0!==s&&(h=n.zone.offset(c+=s)),{ts:c,o:h}}function $r(n,t,r,e,u){var o=r.setZone,s=r.zone;if(n&&0!==Object.keys(n).length){var a=se.fromObject(n,i({},r,{zone:t||s,setZone:void 0}));return o?a:a.setZone(s)}return se.invalid(new Ln("unparsable",'the input "'+u+"\" can't be parsed as "+e))}function Vr(n,t,r){return void 0===r&&(r=!0),n.isValid?_n.create(ct.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(n,t):null}function Br(n,t){var r=t.suppressSeconds,e=t.suppressMilliseconds,i=t.includeOffset,u=t.includePrefix,o=void 0!==u&&u,s=t.includeZone,a=void 0!==s&&s,c=t.spaceZone,h=t.format,f=void 0===h?"extended":h,l="basic"===f?"HHmm":"HH:mm";void 0!==r&&r&&0===n.second&&0===n.millisecond||(l+="basic"===f?"ss":":ss",void 0!==e&&e&&0===n.millisecond||(l+=".SSS")),(a||i)&&void 0!==c&&c&&(l+=" "),a?l+="z":i&&(l+="basic"===f?"ZZZ":"ZZ");var d=Vr(n,l);return o&&(d="T"+d),d}var Kr={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Qr={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Xr={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ne=["year","month","day","hour","minute","second","millisecond"],te=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],re=["year","ordinal","hour","minute","second","millisecond"];function ee(n){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[n.toLowerCase()];if(!t)throw new g(n);return t}function ie(n,t){var r,e,i=Un(t.zone,Qn.defaultZone),u=ct.fromObject(t),o=Qn.now();if(Y(n.year))r=o;else{for(var s,a=l(ne);!(s=a()).done;){var c=s.value;Y(n[c])&&(n[c]=Kr[c])}var h=Hr(n)||qr(n);if(h)return se.invalid(h);var f=Yr(n,i.offset(o),i);r=f[0],e=f[1]}return new se({ts:r,zone:i,loc:u,o:e})}function ue(n,t,r){var e=!!Y(r.round)||r.round,i=function(n,i){return n=rn(n,e||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(n,i)},u=function(e){return r.calendary?t.hasSame(n,e)?0:t.startOf(e).diff(n.startOf(e),e).get(e):t.diff(n,e).get(e)};if(r.unit)return i(u(r.unit),r.unit);for(var o,s=l(r.units);!(o=s()).done;){var a=o.value,c=u(a);if(Math.abs(c)>=1)return i(c,a)}return i(n>t?-0:0,r.units[r.units.length-1])}function oe(n){var t,r={};return n.length>0&&"object"==typeof n[n.length-1]?(r=n[n.length-1],t=Array.from(n).slice(0,n.length-1)):t=Array.from(n),[r,t]}var se=function(){function n(n){var t=n.zone||Qn.defaultZone,r=n.invalid||(Number.isNaN(n.ts)?new Ln("invalid input"):null)||(t.isValid?null:Rr(t));this.ts=Y(n.ts)?Qn.now():n.ts;var e=null,i=null;if(!r)if(n.old&&n.old.ts===this.ts&&n.old.zone.equals(t)){var u=[n.old.c,n.old.o];e=u[0],i=u[1]}else{var o=t.offset(this.ts);e=Ur(this.ts,o),e=(r=Number.isNaN(e.year)?new Ln("invalid input"):null)?null:e,i=r?null:o}this._zone=t,this.loc=n.loc||ct.create(),this.invalid=r,this.weekData=null,this.c=e,this.o=i,this.isLuxonDateTime=!0}n.now=function(){return new n({})},n.local=function(){var n=oe(arguments),t=n[0],r=n[1],e=r[0],i=r[1],u=r[2],o=r[3],s=r[4],a=r[5],c=r[6];return ie({year:e,month:i,day:u,hour:o,minute:s,second:a,millisecond:c},t)},n.utc=function(){var n=oe(arguments),t=n[0],r=n[1],e=r[0],i=r[1],u=r[2],o=r[3],s=r[4],a=r[5],c=r[6];return t.zone=zn.utcInstance,ie({year:e,month:i,day:u,hour:o,minute:s,second:a,millisecond:c},t)},n.fromJSDate=function(t,r){void 0===r&&(r={});var e="[object Date]"===Object.prototype.toString.call(t)?t.valueOf():NaN;if(Number.isNaN(e))return n.invalid("invalid input");var i=Un(r.zone,Qn.defaultZone);return i.isValid?new n({ts:e,zone:i,loc:ct.fromObject(r)}):n.invalid(Rr(i))},n.fromMillis=function(t,r){if(void 0===r&&(r={}),P(t))return t<-Cr||t>Cr?n.invalid("Timestamp out of range"):new n({ts:t,zone:Un(r.zone,Qn.defaultZone),loc:ct.fromObject(r)});throw new k("fromMillis requires a numerical input, but received a "+typeof t+" with value "+t)},n.fromSeconds=function(t,r){if(void 0===r&&(r={}),P(t))return new n({ts:1e3*t,zone:Un(r.zone,Qn.defaultZone),loc:ct.fromObject(r)});throw new k("fromSeconds requires a numerical input")},n.fromObject=function(t,r){void 0===r&&(r={}),t=t||{};var e=Un(r.zone,Qn.defaultZone);if(!e.isValid)return n.invalid(Rr(e));var i=Qn.now(),u=e.offset(i),o=dn(t,ee),s=!Y(o.ordinal),a=!Y(o.year),c=!Y(o.month)||!Y(o.day),h=a||c,f=o.weekYear||o.weekNumber,d=ct.fromObject(r);if((h||s)&&f)throw new w("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&s)throw new w("Can't mix ordinal dates with month/day");var v,y,m=f||o.weekday&&!h,g=Ur(i,u);m?(v=te,y=Qr,g=Lr(g)):s?(v=re,y=Xr,g=Fr(g)):(v=ne,y=Kr);for(var k,M=!1,p=l(v);!(k=p()).done;){var b=k.value;Y(o[b])?o[b]=M?y[b]:g[b]:M=!0}var T=(m?function(n){var t=$(n.weekYear),r=Q(n.weekNumber,1,an(n.weekYear)),e=Q(n.weekday,1,7);return t?r?!e&&Or("weekday",n.weekday):Or("week",n.week):Or("weekYear",n.weekYear)}(o):s?function(n){var t=$(n.year),r=Q(n.ordinal,1,un(n.year));return t?!r&&Or("ordinal",n.ordinal):Or("year",n.year)}(o):Hr(o))||qr(o);if(T)return n.invalid(T);var N=Yr(m?xr(o):s?jr(o):o,u,e),E=new n({ts:N[0],zone:e,o:N[1],loc:d});return o.weekday&&h&&t.weekday!==E.weekday?n.invalid("mismatched weekday","you can't specify both a weekday of "+o.weekday+" and a date of "+E.toISO()):E},n.fromISO=function(n,t){void 0===t&&(t={});var r=function(n){return lt(n,[Wt,zt],[Ct,Jt],[Rt,Ut],[Gt,Yt])}(n);return $r(r[0],r[1],t,"ISO 8601",n)},n.fromRFC2822=function(n,t){void 0===t&&(t={});var r=function(n){return lt(function(n){return n.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(n),[_t,Lt])}(n);return $r(r[0],r[1],t,"RFC 2822",n)},n.fromHTTP=function(n,t){void 0===t&&(t={});var r=function(n){return lt(n,[xt,Ht],[Ft,Ht],[jt,qt])}(n);return $r(r[0],r[1],t,"HTTP",t)},n.fromFormat=function(t,r,e){if(void 0===e&&(e={}),Y(t)||Y(r))throw new k("fromFormat requires an input string and a format");var i,u,o=e.locale,s=e.numberingSystem,a=(i=ct.fromOpts({locale:void 0===o?null:o,numberingSystem:void 0===s?null:s,defaultToEN:!0}),[(u=Sr(i,t,r)).result,u.zone,u.invalidReason]),c=a[0],h=a[1],f=a[2];return f?n.invalid(f):$r(c,h,e,"format "+r,t)},n.fromString=function(t,r,e){return void 0===e&&(e={}),n.fromFormat(t,r,e)},n.fromSQL=function(n,t){void 0===t&&(t={});var r=function(n){return lt(n,[$t,Bt],[Vt,Kt])}(n);return $r(r[0],r[1],t,"SQL",n)},n.invalid=function(t,r){if(void 0===r&&(r=null),!t)throw new k("need to specify a reason the DateTime is invalid");var e=t instanceof Ln?t:new Ln(t,r);if(Qn.throwOnInvalid)throw new v(e);return new n({invalid:e})},n.isDateTime=function(n){return n&&n.isLuxonDateTime||!1};var t=n.prototype;return t.get=function(n){return this[n]},t.resolvedLocaleOptions=function(n){void 0===n&&(n={});var t=_n.create(this.loc.clone(n),n).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},t.toUTC=function(n,t){return void 0===n&&(n=0),void 0===t&&(t={}),this.setZone(zn.instance(n),t)},t.toLocal=function(){return this.setZone(Qn.defaultZone)},t.setZone=function(t,r){var e=void 0===r?{}:r,i=e.keepLocalTime,u=void 0!==i&&i,o=e.keepCalendarTime,s=void 0!==o&&o;if((t=Un(t,Qn.defaultZone)).equals(this.zone))return this;if(t.isValid){var a=this.ts;if(u||s){var c=t.offset(this.ts);a=Yr(this.toObject(),c,t)[0]}return zr(this,{ts:a,zone:t})}return n.invalid(Rr(t))},t.reconfigure=function(n){var t=void 0===n?{}:n;return zr(this,{loc:this.loc.clone({locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.outputCalendar})})},t.setLocale=function(n){return this.reconfigure({locale:n})},t.set=function(n){if(!this.isValid)return this;var t,r=dn(n,ee),e=!Y(r.weekYear)||!Y(r.weekNumber)||!Y(r.weekday),u=!Y(r.ordinal),o=!Y(r.year),s=!Y(r.month)||!Y(r.day);if((o||s||u)&&(r.weekYear||r.weekNumber))throw new w("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&u)throw new w("Can't mix ordinal dates with month/day");e?t=xr(i({},Lr(this.c),r)):Y(r.ordinal)?(t=i({},this.toObject(),r),Y(r.day)&&(t.day=Math.min(on(t.year,t.month),t.day))):t=jr(i({},Fr(this.c),r));var a=Yr(t,this.o,this.zone);return zr(this,{ts:a[0],o:a[1]})},t.plus=function(n){return this.isValid?zr(this,Pr(this,or(n))):this},t.minus=function(n){return this.isValid?zr(this,Pr(this,or(n).negate())):this},t.startOf=function(n){if(!this.isValid)return this;var t={},r=ur.normalizeUnit(n);switch(r){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===r&&(t.weekday=1),"quarters"===r){var e=Math.ceil(this.month/3);t.month=3*(e-1)+1}return this.set(t)},t.endOf=function(n){var t;return this.isValid?this.plus((t={},t[n]=1,t)).startOf(n).minus(1):this},t.toFormat=function(n,t){return void 0===t&&(t={}),this.isValid?_n.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,n):Wr},t.toLocaleString=function(n,t){return void 0===n&&(n=N),void 0===t&&(t={}),this.isValid?_n.create(this.loc.clone(t),n).formatDateTime(this):Wr},t.toLocaleParts=function(n){return void 0===n&&(n={}),this.isValid?_n.create(this.loc.clone(n),n).formatDateTimeParts(this):[]},t.toISO=function(n){return void 0===n&&(n={}),this.isValid?this.toISODate(n)+"T"+this.toISOTime(n):null},t.toISODate=function(n){var t=(void 0===n?{}:n).format,r="basic"===(void 0===t?"extended":t)?"yyyyMMdd":"yyyy-MM-dd";return this.year>9999&&(r="+"+r),Vr(this,r)},t.toISOWeekDate=function(){return Vr(this,"kkkk-'W'WW-c")},t.toISOTime=function(n){var t=void 0===n?{}:n,r=t.suppressMilliseconds,e=t.suppressSeconds,i=t.includeOffset,u=t.includePrefix,o=t.format;return Br(this,{suppressSeconds:void 0!==e&&e,suppressMilliseconds:void 0!==r&&r,includeOffset:void 0===i||i,includePrefix:void 0!==u&&u,format:void 0===o?"extended":o})},t.toRFC2822=function(){return Vr(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},t.toHTTP=function(){return Vr(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},t.toSQLDate=function(){return Vr(this,"yyyy-MM-dd")},t.toSQLTime=function(n){var t=void 0===n?{}:n,r=t.includeOffset,e=t.includeZone;return Br(this,{includeOffset:void 0===r||r,includeZone:void 0!==e&&e,spaceZone:!0})},t.toSQL=function(n){return void 0===n&&(n={}),this.isValid?this.toSQLDate()+" "+this.toSQLTime(n):null},t.toString=function(){return this.isValid?this.toISO():Wr},t.valueOf=function(){return this.toMillis()},t.toMillis=function(){return this.isValid?this.ts:NaN},t.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},t.toJSON=function(){return this.toISO()},t.toBSON=function(){return this.toJSDate()},t.toObject=function(n){if(void 0===n&&(n={}),!this.isValid)return{};var t=i({},this.c);return n.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},t.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},t.diff=function(n,t,r){if(void 0===t&&(t="milliseconds"),void 0===r&&(r={}),!this.isValid||!n.isValid)return ur.invalid("created by diffing an invalid DateTime");var e,u=i({locale:this.locale,numberingSystem:this.numberingSystem},r),o=(e=t,Array.isArray(e)?e:[e]).map(ur.normalizeUnit),s=n.valueOf()>this.valueOf(),a=function(n,t,r,e){var i,u=function(n,t,r){for(var e,i,u={},o=0,s=[["years",function(n,t){return t.year-n.year}],["quarters",function(n,t){return t.quarter-n.quarter}],["months",function(n,t){return t.month-n.month+12*(t.year-n.year)}],["weeks",function(n,t){var r=fr(n,t);return(r-r%7)/7}],["days",fr]];o<s.length;o++){var a=s[o],c=a[0],h=a[1];if(r.indexOf(c)>=0){var f;e=c;var l,d=h(n,t);(i=n.plus(((f={})[c]=d,f)))>t?(n=n.plus(((l={})[c]=d-1,l)),d-=1):n=i,u[c]=d}}return[n,u,i,e]}(n,t,r),o=u[0],s=u[1],a=u[2],c=u[3],h=t-o,f=r.filter((function(n){return["hours","minutes","seconds","milliseconds"].indexOf(n)>=0}));0===f.length&&(a<t&&(a=o.plus(((i={})[c]=1,i))),a!==o&&(s[c]=(s[c]||0)+h/(a-o)));var l,d=ur.fromObject(s,e);return f.length>0?(l=ur.fromMillis(h,e)).shiftTo.apply(l,f).plus(d):d}(s?this:n,s?n:this,o,u);return s?a.negate():a},t.diffNow=function(t,r){return void 0===t&&(t="milliseconds"),void 0===r&&(r={}),this.diff(n.now(),t,r)},t.until=function(n){return this.isValid?cr.fromDateTimes(this,n):this},t.hasSame=function(n,t){if(!this.isValid)return!1;var r=n.valueOf(),e=this.setZone(n.zone,{keepLocalTime:!0});return e.startOf(t)<=r&&r<=e.endOf(t)},t.equals=function(n){return this.isValid&&n.isValid&&this.valueOf()===n.valueOf()&&this.zone.equals(n.zone)&&this.loc.equals(n.loc)},t.toRelative=function(t){if(void 0===t&&(t={}),!this.isValid)return null;var r=t.base||n.fromObject({},{zone:this.zone}),e=t.padding?this<r?-t.padding:t.padding:0,u=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(u=t.unit,o=void 0),ue(r,this.plus(e),i({},t,{numeric:"always",units:u,unit:o}))},t.toRelativeCalendar=function(t){return void 0===t&&(t={}),this.isValid?ue(t.base||n.fromObject({},{zone:this.zone}),this,i({},t,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},n.min=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];if(!r.every(n.isDateTime))throw new k("min requires all arguments be DateTimes");return B(r,(function(n){return n.valueOf()}),Math.min)},n.max=function(){for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];if(!r.every(n.isDateTime))throw new k("max requires all arguments be DateTimes");return B(r,(function(n){return n.valueOf()}),Math.max)},n.fromFormatExplain=function(n,t,r){void 0===r&&(r={});var e=r.locale,i=r.numberingSystem;return Sr(ct.fromOpts({locale:void 0===e?null:e,numberingSystem:void 0===i?null:i,defaultToEN:!0}),n,t)},n.fromStringExplain=function(t,r,e){return void 0===e&&(e={}),n.fromFormatExplain(t,r,e)},e(n,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?Gr(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?Gr(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?Gr(this).weekday:NaN}},{key:"ordinal",get:function(){return this.isValid?Fr(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?hr.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?hr.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?hr.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?hr.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.isUniversal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return en(this.year)}},{key:"daysInMonth",get:function(){return on(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?un(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?an(this.weekYear):NaN}}],[{key:"DATE_SHORT",get:function(){return N}},{key:"DATE_MED",get:function(){return E}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return S}},{key:"DATE_FULL",get:function(){return D}},{key:"DATE_HUGE",get:function(){return I}},{key:"TIME_SIMPLE",get:function(){return O}},{key:"TIME_WITH_SECONDS",get:function(){return A}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return Z}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return _}},{key:"TIME_24_SIMPLE",get:function(){return L}},{key:"TIME_24_WITH_SECONDS",get:function(){return x}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return F}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return j}},{key:"DATETIME_SHORT",get:function(){return H}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return q}},{key:"DATETIME_MED",get:function(){return W}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return C}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return R}},{key:"DATETIME_FULL",get:function(){return G}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return z}},{key:"DATETIME_HUGE",get:function(){return J}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return U}}]),n}();function ae(n){if(se.isDateTime(n))return n;if(n&&n.valueOf&&P(n.valueOf()))return se.fromJSDate(n);if(n&&"object"==typeof n)return se.fromObject(n);throw new k("Unknown datetime argument: "+n+", of type "+typeof n)}t.DateTime=se,t.Duration=ur,t.FixedOffsetZone=zn,t.IANAZone=Rn,t.Info=hr,t.Interval=cr,t.InvalidZone=Jn,t.Settings=Qn,t.SystemZone=jn,t.VERSION="2.0.1",t.Zone=xn}));export{t as l}
@@ -0,0 +1 @@
1
+ var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,n){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:n})}else{e.raw=n}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var t in n)if(Object.prototype.hasOwnProperty.call(n,t))e[t]=n[t]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,n,r,a){function t(e){return e instanceof r?e:new r((function(n){n(e)}))}return new(r||(r=Promise))((function(r,l){function o(e){try{d(a.next(e))}catch(e){l(e)}}function i(e){try{d(a["throw"](e))}catch(e){l(e)}}function d(e){e.done?r(e.value):t(e.value).then(o,i)}d((a=a.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,t,l,o;return o={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function i(e){return function(n){return d([e,n])}}function d(o){if(a)throw new TypeError("Generator is already executing.");while(r)try{if(a=1,t&&(l=o[0]&2?t["return"]:o[0]?t["throw"]||((l=t["return"])&&l.call(t),0):t.next)&&!(l=l.call(t,o[1])).done)return l;if(t=0,l)o=[o[0]&2,l.value];switch(o[0]){case 0:case 1:l=o;break;case 4:r.label++;return{value:o[1],done:false};case 5:r.label++;t=o[1];o=[0];continue;case 7:o=r.ops.pop();r.trys.pop();continue;default:if(!(l=r.trys,l=l.length>0&&l[l.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!l||o[1]>l[0]&&o[1]<l[3])){r.label=o[1];break}if(o[0]===6&&r.label<l[1]){r.label=l[1];l=o;break}if(l&&r.label<l[2]){r.label=l[2];r.ops.push(o);break}if(l[2])r.ops.pop();r.trys.pop();continue}o=n.call(e,r)}catch(e){o=[6,e];t=0}finally{a=l=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,n=0,r=arguments.length;n<r;n++)e+=arguments[n].length;for(var a=Array(e),t=0,n=0;n<r;n++)for(var l=arguments[n],o=0,i=l.length;o<i;o++,t++)a[t]=l[o];return a};System.register(["./p-ff17b3a4.system.js","./p-9580888c.system.js","./p-b0d6a380.system.js","./p-fe4d9531.system.js"],(function(e){"use strict";var n,r,a,t,l,o,i,d,s,u,c;return{setters:[function(e){n=e.h},function(e){r=e.e;a=e.u},function(e){t=e.d;l=e.n;o=e.M;i=e.R;d=e.b;s=e.w},function(e){u=e.u;c=e.a}],execute:function(){e({g:g,u:v});var f="sqm-referral-table";var p=t.gql(__makeTemplateObject(["\n query getReferrals(\n $programId: ID\n $rewardFilter: RewardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n referredByReferral(programId: $programId) {\n dateReferralStarted\n dateConverted\n referrerUser {\n firstName\n lastName\n }\n rewards(filter: $rewardFilter) {\n id\n type\n value\n unit\n name\n dateGiven\n dateExpires\n dateCancelled\n dateRedeemed\n dateScheduledFor\n fuelTankCode\n fuelTankType\n currency\n prettyValue(locale: $locale)\n statuses\n globalRewardKey\n programRewardKey\n rewardRedemptionTransactions {\n data {\n exchangedRewards {\n data {\n prettyValue(locale: $locale)\n type\n fuelTankCode\n globalRewardKey\n }\n }\n }\n }\n }\n }\n }\n }\n }\n"],["\n query getReferrals(\n $programId: ID\n $rewardFilter: RewardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n referredByReferral(programId: $programId) {\n dateReferralStarted\n dateConverted\n referrerUser {\n firstName\n lastName\n }\n rewards(filter: $rewardFilter) {\n id\n type\n value\n unit\n name\n dateGiven\n dateExpires\n dateCancelled\n dateRedeemed\n dateScheduledFor\n fuelTankCode\n fuelTankType\n currency\n prettyValue(locale: $locale)\n statuses\n globalRewardKey\n programRewardKey\n rewardRedemptionTransactions {\n data {\n exchangedRewards {\n data {\n prettyValue(locale: $locale)\n type\n fuelTankCode\n globalRewardKey\n }\n }\n }\n }\n }\n }\n }\n }\n }\n"]));var m=t.gql(__makeTemplateObject(['\n query getReferrals(\n $limit: Int!\n $offset: Int!\n $referralFilter: ReferralFilterInput\n $rewardFilter: RewardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n id\n paidReferrals: referrals(\n filter: { dateReferralPaid_timeframe: "this_10_years" }\n limit: 1\n ) {\n totalCount\n }\n referrals(limit: $limit, offset: $offset, filter: $referralFilter) {\n totalCount\n count\n data {\n id\n referredUser {\n id\n accountId\n firstName\n lastName\n email\n programGoals {\n goalId\n programId\n count\n firstDate\n lastDate\n conversionCount\n }\n }\n shareLinkUsed\n referralCodeUsed\n moderationStatus\n dateConverted\n dateFraudChecksCompleted\n dateModerated\n dateModified\n dateReferralEnded\n dateReferralPaid\n dateReferralStarted\n dateUserModified\n programId\n program {\n id\n name\n }\n rewards(filter: $rewardFilter) {\n id\n type\n value\n unit\n name\n dateGiven\n dateExpires\n dateCancelled\n dateRedeemed\n dateScheduledFor\n fuelTankCode\n fuelTankType\n currency\n prettyValue(locale: $locale)\n statuses\n globalRewardKey\n programRewardKey\n rewardRedemptionTransactions {\n data {\n exchangedRewards {\n data {\n prettyValue(locale: $locale)\n type\n fuelTankCode\n globalRewardKey\n }\n }\n }\n }\n }\n childNodes(limit: 10, offset: 0) {\n data {\n data {\n id\n ... on FlatReward {\n id\n statuses\n type\n value\n }\n ... on ProgramEmailTransaction {\n id\n rewardId\n dateCreated\n dateSent\n dateQueued\n }\n }\n depth\n }\n }\n }\n }\n }\n }\n }\n'],['\n query getReferrals(\n $limit: Int!\n $offset: Int!\n $referralFilter: ReferralFilterInput\n $rewardFilter: RewardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n id\n paidReferrals: referrals(\n filter: { dateReferralPaid_timeframe: "this_10_years" }\n limit: 1\n ) {\n totalCount\n }\n referrals(limit: $limit, offset: $offset, filter: $referralFilter) {\n totalCount\n count\n data {\n id\n referredUser {\n id\n accountId\n firstName\n lastName\n email\n programGoals {\n goalId\n programId\n count\n firstDate\n lastDate\n conversionCount\n }\n }\n shareLinkUsed\n referralCodeUsed\n moderationStatus\n dateConverted\n dateFraudChecksCompleted\n dateModerated\n dateModified\n dateReferralEnded\n dateReferralPaid\n dateReferralStarted\n dateUserModified\n programId\n program {\n id\n name\n }\n rewards(filter: $rewardFilter) {\n id\n type\n value\n unit\n name\n dateGiven\n dateExpires\n dateCancelled\n dateRedeemed\n dateScheduledFor\n fuelTankCode\n fuelTankType\n currency\n prettyValue(locale: $locale)\n statuses\n globalRewardKey\n programRewardKey\n rewardRedemptionTransactions {\n data {\n exchangedRewards {\n data {\n prettyValue(locale: $locale)\n type\n fuelTankCode\n globalRewardKey\n }\n }\n }\n }\n }\n childNodes(limit: 10, offset: 0) {\n data {\n data {\n id\n ... on FlatReward {\n id\n statuses\n type\n value\n }\n ... on ProgramEmailTransaction {\n id\n rewardId\n dateCreated\n dateSent\n dateQueued\n }\n }\n depth\n }\n }\n }\n }\n }\n }\n }\n']));function v(e,n,t){var v,g,h;var y=l();var _=o();var R=(v=e.programId)!==null&&v!==void 0?v:_;var b=R?R==="classic"?{programId_exists:false}:{programId_eq:R}:{};var C={userId_eq:y===null||y===void 0?void 0:y.id,accountId_eq:y===null||y===void 0?void 0:y.accountId};var P=r((function(e,n){return __assign(__assign({},e),n)}),{columns:[],rows:[],loading:false,page:0}),$=P[0],I=P[1];var k=i();var F=d(p,{programId:R==="classic"?null:R,rewardFilter:C,locale:k},!e.showReferrer||!(y===null||y===void 0?void 0:y.jwt)),T=F.data,S=F.loading,L=F.refetch;var x=(g=T===null||T===void 0?void 0:T.viewer)===null||g===void 0?void 0:g.referredByReferral;var j=e.showReferrer&&!!(x===null||x===void 0?void 0:x.dateReferralStarted);var E=s(m,(function(e){var n;return(n=e===null||e===void 0?void 0:e.viewer)===null||n===void 0?void 0:n.referrals}),{limit:e.perPage,offset:0},{referralFilter:b,rewardFilter:C,locale:k},e.showReferrer&&S&&!T||!(y===null||y===void 0?void 0:y.jwt)),U=E.envelope,N=E.states,K=E.callbacks;a((function(){if(N.currentPage===0&&j)K.setLimit(e.perPage-1)}),[j]);a((function(){if(e.showReferrer&&j){K.setLimit(e.perPage-1);K.setCurrentPage(0)}else{K.setLimit(e.perPage);K.setCurrentPage(0)}}),[e.showReferrer]);var O=u();var q=U===null||U===void 0?void 0:U.data;var V=c();function B(e){return __awaiter(this,void 0,void 0,(function(){var n,r,a,t,l,o,i,d,s,u;var c=this;return __generator(this,(function(f){switch(f.label){case 0:n=e.filter((function(e){return e.slot!=="loading"&&e.slot!=="empty"}));r=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(c,void 0,void 0,(function(){return __generator(this,(function(n){return[2,w(e,(function(){return e.renderLabel()}))]}))}))}));if(!(j&&N.currentPage===0))return[3,2];t=n===null||n===void 0?void 0:n.map((function(e){return __awaiter(c,void 0,void 0,(function(){return __generator(this,(function(n){return[2,w(e,(function n(){return e.renderReferrerCell(x,e)}))]}))}))}));return[4,Promise.all(t)];case 1:a=f.sent();f.label=2;case 2:l=q===null||q===void 0?void 0:q.map((function(e){return __awaiter(c,void 0,void 0,(function(){var r,a;var t=this;return __generator(this,(function(l){switch(l.label){case 0:r=n===null||n===void 0?void 0:n.map((function(n){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(r){return[2,w(n,(function(){return n.renderCell(e,k)}))]}))}))}));return[4,Promise.all(r)];case 1:a=l.sent();return[2,a]}}))}))}));i=l;if(!i)return[3,4];d=[[a]];return[4,Promise.all(l)];case 3:i=__spreadArrays.apply(void 0,d.concat([f.sent()])).filter((function(e){return e}));f.label=4;case 4:o=i;I({rows:o});u=r;if(!u)return[3,6];return[4,Promise.all(r)];case 5:u=f.sent();f.label=6;case 6:s=u;I({columns:s,loading:false,page:N.currentPage});return[2]}}))}))}a((function(){I({loading:true});U&&B(V)}),[U,V,O]);var D=!((h=$===null||$===void 0?void 0:$.rows)===null||h===void 0?void 0:h.length)&&!(q===null||q===void 0?void 0:q.length);var G=N.loading||$.loading?"loading":D?"empty":"rows";return{states:{hasNext:N.currentPage<N.pageCount-1,hasPrev:N.currentPage>0,show:G,namespace:f},data:{textOverrides:{showLabels:e.showLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,smBreakpoint:e.smBreakpoint,mdBreakpoint:e.mdBreakpoint},elements:{columns:$.columns,rows:$.rows,emptyElement:n,loadingElement:t},callbacks:{nextPage:function(){if(N.currentPage===0&&j)K.setLimit(e.perPage);K.setCurrentPage(N.currentPage+1)},prevPage:function(){if(N.currentPage===1&&j)K.setLimit(e.perPage-1);K.setCurrentPage(N.currentPage-1)}}}}function g(e){try{return JSON.stringify(e)}catch(e){return"An unknown error"}}function w(e,r){return __awaiter(this,void 0,void 0,(function(){var a,t,l,o;return __generator(this,(function(i){switch(i.label){case 0:a=e.tagName.toLowerCase();return[4,customElements.whenDefined(a)];case 1:i.sent();try{t=r()}catch(e){if(r.name==="renderReferrerCell"){console.error("column does not have a renderReferrerCell method.")}else{console.error("label promise failed",e)}return[2,n("span",null)]}i.label=2;case 2:i.trys.push([2,4,,5]);return[4,t];case 3:return[2,i.sent()];case 4:l=i.sent();console.error("Error rendering label",l);o=g(l);return[2,n("details",null,n("summary",null,"Error"),o)];case 5:return[2]}}))}))}}}}));
@@ -0,0 +1 @@
1
+ var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,l){function i(e){try{o(n.next(e))}catch(e){l(e)}}function s(e){try{o(n["throw"](e))}catch(e){l(e)}}function o(e){e.done?r(e.value):a(e.value).then(i,s)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},n,a,l,i;return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return o([e,t])}}function o(i){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(l=i[0]&2?a["return"]:i[0]?a["throw"]||((l=a["return"])&&l.call(a),0):a.next)&&!(l=l.call(a,i[1])).done)return l;if(a=0,l)i=[i[0]&2,l.value];switch(i[0]){case 0:case 1:l=i;break;case 4:r.label++;return{value:i[1],done:false};case 5:r.label++;a=i[1];i=[0];continue;case 7:i=r.ops.pop();r.trys.pop();continue;default:if(!(l=r.trys,l=l.length>0&&l[l.length-1])&&(i[0]===6||i[0]===2)){r=0;continue}if(i[0]===3&&(!l||i[1]>l[0]&&i[1]<l[3])){r.label=i[1];break}if(i[0]===6&&r.label<l[1]){r.label=l[1];l=i;break}if(l&&r.label<l[2]){r.label=l[2];r.ops.push(i);break}if(l[2])r.ops.pop();r.trys.pop();continue}i=t.call(e,r)}catch(e){i=[6,e];a=0}finally{n=l=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-9580888c.system.js","./p-0988f079.system.js","./p-e00e11b1.system.js","./p-b0d6a380.system.js","./p-1c17892a.system.js","./p-61d769e2.system.js","./p-4bd679a7.system.js","./p-126bcba1.system.js","./p-3bbb90a9.system.js","./p-d0acc0d5.system.js","./p-fe4d9531.system.js","./p-59454f33.system.js","./p-df466813.system.js","./p-c3f300e8.system.js","./p-8bcaafaf.system.js"],(function(e){"use strict";var t,r,n,a,l,i,s,o,d,u,c,p,m,f,v,h,y,g,w,b,_,x,T;return{setters:[function(e){t=e.h;r=e.r;n=e.c},function(e){a=e.e;l=e.u;i=e.m},function(e){s=e.i},function(){},function(e){o=e.d;d=e.n;u=e.M;c=e.R;p=e.w;m=e.k},function(){},function(){},function(e){f=e.c},function(){},function(e){v=e.c},function(e){h=e.G},function(e){y=e.u;g=e.a;w=e.b},function(e){b=e.g},function(e){_=e.l},function(e){x=e.l},function(e){T=e.T}],execute:function(){var E="sqm-rewards-table";var R=o.gql(__makeTemplateObject(["\n query getRewards(\n $limit: Int!\n $offset: Int!\n $rewardFilter: RewardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n id\n rewards(limit: $limit, offset: $offset, filter: $rewardFilter) {\n totalCount\n count\n data {\n id\n type\n value\n unit\n name\n dateGiven\n dateExpires\n dateCancelled\n dateRedeemed\n dateScheduledFor\n fuelTankCode\n fuelTankType\n currency\n prettyValue(locale: $locale)\n prettyValueNumber: prettyValue(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n prettyAvailableNumber: prettyAvailableValue(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n prettyRedeemedNumber: prettyRedeemedCredit(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n programId\n program {\n name\n }\n statuses\n pendingReasons\n globalRewardKey\n programRewardKey\n rewardSource\n prettyRedeemedCredit(locale: $locale)\n prettyAssignedCredit(locale: $locale)\n prettyAvailableValue(locale: $locale)\n exchangedRewardRedemptionTransaction {\n id\n creditRedeemed\n prettyRedeemedCredit(locale: $locale)\n unit\n dateRedeemed\n }\n referral {\n id\n referrerUser {\n id\n firstName\n lastName\n }\n referredUser {\n id\n firstName\n lastName\n }\n }\n rewardRedemptionTransactions {\n data {\n exchangedRewards {\n data {\n prettyValue(locale: $locale)\n type\n fuelTankCode\n globalRewardKey\n }\n }\n }\n }\n }\n }\n }\n }\n }\n"],["\n query getRewards(\n $limit: Int!\n $offset: Int!\n $rewardFilter: RewardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n id\n rewards(limit: $limit, offset: $offset, filter: $rewardFilter) {\n totalCount\n count\n data {\n id\n type\n value\n unit\n name\n dateGiven\n dateExpires\n dateCancelled\n dateRedeemed\n dateScheduledFor\n fuelTankCode\n fuelTankType\n currency\n prettyValue(locale: $locale)\n prettyValueNumber: prettyValue(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n prettyAvailableNumber: prettyAvailableValue(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n prettyRedeemedNumber: prettyRedeemedCredit(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n programId\n program {\n name\n }\n statuses\n pendingReasons\n globalRewardKey\n programRewardKey\n rewardSource\n prettyRedeemedCredit(locale: $locale)\n prettyAssignedCredit(locale: $locale)\n prettyAvailableValue(locale: $locale)\n exchangedRewardRedemptionTransaction {\n id\n creditRedeemed\n prettyRedeemedCredit(locale: $locale)\n unit\n dateRedeemed\n }\n referral {\n id\n referrerUser {\n id\n firstName\n lastName\n }\n referredUser {\n id\n firstName\n lastName\n }\n }\n rewardRedemptionTransactions {\n data {\n exchangedRewards {\n data {\n prettyValue(locale: $locale)\n type\n fuelTankCode\n globalRewardKey\n }\n }\n }\n }\n }\n }\n }\n }\n }\n"]));function S(e,t,r){var n,i;var s=d();var o=u();var m=c();var f=(n=e.programId)!==null&&n!==void 0?n:o;var v=__assign({userId_eq:s===null||s===void 0?void 0:s.id,accountId_eq:s===null||s===void 0?void 0:s.accountId},f?f==="classic"?{programId_exists:false}:{programId_eq:f}:{});var h=a((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),w=h[0],b=h[1];var _=p(R,(function(e){var t;return(t=e===null||e===void 0?void 0:e.viewer)===null||t===void 0?void 0:t.rewards}),{limit:e.perPage,offset:0},{rewardFilter:v,locale:m},!(s===null||s===void 0?void 0:s.jwt)),x=_.envelope,T=_.states,S=_.callbacks;var D=y();var A=g();var C=x===null||x===void 0?void 0:x.data;function L(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,a,l,i,s;var o=this;return __generator(this,(function(d){switch(d.label){case 0:t=e.filter((function(e){return e.slot!=="loading"&&e.slot!=="empty"}));r=t===null||t===void 0?void 0:t.map((function(e){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(t){return[2,N(e,(function(){return e.renderLabel()}))]}))}))}));n=C===null||C===void 0?void 0:C.map((function(e){return __awaiter(o,void 0,void 0,(function(){var r,n;var a=this;return __generator(this,(function(l){switch(l.label){case 0:r=t===null||t===void 0?void 0:t.map((function(t){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(r){return[2,N(t,(function(){return t.renderCell([e],m)}))]}))}))}));return[4,Promise.all(r)];case 1:n=l.sent();return[2,n]}}))}))}));l=n;if(!l)return[3,2];return[4,Promise.all(n)];case 1:l=d.sent().filter((function(e){return e}));d.label=2;case 2:a=l;b({rows:a});s=r;if(!s)return[3,4];return[4,Promise.all(r)];case 3:s=d.sent();d.label=4;case 4:i=s;b({columns:i,loading:false,page:T.currentPage});return[2]}}))}))}l((function(){b({loading:true});x&&L(A)}),[x,A,D]);var I=!((i=w===null||w===void 0?void 0:w.rows)===null||i===void 0?void 0:i.length)&&!(C===null||C===void 0?void 0:C.length);var P=T.loading||w.loading?"loading":I?"empty":"rows";return{states:{hasNext:T.currentPage<T.pageCount-1,hasPrev:T.currentPage>0,show:P,namespace:E},data:{textOverrides:{showLabels:e.showLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,smBreakpoint:e.smBreakpoint,mdBreakpoint:e.mdBreakpoint},elements:{columns:w.columns,rows:w.rows,emptyElement:t,loadingElement:r},callbacks:{nextPage:function(){S.setCurrentPage(T.currentPage+1)},prevPage:function(){S.setCurrentPage(T.currentPage-1)}}}}function N(e,r){return __awaiter(this,void 0,void 0,(function(){var n,a,l,i;return __generator(this,(function(s){switch(s.label){case 0:n=e.tagName.toLowerCase();return[4,customElements.whenDefined(n)];case 1:s.sent();try{a=r()}catch(e){console.error("label promise failed",e);return[2,t("span",null)]}s.label=2;case 2:s.trys.push([2,4,,5]);return[4,a];case 3:return[2,s.sent()];case 4:l=s.sent();console.error("Error rendering label",l);i=b(l);return[2,t("details",null,t("summary",null,"Error"),i)];case 5:return[2]}}))}))}var D=e("sqm_rewards_table",function(){function e(e){r(this,e);this.perPage=3;this.showLabels=true;this.prevLabel="Prev";this.moreLabel="Next";this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=899;this.emptyStateImage="https://res.cloudinary.com/saasquatch/image/upload/v1642618031/squatch-assets/image_4_1.png";this.emptyStateHeader="View your rewards";this.emptyStateText="See all the rewards you have earned from referring friends and completing tasks";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=t(I,{emptyStateImage:this.emptyStateImage,emptyStateHeader:this.emptyStateHeader,emptyStateText:this.emptyStateText});var r=t(A,null);var n=m()?L(this):S(this,e,r),a=n.states,l=n.data,i=n.callbacks,s=n.elements;return t(h,{states:a,data:l,callbacks:i,elements:s})};return e}());function A(){return t("slot",{name:"loading"},t(C,null),t(C,null),t(C,null),t(C,null))}function C(){return t("sqm-table-row",null,t("sqm-table-cell",{colspan:5},t("sl-skeleton",null)))}function L(e){return f({states:{hasPrev:false,hasNext:false,loading:false,namespace:E},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:e.showLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},referralData:[]},elements:{emptyElement:t(I,{emptyStateImage:"https://res.cloudinary.com/saasquatch/image/upload/v1642618031/squatch-assets/image_4_1.png",emptyStateHeader:"View your rewards",emptyStateText:"See all the rewards you have earned from referring friends and completing tasks"}),loadingElement:t(A,null),columns:["Reward","Source","Status","Date recieved"],rows:[]}},e.demoData||{},{arrayMerge:function(e,t){return t}})}function I(e){var r=e.emptyStateImage,n=e.emptyStateHeader,a=e.emptyStateText;return t("div",{slot:"empty",style:{display:"contents"}},t("sqm-table-row",null,t("sqm-table-cell",{colspan:5,style:{textAlign:"center"}},t("sqm-portal-container",{padding:"xxxx-large",gap:"medium"},t("sqm-image",{"image-url":r,"max-width":"100px"}),t("sqm-titled-section",{"label-margin":"xxx-small","text-align":"center"},t("sqm-text",{slot:"label"},t("h3",null,n)),t("sqm-text",{slot:"content"},a))))))}var P=e("sqm_rewards_table_date_cell",function(){function e(e){r(this,e);this.ignored=true;this.locale="en";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e,r;var n=!this.date?"-":(r=(e=_.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(x(this.locale)))===null||r===void 0?void 0:r.toLocaleString(_.DateTime.DATE_MED);return t(T,{type:"p"},n)};return e}());var U=e("sqm_rewards_table_date_column",function(){function e(e){r(this,e);this.columnTitle="Date received";this.dateShown="dateGiven";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,r){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(a){n=e===null||e===void 0?void 0:e[0];console.log("reward column - locale",{locale:r});return[2,t("sqm-rewards-table-date-cell",{date:n[this.dateShown],locale:r})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.render=function(){w([this.dateShown,this.columnTitle]);return t(n,{style:{display:"none"}})};return e}());var k=e("sqm_rewards_table_reward_cell",function(){function e(e){r(this,e)}e.prototype.render=function(){var e=this;s.locale=this.locale;var r={DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","padding-right":"var(--sl-spacing-x-small)","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:"default"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:"flex"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)"}};var n=v(r);var a=n.toString();var l=function(r){var n=r.reward;var a;console.log(n);var l=n.unit==="CENTS"?n.prettyValue.replace(/USD/gi,"$"):(a=n.prettyValue)!==null&&a!==void 0?a:"-";var i=n.prettyValueNumber==="1"&&n.prettyRedeemedNumber==="1";if(n.type==="CREDIT"&&!i){var o=Math.round((parseFloat(n.prettyValueNumber)-parseFloat(n.prettyRedeemedNumber))/parseFloat(n.prettyValueNumber)*100);var d=n.statuses.includes("EXPIRED")||n.statuses.includes("CANCELLED")?t("div",null,s.formatMessage({id:"redeemedText",defaultMessage:e.redeemedText},{redeemedAmount:n.prettyRedeemedCredit})):t("div",null,s.formatMessage({id:"availableText",defaultMessage:e.availableText},{availableAmount:n.prettyAvailableValue}));var u={Progress:{height:"3px",width:"150px",margin:"var(--sl-spacing-xx-small) 0",background:"var(--sl-color-neutral-200)","&:after":{content:'""',display:"block",background:"var(--sl-color-primary-300)",borderRadius:"100px",width:o+"%",height:"100%"}},Container:{display:"inline-block",verticalAlign:"top",maxWidth:"100%",maxHeight:"60px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},Text:{fontSize:"var(--sl-font-size-medium)",color:"var(--sl-color-gray-800)"},Subtext:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}};var c=v(u);var p=c.toString();return t("div",null,t("style",{type:"text/css"},p),t("div",{class:c.classes.Container},t("span",null,l+" "),t("br",null)," ",t("div",{class:c.classes.Progress}),t("span",{class:c.classes.Subtext},d)))}return t("div",null,l)};return t("div",{style:{display:"contents"}},t("style",{type:"text/css"},a),t(l,{reward:this.reward}))};return e}());var M=e("sqm_rewards_table_reward_column",function(){function e(e){r(this,e);this.columnTitle="Reward";this.redeemedText="{redeemedAmount} redeemed";this.availableText="{availableAmount} remaining";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,t("sqm-rewards-table-reward-cell",{reward:e===null||e===void 0?void 0:e[0],redeemedText:this.redeemedText,availableText:this.availableText,locale:r})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.render=function(){w([this.columnTitle]);return t(n,{style:{display:"none"}})};return e}());var q=e("sqm_rewards_table_source_cell",function(){function e(e){r(this,e);this.locale="en"}e.prototype.render=function(){var e=this;s.locale=this.locale;var r=function(r){var n=r.reward;var a;return t("span",null,s.formatMessage({id:"rewardSourceText",defaultMessage:e.rewardSourceText},{rewardSource:n.rewardSource,programName:(a=n===null||n===void 0?void 0:n.program)===null||a===void 0?void 0:a.name}))};var n=21;var a=function(r){var a=r.reward;var l;var i=t("div",null,t("span",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}},e.rewardExchangeText),t("br",null),(l=a.exchangedRewardRedemptionTransaction)===null||l===void 0?void 0:l.prettyRedeemedCredit," → ",a.prettyValue);return a.exchangedRewardRedemptionTransaction.prettyRedeemedCredit.length+a.prettyValue.length<n?i:t("div",{style:{display:"inline-block",verticalAlign:"top"}},i)};var l=function(t){if(!t)return e.deletedUserText;if(!t.firstName&&!t.lastName)return e.anonymousUserText;if(!t.firstName)return""+t.lastName;if(!t.lastName)return""+t.firstName;return t.firstName+" "+t.lastName};var i=function(){return e.reward.rewardSource==="FRIEND_SIGNUP"||e.reward.rewardSource==="REFERRED"?t("div",null,t("div",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}},s.formatMessage({id:"referralText",defaultMessage:e.referralText},{rewardSource:e.reward.rewardSource})),t("div",null,e.reward.rewardSource=="FRIEND_SIGNUP"?l(e.reward.referral.referredUser):l(e.reward.referral.referrerUser))):e.reward.exchangedRewardRedemptionTransaction?t(a,{reward:e.reward}):t(r,{reward:e.reward})};return t(i,null)};return e}());var $=e("sqm_rewards_table_source_column",function(){function e(e){r(this,e);this.columnTitle="Source";this.anonymousUser="Anonymous User";this.deletedUser="Deleted User";this.rewardExchangeText="Reward Exchange";this.referralText="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}";this.rewardSourceText="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,t("sqm-rewards-table-source-cell",{reward:e===null||e===void 0?void 0:e[0],anonymousUserText:this.anonymousUser,deletedUserText:this.deletedUser,rewardExchangeText:this.rewardExchangeText,referralText:this.referralText,rewardSourceText:this.rewardSourceText,locale:r})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.render=function(){w([this.deletedUser,this.anonymousUser,this.columnTitle]);return t(n,{style:{display:"none"}})};return e}());var V=e("sqm_rewards_table_status_cell",function(){function e(e){r(this,e);this.expiryText="Expires";this.locale="en";this.pendingUsTax="W-9 required";this.pendingScheduled="Until";this.pendingUnhandled="Fulfillment error"}e.prototype.rewardStatus=function(e){if(e.dateCancelled)return"CANCELLED";if(e.statuses&&e.statuses.includes("EXPIRED"))return"EXPIRED";if(e.statuses&&e.statuses.includes("PENDING"))return"PENDING";if(e.type==="CREDIT"){if(e.statuses.includes("REDEEMED"))return"REDEEMED";return"AVAILABLE"}if(e.type==="PCT_DISCOUNT"){if(e.statuses.includes("AVAILABLE"))return"AVAILABLE"}if(e.type==="INTEGRATION"||e.type==="FUELTANK"){if(e.statuses&&e.statuses.includes("PENDING"))return"PENDING";if(e.statuses&&e.statuses.includes("CANCELLED"))return"CANCELLED";if(e.statuses.includes("AVAILABLE"))return"AVAILABLE"}return""};e.prototype.render=function(){var e;s.locale=this.locale;var r={Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px"}},RedeemBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",background:"var(--sl-color-blue-600)"}},Date:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)",margin:"0"}};var n=v(r);var a=n.toString();var l=this.rewardStatus(this.reward);var i=s.formatMessage({id:"statusMessage",defaultMessage:this.statusText},{status:l});var o=l==="AVAILABLE"?"success":l==="REDEEMED"?"primary":l==="PENDING"?"warning":"danger";var d=this.reward.dateCancelled||this.reward.dateExpires||this.reward.dateRedeemed||"";var u=d&&""+(l==="AVAILABLE"&&this.reward.dateExpires?this.expiryText+" ":"")+((e=_.DateTime.fromMillis(d))===null||e===void 0?void 0:e.setLocale(x(x(this.locale))).toLocaleString(_.DateTime.DATE_MED));var c=l==="PENDING"?p(this):null;console.log(c);return t("div",{style:{display:"contents"}},t("style",{type:"text/css"},a),t("sl-badge",{type:o,pill:true,class:l==="REDEEMED"?n.classes.RedeemBadge:n.classes.Badge},i),t("p",{class:n.classes.Date},c||u));function p(e){var t;console.log(e.reward);var r={US_TAX:e.pendingUsTax,SCHEDULED:e.reward.dateScheduledFor&&e.pendingScheduled+" "+((t=_.DateTime.fromMillis(e.reward.dateScheduledFor))===null||t===void 0?void 0:t.setLocale(x(x(e.locale))).toLocaleString(_.DateTime.DATE_MED)),UNHANDLED_ERROR:e.pendingUnhandled};return e.reward.pendingReasons.map((function(e){var t;return(t=r[e])!==null&&t!==void 0?t:e})).join(", ")}};return e}());var B=e("sqm_rewards_table_status_column",function(){function e(e){r(this,e);this.columnTitle="Status";this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.expiryText="Expires on ";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,r){return __awaiter(this,void 0,void 0,(function(){var n;return __generator(this,(function(a){n=e===null||e===void 0?void 0:e[0];return[2,t("sqm-rewards-table-status-cell",{statusText:this.statusText,reward:n,expiryText:this.expiryText,locale:r})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.render=function(){w([this.columnTitle]);return t(n,{style:{display:"none"}})};return e}())}}}));