@saasquatch/mint-components 1.12.0-1 → 1.12.0-3

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 (373) hide show
  1. package/dist/cjs/{ShadowViewAddon-88821c64.js → ShadowViewAddon-13173901.js} +33 -32
  2. package/dist/cjs/{global-c3637175.js → global-e4ebdbcc.js} +161 -10
  3. package/dist/cjs/index-56d1fa5b.js +2227 -0
  4. package/dist/cjs/{index.module-b8d9d0ba.js → index.module-236d0403.js} +1392 -228
  5. package/dist/cjs/loader.cjs.js +4 -4
  6. package/dist/cjs/{luxon-05098e19.js → luxon-20eafbd9.js} +1 -1
  7. package/dist/cjs/mint-components.cjs.js +4 -4
  8. package/dist/cjs/{mockRewardData-4258e067.js → mockRewardData-3c470512.js} +1 -1
  9. package/dist/cjs/{re-render-5bde3d2e.js → re-render-5de6631a.js} +2 -2
  10. package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -3
  11. package/dist/cjs/sqm-banking-info-form_16.cjs.entry.js +409 -440
  12. package/dist/cjs/sqm-big-stat_39.cjs.entry.js +127 -73
  13. package/dist/cjs/sqm-close-button.cjs.entry.js +3 -3
  14. package/dist/cjs/sqm-code-verification.cjs.entry.js +38 -34
  15. package/dist/cjs/sqm-context-router.cjs.entry.js +3 -3
  16. package/dist/cjs/sqm-email-verification.cjs.entry.js +34 -10
  17. package/dist/cjs/sqm-empty_4.cjs.entry.js +6 -6
  18. package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
  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-ce9a34ac.js → sqm-invoice-table-view-dbba9bb4.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-a2135064.js → sqm-navigation-sidebar-item-view-fc865ecf.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-password-field.cjs.entry.js +4 -4
  29. package/dist/cjs/sqm-popup-container.cjs.entry.js +3 -3
  30. package/dist/cjs/{sqm-portal-email-verification-view-050dbe0f.js → sqm-portal-email-verification-view-4bc2760b.js} +1 -1
  31. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +5 -5
  32. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
  33. package/dist/cjs/sqm-portal-logout.cjs.entry.js +3 -3
  34. package/dist/cjs/{sqm-portal-profile-view-d97086bc.js → sqm-portal-profile-view-cbab7c80.js} +1 -1
  35. package/dist/cjs/sqm-portal-profile.cjs.entry.js +12 -11
  36. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +3 -3
  37. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +7 -6
  38. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +4 -4
  39. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +3 -3
  40. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +17 -16
  41. package/dist/cjs/sqm-referred-registration.cjs.entry.js +6 -6
  42. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -2
  43. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +4 -4
  44. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +62 -61
  45. package/dist/cjs/sqm-scroll.cjs.entry.js +2 -2
  46. package/dist/cjs/sqm-stencilbook.cjs.entry.js +46 -24
  47. package/dist/cjs/sqm-tab.cjs.entry.js +4 -4
  48. package/dist/cjs/sqm-tabs.cjs.entry.js +5 -5
  49. package/dist/cjs/sqm-text-span.cjs.entry.js +2 -2
  50. package/dist/cjs/sqm-widget-verification-internal.cjs.entry.js +3 -3
  51. package/dist/cjs/sqm-widget-verification.cjs.entry.js +3 -3
  52. package/dist/cjs/{stencil-hooks.module-72742a0b.js → stencil-hooks.module-a5a04d8a.js} +1 -4
  53. package/dist/cjs/{useChildElements-410d2435.js → useChildElements-23beb180.js} +2 -2
  54. package/dist/cjs/useEmailVerification-33465f36.js +155 -0
  55. package/dist/cjs/{useInstantAccessRegistration-ccf81eae.js → useInstantAccessRegistration-7c125c00.js} +3 -3
  56. package/dist/cjs/{useReferralTable-824ac152.js → useReferralTable-54d0ba70.js} +14 -13
  57. package/dist/cjs/{useRegistrationFormState-f9ce55be.js → useRegistrationFormState-e7e820d0.js} +2 -2
  58. package/dist/cjs/{utilities-f7de6c04.js → utilities-ac5b5f2c.js} +2 -2
  59. package/dist/collection/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.js +1 -2
  60. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll-view.js +1 -0
  61. package/dist/collection/components/sqm-payout-button-scroll/sqm-payout-button-scroll.js +16 -3
  62. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/WidgetCodeVerification.stories.js +2 -2
  63. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.js +19 -9
  64. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.js +6 -58
  65. package/dist/collection/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.js +10 -7
  66. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.js +23 -3
  67. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.js +17 -4
  68. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.js +59 -7
  69. package/dist/collection/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.js +88 -9
  70. package/dist/collection/components/sqm-widget-verification/sqm-widget-verification.js +2 -0
  71. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert-view.js +29 -8
  72. package/dist/collection/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.js +56 -8
  73. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.js +0 -16
  74. package/dist/collection/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.js +0 -79
  75. package/dist/esm/{ShadowViewAddon-65c8679e.js → ShadowViewAddon-72e231a5.js} +7 -6
  76. package/dist/esm/{global-6306a9b8.js → global-adae7650.js} +161 -10
  77. package/dist/esm/index-0c7b14c5.js +2225 -0
  78. package/dist/esm/{index.module-6c840c4e.js → index.module-c0eb7dc2.js} +1389 -222
  79. package/dist/esm/loader.js +4 -4
  80. package/dist/esm/{luxon-7600be8d.js → luxon-63e24900.js} +1 -1
  81. package/dist/esm/mint-components.js +4 -4
  82. package/dist/esm/{mockRewardData-0eb6e778.js → mockRewardData-e6b763d1.js} +1 -1
  83. package/dist/esm/{re-render-1bcfd0de.js → re-render-5882a144.js} +2 -2
  84. package/dist/esm/sqm-asset-card.entry.js +2 -2
  85. package/dist/esm/sqm-banking-info-form_16.entry.js +10 -41
  86. package/dist/esm/sqm-big-stat_39.entry.js +72 -18
  87. package/dist/esm/sqm-close-button.entry.js +2 -2
  88. package/dist/esm/sqm-code-verification.entry.js +36 -32
  89. package/dist/esm/sqm-context-router.entry.js +2 -2
  90. package/dist/esm/sqm-email-verification.entry.js +33 -9
  91. package/dist/esm/sqm-empty_4.entry.js +3 -3
  92. package/dist/esm/sqm-form-message.entry.js +1 -1
  93. package/dist/esm/sqm-graphql-client-provider.entry.js +2 -2
  94. package/dist/esm/sqm-header-logo.entry.js +1 -1
  95. package/dist/esm/sqm-instant-access-registration.entry.js +5 -5
  96. package/dist/esm/{sqm-invoice-table-view-08c03ba7.js → sqm-invoice-table-view-663674f2.js} +1 -1
  97. package/dist/esm/sqm-leaderboard-rank.entry.js +4 -3
  98. package/dist/esm/sqm-logout-current-user.entry.js +3 -2
  99. package/dist/esm/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-4715e546.js} +1 -1
  100. package/dist/esm/sqm-navigation-sidebar-item.entry.js +3 -3
  101. package/dist/esm/sqm-navigation-sidebar.entry.js +2 -2
  102. package/dist/esm/sqm-password-field.entry.js +3 -3
  103. package/dist/esm/sqm-popup-container.entry.js +2 -2
  104. package/dist/esm/{sqm-portal-email-verification-view-c6ac5430.js → sqm-portal-email-verification-view-598eb9a7.js} +1 -1
  105. package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
  106. package/dist/esm/sqm-portal-forgot-password.entry.js +3 -3
  107. package/dist/esm/sqm-portal-logout.entry.js +2 -2
  108. package/dist/esm/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-a0f6ad48.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.entry.js +5 -4
  112. package/dist/esm/sqm-portal-reset-password.entry.js +3 -3
  113. package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
  114. package/dist/esm/sqm-referral-table_11.entry.js +9 -8
  115. package/dist/esm/sqm-referred-registration.entry.js +5 -5
  116. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  117. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +3 -3
  118. package/dist/esm/sqm-rewards-table_9.entry.js +9 -8
  119. package/dist/esm/sqm-scroll.entry.js +1 -1
  120. package/dist/esm/sqm-stencilbook.entry.js +44 -22
  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/sqm-widget-verification-internal.entry.js +2 -2
  125. package/dist/esm/sqm-widget-verification.entry.js +2 -2
  126. package/dist/esm/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-3c7f7c90.js} +1 -1
  127. package/dist/esm/{useChildElements-fc84e640.js → useChildElements-fe94b660.js} +2 -2
  128. package/dist/esm/useEmailVerification-8f2dc2bd.js +152 -0
  129. package/dist/esm/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-670c1b98.js} +3 -3
  130. package/dist/esm/{useReferralTable-f6ffa103.js → useReferralTable-52008143.js} +5 -4
  131. package/dist/esm/{useRegistrationFormState-849e27f7.js → useRegistrationFormState-4cfd1a8d.js} +2 -2
  132. package/dist/esm/{utilities-443732be.js → utilities-98445452.js} +2 -2
  133. package/dist/esm-es5/ShadowViewAddon-72e231a5.js +1 -0
  134. package/dist/esm-es5/global-adae7650.js +285 -0
  135. package/dist/esm-es5/index-0c7b14c5.js +1 -0
  136. package/dist/esm-es5/index.module-c0eb7dc2.js +53 -0
  137. package/dist/esm-es5/loader.js +1 -1
  138. package/dist/esm-es5/{luxon-7600be8d.js → luxon-63e24900.js} +1 -1
  139. package/dist/esm-es5/mint-components.js +1 -1
  140. package/dist/esm-es5/{mockRewardData-0eb6e778.js → mockRewardData-e6b763d1.js} +1 -1
  141. package/dist/esm-es5/{re-render-1bcfd0de.js → re-render-5882a144.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_39.entry.js +1 -1
  145. package/dist/esm-es5/sqm-close-button.entry.js +1 -1
  146. package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
  147. package/dist/esm-es5/sqm-context-router.entry.js +1 -1
  148. package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
  149. package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
  150. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  151. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  152. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  153. package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
  154. package/dist/esm-es5/{sqm-invoice-table-view-08c03ba7.js → sqm-invoice-table-view-663674f2.js} +1 -1
  155. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  156. package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
  157. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-f8e78810.js → sqm-navigation-sidebar-item-view-4715e546.js} +1 -1
  158. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  159. package/dist/esm-es5/sqm-navigation-sidebar.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-c6ac5430.js → sqm-portal-email-verification-view-598eb9a7.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-logout.entry.js +1 -1
  166. package/dist/esm-es5/{sqm-portal-profile-view-15ddbec8.js → sqm-portal-profile-view-a0f6ad48.js} +1 -1
  167. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  168. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  169. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  170. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  171. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  172. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  173. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -1
  174. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  175. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  176. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  177. package/dist/esm-es5/sqm-scroll.entry.js +1 -1
  178. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  179. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  180. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  181. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  182. package/dist/esm-es5/sqm-widget-verification-internal.entry.js +1 -1
  183. package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
  184. package/dist/esm-es5/{stencil-hooks.module-ac12ca1c.js → stencil-hooks.module-3c7f7c90.js} +1 -1
  185. package/dist/esm-es5/useChildElements-fe94b660.js +1 -0
  186. package/dist/esm-es5/useEmailVerification-8f2dc2bd.js +1 -0
  187. package/dist/esm-es5/{useInstantAccessRegistration-8b0a4556.js → useInstantAccessRegistration-670c1b98.js} +1 -1
  188. package/dist/esm-es5/useReferralTable-52008143.js +1 -0
  189. package/dist/esm-es5/useRegistrationFormState-4cfd1a8d.js +1 -0
  190. package/dist/esm-es5/{utilities-443732be.js → utilities-98445452.js} +1 -1
  191. package/dist/mint-components/mint-components.esm.js +1 -1
  192. package/dist/mint-components/mint-components.js +1 -1
  193. package/dist/mint-components/p-0078bc76.system.js +53 -0
  194. package/dist/mint-components/{p-5becb2ff.system.js → p-00ec17d4.system.js} +1 -1
  195. package/dist/mint-components/{p-cd44de66.system.js → p-06c561ea.system.js} +1 -1
  196. package/dist/mint-components/{p-2a414b2e.system.js → p-0979f82e.system.js} +2 -2
  197. package/dist/mint-components/{p-d83b0cf3.js → p-0db003f7.js} +153 -153
  198. package/dist/mint-components/{p-0121e044.js → p-0ecb3019.js} +1 -1
  199. package/dist/mint-components/{p-04ced592.system.entry.js → p-14488d1c.system.entry.js} +1 -1
  200. package/dist/mint-components/{p-88aac6a9.system.entry.js → p-14beec1b.system.entry.js} +1 -1
  201. package/dist/mint-components/{p-a85f57bb.entry.js → p-15e01e7a.entry.js} +1 -1
  202. package/dist/mint-components/{p-2816bf6a.js → p-1602bf01.js} +1 -1
  203. package/dist/mint-components/p-18399da0.system.entry.js +1 -0
  204. package/dist/mint-components/{p-c1f4fb6d.system.entry.js → p-18cd88c4.system.entry.js} +1 -1
  205. package/dist/mint-components/{p-fd2c5407.js → p-1b24bb52.js} +1 -1
  206. package/dist/mint-components/{p-03dbe2ce.entry.js → p-1e40967f.entry.js} +1 -1
  207. package/dist/mint-components/p-1f02e20b.entry.js +1 -0
  208. package/dist/mint-components/p-253c87e1.system.entry.js +1 -0
  209. package/dist/mint-components/p-25a70095.system.entry.js +1 -0
  210. package/dist/mint-components/p-2632464d.entry.js +1 -0
  211. package/dist/mint-components/p-286190c4.system.entry.js +1 -0
  212. package/dist/mint-components/{p-4e373c3d.system.js → p-34a87e67.system.js} +1 -1
  213. package/dist/mint-components/{p-59818690.system.entry.js → p-34dab223.system.entry.js} +1 -1
  214. package/dist/mint-components/{p-947fe79b.entry.js → p-3ba349a3.entry.js} +1 -1
  215. package/dist/mint-components/{p-be1ae1ed.system.entry.js → p-3c46b3de.system.entry.js} +1 -1
  216. package/dist/mint-components/{p-bc826117.system.entry.js → p-3da2b3cf.system.entry.js} +1 -1
  217. package/dist/mint-components/p-414b3b6c.system.entry.js +1 -0
  218. package/dist/mint-components/p-4185f6f5.system.entry.js +1 -0
  219. package/dist/mint-components/{p-1d27da33.js → p-4209cd94.js} +4 -4
  220. package/dist/mint-components/{p-43621f12.system.js → p-423821b9.system.js} +1 -1
  221. package/dist/mint-components/{p-3e7ec0f3.system.entry.js → p-45d0b48a.system.entry.js} +1 -1
  222. package/dist/mint-components/{p-88bf51b7.system.entry.js → p-45d6cde6.system.entry.js} +1 -1
  223. package/dist/mint-components/{p-f3053c61.js → p-48704504.js} +1 -1
  224. package/dist/mint-components/{p-5291891c.entry.js → p-4c0b7768.entry.js} +3 -3
  225. package/dist/mint-components/{p-c763c0b2.js → p-4d060f15.js} +1 -1
  226. package/dist/mint-components/p-52241ba9.system.js +1 -0
  227. package/dist/mint-components/p-556753b2.js +42 -0
  228. package/dist/mint-components/p-55dcb6ff.system.js +1 -0
  229. package/dist/mint-components/{p-9d34f4f0.entry.js → p-56b37aeb.entry.js} +3 -3
  230. package/dist/mint-components/{p-1f7d7524.system.entry.js → p-5a2fd8e0.system.entry.js} +1 -1
  231. package/dist/mint-components/{p-dd0d79bf.entry.js → p-5c602e84.entry.js} +1 -1
  232. package/dist/mint-components/{p-e0e7635a.js → p-611a30f0.js} +1 -1
  233. package/dist/mint-components/{p-9e0230c3.entry.js → p-64acc813.entry.js} +1 -1
  234. package/dist/mint-components/{p-76392386.entry.js → p-657b290b.entry.js} +1 -1
  235. package/dist/mint-components/{p-04348a9b.js → p-65a449de.js} +1 -1
  236. package/dist/mint-components/p-65de8fb2.js +1 -0
  237. package/dist/mint-components/{p-4671e644.entry.js → p-6a70d2d6.entry.js} +1 -1
  238. package/dist/mint-components/p-6eede6e5.system.entry.js +1 -0
  239. package/dist/mint-components/p-6fbfd683.js +1 -0
  240. package/dist/mint-components/{p-9ec008cb.system.entry.js → p-70886c65.system.entry.js} +1 -1
  241. package/dist/mint-components/{p-c3b37bbf.js → p-7507d72b.js} +1 -1
  242. package/dist/mint-components/{p-0527d90b.system.entry.js → p-78a831e0.system.entry.js} +1 -1
  243. package/dist/mint-components/p-78c1bd77.system.js +1 -0
  244. package/dist/mint-components/{p-fbdf0738.entry.js → p-79097c07.entry.js} +1 -1
  245. package/dist/mint-components/{p-f0806232.system.entry.js → p-7ab14d4b.system.entry.js} +1 -1
  246. package/dist/mint-components/p-7c4c727c.system.entry.js +1 -0
  247. package/dist/mint-components/p-7e5f0292.system.entry.js +1 -0
  248. package/dist/mint-components/{p-ead27698.system.entry.js → p-816fb64f.system.entry.js} +1 -1
  249. package/dist/mint-components/p-832eba3a.entry.js +1 -0
  250. package/dist/mint-components/p-858a87ce.entry.js +1 -0
  251. package/dist/mint-components/p-89669879.system.js +1 -0
  252. package/dist/mint-components/p-8b7d2f44.entry.js +1 -0
  253. package/dist/mint-components/{p-b651706a.js → p-8ccb4267.js} +24 -24
  254. package/dist/mint-components/{p-a5a9aa07.entry.js → p-8d696fc9.entry.js} +11 -11
  255. package/dist/mint-components/{p-39af4acd.entry.js → p-8da20810.entry.js} +17 -17
  256. package/dist/mint-components/p-8defb972.system.entry.js +1 -0
  257. package/dist/mint-components/{p-251e7567.js → p-9223640e.js} +1 -1
  258. package/dist/mint-components/{p-6afb4f48.system.entry.js → p-95af445c.system.entry.js} +1 -1
  259. package/dist/mint-components/{p-721a89c6.entry.js → p-99a09fab.entry.js} +2 -2
  260. package/dist/mint-components/p-9cdaa099.entry.js +1 -0
  261. package/dist/mint-components/{p-5fba1a04.system.entry.js → p-a1f0d8ba.system.entry.js} +1 -1
  262. package/dist/mint-components/{p-a45b03d2.entry.js → p-a2e1af83.entry.js} +1 -1
  263. package/dist/mint-components/p-a80c8f5c.system.js +1 -0
  264. package/dist/mint-components/{p-1f9a9b70.system.entry.js → p-a9487844.system.entry.js} +1 -1
  265. package/dist/mint-components/{p-51d53165.system.entry.js → p-ab7322f0.system.entry.js} +1 -1
  266. package/dist/mint-components/{p-4eae91a9.system.js → p-ab89b44a.system.js} +1 -1
  267. package/dist/mint-components/{p-c3babfa4.system.entry.js → p-ac69b460.system.entry.js} +1 -1
  268. package/dist/mint-components/{p-f56348dc.system.entry.js → p-b14a77e8.system.entry.js} +1 -1
  269. package/dist/mint-components/p-b28df069.js +1 -0
  270. package/dist/mint-components/p-b4771476.entry.js +1 -0
  271. package/dist/mint-components/{p-9cdbd1ac.system.entry.js → p-c293f586.system.entry.js} +1 -1
  272. package/dist/mint-components/p-c9ca8473.system.entry.js +1 -0
  273. package/dist/mint-components/p-cac64545.system.entry.js +1 -0
  274. package/dist/mint-components/{p-bee1e573.entry.js → p-cadb8dba.entry.js} +1 -1
  275. package/dist/mint-components/{p-6c928c7d.entry.js → p-cafebf8a.entry.js} +1 -1
  276. package/dist/mint-components/{p-370a1a73.system.js → p-cb45d0a8.system.js} +1 -1
  277. package/dist/mint-components/{p-84b25a46.entry.js → p-cdcd825e.entry.js} +1 -1
  278. package/dist/mint-components/{p-178d2d2e.entry.js → p-cdd04337.entry.js} +1 -1
  279. package/dist/mint-components/{p-83c9f37b.system.entry.js → p-d0c4f3bf.system.entry.js} +1 -1
  280. package/dist/mint-components/{p-94454880.entry.js → p-d2a925d5.entry.js} +1 -1
  281. package/dist/mint-components/p-d3293ac3.entry.js +11 -0
  282. package/dist/mint-components/{p-b1e8a802.entry.js → p-d39da925.entry.js} +1 -1
  283. package/dist/mint-components/p-d4138847.system.entry.js +1 -0
  284. package/dist/mint-components/p-d70bfe30.entry.js +8 -0
  285. package/dist/mint-components/p-d7b701a7.entry.js +1 -0
  286. package/dist/mint-components/{p-36f7caec.system.entry.js → p-d90ef1da.system.entry.js} +1 -1
  287. package/dist/mint-components/{p-ac51940e.system.js → p-dce3d296.system.js} +1 -1
  288. package/dist/mint-components/{p-68747d88.js → p-def70672.js} +1 -1
  289. package/dist/mint-components/p-e05ff098.system.js +1 -0
  290. package/dist/mint-components/p-e4c3817a.system.entry.js +1 -0
  291. package/dist/mint-components/{p-ce9e7c98.system.js → p-e5299352.system.js} +1 -1
  292. package/dist/mint-components/p-e7797040.entry.js +1 -0
  293. package/dist/mint-components/{p-e93e5740.entry.js → p-e810da97.entry.js} +1 -1
  294. package/dist/mint-components/p-e82eec3c.entry.js +13 -0
  295. package/dist/mint-components/p-e8bfd924.system.entry.js +1 -0
  296. package/dist/mint-components/p-e8fcaaa2.entry.js +13 -0
  297. package/dist/mint-components/{p-1b861be5.entry.js → p-ee328054.entry.js} +1 -1
  298. package/dist/mint-components/p-ef49d744.entry.js +1 -0
  299. package/dist/mint-components/{p-22425c71.system.entry.js → p-f0fba496.system.entry.js} +1 -1
  300. package/dist/mint-components/{p-4babe350.system.js → p-f338ef55.system.js} +1 -1
  301. package/dist/mint-components/p-f5f0fc0e.entry.js +1 -0
  302. package/dist/mint-components/{p-65e2c043.system.js → p-faf019cf.system.js} +1 -1
  303. package/dist/mint-components/p-fcb224ab.js +25 -0
  304. package/dist/mint-components/{p-fc422446.system.js → p-fda3d0ca.system.js} +22 -22
  305. package/dist/mint-components/p-fe8e1071.entry.js +1 -0
  306. package/dist/types/components/sqm-payout-button-scroll/PayoutButtonScroll.stories.d.ts +0 -1
  307. package/dist/types/components/sqm-payout-button-scroll/sqm-payout-button-scroll.d.ts +7 -0
  308. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification-view.d.ts +2 -3
  309. package/dist/types/components/sqm-widget-verification/sqm-code-verification/sqm-code-verification.d.ts +0 -10
  310. package/dist/types/components/sqm-widget-verification/sqm-code-verification/useCodeVerification.d.ts +1 -0
  311. package/dist/types/components/sqm-widget-verification/sqm-email-verification/WidgetEmailVerification.stories.d.ts +4 -1
  312. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification-view.d.ts +6 -1
  313. package/dist/types/components/sqm-widget-verification/sqm-email-verification/sqm-email-verification.d.ts +10 -2
  314. package/dist/types/components/sqm-widget-verification/sqm-email-verification/useEmailVerification.d.ts +7 -0
  315. package/dist/types/components/sqm-widget-verification/sqm-widget-verification.d.ts +2 -0
  316. package/dist/types/components/tax-and-cash/sqm-payout-status-alert/sqm-payout-status-alert.d.ts +24 -0
  317. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard-view.d.ts +0 -3
  318. package/dist/types/components/tax-and-cash/sqm-tax-and-cash-dashboard/sqm-tax-and-cash-dashboard.d.ts +0 -16
  319. package/dist/types/components.d.ts +82 -52
  320. package/docs/docs.docx +0 -0
  321. package/docs/raisins.json +1 -1
  322. package/grapesjs/grapesjs.js +1 -1
  323. package/package.json +1 -1
  324. package/dist/cjs/useEmailVerification-30a1c7f6.js +0 -75
  325. package/dist/esm/useEmailVerification-7135732c.js +0 -72
  326. package/dist/esm-es5/ShadowViewAddon-65c8679e.js +0 -1
  327. package/dist/esm-es5/global-6306a9b8.js +0 -285
  328. package/dist/esm-es5/index.module-6c840c4e.js +0 -1
  329. package/dist/esm-es5/useChildElements-fc84e640.js +0 -1
  330. package/dist/esm-es5/useEmailVerification-7135732c.js +0 -1
  331. package/dist/esm-es5/useReferralTable-f6ffa103.js +0 -1
  332. package/dist/esm-es5/useRegistrationFormState-849e27f7.js +0 -1
  333. package/dist/mint-components/p-012daf3c.entry.js +0 -1
  334. package/dist/mint-components/p-0893073b.entry.js +0 -1
  335. package/dist/mint-components/p-0c9ad5f3.system.entry.js +0 -1
  336. package/dist/mint-components/p-117b4705.system.js +0 -1
  337. package/dist/mint-components/p-11d1b212.js +0 -1
  338. package/dist/mint-components/p-1bd0cda8.system.entry.js +0 -1
  339. package/dist/mint-components/p-1ee62d9f.system.entry.js +0 -1
  340. package/dist/mint-components/p-23fdd44e.entry.js +0 -1
  341. package/dist/mint-components/p-2868f475.entry.js +0 -1
  342. package/dist/mint-components/p-36e9296e.system.entry.js +0 -1
  343. package/dist/mint-components/p-3925bcd6.entry.js +0 -13
  344. package/dist/mint-components/p-39397731.entry.js +0 -1
  345. package/dist/mint-components/p-64491210.system.entry.js +0 -1
  346. package/dist/mint-components/p-663303b7.entry.js +0 -8
  347. package/dist/mint-components/p-66a04cca.system.entry.js +0 -1
  348. package/dist/mint-components/p-7dd1ff31.system.entry.js +0 -1
  349. package/dist/mint-components/p-7f5c7bf7.system.entry.js +0 -1
  350. package/dist/mint-components/p-8a337864.js +0 -7
  351. package/dist/mint-components/p-8d554a89.system.js +0 -1
  352. package/dist/mint-components/p-93576222.system.js +0 -1
  353. package/dist/mint-components/p-99c15c5e.entry.js +0 -1
  354. package/dist/mint-components/p-a02afa72.system.js +0 -1
  355. package/dist/mint-components/p-a4282d02.system.entry.js +0 -1
  356. package/dist/mint-components/p-b3b5b4b7.system.entry.js +0 -1
  357. package/dist/mint-components/p-bdd6bb13.js +0 -1
  358. package/dist/mint-components/p-c8878e79.entry.js +0 -1
  359. package/dist/mint-components/p-c92a743e.entry.js +0 -1
  360. package/dist/mint-components/p-c9fb6102.entry.js +0 -1
  361. package/dist/mint-components/p-ca809fdd.system.js +0 -1
  362. package/dist/mint-components/p-cb433855.system.entry.js +0 -1
  363. package/dist/mint-components/p-d35d8c06.entry.js +0 -11
  364. package/dist/mint-components/p-d468925f.entry.js +0 -1
  365. package/dist/mint-components/p-def516b8.system.js +0 -1
  366. package/dist/mint-components/p-e12d3414.system.entry.js +0 -1
  367. package/dist/mint-components/p-e9ca48fc.system.entry.js +0 -1
  368. package/dist/mint-components/p-f36e33ff.entry.js +0 -13
  369. package/dist/mint-components/p-f450654b.system.entry.js +0 -1
  370. package/dist/mint-components/p-f4cbbe47.entry.js +0 -1
  371. package/dist/mint-components/p-f531a5c9.system.entry.js +0 -1
  372. package/dist/mint-components/p-f655a7df.js +0 -1
  373. package/dist/mint-components/p-fd21ae8f.entry.js +0 -1
