@saasquatch/mint-components 1.6.2-10 → 1.6.2-13

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 (333) hide show
  1. package/dist/cjs/{GenericTableView-47869553.js → GenericTableView-9271483b.js} +1 -1
  2. package/dist/cjs/{JSS-97fd087e.js → JSS-8503a151.js} +35 -19
  3. package/dist/cjs/{ShadowViewAddon-0ce4871c.js → ShadowViewAddon-58ede93c.js} +17 -21
  4. package/dist/cjs/{global-4e52f274.js → global-b645d18a.js} +2 -2
  5. package/dist/cjs/{index.module-7972acac.js → index.module-93c78ac7.js} +227 -535
  6. package/dist/cjs/loader.cjs.js +2 -3
  7. package/dist/cjs/mint-components.cjs.js +2 -3
  8. package/dist/cjs/{re-render-99b2655c.js → re-render-afeabe91.js} +4 -4
  9. package/dist/cjs/{sqm-asset-card-view-3da8cac1.js → sqm-asset-card-view-59c39ed2.js} +1 -1
  10. package/dist/cjs/sqm-asset-card.cjs.entry.js +3 -4
  11. package/dist/cjs/sqm-big-stat_35.cjs.entry.js +87 -93
  12. package/dist/cjs/sqm-empty_5.cjs.entry.js +3 -4
  13. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +5 -6
  14. package/dist/cjs/{sqm-hero-view-bc763ed2.js → sqm-hero-view-ba78dcaf.js} +1 -1
  15. package/dist/cjs/sqm-hero.cjs.entry.js +2 -3
  16. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +4 -5
  17. package/dist/cjs/{sqm-navigation-sidebar-item-view-b3ca14b4.js → sqm-navigation-sidebar-item-view-2eda59bf.js} +3 -3
  18. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +4 -5
  19. package/dist/cjs/{sqm-navigation-sidebar-view-969adcdc.js → sqm-navigation-sidebar-view-2ffde416.js} +1 -1
  20. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +2 -3
  21. package/dist/cjs/sqm-password-field.cjs.entry.js +3 -4
  22. package/dist/cjs/sqm-popup-container.cjs.entry.js +4 -5
  23. package/dist/cjs/{sqm-portal-container-view-840db620.js → sqm-portal-container-view-2ddcaa12.js} +1 -1
  24. package/dist/cjs/{sqm-portal-email-verification-view-f2a35e7c.js → sqm-portal-email-verification-view-b280d0b0.js} +3 -3
  25. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +19 -23
  26. package/dist/cjs/{sqm-portal-footer-view-8eadb31d.js → sqm-portal-footer-view-5d6451ad.js} +2 -2
  27. package/dist/cjs/sqm-portal-footer.cjs.entry.js +4 -5
  28. package/dist/cjs/{sqm-portal-forgot-password-view-fed1f563.js → sqm-portal-forgot-password-view-ccaf2bd4.js} +2 -2
  29. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +18 -21
  30. package/dist/cjs/sqm-portal-logout.cjs.entry.js +2 -3
  31. package/dist/cjs/{sqm-portal-profile-view-730252e8.js → sqm-portal-profile-view-e615e2b2.js} +4 -4
  32. package/dist/cjs/sqm-portal-profile.cjs.entry.js +8 -9
  33. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +5 -6
  34. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +28 -28
  35. package/dist/cjs/{sqm-portal-reset-password-view-f8dc0b79.js → sqm-portal-reset-password-view-4d23de69.js} +2 -2
  36. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +31 -38
  37. package/dist/cjs/{sqm-portal-section-view-854a3e9c.js → sqm-portal-section-view-1e5bbcb1.js} +1 -1
  38. package/dist/cjs/{sqm-portal-verify-email-view-cc59877c.js → sqm-portal-verify-email-view-96adafc0.js} +2 -2
  39. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +9 -11
  40. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +8 -9
  41. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +2 -3
  42. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +2 -3
  43. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +11 -12
  44. package/dist/cjs/sqm-stencilbook.cjs.entry.js +55 -56
  45. package/dist/cjs/sqm-tab.cjs.entry.js +2 -3
  46. package/dist/cjs/sqm-tabs.cjs.entry.js +4 -5
  47. package/dist/cjs/{sqm-text-span-view-2c7d94b5.js → sqm-text-span-view-b318af73.js} +1 -1
  48. package/dist/cjs/sqm-text-span.cjs.entry.js +2 -3
  49. package/dist/cjs/{useChildElements-42a97f2a.js → useChildElements-c0cc8f5d.js} +2 -2
  50. package/dist/cjs/{useReferralTable-a985ce58.js → useReferralTable-db1b33db.js} +7 -7
  51. package/dist/cjs/{useRegistrationFormState-b7598d69.js → useRegistrationFormState-d0e43ca9.js} +3 -3
  52. package/dist/collection/components/sqm-portal-change-password/usePortalChangePassword.js +7 -10
  53. package/dist/collection/components/sqm-portal-email-verification/usePortalEmailVerification.js +14 -17
  54. package/dist/collection/components/sqm-portal-forgot-password/usePortalForgotPassword.js +14 -16
  55. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +0 -4
  56. package/dist/collection/components/sqm-portal-login/usePortalLogin.js +13 -16
  57. package/dist/collection/components/sqm-portal-register/usePortalRegister.js +21 -20
  58. package/dist/collection/components/sqm-portal-registration-form/usePortalRegistrationForm.js +22 -21
  59. package/dist/collection/components/sqm-portal-reset-password/usePortalResetPassword.js +23 -29
  60. package/dist/collection/components/sqm-portal-verify-email/usePortalVerifyEmail.js +1 -2
  61. package/dist/esm/{GenericTableView-10cac7d6.js → GenericTableView-ce26115f.js} +1 -1
  62. package/dist/esm/{JSS-f00f9536.js → JSS-67b5cff8.js} +17 -1
  63. package/dist/esm/{ShadowViewAddon-846aecda.js → ShadowViewAddon-6b6e9c10.js} +17 -21
  64. package/dist/esm/{global-44835899.js → global-c2d5e2fa.js} +2 -2
  65. package/dist/esm/{index.module-132e274f.js → index.module-25496635.js} +211 -519
  66. package/dist/esm/loader.js +2 -3
  67. package/dist/esm/mint-components.js +2 -3
  68. package/dist/esm/{re-render-81cd3caa.js → re-render-8ece93cd.js} +4 -4
  69. package/dist/esm/{sqm-asset-card-view-08e68656.js → sqm-asset-card-view-b0f8ef8e.js} +1 -1
  70. package/dist/esm/sqm-asset-card.entry.js +3 -4
  71. package/dist/esm/sqm-big-stat_35.entry.js +87 -93
  72. package/dist/esm/sqm-empty_5.entry.js +3 -4
  73. package/dist/esm/sqm-graphql-client-provider.entry.js +5 -6
  74. package/dist/esm/{sqm-hero-view-9fb2be89.js → sqm-hero-view-b8ce1900.js} +1 -1
  75. package/dist/esm/sqm-hero.entry.js +2 -3
  76. package/dist/esm/sqm-leaderboard-rank.entry.js +4 -5
  77. package/dist/esm/{sqm-navigation-sidebar-item-view-364af025.js → sqm-navigation-sidebar-item-view-24d5f092.js} +3 -3
  78. package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -5
  79. package/dist/esm/{sqm-navigation-sidebar-view-06d444ca.js → sqm-navigation-sidebar-view-aa1313e7.js} +1 -1
  80. package/dist/esm/sqm-navigation-sidebar.entry.js +2 -3
  81. package/dist/esm/sqm-password-field.entry.js +3 -4
  82. package/dist/esm/sqm-popup-container.entry.js +4 -5
  83. package/dist/esm/{sqm-portal-container-view-ca454627.js → sqm-portal-container-view-228f2b65.js} +1 -1
  84. package/dist/esm/{sqm-portal-email-verification-view-5ac21bb4.js → sqm-portal-email-verification-view-4fa01d0a.js} +3 -3
  85. package/dist/esm/sqm-portal-email-verification.entry.js +20 -24
  86. package/dist/esm/{sqm-portal-footer-view-f3a6eaed.js → sqm-portal-footer-view-c4059af8.js} +2 -2
  87. package/dist/esm/sqm-portal-footer.entry.js +4 -5
  88. package/dist/esm/{sqm-portal-forgot-password-view-86d13eef.js → sqm-portal-forgot-password-view-29c2e39b.js} +2 -2
  89. package/dist/esm/sqm-portal-forgot-password.entry.js +19 -22
  90. package/dist/esm/sqm-portal-logout.entry.js +2 -3
  91. package/dist/esm/{sqm-portal-profile-view-630f05c8.js → sqm-portal-profile-view-ec58906b.js} +4 -4
  92. package/dist/esm/sqm-portal-profile.entry.js +8 -9
  93. package/dist/esm/sqm-portal-protected-route.entry.js +5 -6
  94. package/dist/esm/sqm-portal-registration-form.entry.js +28 -28
  95. package/dist/esm/{sqm-portal-reset-password-view-213b3af6.js → sqm-portal-reset-password-view-06f6ffac.js} +2 -2
  96. package/dist/esm/sqm-portal-reset-password.entry.js +31 -38
  97. package/dist/esm/{sqm-portal-section-view-6c249c74.js → sqm-portal-section-view-a991e019.js} +1 -1
  98. package/dist/esm/{sqm-portal-verify-email-view-c32dfd7e.js → sqm-portal-verify-email-view-833644ac.js} +2 -2
  99. package/dist/esm/sqm-portal-verify-email.entry.js +9 -11
  100. package/dist/esm/sqm-referral-table_11.entry.js +8 -9
  101. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +2 -3
  102. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -3
  103. package/dist/esm/sqm-rewards-table_9.entry.js +11 -12
  104. package/dist/esm/sqm-stencilbook.entry.js +55 -56
  105. package/dist/esm/sqm-tab.entry.js +2 -3
  106. package/dist/esm/sqm-tabs.entry.js +4 -5
  107. package/dist/esm/{sqm-text-span-view-0ba1484d.js → sqm-text-span-view-8b194920.js} +1 -1
  108. package/dist/esm/sqm-text-span.entry.js +2 -3
  109. package/dist/esm/{useChildElements-9431f3e2.js → useChildElements-d86f03c6.js} +2 -2
  110. package/dist/esm/{useReferralTable-0516b6d5.js → useReferralTable-7aeb954d.js} +7 -7
  111. package/dist/esm/{useRegistrationFormState-ebb08075.js → useRegistrationFormState-e94eec81.js} +3 -3
  112. package/dist/esm-es5/{GenericTableView-10cac7d6.js → GenericTableView-ce26115f.js} +1 -1
  113. package/dist/esm-es5/{JSS-f00f9536.js → JSS-67b5cff8.js} +1 -1
  114. package/dist/esm-es5/ShadowViewAddon-6b6e9c10.js +1 -0
  115. package/dist/esm-es5/{global-44835899.js → global-c2d5e2fa.js} +2 -2
  116. package/dist/esm-es5/index.module-25496635.js +1 -0
  117. package/dist/esm-es5/loader.js +1 -1
  118. package/dist/esm-es5/mint-components.js +1 -1
  119. package/dist/esm-es5/{re-render-81cd3caa.js → re-render-8ece93cd.js} +1 -1
  120. package/dist/esm-es5/{sqm-asset-card-view-08e68656.js → sqm-asset-card-view-b0f8ef8e.js} +1 -1
  121. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  122. package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
  123. package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
  124. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  125. package/dist/esm-es5/{sqm-hero-view-9fb2be89.js → sqm-hero-view-b8ce1900.js} +1 -1
  126. package/dist/esm-es5/sqm-hero.entry.js +1 -1
  127. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  128. package/dist/esm-es5/sqm-navigation-sidebar-item-view-24d5f092.js +1 -0
  129. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  130. package/dist/esm-es5/{sqm-navigation-sidebar-view-06d444ca.js → sqm-navigation-sidebar-view-aa1313e7.js} +1 -1
  131. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  132. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  133. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  134. package/dist/esm-es5/{sqm-portal-container-view-ca454627.js → sqm-portal-container-view-228f2b65.js} +1 -1
  135. package/dist/esm-es5/{sqm-portal-email-verification-view-5ac21bb4.js → sqm-portal-email-verification-view-4fa01d0a.js} +1 -1
  136. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  137. package/dist/esm-es5/{sqm-portal-footer-view-f3a6eaed.js → sqm-portal-footer-view-c4059af8.js} +1 -1
  138. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  139. package/dist/esm-es5/{sqm-portal-forgot-password-view-86d13eef.js → sqm-portal-forgot-password-view-29c2e39b.js} +1 -1
  140. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  141. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  142. package/dist/esm-es5/{sqm-portal-profile-view-630f05c8.js → sqm-portal-profile-view-ec58906b.js} +1 -1
  143. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  144. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  145. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  146. package/dist/esm-es5/{sqm-portal-reset-password-view-213b3af6.js → sqm-portal-reset-password-view-06f6ffac.js} +1 -1
  147. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  148. package/dist/esm-es5/{sqm-portal-section-view-6c249c74.js → sqm-portal-section-view-a991e019.js} +1 -1
  149. package/dist/esm-es5/{sqm-portal-verify-email-view-c32dfd7e.js → sqm-portal-verify-email-view-833644ac.js} +1 -1
  150. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  151. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  152. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  153. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  154. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  155. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  156. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  157. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  158. package/dist/esm-es5/{sqm-text-span-view-0ba1484d.js → sqm-text-span-view-8b194920.js} +1 -1
  159. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  160. package/dist/esm-es5/{useChildElements-9431f3e2.js → useChildElements-d86f03c6.js} +1 -1
  161. package/dist/esm-es5/{useReferralTable-0516b6d5.js → useReferralTable-7aeb954d.js} +1 -1
  162. package/dist/esm-es5/{useRegistrationFormState-ebb08075.js → useRegistrationFormState-e94eec81.js} +1 -1
  163. package/dist/mint-components/mint-components.esm.js +1 -1
  164. package/dist/mint-components/mint-components.js +1 -1
  165. package/dist/mint-components/p-01016d01.entry.js +1 -0
  166. package/dist/mint-components/p-02cc2ae0.entry.js +1 -0
  167. package/dist/mint-components/{p-c627c865.js → p-0425104d.js} +2 -2
  168. package/dist/mint-components/{p-ec689579.js → p-043501b1.js} +1 -1
  169. package/dist/mint-components/p-0c98df9a.system.entry.js +1 -0
  170. package/dist/mint-components/{p-3abbc5b3.system.js → p-0e6f1340.system.js} +1 -1
  171. package/dist/mint-components/{p-242bd74b.entry.js → p-0ec88b18.entry.js} +1 -1
  172. package/dist/mint-components/{p-b7e6ce3c.system.js → p-0f20108e.system.js} +1 -1
  173. package/dist/mint-components/p-0f3c6e11.entry.js +1 -0
  174. package/dist/mint-components/{p-703f4552.entry.js → p-0f44ced1.entry.js} +4 -4
  175. package/dist/mint-components/p-11a4a003.system.js +1 -0
  176. package/dist/mint-components/{p-52a2beaf.js → p-13cfd4bd.js} +1 -1
  177. package/dist/mint-components/{p-d64a0bc1.js → p-16671c5a.js} +1 -1
  178. package/dist/mint-components/p-175ef60c.js +1 -0
  179. package/dist/mint-components/{p-0e441a14.system.js → p-177f1699.system.js} +1 -1
  180. package/dist/mint-components/{p-7dea8d9a.js → p-19deed13.js} +1 -1
  181. package/dist/mint-components/p-19f572c9.entry.js +1 -0
  182. package/dist/mint-components/p-1a673057.system.js +8 -0
  183. package/dist/mint-components/p-1cb7125b.entry.js +1 -0
  184. package/dist/mint-components/{p-4935076f.system.js → p-20268b64.system.js} +1 -1
  185. package/dist/mint-components/{p-0d482ad4.js → p-233e784a.js} +1 -1
  186. package/dist/mint-components/p-23ce9541.system.entry.js +1 -0
  187. package/dist/mint-components/{p-210cd41b.js → p-24d6c3fd.js} +1 -1
  188. package/dist/mint-components/{p-1c40d459.js → p-27d8b5e4.js} +1 -1
  189. package/dist/mint-components/{p-b0668789.system.js → p-27da3d2f.system.js} +1 -1
  190. package/dist/mint-components/{p-4778fb68.js → p-2895613d.js} +1 -1
  191. package/dist/mint-components/p-28b0cd34.entry.js +1 -0
  192. package/dist/mint-components/p-29c42c90.system.entry.js +1 -0
  193. package/dist/mint-components/{p-0f4c1e0e.entry.js → p-29d7ffd1.entry.js} +3 -3
  194. package/dist/mint-components/{p-0d49d56d.js → p-33fe169e.js} +1 -1
  195. package/dist/mint-components/p-3582d202.system.entry.js +1 -0
  196. package/dist/mint-components/p-369d00f3.system.entry.js +1 -0
  197. package/dist/mint-components/p-3aa067f0.entry.js +13 -0
  198. package/dist/mint-components/p-3c2febd2.system.entry.js +1 -0
  199. package/dist/mint-components/p-3cd4d8bb.system.entry.js +1 -0
  200. package/dist/mint-components/p-3f15986b.entry.js +1 -0
  201. package/dist/mint-components/p-40a8ea40.entry.js +1 -0
  202. package/dist/mint-components/{p-1c21b5d1.js → p-41962e08.js} +1 -1
  203. package/dist/mint-components/p-4352909d.js +1 -0
  204. package/dist/mint-components/p-4560faa8.entry.js +1 -0
  205. package/dist/mint-components/{p-2cac212f.system.js → p-486f5810.system.js} +1 -1
  206. package/dist/mint-components/p-49c7d8f5.system.entry.js +1 -0
  207. package/dist/mint-components/{p-83d4885d.entry.js → p-4a5d61fe.entry.js} +2 -2
  208. package/dist/mint-components/p-4b83d7ea.js +1 -0
  209. package/dist/mint-components/p-4cc59fed.system.entry.js +1 -0
  210. package/dist/mint-components/{p-1f6fdeda.system.entry.js → p-4d4e5ac4.system.entry.js} +1 -1
  211. package/dist/mint-components/p-528ce342.system.entry.js +1 -0
  212. package/dist/mint-components/p-5352b716.system.entry.js +1 -0
  213. package/dist/mint-components/p-54db9721.js +1 -0
  214. package/dist/mint-components/p-58c173ff.entry.js +1 -0
  215. package/dist/mint-components/{p-a53d815e.system.js → p-5d4d81bf.system.js} +1 -1
  216. package/dist/mint-components/p-5effdc5e.system.entry.js +1 -0
  217. package/dist/mint-components/p-61b954e7.entry.js +1 -0
  218. package/dist/mint-components/p-674c9b4b.system.entry.js +1 -0
  219. package/dist/mint-components/p-6a529e0e.entry.js +1 -0
  220. package/dist/mint-components/{p-986f10d2.system.js → p-6b8b7dc0.system.js} +1 -1
  221. package/dist/mint-components/{p-0148c516.js → p-6dd27a5e.js} +1 -1
  222. package/dist/mint-components/p-76f151b2.entry.js +1 -0
  223. package/dist/mint-components/{p-89fc4544.system.js → p-7850a5e5.system.js} +1 -1
  224. package/dist/mint-components/{p-1c24a18c.js → p-78dcf8ff.js} +1 -1
  225. package/dist/mint-components/p-79aa6d79.system.entry.js +1 -0
  226. package/dist/mint-components/p-7aa067b0.system.entry.js +1 -0
  227. package/dist/mint-components/p-7ab63827.entry.js +1 -0
  228. package/dist/mint-components/p-7fcb4118.system.entry.js +1 -0
  229. package/dist/mint-components/{p-afcf252c.js → p-914511f3.js} +1 -1
  230. package/dist/mint-components/{p-292857fd.system.js → p-94578d79.system.js} +1 -1
  231. package/dist/mint-components/p-986e52e2.system.entry.js +1 -0
  232. package/dist/mint-components/p-9a87d5ae.system.entry.js +1 -0
  233. package/dist/mint-components/p-9db0c9fc.system.entry.js +1 -0
  234. package/dist/mint-components/p-9fa6c616.entry.js +1 -0
  235. package/dist/mint-components/{p-275cf42f.js → p-a4505a80.js} +1 -1
  236. package/dist/mint-components/{p-3c8becd3.js → p-a46c0d32.js} +1 -1
  237. package/dist/mint-components/p-a951d772.system.entry.js +1 -0
  238. package/dist/mint-components/p-aefc2633.system.entry.js +1 -0
  239. package/dist/mint-components/{p-574ba520.system.js → p-b01e28dd.system.js} +1 -1
  240. package/dist/mint-components/{p-6b5fbbdb.js → p-b21814ac.js} +1 -1
  241. package/dist/mint-components/p-b33e0421.system.js +1 -0
  242. package/dist/mint-components/p-b7b4772a.entry.js +1 -0
  243. package/dist/mint-components/p-bd3c2e67.system.js +1 -0
  244. package/dist/mint-components/{p-446a0805.system.js → p-bef0a1f4.system.js} +1 -1
  245. package/dist/mint-components/p-bf17dc65.system.js +1 -0
  246. package/dist/mint-components/p-c869970e.system.entry.js +1 -0
  247. package/dist/mint-components/p-cdec6312.system.entry.js +1 -0
  248. package/dist/mint-components/p-cef45012.js +1 -0
  249. package/dist/mint-components/{p-519dc03b.system.js → p-d20361b8.system.js} +1 -1
  250. package/dist/mint-components/p-dd5f7670.entry.js +1 -0
  251. package/dist/mint-components/p-de2cd263.entry.js +1 -0
  252. package/dist/mint-components/p-de745531.system.entry.js +1 -0
  253. package/dist/mint-components/p-e0de4ac3.entry.js +1 -0
  254. package/dist/mint-components/p-e48269b2.system.js +1 -0
  255. package/dist/mint-components/p-e502bbcc.entry.js +13 -0
  256. package/dist/mint-components/p-e5380001.system.entry.js +1 -0
  257. package/dist/mint-components/{p-192617e7.system.js → p-e58c257b.system.js} +1 -1
  258. package/dist/mint-components/p-e58df0ff.system.entry.js +1 -0
  259. package/dist/mint-components/p-e67fc6a5.entry.js +1 -0
  260. package/dist/mint-components/p-eaa9a926.entry.js +1 -0
  261. package/dist/mint-components/{p-5d292177.system.js → p-ee5a4598.system.js} +1 -1
  262. package/dist/mint-components/{p-19b0e2b5.system.js → p-ef18a3bd.system.js} +1 -1
  263. package/dist/mint-components/{p-53aef3ba.system.js → p-fdcd2b8f.system.js} +1 -1
  264. package/docs/docs.docx +0 -0
  265. package/package.json +2 -2
  266. package/dist/cjs/extends-08099afd.js +0 -21
  267. package/dist/esm/extends-c31f1eff.js +0 -19
  268. package/dist/esm-es5/ShadowViewAddon-846aecda.js +0 -1
  269. package/dist/esm-es5/extends-c31f1eff.js +0 -1
  270. package/dist/esm-es5/index.module-132e274f.js +0 -1
  271. package/dist/esm-es5/sqm-navigation-sidebar-item-view-364af025.js +0 -1
  272. package/dist/mint-components/p-00d4636f.system.entry.js +0 -1
  273. package/dist/mint-components/p-06f56536.js +0 -1
  274. package/dist/mint-components/p-07d424a2.system.entry.js +0 -1
  275. package/dist/mint-components/p-088d3b4a.system.entry.js +0 -1
  276. package/dist/mint-components/p-0b1d703d.entry.js +0 -1
  277. package/dist/mint-components/p-136325c0.system.js +0 -1
  278. package/dist/mint-components/p-162fca19.js +0 -1
  279. package/dist/mint-components/p-1c17892a.system.js +0 -1
  280. package/dist/mint-components/p-1cc3dfe5.system.js +0 -1
  281. package/dist/mint-components/p-222e5418.entry.js +0 -1
  282. package/dist/mint-components/p-2383eadd.system.entry.js +0 -1
  283. package/dist/mint-components/p-2dce26fa.system.entry.js +0 -1
  284. package/dist/mint-components/p-3d0dc005.system.entry.js +0 -1
  285. package/dist/mint-components/p-3f43b39c.entry.js +0 -1
  286. package/dist/mint-components/p-436779be.js +0 -1
  287. package/dist/mint-components/p-4ce8e325.system.entry.js +0 -1
  288. package/dist/mint-components/p-50553269.system.entry.js +0 -1
  289. package/dist/mint-components/p-50afa774.entry.js +0 -1
  290. package/dist/mint-components/p-51102b8f.entry.js +0 -13
  291. package/dist/mint-components/p-5928afc0.js +0 -1
  292. package/dist/mint-components/p-63101d0c.entry.js +0 -1
  293. package/dist/mint-components/p-73681688.system.entry.js +0 -1
  294. package/dist/mint-components/p-7c3e3cb4.entry.js +0 -1
  295. package/dist/mint-components/p-7f4b0ba0.system.entry.js +0 -1
  296. package/dist/mint-components/p-81f34787.js +0 -1
  297. package/dist/mint-components/p-8b7a19d3.system.entry.js +0 -1
  298. package/dist/mint-components/p-8c4bcbc6.entry.js +0 -1
  299. package/dist/mint-components/p-8d6a2a61.system.entry.js +0 -1
  300. package/dist/mint-components/p-90dfce36.entry.js +0 -1
  301. package/dist/mint-components/p-9f596d8d.system.entry.js +0 -1
  302. package/dist/mint-components/p-a1acdbb4.entry.js +0 -1
  303. package/dist/mint-components/p-a395bae0.entry.js +0 -1
  304. package/dist/mint-components/p-a4335cb5.system.entry.js +0 -1
  305. package/dist/mint-components/p-af3b56d3.system.entry.js +0 -1
  306. package/dist/mint-components/p-b2e7ca31.system.entry.js +0 -1
  307. package/dist/mint-components/p-b3d7d353.entry.js +0 -1
  308. package/dist/mint-components/p-b52109dd.entry.js +0 -1
  309. package/dist/mint-components/p-b593a42e.system.entry.js +0 -1
  310. package/dist/mint-components/p-bb9dadd3.system.entry.js +0 -1
  311. package/dist/mint-components/p-bc2cf095.entry.js +0 -1
  312. package/dist/mint-components/p-bed78bee.system.entry.js +0 -1
  313. package/dist/mint-components/p-c01e754d.system.entry.js +0 -1
  314. package/dist/mint-components/p-c4e22786.system.js +0 -1
  315. package/dist/mint-components/p-ca08cf71.entry.js +0 -1
  316. package/dist/mint-components/p-cac0e237.entry.js +0 -1
  317. package/dist/mint-components/p-ce6f7e0e.entry.js +0 -1
  318. package/dist/mint-components/p-ceeeb344.entry.js +0 -1
  319. package/dist/mint-components/p-ceefa54a.system.entry.js +0 -1
  320. package/dist/mint-components/p-d08b59df.entry.js +0 -13
  321. package/dist/mint-components/p-d21ccfa1.entry.js +0 -1
  322. package/dist/mint-components/p-d307abaa.entry.js +0 -1
  323. package/dist/mint-components/p-d5c94703.entry.js +0 -1
  324. package/dist/mint-components/p-d5d32d0d.system.js +0 -8
  325. package/dist/mint-components/p-d8876d3f.js +0 -1
  326. package/dist/mint-components/p-dc37fe51.system.js +0 -1
  327. package/dist/mint-components/p-df2b4e11.system.entry.js +0 -1
  328. package/dist/mint-components/p-e0fa9595.system.js +0 -1
  329. package/dist/mint-components/p-e8d07dfa.system.entry.js +0 -1
  330. package/dist/mint-components/p-f3eaabf8.system.entry.js +0 -1
  331. package/dist/mint-components/p-f54b436e.entry.js +0 -1
  332. package/dist/mint-components/p-f5e601b0.system.entry.js +0 -1
  333. package/dist/mint-components/p-f8863064.system.entry.js +0 -1
