@saasquatch/mint-components 1.13.0-40 → 1.13.0-42

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 (385) hide show
  1. package/dist/cjs/{ShadowViewAddon-44cb1a98.js → ShadowViewAddon-37f2cd8b.js} +132 -182
  2. package/dist/cjs/{copy-text-view-9b950efe.js → copy-text-view-67cb700e.js} +13 -12
  3. package/dist/cjs/{global-19fc8a7a.js → global-6fe7c678.js} +161 -10
  4. package/dist/cjs/index-e6bafae4.js +2227 -0
  5. package/dist/cjs/{index.module-57703088.js → index.module-b880d18a.js} +1196 -229
  6. package/dist/cjs/loader.cjs.js +4 -4
  7. package/dist/cjs/{luxon-2926d85f.js → luxon-78820ce9.js} +1 -1
  8. package/dist/cjs/mint-components.cjs.js +4 -4
  9. package/dist/cjs/{mockRewardData-272e22d6.js → mockRewardData-d117428d.js} +1 -1
  10. package/dist/cjs/{re-render-35b016ed.js → re-render-050852fe.js} +2 -2
  11. package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
  12. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +404 -403
  13. package/dist/cjs/sqm-big-stat_38.cjs.entry.js +71 -144
  14. package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
  15. package/dist/cjs/sqm-context-router.cjs.entry.js +3 -3
  16. package/dist/cjs/sqm-empty_4.cjs.entry.js +6 -6
  17. package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
  18. package/dist/cjs/sqm-google-sign-in.cjs.entry.js +3 -3
  19. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +3 -3
  20. package/dist/cjs/sqm-header-logo.cjs.entry.js +2 -2
  21. package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +6 -6
  22. package/dist/cjs/{sqm-invoice-table-view-9dfa2a16.js → sqm-invoice-table-view-9b735809.js} +1 -1
  23. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +9 -8
  24. package/dist/cjs/sqm-logout-current-user.cjs.entry.js +8 -7
  25. package/dist/cjs/{sqm-navigation-sidebar-item-view-9bba5f7e.js → sqm-navigation-sidebar-item-view-b76869c1.js} +1 -1
  26. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -4
  27. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +3 -3
  28. package/dist/cjs/sqm-pagination_3.cjs.entry.js +10 -9
  29. package/dist/cjs/sqm-password-field.cjs.entry.js +4 -4
  30. package/dist/cjs/sqm-popup-container.cjs.entry.js +3 -3
  31. package/dist/cjs/{sqm-portal-email-verification-view-98d84549.js → sqm-portal-email-verification-view-39add3d2.js} +1 -1
  32. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -5
  33. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
  34. package/dist/cjs/sqm-portal-google-login.cjs.entry.js +130 -0
  35. package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +9 -7
  36. package/dist/cjs/sqm-portal-login-view-761a4d8e.js +58 -0
  37. package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
  38. package/dist/cjs/{sqm-portal-profile-view-bae28ea0.js → sqm-portal-profile-view-a722b40a.js} +1 -1
  39. package/dist/cjs/sqm-portal-profile.cjs.entry.js +12 -11
  40. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
  41. package/dist/cjs/{sqm-portal-registration-form-view-bd72eeff.js → sqm-portal-registration-form-view-ebf355a6.js} +12 -11
  42. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +8 -7
  43. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +4 -4
  44. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
  45. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +17 -16
  46. package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
  47. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
  48. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
  49. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +62 -61
  50. package/dist/cjs/sqm-stencilbook.cjs.entry.js +22 -31
  51. package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
  52. package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
  53. package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
  54. package/dist/cjs/{stencil-hooks.module-3a336b0f.js → stencil-hooks.module-b248b384.js} +1 -4
  55. package/dist/cjs/{useChildElements-854cd1e5.js → useChildElements-e2139cb4.js} +2 -2
  56. package/dist/cjs/{useInstantAccessRegistration-daff8290.js → useInstantAccessRegistration-653d2aba.js} +3 -3
  57. package/dist/cjs/usePortalLogin-521b6d8f.js +74 -0
  58. package/dist/cjs/{usePortalRegistrationForm-a89d736e.js → usePortalRegistrationForm-f7dfd694.js} +5 -4
  59. package/dist/cjs/{useReferralTable-283d2316.js → useReferralTable-43818f78.js} +14 -13
  60. package/dist/cjs/{useRegistrationFormState-986b5ea1.js → useRegistrationFormState-9aa98cfa.js} +2 -2
  61. package/dist/cjs/{utilities-c135f16f.js → utilities-d691629b.js} +2 -2
  62. package/dist/collection/collection-manifest.json +2 -1
  63. package/dist/collection/components/sqm-portal-google-login/sqm-portal-google-login.js +428 -0
  64. package/dist/collection/components/sqm-portal-google-login/usePortalGoogleLogin.js +0 -0
  65. package/dist/collection/components/sqm-portal-google-registration-form/sqm-portal-google-registration-form.js +3 -2
  66. package/dist/collection/components/sqm-portal-login/PortalLogin.stories.js +2 -13
  67. package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +2 -56
  68. package/dist/collection/components/sqm-portal-login/usePortalLogin.js +3 -4
  69. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +12 -11
  70. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form.js +1 -1
  71. package/dist/esm/{ShadowViewAddon-eba44767.js → ShadowViewAddon-864e3ca8.js} +107 -156
  72. package/dist/esm/{copy-text-view-b060162f.js → copy-text-view-4655f200.js} +3 -2
  73. package/dist/esm/{global-bedc4329.js → global-2f2a008c.js} +161 -10
  74. package/dist/esm/index-c5f8b525.js +2225 -0
  75. package/dist/esm/{index.module-a2989d3c.js → index.module-863d1595.js} +1194 -224
  76. package/dist/esm/loader.js +4 -4
  77. package/dist/esm/{luxon-8d51c92b.js → luxon-e0fc3e69.js} +1 -1
  78. package/dist/esm/mint-components.js +4 -4
  79. package/dist/esm/{mockRewardData-8bd1b356.js → mockRewardData-6c2e62c8.js} +1 -1
  80. package/dist/esm/{re-render-268bb9c8.js → re-render-fcba2f50.js} +2 -2
  81. package/dist/esm/sqm-asset-card.entry.js +2 -2
  82. package/dist/esm/sqm-banking-info-form_16.entry.js +10 -9
  83. package/dist/esm/sqm-big-stat_38.entry.js +17 -90
  84. package/dist/esm/sqm-close-button.entry.js +2 -2
  85. package/dist/esm/sqm-context-router.entry.js +2 -2
  86. package/dist/esm/sqm-empty_4.entry.js +3 -3
  87. package/dist/esm/sqm-form-message.entry.js +1 -1
  88. package/dist/esm/sqm-google-sign-in.entry.js +2 -2
  89. package/dist/esm/sqm-graphql-client-provider.entry.js +2 -2
  90. package/dist/esm/sqm-header-logo.entry.js +1 -1
  91. package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
  92. package/dist/esm/{sqm-invoice-table-view-8e2bb54a.js → sqm-invoice-table-view-c58334ce.js} +1 -1
  93. package/dist/esm/sqm-leaderboard-rank.entry.js +4 -3
  94. package/dist/esm/sqm-logout-current-user.entry.js +3 -2
  95. package/dist/esm/{sqm-navigation-sidebar-item-view-56da6bca.js → sqm-navigation-sidebar-item-view-306c5953.js} +1 -1
  96. package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
  97. package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
  98. package/dist/esm/sqm-pagination_3.entry.js +5 -4
  99. package/dist/esm/sqm-password-field.entry.js +3 -3
  100. package/dist/esm/sqm-popup-container.entry.js +2 -2
  101. package/dist/esm/{sqm-portal-email-verification-view-44c8970f.js → sqm-portal-email-verification-view-d6b1ddab.js} +1 -1
  102. package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
  103. package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
  104. package/dist/esm/sqm-portal-google-login.entry.js +126 -0
  105. package/dist/esm/sqm-portal-google-registration-form.entry.js +8 -6
  106. package/dist/esm/sqm-portal-login-view-7e49609a.js +56 -0
  107. package/dist/esm/sqm-portal-logout.entry.js +2 -2
  108. package/dist/esm/{sqm-portal-profile-view-39039274.js → sqm-portal-profile-view-61c075cb.js} +1 -1
  109. package/dist/esm/sqm-portal-profile.entry.js +6 -5
  110. package/dist/esm/sqm-portal-protected-route.entry.js +2 -2
  111. package/dist/esm/{sqm-portal-registration-form-view-c08eafea.js → sqm-portal-registration-form-view-32c4b488.js} +12 -11
  112. package/dist/esm/sqm-portal-registration-form.entry.js +7 -6
  113. package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
  114. package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
  115. package/dist/esm/sqm-referral-table_11.entry.js +9 -8
  116. package/dist/esm/sqm-referred-registration.entry.js +5 -5
  117. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  118. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
  119. package/dist/esm/sqm-rewards-table_9.entry.js +9 -8
  120. package/dist/esm/sqm-stencilbook.entry.js +18 -27
  121. package/dist/esm/sqm-tab.entry.js +3 -3
  122. package/dist/esm/sqm-tabs.entry.js +4 -4
  123. package/dist/esm/sqm-text-span.entry.js +1 -1
  124. package/dist/esm/{stencil-hooks.module-4bc38af4.js → stencil-hooks.module-bb10e6ff.js} +1 -1
  125. package/dist/esm/{useChildElements-38c11321.js → useChildElements-9d51a845.js} +2 -2
  126. package/dist/esm/{useInstantAccessRegistration-7255b0ca.js → useInstantAccessRegistration-b1ce1e58.js} +3 -3
  127. package/dist/esm/usePortalLogin-79bf5c9d.js +72 -0
  128. package/dist/esm/{usePortalRegistrationForm-5715c7a5.js → usePortalRegistrationForm-be236318.js} +4 -3
  129. package/dist/esm/{useReferralTable-d77b11f5.js → useReferralTable-4d03e881.js} +5 -4
  130. package/dist/esm/{useRegistrationFormState-01cdd8c7.js → useRegistrationFormState-f63404a4.js} +2 -2
  131. package/dist/esm/{utilities-863d06d1.js → utilities-6b8f9180.js} +2 -2
  132. package/dist/esm-es5/ShadowViewAddon-864e3ca8.js +1 -0
  133. package/dist/esm-es5/copy-text-view-4655f200.js +1 -0
  134. package/dist/esm-es5/global-2f2a008c.js +285 -0
  135. package/dist/esm-es5/index-c5f8b525.js +1 -0
  136. package/dist/esm-es5/index.module-863d1595.js +53 -0
  137. package/dist/esm-es5/loader.js +1 -1
  138. package/dist/esm-es5/{luxon-8d51c92b.js → luxon-e0fc3e69.js} +1 -1
  139. package/dist/esm-es5/mint-components.js +1 -1
  140. package/dist/esm-es5/{mockRewardData-8bd1b356.js → mockRewardData-6c2e62c8.js} +1 -1
  141. package/dist/esm-es5/{re-render-268bb9c8.js → re-render-fcba2f50.js} +1 -1
  142. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  143. package/dist/esm-es5/sqm-banking-info-form_16.entry.js +1 -1
  144. package/dist/esm-es5/sqm-big-stat_38.entry.js +1 -1
  145. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  146. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  147. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  148. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  149. package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
  150. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  151. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  152. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  153. package/dist/esm-es5/{sqm-invoice-table-view-8e2bb54a.js → sqm-invoice-table-view-c58334ce.js} +1 -1
  154. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  155. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  156. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-56da6bca.js → sqm-navigation-sidebar-item-view-306c5953.js} +1 -1
  157. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  158. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  159. package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
  160. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  161. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  162. package/dist/esm-es5/{sqm-portal-email-verification-view-44c8970f.js → sqm-portal-email-verification-view-d6b1ddab.js} +1 -1
  163. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  164. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  165. package/dist/esm-es5/sqm-portal-google-login.entry.js +1 -0
  166. package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
  167. package/dist/esm-es5/sqm-portal-login-view-7e49609a.js +1 -0
  168. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  169. package/dist/esm-es5/{sqm-portal-profile-view-39039274.js → sqm-portal-profile-view-61c075cb.js} +1 -1
  170. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  171. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  172. package/dist/esm-es5/sqm-portal-registration-form-view-32c4b488.js +1 -0
  173. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  174. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  175. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  176. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  177. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  178. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  179. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  180. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  181. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  182. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  183. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  184. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  185. package/dist/esm-es5/{stencil-hooks.module-4bc38af4.js → stencil-hooks.module-bb10e6ff.js} +1 -1
  186. package/dist/esm-es5/useChildElements-9d51a845.js +1 -0
  187. package/dist/esm-es5/{useInstantAccessRegistration-7255b0ca.js → useInstantAccessRegistration-b1ce1e58.js} +1 -1
  188. package/dist/esm-es5/usePortalLogin-79bf5c9d.js +1 -0
  189. package/dist/esm-es5/usePortalRegistrationForm-be236318.js +1 -0
  190. package/dist/esm-es5/useReferralTable-4d03e881.js +1 -0
  191. package/dist/esm-es5/{useRegistrationFormState-01cdd8c7.js → useRegistrationFormState-f63404a4.js} +1 -1
  192. package/dist/esm-es5/{utilities-863d06d1.js → utilities-6b8f9180.js} +1 -1
  193. package/dist/mint-components/mint-components.esm.js +1 -1
  194. package/dist/mint-components/mint-components.js +1 -1
  195. package/dist/mint-components/p-04172660.entry.js +1 -0
  196. package/dist/mint-components/p-0700c219.system.entry.js +1 -0
  197. package/dist/mint-components/{p-1c5cffae.js → p-07606410.js} +1 -1
  198. package/dist/mint-components/p-0cb8e830.entry.js +1 -0
  199. package/dist/mint-components/{p-5bedb58c.js → p-0d2cd2a9.js} +1 -1
  200. package/dist/mint-components/p-0ebab63e.system.js +1 -0
  201. package/dist/mint-components/{p-8056fd5b.system.entry.js → p-0f91825b.system.entry.js} +1 -1
  202. package/dist/mint-components/p-11f8a69e.system.js +53 -0
  203. package/dist/mint-components/p-1340e1f7.js +391 -0
  204. package/dist/mint-components/p-1b448f3c.system.entry.js +1 -0
  205. package/dist/mint-components/p-1bbbaae1.entry.js +1 -0
  206. package/dist/mint-components/p-1dc033fc.entry.js +1 -0
  207. package/dist/mint-components/{p-3972037c.system.entry.js → p-1df12a3a.system.entry.js} +1 -1
  208. package/dist/mint-components/{p-bd4810c7.system.entry.js → p-1f969054.system.entry.js} +1 -1
  209. package/dist/mint-components/{p-8d77feee.js → p-1f98e479.js} +1 -1
  210. package/dist/mint-components/{p-57bcf2d0.system.entry.js → p-220ab3d5.system.entry.js} +1 -1
  211. package/dist/mint-components/{p-857947fa.system.entry.js → p-231def02.system.entry.js} +1 -1
  212. package/dist/mint-components/{p-4ae54b04.entry.js → p-2857247a.entry.js} +1 -1
  213. package/dist/mint-components/{p-48135f99.system.js → p-28bb7dca.system.js} +2 -2
  214. package/dist/mint-components/{p-b9d17fa1.entry.js → p-2a543e93.entry.js} +3 -3
  215. package/dist/mint-components/p-2c26f787.system.entry.js +1 -0
  216. package/dist/mint-components/p-2def85b5.system.js +1 -0
  217. package/dist/mint-components/{p-a4a5beb5.system.entry.js → p-30e2f7d0.system.entry.js} +1 -1
  218. package/dist/mint-components/p-3205d5e4.system.entry.js +1 -0
  219. package/dist/mint-components/{p-75f50e5a.entry.js → p-35287ac8.entry.js} +1 -1
  220. package/dist/mint-components/p-37d6e0ec.entry.js +1 -0
  221. package/dist/mint-components/{p-f2fd1910.system.js → p-3b51a63e.system.js} +22 -22
  222. package/dist/mint-components/{p-79ea1597.system.entry.js → p-3f3accb6.system.entry.js} +1 -1
  223. package/dist/mint-components/{p-380bfde1.entry.js → p-432ca81a.entry.js} +1 -1
  224. package/dist/mint-components/{p-8413ade9.system.js → p-457d9d1d.system.js} +1 -1
  225. package/dist/mint-components/{p-35698aaa.system.js → p-49534fa6.system.js} +1 -1
  226. package/dist/mint-components/p-49e4c6e3.js +13 -0
  227. package/dist/mint-components/p-4f9f85e9.system.js +1 -0
  228. package/dist/mint-components/p-546c3b82.system.js +1 -0
  229. package/dist/mint-components/{p-faba3198.entry.js → p-5567b408.entry.js} +1 -1
  230. package/dist/mint-components/p-558141b7.entry.js +9 -0
  231. package/dist/mint-components/{p-3bdd338c.system.js → p-558fd481.system.js} +1 -1
  232. package/dist/mint-components/{p-2ab3b8d6.js → p-5e8d57ba.js} +3 -3
  233. package/dist/mint-components/p-5ef1b48a.system.entry.js +1 -0
  234. package/dist/mint-components/p-6094ba6f.entry.js +11 -0
  235. package/dist/mint-components/{p-2126e1e6.entry.js → p-6529dfc7.entry.js} +1 -1
  236. package/dist/mint-components/{p-8975c2be.entry.js → p-65af5296.entry.js} +3 -3
  237. package/dist/mint-components/{p-09c5e3ee.system.js → p-697dd7e7.system.js} +1 -1
  238. package/dist/mint-components/{p-046f4631.system.js → p-6ba5d2b9.system.js} +1 -1
  239. package/dist/mint-components/p-6bcb0866.entry.js +13 -0
  240. package/dist/mint-components/{p-19bc3406.system.entry.js → p-6bcfb9cf.system.entry.js} +1 -1
  241. package/dist/mint-components/p-6c6a7851.js +1 -0
  242. package/dist/mint-components/p-6c6edca0.system.entry.js +1 -0
  243. package/dist/mint-components/{p-1b3ab15a.system.entry.js → p-6cc9ec64.system.entry.js} +1 -1
  244. package/dist/mint-components/p-76ba0be8.js +1 -0
  245. package/dist/mint-components/{p-31a691af.js → p-78454d0a.js} +1 -1
  246. package/dist/mint-components/p-793d2130.js +1 -0
  247. package/dist/mint-components/{p-571c451e.entry.js → p-7957b8c3.entry.js} +1 -1
  248. package/dist/mint-components/{p-4f45be94.system.js → p-7a1f55af.system.js} +1 -1
  249. package/dist/mint-components/{p-492fdaf9.js → p-7bde0cf0.js} +1 -1
  250. package/dist/mint-components/p-7f65b53e.system.entry.js +1 -0
  251. package/dist/mint-components/p-851c9fe2.system.entry.js +1 -0
  252. package/dist/mint-components/{p-988ea164.system.entry.js → p-8793aebf.system.entry.js} +1 -1
  253. package/dist/mint-components/{p-2bbff88f.entry.js → p-879cf5af.entry.js} +1 -1
  254. package/dist/mint-components/{p-cd651f81.js → p-8b34d321.js} +1 -1
  255. package/dist/mint-components/{p-1ef299d7.js → p-8c4cbcde.js} +4 -4
  256. package/dist/mint-components/{p-bc2fdf20.entry.js → p-8d49ad11.entry.js} +16 -16
  257. package/dist/mint-components/{p-7dabdca6.system.entry.js → p-97ef59a8.system.entry.js} +1 -1
  258. package/dist/mint-components/p-99053795.entry.js +1 -0
  259. package/dist/mint-components/{p-6de85677.js → p-9b0c0d2e.js} +1 -1
  260. package/dist/mint-components/p-9f4dd5f8.system.entry.js +1 -0
  261. package/dist/mint-components/p-a0ba1119.system.entry.js +1 -0
  262. package/dist/mint-components/{p-e544bb9a.entry.js → p-a1a22146.entry.js} +1 -1
  263. package/dist/mint-components/p-a2e9c945.entry.js +1 -0
  264. package/dist/mint-components/p-a765b696.system.js +1 -0
  265. package/dist/mint-components/{p-a21d1a30.system.entry.js → p-a7cac365.system.entry.js} +1 -1
  266. package/dist/mint-components/{p-506679e9.js → p-a9c24c77.js} +153 -153
  267. package/dist/mint-components/{p-aee674c8.entry.js → p-ab3dc379.entry.js} +1 -1
  268. package/dist/mint-components/p-acef9f8b.entry.js +1 -0
  269. package/dist/mint-components/p-afee1c9d.system.entry.js +1 -0
  270. package/dist/mint-components/{p-aaeaff1a.system.entry.js → p-b494d7ca.system.entry.js} +1 -1
  271. package/dist/mint-components/{p-ac2b7eb8.system.js → p-b4cfad1f.system.js} +1 -1
  272. package/dist/mint-components/{p-b207beeb.entry.js → p-b583ae26.entry.js} +1 -1
  273. package/dist/mint-components/p-b93047d2.entry.js +1 -0
  274. package/dist/mint-components/p-bab24c42.system.js +1 -0
  275. package/dist/mint-components/p-bb0f585c.system.js +1 -0
  276. package/dist/mint-components/p-bcc4a18b.system.entry.js +1 -0
  277. package/dist/mint-components/p-bd8beca3.js +1 -0
  278. package/dist/mint-components/p-c1371461.system.entry.js +1 -0
  279. package/dist/mint-components/{p-726a9924.js → p-c45b3e78.js} +1 -1
  280. package/dist/mint-components/p-c6cbe2d5.system.js +1 -0
  281. package/dist/mint-components/p-c7570a8d.system.js +1 -0
  282. package/dist/mint-components/p-c9f568b2.js +1 -0
  283. package/dist/mint-components/p-ca0f7772.entry.js +1 -0
  284. package/dist/mint-components/{p-2dc5e60a.entry.js → p-cca54a99.entry.js} +1 -1
  285. package/dist/mint-components/{p-ca740238.system.entry.js → p-cfdd5894.system.entry.js} +1 -1
  286. package/dist/mint-components/p-d0091b40.entry.js +1 -0
  287. package/dist/mint-components/{p-9f231a48.system.entry.js → p-d10037c5.system.entry.js} +1 -1
  288. package/dist/mint-components/{p-f9de8a59.system.js → p-d1608ef4.system.js} +1 -1
  289. package/dist/mint-components/{p-f32c8cb5.entry.js → p-d3b9ccb7.entry.js} +1 -1
  290. package/dist/mint-components/{p-1833c4f5.js → p-d9b04935.js} +1 -1
  291. package/dist/mint-components/p-dbcb5359.js +1 -0
  292. package/dist/mint-components/{p-b114e746.entry.js → p-dd16dde6.entry.js} +1 -1
  293. package/dist/mint-components/{p-635aaf11.system.entry.js → p-dd170c45.system.entry.js} +1 -1
  294. package/dist/mint-components/{p-28042d23.entry.js → p-de524512.entry.js} +10 -10
  295. package/dist/mint-components/p-de6b3ed7.system.entry.js +1 -0
  296. package/dist/mint-components/p-eb333400.entry.js +1 -0
  297. package/dist/mint-components/p-edcc6bdf.js +42 -0
  298. package/dist/mint-components/p-ee2bf706.system.js +1 -0
  299. package/dist/mint-components/p-ef6f9d3f.entry.js +1 -0
  300. package/dist/mint-components/{p-f4a1dc19.entry.js → p-ef848304.entry.js} +1 -1
  301. package/dist/mint-components/{p-f0c23e81.system.entry.js → p-efe87bd6.system.entry.js} +1 -1
  302. package/dist/mint-components/{p-cd480e3f.entry.js → p-f065a5d3.entry.js} +3 -3
  303. package/dist/mint-components/{p-9a16a3d8.system.entry.js → p-f0c830ec.system.entry.js} +1 -1
  304. package/dist/mint-components/p-f0d145d4.system.js +1 -0
  305. package/dist/mint-components/p-f3a4ed64.entry.js +1 -0
  306. package/dist/mint-components/p-f41cf5f2.system.entry.js +1 -0
  307. package/dist/mint-components/{p-7989a098.system.entry.js → p-f676b27e.system.entry.js} +1 -1
  308. package/dist/mint-components/p-f8c32c82.system.entry.js +1 -0
  309. package/dist/mint-components/{p-6d9e52c7.system.js → p-fa43f96c.system.js} +1 -1
  310. package/dist/mint-components/p-fbbc27c5.system.entry.js +1 -0
  311. package/dist/mint-components/{p-81665df6.system.entry.js → p-fe65104b.system.entry.js} +1 -1
  312. package/dist/mint-components/{p-618e1342.entry.js → p-fe75c80f.entry.js} +1 -1
  313. package/dist/mint-components/p-feb44492.js +1 -0
  314. package/dist/types/components/sqm-portal-google-login/sqm-portal-google-login.d.ts +74 -0
  315. package/dist/types/components/sqm-portal-google-login/usePortalGoogleLogin.d.ts +0 -0
  316. package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +0 -9
  317. package/dist/types/components/sqm-portal-login/usePortalLogin.d.ts +2 -1
  318. package/dist/types/components/sqm-portal-registration-form/sqm-portal-registration-form-view.d.ts +1 -0
  319. package/dist/types/components.d.ts +134 -17
  320. package/dist/types/global/android.d.ts +7 -0
  321. package/dist/types/global/demo.d.ts +2 -0
  322. package/dist/types/stories/features.d.ts +4 -0
  323. package/dist/types/stories/templates.d.ts +4 -0
  324. package/docs/docs.docx +0 -0
  325. package/docs/raisins.json +1 -1
  326. package/grapesjs/grapesjs.js +1 -1
  327. package/package.json +1 -1
  328. package/dist/collection/components/sqm-portal-google-registration-form/small-views/RegistrationFieldsView.js +0 -86
  329. package/dist/esm-es5/ShadowViewAddon-eba44767.js +0 -1
  330. package/dist/esm-es5/copy-text-view-b060162f.js +0 -1
  331. package/dist/esm-es5/global-bedc4329.js +0 -285
  332. package/dist/esm-es5/index.module-a2989d3c.js +0 -1
  333. package/dist/esm-es5/sqm-portal-registration-form-view-c08eafea.js +0 -1
  334. package/dist/esm-es5/useChildElements-38c11321.js +0 -1
  335. package/dist/esm-es5/usePortalRegistrationForm-5715c7a5.js +0 -1
  336. package/dist/esm-es5/useReferralTable-d77b11f5.js +0 -1
  337. package/dist/mint-components/p-0873eaa8.entry.js +0 -1
  338. package/dist/mint-components/p-0aa62b64.entry.js +0 -1
  339. package/dist/mint-components/p-0c5dae79.entry.js +0 -1
  340. package/dist/mint-components/p-0e53c59e.system.js +0 -1
  341. package/dist/mint-components/p-168a3298.entry.js +0 -1
  342. package/dist/mint-components/p-16c7bfda.js +0 -391
  343. package/dist/mint-components/p-1b0c58bc.system.entry.js +0 -1
  344. package/dist/mint-components/p-24c4e0b8.system.entry.js +0 -1
  345. package/dist/mint-components/p-30108c0e.js +0 -1
  346. package/dist/mint-components/p-35a20e65.system.entry.js +0 -1
  347. package/dist/mint-components/p-36233648.js +0 -1
  348. package/dist/mint-components/p-39b1a7fe.js +0 -1
  349. package/dist/mint-components/p-3ec660e9.js +0 -1
  350. package/dist/mint-components/p-3f6e0197.system.entry.js +0 -1
  351. package/dist/mint-components/p-40e99b24.js +0 -1
  352. package/dist/mint-components/p-4448febd.entry.js +0 -1
  353. package/dist/mint-components/p-45436d5a.entry.js +0 -1
  354. package/dist/mint-components/p-46ab5f80.system.js +0 -1
  355. package/dist/mint-components/p-53aaa0a4.entry.js +0 -1
  356. package/dist/mint-components/p-550ef977.js +0 -13
  357. package/dist/mint-components/p-7166caa6.system.js +0 -1
  358. package/dist/mint-components/p-731aa5c6.system.entry.js +0 -1
  359. package/dist/mint-components/p-749c7c9c.system.js +0 -1
  360. package/dist/mint-components/p-7bcf4467.system.entry.js +0 -1
  361. package/dist/mint-components/p-7cb919d4.system.entry.js +0 -1
  362. package/dist/mint-components/p-80fc549b.entry.js +0 -1
  363. package/dist/mint-components/p-85c49452.system.entry.js +0 -1
  364. package/dist/mint-components/p-868f176e.entry.js +0 -1
  365. package/dist/mint-components/p-92a25556.system.entry.js +0 -1
  366. package/dist/mint-components/p-95c64cfd.system.js +0 -1
  367. package/dist/mint-components/p-9a0c3ed9.system.entry.js +0 -1
  368. package/dist/mint-components/p-9b779add.entry.js +0 -1
  369. package/dist/mint-components/p-9e49479a.entry.js +0 -13
  370. package/dist/mint-components/p-9fc19501.system.entry.js +0 -1
  371. package/dist/mint-components/p-a8524459.system.js +0 -1
  372. package/dist/mint-components/p-b58661b3.system.js +0 -1
  373. package/dist/mint-components/p-b611eefd.entry.js +0 -1
  374. package/dist/mint-components/p-c450a678.entry.js +0 -9
  375. package/dist/mint-components/p-c470caf6.entry.js +0 -11
  376. package/dist/mint-components/p-c4b21562.system.entry.js +0 -1
  377. package/dist/mint-components/p-ca04737a.entry.js +0 -1
  378. package/dist/mint-components/p-cf505e92.system.js +0 -1
  379. package/dist/mint-components/p-d671e44e.system.js +0 -1
  380. package/dist/mint-components/p-de9afac2.system.entry.js +0 -1
  381. package/dist/mint-components/p-e0b344fb.entry.js +0 -1
  382. package/dist/mint-components/p-ea2257f8.system.entry.js +0 -1
  383. package/dist/mint-components/p-ebdcea27.system.entry.js +0 -1
  384. package/dist/mint-components/p-fe4a9dfe.system.entry.js +0 -1
  385. package/dist/types/components/sqm-portal-google-registration-form/small-views/RegistrationFieldsView.d.ts +0 -31