@@ -1,204 +1,207 @@
1
1
  'use strict';
2
2
 
3
- const stencilHooks_module = require('./stencil-hooks.module-72742a0b.js');
3
+ const index = require('./index-b0129cd6.js');
4
+ const stencilHooks_module = require('./stencil-hooks.module-a5a04d8a.js');
4
5
 
5
6
  const useCallback = (fn, inputs) => stencilHooks_module.useMemo(() => fn, inputs);
6
7
 
7
8
  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";
8
9
 
9
- const { toString, hasOwnProperty } = Object.prototype;
10
- const fnToStr = Function.prototype.toString;
11
- const previousComparisons = new Map();
12
- /**
13
- * Performs a deep equality check on two JavaScript values, tolerating cycles.
14
- */
15
- function equal(a, b) {
16
- try {
17
- return check(a, b);
18
- }
19
- finally {
20
- previousComparisons.clear();
21
- }
22
- }
23
- function check(a, b) {
24
- // If the two values are strictly equal, our job is easy.
25
- if (a === b) {
26
- return true;
27
- }
28
- // Object.prototype.toString returns a representation of the runtime type of
29
- // the given value that is considerably more precise than typeof.
30
- const aTag = toString.call(a);
31
- const bTag = toString.call(b);
32
- // If the runtime types of a and b are different, they could maybe be equal
33
- // under some interpretation of equality, but for simplicity and performance
34
- // we just return false instead.
35
- if (aTag !== bTag) {
36
- return false;
37
- }
38
- switch (aTag) {
39
- case '[object Array]':
40
- // Arrays are a lot like other objects, but we can cheaply compare their
41
- // lengths as a short-cut before comparing their elements.
42
- if (a.length !== b.length)
43
- return false;
44
- // Fall through to object case...
45
- case '[object Object]': {
46
- if (previouslyCompared(a, b))
47
- return true;
48
- const aKeys = definedKeys(a);
49
- const bKeys = definedKeys(b);
50
- // If `a` and `b` have a different number of enumerable keys, they
51
- // must be different.
52
- const keyCount = aKeys.length;
53
- if (keyCount !== bKeys.length)
54
- return false;
55
- // Now make sure they have the same keys.
56
- for (let k = 0; k < keyCount; ++k) {
57
- if (!hasOwnProperty.call(b, aKeys[k])) {
58
- return false;
59
- }
60
- }
61
- // Finally, check deep equality of all child properties.
62
- for (let k = 0; k < keyCount; ++k) {
63
- const key = aKeys[k];
64
- if (!check(a[key], b[key])) {
65
- return false;
66
- }
67
- }
68
- return true;
69
- }
70
- case '[object Error]':
71
- return a.name === b.name && a.message === b.message;
72
- case '[object Number]':
73
- // Handle NaN, which is !== itself.
74
- if (a !== a)
75
- return b !== b;
76
- // Fall through to shared +a === +b case...
77
- case '[object Boolean]':
78
- case '[object Date]':
79
- return +a === +b;
80
- case '[object RegExp]':
81
- case '[object String]':
82
- return a == `${b}`;
83
- case '[object Map]':
84
- case '[object Set]': {
85
- if (a.size !== b.size)
86
- return false;
87
- if (previouslyCompared(a, b))
88
- return true;
89
- const aIterator = a.entries();
90
- const isMap = aTag === '[object Map]';
91
- while (true) {
92
- const info = aIterator.next();
93
- if (info.done)
94
- break;
95
- // If a instanceof Set, aValue === aKey.
96
- const [aKey, aValue] = info.value;
97
- // So this works the same way for both Set and Map.
98
- if (!b.has(aKey)) {
99
- return false;
100
- }
101
- // However, we care about deep equality of values only when dealing
102
- // with Map structures.
103
- if (isMap && !check(aValue, b.get(aKey))) {
104
- return false;
105
- }
106
- }
107
- return true;
108
- }
109
- case '[object Uint16Array]':
110
- case '[object Uint8Array]': // Buffer, in Node.js.
111
- case '[object Uint32Array]':
112
- case '[object Int32Array]':
113
- case '[object Int8Array]':
114
- case '[object Int16Array]':
115
- case '[object ArrayBuffer]':
116
- // DataView doesn't need these conversions, but the equality check is
117
- // otherwise the same.
118
- a = new Uint8Array(a);
119
- b = new Uint8Array(b);
120
- // Fall through...
121
- case '[object DataView]': {
122
- let len = a.byteLength;
123
- if (len === b.byteLength) {
124
- while (len-- && a[len] === b[len]) {
125
- // Keep looping as long as the bytes are equal.
126
- }
127
- }
128
- return len === -1;
129
- }
130
- case '[object AsyncFunction]':
131
- case '[object GeneratorFunction]':
132
- case '[object AsyncGeneratorFunction]':
133
- case '[object Function]': {
134
- const aCode = fnToStr.call(a);
135
- if (aCode !== fnToStr.call(b)) {
136
- return false;
137
- }
138
- // We consider non-native functions equal if they have the same code
139
- // (native functions require === because their code is censored).
140
- // Note that this behavior is not entirely sound, since !== function
141
- // objects with the same code can behave differently depending on
142
- // their closure scope. However, any function can behave differently
143
- // depending on the values of its input arguments (including this)
144
- // and its calling context (including its closure scope), even
145
- // though the function object is === to itself; and it is entirely
146
- // possible for functions that are not === to behave exactly the
147
- // same under all conceivable circumstances. Because none of these
148
- // factors are statically decidable in JavaScript, JS function
149
- // equality is not well-defined. This ambiguity allows us to
150
- // consider the best possible heuristic among various imperfect
151
- // options, and equating non-native functions that have the same
152
- // code has enormous practical benefits, such as when comparing
153
- // functions that are repeatedly passed as fresh function
154
- // expressions within objects that are otherwise deeply equal. Since
155
- // any function created from the same syntactic expression (in the
156
- // same code location) will always stringify to the same code
157
- // according to fnToStr.call, we can reasonably expect these
158
- // repeatedly passed function expressions to have the same code, and
159
- // thus behave "the same" (with all the caveats mentioned above),
160
- // even though the runtime function objects are !== to one another.
161
- return !endsWith(aCode, nativeCodeSuffix);
162
- }
163
- }
164
- // Otherwise the values are not equal.
165
- return false;
166
- }
167
- function definedKeys(obj) {
168
- // Remember that the second argument to Array.prototype.filter will be
169
- // used as `this` within the callback function.
170
- return Object.keys(obj).filter(isDefinedKey, obj);
171
- }
172
- function isDefinedKey(key) {
173
- return this[key] !== void 0;
174
- }
175
- const nativeCodeSuffix = "{ [native code] }";
176
- function endsWith(full, suffix) {
177
- const fromIndex = full.length - suffix.length;
178
- return fromIndex >= 0 &&
179
- full.indexOf(suffix, fromIndex) === fromIndex;
180
- }
181
- function previouslyCompared(a, b) {
182
- // Though cyclic references can make an object graph appear infinite from the
183
- // perspective of a depth-first traversal, the graph still contains a finite
184
- // number of distinct object references. We use the previousComparisons cache
185
- // to avoid comparing the same pair of object references more than once, which
186
- // guarantees termination (even if we end up comparing every object in one
187
- // graph to every object in the other graph, which is extremely unlikely),
188
- // while still allowing weird isomorphic structures (like rings with different
189
- // lengths) a chance to pass the equality test.
190
- let bSet = previousComparisons.get(a);
191
- if (bSet) {
192
- // Return true here because we can be sure false will be returned somewhere
193
- // else if the objects are not equivalent.
194
- if (bSet.has(b))
195
- return true;
196
- }
197
- else {
198
- previousComparisons.set(a, bSet = new Set);
199
- }
200
- bSet.add(b);
201
- return false;
10
+ 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}
11
+
12
+ var _a = Object.prototype, toString = _a.toString, hasOwnProperty = _a.hasOwnProperty;
13
+ var fnToStr = Function.prototype.toString;
14
+ var previousComparisons = new Map();
15
+ /**
16
+ * Performs a deep equality check on two JavaScript values, tolerating cycles.
17
+ */
18
+ function equal(a, b) {
19
+ try {
20
+ return check(a, b);
21
+ }
22
+ finally {
23
+ previousComparisons.clear();
24
+ }
25
+ }
26
+ function check(a, b) {
27
+ // If the two values are strictly equal, our job is easy.
28
+ if (a === b) {
29
+ return true;
30
+ }
31
+ // Object.prototype.toString returns a representation of the runtime type of
32
+ // the given value that is considerably more precise than typeof.
33
+ var aTag = toString.call(a);
34
+ var bTag = toString.call(b);
35
+ // If the runtime types of a and b are different, they could maybe be equal
36
+ // under some interpretation of equality, but for simplicity and performance
37
+ // we just return false instead.
38
+ if (aTag !== bTag) {
39
+ return false;
40
+ }
41
+ switch (aTag) {
42
+ case '[object Array]':
43
+ // Arrays are a lot like other objects, but we can cheaply compare their
44
+ // lengths as a short-cut before comparing their elements.
45
+ if (a.length !== b.length)
46
+ return false;
47
+ // Fall through to object case...
48
+ case '[object Object]': {
49
+ if (previouslyCompared(a, b))
50
+ return true;
51
+ var aKeys = definedKeys(a);
52
+ var bKeys = definedKeys(b);
53
+ // If `a` and `b` have a different number of enumerable keys, they
54
+ // must be different.
55
+ var keyCount = aKeys.length;
56
+ if (keyCount !== bKeys.length)
57
+ return false;
58
+ // Now make sure they have the same keys.
59
+ for (var k = 0; k < keyCount; ++k) {
60
+ if (!hasOwnProperty.call(b, aKeys[k])) {
61
+ return false;
62
+ }
63
+ }
64
+ // Finally, check deep equality of all child properties.
65
+ for (var k = 0; k < keyCount; ++k) {
66
+ var key = aKeys[k];
67
+ if (!check(a[key], b[key])) {
68
+ return false;
69
+ }
70
+ }
71
+ return true;
72
+ }
73
+ case '[object Error]':
74
+ return a.name === b.name && a.message === b.message;
75
+ case '[object Number]':
76
+ // Handle NaN, which is !== itself.
77
+ if (a !== a)
78
+ return b !== b;
79
+ // Fall through to shared +a === +b case...
80
+ case '[object Boolean]':
81
+ case '[object Date]':
82
+ return +a === +b;
83
+ case '[object RegExp]':
84
+ case '[object String]':
85
+ return a == "" + b;
86
+ case '[object Map]':
87
+ case '[object Set]': {
88
+ if (a.size !== b.size)
89
+ return false;
90
+ if (previouslyCompared(a, b))
91
+ return true;
92
+ var aIterator = a.entries();
93
+ var isMap = aTag === '[object Map]';
94
+ while (true) {
95
+ var info = aIterator.next();
96
+ if (info.done)
97
+ break;
98
+ // If a instanceof Set, aValue === aKey.
99
+ var _a = info.value, aKey = _a[0], aValue = _a[1];
100
+ // So this works the same way for both Set and Map.
101
+ if (!b.has(aKey)) {
102
+ return false;
103
+ }
104
+ // However, we care about deep equality of values only when dealing
105
+ // with Map structures.
106
+ if (isMap && !check(aValue, b.get(aKey))) {
107
+ return false;
108
+ }
109
+ }
110
+ return true;
111
+ }
112
+ case '[object Uint16Array]':
113
+ case '[object Uint8Array]': // Buffer, in Node.js.
114
+ case '[object Uint32Array]':
115
+ case '[object Int32Array]':
116
+ case '[object Int8Array]':
117
+ case '[object Int16Array]':
118
+ case '[object ArrayBuffer]':
119
+ // DataView doesn't need these conversions, but the equality check is
120
+ // otherwise the same.
121
+ a = new Uint8Array(a);
122
+ b = new Uint8Array(b);
123
+ // Fall through...
124
+ case '[object DataView]': {
125
+ var len = a.byteLength;
126
+ if (len === b.byteLength) {
127
+ while (len-- && a[len] === b[len]) {
128
+ // Keep looping as long as the bytes are equal.
129
+ }
130
+ }
131
+ return len === -1;
132
+ }
133
+ case '[object AsyncFunction]':
134
+ case '[object GeneratorFunction]':
135
+ case '[object AsyncGeneratorFunction]':
136
+ case '[object Function]': {
137
+ var aCode = fnToStr.call(a);
138
+ if (aCode !== fnToStr.call(b)) {
139
+ return false;
140
+ }
141
+ // We consider non-native functions equal if they have the same code
142
+ // (native functions require === because their code is censored).
143
+ // Note that this behavior is not entirely sound, since !== function
144
+ // objects with the same code can behave differently depending on
145
+ // their closure scope. However, any function can behave differently
146
+ // depending on the values of its input arguments (including this)
147
+ // and its calling context (including its closure scope), even
148
+ // though the function object is === to itself; and it is entirely
149
+ // possible for functions that are not === to behave exactly the
150
+ // same under all conceivable circumstances. Because none of these
151
+ // factors are statically decidable in JavaScript, JS function
152
+ // equality is not well-defined. This ambiguity allows us to
153
+ // consider the best possible heuristic among various imperfect
154
+ // options, and equating non-native functions that have the same
155
+ // code has enormous practical benefits, such as when comparing
156
+ // functions that are repeatedly passed as fresh function
157
+ // expressions within objects that are otherwise deeply equal. Since
158
+ // any function created from the same syntactic expression (in the
159
+ // same code location) will always stringify to the same code
160
+ // according to fnToStr.call, we can reasonably expect these
161
+ // repeatedly passed function expressions to have the same code, and
162
+ // thus behave "the same" (with all the caveats mentioned above),
163
+ // even though the runtime function objects are !== to one another.
164
+ return !endsWith(aCode, nativeCodeSuffix);
165
+ }
166
+ }
167
+ // Otherwise the values are not equal.
168
+ return false;
169
+ }
170
+ function definedKeys(obj) {
171
+ // Remember that the second argument to Array.prototype.filter will be
172
+ // used as `this` within the callback function.
173
+ return Object.keys(obj).filter(isDefinedKey, obj);
174
+ }
175
+ function isDefinedKey(key) {
176
+ return this[key] !== void 0;
177
+ }
178
+ var nativeCodeSuffix = "{ [native code] }";
179
+ function endsWith(full, suffix) {
180
+ var fromIndex = full.length - suffix.length;
181
+ return fromIndex >= 0 &&
182
+ full.indexOf(suffix, fromIndex) === fromIndex;
183
+ }
184
+ function previouslyCompared(a, b) {
185
+ // Though cyclic references can make an object graph appear infinite from the
186
+ // perspective of a depth-first traversal, the graph still contains a finite
187
+ // number of distinct object references. We use the previousComparisons cache
188
+ // to avoid comparing the same pair of object references more than once, which
189
+ // guarantees termination (even if we end up comparing every object in one
190
+ // graph to every object in the other graph, which is extremely unlikely),
191
+ // while still allowing weird isomorphic structures (like rings with different
192
+ // lengths) a chance to pass the equality test.
193
+ var bSet = previousComparisons.get(a);
194
+ if (bSet) {
195
+ // Return true here because we can be sure false will be returned somewhere
196
+ // else if the objects are not equivalent.
197
+ if (bSet.has(b))
198
+ return true;
199
+ }
200
+ else {
201
+ previousComparisons.set(a, bSet = new Set);
202
+ }
203
+ bSet.add(b);
204
+ return false;
202
205
  }