@@ -1 +1 @@
1
- var __assign=this&&this.__assign||function(){__assign=Object.assign||function(s){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a))s[a]=e[a]}return s};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-53aef3ba.system.js","./p-f6934a55.system.js","./p-d5d32d0d.system.js","./p-b0668789.system.js"],(function(s){"use strict";var e,t,r,a,n,i;return{setters:[function(s){e=s.h},function(s){t=s.i},function(s){r=s.A;a=s.a},function(s){n=s.c},function(s){i=s.T}],execute:function(){s("P",u);var o={Wrapper:r,Column:__assign({},a)};var c="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var l=n(o);var p=l.toString();function u(s){var r=s.states,a=s.callbacks,n=s.content,o=n.email,u=n.verifyMessage,f=n.emailVerificationHeader,m=n.resendEmailButtonText;return e("div",{class:l.classes.Wrapper},e("style",{type:"text/css"},c,p),e(i,{type:"h3"},f),e("sl-form",{class:l.classes.Column,"onSl-submit":a.submit},s.states.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},s.states.error)),s.states.success&&e("sqm-form-message",{type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},"Your verification email has been resent successfully")),e(i,{type:"p"},t.formatMessage({id:"verifyMessage",defaultMessage:u},{email:e("span",{style:{fontWeight:"var(--sl-font-weight-semibold)"}},o)})),e("sl-button",{submit:true,loading:r.loading,exportparts:"base: primarybutton-base",type:"primary"},m)))}}}}));
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(s){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a))s[a]=e[a]}return s};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-fdcd2b8f.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-27da3d2f.system.js"],(function(s){"use strict";var e,t,r,a,n,i;return{setters:[function(s){e=s.h},function(s){t=s.i},function(s){r=s.A;a=s.a},function(s){n=s.c},function(s){i=s.T}],execute:function(){s("P",u);var o={Wrapper:r,Column:__assign({},a)};var c="\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var l=n(o);var p=l.toString();function u(s){var r=s.states,a=s.callbacks,n=s.content,o=n.email,u=n.verifyMessage,f=n.emailVerificationHeader,m=n.resendEmailButtonText;return e("div",{class:l.classes.Wrapper},e("style",{type:"text/css"},c,p),e(i,{type:"h3"},f),e("sl-form",{class:l.classes.Column,"onSl-submit":a.submit},s.states.error&&e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},s.states.error)),s.states.success&&e("sqm-form-message",{type:"success",exportparts:"successalert-icon"},e("div",{part:"successalert-text"},"Your verification email has been resent successfully")),e(i,{type:"p"},t.formatMessage({id:"verifyMessage",defaultMessage:u},{email:e("span",{style:{fontWeight:"var(--sl-font-weight-semibold)"}},o)})),e("sl-button",{submit:true,loading:r.loading,exportparts:"base: primarybutton-base",type:"primary"},m)))}}}}));
@@ -0,0 +1 @@
1
+ var __makeTemplateObject=this&&this.__makeTemplateObject||function(t,e){if(Object.defineProperty){Object.defineProperty(t,"raw",{value:e})}else{t.raw=e}return t};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++){e=arguments[n];for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]}return t};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-d4ee07e6.system.js","./p-fdcd2b8f.system.js","./p-99397ef5.system.js","./p-bd3c2e67.system.js","./p-4bd679a7.system.js","./p-1a673057.system.js","./p-6333265f.system.js","./p-27da3d2f.system.js","./p-ef18a3bd.system.js","./p-20268b64.system.js"],(function(t){"use strict";var e,n,i,r,a,s,o,u,l,d,m,f,c;return{setters:[function(t){e=t.r;n=t.h},function(t){i=t.i;r=t.f;a=t.m},function(){},function(){},function(t){s=t.d;o=t.N;u=t.a;l=t.P;d=t.i},function(t){m=t.c},function(){},function(t){f=t.g},function(){},function(){},function(t){c=t.P}],execute:function(){var v=s.gql(__makeTemplateObject(["\n query {\n viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n }\n }\n }\n"],["\n query {\n viewer {\n ... on User {\n id\n accountId\n firstName\n lastName\n email\n countryCode\n }\n }\n }\n"]));var g=s.gql(__makeTemplateObject(["\n mutation (\n $id: String!\n $accountId: String!\n $firstName: String!\n $lastName: String!\n ) {\n upsertUser(\n userInput: {\n id: $id\n accountId: $accountId\n firstName: $firstName\n lastName: $lastName\n }\n ) {\n firstName\n lastName\n }\n }\n"],["\n mutation (\n $id: String!\n $accountId: String!\n $firstName: String!\n $lastName: String!\n ) {\n upsertUser(\n userInput: {\n id: $id\n accountId: $accountId\n firstName: $firstName\n lastName: $lastName\n }\n ) {\n firstName\n lastName\n }\n }\n"]));var _={country:"",email:"",firstName:"",lastName:"",errors:{},error:""};function y(t){var e=o();var n=i(false),a=n[0],s=n[1];var d=i(undefined),m=d[0],f=d[1];var c=i(_),y=c[0],N=c[1];var p=u(v,{},!(e===null||e===void 0?void 0:e.jwt));var b=l(g),h=b[0],x=b[1];r((function(){if(x===null||x===void 0?void 0:x.loading)return;if(x===null||x===void 0?void 0:x.errors){N((function(t){var e,n,i;return __assign(__assign({},t),{error:(i=(n=(e=x===null||x===void 0?void 0:x.errors)===null||e===void 0?void 0:e.response)===null||n===void 0?void 0:n.errors)===null||i===void 0?void 0:i[0].message})}))}else{f((function(t){var e;return __assign(__assign({},t),(e=x===null||x===void 0?void 0:x.data)===null||e===void 0?void 0:e.upsertUser)}));if(x===null||x===void 0?void 0:x.data)s(true)}}),[x===null||x===void 0?void 0:x.loading]);r((function(){var t,e;f((function(t){var e;return __assign(__assign({},t),(e=p===null||p===void 0?void 0:p.data)===null||e===void 0?void 0:e.viewer)}));N(__assign(__assign(__assign({},_),(t=p.data)===null||t===void 0?void 0:t.viewer),(e=x.data)===null||e===void 0?void 0:e.upsertUser))}),[p===null||p===void 0?void 0:p.data]);r((function(){var t,e;if((t=x===null||x===void 0?void 0:x.errors)===null||t===void 0?void 0:t.message){N(__assign(__assign({},(e=p.data)===null||e===void 0?void 0:e.viewer),{error:"Network request failed."}))}}),[x===null||x===void 0?void 0:x.errors]);var j=function(){s(false);if(y.firstName&&y.lastName){h({id:e===null||e===void 0?void 0:e.id,accountId:e===null||e===void 0?void 0:e.accountId,firstName:y.firstName,lastName:y.lastName});N((function(t){return __assign(__assign({},t),{errors:{},error:""})}));return}var t={};if(!y.firstName){t["firstName"]={message:"Field can't be empty"}}if(!y.lastName){t["lastName"]={message:"Field can't be empty"}}if(t!=={}){N((function(t){return __assign(__assign({},t),{error:"Please correct the errors below to update your profile."})}))}N((function(e){return __assign(__assign({},e),{errors:t})}))};return{states:{success:a,loading:(p===null||p===void 0?void 0:p.loading)||x.loading,submitDisabled:false,showCountry:t.showCountry,formState:y,user:m,text:{firstnametext:t.firstnametext,lastnametext:t.lastnametext,countrytext:t.countrytext,emailtext:t.emailtext,editProfileHeader:t.editProfileHeader,editProfileSubHeader:t.editProfileSubHeader,submitChangeButtonText:t.submitChangeButtonText}},callbacks:{onSubmit:j,onChange:function(t){var e=t.target,n=e.name,i=e.value;N((function(t){var e;return __assign(__assign({},t),(e={},e[n]=i,e))}))}}}}var N=t("sqm_portal_profile",function(){function t(t){e(this,t);this.ignored=true;this.firstnametext="First Name";this.lastnametext="Last Name";this.emailtext="Email";this.countrytext="Country";this.editProfileHeader="Edit your profile";this.editProfileSubHeader="Personal Information";this.submitChangeButtonText="Submit Changes";this.showCountry=true;a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=d()?p(f(this)):y(f(this));return n(c,Object.assign({},t))};return t}());function p(t){return m({states:{success:false,loading:false,submitDisabled:false,showCountry:true,user:{id:"01",accountId:"111100000",firstName:"Joe",lastName:"Smith",email:"jsmith@gmail.com",countryCode:"CA"},text:{firstnametext:"First Name",lastnametext:"Last Name",emailtext:"Email",countrytext:"Country",editProfileHeader:"Edit your profile",editProfileSubHeader:"Personal Information",submitChangeButtonText:"Submit Changes"},formState:{country:"Canada",firstName:"Joe",lastName:"Smith",errors:null,error:""}},callbacks:{onSubmit:function(t){return console.log(t)},onChange:function(t){return console.log(t)}}},t.demoData||{},{arrayMerge:function(t,e){return e}})}}}}));
@@ -0,0 +1 @@
1
+ var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a))e[a]=t[a]}return e};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(e,t,r,n){function a(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function l(e){try{o(n.next(e))}catch(e){i(e)}}function s(e){try{o(n["throw"](e))}catch(e){i(e)}}function o(e){e.done?r(e.value):a(e.value).then(l,s)}o((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,l;return l={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function s(e){return function(t){return o([e,t])}}function o(l){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:r.label++;return{value:l[1],done:false};case 5:r.label++;a=l[1];l=[0];continue;case 7:l=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1];i=l;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(l);break}if(i[2])r.ops.pop();r.trys.pop();continue}l=t.call(e,r)}catch(e){l=[6,e];a=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],l=0,s=i.length;l<s;l++,a++)n[a]=i[l];return n};System.register(["./p-ff17b3a4.system.js","./p-d4ee07e6.system.js","./p-fdcd2b8f.system.js","./p-99397ef5.system.js","./p-bd3c2e67.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-bef0a1f4.system.js","./p-b33e0421.system.js","./p-7850a5e5.system.js","./p-684aadb5.system.js","./p-d20361b8.system.js","./p-6333265f.system.js"],(function(e){"use strict";var t,r,n,a,i,l,s,o,d,u,c,p,f,m,v,h,g,y,w,b,_,E,T,x;return{setters:[function(e){t=e.h;r=e.r;n=e.c},function(e){a=e.b;i=e.u;l=e.f;s=e.m;o=e.k},function(e){d=e.i},function(){},function(e){u=e.d;c=e.N;p=e.O;f=e.x;m=e.v;v=e.i},function(e){h=e.c},function(){},function(e){g=e.c},function(e){y=e.G},function(e){w=e.u;b=e.a},function(e){_=e.u},function(e){E=e.l},function(e){T=e.g},function(e){x=e.l}],execute:function(){var R=function(e){if(e===void 0){e=4}var t=__spreadArrays(Array(e)).map((function(){return S()}));return{data:t}};var A=["POINT","TICKET","GIFT"];var N=["Points","Tickets","Gifts"];var D=["AVAILABLE","PENDING","CANCELLED","EXPIRED","REDEEMED"];var C=["US_TAX","SCHEDULED","UNHANDLED_ERROR"];var S=function(){var e=false;var t=0;var r;var n;var a;var i;var l=E.DateTime.now();var s=Math.floor(Math.random()*3);var o=D[Math.floor(Math.random()*5)];var d=A[s];var u=N[s];var c=Math.floor(Math.random()*100)+2;if(o==="AVAILABLE"){t=Math.floor(Math.random()*c);i=Math.floor(Math.random()*10)<3?l.plus({days:7}).toMillis():null}else if(o==="EXPIRED"){e=true;t=Math.floor(Math.random()*c);i=l.minus({days:1}).toMillis()}else if(o==="PENDING"){var p=C[Math.floor(Math.random()*3)];r=[p];if(p==="SCHEDULED"){n=l.plus({days:6}).toMillis()}}else if(o==="REDEEMED"){e=true}else{e=true;a=l.minus({days:2}).toMillis()}var f=Math.floor(Math.random()*3);return{id:"61f7878e096c9265de88b46f",type:"CREDIT",value:c,unit:d,name:null,dateGiven:l.minus({days:3}).toMillis(),dateExpires:i,dateCancelled:a,dateRedeemed:o==="REDEEMED"?l.plus({days:2}).toMillis():null,dateScheduledFor:n,fuelTankCode:null,fuelTankType:null,currency:null,prettyValue:c+" "+u,prettyValueNumber:""+c,prettyAvailableNumber:e?"0":""+(c-t),prettyRedeemedNumber:e&&!t?"0":""+t,programId:f===1?"program-id":null,program:{name:"My Program"},statuses:[o],pendingReasons:r,globalRewardKey:null,programRewardKey:null,rewardSource:f===1?"AUTOMATED":"MANUAL",prettyRedeemedCredit:t+" "+u,prettyAssignedCredit:c+" "+u,prettyAvailableValue:e?"0 "+u:c-t+" "+u,exchangedRewardRedemptionTransaction:f===2?{id:"61f7878e096c9265de88b414",creditRedeemed:50,prettyRedeemedCredit:"50 Tokens",unit:"TOKEN",dateRedeemed:1643612046258}:null,referral:null,rewardRedemptionTransactions:{data:[]}}};var L=a("sq:useRewardsTable");var M="sqm-rewards-table";var P=u.gql(__makeTemplateObject(['\n query getRewards(\n $limit: Int!\n $offset: Int!\n $rewardFilter: RewardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n id\n rewards(\n limit: $limit\n offset: $offset\n filter: $rewardFilter\n sortBy: { field: "dateCreated", order: DESC }\n ) {\n totalCount\n count\n data {\n meta {\n message\n }\n id\n type\n value\n unit\n name\n dateGiven\n dateCreated\n dateExpires\n dateCancelled\n dateRedeemed\n dateScheduledFor\n fuelTankCode\n fuelTankType\n currency\n prettyValue(locale: $locale)\n prettyValueNumber: prettyValue(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n prettyAvailableNumber: prettyAvailableValue(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n prettyRedeemedNumber: prettyRedeemedCredit(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n programId\n program {\n name\n }\n statuses\n pendingReasons\n globalRewardKey\n programRewardKey\n rewardSource\n prettyRedeemedCredit(locale: $locale)\n prettyAssignedCredit(locale: $locale)\n prettyAvailableValue(locale: $locale)\n exchangedRewardRedemptionTransaction {\n id\n creditRedeemed\n prettyRedeemedCredit(locale: $locale)\n unit\n dateRedeemed\n }\n referral {\n id\n referrerUser {\n id\n firstName\n lastName\n }\n referredUser {\n id\n firstName\n lastName\n }\n }\n rewardRedemptionTransactions {\n data {\n exchangedRewards {\n data {\n prettyValue(locale: $locale)\n type\n fuelTankCode\n globalRewardKey\n }\n }\n }\n }\n }\n }\n }\n }\n }\n'],['\n query getRewards(\n $limit: Int!\n $offset: Int!\n $rewardFilter: RewardFilterInput\n $locale: RSLocale\n ) {\n viewer {\n ... on User {\n id\n rewards(\n limit: $limit\n offset: $offset\n filter: $rewardFilter\n sortBy: { field: "dateCreated", order: DESC }\n ) {\n totalCount\n count\n data {\n meta {\n message\n }\n id\n type\n value\n unit\n name\n dateGiven\n dateCreated\n dateExpires\n dateCancelled\n dateRedeemed\n dateScheduledFor\n fuelTankCode\n fuelTankType\n currency\n prettyValue(locale: $locale)\n prettyValueNumber: prettyValue(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n prettyAvailableNumber: prettyAvailableValue(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n prettyRedeemedNumber: prettyRedeemedCredit(\n formatType: NUMBER_FORMATTED\n locale: $locale\n )\n programId\n program {\n name\n }\n statuses\n pendingReasons\n globalRewardKey\n programRewardKey\n rewardSource\n prettyRedeemedCredit(locale: $locale)\n prettyAssignedCredit(locale: $locale)\n prettyAvailableValue(locale: $locale)\n exchangedRewardRedemptionTransaction {\n id\n creditRedeemed\n prettyRedeemedCredit(locale: $locale)\n unit\n dateRedeemed\n }\n referral {\n id\n referrerUser {\n id\n firstName\n lastName\n }\n referredUser {\n id\n firstName\n lastName\n }\n }\n rewardRedemptionTransactions {\n data {\n exchangedRewards {\n data {\n prettyValue(locale: $locale)\n type\n fuelTankCode\n globalRewardKey\n }\n }\n }\n }\n }\n }\n }\n }\n }\n']));function I(e,t,r){var n,a;var s=c();var o=p();var d=f();var u=(n=e.programId)!==null&&n!==void 0?n:o;var v=__assign({userId_eq:s===null||s===void 0?void 0:s.id,accountId_eq:s===null||s===void 0?void 0:s.accountId},u?u==="classic"?{programId_exists:false}:{programId_eq:u}:{});var h=i((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),g=h[0],y=h[1];var b=m(P,(function(e){var t;return(t=e===null||e===void 0?void 0:e.viewer)===null||t===void 0?void 0:t.rewards}),{limit:e.perPage,offset:0},{rewardFilter:v,locale:d},!(s===null||s===void 0?void 0:s.jwt)),E=b.envelope,T=b.states,x=b.callbacks;var R=w();var A=_();var N=E===null||E===void 0?void 0:E.data;function D(e){return __awaiter(this,void 0,void 0,(function(){var t,r,n,a,i,l,s;var o=this;return __generator(this,(function(u){switch(u.label){case 0:t=e.filter((function(e){return e.slot!=="loading"&&e.slot!=="empty"}));r=t===null||t===void 0?void 0:t.map((function(e){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(t){return[2,U(e,(function(){return e.renderLabel()}))]}))}))}));n=N===null||N===void 0?void 0:N.map((function(e){return __awaiter(o,void 0,void 0,(function(){var r,n;var a=this;return __generator(this,(function(i){switch(i.label){case 0:r=t===null||t===void 0?void 0:t.map((function(t){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(r){return[2,U(t,(function(){return t.renderCell(e,d)}))]}))}))}));return[4,Promise.all(r)];case 1:n=i.sent();return[2,n]}}))}))}));i=n;if(!i)return[3,2];return[4,Promise.all(n)];case 1:i=u.sent().filter((function(e){return e}));u.label=2;case 2:a=i;y({rows:a});s=r;if(!s)return[3,4];return[4,Promise.all(r)];case 3:s=u.sent();u.label=4;case 4:l=s;y({columns:l,loading:false,page:T.currentPage});return[2]}}))}))}l((function(){y({loading:true});E&&D(A)}),[E,A,R]);var C=!((a=g===null||g===void 0?void 0:g.rows)===null||a===void 0?void 0:a.length)&&!(N===null||N===void 0?void 0:N.length);var S=T.loading||g.loading?"loading":C?"empty":"rows";return{states:{hasNext:T.currentPage<T.pageCount-1,hasPrev:T.currentPage>0,show:S,namespace:M},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},hiddenColumns:e.hiddenColumns,smBreakpoint:e.smBreakpoint,mdBreakpoint:e.mdBreakpoint},elements:{columns:g.columns,rows:g.rows,emptyElement:t,loadingElement:r},callbacks:{nextPage:function(){x.setCurrentPage(T.currentPage+1)},prevPage:function(){x.setCurrentPage(T.currentPage-1)}}}}function U(e,r){return __awaiter(this,void 0,void 0,(function(){var n,a,i,l;return __generator(this,(function(s){switch(s.label){case 0:n=e.tagName.toLowerCase();return[4,customElements.whenDefined(n)];case 1:s.sent();try{a=r()}catch(e){L("label promise failed",e);return[2,t("span",null)]}s.label=2;case 2:s.trys.push([2,4,,5]);return[4,a];case 3:return[2,s.sent()];case 4:i=s.sent();L("Error rendering label",i);l=T(i);return[2,t("details",null,t("summary",null,"Error"),l)];case 5:return[2]}}))}))}var k=e("sqm_rewards_table",function(){function e(e){r(this,e);this.perPage=4;this.hideLabels=false;this.prevLabel="Prev";this.moreLabel="Next";this.hiddenColumns="0";this.smBreakpoint=599;this.mdBreakpoint=799;s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=t(V,null);var r=t(B,null);var n=v()?$(this,e,r):I(this,e,r),a=n.states,i=n.data,l=n.callbacks,s=n.elements;b([this.perPage]);return t(y,{states:a,data:i,callbacks:l,elements:s})};return e}());function V(){return t("slot",{name:"empty"},t("sqm-empty",{"empty-state-image":"https://res.cloudinary.com/saasquatch/image/upload/v1644360953/squatch-assets/empty_reward2.png","empty-state-header":"View your rewards","empty-state-text":"Refer friends and complete tasks to view the details of your rewards"}))}function B(){return t("slot",{name:"loading"},t(F,null),t(F,null),t(F,null),t(F,null))}function F(){return t("sqm-table-row",null,t("sqm-table-cell",{colspan:5},t("sl-skeleton",null)))}function $(e,t,r){var n=i((function(e,t){return __assign(__assign({},e),t)}),{columns:[],rows:[],loading:false,page:0}),a=n[0],s=n[1];var d=w();var u=o((function(){return R(e.perPage)}),[e.perPage]).data;var c=_();function p(t){return __awaiter(this,void 0,void 0,(function(){var r,n,a,i,l,o,d,c;var p=this;return __generator(this,(function(f){switch(f.label){case 0:r=u;r=u.slice(0,e.perPage);n=t.filter((function(e){var t,r;return e.slot!=="loading"&&e.slot!=="empty"&&((t=e===null||e===void 0?void 0:e.firstElementChild)===null||t===void 0?void 0:t.getAttribute("slot"))!=="loading"&&((r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot"))!=="empty"}));a=n===null||n===void 0?void 0:n.map((function(e,t){return __awaiter(p,void 0,void 0,(function(){var r,n,a;return __generator(this,(function(i){n=(r=e===null||e===void 0?void 0:e.firstElementChild)===null||r===void 0?void 0:r.getAttribute("slot");if(e.tagName==="RAISINS-PLOP-TARGET"&&n!=="loading"&&n!=="empty"){e.style.position="absolute";e.setAttribute("slot","column-"+t);a=e.firstElementChild.childNodes[1];a.innerHTML="+";a.style.lineHeight="20px";return[2,U(e,(function(){return e.renderLabel(t)}))]}return[2,U(e,(function(){return e.renderLabel()}))]}))}))}));i=r===null||r===void 0?void 0:r.map((function(e){return __awaiter(p,void 0,void 0,(function(){var t,r;var a=this;return __generator(this,(function(i){switch(i.label){case 0:t=n===null||n===void 0?void 0:n.map((function(t){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(r){return[2,U(t,(function(){return t.renderCell(e,undefined)}))]}))}))}));return[4,Promise.all(t)];case 1:r=i.sent();return[2,r]}}))}))}));o=i;if(!o)return[3,2];return[4,Promise.all(i)];case 1:o=f.sent().filter((function(e){return e}));f.label=2;case 2:l=o;s({rows:l});c=a;if(!c)return[3,4];return[4,Promise.all(a)];case 3:c=f.sent();f.label=4;case 4:d=c;s({columns:d,loading:false,page:0});return[2]}}))}))}l((function(){s({loading:true});u&&p(c)}),[u,c,d]);var f=h({states:{hasPrev:false,hasNext:false,loading:false,show:"rows"},callbacks:{prevPage:function(){return console.log("Prev")},nextPage:function(){return console.log("Next")}},data:{textOverrides:{showLabels:!e.hideLabels,prevLabel:e.prevLabel,moreLabel:e.moreLabel},referralData:[],mdBreakpoint:799,smBreakpoint:599},elements:{columns:a.columns,rows:a.rows,emptyElement:t,loadingElement:r}},e.demoData||{},{arrayMerge:function(e,t){return t}});return f}var q=e("sqm_rewards_table_date_cell",function(){function e(e){r(this,e);this.ignored=true;this.locale="en";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e,t;var r=!this.date?"-":(t=(e=E.DateTime.fromMillis(this.date))===null||e===void 0?void 0:e.setLocale(x(this.locale)))===null||t===void 0?void 0:t.toLocaleString(E.DateTime.DATE_MED);return r};return e}());var O=e("sqm_rewards_table_date_column",function(){function e(e){r(this,e);this.columnTitle="Date received";this.dateShown="dateGiven";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,t("sqm-rewards-table-date-cell",{date:e[this.dateShown],locale:r})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.render=function(){b([this.dateShown,this.columnTitle]);return t(n,{style:{display:"none"}})};return e}());var j={DetailsContainer:{width:"100%",display:"flex","align-items":"center","justify-content":"space-between","margin-right":"var(--sl-spacing-small)","flex-wrap":"wrap"},Details:{"padding-bottom":"var(--sl-spacing-small)","max-width":"500px","padding-right":"var(--sl-spacing-x-small)","&::part(header)":{padding:"var(--sl-spacing-x-small)",cursor:"default"},"&::part(content)":{padding:"var(--sl-spacing-x-small) var(--sl-spacing-medium)"},"&::part(base)":{opacity:"1"},"&::part(summary-icon)":{display:"flex"}},BadgeContainer:{"& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}},BoldText:{"font-weight":"var(--sl-font-weight-semibold)"},StatusBadge:{paddingLeft:"var(--sl-spacing-xxx-small)","&::part(base)":{textAlign:"center",maxWidth:"170px",whiteSpace:"pre-line"}},Fueltank:{"& .code":{display:"flex",cursor:"pointer",userSelect:"none",color:"var(--sl-color-neutral-500)","&:hover":{color:"var(--sl-color-sky-500)"}},"& .text":{maxWidth:"90%",overflow:"hidden",textOverflow:"ellipsis",color:"inherit",fontSize:"var(--sl-font-size-small)",fontWeight:"var(--sl-font-weight-bold)"},"& .icon":{position:"relative",top:"1px",marginLeft:"var(--sl-spacing-x-small)",color:"inherit"}}};var G=g(j);var z=G.toString();var K=e("sqm_rewards_table_reward_cell",function(){function e(e){r(this,e)}e.prototype.render=function(){var e=this;d.locale=this.locale;var r=function(r){var n=r.reward;var a;var i=n.unit==="CENTS"?n.prettyValue.replace(/USD/gi,"$"):(a=n.prettyValue)!==null&&a!==void 0?a:"-";var l=n.prettyValueNumber==="1"||n.dateRedeemed&&n.prettyAvailableNumber==="0";if(n.type==="FUELTANK"){return t("div",{class:G.classes.Fueltank},n.prettyValue,n.fuelTankCode&&t("div",{class:"code",onClick:function(){return navigator.clipboard.writeText(n.fuelTankCode)}},t("sl-tooltip",{trigger:"click",placement:"top",distance:5,skidding:11,content:e.copyText,"onSl-show":function(e){return setTimeout((function(){return e.path[0].hide()}),1e3)}},t("span",{class:"text"},n.fuelTankCode),t("span",{class:"icon"},t("sl-icon",{name:"files"})))))}if(n.type==="CREDIT"&&!l){var s=parseFloat(n.prettyValueNumber)-parseFloat(n.prettyRedeemedNumber);var o=Math.round(s/parseFloat(n.prettyValueNumber)*100);var u=n.statuses.includes("EXPIRED")||n.statuses.includes("CANCELLED")?t("div",null,d.formatMessage({id:"redeemedText",defaultMessage:e.redeemedText},{redeemedAmount:n.prettyRedeemedCredit})):t("div",null,d.formatMessage({id:"availableText",defaultMessage:e.availableText},{availableAmount:n.statuses.includes("PENDING")?n.prettyAssignedCredit:n.prettyAvailableValue}));var c={Progress:{height:"3px",width:"100%",margin:"var(--sl-spacing-xx-small) 0",background:"var(--sl-color-neutral-200)","&:after":{content:'""',display:"block",background:"var(--sl-color-primary-300)",borderRadius:"100px",width:o+"%",height:"100%"}},Container:{display:"inline-block",verticalAlign:"top",width:"150px",whiteSpace:"break",overflow:"hidden",textOverflow:"ellipsis"},Text:{fontSize:"var(--sl-font-size-medium)",color:"var(--sl-color-gray-800)"},Subtext:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}};var p=g(c);var f=p.toString();return t("div",null,t("style",{type:"text/css"},f),t("div",{class:p.classes.Container},t("span",null,i+" "),t("br",null)," ",t("div",{class:p.classes.Progress}),t("span",{class:p.classes.Subtext},u)))}return t("div",null,i)};return t("div",{style:{display:"contents"}},t("style",{type:"text/css"},z),t(r,{reward:this.reward}))};return e}());var X=e("sqm_rewards_table_reward_column",function(){function e(e){r(this,e);this.columnTitle="Reward";this.redeemedText="{redeemedAmount} redeemed";this.availableText="{availableAmount} remaining";this.copyText="Copied!";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,t("sqm-rewards-table-reward-cell",{reward:e,redeemedText:this.redeemedText,availableText:this.availableText,copyText:this.copyText,locale:r})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.render=function(){b([this.columnTitle,this.redeemedText,this.availableText,this.copyText]);return t(n,{style:{display:"none"}})};return e}());var H=e("sqm_rewards_table_source_cell",function(){function e(e){r(this,e);this.locale="en"}e.prototype.render=function(){var e=this;d.locale=this.locale;var r=function(r){var n=r.reward;var a;return t("span",null,d.formatMessage({id:"rewardSourceText",defaultMessage:e.rewardSourceText},{rewardSource:n.rewardSource,programName:(a=n===null||n===void 0?void 0:n.program)===null||a===void 0?void 0:a.name}))};var n=21;var a=function(r){var a=r.reward;var i;var l=t("div",null,t("span",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}},e.rewardExchangeText),t("br",null),(i=a.exchangedRewardRedemptionTransaction)===null||i===void 0?void 0:i.prettyRedeemedCredit," → ",a.prettyValue);return a.exchangedRewardRedemptionTransaction.prettyRedeemedCredit.length+a.prettyValue.length<n?l:t("div",{style:{display:"inline-block",verticalAlign:"top"}},l)};var i=function(t){if(!t)return e.deletedUserText;if(!t.firstName&&!t.lastName)return e.anonymousUserText;if(!t.firstName)return""+t.lastName;if(!t.lastName)return""+t.firstName;return t.firstName+" "+t.lastName};var l=function(){return e.reward.rewardSource==="FRIEND_SIGNUP"||e.reward.rewardSource==="REFERRED"?t("div",null,t("div",{style:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)"}},d.formatMessage({id:"referralText",defaultMessage:e.referralText},{rewardSource:e.reward.rewardSource})),t("div",null,e.reward.rewardSource=="FRIEND_SIGNUP"?i(e.reward.referral.referredUser):i(e.reward.referral.referrerUser))):e.reward.exchangedRewardRedemptionTransaction?t(a,{reward:e.reward}):t(r,{reward:e.reward})};return t(l,null)};return e}());var W=e("sqm_rewards_table_source_column",function(){function e(e){r(this,e);this.columnTitle="Source";this.anonymousUser="Anonymous User";this.deletedUser="Deleted User";this.rewardExchangeText="Reward Exchange";this.referralText="{rewardSource, select, FRIEND_SIGNUP {Referral to} REFERRED {Referred by} other {}}";this.rewardSourceText="{rewardSource, select, MANUAL {Manual} AUTOMATED {{programName}} other {}}";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,t("sqm-rewards-table-source-cell",{reward:e,anonymousUserText:this.anonymousUser,deletedUserText:this.deletedUser,rewardExchangeText:this.rewardExchangeText,referralText:this.referralText,rewardSourceText:this.rewardSourceText,locale:r})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.render=function(){b([this.deletedUser,this.anonymousUser,this.columnTitle,this.rewardExchangeText,this.referralText,this.rewardSourceText]);return t(n,{style:{display:"none"}})};return e}());var J={Badge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",paddingLeft:"10px",whiteSpace:"pre-line"}},RedeemBadge:{"&::part(base)":{fontSize:"var(--sl-font-size-small)",padding:"4px 8px",background:"var(--sl-color-blue-600)"}},Date:{fontSize:"var(--sl-font-size-small)",color:"var(--sl-color-neutral-500)",margin:"0"}};var Q=g(J);var Y=Q.toString();var Z=e("sqm_rewards_table_status_cell",function(){function e(e){r(this,e);this.expiryText="Expires";this.locale="en";this.pendingUsTax="W-9 required";this.pendingScheduled="Until";this.pendingUnhandled="Fulfillment error"}e.prototype.rewardStatus=function(e){if(e.dateCancelled)return"CANCELLED";if(e.statuses&&e.statuses.includes("EXPIRED"))return"EXPIRED";if(e.statuses&&e.statuses.includes("PENDING"))return"PENDING";if(e.type==="CREDIT"){if(e.statuses.includes("REDEEMED"))return"REDEEMED";return"AVAILABLE"}if(e.type==="PCT_DISCOUNT"){if(e.statuses.includes("AVAILABLE"))return"AVAILABLE"}if(e.type==="INTEGRATION"||e.type==="FUELTANK"){if(e.statuses&&e.statuses.includes("PENDING"))return"PENDING";if(e.statuses&&e.statuses.includes("CANCELLED"))return"CANCELLED";if(e.statuses.includes("AVAILABLE"))return"AVAILABLE"}return""};e.prototype.render=function(){var e;d.locale=this.locale;var r=this.rewardStatus(this.reward);var n=d.formatMessage({id:"statusMessage",defaultMessage:this.statusText},{status:r});var a=r==="AVAILABLE"?"success":r==="REDEEMED"?"primary":r==="PENDING"?"warning":"danger";var i=this.reward.dateCancelled||this.reward.dateExpires||this.reward.dateRedeemed||"";var l=i&&""+(r==="AVAILABLE"&&this.reward.dateExpires?this.expiryText+" ":"")+((e=E.DateTime.fromMillis(i))===null||e===void 0?void 0:e.setLocale(x(x(this.locale))).toLocaleString(E.DateTime.DATE_MED));var s=r==="PENDING"?o(this):null;return t("div",{style:{display:"contents"}},t("style",{type:"text/css"},Y),t("sl-badge",{type:a,pill:true,class:r==="REDEEMED"?Q.classes.RedeemBadge:Q.classes.Badge},n),t("p",{class:Q.classes.Date},s||l));function o(e){var t;var r={US_TAX:e.pendingUsTax,SCHEDULED:e.reward.dateScheduledFor&&e.pendingScheduled+" "+((t=E.DateTime.fromMillis(e.reward.dateScheduledFor))===null||t===void 0?void 0:t.setLocale(x(x(e.locale||"en"))).toLocaleString(E.DateTime.DATE_MED)),UNHANDLED_ERROR:e.pendingUnhandled};return[e.reward.pendingReasons].map((function(e){var t;return(t=r[e])!==null&&t!==void 0?t:e})).join(", ")}};return e}());var ee=e("sqm_rewards_table_status_column",function(){function e(e){r(this,e);this.columnTitle="Status";this.statusText="{status, select, AVAILABLE {Available} CANCELLED {Cancelled} PENDING {Pending} EXPIRED {Expired} REDEEMED {Redeemed} other {Not available} }";this.expiryText="Expires on ";this.pendingUsTax="W-9 required";this.pendingScheduled="Until";this.pendingUnhandled="Fulfillment error";s(this)}e.prototype.disconnectedCallback=function(){};e.prototype.renderCell=function(e,r){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,t("sqm-rewards-table-status-cell",{statusText:this.statusText,reward:e,expiryText:this.expiryText,pendingScheduled:this.pendingScheduled,pendingUsTax:this.pendingUsTax,pendingUnhandled:this.pendingUnhandled,locale:r})]}))}))};e.prototype.renderLabel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.columnTitle]}))}))};e.prototype.render=function(){b([this.columnTitle,this.statusText,this.expiryText,this.pendingScheduled,this.pendingUsTax,this.pendingUnhandled]);return t(n,{style:{display:"none"}})};return e}())}}}));
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,s){function a(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r["throw"](e))}catch(e){s(e)}}function l(e){e.done?n(e.value):i(e.value).then(a,o)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(e){return function(t){return l([e,t])}}function l(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(s=a[0]&2?i["return"]:a[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,a[1])).done)return s;if(i=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(s=n.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){n.label=a[1];break}if(a[0]===6&&n.label<s[1]){n.label=s[1];s=a;break}if(s&&n.label<s[2]){n.label=s[2];n.ops.push(a);break}if(s[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-ff17b3a4.system.js","./p-d4ee07e6.system.js","./p-99397ef5.system.js","./p-bd3c2e67.system.js","./p-b2295bc5.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-27da3d2f.system.js","./p-e58c257b.system.js"],(function(e){"use strict";var t,n,r,i,s,a,o,l,u,c;return{setters:[function(e){t=e.r;n=e.h},function(e){r=e.i;i=e.m},function(){},function(e){s=e.n;a=e.f;o=e.i},function(e){l=e.j},function(e){u=e.c},function(){},function(){},function(){},function(e){c=e.P}],execute:function(){function f(e){var t=this;var n,i,o,u,c,f,d;var h=r(false),v=h[0],b=h[1];var m=r(""),p=m[0],g=m[1];var y=s(),w=y[0],_=y[1],x=_.loading,P=_.data,k=_.errors;var j=new URLSearchParams(a.location.search);var S=j.get("nextPage");var E=function(n){return __awaiter(t,void 0,void 0,(function(){var t,r,i,s,a,o;return __generator(this,(function(u){switch(u.label){case 0:g("");b(false);r=n.detail.formData;r===null||r===void 0?void 0:r.forEach((function(e,t){l.set(r,t,e)}));i=S?{nextPage:S}:null;s=e.redirectPath;a={email:r.email,urlParams:i,redirectPath:s};return[4,w(a)];case 1:o=u.sent();if(o instanceof Error){if(o.message)g("Network request failed.");return[2]}if((t=o.requestManagedIdentityPasswordResetEmail)===null||t===void 0?void 0:t.success){b(true)}return[2]}}))}))};return{states:{loading:x,error:((u=(o=(i=(n=k===null||k===void 0?void 0:k.response)===null||n===void 0?void 0:n.errors)===null||i===void 0?void 0:i[0])===null||o===void 0?void 0:o.extensions)===null||u===void 0?void 0:u.message)||((d=(f=(c=k===null||k===void 0?void 0:k.response)===null||c===void 0?void 0:c.errors)===null||f===void 0?void 0:f[0])===null||d===void 0?void 0:d.message)||p,success:v,loginPath:e.loginPath,headerText:e.headerText,loginText:e.loginText},callbacks:{submit:E}}}var d=e("sqm_portal_forgot_password",function(){function e(e){t(this,e);this.ignored=true;this.redirectPath="/resetPassword";this.emailLabel="Email";this.submitLabel="Request Password Reset";this.loginPath="/login";this.headerText="Enter your email below to receive a password reset link.";this.loginText="Sign In";i(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=o()?h(this):f(this),t=e.states,r=e.callbacks;var i={secondaryButton:n("slot",{name:"secondaryButton"},n("sl-button",{type:"text",disabled:t.loading,onClick:function(){return a.push(t.loginPath)}},"Sign In")),messageSlot:n("slot",{name:"messageSlot"},"Enter your email below to receive a password reset link."),emailLabel:this.emailLabel,submitLabel:this.submitLabel};return n(c,{states:t,callbacks:r,content:i})};return e}());function h(e){var t=this;return u({states:{error:"",loading:false,success:false},callbacks:{submit:function(e){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){return[2]}))}))}}},e.demoData||{},{arrayMerge:function(e,t){return t}})}}}}));
@@ -0,0 +1 @@
1
+ import{r as s}from"./p-64c3217a.js";import{m as t}from"./p-538904bd.js";import"./p-dbfb865e.js";import{b as o,f as a,i as r}from"./p-4352909d.js";const i=class{constructor(o){s(this,o),this.ignored=!0,this.nextPage="/",t(this)}disconnectedCallback(){}render(){r()||function({nextPage:s}){o(void 0),a.push({pathname:s,search:""})}(this)}};export{i as sqm_portal_logout}
@@ -1 +1 @@
1
- import{h as s}from"./p-64c3217a.js";import{A as t,a as e,b as a}from"./p-02be1a88.js";import{c as r}from"./p-d8876d3f.js";import{T as o}from"./p-210cd41b.js";const n=r({Wrapper:t,Column:{...e},ButtonsContainer:a,SecondaryButton:{cursor:"pointer",width:"25%"}}),i=n.toString();function p(t){const{states:e,callbacks:a,content:r}=t;return s("div",{class:n.classes.Wrapper},s("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",i),s(o,{type:"h3"},r.messageSlot),s("sl-form",{class:n.classes.Column,"onSl-submit":a.submit},t.states.error&&s("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},s("div",{part:"erroralert-text"},t.states.error)),t.states.success&&s("sqm-form-message",{type:"success",exportparts:"successalert-icon"},s("div",{part:"successalert-text"},"If an account with that email exists, a password reset email will be sent.")),s("sl-input",{exportparts:"label: input-label",type:"email",name:"/email",label:r.emailLabel||"Email",disabled:e.loading,required:!0}),s("div",{class:n.classes.ButtonsContainer},s("sl-button",{submit:!0,loading:e.loading,exportparts:"base: primarybutton-base",type:"primary"},r.submitLabel||"Reset Password"),s("div",{class:n.classes.SecondaryButton},r.secondaryButton))))}export{p as P}
1
+ import{h as s}from"./p-64c3217a.js";import{A as t,a as e,b as a}from"./p-02be1a88.js";import{c as r}from"./p-cef45012.js";import{T as o}from"./p-24d6c3fd.js";const n=r({Wrapper:t,Column:{...e},ButtonsContainer:a,SecondaryButton:{cursor:"pointer",width:"25%"}}),i=n.toString();function p(t){const{states:e,callbacks:a,content:r}=t;return s("div",{class:n.classes.Wrapper},s("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",i),s(o,{type:"h3"},r.messageSlot),s("sl-form",{class:n.classes.Column,"onSl-submit":a.submit},t.states.error&&s("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},s("div",{part:"erroralert-text"},t.states.error)),t.states.success&&s("sqm-form-message",{type:"success",exportparts:"successalert-icon"},s("div",{part:"successalert-text"},"If an account with that email exists, a password reset email will be sent.")),s("sl-input",{exportparts:"label: input-label",type:"email",name:"/email",label:r.emailLabel||"Email",disabled:e.loading,required:!0}),s("div",{class:n.classes.ButtonsContainer},s("sl-button",{submit:!0,loading:e.loading,exportparts:"base: primarybutton-base",type:"primary"},r.submitLabel||"Reset Password"),s("div",{class:n.classes.SecondaryButton},r.secondaryButton))))}export{p as P}
@@ -1 +1 @@
1
- import{h as a,d as t}from"./p-64c3217a.js";import{c as r}from"./p-d8876d3f.js";const s=r({CardContainer:{"box-sizing":"border-box",width:"100%","max-width":"260px",border:"1px solid #EAEAEA",padding:"0px 16px 16px 16px","border-radius":"8px"},TextContainer:{display:"flex","justify-content":"space-between","align-items":"center"},Title:{"font-weight":600,color:"var(--sl-color-gray-800)","max-width":"85%","overflow-wrap":"break-word"},CardImg:{width:"100%",height:"228px","border-radius":"4px"},Icon:{"&:hover":{cursor:"pointer"}}}),e=s.toString(),i=r=>{const{text:{titleText:i},imgUrl:o}=r;return a("div",{class:s.classes.CardContainer},a("style",{type:"text/css"},e),a("div",{class:s.classes.TextContainer},a("p",{class:s.classes.Title},i),a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"#000000",class:`bi bi-download ${s.classes.Icon}`,viewBox:"0 0 16 16"},a("path",{d:"M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"}),a("path",{d:"M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"}))),a("img",{src:t(o),class:s.classes.CardImg}))};export{i as A}
1
+ import{h as a,d as t}from"./p-64c3217a.js";import{c as r}from"./p-cef45012.js";const e=r({CardContainer:{"box-sizing":"border-box",width:"100%","max-width":"260px",border:"1px solid #EAEAEA",padding:"0px 16px 16px 16px","border-radius":"8px"},TextContainer:{display:"flex","justify-content":"space-between","align-items":"center"},Title:{"font-weight":600,color:"var(--sl-color-gray-800)","max-width":"85%","overflow-wrap":"break-word"},CardImg:{width:"100%",height:"228px","border-radius":"4px"},Icon:{"&:hover":{cursor:"pointer"}}}),s=e.toString(),i=r=>{const{text:{titleText:i},imgUrl:o}=r;return a("div",{class:e.classes.CardContainer},a("style",{type:"text/css"},s),a("div",{class:e.classes.TextContainer},a("p",{class:e.classes.Title},i),a("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"#000000",class:`bi bi-download ${e.classes.Icon}`,viewBox:"0 0 16 16"},a("path",{d:"M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"}),a("path",{d:"M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"}))),a("img",{src:t(o),class:e.classes.CardImg}))};export{i as A}
@@ -0,0 +1 @@
1
+ var __assign=this&&this.__assign||function(){__assign=Object.assign||function(t){for(var i,s=1,n=arguments.length;s<n;s++){i=arguments[s];for(var e in i)if(Object.prototype.hasOwnProperty.call(i,e))t[e]=i[e]}return t};return __assign.apply(this,arguments)};System.register(["./p-ff17b3a4.system.js","./p-d4ee07e6.system.js","./p-99397ef5.system.js","./p-bd3c2e67.system.js","./p-4bd679a7.system.js","./p-f6934a55.system.js","./p-1a673057.system.js","./p-b01e28dd.system.js"],(function(t){"use strict";var i,s,n,e,a,r,o,l,u,c,d;return{setters:[function(t){i=t.h;s=t.r},function(t){n=t.o;e=t.i;a=t.m},function(){},function(t){r=t.i},function(t){o=t.c},function(t){l=t.E},function(t){u=t.c},function(t){c=t.F;d=t.R}],execute:function(){var p={error:{length:"Length should be a valid positive number",password:"Password should be a valid string"},regex:{digits:"(\\d.*)",letters:"([a-zA-Z].*)",symbols:"([`~\\!@#\\$%\\^\\&\\*\\(\\)\\-_\\=\\+\\[\\{\\}\\]\\\\|;:\\'\",<.>\\/\\?€£¥₹§±].*)",spaces:"([\\s].*)"}};var v=p.regex;function h(t,i){if(i&&i>1){var s=parseInt(i,10);return new RegExp(t+"{"+s+",}").test(this.password)===this.positive}return new RegExp(t).test(this.password)===this.positive}var f={not:function t(i){this.positive=false;if(i){return h.call(this,i)}return true},has:function t(i){this.positive=true;if(i){return h.call(this,i)}return true},is:function t(){this.positive=true;return true},min:function t(i){return this.password.length>=i},max:function t(i){return this.password.length<=i},digits:function t(i){return h.call(this,v.digits,i)},letters:function t(i){return h.call(this,v.letters,i)},uppercase:function t(i){if(i&&i>1){var s=0;var n=0;while(n<i&&s<this.password.length){var e=this.password.charAt(s);if(e!==e.toLowerCase()){n++}s++}return n===i===this.positive}return this.password!==this.password.toLowerCase()===this.positive},lowercase:function t(i){if(i&&i>1){var s=0;var n=0;while(n<i&&s<this.password.length){var e=this.password.charAt(s);if(e!==e.toUpperCase()){n++}s++}return n===i===this.positive}return this.password!==this.password.toUpperCase()===this.positive},symbols:function t(i){return h.call(this,v.symbols,i)},spaces:function t(i){return h.call(this,v.spaces,i)},oneOf:function t(i){return i.indexOf(this.password)>=0===this.positive}};var m=p.error;function g(t){var i=Number(t);if(isNaN(i)||!Number.isInteger(i)||i<1){throw new Error(m.length)}}function w(t){return f[t.method].apply(this,t.arguments)}function y(t,i){this.properties.push({method:t,arguments:i});return this}var b=function(){function t(){this.properties=[]}t.prototype.validate=function(t,i){var s=this;this.list=Boolean(i&&i.list);this.password=String(t);this.positive=true;if(this.list){return this.properties.reduce((function(t,i){if(!w.call(s,i)){return t.concat(i.method)}return t}),[])}return this.properties.every(w.bind(this))};t.prototype.letters=function(t){t&&g(t);return y.call(this,"letters",arguments)};t.prototype.digits=function(t){t&&g(t);return y.call(this,"digits",arguments)};t.prototype.symbols=function(t){t&&g(t);return y.call(this,"symbols",arguments)};t.prototype.min=function(t){g(t);return y.call(this,"min",arguments)};t.prototype.max=function(t){g(t);return y.call(this,"max",arguments)};t.prototype.lowercase=function(t){t&&g(t);return y.call(this,"lowercase",arguments)};t.prototype.uppercase=function(t){t&&g(t);return y.call(this,"uppercase",arguments)};t.prototype.spaces=function(t){t&&g(t);return y.call(this,"spaces",arguments)};t.prototype.has=function(){return y.call(this,"has",arguments)};t.prototype.not=function(){return y.call(this,"not",arguments)};t.prototype.is=function(){return y.call(this,"is",arguments)};t.prototype.oneOf=function(){return y.call(this,"oneOf",arguments)};return t}();var x=b;var L=(new x).is().min(8).has().uppercase().has().lowercase().has(/([\d`~\!@#\$%\^\&\*\(\)\-_\=\+\[\{\}\]\\\|;:'",<.>\/\?€£¥₹§±].*){1,}/);var V=function(t){var i=L.validate(t,{list:true});var s=O(i,t);return s};var C=function(){return i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},i("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM4.8 9L1.8 6L2.646 5.154L4.8 7.302L9.354 2.748L10.2 3.6L4.8 9Z",fill:"#259053"}))};var _=function(){return i("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{d:"M6 0C2.688 0 0 2.688 0 6C0 9.312 2.688 12 6 12C9.312 12 12 9.312 12 6C12 2.688 9.312 0 6 0ZM6 10.8C3.354 10.8 1.2 8.646 1.2 6C1.2 3.354 3.354 1.2 6 1.2C8.646 1.2 10.8 3.354 10.8 6C10.8 8.646 8.646 10.8 6 10.8ZM8.754 3.348L4.8 7.302L3.246 5.754L2.4 6.6L4.8 9L9.6 4.2L8.754 3.348Z",fill:"#555555"}))};var I={min:"be a minimum of 8 characters",uppercase:"contain at least 1 uppercase character",lowercase:"contain at least 1 lowercase character",has:"contain at least 1 number or symbol"};var S={display:"flex",alignItems:"center",fontSize:"var(--sl-font-size-small)","& > :not(:last-child)":{"margin-right":"var(--sl-spacing-x-small)"}};var E={Base:{fontSize:"var(--sl-font-size-small)"},ValidationList:{"list-style-type":"none",paddingRight:"var(--sl-spacing-large)",margin:"var(--sl-spacing-small) 0 var(--sl-spacing-x-large)","& > :not(:last-child)":{"margin-bottom":"var(--sl-spacing-xx-small)"},"& *":{"line-height":"var(--sl-line-height-dense)"}},ValidationItemValid:__assign(__assign({},S),{color:"var(--sl-color-success-600)"}),ValidationItemInvalid:__assign({},S)};var j=u(E);var D=j.toString();var O=function(t,s){if(!t.length&&s)return i("div",{class:j.classes.ValidationItemValid,style:{paddingBottom:"var(--sl-spacing-x-large)"}},i("style",{type:"text/css"},D),i(C,null)," ",i("span",null,"Password has met all requirements"));return i("div",{class:j.classes.Base},i("style",{type:"text/css"},D),"Password must meet the following requirements:",i("ul",{class:j.classes.ValidationList},Object.keys(I).map((function(s){return t.includes(s)?i("li",{class:j.classes.ValidationItemInvalid},i(_,null)," ",i("span",null,I[s])):i("li",{class:j.classes.ValidationItemValid},i(C,null)," ",i("span",null,I[s]))}))))};var k={InputContainer:{"& > :not(:last-child)":{"margin-bottom":"20px"}},ErrorStyle:l};var F="\n:host {\n margin: 0 auto;\n width: 100%;\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n";var P=u(k);var B=P.toString();function M(t){var s,n,e,a,r,o,l,u;var c=t.states,d=t.callbacks;return i("div",{class:P.classes.InputContainer},i("style",{type:"text/css"},F,B),i("sl-input",Object.assign({exportparts:"label: input-label",type:"password",name:"/password",label:c.content.fieldLabel||"Password",required:true,disabled:((s=c.registrationFormState)===null||s===void 0?void 0:s.loading)||((n=c.registrationFormState)===null||n===void 0?void 0:n.disabled),validationError:function(t){var i=t.value;if(!i){return"Cannot be empty"}}},((a=(e=c.registrationFormState)===null||e===void 0?void 0:e.initialData)===null||a===void 0?void 0:a.password)?{value:(o=(r=c.registrationFormState)===null||r===void 0?void 0:r.initialData)===null||o===void 0?void 0:o.password}:{},((l=c.validationErrors)===null||l===void 0?void 0:l.password)?{class:P.classes.ErrorStyle,helpText:((u=c.validationErrors)===null||u===void 0?void 0:u.password)||"Cannot be empty"}:[],{onInput:function(t){return c.enableValidation&&d.onInput(t)}})),c.dynamicValidation)}function Z(t){var i=n(c);var s=n(d);var a=e(""),r=a[0],o=a[1];function l(t){var i=V(t.target.value);o(i)}return{states:{enableValidation:t.enableValidation,dynamicValidation:r,registrationFormState:s,validationErrors:i===null||i===void 0?void 0:i.validationErrors,content:{fieldLabel:t.fieldLabel}},callbacks:{onInput:l}}}var z=t("sqm_password_field",function(){function t(t){s(this,t);this.ignored=true;this.fieldLabel="Password";this.enableValidation=true;a(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=r()?q(this):Z(this),s=t.states,n=t.callbacks;return i(M,{states:s,callbacks:n})};return t}());function q(t){var i,s,n,a,r,l,u;var c=e(""),d=c[0],p=c[1];var v=e(""),h=v[0],f=v[1];if(t.demoData&&h!=((i=t===null||t===void 0?void 0:t.demoData)===null||i===void 0?void 0:i.initValue)){var m=V(((s=t===null||t===void 0?void 0:t.demoData)===null||s===void 0?void 0:s.initValue)||"");p(((n=t===null||t===void 0?void 0:t.demoData)===null||n===void 0?void 0:n.initValue)===""?"":m);f((a=t===null||t===void 0?void 0:t.demoData)===null||a===void 0?void 0:a.initValue)}function g(t){var i=V(t.target.value);p(i)}return o({states:{enableValidation:true,dynamicValidation:d,validationErrors:((l=(r=t===null||t===void 0?void 0:t.demoData)===null||r===void 0?void 0:r.states)===null||l===void 0?void 0:l.validationErrors)||{},registrationFormState:{},content:{fieldLabel:"Password"}},callbacks:{onInput:g}},((u=t===null||t===void 0?void 0:t.demoData)===null||u===void 0?void 0:u.states)||{},{arrayMerge:function(t,i){return i}})}}}}));
@@ -0,0 +1 @@
1
+ System.register(["./p-ff17b3a4.system.js","./p-d4ee07e6.system.js","./p-99397ef5.system.js","./p-bd3c2e67.system.js"],(function(e){"use strict";var t,r,i,n,o,a,s,c,u;return{setters:[function(e){t=e.r;r=e.h;i=e.c},function(e){n=e.f;o=e.m},function(){},function(e){a=e.N;s=e.c;c=e.f;u=e.i}],execute:function(){function f(e){var t=e.requireEmailVerification,r=e.redirectTo,i=e.redirectToUnverified;var o;var u=a();var f=!!(u===null||u===void 0?void 0:u.jwt);var d=(o=u===null||u===void 0?void 0:u.managedIdentity)===null||o===void 0?void 0:o.emailVerified;var l=s(),p=l.pathname,v=l.search;var h=new URLSearchParams;h.append("nextPage",""+p+v);n((function(){if(!f){return c.push({pathname:r,search:"?"+h.toString()})}if(t&&!d){return c.push({pathname:i||r,search:"?"+h.toString()})}}),[]);return!!u}var d=e("sqm_portal_protected_route",function(){function e(e){t(this,e);this.ignored=true;this.redirectTo="/";this.requireEmailVerification=false;this.redirectToUnverified="/emailVerification";o(this)}e.prototype.disconnectedCallback=function(){};e.prototype.render=function(){var e=u()?l():f(this);return r(i,{style:{display:e?"contents":"none"}},r("slot",null))};return e}());function l(e){return true}}}}));
@@ -1 +1 @@
1
- System.register(["./p-d4ee07e6.system.js","./p-dc37fe51.system.js"],(function(t){"use strict";var e,r;return{setters:[function(t){e=t.y},function(t){r=t.x}],execute:function(){t({a:n,u:i});var a=t("F","sq:validation-state");function n(t){var n=r();var s=e(n,a,t),i=s[0],o=s[1];return{validationState:i,setValidationState:o}}var s=t("R","sq:registration-form-state");function i(t){var a=r();var n=e(a,s,t),i=n[0],o=n[1];return{registrationFormState:i,setRegistrationFormState:o}}}}}));
1
+ System.register(["./p-d4ee07e6.system.js","./p-bd3c2e67.system.js"],(function(t){"use strict";var e,r;return{setters:[function(t){e=t.y},function(t){r=t.R}],execute:function(){t({a:n,u:i});var a=t("F","sq:validation-state");function n(t){var n=r();var s=e(n,a,t),i=s[0],o=s[1];return{validationState:i,setValidationState:o}}var s=t("R","sq:registration-form-state");function i(t){var a=r();var n=e(a,s,t),i=n[0],o=n[1];return{registrationFormState:i,setRegistrationFormState:o}}}}}));
@@ -1 +1 @@
1
- import{h as e}from"./p-64c3217a.js";import{A as t,a as r}from"./p-02be1a88.js";import{c as s}from"./p-d8876d3f.js";import{T as a}from"./p-210cd41b.js";const o=s({Wrapper:t,Column:r,ContinueButton:{width:"100%"}}),i=o.toString();function n(t){const{states:r,data:s,callbacks:n}=t;return r.verified?e("div",{class:o.classes.Wrapper},e("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",i),e(a,{type:"h3"},"Verify your email"),e("sqm-form-message",{exportparts:"success-icon"},e("div",{part:"successalert-text"},"Your email has been verified and you are being redirected. If you are not redirected, please click Continue.")),e("sl-button",{class:o.classes.ContinueButton,onClick:n.gotoNextPage,loading:r.loading,exportparts:"base: primarybutton-base",type:"primary"},"Continue")):r.error||!s.oobCode?e("div",{class:o.classes.Wrapper},e("style",{type:"text/css"},i),e(a,{type:"h3"},"Verify your email"),e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},"The email verification code is invalid or has expired, please try again.")),e("sl-button",{class:o.classes.ContinueButton,onClick:n.failed,loading:r.loading,exportparts:"base: primarybutton-base",type:"primary"},"Continue")):void 0}export{n as P}
1
+ import{h as e}from"./p-64c3217a.js";import{A as t,a as r}from"./p-02be1a88.js";import{c as s}from"./p-cef45012.js";import{T as a}from"./p-24d6c3fd.js";const o=s({Wrapper:t,Column:r,ContinueButton:{width:"100%"}}),i=o.toString();function n(t){const{states:r,data:s,callbacks:n}=t;return r.verified?e("div",{class:o.classes.Wrapper},e("style",{type:"text/css"},"\n:host {\n display: block;\n}\n:host([hidden]): {\n display: none;\n}\n",i),e(a,{type:"h3"},"Verify your email"),e("sqm-form-message",{exportparts:"success-icon"},e("div",{part:"successalert-text"},"Your email has been verified and you are being redirected. If you are not redirected, please click Continue.")),e("sl-button",{class:o.classes.ContinueButton,onClick:n.gotoNextPage,loading:r.loading,exportparts:"base: primarybutton-base",type:"primary"},"Continue")):r.error||!s.oobCode?e("div",{class:o.classes.Wrapper},e("style",{type:"text/css"},i),e(a,{type:"h3"},"Verify your email"),e("sqm-form-message",{type:"error",exportparts:"erroralert-icon"},e("div",{part:"erroralert-text"},"The email verification code is invalid or has expired, please try again.")),e("sl-button",{class:o.classes.ContinueButton,onClick:n.failed,loading:r.loading,exportparts:"base: primarybutton-base",type:"primary"},"Continue")):void 0}export{n as P}
@@ -0,0 +1 @@
1
+ System.register(["./p-d4ee07e6.system.js","./p-bd3c2e67.system.js"],(function(e){"use strict";var t,n,r;return{setters:[function(e){t=e.f},function(e){n=e.R;r=e.o}],execute:function(){e({a:s,u:o});var u="sqm:request-rerender";function s(e){var r=n();t((function(){r.dispatchEvent(new CustomEvent(u,{detail:true,bubbles:true,composed:true}))}),e)}function o(){var e=n();var s=r(),o=s[0],i=s[1];t((function(){var t=function(e){e.stopPropagation();i()};e.addEventListener(u,t);return function(){e.removeEventListener(u,t)}}),[]);return o}}}}));
@@ -0,0 +1 @@
1
+ import{r as e,h as i}from"./p-64c3217a.js";import{i as t,m as a}from"./p-538904bd.js";import"./p-914511f3.js";import"./p-dbfb865e.js";import{t as o,N as s,f as r,i as l}from"./p-4352909d.js";import{c as n}from"./p-c1086930.js";import"./p-02be1a88.js";import"./p-cef45012.js";import"./p-24d6c3fd.js";import{P as c}from"./p-175ef60c.js";const m=class{constructor(i){e(this,i),this.ignored=!0,this.redirectPath="/verifyEmail",this.emailVerificationHeader="Verify your email",this.resendEmailButtonText="Re-send Email",this.verifyMessage="A verification email was sent to {email}. Please verify your email to continue to the portal.",a(this)}disconnectedCallback(){}render(){const{states:e,callbacks:a,content:m}=l()?n({states:{error:"",loading:!1,success:!1},callbacks:{submit:async()=>{}},content:{email:"test@example.com",verifyMessage:"A verification email was sent to {email}. Please verify your email to continue to the portal.",emailVerificationHeader:"Verify your email",resendEmailButtonText:"Re-send Email"}},this.demoData||{},{arrayMerge:(e,i)=>i}):function(e){var i,a,l,n,c,m,d,u;const[v,{loading:f,errors:p}]=o(),h=s(),y=null===(i=null==h?void 0:h.managedIdentity)||void 0===i?void 0:i.email,[b,j]=t(!1),[g,P]=t(""),k=new URLSearchParams(r.location.search).get("nextPage");return{states:{loading:f,error:(null===(c=null===(n=null===(l=null===(a=null==p?void 0:p.response)||void 0===a?void 0:a.errors)||void 0===l?void 0:l[0])||void 0===n?void 0:n.extensions)||void 0===c?void 0:c.message)||(null===(u=null===(d=null===(m=null==p?void 0:p.response)||void 0===m?void 0:m.errors)||void 0===d?void 0:d[0])||void 0===u?void 0:u.message)||g,success:b},callbacks:{submit:async()=>{var i;if(!y)return;P(""),j(!1);const t={email:y,urlParams:k?{nextPage:k}:null,redirectPath:e.redirectPath},a=await v(t);a instanceof Error?a.message&&P("Network request failed."):(null===(i=a.requestManagedIdentityVerificationEmail)||void 0===i?void 0:i.success)&&j(!0)}},content:{email:y,verifyMessage:e.verifyMessage,emailVerificationHeader:e.emailVerificationHeader,resendEmailButtonText:e.resendEmailButtonText}}}(this);return i(c,{states:e,callbacks:a,content:m})}};export{m as sqm_portal_email_verification}
@@ -0,0 +1 @@
1
+ var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):i(e.value).then(o,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArrays=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};System.register(["./p-d4ee07e6.system.js","./p-99397ef5.system.js"],(function(e){"use strict";var t,n,r,i,a,o,s,u,c,l,f,d;return{setters:[function(e){t=e.d;n=e.s;r=e.c;i=e.a;a=e.e;o=e.u;s=e.h;u=e.f;c=e.i;l=e.j;f=e.k},function(e){d=e.u}],execute:function(){var p=this;e({H:Mr,M:Oi,N:Vr,O:Lr,P:_i,R:Pr,V:jr,W:Li,X:Wi,a:sa,b:Se,c:ua,e:Vi,g:xe,i:G,j:K,k:Pi,l:Ai,n:ea,o:ia,p:Bi,q:Ci,t:na,v:da,x:Rr,z:Ki});function h(e){this.message=e}h.prototype=new Error,h.prototype.name="InvalidCharacterError";var v="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new h("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,o="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?o+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function y(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(v(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return v(t)}}function m(e){this.message=e}function b(e,t){if("string"!=typeof e)throw new m("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(y(e.split(".")[n]))}catch(e){throw new m("Invalid token specified: "+e.message)}}m.prototype=new Error,m.prototype.name="InvalidTokenError";var g=Object.prototype,E=g.toString,w=g.hasOwnProperty;var _=Function.prototype.toString;var S=new Map;function T(e,t){try{return O(e,t)}finally{S.clear()}}function O(e,t){if(e===t){return true}var n=E.call(e);var r=E.call(t);if(n!==r){return false}switch(n){case"[object Array]":if(e.length!==t.length)return false;case"[object Object]":{if(D(e,t))return true;var i=I(e);var a=I(t);var o=i.length;if(o!==a.length)return false;for(var s=0;s<o;++s){if(!w.call(t,i[s])){return false}}for(var s=0;s<o;++s){var u=i[s];if(!O(e[u],t[u])){return false}}return true}case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":{if(e.size!==t.size)return false;if(D(e,t))return true;var c=e.entries();var l=n==="[object Map]";while(true){var f=c.next();if(f.done)break;var d=f.value,p=d[0],h=d[1];if(!t.has(p)){return false}if(l&&!O(h,t.get(p))){return false}}return true}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e);t=new Uint8Array(t);case"[object DataView]":{var v=e.byteLength;if(v===t.byteLength){while(v--&&e[v]===t[v]){}}return v===-1}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var y=_.call(e);if(y!==_.call(t)){return false}return!N(y,A)}}return false}function I(e){return Object.keys(e).filter(x,e)}function x(e){return this[e]!==void 0}var A="{ [native code] }";function N(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function D(e,t){var n=S.get(e);if(n){if(n.has(t))return true}else{S.set(e,n=new Set)}n.add(t);return false}var C=Object.defineProperty;var k=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var P=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty;var R=Object.prototype.propertyIsEnumerable;var L=function(e,t,n){return t in e?C(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n};var M=function(e,t){for(var n in t||(t={}))if(j.call(t,n))L(e,n,t[n]);if(P)for(var r=0,i=P(t);r<i.length;r++){var n=i[r];if(R.call(t,n))L(e,n,t[n])}return e};var V=function(e,t){return k(e,F(t))};var B="sq:user-identity";var U="sq:locale";var q="sq:program-id";var $="EMBED";function J(){return K().type}function K(){var e,t;if(window["SquatchAndroid"]){return{type:"SquatchAndroid",android:window["SquatchAndroid"],widgetIdent:window["widgetIdent"]}}if(window["SquatchPortal"]){return{type:"SquatchPortal",env:window["SquatchPortal"]}}if(window["SquatchAdmin"]){return{type:"SquatchAdmin",adminSDK:window["SquatchAdmin"]}}if(window["widgetIdent"]&&((e=window["widgetIdent"])==null?void 0:e.env)!=="demo"){return{type:"SquatchJS2",api:(t=window.frameElement)==null?void 0:t["squatchJsApi"],widgetIdent:window["widgetIdent"]}}return{type:"None"}}function G(){var e=K();return e.type==="None"||e.type==="SquatchAdmin"}var H="demo";function Y(){var e=K();switch(e.type){case"SquatchAndroid":case"SquatchJS2":return e.widgetIdent.tenantAlias;case"SquatchAdmin":case"None":return H;case"SquatchPortal":return e.env.tenantAlias}}var z="https://app.referralsaasquatch.com";function Q(){var e;var t=K();switch(t.type){case"SquatchAndroid":case"SquatchJS2":return t.widgetIdent.appDomain;case"SquatchPortal":return((e=t.env)==null?void 0:e.appDomain)||z;case"SquatchAdmin":case"None":return z}}function W(){var e=K();switch(e.type){case"SquatchJS2":return e.widgetIdent.engagementMedium||$;case"SquatchAndroid":case"SquatchPortal":case"SquatchAdmin":case"None":return $}}var X=function(){var e;try{return(e=window==null?void 0:window.localStorage)==null?void 0:e.getItem("debug")}catch(e){return false}}();function Z(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}if(X){console.debug.apply(console,__spreadArrays(["sq:environment:"+e],t))}}var ee=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return Z.apply(void 0,__spreadArrays(["history"],e))};function te(e){if(typeof e==="string")return e;var t=new URL(e.pathname,window.origin);if(e.search)t.search=e.search;if(e.hash)t.hash=e.hash;return t}var ne=function(){function e(){this.listeners=new Set;window.addEventListener("popstate",this.notify.bind(this));window.addEventListener("pushState",this.notify.bind(this));window.addEventListener("replaceState",this.notify.bind(this))}e.prototype.listen=function(e){var t=this;this.listeners.add(e);return function(){t.listeners.delete(e)}};e.prototype.notify=function(){ee("notifying listeners of route change",this.location);if(this.listeners){this.listeners.forEach((function(e){return e()}))}};Object.defineProperty(e.prototype,"location",{get:function(){return{pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,state:window.history.state}},enumerable:false,configurable:true});e.prototype.back=function(){this.go(-1)};e.prototype.forward=function(){this.go(1)};e.prototype.go=function(e){window.history.go(e)};e.prototype.push=function(e,t){var n=te(e);window.history.pushState(t,"",n)};e.prototype.replace=function(e,t){var n=te(e);window.history.replaceState(t,"",n)};return e}();var re=function(){function e(){this.history=[{pathname:"/",search:"",hash:""}];this.index=0;this.listeners=new Set}e.prototype.listen=function(e){var t=this;this.listeners.add(e);return function(){t.listeners.delete(e)}};e.prototype.current=function(){return this.history[this.index]};Object.defineProperty(e.prototype,"state",{get:function(){return this.current().state},enumerable:false,configurable:true});e.prototype.notify=function(){ee("notifying listeners of route change",this.location);this.listeners.forEach((function(e){return e()}))};Object.defineProperty(e.prototype,"location",{get:function(){return this.history[this.index]},enumerable:false,configurable:true});e.prototype.back=function(){this.go(-1)};e.prototype.forward=function(){this.go(1)};e.prototype.go=function(e){this.index+=e;if(this.index<0)this.index=0;if(this.index>=this.history.length)this.index=this.history.length-1;this.notify()};e.prototype.push=function(e,t){var n;if(typeof e==="string"){n={pathname:e,search:this.history[this.index].search,hash:this.history[this.index].hash,state:t}}else{n=V(M({},e),{state:t})}this.index++;this.history.splice(this.index,this.history.length,n);this.notify()};e.prototype.replace=function(e,t){if(typeof e==="string"){this.history[this.index]={pathname:e,search:this.history[this.index].search,hash:this.history[this.index].hash,state:t}}else{this.history[this.index]=V(M({},e),{state:t})}this.notify()};return e}();function ie(){if(J()==="SquatchPortal"){var e=function(e){var t=window.history[e];return function(){var n=[];for(var r=0;r<arguments.length;r++){n[r]=arguments[r]}var i=t.apply(window.history,n);var a=new Event(e);window.dispatchEvent(a);return i}};window.history.pushState=e("pushState");window.history.replaceState=e("replaceState");return new ne}else{return new re}}function ae(){window.squatchHistory=window.squatchHistory||ie();return window.squatchHistory}var oe=function(){function e(){}Object.defineProperty(e.prototype,"location",{get:function(){return ae().location},enumerable:false,configurable:true});e.prototype.listen=function(e){return ae().listen(e)};e.prototype.back=function(){ae().back()};e.prototype.forward=function(){ae().forward()};e.prototype.go=function(e){ae().go(e)};e.prototype.push=function(e,t){ae().push(e,t)};e.prototype.replace=function(e,t){ae().replace(e,t)};return e}();var se=new oe;var ue=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return Z.apply(void 0,__spreadArrays([U],e))};function ce(){var e;var n=window.squatchLocale;if(!n){ue("Creating locale context provider");n=new t({element:document.documentElement,initialState:((e=window.widgetIdent)==null?void 0:e.locale)||navigator.language.replace("-","_"),contextName:U}).start();window.squatchLocale=n}return n}var le=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return Z.apply(void 0,__spreadArrays([U],e))};var fe="\n query {\n viewer {\n ... on User {\n locale\n }\n }\n }\n";function de(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r;return __generator(this,(function(i){switch(i.label){case 0:le("Fetching locale from GraphQL for current user");i.label=1;case 1:i.trys.push([1,4,,5]);return[4,fetch(Q()+"/api/v1/"+Y()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+((e=Te())==null?void 0:e.jwt)},body:JSON.stringify({query:fe})})];case 2:t=i.sent();if(!t.ok){throw new Error("Failed to fetch locale")}return[4,t.json()];case 3:n=i.sent();if(n.errors){throw new Error(JSON.stringify(n.errors,null,2))}return[2,n.data.viewer.locale||void 0];case 4:r=i.sent();le("Failed to fetch locale for current user",r.message);return[2,void 0];case 5:return[2]}}))}))}var pe=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return Z.apply(void 0,__spreadArrays([U],e))};var he=function(){var e="__environment_context_listener";var t=document.getElementById(e);if(!t){t=document.createElement("div");t.id=e;document.documentElement.appendChild(t)}return t}();var ve=new n({contextName:B,element:he,onChange:function(e){return __awaiter(p,void 0,void 0,(function(){var t,n,r,i,a;return __generator(this,(function(o){switch(o.label){case 0:n=ce();r=((t=window.widgetIdent)==null?void 0:t.locale)||navigator.language.replace("-","_");if(!e)return[3,2];pe("User context changed, refetching locale");return[4,de()];case 1:a=o.sent();if(n.context!==a){pe("New value fetched from GraphQL ["+a+"]");i=a||r}return[3,3];case 2:i=r;o.label=3;case 3:pe("Setting locale context to ["+i+"]");n.context=i;return[2]}}))}))}});function ye(){pe("Starting user context listener for locale updates");ve.start()}var me=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return Z.apply(void 0,__spreadArrays([B],e))};function be(){var e=window.squatchUserIdentity;if(!e){me("Creating user context provider");e=new t({element:document.documentElement,initialState:_e(),contextName:B}).start();window.squatchUserIdentity=e;ye()}return e}function ge(e){return e.user&&e.user.id&&e.user.accountId}function Ee(e){return e.sub&&/.*:.*@.*:users/.test(e.sub)}function we(e){if(!e)return void 0;try{var t=b(e);var n=t.exp;var r=void 0;var i=void 0;if(Ee(t)){var a=t.sub.match(/(.*):(.*)@(.*):users/);if(a==null?void 0:a[1])i=atob(a[1]);if(a==null?void 0:a[2])r=atob(a[2])}else if(ge(t)){i=t.user.accountId;r=t.user.id}if(!r||!i){return void 0}if(n&&Date.now()>=n*1e3){return void 0}return{id:r,accountId:i,jwt:e}}catch(e){return void 0}}function _e(){var e=K();switch(e.type){case"SquatchAndroid":case"SquatchJS2":return{id:e.widgetIdent.userId,accountId:e.widgetIdent.accountId,jwt:e.widgetIdent.token};case"SquatchPortal":var t=new URLSearchParams(document.location.search);if(t.has("jwt")){return we(t.get("jwt"))}var n=localStorage.getItem(B);if(!n)return void 0;try{var r=JSON.parse(n);var i=we(r.jwt);if(i){return M(M({},r),i)}return void 0}catch(e){return void 0}case"SquatchAdmin":case"None":return void 0}}function Se(e){var t=be();if(!T(t.context,e)){me("Setting user context value ["+JSON.stringify(e)+"]");t.context=e}if(e&&K().type==="SquatchPortal"){localStorage.setItem(B,JSON.stringify(e))}else if(!e){localStorage.removeItem(B)}}function Te(){var e;return(e=window.squatchUserIdentity)==null?void 0:e.context}var Oe=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return Z.apply(void 0,__spreadArrays([q],e))};function Ie(){var e;var n=window.squatchProgramId;if(!n){Oe("Creating program context provider");n=new t({element:document.documentElement,initialState:((e=window.widgetIdent)==null?void 0:e.programId)||void 0,contextName:q}).start();window.squatchProgramId=n}return n}function xe(e){var t=Ie();if(t.context!==e){Oe("Setting program context value ["+e+"]");t.context=e}}function Ae(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Ae=function e(t){return typeof t}}else{Ae=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return Ae(e)}function Ne(e){return Ae(e)=="object"&&e!==null}var De=typeof Symbol==="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function Ce(e,t){var n=/\r\n|[\n\r]/g;var r=1;var i=t+1;var a;while((a=n.exec(e.body))&&a.index<t){r+=1;i=t+1-(a.index+a[0].length)}return{line:r,column:i}}function ke(e){return Fe(e.source,Ce(e.source,e.start))}function Fe(e,t){var n=e.locationOffset.column-1;var r=je(n)+e.body;var i=t.line-1;var a=e.locationOffset.line-1;var o=t.line+a;var s=t.line===1?n:0;var u=t.column+s;var c="".concat(e.name,":").concat(o,":").concat(u,"\n");var l=r.split(/\r\n|[\n\r]/g);var f=l[i];if(f.length>120){var d=Math.floor(u/80);var p=u%80;var h=[];for(var v=0;v<f.length;v+=80){h.push(f.slice(v,v+80))}return c+Pe([["".concat(o),h[0]]].concat(h.slice(1,d+1).map((function(e){return["",e]})),[[" ",je(p-1)+"^"],["",h[d+1]]]))}return c+Pe([["".concat(o-1),l[i-1]],["".concat(o),f],["",je(u-1)+"^"],["".concat(o+1),l[i+1]]])}function Pe(e){var t=e.filter((function(e){var t=e[1];return t!==undefined}));var n=Math.max.apply(Math,t.map((function(e){var t=e[0];return t.length})));return t.map((function(e){var t=e[0],r=e[1];return Re(n,t)+(r?" | "+r:" |")})).join("\n")}function je(e){return Array(e+1).join(" ")}function Re(e,t){return je(e-t.length)+t}function Le(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Le=function e(t){return typeof t}}else{Le=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return Le(e)}function Me(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function Be(e,t,n){if(t)Ve(e.prototype,t);if(n)Ve(e,n);return e}function Ue(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)ze(e,t)}function qe(e){var t=He();return function n(){var r=Qe(e),i;if(t){var a=Qe(this).constructor;i=Reflect.construct(r,arguments,a)}else{i=r.apply(this,arguments)}return $e(this,i)}}function $e(e,t){if(t&&(Le(t)==="object"||typeof t==="function")){return t}return Je(e)}function Je(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function Ke(e){var t=typeof Map==="function"?new Map:undefined;Ke=function e(n){if(n===null||!Ye(n))return n;if(typeof n!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof t!=="undefined"){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return Ge(n,arguments,Qe(this).constructor)}r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}});return ze(r,n)};return Ke(e)}function Ge(e,t,n){if(He()){Ge=Reflect.construct}else{Ge=function e(t,n,r){var i=[null];i.push.apply(i,n);var a=Function.bind.apply(t,i);var o=new a;if(r)ze(o,r.prototype);return o}}return Ge.apply(null,arguments)}function He(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return true}catch(e){return false}}function Ye(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ze(e,t){ze=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return ze(e,t)}function Qe(e){Qe=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return Qe(e)}var We=function(e){Ue(n,e);var t=qe(n);function n(e,r,i,a,o,s,u){var c,l,f,d;var p;Me(this,n);p=t.call(this,e);var h=Array.isArray(r)?r.length!==0?r:undefined:r?[r]:undefined;var v=i;if(!v&&h){var y;v=(y=h[0].loc)===null||y===void 0?void 0:y.source}var m=a;if(!m&&h){m=h.reduce((function(e,t){if(t.loc){e.push(t.loc.start)}return e}),[])}if(m&&m.length===0){m=undefined}var b;if(a&&i){b=a.map((function(e){return Ce(i,e)}))}else if(h){b=h.reduce((function(e,t){if(t.loc){e.push(Ce(t.loc.source,t.loc.start))}return e}),[])}var g=u;if(g==null&&s!=null){var E=s.extensions;if(Ne(E)){g=E}}Object.defineProperties(Je(p),{name:{value:"GraphQLError"},message:{value:e,enumerable:true,writable:true},locations:{value:(c=b)!==null&&c!==void 0?c:undefined,enumerable:b!=null},path:{value:o!==null&&o!==void 0?o:undefined,enumerable:o!=null},nodes:{value:h!==null&&h!==void 0?h:undefined},source:{value:(l=v)!==null&&l!==void 0?l:undefined},positions:{value:(f=m)!==null&&f!==void 0?f:undefined},originalError:{value:s},extensions:{value:(d=g)!==null&&d!==void 0?d:undefined,enumerable:g!=null}});if(s!==null&&s!==void 0&&s.stack){Object.defineProperty(Je(p),"stack",{value:s.stack,writable:true,configurable:true});return $e(p)}if(Error.captureStackTrace){Error.captureStackTrace(Je(p),n)}else{Object.defineProperty(Je(p),"stack",{value:Error().stack,writable:true,configurable:true})}return p}Be(n,[{key:"toString",value:function e(){return Xe(this)}},{key:De,get:function e(){return"Object"}}]);return n}(Ke(Error));function Xe(e){var t=e.message;if(e.nodes){for(var n=0,r=e.nodes;n<r.length;n++){var i=r[n];if(i.loc){t+="\n\n"+ke(i.loc)}}}else if(e.source&&e.locations){for(var a=0,o=e.locations;a<o.length;a++){var s=o[a];t+="\n\n"+Fe(e.source,s)}}return t}function Ze(e,t,n){return new We("Syntax Error: ".concat(n),undefined,e,[t])}var et=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"});function tt(e,t){var n=Boolean(e);if(!n){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}var nt=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):undefined;function rt(e){var t=e.prototype.toJSON;typeof t==="function"||tt(0);e.prototype.inspect=t;if(nt){e.prototype[nt]=t}}var it=function(){function e(e,t,n){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=n}var t=e.prototype;t.toJSON=function e(){return{start:this.start,end:this.end}};return e}();rt(it);var at=function(){function e(e,t,n,r,i,a,o){this.kind=e;this.start=t;this.end=n;this.line=r;this.column=i;this.value=o;this.prev=a;this.next=null}var t=e.prototype;t.toJSON=function e(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};return e}();rt(at);function ot(e){return e!=null&&typeof e.kind==="string"}var st=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function ut(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){ut=function e(t){return typeof t}}else{ut=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return ut(e)}var ct=10;var lt=2;function ft(e){return dt(e,[])}function dt(e,t){switch(ut(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":if(e===null){return"null"}return pt(e,t);default:return String(e)}}function pt(e,t){if(t.indexOf(e)!==-1){return"[Circular]"}var n=[].concat(t,[e]);var r=yt(e);if(r!==undefined){var i=r.call(e);if(i!==e){return typeof i==="string"?i:dt(i,n)}}else if(Array.isArray(e)){return vt(e,n)}return ht(e,n)}function ht(e,t){var n=Object.keys(e);if(n.length===0){return"{}"}if(t.length>lt){return"["+mt(e)+"]"}var r=n.map((function(n){var r=dt(e[n],t);return n+": "+r}));return"{ "+r.join(", ")+" }"}function vt(e,t){if(e.length===0){return"[]"}if(t.length>lt){return"[Array]"}var n=Math.min(ct,e.length);var r=e.length-n;var i=[];for(var a=0;a<n;++a){i.push(dt(e[a],t))}if(r===1){i.push("... 1 more item")}else if(r>1){i.push("... ".concat(r," more items"))}return"["+i.join(", ")+"]"}function yt(e){var t=e[String(nt)];if(typeof t==="function"){return t}if(typeof e.inspect==="function"){return e.inspect}}function mt(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){var n=e.constructor.name;if(typeof n==="string"&&n!==""){return n}}return t}function bt(e,t){var n=Boolean(e);if(!n){throw new Error(t)}}var gt=function e(t,n){return t instanceof n};function Et(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(e,r.key,r)}}function wt(e,t,n){if(t)Et(e.prototype,t);if(n)Et(e,n);return e}var _t=function(){function e(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"GraphQL request";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{line:1,column:1};typeof e==="string"||bt(0,"Body must be a string. Received: ".concat(ft(e),"."));this.body=e;this.name=t;this.locationOffset=n;this.locationOffset.line>0||bt(0,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||bt(0,"column in locationOffset is 1-indexed and must be positive.")}wt(e,[{key:De,get:function e(){return"Source"}}]);return e}();function St(e){return gt(e,_t)}var Tt=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function Ot(e){var t=e.split(/\r\n|[\n\r]/g);var n=xt(e);if(n!==0){for(var r=1;r<t.length;r++){t[r]=t[r].slice(n)}}var i=0;while(i<t.length&&It(t[i])){++i}var a=t.length;while(a>i&&It(t[a-1])){--a}return t.slice(i,a).join("\n")}function It(e){for(var t=0;t<e.length;++t){if(e[t]!==" "&&e[t]!=="\t"){return false}}return true}function xt(e){var t;var n=true;var r=true;var i=0;var a=null;for(var o=0;o<e.length;++o){switch(e.charCodeAt(o)){case 13:if(e.charCodeAt(o+1)===10){++o}case 10:n=false;r=true;i=0;break;case 9:case 32:++i;break;default:if(r&&!n&&(a===null||i<a)){a=i}r=false}}return(t=a)!==null&&t!==void 0?t:0}function At(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var r=e.indexOf("\n")===-1;var i=e[0]===" "||e[0]==="\t";var a=e[e.length-1]==='"';var o=e[e.length-1]==="\\";var s=!r||a||o||n;var u="";if(s&&!(r&&i)){u+="\n"+t}u+=t?e.replace(/\n/g,"\n"+t):e;if(s){u+="\n"}return'"""'+u.replace(/"""/g,'\\"""')+'"""'}var Nt=function(){function e(e){var t=new at(st.SOF,0,0,0,0,null);this.source=e;this.lastToken=t;this.token=t;this.line=1;this.lineStart=0}var t=e.prototype;t.advance=function e(){this.lastToken=this.token;var t=this.token=this.lookahead();return t};t.lookahead=function e(){var t=this.token;if(t.kind!==st.EOF){do{var n;t=(n=t.next)!==null&&n!==void 0?n:t.next=kt(this,t)}while(t.kind===st.COMMENT)}return t};return e}();function Dt(e){return e===st.BANG||e===st.DOLLAR||e===st.AMP||e===st.PAREN_L||e===st.PAREN_R||e===st.SPREAD||e===st.COLON||e===st.EQUALS||e===st.AT||e===st.BRACKET_L||e===st.BRACKET_R||e===st.BRACE_L||e===st.PIPE||e===st.BRACE_R}function Ct(e){return isNaN(e)?st.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function kt(e,t){var n=e.source;var r=n.body;var i=r.length;var a=t.end;while(a<i){var o=r.charCodeAt(a);var s=e.line;var u=1+a-e.lineStart;switch(o){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a;++e.line;e.lineStart=a;continue;case 13:if(r.charCodeAt(a+1)===10){a+=2}else{++a}++e.line;e.lineStart=a;continue;case 33:return new at(st.BANG,a,a+1,s,u,t);case 35:return Pt(n,a,s,u,t);case 36:return new at(st.DOLLAR,a,a+1,s,u,t);case 38:return new at(st.AMP,a,a+1,s,u,t);case 40:return new at(st.PAREN_L,a,a+1,s,u,t);case 41:return new at(st.PAREN_R,a,a+1,s,u,t);case 46:if(r.charCodeAt(a+1)===46&&r.charCodeAt(a+2)===46){return new at(st.SPREAD,a,a+3,s,u,t)}break;case 58:return new at(st.COLON,a,a+1,s,u,t);case 61:return new at(st.EQUALS,a,a+1,s,u,t);case 64:return new at(st.AT,a,a+1,s,u,t);case 91:return new at(st.BRACKET_L,a,a+1,s,u,t);case 93:return new at(st.BRACKET_R,a,a+1,s,u,t);case 123:return new at(st.BRACE_L,a,a+1,s,u,t);case 124:return new at(st.PIPE,a,a+1,s,u,t);case 125:return new at(st.BRACE_R,a,a+1,s,u,t);case 34:if(r.charCodeAt(a+1)===34&&r.charCodeAt(a+2)===34){return Mt(n,a,s,u,t,e)}return Lt(n,a,s,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return jt(n,a,o,s,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return Ut(n,a,s,u,t)}throw Ze(n,a,Ft(o))}var c=e.line;var l=1+a-e.lineStart;return new at(st.EOF,i,i,c,l,t)}function Ft(e){if(e<32&&e!==9&&e!==10&&e!==13){return"Cannot contain the invalid character ".concat(Ct(e),".")}if(e===39){return"Unexpected single quote character ('), did you mean to use a double quote (\")?"}return"Cannot parse the unexpected character ".concat(Ct(e),".")}function Pt(e,t,n,r,i){var a=e.body;var o;var s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||o===9));return new at(st.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function jt(e,t,n,r,i,a){var o=e.body;var s=n;var u=t;var c=false;if(s===45){s=o.charCodeAt(++u)}if(s===48){s=o.charCodeAt(++u);if(s>=48&&s<=57){throw Ze(e,u,"Invalid number, unexpected digit after 0: ".concat(Ct(s),"."))}}else{u=Rt(e,u,s);s=o.charCodeAt(u)}if(s===46){c=true;s=o.charCodeAt(++u);u=Rt(e,u,s);s=o.charCodeAt(u)}if(s===69||s===101){c=true;s=o.charCodeAt(++u);if(s===43||s===45){s=o.charCodeAt(++u)}u=Rt(e,u,s);s=o.charCodeAt(u)}if(s===46||qt(s)){throw Ze(e,u,"Invalid number, expected digit but got: ".concat(Ct(s),"."))}return new at(c?st.FLOAT:st.INT,t,u,r,i,a,o.slice(t,u))}function Rt(e,t,n){var r=e.body;var i=t;var a=n;if(a>=48&&a<=57){do{a=r.charCodeAt(++i)}while(a>=48&&a<=57);return i}throw Ze(e,i,"Invalid number, expected digit but got: ".concat(Ct(a),"."))}function Lt(e,t,n,r,i){var a=e.body;var o=t+1;var s=o;var u=0;var c="";while(o<a.length&&!isNaN(u=a.charCodeAt(o))&&u!==10&&u!==13){if(u===34){c+=a.slice(s,o);return new at(st.STRING,t,o+1,n,r,i,c)}if(u<32&&u!==9){throw Ze(e,o,"Invalid character within String: ".concat(Ct(u),"."))}++o;if(u===92){c+=a.slice(s,o-1);u=a.charCodeAt(o);switch(u){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:{var l=Vt(a.charCodeAt(o+1),a.charCodeAt(o+2),a.charCodeAt(o+3),a.charCodeAt(o+4));if(l<0){var f=a.slice(o+1,o+5);throw Ze(e,o,"Invalid character escape sequence: \\u".concat(f,"."))}c+=String.fromCharCode(l);o+=4;break}default:throw Ze(e,o,"Invalid character escape sequence: \\".concat(String.fromCharCode(u),"."))}++o;s=o}}throw Ze(e,o,"Unterminated string.")}function Mt(e,t,n,r,i,a){var o=e.body;var s=t+3;var u=s;var c=0;var l="";while(s<o.length&&!isNaN(c=o.charCodeAt(s))){if(c===34&&o.charCodeAt(s+1)===34&&o.charCodeAt(s+2)===34){l+=o.slice(u,s);return new at(st.BLOCK_STRING,t,s+3,n,r,i,Ot(l))}if(c<32&&c!==9&&c!==10&&c!==13){throw Ze(e,s,"Invalid character within String: ".concat(Ct(c),"."))}if(c===10){++s;++a.line;a.lineStart=s}else if(c===13){if(o.charCodeAt(s+1)===10){s+=2}else{++s}++a.line;a.lineStart=s}else if(c===92&&o.charCodeAt(s+1)===34&&o.charCodeAt(s+2)===34&&o.charCodeAt(s+3)===34){l+=o.slice(u,s)+'"""';s+=4;u=s}else{++s}}throw Ze(e,s,"Unterminated string.")}function Vt(e,t,n,r){return Bt(e)<<12|Bt(t)<<8|Bt(n)<<4|Bt(r)}function Bt(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Ut(e,t,n,r,i){var a=e.body;var o=a.length;var s=t+1;var u=0;while(s!==o&&!isNaN(u=a.charCodeAt(s))&&(u===95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122)){++s}return new at(st.NAME,t,s,n,r,i,a.slice(t,s))}function qt(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}function $t(e,t){var n=new Jt(e,t);return n.parseDocument()}var Jt=function(){function e(e,t){var n=St(e)?e:new _t(e);this._lexer=new Nt(n);this._options=t}var t=e.prototype;t.parseName=function e(){var t=this.expectToken(st.NAME);return{kind:et.NAME,value:t.value,loc:this.loc(t)}};t.parseDocument=function e(){var t=this._lexer.token;return{kind:et.DOCUMENT,definitions:this.many(st.SOF,this.parseDefinition,st.EOF),loc:this.loc(t)}};t.parseDefinition=function e(){if(this.peek(st.NAME)){switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}}else if(this.peek(st.BRACE_L)){return this.parseOperationDefinition()}else if(this.peekDescription()){return this.parseTypeSystemDefinition()}throw this.unexpected()};t.parseOperationDefinition=function e(){var t=this._lexer.token;if(this.peek(st.BRACE_L)){return{kind:et.OPERATION_DEFINITION,operation:"query",name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)}}var n=this.parseOperationType();var r;if(this.peek(st.NAME)){r=this.parseName()}return{kind:et.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}};t.parseOperationType=function e(){var t=this.expectToken(st.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(t)};t.parseVariableDefinitions=function e(){return this.optionalMany(st.PAREN_L,this.parseVariableDefinition,st.PAREN_R)};t.parseVariableDefinition=function e(){var t=this._lexer.token;return{kind:et.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(st.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(st.EQUALS)?this.parseValueLiteral(true):undefined,directives:this.parseDirectives(true),loc:this.loc(t)}};t.parseVariable=function e(){var t=this._lexer.token;this.expectToken(st.DOLLAR);return{kind:et.VARIABLE,name:this.parseName(),loc:this.loc(t)}};t.parseSelectionSet=function e(){var t=this._lexer.token;return{kind:et.SELECTION_SET,selections:this.many(st.BRACE_L,this.parseSelection,st.BRACE_R),loc:this.loc(t)}};t.parseSelection=function e(){return this.peek(st.SPREAD)?this.parseFragment():this.parseField()};t.parseField=function e(){var t=this._lexer.token;var n=this.parseName();var r;var i;if(this.expectOptionalToken(st.COLON)){r=n;i=this.parseName()}else{i=n}return{kind:et.FIELD,alias:r,name:i,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(st.BRACE_L)?this.parseSelectionSet():undefined,loc:this.loc(t)}};t.parseArguments=function e(t){var n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(st.PAREN_L,n,st.PAREN_R)};t.parseArgument=function e(){var t=this._lexer.token;var n=this.parseName();this.expectToken(st.COLON);return{kind:et.ARGUMENT,name:n,value:this.parseValueLiteral(false),loc:this.loc(t)}};t.parseConstArgument=function e(){var t=this._lexer.token;return{kind:et.ARGUMENT,name:this.parseName(),value:(this.expectToken(st.COLON),this.parseValueLiteral(true)),loc:this.loc(t)}};t.parseFragment=function e(){var t=this._lexer.token;this.expectToken(st.SPREAD);var n=this.expectOptionalKeyword("on");if(!n&&this.peek(st.NAME)){return{kind:et.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false),loc:this.loc(t)}}return{kind:et.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():undefined,directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}};t.parseFragmentDefinition=function e(){var t;var n=this._lexer.token;this.expectKeyword("fragment");if(((t=this._options)===null||t===void 0?void 0:t.experimentalFragmentVariables)===true){return{kind:et.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}}return{kind:et.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(false),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}};t.parseFragmentName=function e(){if(this._lexer.token.value==="on"){throw this.unexpected()}return this.parseName()};t.parseValueLiteral=function e(t){var n=this._lexer.token;switch(n.kind){case st.BRACKET_L:return this.parseList(t);case st.BRACE_L:return this.parseObject(t);case st.INT:this._lexer.advance();return{kind:et.INT,value:n.value,loc:this.loc(n)};case st.FLOAT:this._lexer.advance();return{kind:et.FLOAT,value:n.value,loc:this.loc(n)};case st.STRING:case st.BLOCK_STRING:return this.parseStringLiteral();case st.NAME:this._lexer.advance();switch(n.value){case"true":return{kind:et.BOOLEAN,value:true,loc:this.loc(n)};case"false":return{kind:et.BOOLEAN,value:false,loc:this.loc(n)};case"null":return{kind:et.NULL,loc:this.loc(n)};default:return{kind:et.ENUM,value:n.value,loc:this.loc(n)}}case st.DOLLAR:if(!t){return this.parseVariable()}break}throw this.unexpected()};t.parseStringLiteral=function e(){var t=this._lexer.token;this._lexer.advance();return{kind:et.STRING,value:t.value,block:t.kind===st.BLOCK_STRING,loc:this.loc(t)}};t.parseList=function e(t){var n=this;var r=this._lexer.token;var i=function e(){return n.parseValueLiteral(t)};return{kind:et.LIST,values:this.any(st.BRACKET_L,i,st.BRACKET_R),loc:this.loc(r)}};t.parseObject=function e(t){var n=this;var r=this._lexer.token;var i=function e(){return n.parseObjectField(t)};return{kind:et.OBJECT,fields:this.any(st.BRACE_L,i,st.BRACE_R),loc:this.loc(r)}};t.parseObjectField=function e(t){var n=this._lexer.token;var r=this.parseName();this.expectToken(st.COLON);return{kind:et.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t),loc:this.loc(n)}};t.parseDirectives=function e(t){var n=[];while(this.peek(st.AT)){n.push(this.parseDirective(t))}return n};t.parseDirective=function e(t){var n=this._lexer.token;this.expectToken(st.AT);return{kind:et.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t),loc:this.loc(n)}};t.parseTypeReference=function e(){var t=this._lexer.token;var n;if(this.expectOptionalToken(st.BRACKET_L)){n=this.parseTypeReference();this.expectToken(st.BRACKET_R);n={kind:et.LIST_TYPE,type:n,loc:this.loc(t)}}else{n=this.parseNamedType()}if(this.expectOptionalToken(st.BANG)){return{kind:et.NON_NULL_TYPE,type:n,loc:this.loc(t)}}return n};t.parseNamedType=function e(){var t=this._lexer.token;return{kind:et.NAMED_TYPE,name:this.parseName(),loc:this.loc(t)}};t.parseTypeSystemDefinition=function e(){var t=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(t.kind===st.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}}throw this.unexpected(t)};t.peekDescription=function e(){return this.peek(st.STRING)||this.peek(st.BLOCK_STRING)};t.parseDescription=function e(){if(this.peekDescription()){return this.parseStringLiteral()}};t.parseSchemaDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("schema");var r=this.parseDirectives(true);var i=this.many(st.BRACE_L,this.parseOperationTypeDefinition,st.BRACE_R);return{kind:et.SCHEMA_DEFINITION,description:n,directives:r,operationTypes:i,loc:this.loc(t)}};t.parseOperationTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseOperationType();this.expectToken(st.COLON);var r=this.parseNamedType();return{kind:et.OPERATION_TYPE_DEFINITION,operation:n,type:r,loc:this.loc(t)}};t.parseScalarTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName();var i=this.parseDirectives(true);return{kind:et.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i,loc:this.loc(t)}};t.parseObjectTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("type");var r=this.parseName();var i=this.parseImplementsInterfaces();var a=this.parseDirectives(true);var o=this.parseFieldsDefinition();return{kind:et.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o,loc:this.loc(t)}};t.parseImplementsInterfaces=function e(){var t;if(!this.expectOptionalKeyword("implements")){return[]}if(((t=this._options)===null||t===void 0?void 0:t.allowLegacySDLImplementsInterfaces)===true){var n=[];this.expectOptionalToken(st.AMP);do{n.push(this.parseNamedType())}while(this.expectOptionalToken(st.AMP)||this.peek(st.NAME));return n}return this.delimitedMany(st.AMP,this.parseNamedType)};t.parseFieldsDefinition=function e(){var t;if(((t=this._options)===null||t===void 0?void 0:t.allowLegacySDLEmptyFields)===true&&this.peek(st.BRACE_L)&&this._lexer.lookahead().kind===st.BRACE_R){this._lexer.advance();this._lexer.advance();return[]}return this.optionalMany(st.BRACE_L,this.parseFieldDefinition,st.BRACE_R)};t.parseFieldDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();var r=this.parseName();var i=this.parseArgumentDefs();this.expectToken(st.COLON);var a=this.parseTypeReference();var o=this.parseDirectives(true);return{kind:et.FIELD_DEFINITION,description:n,name:r,arguments:i,type:a,directives:o,loc:this.loc(t)}};t.parseArgumentDefs=function e(){return this.optionalMany(st.PAREN_L,this.parseInputValueDef,st.PAREN_R)};t.parseInputValueDef=function e(){var t=this._lexer.token;var n=this.parseDescription();var r=this.parseName();this.expectToken(st.COLON);var i=this.parseTypeReference();var a;if(this.expectOptionalToken(st.EQUALS)){a=this.parseValueLiteral(true)}var o=this.parseDirectives(true);return{kind:et.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:a,directives:o,loc:this.loc(t)}};t.parseInterfaceTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("interface");var r=this.parseName();var i=this.parseImplementsInterfaces();var a=this.parseDirectives(true);var o=this.parseFieldsDefinition();return{kind:et.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o,loc:this.loc(t)}};t.parseUnionTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("union");var r=this.parseName();var i=this.parseDirectives(true);var a=this.parseUnionMemberTypes();return{kind:et.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:a,loc:this.loc(t)}};t.parseUnionMemberTypes=function e(){return this.expectOptionalToken(st.EQUALS)?this.delimitedMany(st.PIPE,this.parseNamedType):[]};t.parseEnumTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("enum");var r=this.parseName();var i=this.parseDirectives(true);var a=this.parseEnumValuesDefinition();return{kind:et.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:a,loc:this.loc(t)}};t.parseEnumValuesDefinition=function e(){return this.optionalMany(st.BRACE_L,this.parseEnumValueDefinition,st.BRACE_R)};t.parseEnumValueDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();var r=this.parseName();var i=this.parseDirectives(true);return{kind:et.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i,loc:this.loc(t)}};t.parseInputObjectTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("input");var r=this.parseName();var i=this.parseDirectives(true);var a=this.parseInputFieldsDefinition();return{kind:et.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:a,loc:this.loc(t)}};t.parseInputFieldsDefinition=function e(){return this.optionalMany(st.BRACE_L,this.parseInputValueDef,st.BRACE_R)};t.parseTypeSystemExtension=function e(){var t=this._lexer.lookahead();if(t.kind===st.NAME){switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}}throw this.unexpected(t)};t.parseSchemaExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("schema");var n=this.parseDirectives(true);var r=this.optionalMany(st.BRACE_L,this.parseOperationTypeDefinition,st.BRACE_R);if(n.length===0&&r.length===0){throw this.unexpected()}return{kind:et.SCHEMA_EXTENSION,directives:n,operationTypes:r,loc:this.loc(t)}};t.parseScalarTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("scalar");var n=this.parseName();var r=this.parseDirectives(true);if(r.length===0){throw this.unexpected()}return{kind:et.SCALAR_TYPE_EXTENSION,name:n,directives:r,loc:this.loc(t)}};t.parseObjectTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");var n=this.parseName();var r=this.parseImplementsInterfaces();var i=this.parseDirectives(true);var a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0){throw this.unexpected()}return{kind:et.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a,loc:this.loc(t)}};t.parseInterfaceTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");var n=this.parseName();var r=this.parseImplementsInterfaces();var i=this.parseDirectives(true);var a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0){throw this.unexpected()}return{kind:et.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a,loc:this.loc(t)}};t.parseUnionTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");var n=this.parseName();var r=this.parseDirectives(true);var i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0){throw this.unexpected()}return{kind:et.UNION_TYPE_EXTENSION,name:n,directives:r,types:i,loc:this.loc(t)}};t.parseEnumTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("enum");var n=this.parseName();var r=this.parseDirectives(true);var i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0){throw this.unexpected()}return{kind:et.ENUM_TYPE_EXTENSION,name:n,directives:r,values:i,loc:this.loc(t)}};t.parseInputObjectTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("input");var n=this.parseName();var r=this.parseDirectives(true);var i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0){throw this.unexpected()}return{kind:et.INPUT_OBJECT_TYPE_EXTENSION,name:n,directives:r,fields:i,loc:this.loc(t)}};t.parseDirectiveDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("directive");this.expectToken(st.AT);var r=this.parseName();var i=this.parseArgumentDefs();var a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:et.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:a,locations:o,loc:this.loc(t)}};t.parseDirectiveLocations=function e(){return this.delimitedMany(st.PIPE,this.parseDirectiveLocation)};t.parseDirectiveLocation=function e(){var t=this._lexer.token;var n=this.parseName();if(Tt[n.value]!==undefined){return n}throw this.unexpected(t)};t.loc=function e(t){var n;if(((n=this._options)===null||n===void 0?void 0:n.noLocation)!==true){return new it(t,this._lexer.lastToken,this._lexer.source)}};t.peek=function e(t){return this._lexer.token.kind===t};t.expectToken=function e(t){var n=this._lexer.token;if(n.kind===t){this._lexer.advance();return n}throw Ze(this._lexer.source,n.start,"Expected ".concat(Gt(t),", found ").concat(Kt(n),"."))};t.expectOptionalToken=function e(t){var n=this._lexer.token;if(n.kind===t){this._lexer.advance();return n}return undefined};t.expectKeyword=function e(t){var n=this._lexer.token;if(n.kind===st.NAME&&n.value===t){this._lexer.advance()}else{throw Ze(this._lexer.source,n.start,'Expected "'.concat(t,'", found ').concat(Kt(n),"."))}};t.expectOptionalKeyword=function e(t){var n=this._lexer.token;if(n.kind===st.NAME&&n.value===t){this._lexer.advance();return true}return false};t.unexpected=function e(t){var n=t!==null&&t!==void 0?t:this._lexer.token;return Ze(this._lexer.source,n.start,"Unexpected ".concat(Kt(n),"."))};t.any=function e(t,n,r){this.expectToken(t);var i=[];while(!this.expectOptionalToken(r)){i.push(n.call(this))}return i};t.optionalMany=function e(t,n,r){if(this.expectOptionalToken(t)){var i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(r));return i}return[]};t.many=function e(t,n,r){this.expectToken(t);var i=[];do{i.push(n.call(this))}while(!this.expectOptionalToken(r));return i};t.delimitedMany=function e(t,n){this.expectOptionalToken(t);var r=[];do{r.push(n.call(this))}while(this.expectOptionalToken(t));return r};return e}();function Kt(e){var t=e.value;return Gt(e.kind)+(t!=null?' "'.concat(t,'"'):"")}function Gt(e){return Dt(e)?'"'.concat(e,'"'):e}var Ht={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};var Yt=Object.freeze({});function zt(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Ht;var r=undefined;var i=Array.isArray(e);var a=[e];var o=-1;var s=[];var u=undefined;var c=undefined;var l=undefined;var f=[];var d=[];var p=e;do{o++;var h=o===a.length;var v=h&&s.length!==0;if(h){c=d.length===0?undefined:f[f.length-1];u=l;l=d.pop();if(v){if(i){u=u.slice()}else{var y={};for(var m=0,b=Object.keys(u);m<b.length;m++){var g=b[m];y[g]=u[g]}u=y}var E=0;for(var w=0;w<s.length;w++){var _=s[w][0];var S=s[w][1];if(i){_-=E}if(i&&S===null){u.splice(_,1);E++}else{u[_]=S}}}o=r.index;a=r.keys;s=r.edits;i=r.inArray;r=r.prev}else{c=l?i?o:a[o]:undefined;u=l?l[c]:p;if(u===null||u===undefined){continue}if(l){f.push(c)}}var T=void 0;if(!Array.isArray(u)){if(!ot(u)){throw new Error("Invalid AST Node: ".concat(ft(u),"."))}var O=Qt(t,u.kind,h);if(O){T=O.call(t,u,c,l,f,d);if(T===Yt){break}if(T===false){if(!h){f.pop();continue}}else if(T!==undefined){s.push([c,T]);if(!h){if(ot(T)){u=T}else{f.pop();continue}}}}}if(T===undefined&&v){s.push([c,u])}if(h){f.pop()}else{var I;r={inArray:i,index:o,keys:a,edits:s,prev:r};i=Array.isArray(u);a=i?u:(I=n[u.kind])!==null&&I!==void 0?I:[];o=-1;s=[];if(l){d.push(l)}l=u}}while(r!==undefined);if(s.length!==0){p=s[s.length-1][1]}return p}function Qt(e,t,n){var r=e[t];if(r){if(!n&&typeof r==="function"){return r}var i=n?r.leave:r.enter;if(typeof i==="function"){return i}}else{var a=n?e.leave:e.enter;if(a){if(typeof a==="function"){return a}var o=a[t];if(typeof o==="function"){return o}}}}function Wt(e){return zt(e,{leave:Zt})}var Xt=80;var Zt={Name:function e(t){return t.value},Variable:function e(t){return"$"+t.name},Document:function e(t){return tn(t.definitions,"\n\n")+"\n"},OperationDefinition:function e(t){var n=t.operation;var r=t.name;var i=rn("(",tn(t.variableDefinitions,", "),")");var a=tn(t.directives," ");var o=t.selectionSet;return!r&&!a&&!i&&n==="query"?o:tn([n,tn([r,i]),a,o]," ")},VariableDefinition:function e(t){var n=t.variable,r=t.type,i=t.defaultValue,a=t.directives;return n+": "+r+rn(" = ",i)+rn(" ",tn(a," "))},SelectionSet:function e(t){var n=t.selections;return nn(n)},Field:function e(t){var n=t.alias,r=t.name,i=t.arguments,a=t.directives,o=t.selectionSet;var s=rn("",n,": ")+r;var u=s+rn("(",tn(i,", "),")");if(u.length>Xt){u=s+rn("(\n",an(tn(i,"\n")),"\n)")}return tn([u,tn(a," "),o]," ")},Argument:function e(t){var n=t.name,r=t.value;return n+": "+r},FragmentSpread:function e(t){var n=t.name,r=t.directives;return"..."+n+rn(" ",tn(r," "))},InlineFragment:function e(t){var n=t.typeCondition,r=t.directives,i=t.selectionSet;return tn(["...",rn("on ",n),tn(r," "),i]," ")},FragmentDefinition:function e(t){var n=t.name,r=t.typeCondition,i=t.variableDefinitions,a=t.directives,o=t.selectionSet;return"fragment ".concat(n).concat(rn("(",tn(i,", "),")")," ")+"on ".concat(r," ").concat(rn("",tn(a," ")," "))+o},IntValue:function e(t){var n=t.value;return n},FloatValue:function e(t){var n=t.value;return n},StringValue:function e(t,n){var r=t.value,i=t.block;return i?At(r,n==="description"?"":" "):JSON.stringify(r)},BooleanValue:function e(t){var n=t.value;return n?"true":"false"},NullValue:function e(){return"null"},EnumValue:function e(t){var n=t.value;return n},ListValue:function e(t){var n=t.values;return"["+tn(n,", ")+"]"},ObjectValue:function e(t){var n=t.fields;return"{"+tn(n,", ")+"}"},ObjectField:function e(t){var n=t.name,r=t.value;return n+": "+r},Directive:function e(t){var n=t.name,r=t.arguments;return"@"+n+rn("(",tn(r,", "),")")},NamedType:function e(t){var n=t.name;return n},ListType:function e(t){var n=t.type;return"["+n+"]"},NonNullType:function e(t){var n=t.type;return n+"!"},SchemaDefinition:en((function(e){var t=e.directives,n=e.operationTypes;return tn(["schema",tn(t," "),nn(n)]," ")})),OperationTypeDefinition:function e(t){var n=t.operation,r=t.type;return n+": "+r},ScalarTypeDefinition:en((function(e){var t=e.name,n=e.directives;return tn(["scalar",t,tn(n," ")]," ")})),ObjectTypeDefinition:en((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return tn(["type",t,rn("implements ",tn(n," & ")),tn(r," "),nn(i)]," ")})),FieldDefinition:en((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(sn(n)?rn("(\n",an(tn(n,"\n")),"\n)"):rn("(",tn(n,", "),")"))+": "+r+rn(" ",tn(i," "))})),InputValueDefinition:en((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return tn([t+": "+n,rn("= ",r),tn(i," ")]," ")})),InterfaceTypeDefinition:en((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return tn(["interface",t,rn("implements ",tn(n," & ")),tn(r," "),nn(i)]," ")})),UnionTypeDefinition:en((function(e){var t=e.name,n=e.directives,r=e.types;return tn(["union",t,tn(n," "),r&&r.length!==0?"= "+tn(r," | "):""]," ")})),EnumTypeDefinition:en((function(e){var t=e.name,n=e.directives,r=e.values;return tn(["enum",t,tn(n," "),nn(r)]," ")})),EnumValueDefinition:en((function(e){var t=e.name,n=e.directives;return tn([t,tn(n," ")]," ")})),InputObjectTypeDefinition:en((function(e){var t=e.name,n=e.directives,r=e.fields;return tn(["input",t,tn(n," "),nn(r)]," ")})),DirectiveDefinition:en((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(sn(n)?rn("(\n",an(tn(n,"\n")),"\n)"):rn("(",tn(n,", "),")"))+(r?" repeatable":"")+" on "+tn(i," | ")})),SchemaExtension:function e(t){var n=t.directives,r=t.operationTypes;return tn(["extend schema",tn(n," "),nn(r)]," ")},ScalarTypeExtension:function e(t){var n=t.name,r=t.directives;return tn(["extend scalar",n,tn(r," ")]," ")},ObjectTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return tn(["extend type",n,rn("implements ",tn(r," & ")),tn(i," "),nn(a)]," ")},InterfaceTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return tn(["extend interface",n,rn("implements ",tn(r," & ")),tn(i," "),nn(a)]," ")},UnionTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.types;return tn(["extend union",n,tn(r," "),i&&i.length!==0?"= "+tn(i," | "):""]," ")},EnumTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.values;return tn(["extend enum",n,tn(r," "),nn(i)]," ")},InputObjectTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.fields;return tn(["extend input",n,tn(r," "),nn(i)]," ")}};function en(e){return function(t){return tn([t.description,e(t)],"\n")}}function tn(e){var t;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";return(t=e===null||e===void 0?void 0:e.filter((function(e){return e})).join(n))!==null&&t!==void 0?t:""}function nn(e){return rn("{\n",an(tn(e,"\n")),"\n}")}function rn(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"";return t!=null&&t!==""?e+t+n:""}function an(e){return rn(" ",e.replace(/\n/g,"\n "))}function on(e){return e.indexOf("\n")!==-1}function sn(e){return e!=null&&e.some(on)}function un(e,t){var n=t&&t.cache?t.cache:bn;var r=t&&t.serializer?t.serializer:yn;var i=t&&t.strategy?t.strategy:pn;return i(e,{cache:n,serializer:r})}function cn(e){return e==null||typeof e==="number"||typeof e==="boolean"}function ln(e,t,n,r){var i=cn(r)?r:n(r);var a=t.get(i);if(typeof a==="undefined"){a=e.call(this,r);t.set(i,a)}return a}function fn(e,t,n){var r=Array.prototype.slice.call(arguments,3);var i=n(r);var a=t.get(i);if(typeof a==="undefined"){a=e.apply(this,r);t.set(i,a)}return a}function dn(e,t,n,r,i){return n.bind(t,e,r,i)}function pn(e,t){var n=e.length===1?ln:fn;return dn(e,this,n,t.cache.create(),t.serializer)}function hn(e,t){var n=fn;return dn(e,this,n,t.cache.create(),t.serializer)}function vn(e,t){var n=ln;return dn(e,this,n,t.cache.create(),t.serializer)}function yn(){return JSON.stringify(arguments)}function mn(){this.cache=Object.create(null)}mn.prototype.has=function(e){return e in this.cache};mn.prototype.get=function(e){return this.cache[e]};mn.prototype.set=function(e,t){this.cache[e]=t};var bn={create:function e(){return new mn}};var gn=e("s",un);var En={variadic:hn,monadic:vn};gn.strategies=En;var wn=Object.freeze(Object.assign(Object.create(null),gn,{default:gn,strategies:En}));e("m",wn);function _n(e){return typeof e==="function"}var Sn=false;var Tn={Promise:undefined,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else if(Sn){console.log("RxJS: Back to a better error behavior. Thank you. <3")}Sn=e},get useDeprecatedSynchronousErrorHandling(){return Sn}};function On(e){setTimeout((function(){throw e}),0)}var In={closed:true,next:function(e){},error:function(e){if(Tn.useDeprecatedSynchronousErrorHandling){throw e}else{On(e)}},complete:function(){}};var xn=function(){return Array.isArray||function(e){return e&&typeof e.length==="number"}}();function An(e){return e!==null&&typeof e==="object"}var Nn=function(){function e(e){Error.call(this);this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"";this.name="UnsubscriptionError";this.errors=e;return this}e.prototype=Object.create(Error.prototype);return e}();var Dn=Nn;var Cn=function(){function e(e){this.closed=false;this._parentOrParents=null;this._subscriptions=null;if(e){this._ctorUnsubscribe=true;this._unsubscribe=e}}e.prototype.unsubscribe=function(){var t;if(this.closed){return}var n=this,r=n._parentOrParents,i=n._ctorUnsubscribe,a=n._unsubscribe,o=n._subscriptions;this.closed=true;this._parentOrParents=null;this._subscriptions=null;if(r instanceof e){r.remove(this)}else if(r!==null){for(var s=0;s<r.length;++s){var u=r[s];u.remove(this)}}if(_n(a)){if(i){this._unsubscribe=undefined}try{a.call(this)}catch(e){t=e instanceof Dn?kn(e.errors):[e]}}if(xn(o)){var s=-1;var c=o.length;while(++s<c){var l=o[s];if(An(l)){try{l.unsubscribe()}catch(e){t=t||[];if(e instanceof Dn){t=t.concat(kn(e.errors))}else{t.push(e)}}}}}if(t){throw new Dn(t)}};e.prototype.add=function(t){var n=t;if(!t){return e.EMPTY}switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||typeof n.unsubscribe!=="function"){return n}else if(this.closed){n.unsubscribe();return n}else if(!(n instanceof e)){var r=n;n=new e;n._subscriptions=[r]}break;default:{throw new Error("unrecognized teardown "+t+" added to Subscription.")}}var i=n._parentOrParents;if(i===null){n._parentOrParents=this}else if(i instanceof e){if(i===this){return n}n._parentOrParents=[i,this]}else if(i.indexOf(this)===-1){i.push(this)}else{return n}var a=this._subscriptions;if(a===null){this._subscriptions=[n]}else{a.push(n)}return n};e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);if(n!==-1){t.splice(n,1)}}};return e}();Cn.EMPTY=function(e){e.closed=true;return e}(new Cn);function kn(e){return e.reduce((function(e,t){return e.concat(t instanceof Dn?t.errors:t)}),[])}var Fn=function(){return typeof Symbol==="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();var Pn=function(e){__extends(t,e);function t(n,r,i){var a=e.call(this)||this;a.syncErrorValue=null;a.syncErrorThrown=false;a.syncErrorThrowable=false;a.isStopped=false;switch(arguments.length){case 0:a.destination=In;break;case 1:if(!n){a.destination=In;break}if(typeof n==="object"){if(n instanceof t){a.syncErrorThrowable=n.syncErrorThrowable;a.destination=n;n.add(a)}else{a.syncErrorThrowable=true;a.destination=new jn(a,n)}break}default:a.syncErrorThrowable=true;a.destination=new jn(a,n,r,i);break}return a}t.prototype[Fn]=function(){return this};t.create=function(e,n,r){var i=new t(e,n,r);i.syncErrorThrowable=false;return i};t.prototype.next=function(e){if(!this.isStopped){this._next(e)}};t.prototype.error=function(e){if(!this.isStopped){this.isStopped=true;this._error(e)}};t.prototype.complete=function(){if(!this.isStopped){this.isStopped=true;this._complete()}};t.prototype.unsubscribe=function(){if(this.closed){return}this.isStopped=true;e.prototype.unsubscribe.call(this)};t.prototype._next=function(e){this.destination.next(e)};t.prototype._error=function(e){this.destination.error(e);this.unsubscribe()};t.prototype._complete=function(){this.destination.complete();this.unsubscribe()};t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;this._parentOrParents=null;this.unsubscribe();this.closed=false;this.isStopped=false;this._parentOrParents=e;return this};return t}(Cn);var jn=function(e){__extends(t,e);function t(t,n,r,i){var a=e.call(this)||this;a._parentSubscriber=t;var o;var s=a;if(_n(n)){o=n}else if(n){o=n.next;r=n.error;i=n.complete;if(n!==In){s=Object.create(n);if(_n(s.unsubscribe)){a.add(s.unsubscribe.bind(s))}s.unsubscribe=a.unsubscribe.bind(a)}}a._context=s;a._next=o;a._error=r;a._complete=i;return a}t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;if(!Tn.useDeprecatedSynchronousErrorHandling||!t.syncErrorThrowable){this.__tryOrUnsub(this._next,e)}else if(this.__tryOrSetError(t,this._next,e)){this.unsubscribe()}}};t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;var n=Tn.useDeprecatedSynchronousErrorHandling;if(this._error){if(!n||!t.syncErrorThrowable){this.__tryOrUnsub(this._error,e);this.unsubscribe()}else{this.__tryOrSetError(t,this._error,e);this.unsubscribe()}}else if(!t.syncErrorThrowable){this.unsubscribe();if(n){throw e}On(e)}else{if(n){t.syncErrorValue=e;t.syncErrorThrown=true}else{On(e)}this.unsubscribe()}}};t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};if(!Tn.useDeprecatedSynchronousErrorHandling||!t.syncErrorThrowable){this.__tryOrUnsub(n);this.unsubscribe()}else{this.__tryOrSetError(t,n);this.unsubscribe()}}else{this.unsubscribe()}}};t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){this.unsubscribe();if(Tn.useDeprecatedSynchronousErrorHandling){throw e}else{On(e)}}};t.prototype.__tryOrSetError=function(e,t,n){if(!Tn.useDeprecatedSynchronousErrorHandling){throw new Error("bad call")}try{t.call(this._context,n)}catch(t){if(Tn.useDeprecatedSynchronousErrorHandling){e.syncErrorValue=t;e.syncErrorThrown=true;return true}else{On(t);return true}}return false};t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null;this._parentSubscriber=null;e.unsubscribe()};return t}(Pn);function Rn(e){while(e){var t=e.closed,n=e.destination,r=e.isStopped;if(t||r){return false}else if(n&&n instanceof Pn){e=n}else{e=null}}return true}function Ln(e,t,n){if(e){if(e instanceof Pn){return e}if(e[Fn]){return e[Fn]()}}if(!e&&!t&&!n){return new Pn(In)}return new Pn(e,t,n)}var Mn=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}();function Vn(e){return e}function Bn(e){if(e.length===0){return Vn}if(e.length===1){return e[0]}return function t(n){return e.reduce((function(e,t){return t(e)}),n)}}var Un=function(){function e(e){this._isScalar=false;if(e){this._subscribe=e}}e.prototype.lift=function(t){var n=new e;n.source=this;n.operator=t;return n};e.prototype.subscribe=function(e,t,n){var r=this.operator;var i=Ln(e,t,n);if(r){i.add(r.call(i,this.source))}else{i.add(this.source||Tn.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i))}if(Tn.useDeprecatedSynchronousErrorHandling){if(i.syncErrorThrowable){i.syncErrorThrowable=false;if(i.syncErrorThrown){throw i.syncErrorValue}}}return i};e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){if(Tn.useDeprecatedSynchronousErrorHandling){e.syncErrorThrown=true;e.syncErrorValue=t}if(Rn(e)){e.error(t)}else{console.warn(t)}}};e.prototype.forEach=function(e,t){var n=this;t=qn(t);return new t((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(e){r(e);if(i){i.unsubscribe()}}}),r,t)}))};e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)};e.prototype[Mn]=function(){return this};e.prototype.pipe=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}if(e.length===0){return this}return Bn(e)(this)};e.prototype.toPromise=function(e){var t=this;e=qn(e);return new e((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))};return e}();Un.create=function(e){return new Un(e)};function qn(e){if(!e){e=Promise}if(!e){throw new Error("no Promise impl found")}return e}var $n=function(){function e(){Error.call(this);this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}e.prototype=Object.create(Error.prototype);return e}();var Jn=$n;var Kn=function(e){__extends(t,e);function t(t,n){var r=e.call(this)||this;r.subject=t;r.subscriber=n;r.closed=false;return r}t.prototype.unsubscribe=function(){if(this.closed){return}this.closed=true;var e=this.subject;var t=e.observers;this.subject=null;if(!t||t.length===0||e.isStopped||e.closed){return}var n=t.indexOf(this.subscriber);if(n!==-1){t.splice(n,1)}};return t}(Cn);var Gn=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.destination=t;return n}return t}(Pn);var Hn=function(e){__extends(t,e);function t(){var t=e.call(this)||this;t.observers=[];t.closed=false;t.isStopped=false;t.hasError=false;t.thrownError=null;return t}t.prototype[Fn]=function(){return new Gn(this)};t.prototype.lift=function(e){var t=new Yn(this,this);t.operator=e;return t};t.prototype.next=function(e){if(this.closed){throw new Jn}if(!this.isStopped){var t=this.observers;var n=t.length;var r=t.slice();for(var i=0;i<n;i++){r[i].next(e)}}};t.prototype.error=function(e){if(this.closed){throw new Jn}this.hasError=true;this.thrownError=e;this.isStopped=true;var t=this.observers;var n=t.length;var r=t.slice();for(var i=0;i<n;i++){r[i].error(e)}this.observers.length=0};t.prototype.complete=function(){if(this.closed){throw new Jn}this.isStopped=true;var e=this.observers;var t=e.length;var n=e.slice();for(var r=0;r<t;r++){n[r].complete()}this.observers.length=0};t.prototype.unsubscribe=function(){this.isStopped=true;this.closed=true;this.observers=null};t.prototype._trySubscribe=function(t){if(this.closed){throw new Jn}else{return e.prototype._trySubscribe.call(this,t)}};t.prototype._subscribe=function(e){if(this.closed){throw new Jn}else if(this.hasError){e.error(this.thrownError);return Cn.EMPTY}else if(this.isStopped){e.complete();return Cn.EMPTY}else{this.observers.push(e);return new Kn(this,e)}};t.prototype.asObservable=function(){var e=new Un;e.source=this;return e};return t}(Un);Hn.create=function(e,t){return new Yn(e,t)};var Yn=function(e){__extends(t,e);function t(t,n){var r=e.call(this)||this;r.destination=t;r.source=n;return r}t.prototype.next=function(e){var t=this.destination;if(t&&t.next){t.next(e)}};t.prototype.error=function(e){var t=this.destination;if(t&&t.error){this.destination.error(e)}};t.prototype.complete=function(){var e=this.destination;if(e&&e.complete){this.destination.complete()}};t.prototype._subscribe=function(e){var t=this.source;if(t){return this.source.subscribe(e)}else{return Cn.EMPTY}};return t}(Hn);var zn=function(e){__extends(t,e);function t(t,n){return e.call(this)||this}t.prototype.schedule=function(e,t){if(t===void 0){t=0}return this};return t}(Cn);var Qn=function(e){__extends(t,e);function t(t,n){var r=e.call(this,t,n)||this;r.scheduler=t;r.work=n;r.pending=false;return r}t.prototype.schedule=function(e,t){if(t===void 0){t=0}if(this.closed){return this}this.state=e;var n=this.id;var r=this.scheduler;if(n!=null){this.id=this.recycleAsyncId(r,n,t)}this.pending=true;this.delay=t;this.id=this.id||this.requestAsyncId(r,this.id,t);return this};t.prototype.requestAsyncId=function(e,t,n){if(n===void 0){n=0}return setInterval(e.flush.bind(e,this),n)};t.prototype.recycleAsyncId=function(e,t,n){if(n===void 0){n=0}if(n!==null&&this.delay===n&&this.pending===false){return t}clearInterval(t);return undefined};t.prototype.execute=function(e,t){if(this.closed){return new Error("executing a cancelled action")}this.pending=false;var n=this._execute(e,t);if(n){return n}else if(this.pending===false&&this.id!=null){this.id=this.recycleAsyncId(this.scheduler,this.id,null)}};t.prototype._execute=function(e,t){var n=false;var r=undefined;try{this.work(e)}catch(e){n=true;r=!!e&&e||new Error(e)}if(n){this.unsubscribe();return r}};t.prototype._unsubscribe=function(){var e=this.id;var t=this.scheduler;var n=t.actions;var r=n.indexOf(this);this.work=null;this.state=null;this.pending=false;this.scheduler=null;if(r!==-1){n.splice(r,1)}if(e!=null){this.id=this.recycleAsyncId(t,e,null)}this.delay=null};return t}(zn);var Wn=function(){function e(t,n){if(n===void 0){n=e.now}this.SchedulerAction=t;this.now=n}e.prototype.schedule=function(e,t,n){if(t===void 0){t=0}return new this.SchedulerAction(this,e).schedule(n,t)};return e}();Wn.now=function(){return Date.now()};var Xn=function(e){__extends(t,e);function t(n,r){if(r===void 0){r=Wn.now}var i=e.call(this,n,(function(){if(t.delegate&&t.delegate!==i){return t.delegate.now()}else{return r()}}))||this;i.actions=[];i.active=false;i.scheduled=undefined;return i}t.prototype.schedule=function(n,r,i){if(r===void 0){r=0}if(t.delegate&&t.delegate!==this){return t.delegate.schedule(n,r,i)}else{return e.prototype.schedule.call(this,n,r,i)}};t.prototype.flush=function(e){var t=this.actions;if(this.active){t.push(e);return}var n;this.active=true;do{if(n=e.execute(e.state,e.delay)){break}}while(e=t.shift());this.active=false;if(n){while(e=t.shift()){e.unsubscribe()}throw n}};return t}(Wn);function Zn(e){return e&&typeof e.schedule==="function"}var er=new Xn(Qn);var tr=er;function nr(e){var t=arguments.length;var n=tr;if(Zn(arguments[arguments.length-1])){n=arguments[arguments.length-1];t--}var r=null;if(t>=2){r=arguments[1]}var i=Number.POSITIVE_INFINITY;if(t>=3){i=arguments[2]}return function t(a){return a.lift(new rr(e,r,i,n))}}var rr=function(){function e(e,t,n,r){this.bufferTimeSpan=e;this.bufferCreationInterval=t;this.maxBufferSize=n;this.scheduler=r}e.prototype.call=function(e,t){return t.subscribe(new ar(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))};return e}();var ir=function(){function e(){this.buffer=[]}return e}();var ar=function(e){__extends(t,e);function t(t,n,r,i,a){var o=e.call(this,t)||this;o.bufferTimeSpan=n;o.bufferCreationInterval=r;o.maxBufferSize=i;o.scheduler=a;o.contexts=[];var s=o.openContext();o.timespanOnly=r==null||r<0;if(o.timespanOnly){var u={subscriber:o,context:s,bufferTimeSpan:n};o.add(s.closeAction=a.schedule(or,n,u))}else{var c={subscriber:o,context:s};var l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:o,scheduler:a};o.add(s.closeAction=a.schedule(ur,n,c));o.add(a.schedule(sr,r,l))}return o}t.prototype._next=function(e){var t=this.contexts;var n=t.length;var r;for(var i=0;i<n;i++){var a=t[i];var o=a.buffer;o.push(e);if(o.length==this.maxBufferSize){r=a}}if(r){this.onBufferFull(r)}};t.prototype._error=function(t){this.contexts.length=0;e.prototype._error.call(this,t)};t.prototype._complete=function(){var t=this,n=t.contexts,r=t.destination;while(n.length>0){var i=n.shift();r.next(i.buffer)}e.prototype._complete.call(this)};t.prototype._unsubscribe=function(){this.contexts=null};t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;t.unsubscribe();this.remove(t);if(!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan;var r={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(or,n,r))}};t.prototype.openContext=function(){var e=new ir;this.contexts.push(e);return e};t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;var n=t?t.indexOf(e):-1;if(n>=0){t.splice(t.indexOf(e),1)}};return t}(Pn);function or(e){var t=e.subscriber;var n=e.context;if(n){t.closeContext(n)}if(!t.closed){e.context=t.openContext();e.context.closeAction=this.schedule(e,e.bufferTimeSpan)}}function sr(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler;var a=r.openContext();var o=this;if(!r.closed){r.add(a.closeAction=i.schedule(ur,n,{subscriber:r,context:a}));o.schedule(e,t)}}function ur(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var cr=function(e){if(e===void 0){e=21}var t="";var n=crypto.getRandomValues(new Uint8Array(e));while(e--){var r=n[e]&63;if(r<36){t+=r.toString(36)}else if(r<62){t+=(r-26).toString(36).toUpperCase()}else if(r<63){t+="_"}else{t+="-"}}return t};var lr=r((function(e,t){var n=i&&i.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:true});t.ClientError=void 0;var r=function(e){n(t,e);function t(n,r){var i=this;var a=t.extractMessage(n)+": "+JSON.stringify({response:n,request:r});i=e.call(this,a)||this;Object.setPrototypeOf(i,t.prototype);i.response=n;i.request=r;if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(i,t)}return i}t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: "+e.status+")"}};return t}(Error);t.ClientError=r}));var fr=r((function(e,t){var n=typeof self!=="undefined"?self:i;var r=function(){function e(){this.fetch=false;this.DOMException=n.DOMException}e.prototype=n;return new e}();(function(e){var t=function(t){var n={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{new Blob;return true}catch(e){return false}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};function r(e){return e&&DataView.prototype.isPrototypeOf(e)}if(n.arrayBuffer){var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];var a=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1}}function o(e){if(typeof e!=="string"){e=String(e)}if(/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e)){throw new TypeError("Invalid character in header field name")}return e.toLowerCase()}function s(e){if(typeof e!=="string"){e=String(e)}return e}function u(e){var t={next:function(){var t=e.shift();return{done:t===undefined,value:t}}};if(n.iterable){t[Symbol.iterator]=function(){return t}}return t}function c(e){this.map={};if(e instanceof c){e.forEach((function(e,t){this.append(t,e)}),this)}else if(Array.isArray(e)){e.forEach((function(e){this.append(e[0],e[1])}),this)}else if(e){Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}}c.prototype.append=function(e,t){e=o(e);t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};c.prototype["delete"]=function(e){delete this.map[o(e)]};c.prototype.get=function(e){e=o(e);return this.has(e)?this.map[e]:null};c.prototype.has=function(e){return this.map.hasOwnProperty(o(e))};c.prototype.set=function(e,t){this.map[o(e)]=s(t)};c.prototype.forEach=function(e,t){for(var n in this.map){if(this.map.hasOwnProperty(n)){e.call(t,this.map[n],n,this)}}};c.prototype.keys=function(){var e=[];this.forEach((function(t,n){e.push(n)}));return u(e)};c.prototype.values=function(){var e=[];this.forEach((function(t){e.push(t)}));return u(e)};c.prototype.entries=function(){var e=[];this.forEach((function(t,n){e.push([n,t])}));return u(e)};if(n.iterable){c.prototype[Symbol.iterator]=c.prototype.entries}function l(e){if(e.bodyUsed){return Promise.reject(new TypeError("Already read"))}e.bodyUsed=true}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)};e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader;var n=f(t);t.readAsArrayBuffer(e);return n}function p(e){var t=new FileReader;var n=f(t);t.readAsText(e);return n}function h(e){var t=new Uint8Array(e);var n=new Array(t.length);for(var r=0;r<t.length;r++){n[r]=String.fromCharCode(t[r])}return n.join("")}function v(e){if(e.slice){return e.slice(0)}else{var t=new Uint8Array(e.byteLength);t.set(new Uint8Array(e));return t.buffer}}function y(){this.bodyUsed=false;this._initBody=function(e){this._bodyInit=e;if(!e){this._bodyText=""}else if(typeof e==="string"){this._bodyText=e}else if(n.blob&&Blob.prototype.isPrototypeOf(e)){this._bodyBlob=e}else if(n.formData&&FormData.prototype.isPrototypeOf(e)){this._bodyFormData=e}else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)){this._bodyText=e.toString()}else if(n.arrayBuffer&&n.blob&&r(e)){this._bodyArrayBuffer=v(e.buffer);this._bodyInit=new Blob([this._bodyArrayBuffer])}else if(n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))){this._bodyArrayBuffer=v(e)}else{this._bodyText=e=Object.prototype.toString.call(e)}if(!this.headers.get("content-type")){if(typeof e==="string"){this.headers.set("content-type","text/plain;charset=UTF-8")}else if(this._bodyBlob&&this._bodyBlob.type){this.headers.set("content-type",this._bodyBlob.type)}else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)){this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8")}}};if(n.blob){this.blob=function(){var e=l(this);if(e){return e}if(this._bodyBlob){return Promise.resolve(this._bodyBlob)}else if(this._bodyArrayBuffer){return Promise.resolve(new Blob([this._bodyArrayBuffer]))}else if(this._bodyFormData){throw new Error("could not read FormData body as blob")}else{return Promise.resolve(new Blob([this._bodyText]))}};this.arrayBuffer=function(){if(this._bodyArrayBuffer){return l(this)||Promise.resolve(this._bodyArrayBuffer)}else{return this.blob().then(d)}}}this.text=function(){var e=l(this);if(e){return e}if(this._bodyBlob){return p(this._bodyBlob)}else if(this._bodyArrayBuffer){return Promise.resolve(h(this._bodyArrayBuffer))}else if(this._bodyFormData){throw new Error("could not read FormData body as text")}else{return Promise.resolve(this._bodyText)}};if(n.formData){this.formData=function(){return this.text().then(E)}}this.json=function(){return this.text().then(JSON.parse)};return this}var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e){var t=e.toUpperCase();return m.indexOf(t)>-1?t:e}function g(e,t){t=t||{};var n=t.body;if(e instanceof g){if(e.bodyUsed){throw new TypeError("Already read")}this.url=e.url;this.credentials=e.credentials;if(!t.headers){this.headers=new c(e.headers)}this.method=e.method;this.mode=e.mode;this.signal=e.signal;if(!n&&e._bodyInit!=null){n=e._bodyInit;e.bodyUsed=true}}else{this.url=String(e)}this.credentials=t.credentials||this.credentials||"same-origin";if(t.headers||!this.headers){this.headers=new c(t.headers)}this.method=b(t.method||this.method||"GET");this.mode=t.mode||this.mode||null;this.signal=t.signal||this.signal;this.referrer=null;if((this.method==="GET"||this.method==="HEAD")&&n){throw new TypeError("Body not allowed for GET or HEAD requests")}this._initBody(n)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})};function E(e){var t=new FormData;e.trim().split("&").forEach((function(e){if(e){var n=e.split("=");var r=n.shift().replace(/\+/g," ");var i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}));return t}function w(e){var t=new c;var n=e.replace(/\r?\n[\t ]+/g," ");n.split(/\r?\n/).forEach((function(e){var n=e.split(":");var r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}));return t}y.call(g.prototype);function _(e,t){if(!t){t={}}this.type="default";this.status=t.status===undefined?200:t.status;this.ok=this.status>=200&&this.status<300;this.statusText="statusText"in t?t.statusText:"OK";this.headers=new c(t.headers);this.url=t.url||"";this._initBody(e)}y.call(_.prototype);_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})};_.error=function(){var e=new _(null,{status:0,statusText:""});e.type="error";return e};var S=[301,302,303,307,308];_.redirect=function(e,t){if(S.indexOf(t)===-1){throw new RangeError("Invalid status code")}return new _(null,{status:t,headers:{location:e}})};t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e;this.name=t;var n=Error(e);this.stack=n.stack};t.DOMException.prototype=Object.create(Error.prototype);t.DOMException.prototype.constructor=t.DOMException}function T(e,r){return new Promise((function(i,a){var o=new g(e,r);if(o.signal&&o.signal.aborted){return a(new t.DOMException("Aborted","AbortError"))}var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:w(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;i(new _(t,e))};s.onerror=function(){a(new TypeError("Network request failed"))};s.ontimeout=function(){a(new TypeError("Network request failed"))};s.onabort=function(){a(new t.DOMException("Aborted","AbortError"))};s.open(o.method,o.url,true);if(o.credentials==="include"){s.withCredentials=true}else if(o.credentials==="omit"){s.withCredentials=false}if("responseType"in s&&n.blob){s.responseType="blob"}o.headers.forEach((function(e,t){s.setRequestHeader(t,e)}));if(o.signal){o.signal.addEventListener("abort",u);s.onreadystatechange=function(){if(s.readyState===4){o.signal.removeEventListener("abort",u)}}}s.send(typeof o._bodyInit==="undefined"?null:o._bodyInit)}))}T.polyfill=true;if(!e.fetch){e.fetch=T;e.Headers=c;e.Request=g;e.Response=_}t.Headers=c;t.Request=g;t.Response=_;t.fetch=T;Object.defineProperty(t,"__esModule",{value:true});return t}({})})(r);r.fetch.ponyfill=true;delete r.fetch.polyfill;var a=r;t=a.fetch;t.default=a.fetch;t.fetch=a.fetch;t.Headers=a.Headers;t.Request=a.Request;t.Response=a.Response;e.exports=t}));var dr=r((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var n=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):undefined;var r=n;t.default=r}));var pr=r((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=s;var n=r(dr);function r(e){return e&&e.__esModule?e:{default:e}}function i(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){i=function e(t){return typeof t}}else{i=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return i(e)}var a=10;var o=2;function s(e){return u(e,[])}function u(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":if(e===null){return"null"}return c(e,t);default:return String(e)}}function c(e,t){if(t.indexOf(e)!==-1){return"[Circular]"}var n=[].concat(t,[e]);var r=d(e);if(r!==undefined){var i=r.call(e);if(i!==e){return typeof i==="string"?i:u(i,n)}}else if(Array.isArray(e)){return f(e,n)}return l(e,n)}function l(e,t){var n=Object.keys(e);if(n.length===0){return"{}"}if(t.length>o){return"["+p(e)+"]"}var r=n.map((function(n){var r=u(e[n],t);return n+": "+r}));return"{ "+r.join(", ")+" }"}function f(e,t){if(e.length===0){return"[]"}if(t.length>o){return"[Array]"}var n=Math.min(a,e.length);var r=e.length-n;var i=[];for(var s=0;s<n;++s){i.push(u(e[s],t))}if(r===1){i.push("... 1 more item")}else if(r>1){i.push("... ".concat(r," more items"))}return"["+i.join(", ")+"]"}function d(e){var t=e[String(n.default)];if(typeof t==="function"){return t}if(typeof e.inspect==="function"){return e.inspect}}function p(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){var n=e.constructor.name;if(typeof n==="string"&&n!==""){return n}}return t}}));var hr=r((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=n;function n(e,t){var n=Boolean(e);if(!n){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}}));var vr=r((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=a;var n=i(hr);var r=i(dr);function i(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.prototype.toJSON;typeof t==="function"||(0,n.default)(0);e.prototype.inspect=t;if(r.default){e.prototype[r.default]=t}}}));var yr=r((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.isNode=o;t.Token=t.Location=void 0;var n=r(vr);function r(e){return e&&e.__esModule?e:{default:e}}var i=function(){function e(e,t,n){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=n}var t=e.prototype;t.toJSON=function e(){return{start:this.start,end:this.end}};return e}();t.Location=i;(0,n.default)(i);var a=function(){function e(e,t,n,r,i,a,o){this.kind=e;this.start=t;this.end=n;this.line=r;this.column=i;this.value=o;this.prev=a;this.next=null}var t=e.prototype;t.toJSON=function e(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};return e}();t.Token=a;(0,n.default)(a);function o(e){return e!=null&&typeof e.kind==="string"}}));var mr=r((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.visit=o;t.visitInParallel=s;t.getVisitFn=u;t.BREAK=t.QueryDocumentKeys=void 0;var n=r(pr);function r(e){return e&&e.__esModule?e:{default:e}}var i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=i;var a=Object.freeze({});t.BREAK=a;function o(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:i;var o=undefined;var s=Array.isArray(e);var c=[e];var l=-1;var f=[];var d=undefined;var p=undefined;var h=undefined;var v=[];var y=[];var m=e;do{l++;var b=l===c.length;var g=b&&f.length!==0;if(b){p=y.length===0?undefined:v[v.length-1];d=h;h=y.pop();if(g){if(s){d=d.slice()}else{var E={};for(var w=0,_=Object.keys(d);w<_.length;w++){var S=_[w];E[S]=d[S]}d=E}var T=0;for(var O=0;O<f.length;O++){var I=f[O][0];var x=f[O][1];if(s){I-=T}if(s&&x===null){d.splice(I,1);T++}else{d[I]=x}}}l=o.index;c=o.keys;f=o.edits;s=o.inArray;o=o.prev}else{p=h?s?l:c[l]:undefined;d=h?h[p]:m;if(d===null||d===undefined){continue}if(h){v.push(p)}}var A=void 0;if(!Array.isArray(d)){if(!(0,yr.isNode)(d)){throw new Error("Invalid AST Node: ".concat((0,n.default)(d),"."))}var N=u(t,d.kind,b);if(N){A=N.call(t,d,p,h,v,y);if(A===a){break}if(A===false){if(!b){v.pop();continue}}else if(A!==undefined){f.push([p,A]);if(!b){if((0,yr.isNode)(A)){d=A}else{v.pop();continue}}}}}if(A===undefined&&g){f.push([p,d])}if(b){v.pop()}else{var D;o={inArray:s,index:l,keys:c,edits:f,prev:o};s=Array.isArray(d);c=s?d:(D=r[d.kind])!==null&&D!==void 0?D:[];l=-1;f=[];if(h){y.push(h)}h=d}}while(o!==undefined);if(f.length!==0){m=f[f.length-1][1]}return m}function s(e){var t=new Array(e.length);return{enter:function n(r){for(var i=0;i<e.length;i++){if(t[i]==null){var o=u(e[i],r.kind,false);if(o){var s=o.apply(e[i],arguments);if(s===false){t[i]=r}else if(s===a){t[i]=a}else if(s!==undefined){return s}}}}},leave:function n(r){for(var i=0;i<e.length;i++){if(t[i]==null){var o=u(e[i],r.kind,true);if(o){var s=o.apply(e[i],arguments);if(s===a){t[i]=a}else if(s!==undefined&&s!==false){return s}}}else if(t[i]===r){t[i]=null}}}}}function u(e,t,n){var r=e[t];if(r){if(!n&&typeof r==="function"){return r}var i=n?r.leave:r.enter;if(typeof i==="function"){return i}}else{var a=n?e.leave:e.enter;if(a){if(typeof a==="function"){return a}var o=a[t];if(typeof o==="function"){return o}}}}}));var br=r((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringValue=n;t.getBlockStringIndentation=i;t.printBlockString=a;function n(e){var t=e.split(/\r\n|[\n\r]/g);var n=i(e);if(n!==0){for(var a=1;a<t.length;a++){t[a]=t[a].slice(n)}}var o=0;while(o<t.length&&r(t[o])){++o}var s=t.length;while(s>o&&r(t[s-1])){--s}return t.slice(o,s).join("\n")}function r(e){for(var t=0;t<e.length;++t){if(e[t]!==" "&&e[t]!=="\t"){return false}}return true}function i(e){var t;var n=true;var r=true;var i=0;var a=null;for(var o=0;o<e.length;++o){switch(e.charCodeAt(o)){case 13:if(e.charCodeAt(o+1)===10){++o}case 10:n=false;r=true;i=0;break;case 9:case 32:++i;break;default:if(r&&!n&&(a===null||i<a)){a=i}r=false}}return(t=a)!==null&&t!==void 0?t:0}function a(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var r=e.indexOf("\n")===-1;var i=e[0]===" "||e[0]==="\t";var a=e[e.length-1]==='"';var o=e[e.length-1]==="\\";var s=!r||a||o||n;var u="";if(s&&!(r&&i)){u+="\n"+t}u+=t?e.replace(/\n/g,"\n"+t):e;if(s){u+="\n"}return'"""'+u.replace(/"""/g,'\\"""')+'"""'}}));var gr=r((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.print=n;function n(e){return(0,mr.visit)(e,{leave:i})}var r=80;var i={Name:function e(t){return t.value},Variable:function e(t){return"$"+t.name},Document:function e(t){return o(t.definitions,"\n\n")+"\n"},OperationDefinition:function e(t){var n=t.operation;var r=t.name;var i=u("(",o(t.variableDefinitions,", "),")");var a=o(t.directives," ");var s=t.selectionSet;return!r&&!a&&!i&&n==="query"?s:o([n,o([r,i]),a,s]," ")},VariableDefinition:function e(t){var n=t.variable,r=t.type,i=t.defaultValue,a=t.directives;return n+": "+r+u(" = ",i)+u(" ",o(a," "))},SelectionSet:function e(t){var n=t.selections;return s(n)},Field:function e(t){var n=t.alias,i=t.name,a=t.arguments,s=t.directives,l=t.selectionSet;var f=u("",n,": ")+i;var d=f+u("(",o(a,", "),")");if(d.length>r){d=f+u("(\n",c(o(a,"\n")),"\n)")}return o([d,o(s," "),l]," ")},Argument:function e(t){var n=t.name,r=t.value;return n+": "+r},FragmentSpread:function e(t){var n=t.name,r=t.directives;return"..."+n+u(" ",o(r," "))},InlineFragment:function e(t){var n=t.typeCondition,r=t.directives,i=t.selectionSet;return o(["...",u("on ",n),o(r," "),i]," ")},FragmentDefinition:function e(t){var n=t.name,r=t.typeCondition,i=t.variableDefinitions,a=t.directives,s=t.selectionSet;return"fragment ".concat(n).concat(u("(",o(i,", "),")")," ")+"on ".concat(r," ").concat(u("",o(a," ")," "))+s},IntValue:function e(t){var n=t.value;return n},FloatValue:function e(t){var n=t.value;return n},StringValue:function e(t,n){var r=t.value,i=t.block;return i?(0,br.printBlockString)(r,n==="description"?"":" "):JSON.stringify(r)},BooleanValue:function e(t){var n=t.value;return n?"true":"false"},NullValue:function e(){return"null"},EnumValue:function e(t){var n=t.value;return n},ListValue:function e(t){var n=t.values;return"["+o(n,", ")+"]"},ObjectValue:function e(t){var n=t.fields;return"{"+o(n,", ")+"}"},ObjectField:function e(t){var n=t.name,r=t.value;return n+": "+r},Directive:function e(t){var n=t.name,r=t.arguments;return"@"+n+u("(",o(r,", "),")")},NamedType:function e(t){var n=t.name;return n},ListType:function e(t){var n=t.type;return"["+n+"]"},NonNullType:function e(t){var n=t.type;return n+"!"},SchemaDefinition:a((function(e){var t=e.directives,n=e.operationTypes;return o(["schema",o(t," "),s(n)]," ")})),OperationTypeDefinition:function e(t){var n=t.operation,r=t.type;return n+": "+r},ScalarTypeDefinition:a((function(e){var t=e.name,n=e.directives;return o(["scalar",t,o(n," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["type",t,u("implements ",o(n," & ")),o(r," "),s(i)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(f(n)?u("(\n",c(o(n,"\n")),"\n)"):u("(",o(n,", "),")"))+": "+r+u(" ",o(i," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return o([t+": "+n,u("= ",r),o(i," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["interface",t,u("implements ",o(n," & ")),o(r," "),s(i)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return o(["union",t,o(n," "),r&&r.length!==0?"= "+o(r," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return o(["enum",t,o(n," "),s(r)]," ")})),EnumValueDefinition:a((function(e){var t=e.name,n=e.directives;return o([t,o(n," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return o(["input",t,o(n," "),s(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(f(n)?u("(\n",c(o(n,"\n")),"\n)"):u("(",o(n,", "),")"))+(r?" repeatable":"")+" on "+o(i," | ")})),SchemaExtension:function e(t){var n=t.directives,r=t.operationTypes;return o(["extend schema",o(n," "),s(r)]," ")},ScalarTypeExtension:function e(t){var n=t.name,r=t.directives;return o(["extend scalar",n,o(r," ")]," ")},ObjectTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return o(["extend type",n,u("implements ",o(r," & ")),o(i," "),s(a)]," ")},InterfaceTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return o(["extend interface",n,u("implements ",o(r," & ")),o(i," "),s(a)]," ")},UnionTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.types;return o(["extend union",n,o(r," "),i&&i.length!==0?"= "+o(i," | "):""]," ")},EnumTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.values;return o(["extend enum",n,o(r," "),s(i)]," ")},InputObjectTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.fields;return o(["extend input",n,o(r," "),s(i)]," ")}};function a(e){return function(t){return o([t.description,e(t)],"\n")}}function o(e){var t;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";return(t=e===null||e===void 0?void 0:e.filter((function(e){return e})).join(n))!==null&&t!==void 0?t:""}function s(e){return u("{\n",c(o(e,"\n")),"\n}")}function u(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"";return t!=null&&t!==""?e+t+n:""}function c(e){return u(" ",e.replace(/\n/g,"\n "))}function l(e){return e.indexOf("\n")!==-1}function f(e){return e!=null&&e.some(l)}}));var Er=function e(t){var n=t.uri,r=t.name,i=t.type;this.uri=n;this.name=r;this.type=i};var wr=function e(t){return typeof File!=="undefined"&&t instanceof File||typeof Blob!=="undefined"&&t instanceof Blob||t instanceof Er};var _r=function e(t,n,r){if(n===void 0){n=""}if(r===void 0){r=wr}var i;var a=new Map;function o(e,t){var n=a.get(t);if(n)n.push.apply(n,e);else a.set(t,e)}if(r(t)){i=null;o([n],t)}else{var s=n?n+".":"";if(typeof FileList!=="undefined"&&t instanceof FileList)i=Array.prototype.map.call(t,(function(e,t){o([""+s+t],e);return null}));else if(Array.isArray(t))i=t.map((function(t,n){var i=e(t,""+s+n,r);i.files.forEach(o);return i.clone}));else if(t&&t.constructor===Object){i={};for(var u in t){var c=e(t[u],""+s+u,r);c.files.forEach(o);i[u]=c.clone}}else i=t}return{clone:i,files:a}};var Sr=Er;var Tr=_r;var Or=wr;var Ir={ReactNativeFile:Sr,extractFiles:Tr,isExtractableFile:Or};var xr=typeof self=="object"?self.FormData:window.FormData;var Ar=r((function(e,t){var n=i&&i.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var r=n(xr);var a=function(e){return Ir.isExtractableFile(e)||e!==null&&typeof e==="object"&&typeof e.pipe==="function"};function o(e,t){var n=Ir.extractFiles({query:e,variables:t},"",a),i=n.clone,o=n.files;if(o.size===0){return JSON.stringify(i)}var s=typeof FormData==="undefined"?r.default:FormData;var u=new s;u.append("operations",JSON.stringify(i));var c={};var l=0;o.forEach((function(e){c[++l]=e}));u.append("map",JSON.stringify(c));l=0;o.forEach((function(e,t){u.append(""+ ++l,t)}));return u}t.default=o}));var Nr=e("d",r((function(e,t){var n=i&&i.__assign||function(){n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return n.apply(this,arguments)};var r=i&&i.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var a=i&&i.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=i&&i.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))r(t,e,n);a(t,e);return t};var s=i&&i.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):i(e.value).then(o,s)}u((r=r.apply(e,t||[])).next())}))};var u=i&&i.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var c=i&&i.__rest||function(e,t){var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)n[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++){if(t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i]))n[r[i]]=e[r[i]]}return n};var l=i&&i.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.gql=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var f=o(fr),d=f;var p=l(Ar);var h=lr;Object.defineProperty(t,"ClientError",{enumerable:true,get:function(){return h.ClientError}});var v=function(e){var t={};if(e){if(typeof Headers!=="undefined"&&e instanceof Headers||e instanceof d.Headers){t=_(e)}else if(Array.isArray(e)){e.forEach((function(e){var n=e[0],r=e[1];t[n]=r}))}else{t=e}}return t};var y=function(){function e(e,t){this.url=e;this.options=t||{}}e.prototype.rawRequest=function(e,t,r){return s(this,void 0,void 0,(function(){var i,a,o,s,l,d,h,y,m,b,E;return u(this,(function(u){switch(u.label){case 0:i=this.options,a=i.headers,o=i.fetch,s=o===void 0?f.default:o,l=c(i,["headers","fetch"]);d=p.default(e,t);return[4,s(this.url,n({method:"POST",headers:n(n(n({},typeof d==="string"?{"Content-Type":"application/json"}:{}),v(a)),v(r)),body:d},l))];case 1:h=u.sent();return[4,g(h)];case 2:y=u.sent();if(h.ok&&!y.errors&&y.data){m=h.headers,b=h.status;return[2,n(n({},y),{headers:m,status:b})]}else{E=typeof y==="string"?{error:y}:y;throw new lr.ClientError(n(n({},E),{status:h.status,headers:h.headers}),{query:e,variables:t})}}}))}))};e.prototype.request=function(e,t,r){return s(this,void 0,void 0,(function(){var i,a,o,s,l,d,h,y,m,b;return u(this,(function(u){switch(u.label){case 0:i=this.options,a=i.headers,o=i.fetch,s=o===void 0?f.default:o,l=c(i,["headers","fetch"]);d=E(e);h=p.default(d,t);return[4,s(this.url,n({method:"POST",headers:n(n(n({},typeof h==="string"?{"Content-Type":"application/json"}:{}),v(a)),v(r)),body:h},l))];case 1:y=u.sent();return[4,g(y)];case 2:m=u.sent();if(y.ok&&!m.errors&&m.data){return[2,m.data]}else{b=typeof m==="string"?{error:m}:m;throw new lr.ClientError(n(n({},b),{status:y.status}),{query:d,variables:t})}}}))}))};e.prototype.setHeaders=function(e){this.options.headers=e;return this};e.prototype.setHeader=function(e,t){var n;var r=this.options.headers;if(r){r[e]=t}else{this.options.headers=(n={},n[e]=t,n)}return this};return e}();t.GraphQLClient=y;function m(e,t,n){return s(this,void 0,void 0,(function(){var r;return u(this,(function(i){r=new y(e);return[2,r.rawRequest(t,n)]}))}))}t.rawRequest=m;function b(e,t,n){return s(this,void 0,void 0,(function(){var r;return u(this,(function(i){r=new y(e);return[2,r.request(t,n)]}))}))}t.request=b;t.default=b;function g(e){var t=e.headers.get("Content-Type");if(t&&t.startsWith("application/json")){return e.json()}else{return e.text()}}function E(e){if(typeof e==="string")return e;return gr.print(e)}function w(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}return e.reduce((function(e,n,r){return""+e+n+(r in t?t[r]:"")}),"")}t.gql=w;function _(e){var t={};e.forEach((function(e,n){t[n]=e}));return t}})));var Dr=r((function(e,t){var n=i&&i.__assign||function(){n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return n.apply(this,arguments)};var r=i&&i.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(t,"__esModule",{value:true});t.renameVariables=t.renameVariablesAndTopLevelFields=t.renameVariablesAndTopLevelFieldsOnOpDef=t.renameSelectionSetArguments=t.renameVariableDefinition=t.renameDirectiveArguments=t.renameArgument=t.renameValue=t.defaultRenameFn=void 0;t.defaultRenameFn=function(e,t){return e+"_"+t};function a(e,t){if(e.kind==="Variable"){return n(n({},e),{name:n(n({},e.name),{value:t(e.name.value)})})}else if(e.kind==="ObjectValue"){return n(n({},e),{fields:e.fields.map((function(e){return n(n({},e),{value:a(e.value,t)})}))})}else if(e.kind==="ListValue"){return n(n({},e),{values:e.values.map((function(e){return a(e,t)}))})}return e}t.renameValue=a;function o(e,t){return n(n({},e),{value:a(e.value,t)})}t.renameArgument=o;function s(e,t){var r;return n(n({},e),{arguments:(r=e.arguments)===null||r===void 0?void 0:r.map((function(e){return o(e,t)}))})}t.renameDirectiveArguments=s;function u(e,t){var r;return n(n({},e),{variable:n(n({},e.variable),{name:n(n({},e.variable.name),{value:t(e.variable.name.value)})}),directives:(r=e.directives)===null||r===void 0?void 0:r.map((function(e){return s(e,t)}))})}t.renameVariableDefinition=u;function c(e,t){return n(n({},e),{selections:e.selections.map((function(e){var r,i,a;switch(e.kind){case"Field":return n(n({},e),{arguments:(r=e.arguments)===null||r===void 0?void 0:r.map((function(e){return o(e,t)})),selectionSet:e.selectionSet?c(e.selectionSet,t):undefined});case"FragmentSpread":return n(n({},e),{directives:(i=e.directives)===null||i===void 0?void 0:i.map((function(e){return s(e,t)}))});case"InlineFragment":return n(n({},e),{directives:(a=e.directives)===null||a===void 0?void 0:a.map((function(e){return s(e,t)})),selectionSet:c(e.selectionSet,t)})}}))})}t.renameSelectionSetArguments=c;function l(e,t,r){var i,a;return n(n({},e),{variableDefinitions:(i=e.variableDefinitions)===null||i===void 0?void 0:i.map((function(e){return u(e,t)})),directives:(a=e.directives)===null||a===void 0?void 0:a.map((function(e){return s(e,t)})),selectionSet:c(n(n({},e.selectionSet),{selections:e.selectionSet.selections.map((function(e){var t,i;switch(e.kind){case"Field":return n(n({},e),{alias:n(n({},e.name),{value:r((i=(t=e.alias)===null||t===void 0?void 0:t.value)!==null&&i!==void 0?i:e.name.value)})});default:return e}}))}),t)})}t.renameVariablesAndTopLevelFieldsOnOpDef=l;function f(e,t,i){return n(n({},e),{definitions:r(e.definitions.filter((function(e){return e.kind!=="OperationDefinition"})),e.definitions.filter((function(e){return e.kind==="OperationDefinition"})).map((function(e){return l(e,t,i)})))})}t.renameVariablesAndTopLevelFields=f;function d(e,t){return Object.keys(e).reduce((function(r,i){var a;return n(n({},r),(a={},a[t(i)]=e[i],a))}),{})}t.renameVariables=d}));var Cr=r((function(e,t){var n=i&&i.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(t.hasOwnProperty(n))e[n]=t[n]};return e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var r=i&&i.__assign||function(){r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};return r.apply(this,arguments)};var a=i&&i.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(t,"__esModule",{value:true});var o={kind:"Document",definitions:[]};var s=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Error);var u=function(){function e(e,t,n){this.operationName=e;this.document=t;this.variables=n}e.prototype.add=function(t,n){var i=this;var o=this.document.definitions.concat(t.definitions).filter((function(e){return e.kind==="OperationDefinition"}));if(!o.length){throw new s("Expected at least one OperationDefinition, but found none.")}o.forEach((function(e){var t,n;var r=o.filter((function(t){return t!==e}));r.forEach((function(t){var n,r;if(t.operation!==e.operation){throw new s("expected all operations to be of the smae type, but "+((n=t.name)===null||n===void 0?void 0:n.value)+" is "+t.operation+" and "+((r=e.name)===null||r===void 0?void 0:r.value)+" is "+e.operation)}}));(t=e.selectionSet.selections)===null||t===void 0?void 0:t.filter((function(e){return e.kind==="Field"})).forEach((function(t){r.forEach((function(n){var r;return(r=n.selectionSet.selections)===null||r===void 0?void 0:r.filter((function(e){return e.kind==="Field"})).forEach((function(r){var i,a,o,u;if((((i=t.alias)===null||i===void 0?void 0:i.value)||t.name.value)===(((a=r.alias)===null||a===void 0?void 0:a.value)||r.name.value)){throw new s("duplicate field definition "+r.name.value+" for oprations "+((o=e.name)===null||o===void 0?void 0:o.value)+" and "+((u=n.name)===null||u===void 0?void 0:u.value))}}))}))}));(n=e.variableDefinitions)===null||n===void 0?void 0:n.forEach((function(t){r.forEach((function(n){var r;return(r=n.variableDefinitions)===null||r===void 0?void 0:r.forEach((function(r){var i,a;if(t.variable.name.value===r.variable.name.value){throw new s("duplicate variable definition "+r.variable.name.value+" for oprations "+((i=e.name)===null||i===void 0?void 0:i.value)+" and "+((a=n.name)===null||a===void 0?void 0:a.value))}}))}))}))}));var u=function(){if(i.variables&&n){return r(r({},i.variables),n)}return n||i.variables}();var c=[{kind:"OperationDefinition",directives:o.flatMap((function(e){return e.directives||[]})),name:{kind:"Name",value:this.operationName},operation:o[0].operation,selectionSet:{kind:"SelectionSet",selections:o.flatMap((function(e){return e.selectionSet.selections}))},variableDefinitions:o.flatMap((function(e){return e.variableDefinitions||[]}))}];var l=new Set;var f=this.document.definitions.concat(t.definitions);for(var d=0,p=f;d<p.length;d++){var h=p[d];if(h.kind==="OperationDefinition"){continue}if(h.kind==="FragmentDefinition"){if(l.has(h.name.value)){continue}l.add(h.name.value)}c=a([h],c)}var v={kind:"Document",definitions:c};return new e(this.operationName,v,u)};e.prototype.addN=function(e,t,n,r){if(n===void 0){n=Dr.defaultRenameFn}if(r===void 0){r=Dr.defaultRenameFn}if(!t.length){return this}return t.reduce((function(t,i,a){var o=Dr.renameVariablesAndTopLevelFields(e,(function(e){return n(e,a)}),(function(e){return r(e,a)}));var s=Dr.renameVariables(i,(function(e){return n(e,a)}));return t.add(o,s)}),this)};return e}();function c(e){return{operationName:e,add:function(e,t){return new u(this.operationName,e,t)},addN:function(e,t,n,r){return new u(this.operationName,o).addN(e,t,n,r)}}}t.default=c}));var kr=a(Cr);var Fr={current:void 0};function Pr(){if(void 0===Fr.current)throw new Error("no implementation of useHost provided");return Fr.current()}function jr(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");Fr.current=e}function Rr(){ce();var e=Pr();return s(e,U)}function Lr(){Ie();var e=Pr();return s(e,q)}function Mr(){var e;return null==(e=Vr())?void 0:e.jwt}function Vr(){be();var e=Pr(),t=s(e,B),n=we(null==t?void 0:t.jwt);if(!t||n)return t;Se(void 0)}var Br=e("L",Y),Ur=Q,qr=e("U",W);function $r(){return($r=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)}function Jr(e,t){return(Jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kr(e,t){return t||(t=e.slice(0)),e.raw=t,e}function Gr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hr(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Gr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Gr(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);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(n=e[Symbol.iterator]()).next.bind(n)}var Yr=function(){return(Yr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},zr=new Map,Qr=new Map,Wr=!0,Xr=!1;function Zr(e){return e.replace(/[\s,]+/g," ").trim()}function ei(e){var t,n,r,i=Zr(e);if(!zr.has(i)){var a=$t(e,{experimentalFragmentVariables:Xr});if(!a||"Document"!==a.kind)throw new Error("Not a valid GraphQL document.");zr.set(i,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=a,n=new Set,r=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=Zr((o=e.loc).source.body.substring(o.start,o.end)),a=Qr.get(t);a&&!a.has(i)?Wr&&console.warn("Warning: fragment with name "+t+" 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"):a||Qr.set(t,a=new Set),a.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var o})),Yr(Yr({},t),{definitions:r}))))}return zr.get(i)}function ti(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach((function(t,n){r+=t&&"Document"===t.kind?t.loc.source.body:t,r+=e[n+1]})),ei(r)}var ni,ri=ti;(ni=ti||(ti={})).gql=ri,ni.resetCaches=function(){zr.clear(),Qr.clear()},ni.disableFragmentWarnings=function(){Wr=!1},ni.enableExperimentalFragmentVariables=function(){Xr=!0},ni.disableExperimentalFragmentVariables=function(){Xr=!1},ti.default=ti;var ii=ti;function ai(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}var oi=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).subject=new Hn;var i=new Hn;return r.subject.pipe(nr(200,void 0,10)).subscribe((function(e){try{if(!e.length)return Promise.resolve();for(var t,n=li(e),a=n.mergedQuery,o=n.mergedVariables,s=n.mergedQueryAddedEvents,u=Hr(n.unmergedQueryAddedEvents);!(t=u()).done;)i.next(t.value);return s.length?Promise.resolve(ai((function(){return Promise.resolve(r.superRequest(a,o)).then((function(e){pi(e,s)}))}),(function(e){if(e instanceof lr.ClientError){var t=function(){var t=e.response,n=t.data,r=t.errors;if(!n)return{v:vi(s,e)};for(var i,a=Object.keys(n),o=[].concat(s),u=function(){var t=i.value,n=void 0;t.path.find((function(r,i,s){if(a.includes(r)){var u=ci(r),c=o.findIndex((function(e){return e.id===u}));if(-1===c)return!1;a.splice(i,1),n=o.splice(c,1)[0];var l=fi(e.response.data,n);s[i]=ui(s[i],u);var f=n.query,d=n.variables,p=$r({},e.response,{errors:[t],data:l,path:s}),h=new lr.ClientError(p,{query:"string"!=typeof f?Wt(f):f,variables:d});return hi(n,h),!0}return!1}))},c=Hr(r);!(i=c()).done;)u();pi(n,o)}();if("object"==typeof t)return t.v}else vi(s,e)}))):Promise.resolve()}catch(e){return Promise.reject(e)}})),i.subscribe((function(e){try{var t=ai((function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then((function(t){di(t,e)}))}),(function(t){hi(e,t)}));return Promise.resolve(t&&t.then?t.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),r}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,Jr(t,n);var i=r.prototype;return i.superRequest=function(t,n){return e.prototype.request.call(this,t,n)},i.request=function(e,t){var n=this;return new Promise((function(r,i){var a={query:e,variables:t,id:si(),resolve:r,reject:i};n.subject.next(a)}))},r}(Nr.GraphQLClient),si=function(){return cr().replace(/[-_]/g,"")},ui=function(e,t){return e.replace("_"+t,"")},ci=function(e){var t=e.split("_");return t[t.length-1]},li=function(e){var t=[],n=[],r=e.reduce((function(e,r){var i=r.query,a=r.variables,o=r.id;try{var s="string"==typeof i?$t(i):i,u=s.definitions.find((function(e){return"FragmentDefinition"===e.kind})),c="string"==typeof i?i:Wt(i),l=/@/.test(c);if(u||l)return n.push(r),e;var f=function(e){return function(e,t){return e+"_"+t}(e,o)};return e=e.addN(s,[a],f,f),t.push(r),e}catch(t){return n.push(r),e}}),kr("BatchedQuery")),i=r.document,a=r.variables;return{mergedQuery:i&&Wt(i),mergedVariables:a,mergedQueryAddedEvents:t,unmergedQueryAddedEvents:n}},fi=function(e,t){if(!e)return e;var n=Object.keys(e),r=t.id;return n.reduce((function(t,n){var i;return n.endsWith(r)&&(t=$r({},t,((i={})[ui(n,r)]=e[n],i))),t}),{})},di=function(e,t){(0,t.resolve)(e)},pi=function(e,t){for(var n,r=Hr(t);!(n=r()).done;){var i=n.value,a=fi(e,i);i.resolve(a)}},hi=function(e,t){(0,e.reject)(t)},vi=function(e,t){for(var n,r=Hr(e);!(n=r()).done;)(0,n.value.reject)(t)},yi=e("h","sq:graphql-client"),mi=e("y",gn((function(e,t,n){return new oi(e+"/api/v1/"+t+"/graphql",{headers:{Authorization:"Bearer "+(n||"")}})})));function bi(e,t){switch(t.type){case"loading":return{data:void 0,errors:void 0,loading:!0};case"data":return{data:t.payload,errors:void 0,loading:!1};case"errors":return{data:void 0,errors:t.payload,loading:!1}}}function gi(e,t){var n,r,i,a,u,c,l=(n=Mr(),r=Ur(),i=Br(),a=mi(r,i,n),u=Pr(),null!=(c=s(u,"sq:graphql-client",{attempts:0}))?c:a),f=o(bi,t),p=f[1];return[f[0],d((function(t,n){void 0===n&&(n=!1);try{if(!l){var r=new Error("No GraphQL client found");return p({type:"errors",payload:r}),Promise.resolve(r)}return Promise.resolve(function(r,i){try{var a=(n||p({type:"loading"}),Promise.resolve(l.request(e,t)).then((function(e){return p({type:"data",payload:e}),e})))}catch(e){return i(e)}return a&&a.then?a.then(void 0,i):a}(0,(function(e){return p({type:"errors",payload:e}),e})))}catch(e){return Promise.reject(e)}}),[l,e,p])]}var Ei,wi={loading:!1,data:void 0,errors:void 0};function _i(e){var t=gi(e,wi);return[t[1],t[0]]}var Si,Ti=ii(Ei||(Ei=Kr(["\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 Oi(){var e=_i(Ti),t=e[0],n=e[1];return[function(e){try{return Promise.resolve(t(e)).then((function(e){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithEmailAndPassword){var t=e.authenticateManagedIdentityWithEmailAndPassword.token,n=b(t).user;Se({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:e.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.authenticateManagedIdentityWithEmailAndPassword.sessionData}})}return e}))}catch(e){return Promise.reject(e)}},{loading:n.loading,data:n.data,errors:n.errors}]}var Ii,xi=ii(Si||(Si=Kr(["\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 Ai(){var e=_i(xi),t=e[0],n=e[1];return[function(e){try{return Promise.resolve(t(e)).then((function(e){if(!(e instanceof Error)&&e.registerManagedIdentityWithEmailAndPassword){var t=e.registerManagedIdentityWithEmailAndPassword.token,n=b(t).user;Se({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.registerManagedIdentityWithEmailAndPassword.email,emailVerified:e.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:e.registerManagedIdentityWithEmailAndPassword.sessionData}})}return e}))}catch(e){return Promise.reject(e)}},{loading:n.loading,data:n.data,errors:n.errors}]}var Ni,Di=ii(Ii||(Ii=Kr(["\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 Ci(){var e=_i(Di),t=e[0],n=e[1],r=n.loading,i=n.data,a=n.errors,o=c(null),s=o[1];return[function(e){try{return Promise.resolve(t(e)).then((function(e){if(e instanceof Error)return e;var t=e.submitForm.results.find((function(e){return"identity"===e.formHandler.namespace}));if(t&&t.result.results.length){var n=t.result.results[0];if(n.success){s(null);var r=n.data.token,i=b(r).user;Se({jwt:r,id:i.id,accountId:i.accountId,managedIdentity:{email:n.data.email,emailVerified:n.data.emailVerified,sessionData:n.data.sessionData}})}else s(n.message)}return e}))}catch(e){return Promise.reject(e)}},{loading:r,data:i,errors:a,formError:o[0]}]}var ki,Fi=ii(Ni||(Ni=Kr(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function Pi(){var e=_i(Fi),t=e[1];return[e[0],{loading:t.loading,data:t.data,errors:t.errors}]}var ji,Ri=ii(ki||(ki=Kr(["\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 Li(){var e=_i(Ri),t=e[0],n=e[1];return[function(e){try{return Promise.resolve(t(e)).then((function(e){if(!(e instanceof Error)&&e.resetManagedIdentityPassword){var t=e.resetManagedIdentityPassword.token,n=b(t).user;Se({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.resetManagedIdentityPassword.email,emailVerified:e.resetManagedIdentityPassword.emailVerified,sessionData:e.resetManagedIdentityPassword.sessionData}})}return e}))}catch(e){return Promise.reject(e)}},{loading:n.loading,data:n.data,errors:n.errors}]}var Mi=ii(ji||(ji=Kr(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Vi(){return _i(Mi)}function Bi(){var e=Pr();return{refresh:d((function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}))}),[e])}}function Ui(e){var t=e.skip,n=void 0!==t&&t,r=e.update,i=e.variables;u((function(){var e=function(e){!n&&r(i,!0)};return document.addEventListener("sq:refresh",e),function(){return document.removeEventListener("sq:refresh",e)}}),function(e){var t=l(e),n=l(0);return T(e,t.current)||(t.current=e,n.current+=1),f((function(){return t.current}),[n.current])}([i,r,n]))}var qi,$i={loading:!1,data:void 0,errors:void 0},Ji=Symbol();function Ki(e){var t=gi(e,$i),n=t[0],r=t[1],i=l(Ji);Ui({skip:i.current===Ji,update:r,variables:i.current});var a=d((function(e){return i.current=e,r(e)}),[r]);return[r,$r({},n,{refetch:a})]}var Gi,Hi=ii(qi||(qi=Kr(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function Yi(){var e=Vr(),t=Ki(Hi),n=t[0],r=t[1],i=r.refetch,a=function(t){t instanceof Error||!t.managedIdentitySession||Se($r({},e,{managedIdentity:t.managedIdentitySession}))};return[function(){try{return Promise.resolve(n({})).then((function(e){return a(e),e}))}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors,refetch:function(){try{return Promise.resolve(i()).then((function(e){return a(e),e}))}catch(e){return Promise.reject(e)}}}]}var zi,Qi=ii(Gi||(Gi=Kr(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Wi(){var e=Yi()[0],t=_i(Qi),n=t[0],r=t[1];return[function(t){try{return Promise.resolve(n(t)).then((function(t){var n=function(){if(!(t instanceof Error)&&t.verifyManagedIdentityEmail.success)return Promise.resolve(e()).then((function(){}))}();return n&&n.then?n.then((function(){return t})):t}))}catch(t){return Promise.reject(t)}},{loading:r.loading,data:r.data,errors:r.errors}]}var Xi,Zi=ii(zi||(zi=Kr(["\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 ea(){return _i(Zi)}var ta=ii(Xi||(Xi=Kr(["\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 na(){return _i(ta)}function ra(e,t){var n=l();return n.current&&T(t,n.current.key)||(n.current={key:t,value:e()}),n.current.value}function ia(){return o((function(e){return e+1}),0)}function aa(e){for(var t,n=Hr(Object.getOwnPropertyNames(e));!(t=n()).done;){var r=e[t.value];r&&"object"==typeof r&&aa(r)}return Object.freeze(e)}var oa={loading:!0,data:void 0,errors:void 0};function sa(e,t,n){var r=gi(e,oa),i=r[0],a=r[1],o=ia(),s=o[1];return ra((function(){!n&&a(t)}),[e,t,a,o[0],n]),Ui({skip:n,update:a,variables:t}),aa($r({},i,{refetch:s}))}function ua(){var e=ia()[1];return u((function(){return se.listen((function(){e()}))}),[]),se.location}var ca,la=e("f",se);function fa(e){var t=c({limit:e.limit,offset:e.offset}),n=t[0],r=t[1],i=n.offset,a=n.limit,o=function(e,t){return e*t},s=function(e,t){return Math.ceil(e/t)||0};return{limit:a,setLimit:function(e){var t=s(i,e),a=o(e,t);r($r({},n,{limit:e,offset:a}))},offset:i,setCurrentPage:function(e){var t=o(e,a);r((function(e){return $r({},e,{offset:t})}))},calculatePagination:function(e,t){var n=s(i,a),r=function(e,t){return Math.ceil(e/t)||0}(t,a),o=0===e?"0":e>1?i+1+"-"+(i+e):""+(i+1);return{currentPage:n,pageCount:r,rangeOnPage:o,pageProgress:o+" of "+t}}}}function da(e,t,n,r,i){var a;void 0===r&&(r={}),void 0===i&&(i=!1);var o=fa(n),s=o.limit,u=o.setLimit,c=o.setCurrentPage,l=o.calculatePagination,f=sa(e,$r({limit:s,offset:o.offset},r),i),d=f.loading,p=f.errors,h=f.refetch,v=t(f.data),y=l((null==v||null==(a=v.data)?void 0:a.length)||0,(null==v?void 0:v.totalCount)||0);return{envelope:v,states:{errors:p,loading:d,limit:s,currentPage:y.currentPage,pageCount:y.pageCount,pageProgress:y.pageProgress},callbacks:{refetch:h,setLimit:u,setCurrentPage:c}}}var pa=Nr.gql(ca||(ca=Kr(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var ha=1e3,va=60*ha,ya=60*va,ma=24*ya,ba=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*ma;case"hours":case"hour":case"hrs":case"hr":case"h":return n*ya;case"minutes":case"minute":case"mins":case"min":case"m":return n*va;case"seconds":case"second":case"secs":case"sec":case"s":return n*ha;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>=ma?ga(e,t,ma,"day"):t>=ya?ga(e,t,ya,"hour"):t>=va?ga(e,t,va,"minute"):t>=ha?ga(e,t,ha,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=ma?Math.round(e/ma)+"d":t>=ya?Math.round(e/ya)+"h":t>=va?Math.round(e/va)+"m":t>=ha?Math.round(e/ha)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function ga(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}var Ea,wa,_a,Sa,Ta=(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;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var 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=function(){var e=!1;return function(){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||function(){},e.exports=function(e){function t(e){var r,i=null;function a(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}if(!a.enabled)return;var i=a,o=Number(new Date);i.diff=o-(r||o),i.prev=r,i.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");var s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return"%";s++;var a=t.formatters[r];return"function"==typeof a&&(n=a.call(i,e[s]),e.splice(s,1),s--),n})),t.formatArgs.call(i,e),(i.log||t.log).apply(i,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:function(){return null===i?t.enabled(e):i},set:function(e){i=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,n){var 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(){var e=__spreadArrays(t.names.map(r),t.skips.map(r).map((function(e){return"-"+e}))).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;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;var 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=ba,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((function(n){t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){var n=0;for(var r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}(t);var n=e.exports.formatters;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(Ea={exports:{}},Ea.exports),Ea.exports)("sq:useForm"),Oa=Nr.gql(wa||(wa=Kr(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),Ia=Nr.gql(_a||(_a=Kr(["\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"]))),xa=Nr.gql(Sa||(Sa=Kr(["\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"])))}}}));