@@ -1,202 +1,205 @@
1
- import { u as useMemo, d as c, s, c as createCommonjsModule, a as commonjsGlobal, e as getDefaultExportFromCjs, f as useEffect, h, y, i as d, j as useReducer, k as useState, m as useRef } from './stencil-hooks.module-4bc38af4.js';
1
+ import { g as getElement, a as getRenderingRef } from './index-91e7729f.js';
2
+ import { u as useMemo$1, d as useEffect$1, e as useRef, f as useState$1, h as useReducer$1, c as createCommonjsModule, a as commonjsGlobal, i as getDefaultExportFromCjs } from './stencil-hooks.module-bb10e6ff.js';
2
3
 
3
- const useCallback = (fn, inputs) => useMemo(() => fn, inputs);
4
+ const useCallback = (fn, inputs) => useMemo$1(() => fn, inputs);
4
5
 
5
6
  function e(e){this.message=e;}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,"");if(t.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function t(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw "Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(t)}catch(e){return r(t)}}function n(e){this.message=e;}function o(e,r){if("string"!=typeof e)throw new n("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(".")[o]))}catch(e){throw new n("Invalid token specified: "+e.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";
6
7
 
7
- const { toString, hasOwnProperty } = Object.prototype;
8
- const fnToStr = Function.prototype.toString;
9
- const previousComparisons = new Map();
10
- /**
11
- * Performs a deep equality check on two JavaScript values, tolerating cycles.
12
- */
13
- function equal(a, b) {
14
- try {
15
- return check(a, b);
16
- }
17
- finally {
18
- previousComparisons.clear();
19
- }
20
- }
21
- function check(a, b) {
22
- // If the two values are strictly equal, our job is easy.
23
- if (a === b) {
24
- return true;
25
- }
26
- // Object.prototype.toString returns a representation of the runtime type of
27
- // the given value that is considerably more precise than typeof.
28
- const aTag = toString.call(a);
29
- const bTag = toString.call(b);
30
- // If the runtime types of a and b are different, they could maybe be equal
31
- // under some interpretation of equality, but for simplicity and performance
32
- // we just return false instead.
33
- if (aTag !== bTag) {
34
- return false;
35
- }
36
- switch (aTag) {
37
- case '[object Array]':
38
- // Arrays are a lot like other objects, but we can cheaply compare their
39
- // lengths as a short-cut before comparing their elements.
40
- if (a.length !== b.length)
41
- return false;
42
- // Fall through to object case...
43
- case '[object Object]': {
44
- if (previouslyCompared(a, b))
45
- return true;
46
- const aKeys = definedKeys(a);
47
- const bKeys = definedKeys(b);
48
- // If `a` and `b` have a different number of enumerable keys, they
49
- // must be different.
50
- const keyCount = aKeys.length;
51
- if (keyCount !== bKeys.length)
52
- return false;
53
- // Now make sure they have the same keys.
54
- for (let k = 0; k < keyCount; ++k) {
55
- if (!hasOwnProperty.call(b, aKeys[k])) {
56
- return false;
57
- }
58
- }
59
- // Finally, check deep equality of all child properties.
60
- for (let k = 0; k < keyCount; ++k) {
61
- const key = aKeys[k];
62
- if (!check(a[key], b[key])) {
63
- return false;
64
- }
65
- }
66
- return true;
67
- }
68
- case '[object Error]':
69
- return a.name === b.name && a.message === b.message;
70
- case '[object Number]':
71
- // Handle NaN, which is !== itself.
72
- if (a !== a)
73
- return b !== b;
74
- // Fall through to shared +a === +b case...
75
- case '[object Boolean]':
76
- case '[object Date]':
77
- return +a === +b;
78
- case '[object RegExp]':
79
- case '[object String]':
80
- return a == `${b}`;
81
- case '[object Map]':
82
- case '[object Set]': {
83
- if (a.size !== b.size)
84
- return false;
85
- if (previouslyCompared(a, b))
86
- return true;
87
- const aIterator = a.entries();
88
- const isMap = aTag === '[object Map]';
89
- while (true) {
90
- const info = aIterator.next();
91
- if (info.done)
92
- break;
93
- // If a instanceof Set, aValue === aKey.
94
- const [aKey, aValue] = info.value;
95
- // So this works the same way for both Set and Map.
96
- if (!b.has(aKey)) {
97
- return false;
98
- }
99
- // However, we care about deep equality of values only when dealing
100
- // with Map structures.
101
- if (isMap && !check(aValue, b.get(aKey))) {
102
- return false;
103
- }
104
- }
105
- return true;
106
- }
107
- case '[object Uint16Array]':
108
- case '[object Uint8Array]': // Buffer, in Node.js.
109
- case '[object Uint32Array]':
110
- case '[object Int32Array]':
111
- case '[object Int8Array]':
112
- case '[object Int16Array]':
113
- case '[object ArrayBuffer]':
114
- // DataView doesn't need these conversions, but the equality check is
115
- // otherwise the same.
116
- a = new Uint8Array(a);
117
- b = new Uint8Array(b);
118
- // Fall through...
119
- case '[object DataView]': {
120
- let len = a.byteLength;
121
- if (len === b.byteLength) {
122
- while (len-- && a[len] === b[len]) {
123
- // Keep looping as long as the bytes are equal.
124
- }
125
- }
126
- return len === -1;
127
- }
128
- case '[object AsyncFunction]':
129
- case '[object GeneratorFunction]':
130
- case '[object AsyncGeneratorFunction]':
131
- case '[object Function]': {
132
- const aCode = fnToStr.call(a);
133
- if (aCode !== fnToStr.call(b)) {
134
- return false;
135
- }
136
- // We consider non-native functions equal if they have the same code
137
- // (native functions require === because their code is censored).
138
- // Note that this behavior is not entirely sound, since !== function
139
- // objects with the same code can behave differently depending on
140
- // their closure scope. However, any function can behave differently
141
- // depending on the values of its input arguments (including this)
142
- // and its calling context (including its closure scope), even
143
- // though the function object is === to itself; and it is entirely
144
- // possible for functions that are not === to behave exactly the
145
- // same under all conceivable circumstances. Because none of these
146
- // factors are statically decidable in JavaScript, JS function
147
- // equality is not well-defined. This ambiguity allows us to
148
- // consider the best possible heuristic among various imperfect
149
- // options, and equating non-native functions that have the same
150
- // code has enormous practical benefits, such as when comparing
151
- // functions that are repeatedly passed as fresh function
152
- // expressions within objects that are otherwise deeply equal. Since
153
- // any function created from the same syntactic expression (in the
154
- // same code location) will always stringify to the same code
155
- // according to fnToStr.call, we can reasonably expect these
156
- // repeatedly passed function expressions to have the same code, and
157
- // thus behave "the same" (with all the caveats mentioned above),
158
- // even though the runtime function objects are !== to one another.
159
- return !endsWith(aCode, nativeCodeSuffix);
160
- }
161
- }
162
- // Otherwise the values are not equal.
163
- return false;
164
- }
165
- function definedKeys(obj) {
166
- // Remember that the second argument to Array.prototype.filter will be
167
- // used as `this` within the callback function.
168
- return Object.keys(obj).filter(isDefinedKey, obj);
169
- }
170
- function isDefinedKey(key) {
171
- return this[key] !== void 0;
172
- }
173
- const nativeCodeSuffix = "{ [native code] }";
174
- function endsWith(full, suffix) {
175
- const fromIndex = full.length - suffix.length;
176
- return fromIndex >= 0 &&
177
- full.indexOf(suffix, fromIndex) === fromIndex;
178
- }
179
- function previouslyCompared(a, b) {
180
- // Though cyclic references can make an object graph appear infinite from the
181
- // perspective of a depth-first traversal, the graph still contains a finite
182
- // number of distinct object references. We use the previousComparisons cache
183
- // to avoid comparing the same pair of object references more than once, which
184
- // guarantees termination (even if we end up comparing every object in one
185
- // graph to every object in the other graph, which is extremely unlikely),
186
- // while still allowing weird isomorphic structures (like rings with different
187
- // lengths) a chance to pass the equality test.
188
- let bSet = previousComparisons.get(a);
189
- if (bSet) {
190
- // Return true here because we can be sure false will be returned somewhere
191
- // else if the objects are not equivalent.
192
- if (bSet.has(b))
193
- return true;
194
- }
195
- else {
196
- previousComparisons.set(a, bSet = new Set);
197
- }
198
- bSet.add(b);
199
- return false;
8
+ function t$1(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i);}}function n$1(n,e,i){return e&&t$1(n.prototype,e),i&&t$1(n,i),n}var s=function(){function t(t){var n=this,e=this;this._status="Initial",this.onChange=function(t,n){e.options.onChange&&e.options.onChange(t,n);},this.onConnect=function(t){try{return n.status="Connected",n.options.onChange&&n.options.onChange(t,t),Promise.resolve(new Promise(function(t){n.resolvePromise=t;}))}catch(t){return Promise.reject(t)}},this.onDisconnect=function(){e.status="Connecting",e.start();},this.options=t;}var e=t.prototype;return e.start=function(){var t=this,n=0;this.status="Connecting";var e=function(){return t.status},i=a(this.options.attempts)||10,o=function(){if("Connected"!==e()){var o=new CustomEvent(t.options.contextName,{bubbles:!0,cancelable:!0,composed:!0,detail:{onConnect:t.onConnect,onChange:t.onChange,onDisconnect:t.onDisconnect}});a(t.options.element).dispatchEvent(o),"Connected"!==e()?++n>=i&&(t._interval&&clearInterval(t._interval),t.status="Timeout"):"Connected"===e()&&t._interval&&clearInterval(t._interval);}};return (a(this.options.pollingMs)||100)>0&&i>1&&(this._interval=setInterval(o,a(this.options.pollingMs)||100)),o(),this},e.stop=function(){return this._interval&&clearInterval(this._interval),this.resolvePromise&&this.resolvePromise(),this.status="Initial",this},n$1(t,[{key:"status",set:function(t){this._status=t,this.options.onStatus&&this.options.onStatus(t);},get:function(){return this._status}}]),t}(),c=function(){function t(t){var n=this;this.__listeners=[],this.connectListener=function(t){try{t.stopPropagation(),n.__listeners=[].concat(n.__listeners,[t.detail]);var e=function(e,i){try{var o=Promise.resolve(t.detail.onConnect(n.__current)).then(function(){});}catch(t){return i(!0,t)}return o&&o.then?o.then(i.bind(null,!1),i.bind(null,!0)):i(!1,o)}(0,function(e,i){var o,r;if(n.__listeners=(r=(o=n.__listeners).indexOf(t.detail),o.slice(0,r).concat(o.slice(r+1,o.length))),e)throw i;return i});return Promise.resolve(e&&e.then?e.then(function(){}):void 0)}catch(t){return Promise.reject(t)}},this.options=t,this.__current=a(t.initialState);}var e=t.prototype;return e.start=function(){return a(this.options.element).addEventListener(this.options.contextName,this.connectListener),this},e.stop=function(){return a(this.options.element).removeEventListener(this.options.contextName,this.connectListener),this.__listeners.map(function(t){t.onDisconnect();}),this.__listeners=[],this},n$1(t,[{key:"context",set:function(t){var n=this.__current;this.__current=t,this.__listeners.forEach(function(e){return e.onChange(t,n)});},get:function(){return a(this.__current)}},{key:"listeners",get:function(){return Object.freeze([].concat(this.__listeners))}}]),t}();function a(t){return "function"==typeof typeof t?t():t}
9
+
10
+ var _a = Object.prototype, toString = _a.toString, hasOwnProperty = _a.hasOwnProperty;
11
+ var fnToStr = Function.prototype.toString;
12
+ var previousComparisons = new Map();
13
+ /**
14
+ * Performs a deep equality check on two JavaScript values, tolerating cycles.
15
+ */
16
+ function equal(a, b) {
17
+ try {
18
+ return check(a, b);
19
+ }
20
+ finally {
21
+ previousComparisons.clear();
22
+ }
23
+ }
24
+ function check(a, b) {
25
+ // If the two values are strictly equal, our job is easy.
26
+ if (a === b) {
27
+ return true;
28
+ }
29
+ // Object.prototype.toString returns a representation of the runtime type of
30
+ // the given value that is considerably more precise than typeof.
31
+ var aTag = toString.call(a);
32
+ var bTag = toString.call(b);
33
+ // If the runtime types of a and b are different, they could maybe be equal
34
+ // under some interpretation of equality, but for simplicity and performance
35
+ // we just return false instead.
36
+ if (aTag !== bTag) {
37
+ return false;
38
+ }
39
+ switch (aTag) {
40
+ case '[object Array]':
41
+ // Arrays are a lot like other objects, but we can cheaply compare their
42
+ // lengths as a short-cut before comparing their elements.
43
+ if (a.length !== b.length)
44
+ return false;
45
+ // Fall through to object case...
46
+ case '[object Object]': {
47
+ if (previouslyCompared(a, b))
48
+ return true;
49
+ var aKeys = definedKeys(a);
50
+ var bKeys = definedKeys(b);
51
+ // If `a` and `b` have a different number of enumerable keys, they
52
+ // must be different.
53
+ var keyCount = aKeys.length;
54
+ if (keyCount !== bKeys.length)
55
+ return false;
56
+ // Now make sure they have the same keys.
57
+ for (var k = 0; k < keyCount; ++k) {
58
+ if (!hasOwnProperty.call(b, aKeys[k])) {
59
+ return false;
60
+ }
61
+ }
62
+ // Finally, check deep equality of all child properties.
63
+ for (var k = 0; k < keyCount; ++k) {
64
+ var key = aKeys[k];
65
+ if (!check(a[key], b[key])) {
66
+ return false;
67
+ }
68
+ }
69
+ return true;
70
+ }
71
+ case '[object Error]':
72
+ return a.name === b.name && a.message === b.message;
73
+ case '[object Number]':
74
+ // Handle NaN, which is !== itself.
75
+ if (a !== a)
76
+ return b !== b;
77
+ // Fall through to shared +a === +b case...
78
+ case '[object Boolean]':
79
+ case '[object Date]':
80
+ return +a === +b;
81
+ case '[object RegExp]':
82
+ case '[object String]':
83
+ return a == "" + b;
84
+ case '[object Map]':
85
+ case '[object Set]': {
86
+ if (a.size !== b.size)
87
+ return false;
88
+ if (previouslyCompared(a, b))
89
+ return true;
90
+ var aIterator = a.entries();
91
+ var isMap = aTag === '[object Map]';
92
+ while (true) {
93
+ var info = aIterator.next();
94
+ if (info.done)
95
+ break;
96
+ // If a instanceof Set, aValue === aKey.
97
+ var _a = info.value, aKey = _a[0], aValue = _a[1];
98
+ // So this works the same way for both Set and Map.
99
+ if (!b.has(aKey)) {
100
+ return false;
101
+ }
102
+ // However, we care about deep equality of values only when dealing
103
+ // with Map structures.
104
+ if (isMap && !check(aValue, b.get(aKey))) {
105
+ return false;
106
+ }
107
+ }
108
+ return true;
109
+ }
110
+ case '[object Uint16Array]':
111
+ case '[object Uint8Array]': // Buffer, in Node.js.
112
+ case '[object Uint32Array]':
113
+ case '[object Int32Array]':
114
+ case '[object Int8Array]':
115
+ case '[object Int16Array]':
116
+ case '[object ArrayBuffer]':
117
+ // DataView doesn't need these conversions, but the equality check is
118
+ // otherwise the same.
119
+ a = new Uint8Array(a);
120
+ b = new Uint8Array(b);
121
+ // Fall through...
122
+ case '[object DataView]': {
123
+ var len = a.byteLength;
124
+ if (len === b.byteLength) {
125
+ while (len-- && a[len] === b[len]) {
126
+ // Keep looping as long as the bytes are equal.
127
+ }
128
+ }
129
+ return len === -1;
130
+ }
131
+ case '[object AsyncFunction]':
132
+ case '[object GeneratorFunction]':
133
+ case '[object AsyncGeneratorFunction]':
134
+ case '[object Function]': {
135
+ var aCode = fnToStr.call(a);
136
+ if (aCode !== fnToStr.call(b)) {
137
+ return false;
138
+ }
139
+ // We consider non-native functions equal if they have the same code
140
+ // (native functions require === because their code is censored).
141
+ // Note that this behavior is not entirely sound, since !== function
142
+ // objects with the same code can behave differently depending on
143
+ // their closure scope. However, any function can behave differently
144
+ // depending on the values of its input arguments (including this)
145
+ // and its calling context (including its closure scope), even
146
+ // though the function object is === to itself; and it is entirely
147
+ // possible for functions that are not === to behave exactly the
148
+ // same under all conceivable circumstances. Because none of these
149
+ // factors are statically decidable in JavaScript, JS function
150
+ // equality is not well-defined. This ambiguity allows us to
151
+ // consider the best possible heuristic among various imperfect
152
+ // options, and equating non-native functions that have the same
153
+ // code has enormous practical benefits, such as when comparing
154
+ // functions that are repeatedly passed as fresh function
155
+ // expressions within objects that are otherwise deeply equal. Since
156
+ // any function created from the same syntactic expression (in the
157
+ // same code location) will always stringify to the same code
158
+ // according to fnToStr.call, we can reasonably expect these
159
+ // repeatedly passed function expressions to have the same code, and
160
+ // thus behave "the same" (with all the caveats mentioned above),
161
+ // even though the runtime function objects are !== to one another.
162
+ return !endsWith(aCode, nativeCodeSuffix);
163
+ }
164
+ }
165
+ // Otherwise the values are not equal.
166
+ return false;
167
+ }
168
+ function definedKeys(obj) {
169
+ // Remember that the second argument to Array.prototype.filter will be
170
+ // used as `this` within the callback function.
171
+ return Object.keys(obj).filter(isDefinedKey, obj);
172
+ }
173
+ function isDefinedKey(key) {
174
+ return this[key] !== void 0;
175
+ }
176
+ var nativeCodeSuffix = "{ [native code] }";
177
+ function endsWith(full, suffix) {
178
+ var fromIndex = full.length - suffix.length;
179
+ return fromIndex >= 0 &&
180
+ full.indexOf(suffix, fromIndex) === fromIndex;
181
+ }
182
+ function previouslyCompared(a, b) {
183
+ // Though cyclic references can make an object graph appear infinite from the
184
+ // perspective of a depth-first traversal, the graph still contains a finite
185
+ // number of distinct object references. We use the previousComparisons cache
186
+ // to avoid comparing the same pair of object references more than once, which
187
+ // guarantees termination (even if we end up comparing every object in one
188
+ // graph to every object in the other graph, which is extremely unlikely),
189
+ // while still allowing weird isomorphic structures (like rings with different
190
+ // lengths) a chance to pass the equality test.
191
+ var bSet = previousComparisons.get(a);
192
+ if (bSet) {
193
+ // Return true here because we can be sure false will be returned somewhere
194
+ // else if the objects are not equivalent.
195
+ if (bSet.has(b))
196
+ return true;
197
+ }
198
+ else {
199
+ previousComparisons.set(a, bSet = new Set);
200
+ }
201
+ bSet.add(b);
202
+ return false;
200
203
  }
201
204
 
202
205
  var __defProp = Object.defineProperty;
@@ -632,6 +635,7 @@ function userIdentityFromJwt(jwt) {
632
635
  const exp = decoded.exp;
633
636
  let userId = void 0;
634
637
  let accountId = void 0;
638
+ let email = void 0;
635
639
  if (isDecodedWidgetAPIJWT(decoded)) {
636
640
  const matches = decoded.sub.match(/(.*):(.*)@(.*):users/);
637
641
  if (matches == null ? void 0 : matches[1])
@@ -641,6 +645,7 @@ function userIdentityFromJwt(jwt) {
641
645
  } else if (isDecodedSquatchJWT(decoded)) {
642
646
  accountId = decoded.user.accountId;
643
647
  userId = decoded.user.id;
648
+ email = decoded.user.email;
644
649
  }
645
650
  if (!userId || !accountId) {
646
651
  debug6("No user information");
@@ -653,6 +658,7 @@ function userIdentityFromJwt(jwt) {
653
658
  return {
654
659
  id: userId,
655
660
  accountId,
661
+ email,
656
662
  jwt
657
663
  };
658
664
  } catch (e) {
@@ -674,6 +680,7 @@ function _getInitialValue() {
674
680
  return {
675
681
  id: sdk.widgetIdent.userId,
676
682
  accountId: sdk.widgetIdent.accountId,
683
+ email: sdk.widgetIdent.email,
677
684
  jwt: sdk.widgetIdent.token
678
685
  };
679
686
  case "SquatchPortal":
@@ -738,6 +745,8 @@ function setProgramId(programId) {
738
745
  }
739
746
  }
740
747
 
748
+ function c$1(){return (c$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var u=1e3,C=60*u,l=60*C,d=24*l,f=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return n*d;case"hours":case"hour":case"hrs":case"hr":case"h":return n*l;case"minutes":case"minute":case"mins":case"min":case"m":return n*C;case"seconds":case"second":case"secs":case"sec":case"s":return n*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===n&&isFinite(e))return t.long?function(e){var t=Math.abs(e);return t>=d?g(e,t,d,"day"):t>=l?g(e,t,l,"hour"):t>=C?g(e,t,C,"minute"):t>=u?g(e,t,u,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=d?Math.round(e/d)+"d":t>=l?Math.round(e/l)+"h":t>=C?Math.round(e/C)+"m":t>=u?Math.round(e/u)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function g(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}var p,m=(function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(o=r));}),t.splice(o,0,n);},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug");}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug");}catch(e){}return !e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=function(e){function t(e){let r,o=null;function s(...e){if(!s.enabled)return;const n=s,o=Number(new Date);n.diff=o-(r||o),n.prev=r,n.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,o)=>{if("%%"===r)return "%";a++;const s=t.formatters[o];return "function"==typeof s&&(r=s.call(n,e[a]),e.splice(a,1),a--),r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e);}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null===o?t.enabled(e):o,set:e=>{o=e;}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));},t.enabled=function(e){if("*"===e[e.length-1])return !0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return !1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return !0;return !1},t.humanize=f,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");},Object.keys(e).forEach(n=>{t[n]=e[n];}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(p={exports:{}},p.exports),p.exports)("useDomContext");function h(e,n,i){void 0===i&&(i={});var u=useRef(void 0),C=useState$1(void 0),l=C[0],d=C[1],f=useMemo$1(function(){var r;try{(r=new s(c$1({contextName:n,element:e,onChange:function(e){u&&(u.current=e),d(e);}},i))).start();}catch(e){m("Listener failed to start",e);}return m("Listener initialized",r),{listener:r}},[n,u]).listener;return useEffect$1(function(){return m("Listener starting (or restarting)",f),f.start(),function(){m("Listener stopping (or restopping)",f),f.stop();}},[f,e.isConnected]),l||(null==u?void 0:u.current)}function y(e,t,r){var o=useMemo$1(function(){var o=new c({contextName:t,element:e,initialState:r});return o.start(),m("Provider initialized",o),o},[t,e]);useEffect$1(function(){return m("Provider starting (or restarting)",o),o.start(),function(){m("Provider stopping (or re-stopping)",o),o.stop();}},[o,e.isConnected]);var c$1=useReducer$1(function(e,t){var n;return m("New context value",t),n="function"==typeof t?t(o.context):t,o.context=n,o.context},o.context);return [c$1[0],c$1[1],o]}
749
+
741
750
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
742
751
 
743
752
  /**
@@ -1490,7 +1499,6 @@ function devAssert(condition, message) {
1490
1499
  * A replacement for instanceof which includes an error warning when multi-realm
1491
1500
  * constructors are detected.
1492
1501
  */
1493
-
1494
1502
  // See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
1495
1503
  // See: https://webpack.js.org/guides/production/
1496
1504
  const instanceOf = // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
@@ -4519,8 +4527,6 @@ function hasMultilineItems(maybeArray) {
4519
4527
  return maybeArray != null && maybeArray.some(isMultiline);
4520
4528
  }
4521
4529
 
4522
- function e$1(e){this.message=e;}e$1.prototype=new Error,e$1.prototype.name="InvalidCharacterError";var r$1="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(r){var t=String(r).replace(/=+$/,"");if(t.length%4==1)throw new e$1("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a=0,i=0,c="";o=t.charAt(i++);~o&&(n=a%4?64*n+o:o,a++%4)?c+=String.fromCharCode(255&n>>(-2*a&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return c};function t$1(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw "Illegal base64url string!"}try{return function(e){return decodeURIComponent(r$1(e).replace(/(.)/g,(function(e,r){var t=r.charCodeAt(0).toString(16).toUpperCase();return t.length<2&&(t="0"+t),"%"+t})))}(t)}catch(e){return r$1(t)}}function n$1(e){this.message=e;}function o$1(e,r){if("string"!=typeof e)throw new n$1("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t$1(e.split(".")[o]))}catch(e){throw new n$1("Invalid token specified: "+e.message)}}n$1.prototype=new Error,n$1.prototype.name="InvalidTokenError";
4523
-
4524
4530
  //
4525
4531
  // Main
4526
4532
  //
@@ -4667,11 +4673,6 @@ var strategies = {
4667
4673
  };
4668
4674
  src.strategies = strategies;
4669
4675
 
4670
- const memoize$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), src, {
4671
- 'default': src,
4672
- strategies: strategies
4673
- }));
4674
-
4675
4676
  var utils = createCommonjsModule(function (module, exports) {
4676
4677
  var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
4677
4678
  __assign = Object.assign || function(t) {
@@ -4921,15 +4922,14 @@ exports.default = combinedQuery;
4921
4922
  const M = /*@__PURE__*/getDefaultExportFromCjs(dist);
4922
4923
 
4923
4924
  var browserPonyfill = createCommonjsModule(function (module, exports) {
4924
- var global = typeof self !== 'undefined' ? self : commonjsGlobal;
4925
- var __self__ = (function () {
4925
+ var __self__ = (function (root) {
4926
4926
  function F() {
4927
4927
  this.fetch = false;
4928
- this.DOMException = global.DOMException;
4928
+ this.DOMException = root.DOMException;
4929
4929
  }
4930
- F.prototype = global;
4930
+ F.prototype = root;
4931
4931
  return new F();
4932
- })();
4932
+ })(typeof self !== 'undefined' ? self : commonjsGlobal);
4933
4933
  (function(self) {
4934
4934
 
4935
4935
  var irrelevant = (function (exports) {
@@ -5456,24 +5456,17 @@ var irrelevant = (function (exports) {
5456
5456
  exports.Response = Response;
5457
5457
  exports.fetch = fetch;
5458
5458
 
5459
- Object.defineProperty(exports, '__esModule', { value: true });
5460
-
5461
5459
  return exports;
5462
5460
 
5463
- })({});
5461
+ }({}));
5464
5462
  })(__self__);
5465
- __self__.fetch.ponyfill = true;
5466
- // Remove "polyfill" property added by whatwg-fetch
5467
5463
  delete __self__.fetch.polyfill;
5468
- // Choose between native implementation (global) or custom implementation (__self__)
5469
- // var ctx = global.fetch ? global : __self__;
5470
- var ctx = __self__; // this line disable service worker support temporarily
5471
- exports = ctx.fetch; // To enable: import fetch from 'cross-fetch'
5472
- exports.default = ctx.fetch; // For TypeScript consumers without esModuleInterop.
5473
- exports.fetch = ctx.fetch; // To enable: import {fetch} from 'cross-fetch'
5474
- exports.Headers = ctx.Headers;
5475
- exports.Request = ctx.Request;
5476
- exports.Response = ctx.Response;
5464
+ exports = __self__.fetch; // To enable: import fetch from 'cross-fetch'
5465
+ exports.default = __self__.fetch; // For TypeScript consumers without esModuleInterop.
5466
+ exports.fetch = __self__.fetch; // To enable: import {fetch} from 'cross-fetch'
5467
+ exports.Headers = __self__.Headers;
5468
+ exports.Request = __self__.Request;
5469
+ exports.Response = __self__.Response;
5477
5470
  module.exports = exports;
5478
5471
  });
5479
5472
 
@@ -8200,6 +8193,983 @@ function dispatchBufferClose(arg) {
8200
8193
  subscriber.closeContext(context);
8201
8194
  }
8202
8195
 
8196
+ /**
8197
+ * @license
8198
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8199
+ * This code may only be used under the BSD style license found at
8200
+ * http://polymer.github.io/LICENSE.txt
8201
+ * The complete set of authors may be found at
8202
+ * http://polymer.github.io/AUTHORS.txt
8203
+ * The complete set of contributors may be found at
8204
+ * http://polymer.github.io/CONTRIBUTORS.txt
8205
+ * Code distributed by Google as part of the polymer project is also
8206
+ * subject to an additional IP rights grant found at
8207
+ * http://polymer.github.io/PATENTS.txt
8208
+ */
8209
+ /**
8210
+ * An expression marker with embedded unique key to avoid collision with
8211
+ * possible text in templates.
8212
+ */
8213
+ const marker = `{{lit-${String(Math.random()).slice(2)}}}`;
8214
+
8215
+ /**
8216
+ * @license
8217
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8218
+ * This code may only be used under the BSD style license found at
8219
+ * http://polymer.github.io/LICENSE.txt
8220
+ * The complete set of authors may be found at
8221
+ * http://polymer.github.io/AUTHORS.txt
8222
+ * The complete set of contributors may be found at
8223
+ * http://polymer.github.io/CONTRIBUTORS.txt
8224
+ * Code distributed by Google as part of the polymer project is also
8225
+ * subject to an additional IP rights grant found at
8226
+ * http://polymer.github.io/PATENTS.txt
8227
+ */
8228
+ /**
8229
+ * Our TrustedTypePolicy for HTML which is declared using the html template
8230
+ * tag function.
8231
+ *
8232
+ * That HTML is a developer-authored constant, and is parsed with innerHTML
8233
+ * before any untrusted expressions have been mixed in. Therefor it is
8234
+ * considered safe by construction.
8235
+ */
8236
+ const policy = window.trustedTypes &&
8237
+ trustedTypes.createPolicy('lit-html', { createHTML: (s) => s });
8238
+
8239
+ /**
8240
+ * @license
8241
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8242
+ * This code may only be used under the BSD style license found at
8243
+ * http://polymer.github.io/LICENSE.txt
8244
+ * The complete set of authors may be found at
8245
+ * http://polymer.github.io/AUTHORS.txt
8246
+ * The complete set of contributors may be found at
8247
+ * http://polymer.github.io/CONTRIBUTORS.txt
8248
+ * Code distributed by Google as part of the polymer project is also
8249
+ * subject to an additional IP rights grant found at
8250
+ * http://polymer.github.io/PATENTS.txt
8251
+ */
8252
+ // Wrap into an IIFE because MS Edge <= v41 does not support having try/catch
8253
+ // blocks right into the body of a module
8254
+ (() => {
8255
+ try {
8256
+ const options = {
8257
+ get capture() {
8258
+ return false;
8259
+ }
8260
+ };
8261
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
8262
+ window.addEventListener('test', options, options);
8263
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
8264
+ window.removeEventListener('test', options, options);
8265
+ }
8266
+ catch (_e) {
8267
+ // event options not supported
8268
+ }
8269
+ })();
8270
+
8271
+ /**
8272
+ * @license
8273
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8274
+ * This code may only be used under the BSD style license found at
8275
+ * http://polymer.github.io/LICENSE.txt
8276
+ * The complete set of authors may be found at
8277
+ * http://polymer.github.io/AUTHORS.txt
8278
+ * The complete set of contributors may be found at
8279
+ * http://polymer.github.io/CONTRIBUTORS.txt
8280
+ * Code distributed by Google as part of the polymer project is also
8281
+ * subject to an additional IP rights grant found at
8282
+ * http://polymer.github.io/PATENTS.txt
8283
+ */
8284
+ // IMPORTANT: do not change the property name or the assignment expression.
8285
+ // This line will be used in regexes to search for lit-html usage.
8286
+ // TODO(justinfagnani): inject version number at build time
8287
+ if (typeof window !== 'undefined') {
8288
+ (window['litHtmlVersions'] || (window['litHtmlVersions'] = [])).push('1.4.1');
8289
+ }
8290
+
8291
+ let current;
8292
+ let currentId = 0;
8293
+ function notify() {
8294
+ return currentId++;
8295
+ }
8296
+
8297
+ const hookSymbol = Symbol('haunted.hook');
8298
+ const effectsSymbol = Symbol('haunted.effects');
8299
+ const layoutEffectsSymbol = Symbol('haunted.layoutEffects');
8300
+ const contextEvent = 'haunted.context';
8301
+
8302
+ const defer = Promise.resolve().then.bind(Promise.resolve());
8303
+
8304
+ class Hook {
8305
+ constructor(id, state) {
8306
+ this.id = id;
8307
+ this.state = state;
8308
+ }
8309
+ }
8310
+ function use(Hook, ...args) {
8311
+ let id = notify();
8312
+ let hooks = current[hookSymbol];
8313
+ let hook = hooks.get(id);
8314
+ if (!hook) {
8315
+ hook = new Hook(id, current, ...args);
8316
+ hooks.set(id, hook);
8317
+ }
8318
+ return hook.update(...args);
8319
+ }
8320
+ function hook(Hook) {
8321
+ return use.bind(null, Hook);
8322
+ }
8323
+
8324
+ function createEffect(setEffects) {
8325
+ return hook(class extends Hook {
8326
+ constructor(id, state, ignored1, ignored2) {
8327
+ super(id, state);
8328
+ setEffects(state, this);
8329
+ }
8330
+ update(callback, values) {
8331
+ this.callback = callback;
8332
+ this.values = values;
8333
+ }
8334
+ call() {
8335
+ if (!this.values || this.hasChanged()) {
8336
+ this.run();
8337
+ }
8338
+ this.lastValues = this.values;
8339
+ }
8340
+ run() {
8341
+ this.teardown();
8342
+ this._teardown = this.callback.call(this.state);
8343
+ }
8344
+ teardown() {
8345
+ if (typeof this._teardown === 'function') {
8346
+ this._teardown();
8347
+ }
8348
+ }
8349
+ hasChanged() {
8350
+ return !this.lastValues || this.values.some((value, i) => this.lastValues[i] !== value);
8351
+ }
8352
+ });
8353
+ }
8354
+
8355
+ function setEffects(state, cb) {
8356
+ state[effectsSymbol].push(cb);
8357
+ }
8358
+ const useEffect = createEffect(setEffects);
8359
+
8360
+ const useContext = hook(class extends Hook {
8361
+ constructor(id, state, _) {
8362
+ super(id, state);
8363
+ this._updater = this._updater.bind(this);
8364
+ this._ranEffect = false;
8365
+ this._unsubscribe = null;
8366
+ setEffects(state, this);
8367
+ }
8368
+ update(Context) {
8369
+ if (this.state.virtual) {
8370
+ throw new Error('can\'t be used with virtual components');
8371
+ }
8372
+ if (this.Context !== Context) {
8373
+ this._subscribe(Context);
8374
+ this.Context = Context;
8375
+ }
8376
+ return this.value;
8377
+ }
8378
+ call() {
8379
+ if (!this._ranEffect) {
8380
+ this._ranEffect = true;
8381
+ if (this._unsubscribe)
8382
+ this._unsubscribe();
8383
+ this._subscribe(this.Context);
8384
+ this.state.update();
8385
+ }
8386
+ }
8387
+ _updater(value) {
8388
+ this.value = value;
8389
+ this.state.update();
8390
+ }
8391
+ _subscribe(Context) {
8392
+ const detail = { Context, callback: this._updater };
8393
+ this.state.host.dispatchEvent(new CustomEvent(contextEvent, {
8394
+ detail,
8395
+ bubbles: true,
8396
+ cancelable: true,
8397
+ composed: true,
8398
+ }));
8399
+ const { unsubscribe = null, value } = detail;
8400
+ this.value = unsubscribe ? value : Context.defaultValue;
8401
+ this._unsubscribe = unsubscribe;
8402
+ }
8403
+ teardown() {
8404
+ if (this._unsubscribe) {
8405
+ this._unsubscribe();
8406
+ }
8407
+ }
8408
+ });
8409
+
8410
+ const useMemo = hook(class extends Hook {
8411
+ constructor(id, state, fn, values) {
8412
+ super(id, state);
8413
+ this.value = fn();
8414
+ this.values = values;
8415
+ }
8416
+ update(fn, values) {
8417
+ if (this.hasChanged(values)) {
8418
+ this.values = values;
8419
+ this.value = fn();
8420
+ }
8421
+ return this.value;
8422
+ }
8423
+ hasChanged(values = []) {
8424
+ return values.some((value, i) => this.values[i] !== value);
8425
+ }
8426
+ });
8427
+
8428
+ function setLayoutEffects(state, cb) {
8429
+ state[layoutEffectsSymbol].push(cb);
8430
+ }
8431
+ const useLayoutEffect = createEffect(setLayoutEffects);
8432
+
8433
+ const useState = hook(class extends Hook {
8434
+ constructor(id, state, initialValue) {
8435
+ super(id, state);
8436
+ this.updater = this.updater.bind(this);
8437
+ if (typeof initialValue === 'function') {
8438
+ initialValue = initialValue();
8439
+ }
8440
+ this.makeArgs(initialValue);
8441
+ }
8442
+ update() {
8443
+ return this.args;
8444
+ }
8445
+ updater(value) {
8446
+ if (typeof value === 'function') {
8447
+ const updaterFn = value;
8448
+ const [previousValue] = this.args;
8449
+ value = updaterFn(previousValue);
8450
+ }
8451
+ this.makeArgs(value);
8452
+ this.state.update();
8453
+ }
8454
+ makeArgs(value) {
8455
+ this.args = Object.freeze([value, this.updater]);
8456
+ }
8457
+ });
8458
+
8459
+ const useReducer = hook(class extends Hook {
8460
+ constructor(id, state, _, initialState, init) {
8461
+ super(id, state);
8462
+ this.dispatch = this.dispatch.bind(this);
8463
+ this.currentState = init !== undefined ? init(initialState) : initialState;
8464
+ }
8465
+ update(reducer) {
8466
+ this.reducer = reducer;
8467
+ return [this.currentState, this.dispatch];
8468
+ }
8469
+ dispatch(action) {
8470
+ this.currentState = this.reducer(this.currentState, action);
8471
+ this.state.update();
8472
+ }
8473
+ });
8474
+
8475
+ /**
8476
+ * Helpers.
8477
+ */
8478
+
8479
+ var s$1 = 1000;
8480
+ var m$1 = s$1 * 60;
8481
+ var h$1 = m$1 * 60;
8482
+ var d$1 = h$1 * 24;
8483
+ var w = d$1 * 7;
8484
+ var y$1 = d$1 * 365.25;
8485
+
8486
+ /**
8487
+ * Parse or format the given `val`.
8488
+ *
8489
+ * Options:
8490
+ *
8491
+ * - `long` verbose formatting [false]
8492
+ *
8493
+ * @param {String|Number} val
8494
+ * @param {Object} [options]
8495
+ * @throws {Error} throw an error if val is not a non-empty string or a number
8496
+ * @return {String|Number}
8497
+ * @api public
8498
+ */
8499
+
8500
+ var ms = function(val, options) {
8501
+ options = options || {};
8502
+ var type = typeof val;
8503
+ if (type === 'string' && val.length > 0) {
8504
+ return parse$1(val);
8505
+ } else if (type === 'number' && isFinite(val)) {
8506
+ return options.long ? fmtLong(val) : fmtShort(val);
8507
+ }
8508
+ throw new Error(
8509
+ 'val is not a non-empty string or a valid number. val=' +
8510
+ JSON.stringify(val)
8511
+ );
8512
+ };
8513
+
8514
+ /**
8515
+ * Parse the given `str` and return milliseconds.
8516
+ *
8517
+ * @param {String} str
8518
+ * @return {Number}
8519
+ * @api private
8520
+ */
8521
+
8522
+ function parse$1(str) {
8523
+ str = String(str);
8524
+ if (str.length > 100) {
8525
+ return;
8526
+ }
8527
+ var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
8528
+ str
8529
+ );
8530
+ if (!match) {
8531
+ return;
8532
+ }
8533
+ var n = parseFloat(match[1]);
8534
+ var type = (match[2] || 'ms').toLowerCase();
8535
+ switch (type) {
8536
+ case 'years':
8537
+ case 'year':
8538
+ case 'yrs':
8539
+ case 'yr':
8540
+ case 'y':
8541
+ return n * y$1;
8542
+ case 'weeks':
8543
+ case 'week':
8544
+ case 'w':
8545
+ return n * w;
8546
+ case 'days':
8547
+ case 'day':
8548
+ case 'd':
8549
+ return n * d$1;
8550
+ case 'hours':
8551
+ case 'hour':
8552
+ case 'hrs':
8553
+ case 'hr':
8554
+ case 'h':
8555
+ return n * h$1;
8556
+ case 'minutes':
8557
+ case 'minute':
8558
+ case 'mins':
8559
+ case 'min':
8560
+ case 'm':
8561
+ return n * m$1;
8562
+ case 'seconds':
8563
+ case 'second':
8564
+ case 'secs':
8565
+ case 'sec':
8566
+ case 's':
8567
+ return n * s$1;
8568
+ case 'milliseconds':
8569
+ case 'millisecond':
8570
+ case 'msecs':
8571
+ case 'msec':
8572
+ case 'ms':
8573
+ return n;
8574
+ default:
8575
+ return undefined;
8576
+ }
8577
+ }
8578
+
8579
+ /**
8580
+ * Short format for `ms`.
8581
+ *
8582
+ * @param {Number} ms
8583
+ * @return {String}
8584
+ * @api private
8585
+ */
8586
+
8587
+ function fmtShort(ms) {
8588
+ var msAbs = Math.abs(ms);
8589
+ if (msAbs >= d$1) {
8590
+ return Math.round(ms / d$1) + 'd';
8591
+ }
8592
+ if (msAbs >= h$1) {
8593
+ return Math.round(ms / h$1) + 'h';
8594
+ }
8595
+ if (msAbs >= m$1) {
8596
+ return Math.round(ms / m$1) + 'm';
8597
+ }
8598
+ if (msAbs >= s$1) {
8599
+ return Math.round(ms / s$1) + 's';
8600
+ }
8601
+ return ms + 'ms';
8602
+ }
8603
+
8604
+ /**
8605
+ * Long format for `ms`.
8606
+ *
8607
+ * @param {Number} ms
8608
+ * @return {String}
8609
+ * @api private
8610
+ */
8611
+
8612
+ function fmtLong(ms) {
8613
+ var msAbs = Math.abs(ms);
8614
+ if (msAbs >= d$1) {
8615
+ return plural(ms, msAbs, d$1, 'day');
8616
+ }
8617
+ if (msAbs >= h$1) {
8618
+ return plural(ms, msAbs, h$1, 'hour');
8619
+ }
8620
+ if (msAbs >= m$1) {
8621
+ return plural(ms, msAbs, m$1, 'minute');
8622
+ }
8623
+ if (msAbs >= s$1) {
8624
+ return plural(ms, msAbs, s$1, 'second');
8625
+ }
8626
+ return ms + ' ms';
8627
+ }
8628
+
8629
+ /**
8630
+ * Pluralization helper.
8631
+ */
8632
+
8633
+ function plural(ms, msAbs, n, name) {
8634
+ var isPlural = msAbs >= n * 1.5;
8635
+ return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
8636
+ }
8637
+
8638
+ /**
8639
+ * This is the common logic for both the Node.js and web browser
8640
+ * implementations of `debug()`.
8641
+ */
8642
+
8643
+ function setup(env) {
8644
+ createDebug.debug = createDebug;
8645
+ createDebug.default = createDebug;
8646
+ createDebug.coerce = coerce;
8647
+ createDebug.disable = disable;
8648
+ createDebug.enable = enable;
8649
+ createDebug.enabled = enabled;
8650
+ createDebug.humanize = ms;
8651
+ createDebug.destroy = destroy;
8652
+
8653
+ Object.keys(env).forEach(key => {
8654
+ createDebug[key] = env[key];
8655
+ });
8656
+
8657
+ /**
8658
+ * The currently active debug mode names, and names to skip.
8659
+ */
8660
+
8661
+ createDebug.names = [];
8662
+ createDebug.skips = [];
8663
+
8664
+ /**
8665
+ * Map of special "%n" handling functions, for the debug "format" argument.
8666
+ *
8667
+ * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
8668
+ */
8669
+ createDebug.formatters = {};
8670
+
8671
+ /**
8672
+ * Selects a color for a debug namespace
8673
+ * @param {String} namespace The namespace string for the for the debug instance to be colored
8674
+ * @return {Number|String} An ANSI color code for the given namespace
8675
+ * @api private
8676
+ */
8677
+ function selectColor(namespace) {
8678
+ let hash = 0;
8679
+
8680
+ for (let i = 0; i < namespace.length; i++) {
8681
+ hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
8682
+ hash |= 0; // Convert to 32bit integer
8683
+ }
8684
+
8685
+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
8686
+ }
8687
+ createDebug.selectColor = selectColor;
8688
+
8689
+ /**
8690
+ * Create a debugger with the given `namespace`.
8691
+ *
8692
+ * @param {String} namespace
8693
+ * @return {Function}
8694
+ * @api public
8695
+ */
8696
+ function createDebug(namespace) {
8697
+ let prevTime;
8698
+ let enableOverride = null;
8699
+
8700
+ function debug(...args) {
8701
+ // Disabled?
8702
+ if (!debug.enabled) {
8703
+ return;
8704
+ }
8705
+
8706
+ const self = debug;
8707
+
8708
+ // Set `diff` timestamp
8709
+ const curr = Number(new Date());
8710
+ const ms = curr - (prevTime || curr);
8711
+ self.diff = ms;
8712
+ self.prev = prevTime;
8713
+ self.curr = curr;
8714
+ prevTime = curr;
8715
+
8716
+ args[0] = createDebug.coerce(args[0]);
8717
+
8718
+ if (typeof args[0] !== 'string') {
8719
+ // Anything else let's inspect with %O
8720
+ args.unshift('%O');
8721
+ }
8722
+
8723
+ // Apply any `formatters` transformations
8724
+ let index = 0;
8725
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
8726
+ // If we encounter an escaped % then don't increase the array index
8727
+ if (match === '%%') {
8728
+ return '%';
8729
+ }
8730
+ index++;
8731
+ const formatter = createDebug.formatters[format];
8732
+ if (typeof formatter === 'function') {
8733
+ const val = args[index];
8734
+ match = formatter.call(self, val);
8735
+
8736
+ // Now we need to remove `args[index]` since it's inlined in the `format`
8737
+ args.splice(index, 1);
8738
+ index--;
8739
+ }
8740
+ return match;
8741
+ });
8742
+
8743
+ // Apply env-specific formatting (colors, etc.)
8744
+ createDebug.formatArgs.call(self, args);
8745
+
8746
+ const logFn = self.log || createDebug.log;
8747
+ logFn.apply(self, args);
8748
+ }
8749
+
8750
+ debug.namespace = namespace;
8751
+ debug.useColors = createDebug.useColors();
8752
+ debug.color = createDebug.selectColor(namespace);
8753
+ debug.extend = extend;
8754
+ debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
8755
+
8756
+ Object.defineProperty(debug, 'enabled', {
8757
+ enumerable: true,
8758
+ configurable: false,
8759
+ get: () => enableOverride === null ? createDebug.enabled(namespace) : enableOverride,
8760
+ set: v => {
8761
+ enableOverride = v;
8762
+ }
8763
+ });
8764
+
8765
+ // Env-specific initialization logic for debug instances
8766
+ if (typeof createDebug.init === 'function') {
8767
+ createDebug.init(debug);
8768
+ }
8769
+
8770
+ return debug;
8771
+ }
8772
+
8773
+ function extend(namespace, delimiter) {
8774
+ const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
8775
+ newDebug.log = this.log;
8776
+ return newDebug;
8777
+ }
8778
+
8779
+ /**
8780
+ * Enables a debug mode by namespaces. This can include modes
8781
+ * separated by a colon and wildcards.
8782
+ *
8783
+ * @param {String} namespaces
8784
+ * @api public
8785
+ */
8786
+ function enable(namespaces) {
8787
+ createDebug.save(namespaces);
8788
+
8789
+ createDebug.names = [];
8790
+ createDebug.skips = [];
8791
+
8792
+ let i;
8793
+ const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
8794
+ const len = split.length;
8795
+
8796
+ for (i = 0; i < len; i++) {
8797
+ if (!split[i]) {
8798
+ // ignore empty strings
8799
+ continue;
8800
+ }
8801
+
8802
+ namespaces = split[i].replace(/\*/g, '.*?');
8803
+
8804
+ if (namespaces[0] === '-') {
8805
+ createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
8806
+ } else {
8807
+ createDebug.names.push(new RegExp('^' + namespaces + '$'));
8808
+ }
8809
+ }
8810
+ }
8811
+
8812
+ /**
8813
+ * Disable debug output.
8814
+ *
8815
+ * @return {String} namespaces
8816
+ * @api public
8817
+ */
8818
+ function disable() {
8819
+ const namespaces = [
8820
+ ...createDebug.names.map(toNamespace),
8821
+ ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)
8822
+ ].join(',');
8823
+ createDebug.enable('');
8824
+ return namespaces;
8825
+ }
8826
+
8827
+ /**
8828
+ * Returns true if the given mode name is enabled, false otherwise.
8829
+ *
8830
+ * @param {String} name
8831
+ * @return {Boolean}
8832
+ * @api public
8833
+ */
8834
+ function enabled(name) {
8835
+ if (name[name.length - 1] === '*') {
8836
+ return true;
8837
+ }
8838
+
8839
+ let i;
8840
+ let len;
8841
+
8842
+ for (i = 0, len = createDebug.skips.length; i < len; i++) {
8843
+ if (createDebug.skips[i].test(name)) {
8844
+ return false;
8845
+ }
8846
+ }
8847
+
8848
+ for (i = 0, len = createDebug.names.length; i < len; i++) {
8849
+ if (createDebug.names[i].test(name)) {
8850
+ return true;
8851
+ }
8852
+ }
8853
+
8854
+ return false;
8855
+ }
8856
+
8857
+ /**
8858
+ * Convert regexp to namespace
8859
+ *
8860
+ * @param {RegExp} regxep
8861
+ * @return {String} namespace
8862
+ * @api private
8863
+ */
8864
+ function toNamespace(regexp) {
8865
+ return regexp.toString()
8866
+ .substring(2, regexp.toString().length - 2)
8867
+ .replace(/\.\*\?$/, '*');
8868
+ }
8869
+
8870
+ /**
8871
+ * Coerce `val`.
8872
+ *
8873
+ * @param {Mixed} val
8874
+ * @return {Mixed}
8875
+ * @api private
8876
+ */
8877
+ function coerce(val) {
8878
+ if (val instanceof Error) {
8879
+ return val.stack || val.message;
8880
+ }
8881
+ return val;
8882
+ }
8883
+
8884
+ /**
8885
+ * XXX DO NOT USE. This is a temporary stub function.
8886
+ * XXX It WILL be removed in the next major release.
8887
+ */
8888
+ function destroy() {
8889
+ console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
8890
+ }
8891
+
8892
+ createDebug.enable(createDebug.load());
8893
+
8894
+ return createDebug;
8895
+ }
8896
+
8897
+ var common = setup;
8898
+
8899
+ var browser$1 = createCommonjsModule(function (module, exports) {
8900
+ /* eslint-env browser */
8901
+
8902
+ /**
8903
+ * This is the web browser implementation of `debug()`.
8904
+ */
8905
+
8906
+ exports.formatArgs = formatArgs;
8907
+ exports.save = save;
8908
+ exports.load = load;
8909
+ exports.useColors = useColors;
8910
+ exports.storage = localstorage();
8911
+ exports.destroy = (() => {
8912
+ let warned = false;
8913
+
8914
+ return () => {
8915
+ if (!warned) {
8916
+ warned = true;
8917
+ console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
8918
+ }
8919
+ };
8920
+ })();
8921
+
8922
+ /**
8923
+ * Colors.
8924
+ */
8925
+
8926
+ exports.colors = [
8927
+ '#0000CC',
8928
+ '#0000FF',
8929
+ '#0033CC',
8930
+ '#0033FF',
8931
+ '#0066CC',
8932
+ '#0066FF',
8933
+ '#0099CC',
8934
+ '#0099FF',
8935
+ '#00CC00',
8936
+ '#00CC33',
8937
+ '#00CC66',
8938
+ '#00CC99',
8939
+ '#00CCCC',
8940
+ '#00CCFF',
8941
+ '#3300CC',
8942
+ '#3300FF',
8943
+ '#3333CC',
8944
+ '#3333FF',
8945
+ '#3366CC',
8946
+ '#3366FF',
8947
+ '#3399CC',
8948
+ '#3399FF',
8949
+ '#33CC00',
8950
+ '#33CC33',
8951
+ '#33CC66',
8952
+ '#33CC99',
8953
+ '#33CCCC',
8954
+ '#33CCFF',
8955
+ '#6600CC',
8956
+ '#6600FF',
8957
+ '#6633CC',
8958
+ '#6633FF',
8959
+ '#66CC00',
8960
+ '#66CC33',
8961
+ '#9900CC',
8962
+ '#9900FF',
8963
+ '#9933CC',
8964
+ '#9933FF',
8965
+ '#99CC00',
8966
+ '#99CC33',
8967
+ '#CC0000',
8968
+ '#CC0033',
8969
+ '#CC0066',
8970
+ '#CC0099',
8971
+ '#CC00CC',
8972
+ '#CC00FF',
8973
+ '#CC3300',
8974
+ '#CC3333',
8975
+ '#CC3366',
8976
+ '#CC3399',
8977
+ '#CC33CC',
8978
+ '#CC33FF',
8979
+ '#CC6600',
8980
+ '#CC6633',
8981
+ '#CC9900',
8982
+ '#CC9933',
8983
+ '#CCCC00',
8984
+ '#CCCC33',
8985
+ '#FF0000',
8986
+ '#FF0033',
8987
+ '#FF0066',
8988
+ '#FF0099',
8989
+ '#FF00CC',
8990
+ '#FF00FF',
8991
+ '#FF3300',
8992
+ '#FF3333',
8993
+ '#FF3366',
8994
+ '#FF3399',
8995
+ '#FF33CC',
8996
+ '#FF33FF',
8997
+ '#FF6600',
8998
+ '#FF6633',
8999
+ '#FF9900',
9000
+ '#FF9933',
9001
+ '#FFCC00',
9002
+ '#FFCC33'
9003
+ ];
9004
+
9005
+ /**
9006
+ * Currently only WebKit-based Web Inspectors, Firefox >= v31,
9007
+ * and the Firebug extension (any Firefox version) are known
9008
+ * to support "%c" CSS customizations.
9009
+ *
9010
+ * TODO: add a `localStorage` variable to explicitly enable/disable colors
9011
+ */
9012
+
9013
+ // eslint-disable-next-line complexity
9014
+ function useColors() {
9015
+ // NB: In an Electron preload script, document will be defined but not fully
9016
+ // initialized. Since we know we're in Chrome, we'll just detect this case
9017
+ // explicitly
9018
+ if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
9019
+ return true;
9020
+ }
9021
+
9022
+ // Internet Explorer and Edge do not support colors.
9023
+ if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
9024
+ return false;
9025
+ }
9026
+
9027
+ // Is webkit? http://stackoverflow.com/a/16459606/376773
9028
+ // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
9029
+ return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
9030
+ // Is firebug? http://stackoverflow.com/a/398120/376773
9031
+ (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
9032
+ // Is firefox >= v31?
9033
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
9034
+ (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
9035
+ // Double check webkit in userAgent just in case we are in a worker
9036
+ (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
9037
+ }
9038
+
9039
+ /**
9040
+ * Colorize log arguments if enabled.
9041
+ *
9042
+ * @api public
9043
+ */
9044
+
9045
+ function formatArgs(args) {
9046
+ args[0] = (this.useColors ? '%c' : '') +
9047
+ this.namespace +
9048
+ (this.useColors ? ' %c' : ' ') +
9049
+ args[0] +
9050
+ (this.useColors ? '%c ' : ' ') +
9051
+ '+' + module.exports.humanize(this.diff);
9052
+
9053
+ if (!this.useColors) {
9054
+ return;
9055
+ }
9056
+
9057
+ const c = 'color: ' + this.color;
9058
+ args.splice(1, 0, c, 'color: inherit');
9059
+
9060
+ // The final "%c" is somewhat tricky, because there could be other
9061
+ // arguments passed either before or after the %c, so we need to
9062
+ // figure out the correct index to insert the CSS into
9063
+ let index = 0;
9064
+ let lastC = 0;
9065
+ args[0].replace(/%[a-zA-Z%]/g, match => {
9066
+ if (match === '%%') {
9067
+ return;
9068
+ }
9069
+ index++;
9070
+ if (match === '%c') {
9071
+ // We only are interested in the *last* %c
9072
+ // (the user may have provided their own)
9073
+ lastC = index;
9074
+ }
9075
+ });
9076
+
9077
+ args.splice(lastC, 0, c);
9078
+ }
9079
+
9080
+ /**
9081
+ * Invokes `console.debug()` when available.
9082
+ * No-op when `console.debug` is not a "function".
9083
+ * If `console.debug` is not available, falls back
9084
+ * to `console.log`.
9085
+ *
9086
+ * @api public
9087
+ */
9088
+ exports.log = console.debug || console.log || (() => {});
9089
+
9090
+ /**
9091
+ * Save `namespaces`.
9092
+ *
9093
+ * @param {String} namespaces
9094
+ * @api private
9095
+ */
9096
+ function save(namespaces) {
9097
+ try {
9098
+ if (namespaces) {
9099
+ exports.storage.setItem('debug', namespaces);
9100
+ } else {
9101
+ exports.storage.removeItem('debug');
9102
+ }
9103
+ } catch (error) {
9104
+ // Swallow
9105
+ // XXX (@Qix-) should we be logging these?
9106
+ }
9107
+ }
9108
+
9109
+ /**
9110
+ * Load `namespaces`.
9111
+ *
9112
+ * @return {String} returns the previously persisted debug modes
9113
+ * @api private
9114
+ */
9115
+ function load() {
9116
+ let r;
9117
+ try {
9118
+ r = exports.storage.getItem('debug');
9119
+ } catch (error) {
9120
+ // Swallow
9121
+ // XXX (@Qix-) should we be logging these?
9122
+ }
9123
+
9124
+ // If debug isn't set in LS, and we're in Electron, try to load $DEBUG
9125
+ if (!r && typeof process !== 'undefined' && 'env' in process) {
9126
+ r = process.env.DEBUG;
9127
+ }
9128
+
9129
+ return r;
9130
+ }
9131
+
9132
+ /**
9133
+ * Localstorage attempts to return the localstorage.
9134
+ *
9135
+ * This is necessary because safari throws
9136
+ * when a user disables cookies/localstorage
9137
+ * and you attempt to access it.
9138
+ *
9139
+ * @return {LocalStorage}
9140
+ * @api private
9141
+ */
9142
+
9143
+ function localstorage() {
9144
+ try {
9145
+ // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
9146
+ // The Browser also has localStorage in the global context.
9147
+ return localStorage;
9148
+ } catch (error) {
9149
+ // Swallow
9150
+ // XXX (@Qix-) should we be logging these?
9151
+ }
9152
+ }
9153
+
9154
+ module.exports = common(exports);
9155
+
9156
+ const {formatters} = module.exports;
9157
+
9158
+ /**
9159
+ * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
9160
+ */
9161
+
9162
+ formatters.j = function (v) {
9163
+ try {
9164
+ return JSON.stringify(v);
9165
+ } catch (error) {
9166
+ return '[UnexpectedJSONParseError]: ' + error.message;
9167
+ }
9168
+ };
9169
+ });
9170
+
9171
+ function s$2(){return getRenderingRef()}function l$1(){var e=s$2();return getElement(e)}function d$2(e,t){void 0===t&&(t={});var n=l$1();return h(n,e,t)}var p$1=browser$1("stencil-hook");
9172
+
8203
9173
  var umd = createCommonjsModule(function (module, exports) {
8204
9174
  (function (global, factory) {
8205
9175
  factory(exports) ;
@@ -8759,6 +9729,6 @@ var umd = createCommonjsModule(function (module, exports) {
8759
9729
 
8760
9730
  });
8761
9731
 
8762
- var N={current:void 0};function _(){if(void 0===N.current)throw new Error("no implementation of useHost provided");return N.current()}function U(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");N.current=e;}function L(){lazilyStartLocaleContext();var t=_();return h(t,LOCALE_CONTEXT_NAME)}function H(){lazilyStartProgramContext();var e=_();return h(e,PROGRAM_CONTEXT_NAME)}function G(){var e;return null==(e=J())?void 0:e.jwt}function J(){lazilyStartUserContext();var e=_(),n=h(e,USER_CONTEXT_NAME),t=userIdentityFromJwt(null==n?void 0:n.jwt);if(isDemo()||!n||t)return n;setUserIdentity(void 0);}var Q=getTenantAlias,z=getAppDomain,B=getEngagementMedium;function K(){return (K=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}return e}).apply(this,arguments)}function Z(e,n){return (Z=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function X(e,n){return n||(n=e.slice(0)),e.raw=n,e}function Y(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ee(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return Y(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return "Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Y(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return (t=e[Symbol.iterator]()).next.bind(t)}var ne=function(){return (ne=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},te=new Map,re=new Map,ae=!0,oe=!1;function ie(e){return e.replace(/[\s,]+/g," ").trim()}function se(e){var n,t,r,a=ie(e);if(!te.has(a)){var o=parse(e,{experimentalFragmentVariables:oe});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");te.set(a,function(e){var n=new Set(e.definitions);n.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&n.add(r);});});var t=e.loc;return t&&(delete t.startToken,delete t.endToken),e}((n=o,t=new Set,r=[],n.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,a=ie((i=e.loc).source.body.substring(i.start,i.end)),o=re.get(n);o&&!o.has(a)?ae&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||re.set(n,o=new Set),o.add(a),t.has(a)||(t.add(a),r.push(e));}else r.push(e);var i;}),ne(ne({},n),{definitions:r}))));}return te.get(a)}function ue(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];"string"==typeof e&&(e=[e]);var r=e[0];return n.forEach(function(n,t){r+=n&&"Document"===n.kind?n.loc.source.body:n,r+=e[t+1];}),se(r)}var ce,de=ue;(ce=ue||(ue={})).gql=de,ce.resetCaches=function(){te.clear(),re.clear();},ce.disableFragmentWarnings=function(){ae=!1;},ce.enableExperimentalFragmentVariables=function(){oe=!0;},ce.disableExperimentalFragmentVariables=function(){oe=!1;},ue.default=ue;var le=ue;function fe(e,n){try{var t=e();}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}var me=function(e){var n,t;function r(n,t){var r;(r=e.call(this,n,t)||this).subject=new Subject;var a=new Subject;return r.subject.pipe(bufferTime(200,void 0,10)).subscribe(function(e){try{if(!e.length)return Promise.resolve();for(var n,t=pe(e),o=t.mergedQuery,i=t.mergedVariables,s=t.mergedQueryAddedEvents,u=ee(t.unmergedQueryAddedEvents);!(n=u()).done;)a.next(n.value);return s.length?Promise.resolve(fe(function(){return Promise.resolve(r.superRequest(o,i)).then(function(e){be(e,s);})},function(e){if(e instanceof types.ClientError){var n=function(){var n=e.response,t=n.data,r=n.errors;if(!t)return {v:Ie(s,e)};for(var a,o=Object.keys(t),i=[].concat(s),u=function(){var n=a.value,t=void 0;n.path.find(function(r,a,s){if(o.includes(r)){var u=he(r),c=i.findIndex(function(e){return e.id===u});if(-1===c)return !1;o.splice(a,1),t=i.splice(c,1)[0];var d=ye(e.response.data,t);s[a]=ge(s[a],u);var l=t.query,f=t.variables,m=K({},e.response,{errors:[n],data:d,path:s}),v=new types.ClientError(m,{query:"string"!=typeof l?print(l):l,variables:f});return we(t,v),!0}return !1});},c=ee(r);!(a=c()).done;)u();be(t,i);}();if("object"==typeof n)return n.v}else Ie(s,e);})):Promise.resolve()}catch(e){return Promise.reject(e)}}),a.subscribe(function(e){try{var n=fe(function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then(function(n){Ce(n,e);})},function(n){we(e,n);});return Promise.resolve(n&&n.then?n.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),r}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,Z(n,t);var a=r.prototype;return a.superRequest=function(n,t){return e.prototype.request.call(this,n,t)},a.request=function(e,n,t){var r=this;return new Promise(function(a,o){var i={query:e,variables:n,id:ve(),options:t,resolve:a,reject:o};r.subject.next(i);})},r}(dist$1.GraphQLClient),ve=function(){return nanoid().replace(/[-_]/g,"")},ge=function(e,n){return e.replace("_"+n,"")},he=function(e){var n=e.split("_");return n[n.length-1]},pe=function(e){var n=[],t=[],r=e.reduce(function(e,r){var a=r.query,o=r.variables,i=r.id,s=r.options;if(null==s||!s.batch)return t.push(r),e;try{var u="string"==typeof a?parse(a):a,c=u.definitions.find(function(e){return "FragmentDefinition"===e.kind}),d="string"==typeof a?a:print(a),l=/@/.test(d);if(c||l)return t.push(r),e;var f=function(e){return function(e,n){return e+"_"+n}(e,i)};return e=e.addN(u,[o],f,f),n.push(r),e}catch(n){return t.push(r),e}},M("BatchedQuery")),a=r.document,o=r.variables;return {mergedQuery:a&&print(a),mergedVariables:o,mergedQueryAddedEvents:n,unmergedQueryAddedEvents:t}},ye=function(e,n){if(!e)return e;var t=Object.keys(e),r=n.id;return t.reduce(function(n,t){var a;return t.endsWith(r)&&(n=K({},n,((a={})[ge(t,r)]=e[t],a))),n},{})},Ce=function(e,n){(0, n.resolve)(e);},be=function(e,n){for(var t,r=ee(n);!(t=r()).done;){var a=t.value,o=ye(e,a);a.resolve(o);}},we=function(e,n){(0, e.reject)(n);},Ie=function(e,n){for(var t,r=ee(e);!(t=r()).done;)(0, t.value.reject)(n);},Pe="sq:graphql-client",Ee=src(function(e,n,t){return new me(e+"/api/v1/"+n+"/graphql",{headers:{Authorization:"Bearer "+(t||"")}})});function Fe(e,n){switch(n.type){case"loading":return {data:void 0,errors:void 0,loading:!0};case"data":return {data:n.payload,errors:void 0,loading:!1};case"errors":return {data:void 0,errors:n.payload,loading:!1}}}function Me(e,n,t){void 0===t&&(t={batch:!0});var r,a,o,i,s,u,c=(r=G(),a=z(),o=Q(),i=Ee(a,o,r),s=_(),null!=(u=h(s,"sq:graphql-client",{attempts:0}))?u:i),d=useReducer(Fe,n),l=d[1];return [d[0],useCallback(function(n,r){void 0===r&&(r=!1);try{if(!c){var a=new Error("No GraphQL client found");return l({type:"errors",payload:a}),Promise.resolve(a)}return Promise.resolve(function(a,o){try{var i=(r||l({type:"loading"}),Promise.resolve(c.request(e,n,t)).then(function(e){return l({type:"data",payload:e}),e}));}catch(e){return o(e)}return i&&i.then?i.then(void 0,o):i}(0,function(e){return l({type:"errors",payload:e}),e}))}catch(e){return Promise.reject(e)}},[c,e,l])]}var De,Se={loading:!1,data:void 0,errors:void 0};function $e(e){var n=Me(e,Se);return [n[1],n[0]]}var ke,Ae=le(De||(De=X(["\n mutation AuthenticateWithEmailAndPassword(\n $email: String!\n $password: String!\n ) {\n authenticateManagedIdentityWithEmailAndPassword(\n authenticateManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function je(){var e=$e(Ae),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithEmailAndPassword){var n=e.authenticateManagedIdentityWithEmailAndPassword.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:e.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.authenticateManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var qe,Re=le(ke||(ke=X(["\n mutation RegisterWithEmailAndPassword(\n $email: String!\n $password: String!\n $formData: RSJsonNode\n $redirectPath: String\n ) {\n registerManagedIdentityWithEmailAndPassword(\n registerManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n formData: $formData\n redirectPath: $redirectPath\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ve(){var e=$e(Re),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.registerManagedIdentityWithEmailAndPassword){var n=e.registerManagedIdentityWithEmailAndPassword.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.registerManagedIdentityWithEmailAndPassword.email,emailVerified:e.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.registerManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var xe,We=le(qe||(qe=X(["\n mutation RegisterViaRegistrationForm($key: String!, $formData: RSJsonNode!) {\n submitForm(formSubmissionInput: { key: $key, formData: $formData }) {\n results {\n ... on FormHandlerSubmissionResult {\n result\n formHandler {\n namespace\n }\n }\n ... on FormHandlerError {\n errorCode\n error\n errorType\n formHandler {\n name\n endpointUrl\n }\n }\n }\n }\n }\n"])));function Oe(){var e=$e(We),n=e[0],t=e[1],r=t.loading,a=t.data,o=t.errors,i=useState(null),s=i[1];return [function(e){try{return s(null),Promise.resolve(n(e)).then(function(e){var n,t,r,a;if(e instanceof Error)return e;var o=null==(n=e.submitForm)||null==(t=n.results)?void 0:t.find(function(e){var n;return "identity"===(null==e||null==(n=e.formHandler)?void 0:n.namespace)});if(o&&null!=(r=o.result)&&null!=(a=r.results)&&a.length){var i=o.result.results[0];if(i.success){var c=i.data.token,d=o$1(c).user;setUserIdentity({jwt:c,id:d.id,accountId:d.accountId,managedIdentity:{email:i.data.email,emailVerified:i.data.emailVerified,sessionData:i.data.sessionData}});}else s(i.message);}return e})}catch(e){return Promise.reject(e)}},{loading:r,data:a,errors:o,formError:i[0]}]}var Ne,_e=le(xe||(xe=X(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function Ue(){var e=$e(_e),n=e[1];return [e[0],{loading:n.loading,data:n.data,errors:n.errors}]}var Le,He=le(Ne||(Ne=X(["\n mutation ResetPassword($oobCode: String!, $password: String!) {\n resetManagedIdentityPassword(\n resetManagedIdentityPasswordInput: {\n password: $password\n oobCode: $oobCode\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Te(){var e=$e(He),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.resetManagedIdentityPassword){var n=e.resetManagedIdentityPassword.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.resetManagedIdentityPassword.email,emailVerified:e.resetManagedIdentityPassword.emailVerified,sessionData:e.resetManagedIdentityPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Ge=le(Le||(Le=X(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Je(){return $e(Ge)}function Qe(){var e=_();return {refresh:useCallback(function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}));},[e])}}function ze(e){var n=e.skip,t=void 0!==n&&n,r=e.update,a=e.variables;useEffect(function(){var e=function(e){!t&&r(a,!0);};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}},function(e){var n=useRef(e),t=useRef(0);return equal(e,n.current)||(n.current=e,t.current+=1),useMemo(function(){return n.current},[t.current])}([a,r,t]));}var Be,Ke={loading:!1,data:void 0,errors:void 0},Ze=Symbol();function Xe(e){var n=Me(e,Ke),t=n[0],r=n[1],a=useRef(Ze);ze({skip:a.current===Ze,update:r,variables:a.current});var o=useCallback(function(e){return a.current=e,r(e)},[r]);return [r,K({},t,{refetch:o})]}var Ye,en=le(Be||(Be=X(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function nn(){var e=J(),n=Xe(en),t=n[0],r=n[1],a=r.refetch,o=function(n){n instanceof Error||!n.managedIdentitySession||setUserIdentity(K({},e,{managedIdentity:n.managedIdentitySession}));};return [function(){try{return Promise.resolve(t({})).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors,refetch:function(){try{return Promise.resolve(a()).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}}}]}var tn,rn=le(Ye||(Ye=X(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function an(){var e=nn()[0],n=$e(rn),t=n[0],r=n[1];return [function(n){try{return Promise.resolve(t(n)).then(function(n){var t=function(){if(!(n instanceof Error)&&n.verifyManagedIdentityEmail.success)return Promise.resolve(e()).then(function(){})}();return t&&t.then?t.then(function(){return n}):n})}catch(n){return Promise.reject(n)}},{loading:r.loading,data:r.data,errors:r.errors}]}var on,sn=le(tn||(tn=X(["\n mutation RequestPasswordResetEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityPasswordResetEmail(\n requestManagedIdentityPasswordResetEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function un(){return $e(sn)}var cn,dn=le(on||(on=X(["\n mutation RequestVerificationEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityVerificationEmail(\n requestManagedIdentityVerificationEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function ln(){return $e(dn)}var fn,mn=le(cn||(cn=X(["\n mutation authenticateManagedIdentityWithInstantAccess(\n $email: String!\n $firstName: String\n $lastName: String\n $locale: RSLocale\n $countryCode: RSCountryCode\n $cookies: String\n ) {\n authenticateManagedIdentityWithInstantAccess(\n authenticateManagedIdentityWithInstantAccessInput: {\n email: $email\n firstName: $firstName\n lastName: $lastName\n locale: $locale\n countryCode: $countryCode\n cookies: $cookies\n }\n ) {\n email\n emailVerified\n sessionData\n token\n }\n }\n"])));function vn(){var e=H(),n=getEnvironment(),t=$e(mn),r=t[0],a=t[1];return [function(t){try{return Promise.resolve(r(t)).then(function(t){var r=function(){if(!(t instanceof Error)&&t.authenticateManagedIdentityWithInstantAccess)return Promise.resolve(function(e,n){try{return Promise.resolve(function(t,r){try{var a=Promise.resolve(fetch(getAppDomain()+"/api/v1/"+getTenantAlias()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+n},body:JSON.stringify({query:"\n query checkReferralFraudStatus($programId: ID) {\n viewer {\n ... on User {\n id\n instantAccessRewards(filter: { programId_eq: $programId }) {\n data {\n id\n pendingReasons\n cancelledReason\n }\n }\n }\n }\n }\n",variables:{programId:e}})})).then(function(e){if(!e.ok)throw new Error("Failed to fetch locale");return Promise.resolve(e.json()).then(function(e){var n;if(e.errors)throw new Error(JSON.stringify(e.errors,null,2));var t=(null==(n=e.data.viewer.instantAccessRewards)?void 0:n.data)||[];return t.some(function(e){return "SUSPECTED_FRAUD"===e.cancelledReason})?"DENIED":t.some(function(e){var n;return null==(n=e.pendingReasons)?void 0:n.includes("SUSPECTED_FRAUD")})?"PENDING_REVIEW":"APPROVED"})});}catch(e){return r(e)}return a&&a.then?a.then(void 0,r):a}(0,function(e){console.error(e);}))}catch(e){return Promise.reject(e)}}(e,t.authenticateManagedIdentityWithInstantAccess.token)).then(function(e){if("APPROVED"!==e)throw {name:"fraud_error",message:"Referral flagged as fraud."};var r=t.authenticateManagedIdentityWithInstantAccess.email;if(setUserIdentity({jwt:t.authenticateManagedIdentityWithInstantAccess.token,id:r,accountId:r}),"SquatchJS2"===n){var a=new CustomEvent("sq:user-registration",{bubbles:!0,detail:{userId:r,accountId:r}});document.dispatchEvent(a);}})}();return r&&r.then?r.then(function(e){return t}):t})}catch(e){return Promise.reject(e)}},{loading:a.loading,data:a.data,errors:a.errors}]}var gn=dist$1.gql(fn||(fn=X(["\n mutation authenticateManagedIdentityWithGoogle($idToken: String!) {\n authenticateManagedIdentityWithGoogle(\n authenticateManagedIdentityWithGoogleInput: { idToken: $idToken }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function hn(){var e=$e(gn),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithGoogle){var n=e.authenticateManagedIdentityWithGoogle.token,t=o$1(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithGoogle.email,emailVerified:e.authenticateManagedIdentityWithGoogle.emailVerified,sessionData:e.authenticateManagedIdentityWithGoogle.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}function pn(e,n){var t=useRef();return t.current&&equal(n,t.current.key)||(t.current={key:n,value:e()}),t.current.value}function yn(){return useReducer(function(e){return e+1},0)}function Cn(e){for(var n,t=ee(Object.getOwnPropertyNames(e));!(n=t()).done;){var r=e[n.value];r&&"object"==typeof r&&Cn(r);}return Object.freeze(e)}var bn={loading:!0,data:void 0,errors:void 0};function wn(e,n,t,r){var a=Me(e,bn,K({batch:!0},r||{})),o=a[0],i=a[1],s=yn(),u=s[1];return pn(function(){!t&&i(n);},[e,n,i,s[0],t]),ze({skip:t,update:i,variables:n}),Cn(K({},o,{refetch:u}))}function In(e){var n=_(),t=y(n,Mn(e.namespace),e.initialValue),r=t[0],a=t[1];return y(n,Dn(e.namespace),[r,a]),[r,a]}function Pn(e){var n=d(Dn(e)),t=d(Mn(e));return n?[t,n[1]]:[void 0,void 0]}function En(e){var n=d(Dn(e));if(n)return n[1]}function Fn(e){return d(Mn(e))}function Mn(e){return e+"-value"}function Dn(e){return e+"-state"}function Sn(e){var n=_(),t=wn(e.query,e.variables||{},e.skip,K({batch:!0},e.options||{})),r=y(n,Mn(e.namespace),t),a=r[0],o=r[1];return useEffect(function(){umd.deepEqual(t,a)||o(t);},[t,a]),t}function $n(e){return d(Mn(e))||{data:null,loading:!0,refetch:function(){return console.warn("component still loading")}}}function kn(){var e=yn()[1];return useEffect(function(){return history_default.listen(function(){e();})},[]),history_default.location}var An,jn=history_default;function qn(e){var n=useState({limit:e.limit,offset:e.offset}),t=n[0],r=n[1],a=t.offset,o=t.limit,i=function(e,n){return e*n},s=function(e,n){return Math.ceil(e/n)||0};return {limit:o,setLimit:function(e){var n=s(a,e),o=i(e,n);r(K({},t,{limit:e,offset:o}));},offset:a,setCurrentPage:function(e){var n=i(e,o);r(function(e){return K({},e,{offset:n})});},calculatePagination:function(e,n){var t=s(a,o),r=function(e,n){return Math.ceil(e/n)||0}(n,o),i=0===e?"0":e>1?a+1+"-"+(a+e):""+(a+1);return {currentPage:t,pageCount:r,rangeOnPage:i,pageProgress:i+" of "+n}}}}function Rn(e,n,t,r,a){var o;void 0===r&&(r={}),void 0===a&&(a=!1);var i=qn(t),s=i.limit,u=i.setLimit,c=i.setCurrentPage,d=i.calculatePagination,l=wn(e,K({limit:s,offset:i.offset},r),a),f=l.loading,m=l.errors,v=l.refetch,g=n(l.data),h=d((null==g||null==(o=g.data)?void 0:o.length)||0,(null==g?void 0:g.totalCount)||0);return {envelope:g,states:{errors:m,loading:f,limit:s,currentPage:h.currentPage,pageCount:h.pageCount,pageProgress:h.pageProgress},callbacks:{refetch:v,setLimit:u,setCurrentPage:c}}}var On=dist$1.gql(An||(An=X(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var _n=1e3,Un=60*_n,Ln=60*Un,Hn=24*Ln,Tn=function(e,n){n=n||{};var t=typeof e;if("string"===t&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(n){var t=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"weeks":case"week":case"w":return 6048e5*t;case"days":case"day":case"d":return t*Hn;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Ln;case"minutes":case"minute":case"mins":case"min":case"m":return t*Un;case"seconds":case"second":case"secs":case"sec":case"s":return t*_n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}(e);if("number"===t&&isFinite(e))return n.long?function(e){var n=Math.abs(e);return n>=Hn?Gn(e,n,Hn,"day"):n>=Ln?Gn(e,n,Ln,"hour"):n>=Un?Gn(e,n,Un,"minute"):n>=_n?Gn(e,n,_n,"second"):e+" ms"}(e):function(e){var n=Math.abs(e);return n>=Hn?Math.round(e/Hn)+"d":n>=Ln?Math.round(e/Ln)+"h":n>=Un?Math.round(e/Un)+"m":n>=_n?Math.round(e/_n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Gn(e,n,t,r){var a=n>=1.5*t;return Math.round(e/t)+" "+r+(a?"s":"")}var Jn,Qn,zn,Bn,Kn,Zn=(function(e,n){n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let r=0,a=0;n[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r));}),n.splice(a,0,t);},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug");}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug");}catch(e){}return !e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},n.useColors=function(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=function(e){function n(e){let r,a=null;function o(...e){if(!o.enabled)return;const t=o,a=Number(new Date);t.diff=a-(r||a),t.prev=r,t.curr=a,r=a,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,a)=>{if("%%"===r)return "%";i++;const o=n.formatters[a];return "function"==typeof o&&(r=o.call(t,e[i]),e.splice(i,1),i--),r}),n.formatArgs.call(t,e),(t.log||n.log).apply(t,e);}return o.namespace=e,o.useColors=n.useColors(),o.color=n.selectColor(e),o.extend=t,o.destroy=n.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?n.enabled(e):a,set:e=>{a=e;}}),"function"==typeof n.init&&n.init(o),o}function t(e,t){const r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){return e instanceof Error?e.stack||e.message:e},n.disable=function(){const e=[...n.names.map(r),...n.skips.map(r).map(e=>"-"+e)].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.names=[],n.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(t=0;t<a;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")));},n.enabled=function(e){if("*"===e[e.length-1])return !0;let t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return !1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return !0;return !1},n.humanize=Tn,n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");},Object.keys(e).forEach(t=>{n[t]=e[t];}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}(n);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(Jn={exports:{}},Jn.exports),Jn.exports),Xn=Zn("sq:load-event"),Yn=dist$1.gql(Qn||(Qn=X(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var nt=Zn("sq:useForm"),tt=dist$1.gql(zn||(zn=X(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),rt=dist$1.gql(Bn||(Bn=X(["\n mutation ($formSubmissionInput: FormSubmissionInput!) {\n submitForm(formSubmissionInput: $formSubmissionInput) {\n success\n results {\n ... on FormHandlerSubmissionResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"]))),at=dist$1.gql(Kn||(Kn=X(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])));
9732
+ var N={current:void 0};function _(){if(void 0===N.current)throw new Error("no implementation of useHost provided");return N.current()}function U(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");N.current=e;}function L(){lazilyStartLocaleContext();var t=_();return h(t,LOCALE_CONTEXT_NAME)}function H(){lazilyStartProgramContext();var e=_();return h(e,PROGRAM_CONTEXT_NAME)}function G(){var e;return null==(e=J())?void 0:e.jwt}function J(){lazilyStartUserContext();var e=_(),n=h(e,USER_CONTEXT_NAME),t=userIdentityFromJwt(null==n?void 0:n.jwt);if(isDemo()||!n||t)return n;setUserIdentity(void 0);}var Q=getTenantAlias,z=getAppDomain,B=getEngagementMedium;function K(){return (K=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);}return e}).apply(this,arguments)}function Z(e,n){return (Z=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function X(e,n){return n||(n=e.slice(0)),e.raw=n,e}function Y(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function ee(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return Y(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return "Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Y(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return (t=e[Symbol.iterator]()).next.bind(t)}var ne=function(){return (ne=Object.assign||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var a in n=arguments[t])Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a]);return e}).apply(this,arguments)},te=new Map,re=new Map,ae=!0,oe=!1;function ie(e){return e.replace(/[\s,]+/g," ").trim()}function se(e){var n,t,r,a=ie(e);if(!te.has(a)){var o=parse(e,{experimentalFragmentVariables:oe});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");te.set(a,function(e){var n=new Set(e.definitions);n.forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var r=e[t];r&&"object"==typeof r&&n.add(r);});});var t=e.loc;return t&&(delete t.startToken,delete t.endToken),e}((n=o,t=new Set,r=[],n.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,a=ie((i=e.loc).source.body.substring(i.start,i.end)),o=re.get(n);o&&!o.has(a)?ae&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||re.set(n,o=new Set),o.add(a),t.has(a)||(t.add(a),r.push(e));}else r.push(e);var i;}),ne(ne({},n),{definitions:r}))));}return te.get(a)}function ue(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];"string"==typeof e&&(e=[e]);var r=e[0];return n.forEach(function(n,t){r+=n&&"Document"===n.kind?n.loc.source.body:n,r+=e[t+1];}),se(r)}var ce,de=ue;(ce=ue||(ue={})).gql=de,ce.resetCaches=function(){te.clear(),re.clear();},ce.disableFragmentWarnings=function(){ae=!1;},ce.enableExperimentalFragmentVariables=function(){oe=!0;},ce.disableExperimentalFragmentVariables=function(){oe=!1;},ue.default=ue;var le=ue;function fe(e,n){try{var t=e();}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}var me=function(e){var n,t;function r(n,t){var r;(r=e.call(this,n,t)||this).subject=new Subject;var a=new Subject;return r.subject.pipe(bufferTime(200,void 0,10)).subscribe(function(e){try{if(!e.length)return Promise.resolve();for(var n,t=pe(e),o=t.mergedQuery,i=t.mergedVariables,s=t.mergedQueryAddedEvents,u=ee(t.unmergedQueryAddedEvents);!(n=u()).done;)a.next(n.value);return s.length?Promise.resolve(fe(function(){return Promise.resolve(r.superRequest(o,i)).then(function(e){be(e,s);})},function(e){if(e instanceof types.ClientError){var n=function(){var n=e.response,t=n.data,r=n.errors;if(!t)return {v:Ie(s,e)};for(var a,o=Object.keys(t),i=[].concat(s),u=function(){var n=a.value,t=void 0;n.path.find(function(r,a,s){if(o.includes(r)){var u=he(r),c=i.findIndex(function(e){return e.id===u});if(-1===c)return !1;o.splice(a,1),t=i.splice(c,1)[0];var d=ye(e.response.data,t);s[a]=ge(s[a],u);var l=t.query,f=t.variables,m=K({},e.response,{errors:[n],data:d,path:s}),v=new types.ClientError(m,{query:"string"!=typeof l?print(l):l,variables:f});return we(t,v),!0}return !1});},c=ee(r);!(a=c()).done;)u();be(t,i);}();if("object"==typeof n)return n.v}else Ie(s,e);})):Promise.resolve()}catch(e){return Promise.reject(e)}}),a.subscribe(function(e){try{var n=fe(function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then(function(n){Ce(n,e);})},function(n){we(e,n);});return Promise.resolve(n&&n.then?n.then(function(){}):void 0)}catch(e){return Promise.reject(e)}}),r}t=e,(n=r).prototype=Object.create(t.prototype),n.prototype.constructor=n,Z(n,t);var a=r.prototype;return a.superRequest=function(n,t){return e.prototype.request.call(this,n,t)},a.request=function(e,n,t){var r=this;return new Promise(function(a,o){var i={query:e,variables:n,id:ve(),options:t,resolve:a,reject:o};r.subject.next(i);})},r}(dist$1.GraphQLClient),ve=function(){return nanoid().replace(/[-_]/g,"")},ge=function(e,n){return e.replace("_"+n,"")},he=function(e){var n=e.split("_");return n[n.length-1]},pe=function(e){var n=[],t=[],r=e.reduce(function(e,r){var a=r.query,o=r.variables,i=r.id,s=r.options;if(null==s||!s.batch)return t.push(r),e;try{var u="string"==typeof a?parse(a):a,c=u.definitions.find(function(e){return "FragmentDefinition"===e.kind}),d="string"==typeof a?a:print(a),l=/@/.test(d);if(c||l)return t.push(r),e;var f=function(e){return function(e,n){return e+"_"+n}(e,i)};return e=e.addN(u,[o],f,f),n.push(r),e}catch(n){return t.push(r),e}},M("BatchedQuery")),a=r.document,o=r.variables;return {mergedQuery:a&&print(a),mergedVariables:o,mergedQueryAddedEvents:n,unmergedQueryAddedEvents:t}},ye=function(e,n){if(!e)return e;var t=Object.keys(e),r=n.id;return t.reduce(function(n,t){var a;return t.endsWith(r)&&(n=K({},n,((a={})[ge(t,r)]=e[t],a))),n},{})},Ce=function(e,n){(0, n.resolve)(e);},be=function(e,n){for(var t,r=ee(n);!(t=r()).done;){var a=t.value,o=ye(e,a);a.resolve(o);}},we=function(e,n){(0, e.reject)(n);},Ie=function(e,n){for(var t,r=ee(e);!(t=r()).done;)(0, t.value.reject)(n);},Pe="sq:graphql-client",Ee=src(function(e,n,t){return new me(e+"/api/v1/"+n+"/graphql",{headers:{Authorization:"Bearer "+(t||"")}})});function Fe(e,n){switch(n.type){case"loading":return {data:void 0,errors:void 0,loading:!0};case"data":return {data:n.payload,errors:void 0,loading:!1};case"errors":return {data:void 0,errors:n.payload,loading:!1}}}function Me(e,n,t){void 0===t&&(t={batch:!0});var r,a,o,i,s,u,c=(r=G(),a=z(),o=Q(),i=Ee(a,o,r),s=_(),null!=(u=h(s,"sq:graphql-client",{attempts:0}))?u:i),d=useReducer$1(Fe,n),l=d[1];return [d[0],useCallback(function(n,r){void 0===r&&(r=!1);try{if(!c){var a=new Error("No GraphQL client found");return l({type:"errors",payload:a}),Promise.resolve(a)}return Promise.resolve(function(a,o){try{var i=(r||l({type:"loading"}),Promise.resolve(c.request(e,n,t)).then(function(e){return l({type:"data",payload:e}),e}));}catch(e){return o(e)}return i&&i.then?i.then(void 0,o):i}(0,function(e){return l({type:"errors",payload:e}),e}))}catch(e){return Promise.reject(e)}},[c,e,l])]}var De,Se={loading:!1,data:void 0,errors:void 0};function $e(e){var n=Me(e,Se);return [n[1],n[0]]}var ke,Ae=le(De||(De=X(["\n mutation AuthenticateWithEmailAndPassword(\n $email: String!\n $password: String!\n ) {\n authenticateManagedIdentityWithEmailAndPassword(\n authenticateManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function je(){var e=$e(Ae),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithEmailAndPassword){var n=e.authenticateManagedIdentityWithEmailAndPassword.token,t=o(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:e.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.authenticateManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var qe,Re=le(ke||(ke=X(["\n mutation RegisterWithEmailAndPassword(\n $email: String!\n $password: String!\n $formData: RSJsonNode\n $redirectPath: String\n ) {\n registerManagedIdentityWithEmailAndPassword(\n registerManagedIdentityWithEmailAndPasswordInput: {\n email: $email\n password: $password\n formData: $formData\n redirectPath: $redirectPath\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Ve(){var e=$e(Re),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.registerManagedIdentityWithEmailAndPassword){var n=e.registerManagedIdentityWithEmailAndPassword.token,t=o(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.registerManagedIdentityWithEmailAndPassword.email,emailVerified:e.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.registerManagedIdentityWithEmailAndPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var xe,We=le(qe||(qe=X(["\n mutation RegisterViaRegistrationForm($key: String!, $formData: RSJsonNode!) {\n submitForm(formSubmissionInput: { key: $key, formData: $formData }) {\n results {\n ... on FormHandlerSubmissionResult {\n result\n formHandler {\n namespace\n }\n }\n ... on FormHandlerError {\n errorCode\n error\n errorType\n formHandler {\n name\n endpointUrl\n }\n }\n }\n }\n }\n"])));function Oe(){var e=$e(We),n=e[0],t=e[1],r=t.loading,a=t.data,o$1=t.errors,i=useState$1(null),s=i[1];return [function(e){try{return s(null),Promise.resolve(n(e)).then(function(e){var n,t,r,a;if(e instanceof Error)return e;var o$1=null==(n=e.submitForm)||null==(t=n.results)?void 0:t.find(function(e){var n;return "identity"===(null==e||null==(n=e.formHandler)?void 0:n.namespace)});if(o$1&&null!=(r=o$1.result)&&null!=(a=r.results)&&a.length){var i=o$1.result.results[0];if(i.success){var c=i.data.token,d=o(c).user;setUserIdentity({jwt:c,id:d.id,accountId:d.accountId,managedIdentity:{email:i.data.email,emailVerified:i.data.emailVerified,sessionData:i.data.sessionData}});}else s(i.message);}return e})}catch(e){return Promise.reject(e)}},{loading:r,data:a,errors:o$1,formError:i[0]}]}var Ne,_e=le(xe||(xe=X(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function Ue(){var e=$e(_e),n=e[1];return [e[0],{loading:n.loading,data:n.data,errors:n.errors}]}var Le,He=le(Ne||(Ne=X(["\n mutation ResetPassword($oobCode: String!, $password: String!) {\n resetManagedIdentityPassword(\n resetManagedIdentityPasswordInput: {\n password: $password\n oobCode: $oobCode\n }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function Te(){var e=$e(He),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.resetManagedIdentityPassword){var n=e.resetManagedIdentityPassword.token,t=o(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.resetManagedIdentityPassword.email,emailVerified:e.resetManagedIdentityPassword.emailVerified,sessionData:e.resetManagedIdentityPassword.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}var Ge=le(Le||(Le=X(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Je(){return $e(Ge)}function Qe(){var e=_();return {refresh:useCallback(function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}));},[e])}}function ze(e){var n=e.skip,t=void 0!==n&&n,r=e.update,a=e.variables;useEffect$1(function(){var e=function(e){!t&&r(a,!0);};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}},function(e){var n=useRef(e),t=useRef(0);return equal(e,n.current)||(n.current=e,t.current+=1),useMemo$1(function(){return n.current},[t.current])}([a,r,t]));}var Be,Ke={loading:!1,data:void 0,errors:void 0},Ze=Symbol();function Xe(e){var n=Me(e,Ke),t=n[0],r=n[1],a=useRef(Ze);ze({skip:a.current===Ze,update:r,variables:a.current});var o=useCallback(function(e){return a.current=e,r(e)},[r]);return [r,K({},t,{refetch:o})]}var Ye,en=le(Be||(Be=X(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function nn(){var e=J(),n=Xe(en),t=n[0],r=n[1],a=r.refetch,o=function(n){n instanceof Error||!n.managedIdentitySession||setUserIdentity(K({},e,{managedIdentity:n.managedIdentitySession}));};return [function(){try{return Promise.resolve(t({})).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors,refetch:function(){try{return Promise.resolve(a()).then(function(e){return o(e),e})}catch(e){return Promise.reject(e)}}}]}var tn,rn=le(Ye||(Ye=X(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function an(){var e=nn()[0],n=$e(rn),t=n[0],r=n[1];return [function(n){try{return Promise.resolve(t(n)).then(function(n){var t=function(){if(!(n instanceof Error)&&n.verifyManagedIdentityEmail.success)return Promise.resolve(e()).then(function(){})}();return t&&t.then?t.then(function(){return n}):n})}catch(n){return Promise.reject(n)}},{loading:r.loading,data:r.data,errors:r.errors}]}var on,sn=le(tn||(tn=X(["\n mutation RequestPasswordResetEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityPasswordResetEmail(\n requestManagedIdentityPasswordResetEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function un(){return $e(sn)}var cn,dn=le(on||(on=X(["\n mutation RequestVerificationEmail(\n $email: String!\n $urlParams: RSJsonNode\n $redirectPath: String\n ) {\n requestManagedIdentityVerificationEmail(\n requestManagedIdentityVerificationEmailInput: {\n email: $email\n urlParams: $urlParams\n redirectPath: $redirectPath\n }\n ) {\n success\n }\n }\n"])));function ln(){return $e(dn)}var fn,mn=le(cn||(cn=X(["\n mutation authenticateManagedIdentityWithInstantAccess(\n $email: String!\n $firstName: String\n $lastName: String\n $locale: RSLocale\n $countryCode: RSCountryCode\n $cookies: String\n ) {\n authenticateManagedIdentityWithInstantAccess(\n authenticateManagedIdentityWithInstantAccessInput: {\n email: $email\n firstName: $firstName\n lastName: $lastName\n locale: $locale\n countryCode: $countryCode\n cookies: $cookies\n }\n ) {\n email\n emailVerified\n sessionData\n token\n }\n }\n"])));function vn(){var e=H(),n=getEnvironment(),t=$e(mn),r=t[0],a=t[1];return [function(t){try{return Promise.resolve(r(t)).then(function(t){var r=function(){if(!(t instanceof Error)&&t.authenticateManagedIdentityWithInstantAccess)return Promise.resolve(function(e,n){try{return Promise.resolve(function(t,r){try{var a=Promise.resolve(fetch(getAppDomain()+"/api/v1/"+getTenantAlias()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+n},body:JSON.stringify({query:"\n query checkReferralFraudStatus($programId: ID) {\n viewer {\n ... on User {\n id\n instantAccessRewards(filter: { programId_eq: $programId }) {\n data {\n id\n pendingReasons\n cancelledReason\n }\n }\n }\n }\n }\n",variables:{programId:e}})})).then(function(e){if(!e.ok)throw new Error("Failed to fetch locale");return Promise.resolve(e.json()).then(function(e){var n;if(e.errors)throw new Error(JSON.stringify(e.errors,null,2));var t=(null==(n=e.data.viewer.instantAccessRewards)?void 0:n.data)||[];return t.some(function(e){return "SUSPECTED_FRAUD"===e.cancelledReason})?"DENIED":t.some(function(e){var n;return null==(n=e.pendingReasons)?void 0:n.includes("SUSPECTED_FRAUD")})?"PENDING_REVIEW":"APPROVED"})});}catch(e){return r(e)}return a&&a.then?a.then(void 0,r):a}(0,function(e){console.error(e);}))}catch(e){return Promise.reject(e)}}(e,t.authenticateManagedIdentityWithInstantAccess.token)).then(function(e){if("APPROVED"!==e)throw {name:"fraud_error",message:"Referral flagged as fraud."};var r=t.authenticateManagedIdentityWithInstantAccess.email;if(setUserIdentity({jwt:t.authenticateManagedIdentityWithInstantAccess.token,id:r,accountId:r}),"SquatchJS2"===n){var a=new CustomEvent("sq:user-registration",{bubbles:!0,detail:{userId:r,accountId:r}});document.dispatchEvent(a);}})}();return r&&r.then?r.then(function(e){return t}):t})}catch(e){return Promise.reject(e)}},{loading:a.loading,data:a.data,errors:a.errors}]}var gn=dist$1.gql(fn||(fn=X(["\n mutation authenticateManagedIdentityWithGoogle($idToken: String!) {\n authenticateManagedIdentityWithGoogle(\n authenticateManagedIdentityWithGoogleInput: { idToken: $idToken }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function hn(){var e=$e(gn),n=e[0],t=e[1];return [function(e){try{return Promise.resolve(n(e)).then(function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithGoogle){var n=e.authenticateManagedIdentityWithGoogle.token,t=o(n).user;setUserIdentity({jwt:n,id:t.id,accountId:t.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithGoogle.email,emailVerified:e.authenticateManagedIdentityWithGoogle.emailVerified,sessionData:e.authenticateManagedIdentityWithGoogle.sessionData}});}return e})}catch(e){return Promise.reject(e)}},{loading:t.loading,data:t.data,errors:t.errors}]}function pn(e,n){var t=useRef();return t.current&&equal(n,t.current.key)||(t.current={key:n,value:e()}),t.current.value}function yn(){return useReducer$1(function(e){return e+1},0)}function Cn(e){for(var n,t=ee(Object.getOwnPropertyNames(e));!(n=t()).done;){var r=e[n.value];r&&"object"==typeof r&&Cn(r);}return Object.freeze(e)}var bn={loading:!0,data:void 0,errors:void 0};function wn(e,n,t,r){var a=Me(e,bn,K({batch:!0},r||{})),o=a[0],i=a[1],s=yn(),u=s[1];return pn(function(){!t&&i(n);},[e,n,i,s[0],t]),ze({skip:t,update:i,variables:n}),Cn(K({},o,{refetch:u}))}function In(e){var n=_(),t=y(n,Mn(e.namespace),e.initialValue),r=t[0],a=t[1];return y(n,Dn(e.namespace),[r,a]),[r,a]}function Pn(e){var n=d$2(Dn(e)),t=d$2(Mn(e));return n?[t,n[1]]:[void 0,void 0]}function En(e){var n=d$2(Dn(e));if(n)return n[1]}function Fn(e){return d$2(Mn(e))}function Mn(e){return e+"-value"}function Dn(e){return e+"-state"}function Sn(e){var n=_(),t=wn(e.query,e.variables||{},e.skip,K({batch:!0},e.options||{})),r=y(n,Mn(e.namespace),t),a=r[0],o=r[1];return useEffect$1(function(){umd.deepEqual(t,a)||o(t);},[t,a]),t}function $n(e){return d$2(Mn(e))||{data:null,loading:!0,refetch:function(){return console.warn("component still loading")}}}function kn(){var e=yn()[1];return useEffect$1(function(){return history_default.listen(function(){e();})},[]),history_default.location}var An,jn=history_default;function qn(e){var n=useState$1({limit:e.limit,offset:e.offset}),t=n[0],r=n[1],a=t.offset,o=t.limit,i=function(e,n){return e*n},s=function(e,n){return Math.ceil(e/n)||0};return {limit:o,setLimit:function(e){var n=s(a,e),o=i(e,n);r(K({},t,{limit:e,offset:o}));},offset:a,setCurrentPage:function(e){var n=i(e,o);r(function(e){return K({},e,{offset:n})});},calculatePagination:function(e,n){var t=s(a,o),r=function(e,n){return Math.ceil(e/n)||0}(n,o),i=0===e?"0":e>1?a+1+"-"+(a+e):""+(a+1);return {currentPage:t,pageCount:r,rangeOnPage:i,pageProgress:i+" of "+n}}}}function Rn(e,n,t,r,a){var o;void 0===r&&(r={}),void 0===a&&(a=!1);var i=qn(t),s=i.limit,u=i.setLimit,c=i.setCurrentPage,d=i.calculatePagination,l=wn(e,K({limit:s,offset:i.offset},r),a),f=l.loading,m=l.errors,v=l.refetch,g=n(l.data),h=d((null==g||null==(o=g.data)?void 0:o.length)||0,(null==g?void 0:g.totalCount)||0);return {envelope:g,states:{errors:m,loading:f,limit:s,currentPage:h.currentPage,pageCount:h.pageCount,pageProgress:h.pageProgress},callbacks:{refetch:v,setLimit:u,setCurrentPage:c}}}var On=dist$1.gql(An||(An=X(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var _n=1e3,Un=60*_n,Ln=60*Un,Hn=24*Ln,Tn=function(e,n){n=n||{};var t=typeof e;if("string"===t&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var n=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(n){var t=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*t;case"weeks":case"week":case"w":return 6048e5*t;case"days":case"day":case"d":return t*Hn;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Ln;case"minutes":case"minute":case"mins":case"min":case"m":return t*Un;case"seconds":case"second":case"secs":case"sec":case"s":return t*_n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}(e);if("number"===t&&isFinite(e))return n.long?function(e){var n=Math.abs(e);return n>=Hn?Gn(e,n,Hn,"day"):n>=Ln?Gn(e,n,Ln,"hour"):n>=Un?Gn(e,n,Un,"minute"):n>=_n?Gn(e,n,_n,"second"):e+" ms"}(e):function(e){var n=Math.abs(e);return n>=Hn?Math.round(e/Hn)+"d":n>=Ln?Math.round(e/Ln)+"h":n>=Un?Math.round(e/Un)+"m":n>=_n?Math.round(e/_n)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function Gn(e,n,t,r){var a=n>=1.5*t;return Math.round(e/t)+" "+r+(a?"s":"")}var Jn,Qn,zn,Bn,Kn,Zn=(function(e,n){n.formatArgs=function(n){if(n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const t="color: "+this.color;n.splice(1,0,t,"color: inherit");let r=0,a=0;n[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(a=r));}),n.splice(a,0,t);},n.save=function(e){try{e?n.storage.setItem("debug",e):n.storage.removeItem("debug");}catch(e){}},n.load=function(){let e;try{e=n.storage.getItem("debug");}catch(e){}return !e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},n.useColors=function(){return !("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},n.storage=function(){try{return localStorage}catch(e){}}(),n.destroy=(()=>{let e=!1;return ()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],n.log=console.debug||console.log||(()=>{}),e.exports=function(e){function n(e){let r,a=null;function o(...e){if(!o.enabled)return;const t=o,a=Number(new Date);t.diff=a-(r||a),t.prev=r,t.curr=a,r=a,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,a)=>{if("%%"===r)return "%";i++;const o=n.formatters[a];return "function"==typeof o&&(r=o.call(t,e[i]),e.splice(i,1),i--),r}),n.formatArgs.call(t,e),(t.log||n.log).apply(t,e);}return o.namespace=e,o.useColors=n.useColors(),o.color=n.selectColor(e),o.extend=t,o.destroy=n.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===a?n.enabled(e):a,set:e=>{a=e;}}),"function"==typeof n.init&&n.init(o),o}function t(e,t){const r=n(this.namespace+(void 0===t?":":t)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return n.debug=n,n.default=n,n.coerce=function(e){return e instanceof Error?e.stack||e.message:e},n.disable=function(){const e=[...n.names.map(r),...n.skips.map(r).map(e=>"-"+e)].join(",");return n.enable(""),e},n.enable=function(e){let t;n.save(e),n.names=[],n.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),a=r.length;for(t=0;t<a;t++)r[t]&&("-"===(e=r[t].replace(/\*/g,".*?"))[0]?n.skips.push(new RegExp("^"+e.substr(1)+"$")):n.names.push(new RegExp("^"+e+"$")));},n.enabled=function(e){if("*"===e[e.length-1])return !0;let t,r;for(t=0,r=n.skips.length;t<r;t++)if(n.skips[t].test(e))return !1;for(t=0,r=n.names.length;t<r;t++)if(n.names[t].test(e))return !0;return !1},n.humanize=Tn,n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");},Object.keys(e).forEach(t=>{n[t]=e[t];}),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let t=0;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return n.colors[Math.abs(t)%n.colors.length]},n.enable(n.load()),n}(n);const{formatters:t}=e.exports;t.j=function(e){try{return JSON.stringify(e)}catch(e){return "[UnexpectedJSONParseError]: "+e.message}};}(Jn={exports:{}},Jn.exports),Jn.exports),Xn=Zn("sq:load-event"),Yn=dist$1.gql(Qn||(Qn=X(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var nt=Zn("sq:useForm"),tt=dist$1.gql(zn||(zn=X(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),rt=dist$1.gql(Bn||(Bn=X(["\n mutation ($formSubmissionInput: FormSubmissionInput!) {\n submitForm(formSubmissionInput: $formSubmissionInput) {\n success\n results {\n ... on FormHandlerSubmissionResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"]))),at=dist$1.gql(Kn||(Kn=X(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])));
8763
9733
 
8764
- export { $e as $, B, Ee as E, Fn as F, G, H, In as I, J, L, Mn as M, Oe as O, Pe as P, Qe as Q, Rn as R, Sn as S, Te as T, U, Ve as V, Xe as X, _, Q as a, setUserIdentity as b, un as c, dist$1 as d, Je as e, an as f, getEnvironmentSDK as g, setProgramId as h, isDemo as i, jn as j, kn as k, ln as l, memoize$1 as m, nn as n, Ue as o, je as p, hn as q, Pn as r, src as s, $n as t, useCallback as u, vn as v, wn as w, En as x, yn as y };
9734
+ export { $e as $, B, Ee as E, Fn as F, G, H, In as I, J, L, Mn as M, Oe as O, Pe as P, Qe as Q, Rn as R, Sn as S, Te as T, U, Ve as V, Xe as X, _, Q as a, un as b, je as c, Je as d, an as e, setProgramId as f, getEnvironmentSDK as g, hn as h, isDemo as i, jn as j, kn as k, ln as l, Ue as m, nn as n, Pn as o, $n as p, En as q, setUserIdentity as s, useCallback as u, vn as v, wn as w, yn as y };