203
206
 
204
207
  var __defProp = Object.defineProperty;
@@ -519,7 +522,7 @@ function lazilyStartLocaleContext() {
519
522
  debug3("Creating locale context provider");
520
523
  const locale = ((_a = window.widgetIdent) == null ? void 0 : _a.locale) ?? validateLocale(navigator.language.replaceAll("-", "_"));
521
524
  debug3("initializing with locale:", locale);
522
- globalProvider = new stencilHooks_module.c({
525
+ globalProvider = new c({
523
526
  element: document.documentElement,
524
527
  initialState: locale,
525
528
  contextName: LOCALE_CONTEXT_NAME
@@ -580,7 +583,7 @@ var userContextListenerDiv = (() => {
580
583
  }
581
584
  return div;
582
585
  })();
583
- var userContextListenerForLocale = new stencilHooks_module.s({
586
+ var userContextListenerForLocale = new s({
584
587
  contextName: USER_CONTEXT_NAME,
585
588
  element: userContextListenerDiv,
586
589
  onChange: async (next) => {
@@ -611,7 +614,7 @@ function lazilyStartUserContext() {
611
614
  let globalProvider = window.squatchUserIdentity;
612
615
  if (!globalProvider) {
613
616
  debug6("Creating user context provider");
614
- globalProvider = new stencilHooks_module.c({
617
+ globalProvider = new c({
615
618
  element: document.documentElement,
616
619
  initialState: _getInitialValue(),
617
620
  contextName: USER_CONTEXT_NAME
@@ -728,7 +731,7 @@ function lazilyStartProgramContext() {
728
731
  let globalProvider = window.squatchProgramId;
729
732
  if (!globalProvider) {
730
733
  debug7("Creating program context provider");
731
- globalProvider = new stencilHooks_module.c({
734
+ globalProvider = new c({
732
735
  element: document.documentElement,
733
736
  initialState: ((_a = window.widgetIdent) == null ? void 0 : _a.programId) || void 0,
734
737
  contextName: PROGRAM_CONTEXT_NAME
@@ -748,7 +751,7 @@ var debug8 = (...args) => debug(VERIFICATION_CONTEXT_NAME, ...args);
748
751
  function lazilyStartVerificationContext() {
749
752
  let globalProvider = window.squatchVerification;
750
753
  if (!globalProvider) {
751
- globalProvider = new stencilHooks_module.c({
754
+ globalProvider = new c({
752
755
  element: document.documentElement,
753
756
  initialState: void 0,
754
757
  contextName: VERIFICATION_CONTEXT_NAME
@@ -777,6 +780,10 @@ function setVerificationContext(context) {
777
780
  }
778
781
  }
779
782
 
783
+ function t$2(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$2(n,e,i){return e&&t$2(n.prototype,e),i&&t$2(n,i),n}var s$1=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$1(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$1(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$1(this.options.pollingMs)||100)>0&&i>1&&(this._interval=setInterval(o,a$1(this.options.pollingMs)||100)),o(),this},e.stop=function(){return this._interval&&clearInterval(this._interval),this.resolvePromise&&this.resolvePromise(),this.status="Initial",this},n$2(t,[{key:"status",set:function(t){this._status=t,this.options.onStatus&&this.options.onStatus(t);},get:function(){return this._status}}]),t}(),c$1=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$1(t.initialState);}var e=t.prototype;return e.start=function(){return a$1(this.options.element).addEventListener(this.options.contextName,this.connectListener),this},e.stop=function(){return a$1(this.options.element).removeEventListener(this.options.contextName,this.connectListener),this.__listeners.map(function(t){t.onDisconnect();}),this.__listeners=[],this},n$2(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$1(this.__current)}},{key:"listeners",get:function(){return Object.freeze([].concat(this.__listeners))}}]),t}();function a$1(t){return "function"==typeof typeof t?t():t}
784
+
785
+ function c$2(){return (c$2=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=stencilHooks_module.useRef(void 0),C=stencilHooks_module.useState(void 0),l=C[0],d=C[1],f=stencilHooks_module.useMemo(function(){var r;try{(r=new s$1(c$2({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 stencilHooks_module.useEffect(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=stencilHooks_module.useMemo(function(){var o=new c$1({contextName:t,element:e,initialState:r});return o.start(),m("Provider initialized",o),o},[t,e]);stencilHooks_module.useEffect(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=stencilHooks_module.useReducer(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[0],c[1],o]}
786
+
780
787
  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); }
781
788
 
782
789
  /**
@@ -1529,7 +1536,6 @@ function devAssert(condition, message) {
1529
1536
  * A replacement for instanceof which includes an error warning when multi-realm
1530
1537
  * constructors are detected.
1531
1538
  */
1532
-
1533
1539
  // See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
1534
1540
  // See: https://webpack.js.org/guides/production/
1535
1541
  const instanceOf = // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
@@ -4558,6 +4564,8 @@ function hasMultilineItems(maybeArray) {
4558
4564
  return maybeArray != null && maybeArray.some(isMultiline);
4559
4565
  }
4560
4566
 
4567
+ 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$3(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$3(e){this.message=e;}function o$1(e,r){if("string"!=typeof e)throw new n$3("Invalid token specified");var o=!0===(r=r||{}).header?0:1;try{return JSON.parse(t$3(e.split(".")[o]))}catch(e){throw new n$3("Invalid token specified: "+e.message)}}n$3.prototype=new Error,n$3.prototype.name="InvalidTokenError";
4568
+
4561
4569
  //
4562
4570
  // Main
4563
4571
  //
@@ -4704,11 +4712,6 @@ var strategies = {
4704
4712
  };
4705
4713
  src.strategies = strategies;
4706
4714
 
4707
- const memoize$1 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), src, {
4708
- 'default': src,
4709
- strategies: strategies
4710
- }));
4711
-
4712
4715
  var utils = stencilHooks_module.createCommonjsModule(function (module, exports) {
4713
4716
  var __assign = (stencilHooks_module.commonjsGlobal && stencilHooks_module.commonjsGlobal.__assign) || function () {
4714
4717
  __assign = Object.assign || function(t) {
@@ -4958,15 +4961,14 @@ exports.default = combinedQuery;
4958
4961
  const k = /*@__PURE__*/stencilHooks_module.getDefaultExportFromCjs(dist);
4959
4962
 
4960
4963
  var browserPonyfill = stencilHooks_module.createCommonjsModule(function (module, exports) {
4961
- var global = typeof self !== 'undefined' ? self : stencilHooks_module.commonjsGlobal;
4962
- var __self__ = (function () {
4964
+ var __self__ = (function (root) {
4963
4965
  function F() {
4964
4966
  this.fetch = false;
4965
- this.DOMException = global.DOMException;
4967
+ this.DOMException = root.DOMException;
4966
4968
  }
4967
- F.prototype = global;
4969
+ F.prototype = root;
4968
4970
  return new F();
4969
- })();
4971
+ })(typeof self !== 'undefined' ? self : stencilHooks_module.commonjsGlobal);
4970
4972
  (function(self) {
4971
4973
 
4972
4974
  var irrelevant = (function (exports) {
@@ -5493,24 +5495,17 @@ var irrelevant = (function (exports) {
5493
5495
  exports.Response = Response;
5494
5496
  exports.fetch = fetch;
5495
5497
 
5496
- Object.defineProperty(exports, '__esModule', { value: true });
5497
-
5498
5498
  return exports;
5499
5499
 
5500
- })({});
5500
+ }({}));
5501
5501
  })(__self__);
5502
- __self__.fetch.ponyfill = true;
5503
- // Remove "polyfill" property added by whatwg-fetch
5504
5502
  delete __self__.fetch.polyfill;
5505
- // Choose between native implementation (global) or custom implementation (__self__)
5506
- // var ctx = global.fetch ? global : __self__;
5507
- var ctx = __self__; // this line disable service worker support temporarily
5508
- exports = ctx.fetch; // To enable: import fetch from 'cross-fetch'
5509
- exports.default = ctx.fetch; // For TypeScript consumers without esModuleInterop.
5510
- exports.fetch = ctx.fetch; // To enable: import {fetch} from 'cross-fetch'
5511
- exports.Headers = ctx.Headers;
5512
- exports.Request = ctx.Request;
5513
- exports.Response = ctx.Response;
5503
+ exports = __self__.fetch; // To enable: import fetch from 'cross-fetch'
5504
+ exports.default = __self__.fetch; // For TypeScript consumers without esModuleInterop.
5505
+ exports.fetch = __self__.fetch; // To enable: import {fetch} from 'cross-fetch'
5506
+ exports.Headers = __self__.Headers;
5507
+ exports.Request = __self__.Request;
5508
+ exports.Response = __self__.Response;
5514
5509
  module.exports = exports;
5515
5510
  });
5516
5511
 
@@ -8237,6 +8232,1178 @@ function dispatchBufferClose(arg) {
8237
8232
  subscriber.closeContext(context);
8238
8233
  }
8239
8234
 
8235
+ var _a$1 = Object.prototype, toString$1 = _a$1.toString, hasOwnProperty$1 = _a$1.hasOwnProperty;
8236
+ var fnToStr$1 = Function.prototype.toString;
8237
+ var previousComparisons$1 = new Map();
8238
+ /**
8239
+ * Performs a deep equality check on two JavaScript values, tolerating cycles.
8240
+ */
8241
+ function equal$1(a, b) {
8242
+ try {
8243
+ return check$1(a, b);
8244
+ }
8245
+ finally {
8246
+ previousComparisons$1.clear();
8247
+ }
8248
+ }
8249
+ function check$1(a, b) {
8250
+ // If the two values are strictly equal, our job is easy.
8251
+ if (a === b) {
8252
+ return true;
8253
+ }
8254
+ // Object.prototype.toString returns a representation of the runtime type of
8255
+ // the given value that is considerably more precise than typeof.
8256
+ var aTag = toString$1.call(a);
8257
+ var bTag = toString$1.call(b);
8258
+ // If the runtime types of a and b are different, they could maybe be equal
8259
+ // under some interpretation of equality, but for simplicity and performance
8260
+ // we just return false instead.
8261
+ if (aTag !== bTag) {
8262
+ return false;
8263
+ }
8264
+ switch (aTag) {
8265
+ case '[object Array]':
8266
+ // Arrays are a lot like other objects, but we can cheaply compare their
8267
+ // lengths as a short-cut before comparing their elements.
8268
+ if (a.length !== b.length)
8269
+ return false;
8270
+ // Fall through to object case...
8271
+ case '[object Object]': {
8272
+ if (previouslyCompared$1(a, b))
8273
+ return true;
8274
+ var aKeys = definedKeys$1(a);
8275
+ var bKeys = definedKeys$1(b);
8276
+ // If `a` and `b` have a different number of enumerable keys, they
8277
+ // must be different.
8278
+ var keyCount = aKeys.length;
8279
+ if (keyCount !== bKeys.length)
8280
+ return false;
8281
+ // Now make sure they have the same keys.
8282
+ for (var k = 0; k < keyCount; ++k) {
8283
+ if (!hasOwnProperty$1.call(b, aKeys[k])) {
8284
+ return false;
8285
+ }
8286
+ }
8287
+ // Finally, check deep equality of all child properties.
8288
+ for (var k = 0; k < keyCount; ++k) {
8289
+ var key = aKeys[k];
8290
+ if (!check$1(a[key], b[key])) {
8291
+ return false;
8292
+ }
8293
+ }
8294
+ return true;
8295
+ }
8296
+ case '[object Error]':
8297
+ return a.name === b.name && a.message === b.message;
8298
+ case '[object Number]':
8299
+ // Handle NaN, which is !== itself.
8300
+ if (a !== a)
8301
+ return b !== b;
8302
+ // Fall through to shared +a === +b case...
8303
+ case '[object Boolean]':
8304
+ case '[object Date]':
8305
+ return +a === +b;
8306
+ case '[object RegExp]':
8307
+ case '[object String]':
8308
+ return a == "" + b;
8309
+ case '[object Map]':
8310
+ case '[object Set]': {
8311
+ if (a.size !== b.size)
8312
+ return false;
8313
+ if (previouslyCompared$1(a, b))
8314
+ return true;
8315
+ var aIterator = a.entries();
8316
+ var isMap = aTag === '[object Map]';
8317
+ while (true) {
8318
+ var info = aIterator.next();
8319
+ if (info.done)
8320
+ break;
8321
+ // If a instanceof Set, aValue === aKey.
8322
+ var _a = info.value, aKey = _a[0], aValue = _a[1];
8323
+ // So this works the same way for both Set and Map.
8324
+ if (!b.has(aKey)) {
8325
+ return false;
8326
+ }
8327
+ // However, we care about deep equality of values only when dealing
8328
+ // with Map structures.
8329
+ if (isMap && !check$1(aValue, b.get(aKey))) {
8330
+ return false;
8331
+ }
8332
+ }
8333
+ return true;
8334
+ }
8335
+ case '[object Uint16Array]':
8336
+ case '[object Uint8Array]': // Buffer, in Node.js.
8337
+ case '[object Uint32Array]':
8338
+ case '[object Int32Array]':
8339
+ case '[object Int8Array]':
8340
+ case '[object Int16Array]':
8341
+ case '[object ArrayBuffer]':
8342
+ // DataView doesn't need these conversions, but the equality check is
8343
+ // otherwise the same.
8344
+ a = new Uint8Array(a);
8345
+ b = new Uint8Array(b);
8346
+ // Fall through...
8347
+ case '[object DataView]': {
8348
+ var len = a.byteLength;
8349
+ if (len === b.byteLength) {
8350
+ while (len-- && a[len] === b[len]) {
8351
+ // Keep looping as long as the bytes are equal.
8352
+ }
8353
+ }
8354
+ return len === -1;
8355
+ }
8356
+ case '[object AsyncFunction]':
8357
+ case '[object GeneratorFunction]':
8358
+ case '[object AsyncGeneratorFunction]':
8359
+ case '[object Function]': {
8360
+ var aCode = fnToStr$1.call(a);
8361
+ if (aCode !== fnToStr$1.call(b)) {
8362
+ return false;
8363
+ }
8364
+ // We consider non-native functions equal if they have the same code
8365
+ // (native functions require === because their code is censored).
8366
+ // Note that this behavior is not entirely sound, since !== function
8367
+ // objects with the same code can behave differently depending on
8368
+ // their closure scope. However, any function can behave differently
8369
+ // depending on the values of its input arguments (including this)
8370
+ // and its calling context (including its closure scope), even
8371
+ // though the function object is === to itself; and it is entirely
8372
+ // possible for functions that are not === to behave exactly the
8373
+ // same under all conceivable circumstances. Because none of these
8374
+ // factors are statically decidable in JavaScript, JS function
8375
+ // equality is not well-defined. This ambiguity allows us to
8376
+ // consider the best possible heuristic among various imperfect
8377
+ // options, and equating non-native functions that have the same
8378
+ // code has enormous practical benefits, such as when comparing
8379
+ // functions that are repeatedly passed as fresh function
8380
+ // expressions within objects that are otherwise deeply equal. Since
8381
+ // any function created from the same syntactic expression (in the
8382
+ // same code location) will always stringify to the same code
8383
+ // according to fnToStr.call, we can reasonably expect these
8384
+ // repeatedly passed function expressions to have the same code, and
8385
+ // thus behave "the same" (with all the caveats mentioned above),
8386
+ // even though the runtime function objects are !== to one another.
8387
+ return !endsWith$1(aCode, nativeCodeSuffix$1);
8388
+ }
8389
+ }
8390
+ // Otherwise the values are not equal.
8391
+ return false;
8392
+ }
8393
+ function definedKeys$1(obj) {
8394
+ // Remember that the second argument to Array.prototype.filter will be
8395
+ // used as `this` within the callback function.
8396
+ return Object.keys(obj).filter(isDefinedKey$1, obj);
8397
+ }
8398
+ function isDefinedKey$1(key) {
8399
+ return this[key] !== void 0;
8400
+ }
8401
+ var nativeCodeSuffix$1 = "{ [native code] }";
8402
+ function endsWith$1(full, suffix) {
8403
+ var fromIndex = full.length - suffix.length;
8404
+ return fromIndex >= 0 &&
8405
+ full.indexOf(suffix, fromIndex) === fromIndex;
8406
+ }
8407
+ function previouslyCompared$1(a, b) {
8408
+ // Though cyclic references can make an object graph appear infinite from the
8409
+ // perspective of a depth-first traversal, the graph still contains a finite
8410
+ // number of distinct object references. We use the previousComparisons cache
8411
+ // to avoid comparing the same pair of object references more than once, which
8412
+ // guarantees termination (even if we end up comparing every object in one
8413
+ // graph to every object in the other graph, which is extremely unlikely),
8414
+ // while still allowing weird isomorphic structures (like rings with different
8415
+ // lengths) a chance to pass the equality test.
8416
+ var bSet = previousComparisons$1.get(a);
8417
+ if (bSet) {
8418
+ // Return true here because we can be sure false will be returned somewhere
8419
+ // else if the objects are not equivalent.
8420
+ if (bSet.has(b))
8421
+ return true;
8422
+ }
8423
+ else {
8424
+ previousComparisons$1.set(a, bSet = new Set);
8425
+ }
8426
+ bSet.add(b);
8427
+ return false;
8428
+ }
8429
+
8430
+ /**
8431
+ * @license
8432
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8433
+ * This code may only be used under the BSD style license found at
8434
+ * http://polymer.github.io/LICENSE.txt
8435
+ * The complete set of authors may be found at
8436
+ * http://polymer.github.io/AUTHORS.txt
8437
+ * The complete set of contributors may be found at
8438
+ * http://polymer.github.io/CONTRIBUTORS.txt
8439
+ * Code distributed by Google as part of the polymer project is also
8440
+ * subject to an additional IP rights grant found at
8441
+ * http://polymer.github.io/PATENTS.txt
8442
+ */
8443
+ /**
8444
+ * An expression marker with embedded unique key to avoid collision with
8445
+ * possible text in templates.
8446
+ */
8447
+ const marker = `{{lit-${String(Math.random()).slice(2)}}}`;
8448
+
8449
+ /**
8450
+ * @license
8451
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8452
+ * This code may only be used under the BSD style license found at
8453
+ * http://polymer.github.io/LICENSE.txt
8454
+ * The complete set of authors may be found at
8455
+ * http://polymer.github.io/AUTHORS.txt
8456
+ * The complete set of contributors may be found at
8457
+ * http://polymer.github.io/CONTRIBUTORS.txt
8458
+ * Code distributed by Google as part of the polymer project is also
8459
+ * subject to an additional IP rights grant found at
8460
+ * http://polymer.github.io/PATENTS.txt
8461
+ */
8462
+ /**
8463
+ * Our TrustedTypePolicy for HTML which is declared using the html template
8464
+ * tag function.
8465
+ *
8466
+ * That HTML is a developer-authored constant, and is parsed with innerHTML
8467
+ * before any untrusted expressions have been mixed in. Therefor it is
8468
+ * considered safe by construction.
8469
+ */
8470
+ const policy = window.trustedTypes &&
8471
+ trustedTypes.createPolicy('lit-html', { createHTML: (s) => s });
8472
+
8473
+ /**
8474
+ * @license
8475
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8476
+ * This code may only be used under the BSD style license found at
8477
+ * http://polymer.github.io/LICENSE.txt
8478
+ * The complete set of authors may be found at
8479
+ * http://polymer.github.io/AUTHORS.txt
8480
+ * The complete set of contributors may be found at
8481
+ * http://polymer.github.io/CONTRIBUTORS.txt
8482
+ * Code distributed by Google as part of the polymer project is also
8483
+ * subject to an additional IP rights grant found at
8484
+ * http://polymer.github.io/PATENTS.txt
8485
+ */
8486
+ // Wrap into an IIFE because MS Edge <= v41 does not support having try/catch
8487
+ // blocks right into the body of a module
8488
+ (() => {
8489
+ try {
8490
+ const options = {
8491
+ get capture() {
8492
+ return false;
8493
+ }
8494
+ };
8495
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
8496
+ window.addEventListener('test', options, options);
8497
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
8498
+ window.removeEventListener('test', options, options);
8499
+ }
8500
+ catch (_e) {
8501
+ // event options not supported
8502
+ }
8503
+ })();
8504
+
8505
+ /**
8506
+ * @license
8507
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
8508
+ * This code may only be used under the BSD style license found at
8509
+ * http://polymer.github.io/LICENSE.txt
8510
+ * The complete set of authors may be found at
8511
+ * http://polymer.github.io/AUTHORS.txt
8512
+ * The complete set of contributors may be found at
8513
+ * http://polymer.github.io/CONTRIBUTORS.txt
8514
+ * Code distributed by Google as part of the polymer project is also
8515
+ * subject to an additional IP rights grant found at
8516
+ * http://polymer.github.io/PATENTS.txt
8517
+ */
8518
+ // IMPORTANT: do not change the property name or the assignment expression.
8519
+ // This line will be used in regexes to search for lit-html usage.
8520
+ // TODO(justinfagnani): inject version number at build time
8521
+ if (typeof window !== 'undefined') {
8522
+ (window['litHtmlVersions'] || (window['litHtmlVersions'] = [])).push('1.4.1');
8523
+ }
8524
+
8525
+ let current;
8526
+ let currentId = 0;
8527
+ function notify() {
8528
+ return currentId++;
8529
+ }
8530
+
8531
+ const hookSymbol = Symbol('haunted.hook');
8532
+ const effectsSymbol = Symbol('haunted.effects');
8533
+ const layoutEffectsSymbol = Symbol('haunted.layoutEffects');
8534
+ const contextEvent = 'haunted.context';
8535
+
8536
+ const defer = Promise.resolve().then.bind(Promise.resolve());
8537
+
8538
+ class Hook {
8539
+ constructor(id, state) {
8540
+ this.id = id;
8541
+ this.state = state;
8542
+ }
8543
+ }
8544
+ function use(Hook, ...args) {
8545
+ let id = notify();
8546
+ let hooks = current[hookSymbol];
8547
+ let hook = hooks.get(id);
8548
+ if (!hook) {
8549
+ hook = new Hook(id, current, ...args);
8550
+ hooks.set(id, hook);
8551
+ }
8552
+ return hook.update(...args);
8553
+ }
8554
+ function hook(Hook) {
8555
+ return use.bind(null, Hook);
8556
+ }
8557
+
8558
+ function createEffect(setEffects) {
8559
+ return hook(class extends Hook {
8560
+ constructor(id, state, ignored1, ignored2) {
8561
+ super(id, state);
8562
+ setEffects(state, this);
8563
+ }
8564
+ update(callback, values) {
8565
+ this.callback = callback;
8566
+ this.values = values;
8567
+ }
8568
+ call() {
8569
+ if (!this.values || this.hasChanged()) {
8570
+ this.run();
8571
+ }
8572
+ this.lastValues = this.values;
8573
+ }
8574
+ run() {
8575
+ this.teardown();
8576
+ this._teardown = this.callback.call(this.state);
8577
+ }
8578
+ teardown() {
8579
+ if (typeof this._teardown === 'function') {
8580
+ this._teardown();
8581
+ }
8582
+ }
8583
+ hasChanged() {
8584
+ return !this.lastValues || this.values.some((value, i) => this.lastValues[i] !== value);
8585
+ }
8586
+ });
8587
+ }
8588
+
8589
+ function setEffects(state, cb) {
8590
+ state[effectsSymbol].push(cb);
8591
+ }
8592
+ const useEffect = createEffect(setEffects);
8593
+
8594
+ const useContext = hook(class extends Hook {
8595
+ constructor(id, state, _) {
8596
+ super(id, state);
8597
+ this._updater = this._updater.bind(this);
8598
+ this._ranEffect = false;
8599
+ this._unsubscribe = null;
8600
+ setEffects(state, this);
8601
+ }
8602
+ update(Context) {
8603
+ if (this.state.virtual) {
8604
+ throw new Error('can\'t be used with virtual components');
8605
+ }
8606
+ if (this.Context !== Context) {
8607
+ this._subscribe(Context);
8608
+ this.Context = Context;
8609
+ }
8610
+ return this.value;
8611
+ }
8612
+ call() {
8613
+ if (!this._ranEffect) {
8614
+ this._ranEffect = true;
8615
+ if (this._unsubscribe)
8616
+ this._unsubscribe();
8617
+ this._subscribe(this.Context);
8618
+ this.state.update();
8619
+ }
8620
+ }
8621
+ _updater(value) {
8622
+ this.value = value;
8623
+ this.state.update();
8624
+ }
8625
+ _subscribe(Context) {
8626
+ const detail = { Context, callback: this._updater };
8627
+ this.state.host.dispatchEvent(new CustomEvent(contextEvent, {
8628
+ detail,
8629
+ bubbles: true,
8630
+ cancelable: true,
8631
+ composed: true,
8632
+ }));
8633
+ const { unsubscribe = null, value } = detail;
8634
+ this.value = unsubscribe ? value : Context.defaultValue;
8635
+ this._unsubscribe = unsubscribe;
8636
+ }
8637
+ teardown() {
8638
+ if (this._unsubscribe) {
8639
+ this._unsubscribe();
8640
+ }
8641
+ }
8642
+ });
8643
+
8644
+ const useMemo = hook(class extends Hook {
8645
+ constructor(id, state, fn, values) {
8646
+ super(id, state);
8647
+ this.value = fn();
8648
+ this.values = values;
8649
+ }
8650
+ update(fn, values) {
8651
+ if (this.hasChanged(values)) {
8652
+ this.values = values;
8653
+ this.value = fn();
8654
+ }
8655
+ return this.value;
8656
+ }
8657
+ hasChanged(values = []) {
8658
+ return values.some((value, i) => this.values[i] !== value);
8659
+ }
8660
+ });
8661
+
8662
+ function setLayoutEffects(state, cb) {
8663
+ state[layoutEffectsSymbol].push(cb);
8664
+ }
8665
+ const useLayoutEffect = createEffect(setLayoutEffects);
8666
+
8667
+ const useState = hook(class extends Hook {
8668
+ constructor(id, state, initialValue) {
8669
+ super(id, state);
8670
+ this.updater = this.updater.bind(this);
8671
+ if (typeof initialValue === 'function') {
8672
+ initialValue = initialValue();
8673
+ }
8674
+ this.makeArgs(initialValue);
8675
+ }
8676
+ update() {
8677
+ return this.args;
8678
+ }
8679
+ updater(value) {
8680
+ if (typeof value === 'function') {
8681
+ const updaterFn = value;
8682
+ const [previousValue] = this.args;
8683
+ value = updaterFn(previousValue);
8684
+ }
8685
+ this.makeArgs(value);
8686
+ this.state.update();
8687
+ }
8688
+ makeArgs(value) {
8689
+ this.args = Object.freeze([value, this.updater]);
8690
+ }
8691
+ });
8692
+
8693
+ const useReducer = hook(class extends Hook {
8694
+ constructor(id, state, _, initialState, init) {
8695
+ super(id, state);
8696
+ this.dispatch = this.dispatch.bind(this);
8697
+ this.currentState = init !== undefined ? init(initialState) : initialState;
8698
+ }
8699
+ update(reducer) {
8700
+ this.reducer = reducer;
8701
+ return [this.currentState, this.dispatch];
8702
+ }
8703
+ dispatch(action) {
8704
+ this.currentState = this.reducer(this.currentState, action);
8705
+ this.state.update();
8706
+ }
8707
+ });
8708
+
8709
+ /**
8710
+ * Helpers.
8711
+ */
8712
+
8713
+ var s$2 = 1000;
8714
+ var m$1 = s$2 * 60;
8715
+ var h$1 = m$1 * 60;
8716
+ var d$1 = h$1 * 24;
8717
+ var w = d$1 * 7;
8718
+ var y$1 = d$1 * 365.25;
8719
+
8720
+ /**
8721
+ * Parse or format the given `val`.
8722
+ *
8723
+ * Options:
8724
+ *
8725
+ * - `long` verbose formatting [false]
8726
+ *
8727
+ * @param {String|Number} val
8728
+ * @param {Object} [options]
8729
+ * @throws {Error} throw an error if val is not a non-empty string or a number
8730
+ * @return {String|Number}
8731
+ * @api public
8732
+ */
8733
+
8734
+ var ms = function(val, options) {
8735
+ options = options || {};
8736
+ var type = typeof val;
8737
+ if (type === 'string' && val.length > 0) {
8738
+ return parse$1(val);
8739
+ } else if (type === 'number' && isFinite(val)) {
8740
+ return options.long ? fmtLong(val) : fmtShort(val);
8741
+ }
8742
+ throw new Error(
8743
+ 'val is not a non-empty string or a valid number. val=' +
8744
+ JSON.stringify(val)
8745
+ );
8746
+ };
8747
+
8748
+ /**
8749
+ * Parse the given `str` and return milliseconds.
8750
+ *
8751
+ * @param {String} str
8752
+ * @return {Number}
8753
+ * @api private
8754
+ */
8755
+
8756
+ function parse$1(str) {
8757
+ str = String(str);
8758
+ if (str.length > 100) {
8759
+ return;
8760
+ }
8761
+ 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(
8762
+ str
8763
+ );
8764
+ if (!match) {
8765
+ return;
8766
+ }
8767
+ var n = parseFloat(match[1]);
8768
+ var type = (match[2] || 'ms').toLowerCase();
8769
+ switch (type) {
8770
+ case 'years':
8771
+ case 'year':
8772
+ case 'yrs':
8773
+ case 'yr':
8774
+ case 'y':
8775
+ return n * y$1;
8776
+ case 'weeks':
8777
+ case 'week':
8778
+ case 'w':
8779
+ return n * w;
8780
+ case 'days':
8781
+ case 'day':
8782
+ case 'd':
8783
+ return n * d$1;
8784
+ case 'hours':
8785
+ case 'hour':
8786
+ case 'hrs':
8787
+ case 'hr':
8788
+ case 'h':
8789
+ return n * h$1;
8790
+ case 'minutes':
8791
+ case 'minute':
8792
+ case 'mins':
8793
+ case 'min':
8794
+ case 'm':
8795
+ return n * m$1;
8796
+ case 'seconds':
8797
+ case 'second':
8798
+ case 'secs':
8799
+ case 'sec':
8800
+ case 's':
8801
+ return n * s$2;
8802
+ case 'milliseconds':
8803
+ case 'millisecond':
8804
+ case 'msecs':
8805
+ case 'msec':
8806
+ case 'ms':
8807
+ return n;
8808
+ default:
8809
+ return undefined;
8810
+ }
8811
+ }
8812
+
8813
+ /**
8814
+ * Short format for `ms`.
8815
+ *
8816
+ * @param {Number} ms
8817
+ * @return {String}
8818
+ * @api private
8819
+ */
8820
+
8821
+ function fmtShort(ms) {
8822
+ var msAbs = Math.abs(ms);
8823
+ if (msAbs >= d$1) {
8824
+ return Math.round(ms / d$1) + 'd';
8825
+ }
8826
+ if (msAbs >= h$1) {
8827
+ return Math.round(ms / h$1) + 'h';
8828
+ }
8829
+ if (msAbs >= m$1) {
8830
+ return Math.round(ms / m$1) + 'm';
8831
+ }
8832
+ if (msAbs >= s$2) {
8833
+ return Math.round(ms / s$2) + 's';
8834
+ }
8835
+ return ms + 'ms';
8836
+ }
8837
+
8838
+ /**
8839
+ * Long format for `ms`.
8840
+ *
8841
+ * @param {Number} ms
8842
+ * @return {String}
8843
+ * @api private
8844
+ */
8845
+
8846
+ function fmtLong(ms) {
8847
+ var msAbs = Math.abs(ms);
8848
+ if (msAbs >= d$1) {
8849
+ return plural(ms, msAbs, d$1, 'day');
8850
+ }
8851
+ if (msAbs >= h$1) {
8852
+ return plural(ms, msAbs, h$1, 'hour');
8853
+ }
8854
+ if (msAbs >= m$1) {
8855
+ return plural(ms, msAbs, m$1, 'minute');
8856
+ }
8857
+ if (msAbs >= s$2) {
8858
+ return plural(ms, msAbs, s$2, 'second');
8859
+ }
8860
+ return ms + ' ms';
8861
+ }
8862
+
8863
+ /**
8864
+ * Pluralization helper.
8865
+ */
8866
+
8867
+ function plural(ms, msAbs, n, name) {
8868
+ var isPlural = msAbs >= n * 1.5;
8869
+ return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
8870
+ }
8871
+
8872
+ /**
8873
+ * This is the common logic for both the Node.js and web browser
8874
+ * implementations of `debug()`.
8875
+ */
8876
+
8877
+ function setup(env) {
8878
+ createDebug.debug = createDebug;
8879
+ createDebug.default = createDebug;
8880
+ createDebug.coerce = coerce;
8881
+ createDebug.disable = disable;
8882
+ createDebug.enable = enable;
8883
+ createDebug.enabled = enabled;
8884
+ createDebug.humanize = ms;
8885
+ createDebug.destroy = destroy;
8886
+
8887
+ Object.keys(env).forEach(key => {
8888
+ createDebug[key] = env[key];
8889
+ });
8890
+
8891
+ /**
8892
+ * The currently active debug mode names, and names to skip.
8893
+ */
8894
+
8895
+ createDebug.names = [];
8896
+ createDebug.skips = [];
8897
+
8898
+ /**
8899
+ * Map of special "%n" handling functions, for the debug "format" argument.
8900
+ *
8901
+ * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N".
8902
+ */
8903
+ createDebug.formatters = {};
8904
+
8905
+ /**
8906
+ * Selects a color for a debug namespace
8907
+ * @param {String} namespace The namespace string for the for the debug instance to be colored
8908
+ * @return {Number|String} An ANSI color code for the given namespace
8909
+ * @api private
8910
+ */
8911
+ function selectColor(namespace) {
8912
+ let hash = 0;
8913
+
8914
+ for (let i = 0; i < namespace.length; i++) {
8915
+ hash = ((hash << 5) - hash) + namespace.charCodeAt(i);
8916
+ hash |= 0; // Convert to 32bit integer
8917
+ }
8918
+
8919
+ return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
8920
+ }
8921
+ createDebug.selectColor = selectColor;
8922
+
8923
+ /**
8924
+ * Create a debugger with the given `namespace`.
8925
+ *
8926
+ * @param {String} namespace
8927
+ * @return {Function}
8928
+ * @api public
8929
+ */
8930
+ function createDebug(namespace) {
8931
+ let prevTime;
8932
+ let enableOverride = null;
8933
+
8934
+ function debug(...args) {
8935
+ // Disabled?
8936
+ if (!debug.enabled) {
8937
+ return;
8938
+ }
8939
+
8940
+ const self = debug;
8941
+
8942
+ // Set `diff` timestamp
8943
+ const curr = Number(new Date());
8944
+ const ms = curr - (prevTime || curr);
8945
+ self.diff = ms;
8946
+ self.prev = prevTime;
8947
+ self.curr = curr;
8948
+ prevTime = curr;
8949
+
8950
+ args[0] = createDebug.coerce(args[0]);
8951
+
8952
+ if (typeof args[0] !== 'string') {
8953
+ // Anything else let's inspect with %O
8954
+ args.unshift('%O');
8955
+ }
8956
+
8957
+ // Apply any `formatters` transformations
8958
+ let index = 0;
8959
+ args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => {
8960
+ // If we encounter an escaped % then don't increase the array index
8961
+ if (match === '%%') {
8962
+ return '%';
8963
+ }
8964
+ index++;
8965
+ const formatter = createDebug.formatters[format];
8966
+ if (typeof formatter === 'function') {
8967
+ const val = args[index];
8968
+ match = formatter.call(self, val);
8969
+
8970
+ // Now we need to remove `args[index]` since it's inlined in the `format`
8971
+ args.splice(index, 1);
8972
+ index--;
8973
+ }
8974
+ return match;
8975
+ });
8976
+
8977
+ // Apply env-specific formatting (colors, etc.)
8978
+ createDebug.formatArgs.call(self, args);
8979
+
8980
+ const logFn = self.log || createDebug.log;
8981
+ logFn.apply(self, args);
8982
+ }
8983
+
8984
+ debug.namespace = namespace;
8985
+ debug.useColors = createDebug.useColors();
8986
+ debug.color = createDebug.selectColor(namespace);
8987
+ debug.extend = extend;
8988
+ debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release.
8989
+
8990
+ Object.defineProperty(debug, 'enabled', {
8991
+ enumerable: true,
8992
+ configurable: false,
8993
+ get: () => enableOverride === null ? createDebug.enabled(namespace) : enableOverride,
8994
+ set: v => {
8995
+ enableOverride = v;
8996
+ }
8997
+ });
8998
+
8999
+ // Env-specific initialization logic for debug instances
9000
+ if (typeof createDebug.init === 'function') {
9001
+ createDebug.init(debug);
9002
+ }
9003
+
9004
+ return debug;
9005
+ }
9006
+
9007
+ function extend(namespace, delimiter) {
9008
+ const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);
9009
+ newDebug.log = this.log;
9010
+ return newDebug;
9011
+ }
9012
+
9013
+ /**
9014
+ * Enables a debug mode by namespaces. This can include modes
9015
+ * separated by a colon and wildcards.
9016
+ *
9017
+ * @param {String} namespaces
9018
+ * @api public
9019
+ */
9020
+ function enable(namespaces) {
9021
+ createDebug.save(namespaces);
9022
+
9023
+ createDebug.names = [];
9024
+ createDebug.skips = [];
9025
+
9026
+ let i;
9027
+ const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/);
9028
+ const len = split.length;
9029
+
9030
+ for (i = 0; i < len; i++) {
9031
+ if (!split[i]) {
9032
+ // ignore empty strings
9033
+ continue;
9034
+ }
9035
+
9036
+ namespaces = split[i].replace(/\*/g, '.*?');
9037
+
9038
+ if (namespaces[0] === '-') {
9039
+ createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
9040
+ } else {
9041
+ createDebug.names.push(new RegExp('^' + namespaces + '$'));
9042
+ }
9043
+ }
9044
+ }
9045
+
9046
+ /**
9047
+ * Disable debug output.
9048
+ *
9049
+ * @return {String} namespaces
9050
+ * @api public
9051
+ */
9052
+ function disable() {
9053
+ const namespaces = [
9054
+ ...createDebug.names.map(toNamespace),
9055
+ ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace)
9056
+ ].join(',');
9057
+ createDebug.enable('');
9058
+ return namespaces;
9059
+ }
9060
+
9061
+ /**
9062
+ * Returns true if the given mode name is enabled, false otherwise.
9063
+ *
9064
+ * @param {String} name
9065
+ * @return {Boolean}
9066
+ * @api public
9067
+ */
9068
+ function enabled(name) {
9069
+ if (name[name.length - 1] === '*') {
9070
+ return true;
9071
+ }
9072
+
9073
+ let i;
9074
+ let len;
9075
+
9076
+ for (i = 0, len = createDebug.skips.length; i < len; i++) {
9077
+ if (createDebug.skips[i].test(name)) {
9078
+ return false;
9079
+ }
9080
+ }
9081
+
9082
+ for (i = 0, len = createDebug.names.length; i < len; i++) {
9083
+ if (createDebug.names[i].test(name)) {
9084
+ return true;
9085
+ }
9086
+ }
9087
+
9088
+ return false;
9089
+ }
9090
+
9091
+ /**
9092
+ * Convert regexp to namespace
9093
+ *
9094
+ * @param {RegExp} regxep
9095
+ * @return {String} namespace
9096
+ * @api private
9097
+ */
9098
+ function toNamespace(regexp) {
9099
+ return regexp.toString()
9100
+ .substring(2, regexp.toString().length - 2)
9101
+ .replace(/\.\*\?$/, '*');
9102
+ }
9103
+
9104
+ /**
9105
+ * Coerce `val`.
9106
+ *
9107
+ * @param {Mixed} val
9108
+ * @return {Mixed}
9109
+ * @api private
9110
+ */
9111
+ function coerce(val) {
9112
+ if (val instanceof Error) {
9113
+ return val.stack || val.message;
9114
+ }
9115
+ return val;
9116
+ }
9117
+
9118
+ /**
9119
+ * XXX DO NOT USE. This is a temporary stub function.
9120
+ * XXX It WILL be removed in the next major release.
9121
+ */
9122
+ function destroy() {
9123
+ console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
9124
+ }
9125
+
9126
+ createDebug.enable(createDebug.load());
9127
+
9128
+ return createDebug;
9129
+ }
9130
+
9131
+ var common = setup;
9132
+
9133
+ var browser$1 = stencilHooks_module.createCommonjsModule(function (module, exports) {
9134
+ /* eslint-env browser */
9135
+
9136
+ /**
9137
+ * This is the web browser implementation of `debug()`.
9138
+ */
9139
+
9140
+ exports.formatArgs = formatArgs;
9141
+ exports.save = save;
9142
+ exports.load = load;
9143
+ exports.useColors = useColors;
9144
+ exports.storage = localstorage();
9145
+ exports.destroy = (() => {
9146
+ let warned = false;
9147
+
9148
+ return () => {
9149
+ if (!warned) {
9150
+ warned = true;
9151
+ console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.');
9152
+ }
9153
+ };
9154
+ })();
9155
+
9156
+ /**
9157
+ * Colors.
9158
+ */
9159
+
9160
+ exports.colors = [
9161
+ '#0000CC',
9162
+ '#0000FF',
9163
+ '#0033CC',
9164
+ '#0033FF',
9165
+ '#0066CC',
9166
+ '#0066FF',
9167
+ '#0099CC',
9168
+ '#0099FF',
9169
+ '#00CC00',
9170
+ '#00CC33',
9171
+ '#00CC66',
9172
+ '#00CC99',
9173
+ '#00CCCC',
9174
+ '#00CCFF',
9175
+ '#3300CC',
9176
+ '#3300FF',
9177
+ '#3333CC',
9178
+ '#3333FF',
9179
+ '#3366CC',
9180
+ '#3366FF',
9181
+ '#3399CC',
9182
+ '#3399FF',
9183
+ '#33CC00',
9184
+ '#33CC33',
9185
+ '#33CC66',
9186
+ '#33CC99',
9187
+ '#33CCCC',
9188
+ '#33CCFF',
9189
+ '#6600CC',
9190
+ '#6600FF',
9191
+ '#6633CC',
9192
+ '#6633FF',
9193
+ '#66CC00',
9194
+ '#66CC33',
9195
+ '#9900CC',
9196
+ '#9900FF',
9197
+ '#9933CC',
9198
+ '#9933FF',
9199
+ '#99CC00',
9200
+ '#99CC33',
9201
+ '#CC0000',
9202
+ '#CC0033',
9203
+ '#CC0066',
9204
+ '#CC0099',
9205
+ '#CC00CC',
9206
+ '#CC00FF',
9207
+ '#CC3300',
9208
+ '#CC3333',
9209
+ '#CC3366',
9210
+ '#CC3399',
9211
+ '#CC33CC',
9212
+ '#CC33FF',
9213
+ '#CC6600',
9214
+ '#CC6633',
9215
+ '#CC9900',
9216
+ '#CC9933',
9217
+ '#CCCC00',
9218
+ '#CCCC33',
9219
+ '#FF0000',
9220
+ '#FF0033',
9221
+ '#FF0066',
9222
+ '#FF0099',
9223
+ '#FF00CC',
9224
+ '#FF00FF',
9225
+ '#FF3300',
9226
+ '#FF3333',
9227
+ '#FF3366',
9228
+ '#FF3399',
9229
+ '#FF33CC',
9230
+ '#FF33FF',
9231
+ '#FF6600',
9232
+ '#FF6633',
9233
+ '#FF9900',
9234
+ '#FF9933',
9235
+ '#FFCC00',
9236
+ '#FFCC33'
9237
+ ];
9238
+
9239
+ /**
9240
+ * Currently only WebKit-based Web Inspectors, Firefox >= v31,
9241
+ * and the Firebug extension (any Firefox version) are known
9242
+ * to support "%c" CSS customizations.
9243
+ *
9244
+ * TODO: add a `localStorage` variable to explicitly enable/disable colors
9245
+ */
9246
+
9247
+ // eslint-disable-next-line complexity
9248
+ function useColors() {
9249
+ // NB: In an Electron preload script, document will be defined but not fully
9250
+ // initialized. Since we know we're in Chrome, we'll just detect this case
9251
+ // explicitly
9252
+ if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {
9253
+ return true;
9254
+ }
9255
+
9256
+ // Internet Explorer and Edge do not support colors.
9257
+ if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
9258
+ return false;
9259
+ }
9260
+
9261
+ // Is webkit? http://stackoverflow.com/a/16459606/376773
9262
+ // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
9263
+ return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
9264
+ // Is firebug? http://stackoverflow.com/a/398120/376773
9265
+ (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) ||
9266
+ // Is firefox >= v31?
9267
+ // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
9268
+ (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
9269
+ // Double check webkit in userAgent just in case we are in a worker
9270
+ (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
9271
+ }
9272
+
9273
+ /**
9274
+ * Colorize log arguments if enabled.
9275
+ *
9276
+ * @api public
9277
+ */
9278
+
9279
+ function formatArgs(args) {
9280
+ args[0] = (this.useColors ? '%c' : '') +
9281
+ this.namespace +
9282
+ (this.useColors ? ' %c' : ' ') +
9283
+ args[0] +
9284
+ (this.useColors ? '%c ' : ' ') +
9285
+ '+' + module.exports.humanize(this.diff);
9286
+
9287
+ if (!this.useColors) {
9288
+ return;
9289
+ }
9290
+
9291
+ const c = 'color: ' + this.color;
9292
+ args.splice(1, 0, c, 'color: inherit');
9293
+
9294
+ // The final "%c" is somewhat tricky, because there could be other
9295
+ // arguments passed either before or after the %c, so we need to
9296
+ // figure out the correct index to insert the CSS into
9297
+ let index = 0;
9298
+ let lastC = 0;
9299
+ args[0].replace(/%[a-zA-Z%]/g, match => {
9300
+ if (match === '%%') {
9301
+ return;
9302
+ }
9303
+ index++;
9304
+ if (match === '%c') {
9305
+ // We only are interested in the *last* %c
9306
+ // (the user may have provided their own)
9307
+ lastC = index;
9308
+ }
9309
+ });
9310
+
9311
+ args.splice(lastC, 0, c);
9312
+ }
9313
+
9314
+ /**
9315
+ * Invokes `console.debug()` when available.
9316
+ * No-op when `console.debug` is not a "function".
9317
+ * If `console.debug` is not available, falls back
9318
+ * to `console.log`.
9319
+ *
9320
+ * @api public
9321
+ */
9322
+ exports.log = console.debug || console.log || (() => {});
9323
+
9324
+ /**
9325
+ * Save `namespaces`.
9326
+ *
9327
+ * @param {String} namespaces
9328
+ * @api private
9329
+ */
9330
+ function save(namespaces) {
9331
+ try {
9332
+ if (namespaces) {
9333
+ exports.storage.setItem('debug', namespaces);
9334
+ } else {
9335
+ exports.storage.removeItem('debug');
9336
+ }
9337
+ } catch (error) {
9338
+ // Swallow
9339
+ // XXX (@Qix-) should we be logging these?
9340
+ }
9341
+ }
9342
+
9343
+ /**
9344
+ * Load `namespaces`.
9345
+ *
9346
+ * @return {String} returns the previously persisted debug modes
9347
+ * @api private
9348
+ */
9349
+ function load() {
9350
+ let r;
9351
+ try {
9352
+ r = exports.storage.getItem('debug');
9353
+ } catch (error) {
9354
+ // Swallow
9355
+ // XXX (@Qix-) should we be logging these?
9356
+ }
9357
+
9358
+ // If debug isn't set in LS, and we're in Electron, try to load $DEBUG
9359
+ if (!r && typeof process !== 'undefined' && 'env' in process) {
9360
+ r = process.env.DEBUG;
9361
+ }
9362
+
9363
+ return r;
9364
+ }
9365
+
9366
+ /**
9367
+ * Localstorage attempts to return the localstorage.
9368
+ *
9369
+ * This is necessary because safari throws
9370
+ * when a user disables cookies/localstorage
9371
+ * and you attempt to access it.
9372
+ *
9373
+ * @return {LocalStorage}
9374
+ * @api private
9375
+ */
9376
+
9377
+ function localstorage() {
9378
+ try {
9379
+ // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context
9380
+ // The Browser also has localStorage in the global context.
9381
+ return localStorage;
9382
+ } catch (error) {
9383
+ // Swallow
9384
+ // XXX (@Qix-) should we be logging these?
9385
+ }
9386
+ }
9387
+
9388
+ module.exports = common(exports);
9389
+
9390
+ const {formatters} = module.exports;
9391
+
9392
+ /**
9393
+ * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
9394
+ */
9395
+
9396
+ formatters.j = function (v) {
9397
+ try {
9398
+ return JSON.stringify(v);
9399
+ } catch (error) {
9400
+ return '[UnexpectedJSONParseError]: ' + error.message;
9401
+ }
9402
+ };
9403
+ });
9404
+
9405
+ function s$3(){return index.getRenderingRef()}function l$1(){var e=s$3();return index.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");
9406
+
8240
9407
  var umd = stencilHooks_module.createCommonjsModule(function (module, exports) {
8241
9408
  (function (global, factory) {
8242
9409
  factory(exports) ;
@@ -8796,7 +9963,7 @@ var umd = stencilHooks_module.createCommonjsModule(function (module, exports) {
8796
9963
 
8797
9964
  });
8798
9965
 
8799
- var H={current:void 0};function T(){if(void 0===H.current)throw new Error("no implementation of useHost provided");return H.current()}function J(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");H.current=e;}function Q(){lazilyStartLocaleContext();var t=T();return stencilHooks_module.h(t,LOCALE_CONTEXT_NAME)}function z(){lazilyStartProgramContext();var e=T();return stencilHooks_module.h(e,PROGRAM_CONTEXT_NAME)}function B(){var e;return null==(e=K())?void 0:e.jwt}function K(){lazilyStartUserContext();var e=T(),n=stencilHooks_module.h(e,USER_CONTEXT_NAME),t=userIdentityFromJwt(null==n?void 0:n.jwt);if(isDemo()||!n||t)return n;setUserIdentity(void 0);}function Z(){lazilyStartVerificationContext();var e=T(),n=stencilHooks_module.h(e,VERIFICATION_CONTEXT_NAME),t=checkVerificationToken(null==n?void 0:n.token);if(isDemo()||!n||t)return n;setVerificationContext(void 0);}var Y=getTenantAlias,ee=getAppDomain,ne=getEngagementMedium;function te(){return (te=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 re(e,n){return (re=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function ae(e,n){return n||(n=e.slice(0)),e.raw=n,e}function oe(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 ie(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 oe(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)?oe(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 se=function(){return (se=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)},ue=new Map,ce=new Map,de=!0,le=!1;function fe(e){return e.replace(/[\s,]+/g," ").trim()}function me(e){var n,t,r,a=fe(e);if(!ue.has(a)){var o=parse(e,{experimentalFragmentVariables:le});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");ue.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=fe((i=e.loc).source.body.substring(i.start,i.end)),o=ce.get(n);o&&!o.has(a)?de&&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||ce.set(n,o=new Set),o.add(a),t.has(a)||(t.add(a),r.push(e));}else r.push(e);var i;}),se(se({},n),{definitions:r}))));}return ue.get(a)}function ve(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];}),me(r)}var ge,pe=ve;(ge=ve||(ve={})).gql=pe,ge.resetCaches=function(){ue.clear(),ce.clear();},ge.disableFragmentWarnings=function(){de=!1;},ge.enableExperimentalFragmentVariables=function(){le=!0;},ge.disableExperimentalFragmentVariables=function(){le=!1;},ve.default=ve;var he=ve;function ye(e,n){try{var t=e();}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}var Ce=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=ie(t.unmergedQueryAddedEvents);!(n=u()).done;)a.next(n.value);return s.length?Promise.resolve(ye(function(){return Promise.resolve(r.superRequest(o,i)).then(function(e){Me(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:De(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=Ie(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=Ee(e.response.data,t);s[a]=we(s[a],u);var l=t.query,f=t.variables,m=te({},e.response,{errors:[n],data:d,path:s}),v=new types.ClientError(m,{query:"string"!=typeof l?print(l):l,variables:f});return Se(t,v),!0}return !1});},c=ie(r);!(a=c()).done;)u();Me(t,i);}();if("object"==typeof n)return n.v}else De(s,e);})):Promise.resolve()}catch(e){return Promise.reject(e)}}),a.subscribe(function(e){try{var n=ye(function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then(function(n){Fe(n,e);})},function(n){Se(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,re(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:be(),options:t,resolve:a,reject:o};r.subject.next(i);})},r}(dist$1.GraphQLClient),be=function(){return nanoid().replace(/[-_]/g,"")},we=function(e,n){return e.replace("_"+n,"")},Ie=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}},k("BatchedQuery")),a=r.document,o=r.variables;return {mergedQuery:a&&print(a),mergedVariables:o,mergedQueryAddedEvents:n,unmergedQueryAddedEvents:t}},Ee=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=te({},n,((a={})[we(t,r)]=e[t],a))),n},{})},Fe=function(e,n){(0, n.resolve)(e);},Me=function(e,n){for(var t,r=ie(n);!(t=r()).done;){var a=t.value,o=Ee(e,a);a.resolve(o);}},Se=function(e,n){(0, e.reject)(n);},De=function(e,n){for(var t,r=ie(e);!(t=r()).done;)(0, t.value.reject)(n);},$e="sq:graphql-client",ke=src(function(e,n,t){return new Ce(e+"/api/v1/"+n+"/graphql",{headers:{Authorization:"Bearer "+(t||"")}})});function Ae(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 qe(e,n,t){void 0===t&&(t={batch:!0,protected:!1});var r=function(e){var n,t=B(),r=null==(n=Z())?void 0:n.token,a=ee(),o=Y(),i=ke(a,o,null!=e&&e.protected?r:t),s=T(),u=stencilHooks_module.h(s,"sq:graphql-client",{attempts:0});return null!=u?u:i}({protected:t.protected}),a=stencilHooks_module.useReducer(Ae,n),o=a[1];return [a[0],useCallback(function(n,a){void 0===a&&(a=!1);try{if(!r){var i=new Error("No GraphQL client found");return o({type:"errors",payload:i}),Promise.resolve(i)}return Promise.resolve(function(i,s){try{var u=(a||o({type:"loading"}),Promise.resolve(r.request(e,n,t)).then(function(e){return o({type:"data",payload:e}),e}));}catch(e){return s(e)}return u&&u.then?u.then(void 0,s):u}(0,function(e){return o({type:"errors",payload:e}),e}))}catch(e){return Promise.reject(e)}},[r,e,o])]}var je,Re={loading:!1,data:void 0,errors:void 0};function xe(e){var n=qe(e,Re);return [n[1],n[0]]}var Ve,Oe=he(je||(je=ae(["\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 We(){var e=xe(Oe),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 Ne,_e=he(Ve||(Ve=ae(["\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 Ue(){var e=xe(_e),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 Le,He=he(Ne||(Ne=ae(["\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 Te(){var e=xe(He),n=e[0],t=e[1],r=t.loading,a=t.data,o$1=t.errors,i=stencilHooks_module.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$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 Je,Qe=he(Le||(Le=ae(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function ze(){var e=xe(Qe),n=e[1];return [e[0],{loading:n.loading,data:n.data,errors:n.errors}]}var Ge,Be=he(Je||(Je=ae(["\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 Ke(){var e=xe(Be),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 Ze=he(Ge||(Ge=ae(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Xe(){return xe(Ze)}function Ye(){var e=T();return {refresh:useCallback(function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}));},[e])}}function en(e){var n=e.skip,t=void 0!==n&&n,r=e.update,a=e.variables;stencilHooks_module.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=stencilHooks_module.useRef(e),t=stencilHooks_module.useRef(0);return equal(e,n.current)||(n.current=e,t.current+=1),stencilHooks_module.useMemo(function(){return n.current},[t.current])}([a,r,t]));}var nn,tn={loading:!1,data:void 0,errors:void 0},rn=Symbol();function an(e){var n=qe(e,tn),t=n[0],r=n[1],a=stencilHooks_module.useRef(rn);en({skip:a.current===rn,update:r,variables:a.current});var o=useCallback(function(e){return a.current=e,r(e)},[r]);return [r,te({},t,{refetch:o})]}var on,sn=he(nn||(nn=ae(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function un(){var e=K(),n=an(sn),t=n[0],r=n[1],a=r.refetch,o=function(n){n instanceof Error||!n.managedIdentitySession||setUserIdentity(te({},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 cn,dn=he(on||(on=ae(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function ln(){var e=un()[0],n=xe(dn),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 fn,mn=he(cn||(cn=ae(["\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 vn(){return xe(mn)}var gn,pn=he(fn||(fn=ae(["\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 hn(){return xe(pn)}var yn=he(gn||(gn=ae(["\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 Cn(){var e=z(),n=getEnvironment(),t=xe(yn),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}]}function bn(e,n){var t=stencilHooks_module.useRef();return t.current&&equal(n,t.current.key)||(t.current={key:n,value:e()}),t.current.value}function wn(){return stencilHooks_module.useReducer(function(e){return e+1},0)}function In(e){for(var n,t=ie(Object.getOwnPropertyNames(e));!(n=t()).done;){var r=e[n.value];r&&"object"==typeof r&&In(r);}return Object.freeze(e)}var Pn={loading:!0,data:void 0,errors:void 0};function En(e,n,t,r){var a=qe(e,Pn,te({batch:!0,protected:!1},r||{})),o=a[0],i=a[1],s=wn(),u=s[1];return bn(function(){!t&&i(n);},[e,n,i,s[0],t]),en({skip:t,update:i,variables:n}),In(te({},o,{refetch:u}))}function Fn(e){var n=T(),t=stencilHooks_module.y(n,$n(e.namespace),e.initialValue),r=t[0],a=t[1];return stencilHooks_module.y(n,kn(e.namespace),[r,a]),[r,a]}function Mn(e){var n=stencilHooks_module.d(kn(e)),t=stencilHooks_module.d($n(e));return n?[t,n[1]]:[void 0,void 0]}function Sn(e){var n=stencilHooks_module.d(kn(e));if(n)return n[1]}function Dn(e){return stencilHooks_module.d($n(e))}function $n(e){return e+"-value"}function kn(e){return e+"-state"}function An(e){var n=T(),t=En(e.query,e.variables||{},e.skip,te({batch:!0},e.options||{})),r=stencilHooks_module.y(n,$n(e.namespace),t),a=r[0],o=r[1];return stencilHooks_module.useEffect(function(){umd.deepEqual(t,a)||o(t);},[t,a]),t}function qn(e){return stencilHooks_module.d($n(e))||{data:null,loading:!0,refetch:function(){return console.warn("component still loading")}}}function jn(){var e=wn()[1];return stencilHooks_module.useEffect(function(){return history_default.listen(function(){e();})},[]),history_default.location}var Rn,xn=history_default;function Vn(e){var n=stencilHooks_module.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(te({},t,{limit:e,offset:o}));},offset:a,setCurrentPage:function(e){var n=i(e,o);r(function(e){return te({},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 On(e,n,t,r,a){var o;void 0===r&&(r={}),void 0===a&&(a=!1);var i=Vn(t),s=i.limit,u=i.setLimit,c=i.setCurrentPage,d=i.calculatePagination,l=En(e,te({limit:s,offset:i.offset},r),a),f=l.loading,m=l.errors,v=l.refetch,g=n(l.data),p=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:p.currentPage,pageCount:p.pageCount,pageProgress:p.pageProgress},callbacks:{refetch:v,setLimit:u,setCurrentPage:c}}}var Un=dist$1.gql(Rn||(Rn=ae(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Hn=1e3,Tn=60*Hn,Jn=60*Tn,Qn=24*Jn,zn=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*Qn;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Jn;case"minutes":case"minute":case"mins":case"min":case"m":return t*Tn;case"seconds":case"second":case"secs":case"sec":case"s":return t*Hn;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>=Qn?Gn(e,n,Qn,"day"):n>=Jn?Gn(e,n,Jn,"hour"):n>=Tn?Gn(e,n,Tn,"minute"):n>=Hn?Gn(e,n,Hn,"second"):e+" ms"}(e):function(e){var n=Math.abs(e);return n>=Qn?Math.round(e/Qn)+"d":n>=Jn?Math.round(e/Jn)+"h":n>=Tn?Math.round(e/Tn)+"m":n>=Hn?Math.round(e/Hn)+"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 Bn,Kn,Zn,Xn,Yn,et=(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=zn,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}};}(Bn={exports:{}},Bn.exports),Bn.exports),nt=et("sq:load-event"),tt=dist$1.gql(Kn||(Kn=ae(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var at=et("sq:useForm"),ot=dist$1.gql(Zn||(Zn=ae(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),it=dist$1.gql(Xn||(Xn=ae(["\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"]))),st=dist$1.gql(Yn||(Yn=ae(["\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"])));
9966
+ var H={current:void 0};function T(){if(void 0===H.current)throw new Error("no implementation of useHost provided");return H.current()}function J(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");H.current=e;}function Q(){lazilyStartLocaleContext();var t=T();return h(t,LOCALE_CONTEXT_NAME)}function z(){lazilyStartProgramContext();var e=T();return h(e,PROGRAM_CONTEXT_NAME)}function B(){var e;return null==(e=K())?void 0:e.jwt}function K(){lazilyStartUserContext();var e=T(),n=h(e,USER_CONTEXT_NAME),t=userIdentityFromJwt(null==n?void 0:n.jwt);if(isDemo()||!n||t)return n;setUserIdentity(void 0);}function Z(){lazilyStartVerificationContext();var e=T(),n=h(e,VERIFICATION_CONTEXT_NAME),t=checkVerificationToken(null==n?void 0:n.token);if(isDemo()||!n||t)return n;setVerificationContext(void 0);}var Y=getTenantAlias,ee=getAppDomain,ne=getEngagementMedium;function te(){return (te=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 re(e,n){return (re=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function ae(e,n){return n||(n=e.slice(0)),e.raw=n,e}function oe(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 ie(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 oe(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)?oe(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 se=function(){return (se=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)},ue=new Map,ce=new Map,de=!0,le=!1;function fe(e){return e.replace(/[\s,]+/g," ").trim()}function me(e){var n,t,r,a=fe(e);if(!ue.has(a)){var o=parse(e,{experimentalFragmentVariables:le});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");ue.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=fe((i=e.loc).source.body.substring(i.start,i.end)),o=ce.get(n);o&&!o.has(a)?de&&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||ce.set(n,o=new Set),o.add(a),t.has(a)||(t.add(a),r.push(e));}else r.push(e);var i;}),se(se({},n),{definitions:r}))));}return ue.get(a)}function ve(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];}),me(r)}var ge,pe=ve;(ge=ve||(ve={})).gql=pe,ge.resetCaches=function(){ue.clear(),ce.clear();},ge.disableFragmentWarnings=function(){de=!1;},ge.enableExperimentalFragmentVariables=function(){le=!0;},ge.disableExperimentalFragmentVariables=function(){le=!1;},ve.default=ve;var he=ve;function ye(e,n){try{var t=e();}catch(e){return n(e)}return t&&t.then?t.then(void 0,n):t}var Ce=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=ie(t.unmergedQueryAddedEvents);!(n=u()).done;)a.next(n.value);return s.length?Promise.resolve(ye(function(){return Promise.resolve(r.superRequest(o,i)).then(function(e){Me(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:De(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=Ie(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=Ee(e.response.data,t);s[a]=we(s[a],u);var l=t.query,f=t.variables,m=te({},e.response,{errors:[n],data:d,path:s}),v=new types.ClientError(m,{query:"string"!=typeof l?print(l):l,variables:f});return Se(t,v),!0}return !1});},c=ie(r);!(a=c()).done;)u();Me(t,i);}();if("object"==typeof n)return n.v}else De(s,e);})):Promise.resolve()}catch(e){return Promise.reject(e)}}),a.subscribe(function(e){try{var n=ye(function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then(function(n){Fe(n,e);})},function(n){Se(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,re(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:be(),options:t,resolve:a,reject:o};r.subject.next(i);})},r}(dist$1.GraphQLClient),be=function(){return nanoid().replace(/[-_]/g,"")},we=function(e,n){return e.replace("_"+n,"")},Ie=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}},k("BatchedQuery")),a=r.document,o=r.variables;return {mergedQuery:a&&print(a),mergedVariables:o,mergedQueryAddedEvents:n,unmergedQueryAddedEvents:t}},Ee=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=te({},n,((a={})[we(t,r)]=e[t],a))),n},{})},Fe=function(e,n){(0, n.resolve)(e);},Me=function(e,n){for(var t,r=ie(n);!(t=r()).done;){var a=t.value,o=Ee(e,a);a.resolve(o);}},Se=function(e,n){(0, e.reject)(n);},De=function(e,n){for(var t,r=ie(e);!(t=r()).done;)(0, t.value.reject)(n);},$e="sq:graphql-client",ke=src(function(e,n,t){return new Ce(e+"/api/v1/"+n+"/graphql",{headers:{Authorization:"Bearer "+(t||"")}})});function Ae(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 qe(e,n,t){void 0===t&&(t={batch:!0,protected:!1});var r=function(e){var n,t=B(),r=null==(n=Z())?void 0:n.token,a=ee(),o=Y(),i=ke(a,o,null!=e&&e.protected?r:t),s=T(),u=h(s,"sq:graphql-client",{attempts:0});return null!=u?u:i}({protected:t.protected}),a=stencilHooks_module.useReducer(Ae,n),o=a[1];return [a[0],useCallback(function(n,a){void 0===a&&(a=!1);try{if(!r){var i=new Error("No GraphQL client found");return o({type:"errors",payload:i}),Promise.resolve(i)}return Promise.resolve(function(i,s){try{var u=(a||o({type:"loading"}),Promise.resolve(r.request(e,n,t)).then(function(e){return o({type:"data",payload:e}),e}));}catch(e){return s(e)}return u&&u.then?u.then(void 0,s):u}(0,function(e){return o({type:"errors",payload:e}),e}))}catch(e){return Promise.reject(e)}},[r,e,o])]}var je,Re={loading:!1,data:void 0,errors:void 0};function xe(e){var n=qe(e,Re);return [n[1],n[0]]}var Ve,Oe=he(je||(je=ae(["\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 We(){var e=xe(Oe),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 Ne,_e=he(Ve||(Ve=ae(["\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 Ue(){var e=xe(_e),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 Le,He=he(Ne||(Ne=ae(["\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 Te(){var e=xe(He),n=e[0],t=e[1],r=t.loading,a=t.data,o=t.errors,i=stencilHooks_module.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 Je,Qe=he(Le||(Le=ae(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function ze(){var e=xe(Qe),n=e[1];return [e[0],{loading:n.loading,data:n.data,errors:n.errors}]}var Ge,Be=he(Je||(Je=ae(["\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 Ke(){var e=xe(Be),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 Ze=he(Ge||(Ge=ae(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Xe(){return xe(Ze)}function Ye(){var e=T();return {refresh:useCallback(function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}));},[e])}}function en(e){var n=e.skip,t=void 0!==n&&n,r=e.update,a=e.variables;stencilHooks_module.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=stencilHooks_module.useRef(e),t=stencilHooks_module.useRef(0);return equal$1(e,n.current)||(n.current=e,t.current+=1),stencilHooks_module.useMemo(function(){return n.current},[t.current])}([a,r,t]));}var nn,tn={loading:!1,data:void 0,errors:void 0},rn=Symbol();function an(e){var n=qe(e,tn),t=n[0],r=n[1],a=stencilHooks_module.useRef(rn);en({skip:a.current===rn,update:r,variables:a.current});var o=useCallback(function(e){return a.current=e,r(e)},[r]);return [r,te({},t,{refetch:o})]}var on,sn=he(nn||(nn=ae(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function un(){var e=K(),n=an(sn),t=n[0],r=n[1],a=r.refetch,o=function(n){n instanceof Error||!n.managedIdentitySession||setUserIdentity(te({},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 cn,dn=he(on||(on=ae(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function ln(){var e=un()[0],n=xe(dn),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 fn,mn=he(cn||(cn=ae(["\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 vn(){return xe(mn)}var gn,pn=he(fn||(fn=ae(["\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 hn(){return xe(pn)}var yn=he(gn||(gn=ae(["\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 Cn(){var e=z(),n=getEnvironment(),t=xe(yn),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}]}function bn(e,n){var t=stencilHooks_module.useRef();return t.current&&equal$1(n,t.current.key)||(t.current={key:n,value:e()}),t.current.value}function wn(){return stencilHooks_module.useReducer(function(e){return e+1},0)}function In(e){for(var n,t=ie(Object.getOwnPropertyNames(e));!(n=t()).done;){var r=e[n.value];r&&"object"==typeof r&&In(r);}return Object.freeze(e)}var Pn={loading:!0,data:void 0,errors:void 0};function En(e,n,t,r){var a=qe(e,Pn,te({batch:!0,protected:!1},r||{})),o=a[0],i=a[1],s=wn(),u=s[1];return bn(function(){!t&&i(n);},[e,n,i,s[0],t]),en({skip:t,update:i,variables:n}),In(te({},o,{refetch:u}))}function Fn(e){var n=T(),t=y(n,$n(e.namespace),e.initialValue),r=t[0],a=t[1];return y(n,kn(e.namespace),[r,a]),[r,a]}function Mn(e){var n=d$2(kn(e)),t=d$2($n(e));return n?[t,n[1]]:[void 0,void 0]}function Sn(e){var n=d$2(kn(e));if(n)return n[1]}function Dn(e){return d$2($n(e))}function $n(e){return e+"-value"}function kn(e){return e+"-state"}function An(e){var n=T(),t=En(e.query,e.variables||{},e.skip,te({batch:!0},e.options||{})),r=y(n,$n(e.namespace),t),a=r[0],o=r[1];return stencilHooks_module.useEffect(function(){umd.deepEqual(t,a)||o(t);},[t,a]),t}function qn(e){return d$2($n(e))||{data:null,loading:!0,refetch:function(){return console.warn("component still loading")}}}function jn(){var e=wn()[1];return stencilHooks_module.useEffect(function(){return history_default.listen(function(){e();})},[]),history_default.location}var Rn,xn=history_default;function Vn(e){var n=stencilHooks_module.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(te({},t,{limit:e,offset:o}));},offset:a,setCurrentPage:function(e){var n=i(e,o);r(function(e){return te({},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 On(e,n,t,r,a){var o;void 0===r&&(r={}),void 0===a&&(a=!1);var i=Vn(t),s=i.limit,u=i.setLimit,c=i.setCurrentPage,d=i.calculatePagination,l=En(e,te({limit:s,offset:i.offset},r),a),f=l.loading,m=l.errors,v=l.refetch,g=n(l.data),p=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:p.currentPage,pageCount:p.pageCount,pageProgress:p.pageProgress},callbacks:{refetch:v,setLimit:u,setCurrentPage:c}}}var Un=dist$1.gql(Rn||(Rn=ae(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Hn=1e3,Tn=60*Hn,Jn=60*Tn,Qn=24*Jn,zn=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*Qn;case"hours":case"hour":case"hrs":case"hr":case"h":return t*Jn;case"minutes":case"minute":case"mins":case"min":case"m":return t*Tn;case"seconds":case"second":case"secs":case"sec":case"s":return t*Hn;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>=Qn?Gn(e,n,Qn,"day"):n>=Jn?Gn(e,n,Jn,"hour"):n>=Tn?Gn(e,n,Tn,"minute"):n>=Hn?Gn(e,n,Hn,"second"):e+" ms"}(e):function(e){var n=Math.abs(e);return n>=Qn?Math.round(e/Qn)+"d":n>=Jn?Math.round(e/Jn)+"h":n>=Tn?Math.round(e/Tn)+"m":n>=Hn?Math.round(e/Hn)+"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 Bn,Kn,Zn,Xn,Yn,et=(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=zn,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}};}(Bn={exports:{}},Bn.exports),Bn.exports),nt=et("sq:load-event"),tt=dist$1.gql(Kn||(Kn=ae(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var at=et("sq:useForm"),ot=dist$1.gql(Zn||(Zn=ae(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),it=dist$1.gql(Xn||(Xn=ae(["\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"]))),st=dist$1.gql(Yn||(Yn=ae(["\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"])));
8800
9967
 
8801
9968
  exports.$e = $e;
8802
9969
  exports.$n = $n;
@@ -8821,19 +9988,16 @@ exports.Xe = Xe;
8821
9988
  exports.Y = Y;
8822
9989
  exports.Ye = Ye;
8823
9990
  exports.an = an;
8824
- exports.dist = dist$1;
8825
9991
  exports.getEnvironmentSDK = getEnvironmentSDK;
8826
9992
  exports.hn = hn;
8827
9993
  exports.isDemo = isDemo;
8828
9994
  exports.jn = jn;
8829
9995
  exports.ke = ke;
8830
9996
  exports.ln = ln;
8831
- exports.memoize = memoize$1;
8832
9997
  exports.ne = ne;
8833
9998
  exports.qn = qn;
8834
9999
  exports.setProgramId = setProgramId;
8835
10000
  exports.setUserIdentity = setUserIdentity;
8836
- exports.src = src;
8837
10001
  exports.un = un;
8838
10002
  exports.useCallback = useCallback;
8839
10003
  exports.vn = vn;