@saasquatch/mint-components 1.6.8-0 → 1.6.8-2

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 (488) hide show
  1. package/dist/cjs/{GenericTableView-9271483b.js → GenericTableView-380b83e2.js} +7 -2
  2. package/dist/cjs/{ShadowViewAddon-2d3ef919.js → ShadowViewAddon-7a412c0b.js} +139 -57
  3. package/dist/cjs/{sqm-passwordless-registration-view-60f25a41.js → email-registration-view-a483578e.js} +7 -6
  4. package/dist/cjs/{global-3ebda209.js → global-ea52ea30.js} +10 -161
  5. package/dist/cjs/{index.module-30d74cb5.js → index.module-bd6e817a.js} +36 -23
  6. package/dist/cjs/loader.cjs.js +5 -5
  7. package/dist/cjs/{luxon-1b6e7276.js → luxon-53e983a6.js} +1 -1
  8. package/dist/cjs/mint-components.cjs.js +5 -5
  9. package/dist/cjs/{re-render-6963789e.js → re-render-1d12dfdd.js} +2 -2
  10. package/dist/cjs/{sqm-asset-card-view-59c39ed2.js → sqm-asset-card-view-79099616.js} +2 -2
  11. package/dist/cjs/sqm-asset-card.cjs.entry.js +5 -5
  12. package/dist/cjs/{sqm-big-stat_36.cjs.entry.js → sqm-big-stat_37.cjs.entry.js} +191 -83
  13. package/dist/cjs/sqm-empty_5.cjs.entry.js +7 -7
  14. package/dist/cjs/sqm-form-message.cjs.entry.js +2 -2
  15. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +4 -4
  16. package/dist/cjs/sqm-header-logo.cjs.entry.js +3 -3
  17. package/dist/cjs/{sqm-hero-view-201fca7e.js → sqm-hero-view-ddd1ef43.js} +6 -6
  18. package/dist/cjs/sqm-hero.cjs.entry.js +4 -4
  19. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +9 -10
  20. package/dist/cjs/sqm-link-button-view-8b446852.js +27 -0
  21. package/dist/cjs/sqm-link-button.cjs.entry.js +23 -0
  22. package/dist/cjs/{sqm-navigation-sidebar-item-view-9bba2bad.js → sqm-navigation-sidebar-item-view-91d9d7b5.js} +3 -3
  23. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +5 -5
  24. package/dist/cjs/{sqm-navigation-sidebar-view-2da83d3b.js → sqm-navigation-sidebar-view-b830e8d8.js} +2 -2
  25. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -5
  26. package/dist/cjs/sqm-password-field.cjs.entry.js +6 -6
  27. package/dist/cjs/sqm-passwordless-registration.cjs.entry.js +19 -54
  28. package/dist/cjs/sqm-popup-container.cjs.entry.js +6 -6
  29. package/dist/cjs/{sqm-portal-container-view-ec1be9eb.js → sqm-portal-container-view-6accb54a.js} +2 -2
  30. package/dist/cjs/{sqm-portal-email-verification-view-e834e79c.js → sqm-portal-email-verification-view-7e795920.js} +2 -2
  31. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +7 -7
  32. package/dist/cjs/{sqm-portal-forgot-password-view-a3573ade.js → sqm-portal-forgot-password-view-f73bb724.js} +2 -2
  33. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +7 -7
  34. package/dist/cjs/sqm-portal-logout.cjs.entry.js +4 -4
  35. package/dist/cjs/{sqm-portal-profile-view-c143c506.js → sqm-portal-profile-view-7c290eed.js} +3 -3
  36. package/dist/cjs/sqm-portal-profile.cjs.entry.js +12 -13
  37. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +4 -4
  38. package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +9 -10
  39. package/dist/cjs/{sqm-portal-reset-password-view-a5d48909.js → sqm-portal-reset-password-view-e182df83.js} +1 -1
  40. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +7 -7
  41. package/dist/cjs/{sqm-portal-verify-email-view-9657cc0c.js → sqm-portal-verify-email-view-fd739843.js} +2 -2
  42. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +6 -6
  43. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +25 -26
  44. package/dist/cjs/sqm-referred-registration.cjs.entry.js +83 -0
  45. package/dist/cjs/sqm-rewards-table-customer-note-cell.cjs.entry.js +3 -3
  46. package/dist/cjs/sqm-rewards-table-customer-note-column.cjs.entry.js +5 -5
  47. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +60 -61
  48. package/dist/cjs/sqm-stencilbook.cjs.entry.js +4241 -4109
  49. package/dist/cjs/sqm-tab.cjs.entry.js +5 -5
  50. package/dist/cjs/sqm-tabs.cjs.entry.js +6 -6
  51. package/dist/cjs/{sqm-text-span-view-1acdf7e9.js → sqm-text-span-view-3c734dbb.js} +1 -1
  52. package/dist/cjs/sqm-text-span.cjs.entry.js +3 -3
  53. package/dist/cjs/sqm-user-identifier-view-69b42b84.js +28 -0
  54. package/dist/cjs/sqm-user-identifier.cjs.entry.js +11 -38
  55. package/dist/cjs/{stencil-hooks.module-5344b631.js → stencil-hooks.module-e4bf7f2d.js} +4 -1
  56. package/dist/cjs/{use-callback-05714e23.js → use-callback-86e9ac75.js} +1 -1
  57. package/dist/cjs/{useChildElements-161457a6.js → useChildElements-0a6ccd0f.js} +2 -2
  58. package/dist/cjs/usePasswordlessRegistration-9105faa4.js +47 -0
  59. package/dist/cjs/{useReferralTable-e933351b.js → useReferralTable-259fc04d.js} +13 -14
  60. package/dist/cjs/{useRegistrationFormState-5f21a453.js → useRegistrationFormState-ed30c0e6.js} +2 -2
  61. package/dist/collection/collection-manifest.json +2 -0
  62. package/dist/collection/components/sqm-asset-card/sqm-asset-card-view.js +2 -2
  63. package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field-view.js +1 -1
  64. package/dist/collection/components/sqm-coupon-code/CouponCode.stories.js +10 -0
  65. package/dist/collection/components/sqm-coupon-code/sqm-coupon-code.js +57 -1
  66. package/dist/collection/components/sqm-divided-layout/sqm-divided-layout-view.js +1 -1
  67. package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field-view.js +1 -1
  68. package/dist/collection/components/sqm-edit-profile/sqm-edit-profile-view.js +4 -4
  69. package/dist/collection/components/sqm-empty/sqm-empty-view.js +1 -1
  70. package/dist/collection/components/sqm-header-logo/sqm-header-logo.js +1 -1
  71. package/dist/collection/components/sqm-hero/sqm-hero-view.js +4 -4
  72. package/dist/collection/components/sqm-hero-image/sqm-hero-image-view.js +7 -7
  73. package/dist/collection/components/sqm-image/sqm-image-view.js +1 -1
  74. package/dist/collection/components/sqm-input-field/sqm-input-field-view.js +1 -1
  75. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard-view.js +2 -2
  76. package/dist/collection/components/sqm-link-button/LinkButton.stories.js +20 -0
  77. package/dist/collection/components/sqm-link-button/sqm-link-button-view.js +22 -0
  78. package/dist/collection/components/sqm-link-button/sqm-link-button.js +68 -0
  79. package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar-view.js +2 -2
  80. package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item-view.js +2 -2
  81. package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +1 -1
  82. package/dist/collection/components/sqm-passwordless-registration/sqm-passwordless-registration.js +17 -37
  83. package/dist/collection/components/sqm-passwordless-registration/usePasswordlessRegistration.js +6 -2
  84. package/dist/collection/components/sqm-popup-container/sqm-popup-container-view.js +2 -2
  85. package/dist/collection/components/sqm-portal-footer/sqm-portal-footer-view.js +1 -1
  86. package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password-view.js +1 -1
  87. package/dist/collection/components/sqm-portal-frame/sqm-portal-frame-view.js +3 -3
  88. package/dist/collection/components/sqm-portal-login/sqm-portal-login-view.js +2 -2
  89. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +1 -1
  90. package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +1 -1
  91. package/dist/collection/components/sqm-portal-registration-form/sqm-portal-registration-form-view.js +1 -1
  92. package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email-view.js +1 -1
  93. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +3 -3
  94. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +4 -4
  95. package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +12 -0
  96. package/dist/collection/components/sqm-referral-card/sqm-referral-card-view.js +17 -7
  97. package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +3 -1
  98. package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +7 -7
  99. package/dist/collection/components/sqm-referred-registration/sqm-referred-registration.js +241 -0
  100. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +6 -6
  101. package/dist/collection/components/sqm-share-code/ShareCode.stories.js +18 -3
  102. package/dist/collection/components/sqm-share-code/sqm-share-code.js +57 -1
  103. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +15 -1
  104. package/dist/collection/components/sqm-share-link/sqm-share-link.js +57 -1
  105. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +3 -3
  106. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +6 -2
  107. package/dist/collection/components/sqm-text-span/sqm-text-span-view.js +1 -1
  108. package/dist/collection/components/sqm-timeline/sqm-timeline-entry-view.js +1 -1
  109. package/dist/collection/components/sqm-titled-section/sqm-portal-section-view.js +2 -2
  110. package/dist/collection/components/sqm-user-identifier/UserIdentifier.stories.js +9 -18
  111. package/dist/collection/components/sqm-user-identifier/sqm-user-identifier-view.js +17 -26
  112. package/dist/collection/components/sqm-user-identifier/sqm-user-identifier.js +31 -61
  113. package/dist/collection/components/views/EmailRegistration.stories.js +31 -0
  114. package/dist/collection/components/views/copy-text-view.js +8 -1
  115. package/dist/collection/components/{sqm-passwordless-registration/sqm-passwordless-registration-view.js → views/email-registration-view.js} +6 -5
  116. package/dist/collection/stories/PortalTemplates.stories.js +1 -1
  117. package/dist/collection/stories/Widget.stories.js +21 -0
  118. package/dist/collection/tables/GenericTableView.js +7 -2
  119. package/dist/esm/{GenericTableView-ce26115f.js → GenericTableView-266126f9.js} +7 -2
  120. package/dist/esm/{ShadowViewAddon-e57c3d40.js → ShadowViewAddon-ca765d5e.js} +121 -41
  121. package/dist/esm/{sqm-passwordless-registration-view-dcd145d6.js → email-registration-view-0ed79e24.js} +7 -6
  122. package/dist/esm/{global-4bd89b1d.js → global-0f137e54.js} +10 -161
  123. package/dist/esm/{index.module-5043fba6.js → index.module-787e5d35.js} +29 -19
  124. package/dist/esm/loader.js +5 -5
  125. package/dist/esm/{luxon-dccb73bb.js → luxon-1e38d7f1.js} +1 -1
  126. package/dist/esm/mint-components.js +5 -5
  127. package/dist/esm/{re-render-a3c1732f.js → re-render-54bb3e32.js} +2 -2
  128. package/dist/esm/{sqm-asset-card-view-b0f8ef8e.js → sqm-asset-card-view-b2ac5a23.js} +2 -2
  129. package/dist/esm/sqm-asset-card.entry.js +4 -4
  130. package/dist/esm/{sqm-big-stat_36.entry.js → sqm-big-stat_37.entry.js} +144 -37
  131. package/dist/esm/sqm-empty_5.entry.js +4 -4
  132. package/dist/esm/sqm-form-message.entry.js +1 -1
  133. package/dist/esm/sqm-graphql-client-provider.entry.js +3 -3
  134. package/dist/esm/sqm-header-logo.entry.js +2 -2
  135. package/dist/esm/{sqm-hero-view-27de6b06.js → sqm-hero-view-875c927d.js} +6 -6
  136. package/dist/esm/sqm-hero.entry.js +3 -3
  137. package/dist/esm/sqm-leaderboard-rank.entry.js +4 -5
  138. package/dist/esm/sqm-link-button-view-8d9ad936.js +25 -0
  139. package/dist/esm/sqm-link-button.entry.js +19 -0
  140. package/dist/esm/{sqm-navigation-sidebar-item-view-d63373b2.js → sqm-navigation-sidebar-item-view-ee402e54.js} +3 -3
  141. package/dist/esm/sqm-navigation-sidebar-item.entry.js +4 -4
  142. package/dist/esm/{sqm-navigation-sidebar-view-74ad47d4.js → sqm-navigation-sidebar-view-feb719ce.js} +2 -2
  143. package/dist/esm/sqm-navigation-sidebar.entry.js +4 -4
  144. package/dist/esm/sqm-password-field.entry.js +5 -5
  145. package/dist/esm/sqm-passwordless-registration.entry.js +17 -52
  146. package/dist/esm/sqm-popup-container.entry.js +5 -5
  147. package/dist/esm/{sqm-portal-container-view-06bce80d.js → sqm-portal-container-view-83b417f0.js} +2 -2
  148. package/dist/esm/{sqm-portal-email-verification-view-9c993283.js → sqm-portal-email-verification-view-727bbfd9.js} +2 -2
  149. package/dist/esm/sqm-portal-email-verification.entry.js +6 -6
  150. package/dist/esm/{sqm-portal-forgot-password-view-37bafb1c.js → sqm-portal-forgot-password-view-9970dee2.js} +2 -2
  151. package/dist/esm/sqm-portal-forgot-password.entry.js +6 -6
  152. package/dist/esm/sqm-portal-logout.entry.js +3 -3
  153. package/dist/esm/{sqm-portal-profile-view-0b4315c2.js → sqm-portal-profile-view-1f2b6063.js} +3 -3
  154. package/dist/esm/sqm-portal-profile.entry.js +6 -7
  155. package/dist/esm/sqm-portal-protected-route.entry.js +3 -3
  156. package/dist/esm/sqm-portal-registration-form.entry.js +7 -8
  157. package/dist/esm/{sqm-portal-reset-password-view-2b9da683.js → sqm-portal-reset-password-view-1f0f3bf8.js} +1 -1
  158. package/dist/esm/sqm-portal-reset-password.entry.js +6 -6
  159. package/dist/esm/{sqm-portal-verify-email-view-e3e39501.js → sqm-portal-verify-email-view-8d453021.js} +2 -2
  160. package/dist/esm/sqm-portal-verify-email.entry.js +5 -5
  161. package/dist/esm/sqm-referral-table_11.entry.js +17 -18
  162. package/dist/esm/sqm-referred-registration.entry.js +79 -0
  163. package/dist/esm/sqm-rewards-table-customer-note-cell.entry.js +2 -2
  164. package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +4 -4
  165. package/dist/esm/sqm-rewards-table_9.entry.js +9 -10
  166. package/dist/esm/sqm-stencilbook.entry.js +4231 -4099
  167. package/dist/esm/sqm-tab.entry.js +4 -4
  168. package/dist/esm/sqm-tabs.entry.js +5 -5
  169. package/dist/esm/{sqm-text-span-view-b03a3c6d.js → sqm-text-span-view-2f7d6d14.js} +1 -1
  170. package/dist/esm/sqm-text-span.entry.js +2 -2
  171. package/dist/esm/sqm-user-identifier-view-379c773f.js +26 -0
  172. package/dist/esm/sqm-user-identifier.entry.js +12 -39
  173. package/dist/esm/{stencil-hooks.module-6bde7453.js → stencil-hooks.module-b48b45ec.js} +1 -1
  174. package/dist/esm/{use-callback-c5579ecb.js → use-callback-051c06c6.js} +1 -1
  175. package/dist/esm/{useChildElements-a68649fd.js → useChildElements-0124b1a9.js} +2 -2
  176. package/dist/esm/usePasswordlessRegistration-2381025b.js +45 -0
  177. package/dist/esm/{useReferralTable-6c6c06cb.js → useReferralTable-3024490c.js} +5 -6
  178. package/dist/esm/{useRegistrationFormState-97f39def.js → useRegistrationFormState-3c2c2f1b.js} +2 -2
  179. package/dist/esm-es5/GenericTableView-266126f9.js +1 -0
  180. package/dist/esm-es5/ShadowViewAddon-ca765d5e.js +1 -0
  181. package/dist/esm-es5/email-registration-view-0ed79e24.js +1 -0
  182. package/dist/esm-es5/global-0f137e54.js +285 -0
  183. package/dist/esm-es5/index.module-787e5d35.js +1 -0
  184. package/dist/esm-es5/loader.js +1 -1
  185. package/dist/esm-es5/{luxon-dccb73bb.js → luxon-1e38d7f1.js} +1 -1
  186. package/dist/esm-es5/mint-components.js +1 -1
  187. package/dist/esm-es5/{re-render-a3c1732f.js → re-render-54bb3e32.js} +1 -1
  188. package/dist/esm-es5/sqm-asset-card-view-b2ac5a23.js +1 -0
  189. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  190. package/dist/esm-es5/sqm-big-stat_37.entry.js +1 -0
  191. package/dist/esm-es5/sqm-empty_5.entry.js +1 -1
  192. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  193. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  194. package/dist/esm-es5/sqm-header-logo.entry.js +1 -1
  195. package/dist/esm-es5/{sqm-hero-view-27de6b06.js → sqm-hero-view-875c927d.js} +1 -1
  196. package/dist/esm-es5/sqm-hero.entry.js +1 -1
  197. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  198. package/dist/esm-es5/sqm-link-button-view-8d9ad936.js +1 -0
  199. package/dist/esm-es5/sqm-link-button.entry.js +1 -0
  200. package/dist/esm-es5/sqm-navigation-sidebar-item-view-ee402e54.js +1 -0
  201. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  202. package/dist/esm-es5/{sqm-navigation-sidebar-view-74ad47d4.js → sqm-navigation-sidebar-view-feb719ce.js} +1 -1
  203. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  204. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  205. package/dist/esm-es5/sqm-passwordless-registration.entry.js +1 -1
  206. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  207. package/dist/esm-es5/sqm-portal-container-view-83b417f0.js +1 -0
  208. package/dist/esm-es5/{sqm-portal-email-verification-view-9c993283.js → sqm-portal-email-verification-view-727bbfd9.js} +1 -1
  209. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  210. package/dist/esm-es5/sqm-portal-forgot-password-view-9970dee2.js +1 -0
  211. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  212. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  213. package/dist/esm-es5/sqm-portal-profile-view-1f2b6063.js +1 -0
  214. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  215. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  216. package/dist/esm-es5/sqm-portal-registration-form.entry.js +1 -1
  217. package/dist/esm-es5/{sqm-portal-reset-password-view-2b9da683.js → sqm-portal-reset-password-view-1f0f3bf8.js} +1 -1
  218. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  219. package/dist/esm-es5/sqm-portal-verify-email-view-8d453021.js +1 -0
  220. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  221. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  222. package/dist/esm-es5/sqm-referred-registration.entry.js +1 -0
  223. package/dist/esm-es5/sqm-rewards-table-customer-note-cell.entry.js +1 -1
  224. package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
  225. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  226. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  227. package/dist/esm-es5/sqm-tab.entry.js +1 -1
  228. package/dist/esm-es5/sqm-tabs.entry.js +1 -1
  229. package/dist/esm-es5/{sqm-text-span-view-b03a3c6d.js → sqm-text-span-view-2f7d6d14.js} +1 -1
  230. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  231. package/dist/esm-es5/sqm-user-identifier-view-379c773f.js +1 -0
  232. package/dist/esm-es5/sqm-user-identifier.entry.js +1 -1
  233. package/dist/esm-es5/{stencil-hooks.module-6bde7453.js → stencil-hooks.module-b48b45ec.js} +1 -1
  234. package/dist/esm-es5/use-callback-051c06c6.js +1 -0
  235. package/dist/esm-es5/{useChildElements-a68649fd.js → useChildElements-0124b1a9.js} +1 -1
  236. package/dist/esm-es5/usePasswordlessRegistration-2381025b.js +1 -0
  237. package/dist/esm-es5/useReferralTable-3024490c.js +1 -0
  238. package/dist/esm-es5/{useRegistrationFormState-97f39def.js → useRegistrationFormState-3c2c2f1b.js} +1 -1
  239. package/dist/mint-components/mint-components.esm.js +1 -1
  240. package/dist/mint-components/mint-components.js +1 -1
  241. package/dist/mint-components/{p-9dce9be7.system.entry.js → p-01bd9ae1.system.entry.js} +1 -1
  242. package/dist/mint-components/p-03ad8655.js +1 -0
  243. package/dist/mint-components/p-05abfc50.system.entry.js +1 -0
  244. package/dist/mint-components/p-085290c7.system.entry.js +1 -0
  245. package/dist/mint-components/p-0eddbe09.entry.js +1 -0
  246. package/dist/mint-components/p-1069832a.entry.js +1 -0
  247. package/dist/mint-components/{p-fbc2343f.system.js → p-15cfd2cf.system.js} +22 -22
  248. package/dist/mint-components/p-19cecf43.entry.js +1 -0
  249. package/dist/mint-components/p-1b9c1909.entry.js +1 -0
  250. package/dist/mint-components/p-1bf9875f.entry.js +1 -0
  251. package/dist/mint-components/p-1f54fd38.system.js +1 -0
  252. package/dist/mint-components/{p-d566db0b.js → p-25254dd1.js} +1 -1
  253. package/dist/mint-components/p-25ce265e.entry.js +13 -0
  254. package/dist/mint-components/p-26117a7d.system.js +1 -0
  255. package/dist/mint-components/p-27c9d3be.system.entry.js +1 -0
  256. package/dist/mint-components/p-2a7686a6.system.entry.js +1 -0
  257. package/dist/mint-components/p-2b9ae018.system.js +1 -0
  258. package/dist/mint-components/p-30ec7d38.entry.js +1 -0
  259. package/dist/mint-components/p-3282f52a.entry.js +1 -0
  260. package/dist/mint-components/p-32b28506.system.entry.js +1 -0
  261. package/dist/mint-components/{p-2f8ddf17.system.entry.js → p-332448db.system.entry.js} +1 -1
  262. package/dist/mint-components/p-3552b5c5.entry.js +1 -0
  263. package/dist/mint-components/p-35b9bb54.entry.js +1 -0
  264. package/dist/mint-components/{p-21bf8abc.entry.js → p-36b5b564.entry.js} +1 -1
  265. package/dist/mint-components/p-36c08962.js +1 -0
  266. package/dist/mint-components/p-3855a6e0.entry.js +1 -0
  267. package/dist/mint-components/p-39ac088a.entry.js +13 -0
  268. package/dist/mint-components/{p-ce7fef38.system.js → p-3a6a59f2.system.js} +1 -1
  269. package/dist/mint-components/{p-f628a8cd.entry.js → p-3ad5761c.entry.js} +1 -1
  270. package/dist/mint-components/{p-850c27d0.entry.js → p-3ad8c79f.entry.js} +1 -1
  271. package/dist/mint-components/{p-0a15b302.system.js → p-3c189cea.system.js} +1 -1
  272. package/dist/mint-components/{p-a853bf1c.system.entry.js → p-3cbdb360.system.entry.js} +1 -1
  273. package/dist/mint-components/{p-b0f1dfad.entry.js → p-3f075d21.entry.js} +1 -1
  274. package/dist/mint-components/p-4336876b.js +1 -0
  275. package/dist/mint-components/p-4359f515.system.js +1 -0
  276. package/dist/mint-components/p-52468c89.system.js +1 -0
  277. package/dist/mint-components/p-5333d935.entry.js +1 -0
  278. package/dist/mint-components/p-5377e1c5.system.entry.js +1 -0
  279. package/dist/mint-components/p-545e2df1.entry.js +1 -0
  280. package/dist/mint-components/{p-f572337b.system.js → p-555123c5.system.js} +1 -1
  281. package/dist/mint-components/p-56306cfd.system.js +1 -0
  282. package/dist/mint-components/p-56494499.js +1 -0
  283. package/dist/mint-components/p-5938e109.js +1 -0
  284. package/dist/mint-components/p-598f6e6e.entry.js +171 -0
  285. package/dist/mint-components/{p-b6de33e5.system.entry.js → p-5a8866c0.system.entry.js} +1 -1
  286. package/dist/mint-components/p-5deb8687.system.entry.js +1 -0
  287. package/dist/mint-components/{p-94cf16d4.entry.js → p-65aac49a.entry.js} +1 -1
  288. package/dist/mint-components/p-6868f6a3.system.entry.js +1 -0
  289. package/dist/mint-components/{p-acc9e541.js → p-695d65b1.js} +1 -1
  290. package/dist/mint-components/p-6c69d3d5.entry.js +1 -0
  291. package/dist/mint-components/{p-0a4c867d.system.entry.js → p-6d7b7618.system.entry.js} +1 -1
  292. package/dist/mint-components/p-70d33b67.system.js +1 -0
  293. package/dist/mint-components/p-71fe4061.js +1 -0
  294. package/dist/mint-components/p-73bca9e7.js +1 -0
  295. package/dist/mint-components/p-76c339cd.system.js +1 -0
  296. package/dist/mint-components/p-788fd322.system.js +1 -0
  297. package/dist/mint-components/p-7ed639bc.js +1 -0
  298. package/dist/mint-components/p-7ef716a7.js +1 -0
  299. package/dist/mint-components/p-82f341ec.system.entry.js +1 -0
  300. package/dist/mint-components/{p-ad694844.system.entry.js → p-838e5560.system.entry.js} +1 -1
  301. package/dist/mint-components/p-83927707.js +1 -0
  302. package/dist/mint-components/p-883169ad.entry.js +1 -0
  303. package/dist/mint-components/p-8caf0121.system.entry.js +1 -0
  304. package/dist/mint-components/p-8eb9298d.js +268 -0
  305. package/dist/mint-components/p-911f8910.system.js +1 -0
  306. package/dist/mint-components/p-9165844e.system.js +1 -0
  307. package/dist/mint-components/p-91b1dd5f.system.entry.js +1 -0
  308. package/dist/mint-components/{p-4fc59b30.system.entry.js → p-92002bbb.system.entry.js} +1 -1
  309. package/dist/mint-components/p-95cc44c3.system.js +1 -0
  310. package/dist/mint-components/{p-e9489bfb.system.js → p-96e98d06.system.js} +1 -1
  311. package/dist/mint-components/p-97763c36.system.js +1 -0
  312. package/dist/mint-components/p-9957d667.system.js +1 -0
  313. package/dist/mint-components/p-9c0678aa.system.entry.js +1 -0
  314. package/dist/mint-components/p-9cbc79f6.system.entry.js +1 -0
  315. package/dist/mint-components/p-9e8ea69d.system.js +1 -0
  316. package/dist/mint-components/p-a2f7a2f3.system.js +1 -0
  317. package/dist/mint-components/{p-22176b92.js → p-a90b4c3f.js} +1 -1
  318. package/dist/mint-components/p-a9467e3e.system.entry.js +1 -0
  319. package/dist/mint-components/p-aaff2c88.system.entry.js +1 -0
  320. package/dist/mint-components/p-ae00aec4.system.js +1 -0
  321. package/dist/mint-components/{p-2d728c9b.entry.js → p-af00c9b0.entry.js} +1 -1
  322. package/dist/mint-components/p-b039fb72.entry.js +1 -0
  323. package/dist/mint-components/{p-0e344e4c.system.entry.js → p-b0ad1b74.system.entry.js} +1 -1
  324. package/dist/mint-components/{p-6b9e32ca.system.js → p-b79c0e38.system.js} +2 -2
  325. package/dist/mint-components/{p-8ddb2c01.system.entry.js → p-b91658ca.system.entry.js} +1 -1
  326. package/dist/mint-components/p-ba7feba5.js +1 -0
  327. package/dist/mint-components/{p-10122db1.system.js → p-bb6f60a6.system.js} +1 -1
  328. package/dist/mint-components/{p-3aa51afb.js → p-bc6255a0.js} +3 -3
  329. package/dist/mint-components/{p-cd745ffb.system.js → p-bd63ef52.system.js} +1 -1
  330. package/dist/mint-components/p-bfdbe27c.js +1 -0
  331. package/dist/mint-components/p-c0685957.js +1 -0
  332. package/dist/mint-components/p-cce7f6ea.js +1 -0
  333. package/dist/mint-components/{p-b0601c94.entry.js → p-cfb400c5.entry.js} +1 -1
  334. package/dist/mint-components/{p-938ff1fc.js → p-d27b326c.js} +1 -1
  335. package/dist/mint-components/{p-2c8645c6.system.entry.js → p-d483347f.system.entry.js} +1 -1
  336. package/dist/mint-components/{p-293d8305.entry.js → p-d949b099.entry.js} +2 -2
  337. package/dist/mint-components/{p-26131a87.system.entry.js → p-d9643307.system.entry.js} +1 -1
  338. package/dist/mint-components/p-da70e75d.entry.js +1 -0
  339. package/dist/mint-components/p-db297fa3.system.entry.js +1 -0
  340. package/dist/mint-components/{p-54d0019e.entry.js → p-de9716b9.entry.js} +3 -3
  341. package/dist/mint-components/p-dffe8bea.entry.js +1 -0
  342. package/dist/mint-components/p-e0167571.js +1 -0
  343. package/dist/mint-components/p-e41a853f.system.entry.js +1 -0
  344. package/dist/mint-components/p-e74525d9.system.entry.js +1 -0
  345. package/dist/mint-components/p-e869887b.system.entry.js +1 -0
  346. package/dist/mint-components/{p-5bba84a6.system.js → p-e94f28d3.system.js} +1 -1
  347. package/dist/mint-components/p-ea76c3bc.system.entry.js +1 -0
  348. package/dist/mint-components/{p-4e38410c.js → p-eb3278aa.js} +153 -153
  349. package/dist/mint-components/{p-c5966d38.js → p-ed801cb7.js} +1 -1
  350. package/dist/mint-components/p-f63ea5f4.entry.js +1 -0
  351. package/dist/mint-components/p-f66b4b3a.js +1 -0
  352. package/dist/mint-components/p-f85504fd.system.entry.js +1 -0
  353. package/dist/mint-components/p-f87b1e0b.system.js +1 -0
  354. package/dist/mint-components/p-f8bbbea1.js +1 -0
  355. package/dist/mint-components/{p-74f936b0.js → p-f8dd6bac.js} +1 -1
  356. package/dist/mint-components/{p-b9831b79.entry.js → p-f96d239a.entry.js} +1 -1
  357. package/dist/mint-components/p-fd90e9db.entry.js +9 -0
  358. package/dist/types/components/sqm-coupon-code/CouponCode.stories.d.ts +1 -0
  359. package/dist/types/components/sqm-coupon-code/sqm-coupon-code.d.ts +12 -0
  360. package/dist/types/components/sqm-link-button/LinkButton.stories.d.ts +9 -0
  361. package/dist/types/components/sqm-link-button/sqm-link-button-view.d.ts +5 -0
  362. package/dist/types/components/sqm-link-button/sqm-link-button.d.ts +17 -0
  363. package/dist/types/components/sqm-passwordless-registration/sqm-passwordless-registration.d.ts +2 -6
  364. package/dist/types/components/sqm-referral-card/ReferralCard.stories.d.ts +2 -0
  365. package/dist/types/components/sqm-referral-card/sqm-referral-card-view.d.ts +2 -0
  366. package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +1 -1
  367. package/dist/types/components/sqm-referred-registration/sqm-referred-registration.d.ts +44 -0
  368. package/dist/types/components/sqm-share-code/ShareCode.stories.d.ts +2 -1
  369. package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +12 -0
  370. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +1 -0
  371. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +12 -0
  372. package/dist/types/components/sqm-user-identifier/UserIdentifier.stories.d.ts +1 -6
  373. package/dist/types/components/sqm-user-identifier/sqm-user-identifier-view.d.ts +5 -8
  374. package/dist/types/components/sqm-user-identifier/sqm-user-identifier.d.ts +8 -18
  375. package/dist/types/components/{sqm-passwordless-registration/PasswordlessRegistration.stories.d.ts → views/EmailRegistration.stories.d.ts} +1 -1
  376. package/dist/types/components/views/copy-text-view.d.ts +3 -1
  377. package/dist/types/components/{sqm-passwordless-registration/sqm-passwordless-registration-view.d.ts → views/email-registration-view.d.ts} +2 -3
  378. package/dist/types/components.d.ts +185 -47
  379. package/dist/types/stories/PortalTemplates.stories.d.ts +1 -0
  380. package/dist/types/stories/Widget.stories.d.ts +24 -0
  381. package/docs/docs.docx +0 -0
  382. package/docs/raisins.json +1 -1
  383. package/grapesjs/grapesjs.js +1 -1
  384. package/package.json +4 -2
  385. package/dist/cjs/PoweredByImg-7084ef2d.js +0 -16
  386. package/dist/cjs/index-e4027f09.js +0 -2227
  387. package/dist/cjs/sqm-portal-footer-view-6e490bc6.js +0 -71
  388. package/dist/cjs/sqm-portal-footer.cjs.entry.js +0 -69
  389. package/dist/collection/components/sqm-passwordless-registration/PasswordlessRegistration.stories.js +0 -32
  390. package/dist/esm/PoweredByImg-1114005e.js +0 -14
  391. package/dist/esm/index-4bffa04c.js +0 -2225
  392. package/dist/esm/sqm-portal-footer-view-d673e9b9.js +0 -69
  393. package/dist/esm/sqm-portal-footer.entry.js +0 -65
  394. package/dist/esm-es5/GenericTableView-ce26115f.js +0 -1
  395. package/dist/esm-es5/PoweredByImg-1114005e.js +0 -1
  396. package/dist/esm-es5/ShadowViewAddon-e57c3d40.js +0 -1
  397. package/dist/esm-es5/global-4bd89b1d.js +0 -285
  398. package/dist/esm-es5/index-4bffa04c.js +0 -1
  399. package/dist/esm-es5/index.module-5043fba6.js +0 -1
  400. package/dist/esm-es5/sqm-asset-card-view-b0f8ef8e.js +0 -1
  401. package/dist/esm-es5/sqm-big-stat_36.entry.js +0 -1
  402. package/dist/esm-es5/sqm-navigation-sidebar-item-view-d63373b2.js +0 -1
  403. package/dist/esm-es5/sqm-passwordless-registration-view-dcd145d6.js +0 -1
  404. package/dist/esm-es5/sqm-portal-container-view-06bce80d.js +0 -1
  405. package/dist/esm-es5/sqm-portal-footer-view-d673e9b9.js +0 -1
  406. package/dist/esm-es5/sqm-portal-footer.entry.js +0 -1
  407. package/dist/esm-es5/sqm-portal-forgot-password-view-37bafb1c.js +0 -1
  408. package/dist/esm-es5/sqm-portal-profile-view-0b4315c2.js +0 -1
  409. package/dist/esm-es5/sqm-portal-verify-email-view-e3e39501.js +0 -1
  410. package/dist/esm-es5/use-callback-c5579ecb.js +0 -1
  411. package/dist/esm-es5/useReferralTable-6c6c06cb.js +0 -1
  412. package/dist/mint-components/p-014e183e.system.js +0 -1
  413. package/dist/mint-components/p-040a7ac6.system.entry.js +0 -1
  414. package/dist/mint-components/p-0afd05cc.system.entry.js +0 -1
  415. package/dist/mint-components/p-0b07c70b.entry.js +0 -171
  416. package/dist/mint-components/p-0b3af3f2.js +0 -1
  417. package/dist/mint-components/p-143e7a08.system.js +0 -1
  418. package/dist/mint-components/p-1555c1e9.js +0 -1
  419. package/dist/mint-components/p-15e0bdb5.entry.js +0 -1
  420. package/dist/mint-components/p-18d5795d.system.js +0 -1
  421. package/dist/mint-components/p-1943d52e.js +0 -1
  422. package/dist/mint-components/p-1b0c59f0.system.entry.js +0 -1
  423. package/dist/mint-components/p-1e350778.system.entry.js +0 -1
  424. package/dist/mint-components/p-218c8a32.js +0 -1
  425. package/dist/mint-components/p-25d4bd6c.entry.js +0 -1
  426. package/dist/mint-components/p-2b2415cc.system.js +0 -1
  427. package/dist/mint-components/p-2bc7c025.system.entry.js +0 -1
  428. package/dist/mint-components/p-2dcc4495.entry.js +0 -1
  429. package/dist/mint-components/p-2ffe61a0.system.js +0 -1
  430. package/dist/mint-components/p-3b084b9e.system.entry.js +0 -1
  431. package/dist/mint-components/p-4056a7f4.entry.js +0 -1
  432. package/dist/mint-components/p-41377dac.system.js +0 -1
  433. package/dist/mint-components/p-4777598b.system.entry.js +0 -1
  434. package/dist/mint-components/p-497c2091.system.entry.js +0 -1
  435. package/dist/mint-components/p-545c6333.system.entry.js +0 -1
  436. package/dist/mint-components/p-561b5ade.js +0 -268
  437. package/dist/mint-components/p-5bfe901d.js +0 -1
  438. package/dist/mint-components/p-5da32b79.system.entry.js +0 -1
  439. package/dist/mint-components/p-68454fb6.system.entry.js +0 -1
  440. package/dist/mint-components/p-6b5824db.entry.js +0 -13
  441. package/dist/mint-components/p-6b8b7dc0.system.js +0 -1
  442. package/dist/mint-components/p-6dd27a5e.js +0 -1
  443. package/dist/mint-components/p-721deaaf.system.js +0 -1
  444. package/dist/mint-components/p-848a7767.entry.js +0 -1
  445. package/dist/mint-components/p-88bfcec2.system.js +0 -1
  446. package/dist/mint-components/p-8a6a0b6f.js +0 -1
  447. package/dist/mint-components/p-8a7b0f2c.system.entry.js +0 -1
  448. package/dist/mint-components/p-8c0e613f.system.js +0 -1
  449. package/dist/mint-components/p-8e84f311.system.entry.js +0 -1
  450. package/dist/mint-components/p-910c977e.entry.js +0 -13
  451. package/dist/mint-components/p-9c63de96.system.js +0 -1
  452. package/dist/mint-components/p-9ccc4b8a.system.entry.js +0 -1
  453. package/dist/mint-components/p-9f011b61.system.entry.js +0 -1
  454. package/dist/mint-components/p-9f06a318.entry.js +0 -1
  455. package/dist/mint-components/p-a0dcecee.system.js +0 -1
  456. package/dist/mint-components/p-a15a06d1.entry.js +0 -1
  457. package/dist/mint-components/p-a208711a.js +0 -1
  458. package/dist/mint-components/p-a46c0d32.js +0 -1
  459. package/dist/mint-components/p-a4b7f6a6.system.js +0 -1
  460. package/dist/mint-components/p-b56a0052.system.js +0 -1
  461. package/dist/mint-components/p-b76c5252.entry.js +0 -1
  462. package/dist/mint-components/p-b8301966.js +0 -1
  463. package/dist/mint-components/p-bef0a1f4.system.js +0 -1
  464. package/dist/mint-components/p-c3fa90e4.entry.js +0 -1
  465. package/dist/mint-components/p-c5bd5f21.entry.js +0 -9
  466. package/dist/mint-components/p-c78edab5.entry.js +0 -1
  467. package/dist/mint-components/p-c7e36372.system.js +0 -1
  468. package/dist/mint-components/p-c96900ab.js +0 -1
  469. package/dist/mint-components/p-ceb6a9e5.js +0 -1
  470. package/dist/mint-components/p-ceefa840.system.entry.js +0 -1
  471. package/dist/mint-components/p-d4dd44ce.js +0 -1
  472. package/dist/mint-components/p-d8c7e0db.js +0 -1
  473. package/dist/mint-components/p-d96ba635.entry.js +0 -1
  474. package/dist/mint-components/p-db01736e.entry.js +0 -1
  475. package/dist/mint-components/p-dbb3533c.system.entry.js +0 -1
  476. package/dist/mint-components/p-dc9f2ec3.system.entry.js +0 -1
  477. package/dist/mint-components/p-dcdfc20a.entry.js +0 -1
  478. package/dist/mint-components/p-e36afaf4.system.entry.js +0 -1
  479. package/dist/mint-components/p-eae501f9.js +0 -1
  480. package/dist/mint-components/p-eb5e8657.entry.js +0 -1
  481. package/dist/mint-components/p-ece264ab.entry.js +0 -1
  482. package/dist/mint-components/p-ee7e5b54.system.js +0 -1
  483. package/dist/mint-components/p-f19e6247.entry.js +0 -1
  484. package/dist/mint-components/p-f4dbaf32.js +0 -1
  485. package/dist/mint-components/p-f5a0ea6c.entry.js +0 -1
  486. package/dist/mint-components/p-f6e9b11e.js +0 -1
  487. package/dist/mint-components/p-f9203fcb.system.entry.js +0 -1
  488. package/dist/mint-components/p-fab61d16.system.js +0 -1
@@ -1 +0,0 @@
1
- import{c as createCommonjsModule,a as commonjsGlobal}from"./stencil-hooks.module-6bde7453.js";var browserPonyfill=createCommonjsModule((function(e,t){var n=typeof self!=="undefined"?self:commonjsGlobal;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 o=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1}}function a(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 f(e){this.map={};if(e instanceof f){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)}}f.prototype.append=function(e,t){e=a(e);t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};f.prototype["delete"]=function(e){delete this.map[a(e)]};f.prototype.get=function(e){e=a(e);return this.has(e)?this.map[e]:null};f.prototype.has=function(e){return this.map.hasOwnProperty(a(e))};f.prototype.set=function(e,t){this.map[a(e)]=s(t)};f.prototype.forEach=function(e,t){for(var n in this.map){if(this.map.hasOwnProperty(n)){e.call(t,this.map[n],n,this)}}};f.prototype.keys=function(){var e=[];this.forEach((function(t,n){e.push(n)}));return u(e)};f.prototype.values=function(){var e=[];this.forEach((function(t){e.push(t)}));return u(e)};f.prototype.entries=function(){var e=[];this.forEach((function(t,n){e.push([n,t])}));return u(e)};if(n.iterable){f.prototype[Symbol.iterator]=f.prototype.entries}function l(e){if(e.bodyUsed){return Promise.reject(new TypeError("Already read"))}e.bodyUsed=true}function c(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=c(t);t.readAsArrayBuffer(e);return n}function p(e){var t=new FileReader;var n=c(t);t.readAsText(e);return n}function v(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 y(e){if(e.slice){return e.slice(0)}else{var t=new Uint8Array(e.byteLength);t.set(new Uint8Array(e));return t.buffer}}function h(){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=y(e.buffer);this._bodyInit=new Blob([this._bodyArrayBuffer])}else if(n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))){this._bodyArrayBuffer=y(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(v(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(_)}}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 f(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 f(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){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 j(e){var t=new f;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}h.call(g.prototype);function w(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 f(t.headers);this.url=t.url||"";this._initBody(e)}h.call(w.prototype);w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})};w.error=function(){var e=new w(null,{status:0,statusText:""});e.type="error";return e};var O=[301,302,303,307,308];w.redirect=function(e,t){if(O.indexOf(t)===-1){throw new RangeError("Invalid status code")}return new w(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 E(e,r){return new Promise((function(i,o){var a=new g(e,r);if(a.signal&&a.signal.aborted){return o(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:j(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 w(t,e))};s.onerror=function(){o(new TypeError("Network request failed"))};s.ontimeout=function(){o(new TypeError("Network request failed"))};s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))};s.open(a.method,a.url,true);if(a.credentials==="include"){s.withCredentials=true}else if(a.credentials==="omit"){s.withCredentials=false}if("responseType"in s&&n.blob){s.responseType="blob"}a.headers.forEach((function(e,t){s.setRequestHeader(t,e)}));if(a.signal){a.signal.addEventListener("abort",u);s.onreadystatechange=function(){if(s.readyState===4){a.signal.removeEventListener("abort",u)}}}s.send(typeof a._bodyInit==="undefined"?null:a._bodyInit)}))}E.polyfill=true;if(!e.fetch){e.fetch=E;e.Headers=f;e.Request=g;e.Response=w}t.Headers=f;t.Request=g;t.Response=w;t.fetch=E;Object.defineProperty(t,"__esModule",{value:true});return t}({})})(r);r.fetch.ponyfill=true;delete r.fetch.polyfill;var i=r;t=i.fetch;t.default=i.fetch;t.fetch=i.fetch;t.Headers=i.Headers;t.Request=i.Request;t.Response=i.Response;e.exports=t}));var nodejsCustomInspectSymbol_1=createCommonjsModule((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 inspect_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=s;var n=r(nodejsCustomInspectSymbol_1);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 o=10;var a=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 f(e,t);default:return String(e)}}function f(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 c(e,n)}return l(e,n)}function l(e,t){var n=Object.keys(e);if(n.length===0){return"{}"}if(t.length>a){return"["+p(e)+"]"}var r=n.map((function(n){var r=u(e[n],t);return n+": "+r}));return"{ "+r.join(", ")+" }"}function c(e,t){if(e.length===0){return"[]"}if(t.length>a){return"[Array]"}var n=Math.min(o,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 invariant_1=createCommonjsModule((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 defineInspect_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=o;var n=i(invariant_1);var r=i(nodejsCustomInspectSymbol_1);function i(e){return e&&e.__esModule?e:{default:e}}function o(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 ast=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.isNode=a;t.Token=t.Location=void 0;var n=r(defineInspect_1);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 o=function(){function e(e,t,n,r,i,o,a){this.kind=e;this.start=t;this.end=n;this.line=r;this.column=i;this.value=a;this.prev=o;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=o;(0,n.default)(o);function a(e){return e!=null&&typeof e.kind==="string"}}));var visitor=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.visit=a;t.visitInParallel=s;t.getVisitFn=u;t.BREAK=t.QueryDocumentKeys=void 0;var n=r(inspect_1);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 o=Object.freeze({});t.BREAK=o;function a(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:i;var a=undefined;var s=Array.isArray(e);var f=[e];var l=-1;var c=[];var d=undefined;var p=undefined;var v=undefined;var y=[];var h=[];var m=e;do{l++;var b=l===f.length;var g=b&&c.length!==0;if(b){p=h.length===0?undefined:y[y.length-1];d=v;v=h.pop();if(g){if(s){d=d.slice()}else{var _={};for(var j=0,w=Object.keys(d);j<w.length;j++){var O=w[j];_[O]=d[O]}d=_}var E=0;for(var x=0;x<c.length;x++){var T=c[x][0];var S=c[x][1];if(s){T-=E}if(s&&S===null){d.splice(T,1);E++}else{d[T]=S}}}l=a.index;f=a.keys;c=a.edits;s=a.inArray;a=a.prev}else{p=v?s?l:f[l]:undefined;d=v?v[p]:m;if(d===null||d===undefined){continue}if(v){y.push(p)}}var D=void 0;if(!Array.isArray(d)){if(!(0,ast.isNode)(d)){throw new Error("Invalid AST Node: ".concat((0,n.default)(d),"."))}var A=u(t,d.kind,b);if(A){D=A.call(t,d,p,v,y,h);if(D===o){break}if(D===false){if(!b){y.pop();continue}}else if(D!==undefined){c.push([p,D]);if(!b){if((0,ast.isNode)(D)){d=D}else{y.pop();continue}}}}}if(D===undefined&&g){c.push([p,d])}if(b){y.pop()}else{var F;a={inArray:s,index:l,keys:f,edits:c,prev:a};s=Array.isArray(d);f=s?d:(F=r[d.kind])!==null&&F!==void 0?F:[];l=-1;c=[];if(v){h.push(v)}v=d}}while(a!==undefined);if(c.length!==0){m=c[c.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 a=u(e[i],r.kind,false);if(a){var s=a.apply(e[i],arguments);if(s===false){t[i]=r}else if(s===o){t[i]=o}else if(s!==undefined){return s}}}}},leave:function n(r){for(var i=0;i<e.length;i++){if(t[i]==null){var a=u(e[i],r.kind,true);if(a){var s=a.apply(e[i],arguments);if(s===o){t[i]=o}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 o=n?e.leave:e.enter;if(o){if(typeof o==="function"){return o}var a=o[t];if(typeof a==="function"){return a}}}}}));var blockString=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringValue=n;t.getBlockStringIndentation=i;t.printBlockString=o;function n(e){var t=e.split(/\r\n|[\n\r]/g);var n=i(e);if(n!==0){for(var o=1;o<t.length;o++){t[o]=t[o].slice(n)}}var a=0;while(a<t.length&&r(t[a])){++a}var s=t.length;while(s>a&&r(t[s-1])){--s}return t.slice(a,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 o=null;for(var a=0;a<e.length;++a){switch(e.charCodeAt(a)){case 13:if(e.charCodeAt(a+1)===10){++a}case 10:n=false;r=true;i=0;break;case 9:case 32:++i;break;default:if(r&&!n&&(o===null||i<o)){o=i}r=false}}return(t=o)!==null&&t!==void 0?t:0}function o(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 o=e[e.length-1]==='"';var a=e[e.length-1]==="\\";var s=!r||o||a||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 printer=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.print=n;function n(e){return(0,visitor.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 a(t.definitions,"\n\n")+"\n"},OperationDefinition:function e(t){var n=t.operation;var r=t.name;var i=u("(",a(t.variableDefinitions,", "),")");var o=a(t.directives," ");var s=t.selectionSet;return!r&&!o&&!i&&n==="query"?s:a([n,a([r,i]),o,s]," ")},VariableDefinition:function e(t){var n=t.variable,r=t.type,i=t.defaultValue,o=t.directives;return n+": "+r+u(" = ",i)+u(" ",a(o," "))},SelectionSet:function e(t){var n=t.selections;return s(n)},Field:function e(t){var n=t.alias,i=t.name,o=t.arguments,s=t.directives,l=t.selectionSet;var c=u("",n,": ")+i;var d=c+u("(",a(o,", "),")");if(d.length>r){d=c+u("(\n",f(a(o,"\n")),"\n)")}return a([d,a(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(" ",a(r," "))},InlineFragment:function e(t){var n=t.typeCondition,r=t.directives,i=t.selectionSet;return a(["...",u("on ",n),a(r," "),i]," ")},FragmentDefinition:function e(t){var n=t.name,r=t.typeCondition,i=t.variableDefinitions,o=t.directives,s=t.selectionSet;return"fragment ".concat(n).concat(u("(",a(i,", "),")")," ")+"on ".concat(r," ").concat(u("",a(o," ")," "))+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,blockString.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"["+a(n,", ")+"]"},ObjectValue:function e(t){var n=t.fields;return"{"+a(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("(",a(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:o((function(e){var t=e.directives,n=e.operationTypes;return a(["schema",a(t," "),s(n)]," ")})),OperationTypeDefinition:function e(t){var n=t.operation,r=t.type;return n+": "+r},ScalarTypeDefinition:o((function(e){var t=e.name,n=e.directives;return a(["scalar",t,a(n," ")]," ")})),ObjectTypeDefinition:o((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return a(["type",t,u("implements ",a(n," & ")),a(r," "),s(i)]," ")})),FieldDefinition:o((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(c(n)?u("(\n",f(a(n,"\n")),"\n)"):u("(",a(n,", "),")"))+": "+r+u(" ",a(i," "))})),InputValueDefinition:o((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return a([t+": "+n,u("= ",r),a(i," ")]," ")})),InterfaceTypeDefinition:o((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return a(["interface",t,u("implements ",a(n," & ")),a(r," "),s(i)]," ")})),UnionTypeDefinition:o((function(e){var t=e.name,n=e.directives,r=e.types;return a(["union",t,a(n," "),r&&r.length!==0?"= "+a(r," | "):""]," ")})),EnumTypeDefinition:o((function(e){var t=e.name,n=e.directives,r=e.values;return a(["enum",t,a(n," "),s(r)]," ")})),EnumValueDefinition:o((function(e){var t=e.name,n=e.directives;return a([t,a(n," ")]," ")})),InputObjectTypeDefinition:o((function(e){var t=e.name,n=e.directives,r=e.fields;return a(["input",t,a(n," "),s(r)]," ")})),DirectiveDefinition:o((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(c(n)?u("(\n",f(a(n,"\n")),"\n)"):u("(",a(n,", "),")"))+(r?" repeatable":"")+" on "+a(i," | ")})),SchemaExtension:function e(t){var n=t.directives,r=t.operationTypes;return a(["extend schema",a(n," "),s(r)]," ")},ScalarTypeExtension:function e(t){var n=t.name,r=t.directives;return a(["extend scalar",n,a(r," ")]," ")},ObjectTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,o=t.fields;return a(["extend type",n,u("implements ",a(r," & ")),a(i," "),s(o)]," ")},InterfaceTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,o=t.fields;return a(["extend interface",n,u("implements ",a(r," & ")),a(i," "),s(o)]," ")},UnionTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.types;return a(["extend union",n,a(r," "),i&&i.length!==0?"= "+a(i," | "):""]," ")},EnumTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.values;return a(["extend enum",n,a(r," "),s(i)]," ")},InputObjectTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.fields;return a(["extend input",n,a(r," "),s(i)]," ")}};function o(e){return function(t){return a([t.description,e(t)],"\n")}}function a(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",f(a(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 f(e){return u(" ",e.replace(/\n/g,"\n "))}function l(e){return e.indexOf("\n")!==-1}function c(e){return e!=null&&e.some(l)}}));var ReactNativeFile=function e(t){var n=t.uri,r=t.name,i=t.type;this.uri=n;this.name=r;this.type=i};var isExtractableFile=function e(t){return typeof File!=="undefined"&&t instanceof File||typeof Blob!=="undefined"&&t instanceof Blob||t instanceof ReactNativeFile};var extractFiles=function e(t,n,r){if(n===void 0){n=""}if(r===void 0){r=isExtractableFile}var i;var o=new Map;function a(e,t){var n=o.get(t);if(n)n.push.apply(n,e);else o.set(t,e)}if(r(t)){i=null;a([n],t)}else{var s=n?n+".":"";if(typeof FileList!=="undefined"&&t instanceof FileList)i=Array.prototype.map.call(t,(function(e,t){a([""+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(a);return i.clone}));else if(t&&t.constructor===Object){i={};for(var u in t){var f=e(t[u],""+s+u,r);f.files.forEach(a);i[u]=f.clone}}else i=t}return{clone:i,files:o}};var ReactNativeFile$1=ReactNativeFile;var extractFiles$1=extractFiles;var isExtractableFile$1=isExtractableFile;var _public={ReactNativeFile:ReactNativeFile$1,extractFiles:extractFiles$1,isExtractableFile:isExtractableFile$1};var browser=typeof self=="object"?self.FormData:window.FormData;var createRequestBody_1=createCommonjsModule((function(e,t){var n=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var r=n(browser);var i=function(e){return _public.isExtractableFile(e)||e!==null&&typeof e==="object"&&typeof e.pipe==="function"};function o(e,t){var n=_public.extractFiles({query:e,variables:t},"",i),o=n.clone,a=n.files;if(a.size===0){return JSON.stringify(o)}var s=typeof FormData==="undefined"?r.default:FormData;var u=new s;u.append("operations",JSON.stringify(o));var f={};var l=0;a.forEach((function(e){f[++l]=e}));u.append("map",JSON.stringify(f));l=0;a.forEach((function(e,t){u.append(""+ ++l,t)}));return u}t.default=o}));var types=createCommonjsModule((function(e,t){var n=commonjsGlobal&&commonjsGlobal.__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 o=t.extractMessage(n)+": "+JSON.stringify({response:n,request:r});i=e.call(this,o)||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 dist=createCommonjsModule((function(e,t){var n=commonjsGlobal&&commonjsGlobal.__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=commonjsGlobal&&commonjsGlobal.__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 i=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=commonjsGlobal&&commonjsGlobal.__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);i(t,e);return t};var a=commonjsGlobal&&commonjsGlobal.__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,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):i(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var s=commonjsGlobal&&commonjsGlobal.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=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(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var u=commonjsGlobal&&commonjsGlobal.__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 f=commonjsGlobal&&commonjsGlobal.__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 l=o(browserPonyfill),c=l;var d=f(createRequestBody_1);var p=types;Object.defineProperty(t,"ClientError",{enumerable:true,get:function(){return p.ClientError}});var v=function(e){var t={};if(e){if(typeof Headers!=="undefined"&&e instanceof Headers||e instanceof c.Headers){t=j(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 a(this,void 0,void 0,(function(){var i,o,a,f,c,p,y,h,m,g,_;return s(this,(function(s){switch(s.label){case 0:i=this.options,o=i.headers,a=i.fetch,f=a===void 0?l.default:a,c=u(i,["headers","fetch"]);p=d.default(e,t);return[4,f(this.url,n({method:"POST",headers:n(n(n({},typeof p==="string"?{"Content-Type":"application/json"}:{}),v(o)),v(r)),body:p},c))];case 1:y=s.sent();return[4,b(y)];case 2:h=s.sent();if(y.ok&&!h.errors&&h.data){m=y.headers,g=y.status;return[2,n(n({},h),{headers:m,status:g})]}else{_=typeof h==="string"?{error:h}:h;throw new types.ClientError(n(n({},_),{status:y.status,headers:y.headers}),{query:e,variables:t})}}}))}))};e.prototype.request=function(e,t,r){return a(this,void 0,void 0,(function(){var i,o,a,f,c,p,y,h,m,_;return s(this,(function(s){switch(s.label){case 0:i=this.options,o=i.headers,a=i.fetch,f=a===void 0?l.default:a,c=u(i,["headers","fetch"]);p=g(e);y=d.default(p,t);return[4,f(this.url,n({method:"POST",headers:n(n(n({},typeof y==="string"?{"Content-Type":"application/json"}:{}),v(o)),v(r)),body:y},c))];case 1:h=s.sent();return[4,b(h)];case 2:m=s.sent();if(h.ok&&!m.errors&&m.data){return[2,m.data]}else{_=typeof m==="string"?{error:m}:m;throw new types.ClientError(n(n({},_),{status:h.status}),{query:p,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 h(e,t,n){return a(this,void 0,void 0,(function(){var r;return s(this,(function(i){r=new y(e);return[2,r.rawRequest(t,n)]}))}))}t.rawRequest=h;function m(e,t,n){return a(this,void 0,void 0,(function(){var r;return s(this,(function(i){r=new y(e);return[2,r.request(t,n)]}))}))}t.request=m;t.default=m;function b(e){var t=e.headers.get("Content-Type");if(t&&t.startsWith("application/json")){return e.json()}else{return e.text()}}function g(e){if(typeof e==="string")return e;return printer.print(e)}function _(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=_;function j(e){var t={};e.forEach((function(e,n){t[n]=e}));return t}}));export{dist as d};
@@ -1 +0,0 @@
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,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):i(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=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(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[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 o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};import{u as useEffect,d as useRef,e as useState,f as useMemo,c as createCommonjsModule,a as commonjsGlobal,h as getDefaultExportFromCjs,i as useReducer}from"./stencil-hooks.module-6bde7453.js";import{u as useCallback}from"./use-callback-c5579ecb.js";function e(e){this.message=e}e.prototype=new Error,e.prototype.name="InvalidCharacterError";var r="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(t){var n=String(t).replace(/=+$/,"");if(n.length%4==1)throw new e("'atob' failed: The string to be decoded is not correctly encoded.");for(var r,i,o=0,a=0,s="";i=n.charAt(a++);~i&&(r=o%4?64*r+i:i,o++%4)?s+=String.fromCharCode(255&r>>(-2*o&6)):0)i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);return s};function t(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(r(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return r(t)}}function n(e){this.message=e}function o(e,r){if("string"!=typeof e)throw new n("Invalid token specified");var i=!0===(r=r||{}).header?0:1;try{return JSON.parse(t(e.split(".")[i]))}catch(e){throw new n("Invalid token specified: "+e.message)}}n.prototype=new Error,n.prototype.name="InvalidTokenError";function t$1(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n$1(e,t,n){return t&&t$1(e.prototype,t),n&&t$1(e,n),e}var s=function(){function e(e){var t=this,n=this;this._status="Initial",this.onChange=function(e){n.options.onChange&&n.options.onChange(e)},this.onConnect=function(e){try{return t.status="Connected",t.options.onChange&&t.options.onChange(e),Promise.resolve(new Promise((function(e){t.resolvePromise=e})))}catch(e){return Promise.reject(e)}},this.onDisconnect=function(){n.status="Connecting",n.start()},this.options=e}var t=e.prototype;return t.start=function(){var e=this,t=0;this.status="Connecting";var n=function(){return e.status},r=a(this.options.attempts)||10,i=function(){if("Connected"!==n()){var i=new CustomEvent(e.options.contextName,{bubbles:!0,cancelable:!0,composed:!0,detail:{onConnect:e.onConnect,onChange:e.onChange,onDisconnect:e.onDisconnect}});a(e.options.element).dispatchEvent(i),"Connected"!==n()?++t>=r&&(e._interval&&clearInterval(e._interval),e.status="Timeout"):"Connected"===n()&&e._interval&&clearInterval(e._interval)}};return(a(this.options.pollingMs)||100)>0&&r>1&&(this._interval=setInterval(i,a(this.options.pollingMs)||100)),i(),this},t.stop=function(){return this._interval&&clearInterval(this._interval),this.resolvePromise&&this.resolvePromise(),this.status="Initial",this},n$1(e,[{key:"status",set:function(e){this._status=e,this.options.onStatus&&this.options.onStatus(e)},get:function(){return this._status}}]),e}(),c=function(){function e(e){var t=this;this.__listeners=[],this.connectListener=function(e){try{e.stopPropagation(),t.__listeners=[].concat(t.__listeners,[e.detail]);var n=function(n,r){try{var i=Promise.resolve(e.detail.onConnect(t.__current)).then((function(){}))}catch(e){return r(!0,e)}return i&&i.then?i.then(r.bind(null,!1),r.bind(null,!0)):r(!1,i)}(0,(function(n,r){var i,o;if(t.__listeners=(o=(i=t.__listeners).indexOf(e.detail),i.slice(0,o).concat(i.slice(o+1,i.length))),n)throw r;return r}));return Promise.resolve(n&&n.then?n.then((function(){})):void 0)}catch(e){return Promise.reject(e)}},this.options=e,this.__current=a(e.initialState)}var t=e.prototype;return t.start=function(){return a(this.options.element).addEventListener(this.options.contextName,this.connectListener),this},t.stop=function(){return a(this.options.element).removeEventListener(this.options.contextName,this.connectListener),this.__listeners.map((function(e){e.onDisconnect()})),this.__listeners=[],this},n$1(e,[{key:"context",set:function(e){this.__current=e,this.__listeners.forEach((function(t){return t.onChange(e)}))},get:function(){return a(this.__current)}},{key:"listeners",get:function(){return Object.freeze([].concat(this.__listeners))}}]),e}();function a(e){return"function"==typeof typeof e?e():e}var _a=Object.prototype,toString=_a.toString,hasOwnProperty=_a.hasOwnProperty;var fnToStr=Function.prototype.toString;var previousComparisons=new Map;function equal(e,t){try{return check(e,t)}finally{previousComparisons.clear()}}function check(e,t){if(e===t){return true}var n=toString.call(e);var r=toString.call(t);if(n!==r){return false}switch(n){case"[object Array]":if(e.length!==t.length)return false;case"[object Object]":{if(previouslyCompared(e,t))return true;var i=definedKeys(e);var o=definedKeys(t);var a=i.length;if(a!==o.length)return false;for(var s=0;s<a;++s){if(!hasOwnProperty.call(t,i[s])){return false}}for(var s=0;s<a;++s){var u=i[s];if(!check(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(previouslyCompared(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&&!check(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=fnToStr.call(e);if(y!==fnToStr.call(t)){return false}return!endsWith(y,nativeCodeSuffix)}}return false}function definedKeys(e){return Object.keys(e).filter(isDefinedKey,e)}function isDefinedKey(e){return this[e]!==void 0}var nativeCodeSuffix="{ [native code] }";function endsWith(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function previouslyCompared(e,t){var n=previousComparisons.get(e);if(n){if(n.has(t))return true}else{previousComparisons.set(e,n=new Set)}n.add(t);return false}var __defProp=Object.defineProperty;var __defProps=Object.defineProperties;var __getOwnPropDescs=Object.getOwnPropertyDescriptors;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __hasOwnProp=Object.prototype.hasOwnProperty;var __propIsEnum=Object.prototype.propertyIsEnumerable;var __defNormalProp=function(e,t,n){return t in e?__defProp(e,t,{enumerable:true,configurable:true,writable:true,value:n}):e[t]=n};var __spreadValues=function(e,t){for(var n in t||(t={}))if(__hasOwnProp.call(t,n))__defNormalProp(e,n,t[n]);if(__getOwnPropSymbols)for(var r=0,i=__getOwnPropSymbols(t);r<i.length;r++){var n=i[r];if(__propIsEnum.call(t,n))__defNormalProp(e,n,t[n])}return e};var __spreadProps=function(e,t){return __defProps(e,__getOwnPropDescs(t))};var USER_CONTEXT_NAME="sq:user-identity";var LOCALE_CONTEXT_NAME="sq:locale";var PROGRAM_CONTEXT_NAME="sq:program-id";var DEFAULT_MEDIUM="EMBED";function getEnvironment(){return getEnvironmentSDK().type}function getEnvironmentSDK(){var e,t,n;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(((e=window.frameElement)==null?void 0:e["squatchJsApi"])&&((t=window["widgetIdent"])==null?void 0:t.env)!=="demo"){return{type:"SquatchJS2",api:(n=window.frameElement)==null?void 0:n["squatchJsApi"],widgetIdent:window["widgetIdent"]}}return{type:"None"}}function isDemo(){var e=getEnvironmentSDK();return e.type==="None"||e.type==="SquatchAdmin"}var FAKE_TENANT="demo";function getTenantAlias(){var e=getEnvironmentSDK();switch(e.type){case"SquatchAndroid":case"SquatchIOS":case"SquatchJS2":return e.widgetIdent.tenantAlias;case"SquatchAdmin":case"None":return FAKE_TENANT;case"SquatchPortal":return e.env.tenantAlias}}var DEFAULT_DOMAIN="https://app.referralsaasquatch.com";function getAppDomain(){var e;var t=getEnvironmentSDK();switch(t.type){case"SquatchAndroid":case"SquatchIOS":case"SquatchJS2":return t.widgetIdent.appDomain;case"SquatchPortal":return((e=t.env)==null?void 0:e.appDomain)||DEFAULT_DOMAIN;case"SquatchAdmin":case"None":return DEFAULT_DOMAIN}}function getEngagementMedium(){var e=getEnvironmentSDK();switch(e.type){case"SquatchJS2":return e.widgetIdent.engagementMedium||DEFAULT_MEDIUM;case"SquatchAndroid":case"SquatchIOS":case"SquatchPortal":case"SquatchAdmin":case"None":return DEFAULT_MEDIUM}}var debugEnabled=function(){var e;try{return(e=window==null?void 0:window.localStorage)==null?void 0:e.getItem("debug")}catch(e){return false}}();function debug(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}if(debugEnabled){console.debug.apply(console,__spreadArrays(["sq:environment:"+e],t))}}var debug2=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return debug.apply(void 0,__spreadArrays(["history"],e))};function normalizeTo(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 BrowserHistory=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(){debug2("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=normalizeTo(e);window.history.pushState(t,"",n)};e.prototype.replace=function(e,t){var n=normalizeTo(e);window.history.replaceState(t,"",n)};return e}();var MemoryHistory=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(){debug2("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=__spreadProps(__spreadValues({},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:"",hash:"",state:t}}else{this.history[this.index]=__spreadProps(__spreadValues({},e),{state:t})}this.notify()};return e}();function createHistory(){if(getEnvironment()==="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 o=new Event(e);window.dispatchEvent(o);return i}};window.history.pushState=e("pushState");window.history.replaceState=e("replaceState");return new BrowserHistory}else{return new MemoryHistory}}function lazyHistory(){window.squatchHistory=window.squatchHistory||createHistory();return window.squatchHistory}var LazyHistory=function(){function e(){}Object.defineProperty(e.prototype,"location",{get:function(){return lazyHistory().location},enumerable:false,configurable:true});e.prototype.listen=function(e){return lazyHistory().listen(e)};e.prototype.back=function(){lazyHistory().back()};e.prototype.forward=function(){lazyHistory().forward()};e.prototype.go=function(e){lazyHistory().go(e)};e.prototype.push=function(e,t){lazyHistory().push(e,t)};e.prototype.replace=function(e,t){lazyHistory().replace(e,t)};return e}();var history_default=new LazyHistory;var debug3=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return debug.apply(void 0,__spreadArrays([LOCALE_CONTEXT_NAME],e))};function validateLocale(e){if(e&&/^[a-z]{2}_(?:[A-Z]{2}|[0-9]{3})$/.test(e)){return e}}function lazilyStartLocaleContext(){var e;var t;var n=window.squatchLocale;if(!n){debug3("Creating locale context provider");var r=(e=(t=window.widgetIdent)==null?void 0:t.locale)!==null&&e!==void 0?e:validateLocale(navigator.language.replaceAll("-","_"));n=new c({element:document.documentElement,initialState:r,contextName:LOCALE_CONTEXT_NAME}).start();window.squatchLocale=n}return n}var debug4=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return debug.apply(void 0,__spreadArrays([LOCALE_CONTEXT_NAME],e))};var GET_LOCALE="\n query {\n viewer {\n ... on User {\n locale\n }\n }\n }\n";function fetchLocale(){return __awaiter(this,void 0,void 0,(function(){var e,t,n,r;return __generator(this,(function(i){switch(i.label){case 0:debug4("Fetching locale from GraphQL for current user");i.label=1;case 1:i.trys.push([1,4,,5]);return[4,fetch(getAppDomain()+"/api/v1/"+getTenantAlias()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+((e=getUserIdentity())==null?void 0:e.jwt)},body:JSON.stringify({query:GET_LOCALE})})];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();debug4("Failed to fetch locale for current user",r.message);return[2,void 0];case 5:return[2]}}))}))}var debug5=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return debug.apply(void 0,__spreadArrays([LOCALE_CONTEXT_NAME],e))};var userContextListenerDiv=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 userContextListenerForLocale=new s({contextName:USER_CONTEXT_NAME,element:userContextListenerDiv,onChange:function(e){return __awaiter(void 0,void 0,void 0,(function(){var t,n,r,i,o;var a;return __generator(this,(function(s){switch(s.label){case 0:n=lazilyStartLocaleContext();r=(a=(t=window.widgetIdent)==null?void 0:t.locale)!==null&&a!==void 0?a:validateLocale(navigator.language.replaceAll("-","_"));if(!e)return[3,2];debug5("User context changed, refetching locale");return[4,fetchLocale()];case 1:o=s.sent();if(n.context!==o){debug5("New value fetched from GraphQL ["+o+"]");i=o||r}return[3,3];case 2:i=r;s.label=3;case 3:debug5("Setting locale context to ["+i+"]");n.context=i;return[2]}}))}))}});function startUserContextListenerForLocale(){debug5("Starting user context listener for locale updates");userContextListenerForLocale.start()}var debug6=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return debug.apply(void 0,__spreadArrays([USER_CONTEXT_NAME],e))};function lazilyStartUserContext(){var e=window.squatchUserIdentity;if(!e){debug6("Creating user context provider");e=new c({element:document.documentElement,initialState:_getInitialValue(),contextName:USER_CONTEXT_NAME}).start();window.squatchUserIdentity=e;startUserContextListenerForLocale()}return e}function isDecodedSquatchJWT(e){return e.user&&e.user.id&&e.user.accountId}function isDecodedWidgetAPIJWT(e){return e.sub&&/.*:.*@.*:users/.test(e.sub)}function userIdentityFromJwt(e){if(!e)return void 0;try{var t=o(e);var n=t.exp;var r=void 0;var i=void 0;if(isDecodedWidgetAPIJWT(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(isDecodedSquatchJWT(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 _getInitialValue(){var e=getEnvironmentSDK();switch(e.type){case"SquatchIOS":case"SquatchAndroid":case"SquatchJS2":var t=e.widgetIdent,n=t.userId,r=t.accountId,i=t.token;if(!n||!r||!i)return void 0;return{id:e.widgetIdent.userId,accountId:e.widgetIdent.accountId,jwt:e.widgetIdent.token};case"SquatchPortal":var o=new URLSearchParams(document.location.search);if(o.has("jwt")){return userIdentityFromJwt(o.get("jwt"))}var a=localStorage.getItem(USER_CONTEXT_NAME);if(!a)return void 0;try{var s=JSON.parse(a);var u=userIdentityFromJwt(s.jwt);if(u){return __spreadValues(__spreadValues({},s),u)}return void 0}catch(e){return void 0}case"SquatchAdmin":case"None":return void 0}}function setUserIdentity(e){var t=lazilyStartUserContext();if(!equal(t.context,e)){debug6("Setting user context value ["+JSON.stringify(e)+"]");t.context=e}if(e&&getEnvironmentSDK().type==="SquatchPortal"){localStorage.setItem(USER_CONTEXT_NAME,JSON.stringify(e))}else if(!e){localStorage.removeItem(USER_CONTEXT_NAME)}}function getUserIdentity(){var e;return(e=window.squatchUserIdentity)==null?void 0:e.context}var debug7=function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}return debug.apply(void 0,__spreadArrays([PROGRAM_CONTEXT_NAME],e))};function lazilyStartProgramContext(){var e;var t=window.squatchProgramId;if(!t){debug7("Creating program context provider");t=new c({element:document.documentElement,initialState:((e=window.widgetIdent)==null?void 0:e.programId)||void 0,contextName:PROGRAM_CONTEXT_NAME}).start();window.squatchProgramId=t}return t}function setProgramId(e){var t=lazilyStartProgramContext();if(t.context!==e){debug7("Setting program context value ["+e+"]");t.context=e}}function c$1(){return(c$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var u=1e3,C=60*u,l=60*C,d=24*l,f=function(e,t){t=t||{};var n=typeof e;if("string"===n&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return n*d;case"hours":case"hour":case"hrs":case"hr":case"h":return n*l;case"minutes":case"minute":case"mins":case"min":case"m":return n*C;case"seconds":case"second":case"secs":case"sec":case"s":return n*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===n&&isFinite(e))return t.long?function(e){var t=Math.abs(e);return t>=d?g(e,t,d,"day"):t>=l?g(e,t,l,"hour"):t>=C?g(e,t,C,"minute"):t>=u?g(e,t,u,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=d?Math.round(e/d)+"d":t>=l?Math.round(e/l)+"h":t>=C?Math.round(e/C)+"m":t>=u?Math.round(e/u)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function g(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}var p,m=(function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;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 o(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}if(!o.enabled)return;var i=o,a=Number(new Date);i.diff=a-(r||a),i.prev=r,i.curr=a,r=a,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 o=t.formatters[r];return"function"==typeof o&&(n=o.call(i,e[s]),e.splice(s,1),s--),n})),t.formatArgs.call(i,e),(i.log||t.log).apply(i,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=n,o.destroy=t.destroy,Object.defineProperty(o,"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(o),o}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=f,t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((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}}}(p={exports:{}},p.exports),p.exports)("useDomContext");function h(e,t,n){void 0===n&&(n={});var r=useRef(void 0),i=useState(void 0),o=i[0],a=i[1],u=useMemo((function(){var i=new s(c$1({contextName:t,element:e,onChange:function(e){r.current=e,a(e)}},n));return i.start(),m("Listener initialized",i),{listener:i}}),[t,r]).listener;return useEffect((function(){return m("Listener starting (or restarting)",u),u.start(),function(){m("Listener stopping (or restopping)",u),u.stop()}}),[u,e.isConnected]),o||r.current}function _typeof(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function e(t){return typeof t}}else{_typeof=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return _typeof(e)}function isObjectLike(e){return _typeof(e)=="object"&&e!==null}var SYMBOL_TO_STRING_TAG=typeof Symbol==="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function getLocation(e,t){var n=/\r\n|[\n\r]/g;var r=1;var i=t+1;var o;while((o=n.exec(e.body))&&o.index<t){r+=1;i=t+1-(o.index+o[0].length)}return{line:r,column:i}}function printLocation(e){return printSourceLocation(e.source,getLocation(e.source,e.start))}function printSourceLocation(e,t){var n=e.locationOffset.column-1;var r=whitespace(n)+e.body;var i=t.line-1;var o=e.locationOffset.line-1;var a=t.line+o;var s=t.line===1?n:0;var u=t.column+s;var c="".concat(e.name,":").concat(a,":").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+printPrefixedLines([["".concat(a),h[0]]].concat(h.slice(1,d+1).map((function(e){return["",e]})),[[" ",whitespace(p-1)+"^"],["",h[d+1]]]))}return c+printPrefixedLines([["".concat(a-1),l[i-1]],["".concat(a),f],["",whitespace(u-1)+"^"],["".concat(a+1),l[i+1]]])}function printPrefixedLines(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 leftPad(n,t)+(r?" | "+r:" |")})).join("\n")}function whitespace(e){return Array(e+1).join(" ")}function leftPad(e,t){return whitespace(e-t.length)+t}function _typeof$1(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof$1=function e(t){return typeof t}}else{_typeof$1=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return _typeof$1(e)}function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(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 _createClass(e,t,n){if(t)_defineProperties(e.prototype,t);if(n)_defineProperties(e,n);return e}function _inherits(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)_setPrototypeOf(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function n(){var r=_getPrototypeOf(e),i;if(t){var o=_getPrototypeOf(this).constructor;i=Reflect.construct(r,arguments,o)}else{i=r.apply(this,arguments)}return _possibleConstructorReturn(this,i)}}function _possibleConstructorReturn(e,t){if(t&&(_typeof$1(t)==="object"||typeof t==="function")){return t}return _assertThisInitialized(e)}function _assertThisInitialized(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function _wrapNativeSuper(e){var t=typeof Map==="function"?new Map:undefined;_wrapNativeSuper=function e(n){if(n===null||!_isNativeFunction(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 _construct(n,arguments,_getPrototypeOf(this).constructor)}r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(r,n)};return _wrapNativeSuper(e)}function _construct(e,t,n){if(_isNativeReflectConstruct()){_construct=Reflect.construct}else{_construct=function e(t,n,r){var i=[null];i.push.apply(i,n);var o=Function.bind.apply(t,i);var a=new o;if(r)_setPrototypeOf(a,r.prototype);return a}}return _construct.apply(null,arguments)}function _isNativeReflectConstruct(){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 _isNativeFunction(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function _setPrototypeOf(e,t){_setPrototypeOf=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return _setPrototypeOf(e,t)}function _getPrototypeOf(e){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return _getPrototypeOf(e)}var GraphQLError=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,a,s,u){var c,l,f,d;var p;_classCallCheck(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=o;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(o&&i){b=o.map((function(e){return getLocation(i,e)}))}else if(h){b=h.reduce((function(e,t){if(t.loc){e.push(getLocation(t.loc.source,t.loc.start))}return e}),[])}var g=u;if(g==null&&s!=null){var E=s.extensions;if(isObjectLike(E)){g=E}}Object.defineProperties(_assertThisInitialized(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:a!==null&&a!==void 0?a:undefined,enumerable:a!=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(_assertThisInitialized(p),"stack",{value:s.stack,writable:true,configurable:true});return _possibleConstructorReturn(p)}if(Error.captureStackTrace){Error.captureStackTrace(_assertThisInitialized(p),n)}else{Object.defineProperty(_assertThisInitialized(p),"stack",{value:Error().stack,writable:true,configurable:true})}return p}_createClass(n,[{key:"toString",value:function e(){return printError(this)}},{key:SYMBOL_TO_STRING_TAG,get:function e(){return"Object"}}]);return n}(_wrapNativeSuper(Error));function printError(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"+printLocation(i.loc)}}}else if(e.source&&e.locations){for(var o=0,a=e.locations;o<a.length;o++){var s=a[o];t+="\n\n"+printSourceLocation(e.source,s)}}return t}function syntaxError(e,t,n){return new GraphQLError("Syntax Error: ".concat(n),undefined,e,[t])}var Kind=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 invariant(e,t){var n=Boolean(e);if(!n){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}var nodejsCustomInspectSymbol=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):undefined;function defineInspect(e){var t=e.prototype.toJSON;typeof t==="function"||invariant(0);e.prototype.inspect=t;if(nodejsCustomInspectSymbol){e.prototype[nodejsCustomInspectSymbol]=t}}var Location=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}();defineInspect(Location);var Token=function(){function e(e,t,n,r,i,o,a){this.kind=e;this.start=t;this.end=n;this.line=r;this.column=i;this.value=a;this.prev=o;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}();defineInspect(Token);function isNode(e){return e!=null&&typeof e.kind==="string"}var TokenKind=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 _typeof$2(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof$2=function e(t){return typeof t}}else{_typeof$2=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return _typeof$2(e)}var MAX_ARRAY_LENGTH=10;var MAX_RECURSIVE_DEPTH=2;function inspect(e){return formatValue(e,[])}function formatValue(e,t){switch(_typeof$2(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 formatObjectValue(e,t);default:return String(e)}}function formatObjectValue(e,t){if(t.indexOf(e)!==-1){return"[Circular]"}var n=[].concat(t,[e]);var r=getCustomFn(e);if(r!==undefined){var i=r.call(e);if(i!==e){return typeof i==="string"?i:formatValue(i,n)}}else if(Array.isArray(e)){return formatArray(e,n)}return formatObject(e,n)}function formatObject(e,t){var n=Object.keys(e);if(n.length===0){return"{}"}if(t.length>MAX_RECURSIVE_DEPTH){return"["+getObjectTag(e)+"]"}var r=n.map((function(n){var r=formatValue(e[n],t);return n+": "+r}));return"{ "+r.join(", ")+" }"}function formatArray(e,t){if(e.length===0){return"[]"}if(t.length>MAX_RECURSIVE_DEPTH){return"[Array]"}var n=Math.min(MAX_ARRAY_LENGTH,e.length);var r=e.length-n;var i=[];for(var o=0;o<n;++o){i.push(formatValue(e[o],t))}if(r===1){i.push("... 1 more item")}else if(r>1){i.push("... ".concat(r," more items"))}return"["+i.join(", ")+"]"}function getCustomFn(e){var t=e[String(nodejsCustomInspectSymbol)];if(typeof t==="function"){return t}if(typeof e.inspect==="function"){return e.inspect}}function getObjectTag(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 devAssert(e,t){var n=Boolean(e);if(!n){throw new Error(t)}}var instanceOf=function e(t,n){return t instanceof n};function _defineProperties$1(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 _createClass$1(e,t,n){if(t)_defineProperties$1(e.prototype,t);if(n)_defineProperties$1(e,n);return e}var Source=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"||devAssert(0,"Body must be a string. Received: ".concat(inspect(e),"."));this.body=e;this.name=t;this.locationOffset=n;this.locationOffset.line>0||devAssert(0,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||devAssert(0,"column in locationOffset is 1-indexed and must be positive.")}_createClass$1(e,[{key:SYMBOL_TO_STRING_TAG,get:function e(){return"Source"}}]);return e}();function isSource(e){return instanceOf(e,Source)}var DirectiveLocation=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 dedentBlockStringValue(e){var t=e.split(/\r\n|[\n\r]/g);var n=getBlockStringIndentation(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&&isBlank(t[i])){++i}var o=t.length;while(o>i&&isBlank(t[o-1])){--o}return t.slice(i,o).join("\n")}function isBlank(e){for(var t=0;t<e.length;++t){if(e[t]!==" "&&e[t]!=="\t"){return false}}return true}function getBlockStringIndentation(e){var t;var n=true;var r=true;var i=0;var o=null;for(var a=0;a<e.length;++a){switch(e.charCodeAt(a)){case 13:if(e.charCodeAt(a+1)===10){++a}case 10:n=false;r=true;i=0;break;case 9:case 32:++i;break;default:if(r&&!n&&(o===null||i<o)){o=i}r=false}}return(t=o)!==null&&t!==void 0?t:0}function printBlockString(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 o=e[e.length-1]==='"';var a=e[e.length-1]==="\\";var s=!r||o||a||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 Lexer=function(){function e(e){var t=new Token(TokenKind.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!==TokenKind.EOF){do{var n;t=(n=t.next)!==null&&n!==void 0?n:t.next=readToken(this,t)}while(t.kind===TokenKind.COMMENT)}return t};return e}();function isPunctuatorTokenKind(e){return e===TokenKind.BANG||e===TokenKind.DOLLAR||e===TokenKind.AMP||e===TokenKind.PAREN_L||e===TokenKind.PAREN_R||e===TokenKind.SPREAD||e===TokenKind.COLON||e===TokenKind.EQUALS||e===TokenKind.AT||e===TokenKind.BRACKET_L||e===TokenKind.BRACKET_R||e===TokenKind.BRACE_L||e===TokenKind.PIPE||e===TokenKind.BRACE_R}function printCharCode(e){return isNaN(e)?TokenKind.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function readToken(e,t){var n=e.source;var r=n.body;var i=r.length;var o=t.end;while(o<i){var a=r.charCodeAt(o);var s=e.line;var u=1+o-e.lineStart;switch(a){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o;++e.line;e.lineStart=o;continue;case 13:if(r.charCodeAt(o+1)===10){o+=2}else{++o}++e.line;e.lineStart=o;continue;case 33:return new Token(TokenKind.BANG,o,o+1,s,u,t);case 35:return readComment(n,o,s,u,t);case 36:return new Token(TokenKind.DOLLAR,o,o+1,s,u,t);case 38:return new Token(TokenKind.AMP,o,o+1,s,u,t);case 40:return new Token(TokenKind.PAREN_L,o,o+1,s,u,t);case 41:return new Token(TokenKind.PAREN_R,o,o+1,s,u,t);case 46:if(r.charCodeAt(o+1)===46&&r.charCodeAt(o+2)===46){return new Token(TokenKind.SPREAD,o,o+3,s,u,t)}break;case 58:return new Token(TokenKind.COLON,o,o+1,s,u,t);case 61:return new Token(TokenKind.EQUALS,o,o+1,s,u,t);case 64:return new Token(TokenKind.AT,o,o+1,s,u,t);case 91:return new Token(TokenKind.BRACKET_L,o,o+1,s,u,t);case 93:return new Token(TokenKind.BRACKET_R,o,o+1,s,u,t);case 123:return new Token(TokenKind.BRACE_L,o,o+1,s,u,t);case 124:return new Token(TokenKind.PIPE,o,o+1,s,u,t);case 125:return new Token(TokenKind.BRACE_R,o,o+1,s,u,t);case 34:if(r.charCodeAt(o+1)===34&&r.charCodeAt(o+2)===34){return readBlockString(n,o,s,u,t,e)}return readString(n,o,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 readNumber(n,o,a,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 readName(n,o,s,u,t)}throw syntaxError(n,o,unexpectedCharacterMessage(a))}var c=e.line;var l=1+o-e.lineStart;return new Token(TokenKind.EOF,i,i,c,l,t)}function unexpectedCharacterMessage(e){if(e<32&&e!==9&&e!==10&&e!==13){return"Cannot contain the invalid character ".concat(printCharCode(e),".")}if(e===39){return"Unexpected single quote character ('), did you mean to use a double quote (\")?"}return"Cannot parse the unexpected character ".concat(printCharCode(e),".")}function readComment(e,t,n,r,i){var o=e.body;var a;var s=t;do{a=o.charCodeAt(++s)}while(!isNaN(a)&&(a>31||a===9));return new Token(TokenKind.COMMENT,t,s,n,r,i,o.slice(t+1,s))}function readNumber(e,t,n,r,i,o){var a=e.body;var s=n;var u=t;var c=false;if(s===45){s=a.charCodeAt(++u)}if(s===48){s=a.charCodeAt(++u);if(s>=48&&s<=57){throw syntaxError(e,u,"Invalid number, unexpected digit after 0: ".concat(printCharCode(s),"."))}}else{u=readDigits(e,u,s);s=a.charCodeAt(u)}if(s===46){c=true;s=a.charCodeAt(++u);u=readDigits(e,u,s);s=a.charCodeAt(u)}if(s===69||s===101){c=true;s=a.charCodeAt(++u);if(s===43||s===45){s=a.charCodeAt(++u)}u=readDigits(e,u,s);s=a.charCodeAt(u)}if(s===46||isNameStart(s)){throw syntaxError(e,u,"Invalid number, expected digit but got: ".concat(printCharCode(s),"."))}return new Token(c?TokenKind.FLOAT:TokenKind.INT,t,u,r,i,o,a.slice(t,u))}function readDigits(e,t,n){var r=e.body;var i=t;var o=n;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw syntaxError(e,i,"Invalid number, expected digit but got: ".concat(printCharCode(o),"."))}function readString(e,t,n,r,i){var o=e.body;var a=t+1;var s=a;var u=0;var c="";while(a<o.length&&!isNaN(u=o.charCodeAt(a))&&u!==10&&u!==13){if(u===34){c+=o.slice(s,a);return new Token(TokenKind.STRING,t,a+1,n,r,i,c)}if(u<32&&u!==9){throw syntaxError(e,a,"Invalid character within String: ".concat(printCharCode(u),"."))}++a;if(u===92){c+=o.slice(s,a-1);u=o.charCodeAt(a);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=uniCharCode(o.charCodeAt(a+1),o.charCodeAt(a+2),o.charCodeAt(a+3),o.charCodeAt(a+4));if(l<0){var f=o.slice(a+1,a+5);throw syntaxError(e,a,"Invalid character escape sequence: \\u".concat(f,"."))}c+=String.fromCharCode(l);a+=4;break}default:throw syntaxError(e,a,"Invalid character escape sequence: \\".concat(String.fromCharCode(u),"."))}++a;s=a}}throw syntaxError(e,a,"Unterminated string.")}function readBlockString(e,t,n,r,i,o){var a=e.body;var s=t+3;var u=s;var c=0;var l="";while(s<a.length&&!isNaN(c=a.charCodeAt(s))){if(c===34&&a.charCodeAt(s+1)===34&&a.charCodeAt(s+2)===34){l+=a.slice(u,s);return new Token(TokenKind.BLOCK_STRING,t,s+3,n,r,i,dedentBlockStringValue(l))}if(c<32&&c!==9&&c!==10&&c!==13){throw syntaxError(e,s,"Invalid character within String: ".concat(printCharCode(c),"."))}if(c===10){++s;++o.line;o.lineStart=s}else if(c===13){if(a.charCodeAt(s+1)===10){s+=2}else{++s}++o.line;o.lineStart=s}else if(c===92&&a.charCodeAt(s+1)===34&&a.charCodeAt(s+2)===34&&a.charCodeAt(s+3)===34){l+=a.slice(u,s)+'"""';s+=4;u=s}else{++s}}throw syntaxError(e,s,"Unterminated string.")}function uniCharCode(e,t,n,r){return char2hex(e)<<12|char2hex(t)<<8|char2hex(n)<<4|char2hex(r)}function char2hex(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function readName(e,t,n,r,i){var o=e.body;var a=o.length;var s=t+1;var u=0;while(s!==a&&!isNaN(u=o.charCodeAt(s))&&(u===95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122)){++s}return new Token(TokenKind.NAME,t,s,n,r,i,o.slice(t,s))}function isNameStart(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}function parse(e,t){var n=new Parser(e,t);return n.parseDocument()}var Parser=function(){function e(e,t){var n=isSource(e)?e:new Source(e);this._lexer=new Lexer(n);this._options=t}var t=e.prototype;t.parseName=function e(){var t=this.expectToken(TokenKind.NAME);return{kind:Kind.NAME,value:t.value,loc:this.loc(t)}};t.parseDocument=function e(){var t=this._lexer.token;return{kind:Kind.DOCUMENT,definitions:this.many(TokenKind.SOF,this.parseDefinition,TokenKind.EOF),loc:this.loc(t)}};t.parseDefinition=function e(){if(this.peek(TokenKind.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(TokenKind.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(TokenKind.BRACE_L)){return{kind:Kind.OPERATION_DEFINITION,operation:"query",name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)}}var n=this.parseOperationType();var r;if(this.peek(TokenKind.NAME)){r=this.parseName()}return{kind:Kind.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(TokenKind.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(TokenKind.PAREN_L,this.parseVariableDefinition,TokenKind.PAREN_R)};t.parseVariableDefinition=function e(){var t=this._lexer.token;return{kind:Kind.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(TokenKind.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(TokenKind.EQUALS)?this.parseValueLiteral(true):undefined,directives:this.parseDirectives(true),loc:this.loc(t)}};t.parseVariable=function e(){var t=this._lexer.token;this.expectToken(TokenKind.DOLLAR);return{kind:Kind.VARIABLE,name:this.parseName(),loc:this.loc(t)}};t.parseSelectionSet=function e(){var t=this._lexer.token;return{kind:Kind.SELECTION_SET,selections:this.many(TokenKind.BRACE_L,this.parseSelection,TokenKind.BRACE_R),loc:this.loc(t)}};t.parseSelection=function e(){return this.peek(TokenKind.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(TokenKind.COLON)){r=n;i=this.parseName()}else{i=n}return{kind:Kind.FIELD,alias:r,name:i,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(TokenKind.BRACE_L)?this.parseSelectionSet():undefined,loc:this.loc(t)}};t.parseArguments=function e(t){var n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(TokenKind.PAREN_L,n,TokenKind.PAREN_R)};t.parseArgument=function e(){var t=this._lexer.token;var n=this.parseName();this.expectToken(TokenKind.COLON);return{kind:Kind.ARGUMENT,name:n,value:this.parseValueLiteral(false),loc:this.loc(t)}};t.parseConstArgument=function e(){var t=this._lexer.token;return{kind:Kind.ARGUMENT,name:this.parseName(),value:(this.expectToken(TokenKind.COLON),this.parseValueLiteral(true)),loc:this.loc(t)}};t.parseFragment=function e(){var t=this._lexer.token;this.expectToken(TokenKind.SPREAD);var n=this.expectOptionalKeyword("on");if(!n&&this.peek(TokenKind.NAME)){return{kind:Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false),loc:this.loc(t)}}return{kind:Kind.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:Kind.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:Kind.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 TokenKind.BRACKET_L:return this.parseList(t);case TokenKind.BRACE_L:return this.parseObject(t);case TokenKind.INT:this._lexer.advance();return{kind:Kind.INT,value:n.value,loc:this.loc(n)};case TokenKind.FLOAT:this._lexer.advance();return{kind:Kind.FLOAT,value:n.value,loc:this.loc(n)};case TokenKind.STRING:case TokenKind.BLOCK_STRING:return this.parseStringLiteral();case TokenKind.NAME:this._lexer.advance();switch(n.value){case"true":return{kind:Kind.BOOLEAN,value:true,loc:this.loc(n)};case"false":return{kind:Kind.BOOLEAN,value:false,loc:this.loc(n)};case"null":return{kind:Kind.NULL,loc:this.loc(n)};default:return{kind:Kind.ENUM,value:n.value,loc:this.loc(n)}}case TokenKind.DOLLAR:if(!t){return this.parseVariable()}break}throw this.unexpected()};t.parseStringLiteral=function e(){var t=this._lexer.token;this._lexer.advance();return{kind:Kind.STRING,value:t.value,block:t.kind===TokenKind.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:Kind.LIST,values:this.any(TokenKind.BRACKET_L,i,TokenKind.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:Kind.OBJECT,fields:this.any(TokenKind.BRACE_L,i,TokenKind.BRACE_R),loc:this.loc(r)}};t.parseObjectField=function e(t){var n=this._lexer.token;var r=this.parseName();this.expectToken(TokenKind.COLON);return{kind:Kind.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t),loc:this.loc(n)}};t.parseDirectives=function e(t){var n=[];while(this.peek(TokenKind.AT)){n.push(this.parseDirective(t))}return n};t.parseDirective=function e(t){var n=this._lexer.token;this.expectToken(TokenKind.AT);return{kind:Kind.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(TokenKind.BRACKET_L)){n=this.parseTypeReference();this.expectToken(TokenKind.BRACKET_R);n={kind:Kind.LIST_TYPE,type:n,loc:this.loc(t)}}else{n=this.parseNamedType()}if(this.expectOptionalToken(TokenKind.BANG)){return{kind:Kind.NON_NULL_TYPE,type:n,loc:this.loc(t)}}return n};t.parseNamedType=function e(){var t=this._lexer.token;return{kind:Kind.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===TokenKind.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(TokenKind.STRING)||this.peek(TokenKind.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(TokenKind.BRACE_L,this.parseOperationTypeDefinition,TokenKind.BRACE_R);return{kind:Kind.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(TokenKind.COLON);var r=this.parseNamedType();return{kind:Kind.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:Kind.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 o=this.parseDirectives(true);var a=this.parseFieldsDefinition();return{kind:Kind.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:a,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(TokenKind.AMP);do{n.push(this.parseNamedType())}while(this.expectOptionalToken(TokenKind.AMP)||this.peek(TokenKind.NAME));return n}return this.delimitedMany(TokenKind.AMP,this.parseNamedType)};t.parseFieldsDefinition=function e(){var t;if(((t=this._options)===null||t===void 0?void 0:t.allowLegacySDLEmptyFields)===true&&this.peek(TokenKind.BRACE_L)&&this._lexer.lookahead().kind===TokenKind.BRACE_R){this._lexer.advance();this._lexer.advance();return[]}return this.optionalMany(TokenKind.BRACE_L,this.parseFieldDefinition,TokenKind.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(TokenKind.COLON);var o=this.parseTypeReference();var a=this.parseDirectives(true);return{kind:Kind.FIELD_DEFINITION,description:n,name:r,arguments:i,type:o,directives:a,loc:this.loc(t)}};t.parseArgumentDefs=function e(){return this.optionalMany(TokenKind.PAREN_L,this.parseInputValueDef,TokenKind.PAREN_R)};t.parseInputValueDef=function e(){var t=this._lexer.token;var n=this.parseDescription();var r=this.parseName();this.expectToken(TokenKind.COLON);var i=this.parseTypeReference();var o;if(this.expectOptionalToken(TokenKind.EQUALS)){o=this.parseValueLiteral(true)}var a=this.parseDirectives(true);return{kind:Kind.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:o,directives:a,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 o=this.parseDirectives(true);var a=this.parseFieldsDefinition();return{kind:Kind.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:o,fields:a,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 o=this.parseUnionMemberTypes();return{kind:Kind.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:o,loc:this.loc(t)}};t.parseUnionMemberTypes=function e(){return this.expectOptionalToken(TokenKind.EQUALS)?this.delimitedMany(TokenKind.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 o=this.parseEnumValuesDefinition();return{kind:Kind.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:o,loc:this.loc(t)}};t.parseEnumValuesDefinition=function e(){return this.optionalMany(TokenKind.BRACE_L,this.parseEnumValueDefinition,TokenKind.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:Kind.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 o=this.parseInputFieldsDefinition();return{kind:Kind.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:o,loc:this.loc(t)}};t.parseInputFieldsDefinition=function e(){return this.optionalMany(TokenKind.BRACE_L,this.parseInputValueDef,TokenKind.BRACE_R)};t.parseTypeSystemExtension=function e(){var t=this._lexer.lookahead();if(t.kind===TokenKind.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(TokenKind.BRACE_L,this.parseOperationTypeDefinition,TokenKind.BRACE_R);if(n.length===0&&r.length===0){throw this.unexpected()}return{kind:Kind.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:Kind.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 o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0){throw this.unexpected()}return{kind:Kind.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o,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 o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0){throw this.unexpected()}return{kind:Kind.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:o,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:Kind.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:Kind.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:Kind.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(TokenKind.AT);var r=this.parseName();var i=this.parseArgumentDefs();var o=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var a=this.parseDirectiveLocations();return{kind:Kind.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:o,locations:a,loc:this.loc(t)}};t.parseDirectiveLocations=function e(){return this.delimitedMany(TokenKind.PIPE,this.parseDirectiveLocation)};t.parseDirectiveLocation=function e(){var t=this._lexer.token;var n=this.parseName();if(DirectiveLocation[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 Location(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 syntaxError(this._lexer.source,n.start,"Expected ".concat(getTokenKindDesc(t),", found ").concat(getTokenDesc(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===TokenKind.NAME&&n.value===t){this._lexer.advance()}else{throw syntaxError(this._lexer.source,n.start,'Expected "'.concat(t,'", found ').concat(getTokenDesc(n),"."))}};t.expectOptionalKeyword=function e(t){var n=this._lexer.token;if(n.kind===TokenKind.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 syntaxError(this._lexer.source,n.start,"Unexpected ".concat(getTokenDesc(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 getTokenDesc(e){var t=e.value;return getTokenKindDesc(e.kind)+(t!=null?' "'.concat(t,'"'):"")}function getTokenKindDesc(e){return isPunctuatorTokenKind(e)?'"'.concat(e,'"'):e}var QueryDocumentKeys={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 BREAK=Object.freeze({});function visit(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:QueryDocumentKeys;var r=undefined;var i=Array.isArray(e);var o=[e];var a=-1;var s=[];var u=undefined;var c=undefined;var l=undefined;var f=[];var d=[];var p=e;do{a++;var h=a===o.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 _=0;_<s.length;_++){var w=s[_][0];var T=s[_][1];if(i){w-=E}if(i&&T===null){u.splice(w,1);E++}else{u[w]=T}}}a=r.index;o=r.keys;s=r.edits;i=r.inArray;r=r.prev}else{c=l?i?a:o[a]:undefined;u=l?l[c]:p;if(u===null||u===undefined){continue}if(l){f.push(c)}}var S=void 0;if(!Array.isArray(u)){if(!isNode(u)){throw new Error("Invalid AST Node: ".concat(inspect(u),"."))}var C=getVisitFn(t,u.kind,h);if(C){S=C.call(t,u,c,l,f,d);if(S===BREAK){break}if(S===false){if(!h){f.pop();continue}}else if(S!==undefined){s.push([c,S]);if(!h){if(isNode(S)){u=S}else{f.pop();continue}}}}}if(S===undefined&&v){s.push([c,u])}if(h){f.pop()}else{var O;r={inArray:i,index:a,keys:o,edits:s,prev:r};i=Array.isArray(u);o=i?u:(O=n[u.kind])!==null&&O!==void 0?O:[];a=-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 getVisitFn(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 o=n?e.leave:e.enter;if(o){if(typeof o==="function"){return o}var a=o[t];if(typeof a==="function"){return a}}}}function print(e){return visit(e,{leave:printDocASTReducer})}var MAX_LINE_LENGTH=80;var printDocASTReducer={Name:function e(t){return t.value},Variable:function e(t){return"$"+t.name},Document:function e(t){return join(t.definitions,"\n\n")+"\n"},OperationDefinition:function e(t){var n=t.operation;var r=t.name;var i=wrap("(",join(t.variableDefinitions,", "),")");var o=join(t.directives," ");var a=t.selectionSet;return!r&&!o&&!i&&n==="query"?a:join([n,join([r,i]),o,a]," ")},VariableDefinition:function e(t){var n=t.variable,r=t.type,i=t.defaultValue,o=t.directives;return n+": "+r+wrap(" = ",i)+wrap(" ",join(o," "))},SelectionSet:function e(t){var n=t.selections;return block(n)},Field:function e(t){var n=t.alias,r=t.name,i=t.arguments,o=t.directives,a=t.selectionSet;var s=wrap("",n,": ")+r;var u=s+wrap("(",join(i,", "),")");if(u.length>MAX_LINE_LENGTH){u=s+wrap("(\n",indent(join(i,"\n")),"\n)")}return join([u,join(o," "),a]," ")},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+wrap(" ",join(r," "))},InlineFragment:function e(t){var n=t.typeCondition,r=t.directives,i=t.selectionSet;return join(["...",wrap("on ",n),join(r," "),i]," ")},FragmentDefinition:function e(t){var n=t.name,r=t.typeCondition,i=t.variableDefinitions,o=t.directives,a=t.selectionSet;return"fragment ".concat(n).concat(wrap("(",join(i,", "),")")," ")+"on ".concat(r," ").concat(wrap("",join(o," ")," "))+a},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?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"["+join(n,", ")+"]"},ObjectValue:function e(t){var n=t.fields;return"{"+join(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+wrap("(",join(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:addDescription((function(e){var t=e.directives,n=e.operationTypes;return join(["schema",join(t," "),block(n)]," ")})),OperationTypeDefinition:function e(t){var n=t.operation,r=t.type;return n+": "+r},ScalarTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives;return join(["scalar",t,join(n," ")]," ")})),ObjectTypeDefinition:addDescription((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["type",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")})),FieldDefinition:addDescription((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+": "+r+wrap(" ",join(i," "))})),InputValueDefinition:addDescription((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return join([t+": "+n,wrap("= ",r),join(i," ")]," ")})),InterfaceTypeDefinition:addDescription((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return join(["interface",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")})),UnionTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.types;return join(["union",t,join(n," "),r&&r.length!==0?"= "+join(r," | "):""]," ")})),EnumTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.values;return join(["enum",t,join(n," "),block(r)]," ")})),EnumValueDefinition:addDescription((function(e){var t=e.name,n=e.directives;return join([t,join(n," ")]," ")})),InputObjectTypeDefinition:addDescription((function(e){var t=e.name,n=e.directives,r=e.fields;return join(["input",t,join(n," "),block(r)]," ")})),DirectiveDefinition:addDescription((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+(r?" repeatable":"")+" on "+join(i," | ")})),SchemaExtension:function e(t){var n=t.directives,r=t.operationTypes;return join(["extend schema",join(n," "),block(r)]," ")},ScalarTypeExtension:function e(t){var n=t.name,r=t.directives;return join(["extend scalar",n,join(r," ")]," ")},ObjectTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,o=t.fields;return join(["extend type",n,wrap("implements ",join(r," & ")),join(i," "),block(o)]," ")},InterfaceTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,o=t.fields;return join(["extend interface",n,wrap("implements ",join(r," & ")),join(i," "),block(o)]," ")},UnionTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.types;return join(["extend union",n,join(r," "),i&&i.length!==0?"= "+join(i," | "):""]," ")},EnumTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.values;return join(["extend enum",n,join(r," "),block(i)]," ")},InputObjectTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.fields;return join(["extend input",n,join(r," "),block(i)]," ")}};function addDescription(e){return function(t){return join([t.description,e(t)],"\n")}}function join(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 block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"";return t!=null&&t!==""?e+t+n:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function isMultiline(e){return e.indexOf("\n")!==-1}function hasMultilineItems(e){return e!=null&&e.some(isMultiline)}function memoize(e,t){var n=t&&t.cache?t.cache:cacheDefault;var r=t&&t.serializer?t.serializer:serializerDefault;var i=t&&t.strategy?t.strategy:strategyDefault;return i(e,{cache:n,serializer:r})}function isPrimitive(e){return e==null||typeof e==="number"||typeof e==="boolean"}function monadic(e,t,n,r){var i=isPrimitive(r)?r:n(r);var o=t.get(i);if(typeof o==="undefined"){o=e.call(this,r);t.set(i,o)}return o}function variadic(e,t,n){var r=Array.prototype.slice.call(arguments,3);var i=n(r);var o=t.get(i);if(typeof o==="undefined"){o=e.apply(this,r);t.set(i,o)}return o}function assemble(e,t,n,r,i){return n.bind(t,e,r,i)}function strategyDefault(e,t){var n=e.length===1?monadic:variadic;return assemble(e,this,n,t.cache.create(),t.serializer)}function strategyVariadic(e,t){var n=variadic;return assemble(e,this,n,t.cache.create(),t.serializer)}function strategyMonadic(e,t){var n=monadic;return assemble(e,this,n,t.cache.create(),t.serializer)}function serializerDefault(){return JSON.stringify(arguments)}function ObjectWithoutPrototypeCache(){this.cache=Object.create(null)}ObjectWithoutPrototypeCache.prototype.has=function(e){return e in this.cache};ObjectWithoutPrototypeCache.prototype.get=function(e){return this.cache[e]};ObjectWithoutPrototypeCache.prototype.set=function(e,t){this.cache[e]=t};var cacheDefault={create:function e(){return new ObjectWithoutPrototypeCache}};var src=memoize;var strategies={variadic:strategyVariadic,monadic:strategyMonadic};src.strategies=strategies;function isFunction(e){return typeof e==="function"}var _enable_super_gross_mode_that_will_cause_bad_things=false;var config={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(_enable_super_gross_mode_that_will_cause_bad_things){console.log("RxJS: Back to a better error behavior. Thank you. <3")}_enable_super_gross_mode_that_will_cause_bad_things=e},get useDeprecatedSynchronousErrorHandling(){return _enable_super_gross_mode_that_will_cause_bad_things}};function hostReportError(e){setTimeout((function(){throw e}),0)}var empty={closed:true,next:function(e){},error:function(e){if(config.useDeprecatedSynchronousErrorHandling){throw e}else{hostReportError(e)}},complete:function(){}};var isArray=function(){return Array.isArray||function(e){return e&&typeof e.length==="number"}}();function isObject(e){return e!==null&&typeof e==="object"}var UnsubscriptionErrorImpl=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 UnsubscriptionError=UnsubscriptionErrorImpl;var Subscription=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,o=n._unsubscribe,a=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(isFunction(o)){if(i){this._unsubscribe=undefined}try{o.call(this)}catch(e){t=e instanceof UnsubscriptionError?flattenUnsubscriptionErrors(e.errors):[e]}}if(isArray(a)){var s=-1;var c=a.length;while(++s<c){var l=a[s];if(isObject(l)){try{l.unsubscribe()}catch(e){t=t||[];if(e instanceof UnsubscriptionError){t=t.concat(flattenUnsubscriptionErrors(e.errors))}else{t.push(e)}}}}}if(t){throw new UnsubscriptionError(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 o=this._subscriptions;if(o===null){this._subscriptions=[n]}else{o.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}();Subscription.EMPTY=function(e){e.closed=true;return e}(new Subscription);function flattenUnsubscriptionErrors(e){return e.reduce((function(e,t){return e.concat(t instanceof UnsubscriptionError?t.errors:t)}),[])}var rxSubscriber=function(){return typeof Symbol==="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();var Subscriber=function(e){__extends(t,e);function t(n,r,i){var o=e.call(this)||this;o.syncErrorValue=null;o.syncErrorThrown=false;o.syncErrorThrowable=false;o.isStopped=false;switch(arguments.length){case 0:o.destination=empty;break;case 1:if(!n){o.destination=empty;break}if(typeof n==="object"){if(n instanceof t){o.syncErrorThrowable=n.syncErrorThrowable;o.destination=n;n.add(o)}else{o.syncErrorThrowable=true;o.destination=new SafeSubscriber(o,n)}break}default:o.syncErrorThrowable=true;o.destination=new SafeSubscriber(o,n,r,i);break}return o}t.prototype[rxSubscriber]=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}(Subscription);var SafeSubscriber=function(e){__extends(t,e);function t(t,n,r,i){var o=e.call(this)||this;o._parentSubscriber=t;var a;var s=o;if(isFunction(n)){a=n}else if(n){a=n.next;r=n.error;i=n.complete;if(n!==empty){s=Object.create(n);if(isFunction(s.unsubscribe)){o.add(s.unsubscribe.bind(s))}s.unsubscribe=o.unsubscribe.bind(o)}}o._context=s;o._next=a;o._error=r;o._complete=i;return o}t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;if(!config.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=config.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}hostReportError(e)}else{if(n){t.syncErrorValue=e;t.syncErrorThrown=true}else{hostReportError(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(!config.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(config.useDeprecatedSynchronousErrorHandling){throw e}else{hostReportError(e)}}};t.prototype.__tryOrSetError=function(e,t,n){if(!config.useDeprecatedSynchronousErrorHandling){throw new Error("bad call")}try{t.call(this._context,n)}catch(t){if(config.useDeprecatedSynchronousErrorHandling){e.syncErrorValue=t;e.syncErrorThrown=true;return true}else{hostReportError(t);return true}}return false};t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null;this._parentSubscriber=null;e.unsubscribe()};return t}(Subscriber);function canReportError(e){while(e){var t=e.closed,n=e.destination,r=e.isStopped;if(t||r){return false}else if(n&&n instanceof Subscriber){e=n}else{e=null}}return true}function toSubscriber(e,t,n){if(e){if(e instanceof Subscriber){return e}if(e[rxSubscriber]){return e[rxSubscriber]()}}if(!e&&!t&&!n){return new Subscriber(empty)}return new Subscriber(e,t,n)}var observable=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}();function identity(e){return e}function pipeFromArray(e){if(e.length===0){return identity}if(e.length===1){return e[0]}return function t(n){return e.reduce((function(e,t){return t(e)}),n)}}var Observable=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=toSubscriber(e,t,n);if(r){i.add(r.call(i,this.source))}else{i.add(this.source||config.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i))}if(config.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(config.useDeprecatedSynchronousErrorHandling){e.syncErrorThrown=true;e.syncErrorValue=t}if(canReportError(e)){e.error(t)}else{console.warn(t)}}};e.prototype.forEach=function(e,t){var n=this;t=getPromiseCtor(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[observable]=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 pipeFromArray(e)(this)};e.prototype.toPromise=function(e){var t=this;e=getPromiseCtor(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}();Observable.create=function(e){return new Observable(e)};function getPromiseCtor(e){if(!e){e=Promise}if(!e){throw new Error("no Promise impl found")}return e}var ObjectUnsubscribedErrorImpl=function(){function e(){Error.call(this);this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}e.prototype=Object.create(Error.prototype);return e}();var ObjectUnsubscribedError=ObjectUnsubscribedErrorImpl;var SubjectSubscription=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}(Subscription);var SubjectSubscriber=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.destination=t;return n}return t}(Subscriber);var Subject=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[rxSubscriber]=function(){return new SubjectSubscriber(this)};t.prototype.lift=function(e){var t=new AnonymousSubject(this,this);t.operator=e;return t};t.prototype.next=function(e){if(this.closed){throw new ObjectUnsubscribedError}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 ObjectUnsubscribedError}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 ObjectUnsubscribedError}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 ObjectUnsubscribedError}else{return e.prototype._trySubscribe.call(this,t)}};t.prototype._subscribe=function(e){if(this.closed){throw new ObjectUnsubscribedError}else if(this.hasError){e.error(this.thrownError);return Subscription.EMPTY}else if(this.isStopped){e.complete();return Subscription.EMPTY}else{this.observers.push(e);return new SubjectSubscription(this,e)}};t.prototype.asObservable=function(){var e=new Observable;e.source=this;return e};return t}(Observable);Subject.create=function(e,t){return new AnonymousSubject(e,t)};var AnonymousSubject=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 Subscription.EMPTY}};return t}(Subject);var Action=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}(Subscription);var AsyncAction=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}(Action);var Scheduler=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}();Scheduler.now=function(){return Date.now()};var AsyncScheduler=function(e){__extends(t,e);function t(n,r){if(r===void 0){r=Scheduler.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}(Scheduler);function isScheduler(e){return e&&typeof e.schedule==="function"}var asyncScheduler=new AsyncScheduler(AsyncAction);var async=asyncScheduler;function bufferTime(e){var t=arguments.length;var n=async;if(isScheduler(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(o){return o.lift(new BufferTimeOperator(e,r,i,n))}}var BufferTimeOperator=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 BufferTimeSubscriber(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))};return e}();var Context=function(){function e(){this.buffer=[]}return e}();var BufferTimeSubscriber=function(e){__extends(t,e);function t(t,n,r,i,o){var a=e.call(this,t)||this;a.bufferTimeSpan=n;a.bufferCreationInterval=r;a.maxBufferSize=i;a.scheduler=o;a.contexts=[];var s=a.openContext();a.timespanOnly=r==null||r<0;if(a.timespanOnly){var u={subscriber:a,context:s,bufferTimeSpan:n};a.add(s.closeAction=o.schedule(dispatchBufferTimeSpanOnly,n,u))}else{var c={subscriber:a,context:s};var l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:a,scheduler:o};a.add(s.closeAction=o.schedule(dispatchBufferClose,n,c));a.add(o.schedule(dispatchBufferCreation,r,l))}return a}t.prototype._next=function(e){var t=this.contexts;var n=t.length;var r;for(var i=0;i<n;i++){var o=t[i];var a=o.buffer;a.push(e);if(a.length==this.maxBufferSize){r=o}}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(dispatchBufferTimeSpanOnly,n,r))}};t.prototype.openContext=function(){var e=new Context;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}(Subscriber);function dispatchBufferTimeSpanOnly(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 dispatchBufferCreation(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler;var o=r.openContext();var a=this;if(!r.closed){r.add(o.closeAction=i.schedule(dispatchBufferClose,n,{subscriber:r,context:o}));a.schedule(e,t)}}function dispatchBufferClose(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var nanoid=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 types=createCommonjsModule((function(e,t){var n=commonjsGlobal&&commonjsGlobal.__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 o=t.extractMessage(n)+": "+JSON.stringify({response:n,request:r});i=e.call(this,o)||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 browserPonyfill=createCommonjsModule((function(e,t){var n=function(e){function t(){this.fetch=false;this.DOMException=e.DOMException}t.prototype=e;return new t}(typeof self!=="undefined"?self:commonjsGlobal);(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 o=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1}}function a(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=a(e);t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};c.prototype["delete"]=function(e){delete this.map[a(e)]};c.prototype.get=function(e){e=a(e);return this.has(e)?this.map[e]:null};c.prototype.has=function(e){return this.map.hasOwnProperty(a(e))};c.prototype.set=function(e,t){this.map[a(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)||o(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 _(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 w(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(w.prototype);w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})};w.error=function(){var e=new w(null,{status:0,statusText:""});e.type="error";return e};var T=[301,302,303,307,308];w.redirect=function(e,t){if(T.indexOf(t)===-1){throw new RangeError("Invalid status code")}return new w(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 S(e,r){return new Promise((function(i,o){var a=new g(e,r);if(a.signal&&a.signal.aborted){return o(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:_(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 w(t,e))};s.onerror=function(){o(new TypeError("Network request failed"))};s.ontimeout=function(){o(new TypeError("Network request failed"))};s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))};s.open(a.method,a.url,true);if(a.credentials==="include"){s.withCredentials=true}else if(a.credentials==="omit"){s.withCredentials=false}if("responseType"in s&&n.blob){s.responseType="blob"}a.headers.forEach((function(e,t){s.setRequestHeader(t,e)}));if(a.signal){a.signal.addEventListener("abort",u);s.onreadystatechange=function(){if(s.readyState===4){a.signal.removeEventListener("abort",u)}}}s.send(typeof a._bodyInit==="undefined"?null:a._bodyInit)}))}S.polyfill=true;if(!e.fetch){e.fetch=S;e.Headers=c;e.Request=g;e.Response=w}t.Headers=c;t.Request=g;t.Response=w;t.fetch=S;return t}({})})(n);delete n.fetch.polyfill;t=n.fetch;t.default=n.fetch;t.fetch=n.fetch;t.Headers=n.Headers;t.Request=n.Request;t.Response=n.Response;e.exports=t}));var nodejsCustomInspectSymbol_1=createCommonjsModule((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 inspect_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=s;var n=r(nodejsCustomInspectSymbol_1);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 o=10;var a=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>a){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>a){return"[Array]"}var n=Math.min(o,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 invariant_1=createCommonjsModule((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 defineInspect_1=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=o;var n=i(invariant_1);var r=i(nodejsCustomInspectSymbol_1);function i(e){return e&&e.__esModule?e:{default:e}}function o(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 ast=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.isNode=a;t.Token=t.Location=void 0;var n=r(defineInspect_1);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 o=function(){function e(e,t,n,r,i,o,a){this.kind=e;this.start=t;this.end=n;this.line=r;this.column=i;this.value=a;this.prev=o;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=o;(0,n.default)(o);function a(e){return e!=null&&typeof e.kind==="string"}}));var visitor=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.visit=a;t.visitInParallel=s;t.getVisitFn=u;t.BREAK=t.QueryDocumentKeys=void 0;var n=r(inspect_1);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 o=Object.freeze({});t.BREAK=o;function a(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:i;var a=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 _=0,w=Object.keys(d);_<w.length;_++){var T=w[_];E[T]=d[T]}d=E}var S=0;for(var C=0;C<f.length;C++){var O=f[C][0];var I=f[C][1];if(s){O-=S}if(s&&I===null){d.splice(O,1);S++}else{d[O]=I}}}l=a.index;c=a.keys;f=a.edits;s=a.inArray;a=a.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 k=void 0;if(!Array.isArray(d)){if(!(0,ast.isNode)(d)){throw new Error("Invalid AST Node: ".concat((0,n.default)(d),"."))}var x=u(t,d.kind,b);if(x){k=x.call(t,d,p,h,v,y);if(k===o){break}if(k===false){if(!b){v.pop();continue}}else if(k!==undefined){f.push([p,k]);if(!b){if((0,ast.isNode)(k)){d=k}else{v.pop();continue}}}}}if(k===undefined&&g){f.push([p,d])}if(b){v.pop()}else{var A;a={inArray:s,index:l,keys:c,edits:f,prev:a};s=Array.isArray(d);c=s?d:(A=r[d.kind])!==null&&A!==void 0?A:[];l=-1;f=[];if(h){y.push(h)}h=d}}while(a!==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 a=u(e[i],r.kind,false);if(a){var s=a.apply(e[i],arguments);if(s===false){t[i]=r}else if(s===o){t[i]=o}else if(s!==undefined){return s}}}}},leave:function n(r){for(var i=0;i<e.length;i++){if(t[i]==null){var a=u(e[i],r.kind,true);if(a){var s=a.apply(e[i],arguments);if(s===o){t[i]=o}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 o=n?e.leave:e.enter;if(o){if(typeof o==="function"){return o}var a=o[t];if(typeof a==="function"){return a}}}}}));var blockString=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringValue=n;t.getBlockStringIndentation=i;t.printBlockString=o;function n(e){var t=e.split(/\r\n|[\n\r]/g);var n=i(e);if(n!==0){for(var o=1;o<t.length;o++){t[o]=t[o].slice(n)}}var a=0;while(a<t.length&&r(t[a])){++a}var s=t.length;while(s>a&&r(t[s-1])){--s}return t.slice(a,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 o=null;for(var a=0;a<e.length;++a){switch(e.charCodeAt(a)){case 13:if(e.charCodeAt(a+1)===10){++a}case 10:n=false;r=true;i=0;break;case 9:case 32:++i;break;default:if(r&&!n&&(o===null||i<o)){o=i}r=false}}return(t=o)!==null&&t!==void 0?t:0}function o(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 o=e[e.length-1]==='"';var a=e[e.length-1]==="\\";var s=!r||o||a||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 printer=createCommonjsModule((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.print=n;function n(e){return(0,visitor.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 a(t.definitions,"\n\n")+"\n"},OperationDefinition:function e(t){var n=t.operation;var r=t.name;var i=u("(",a(t.variableDefinitions,", "),")");var o=a(t.directives," ");var s=t.selectionSet;return!r&&!o&&!i&&n==="query"?s:a([n,a([r,i]),o,s]," ")},VariableDefinition:function e(t){var n=t.variable,r=t.type,i=t.defaultValue,o=t.directives;return n+": "+r+u(" = ",i)+u(" ",a(o," "))},SelectionSet:function e(t){var n=t.selections;return s(n)},Field:function e(t){var n=t.alias,i=t.name,o=t.arguments,s=t.directives,l=t.selectionSet;var f=u("",n,": ")+i;var d=f+u("(",a(o,", "),")");if(d.length>r){d=f+u("(\n",c(a(o,"\n")),"\n)")}return a([d,a(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(" ",a(r," "))},InlineFragment:function e(t){var n=t.typeCondition,r=t.directives,i=t.selectionSet;return a(["...",u("on ",n),a(r," "),i]," ")},FragmentDefinition:function e(t){var n=t.name,r=t.typeCondition,i=t.variableDefinitions,o=t.directives,s=t.selectionSet;return"fragment ".concat(n).concat(u("(",a(i,", "),")")," ")+"on ".concat(r," ").concat(u("",a(o," ")," "))+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,blockString.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"["+a(n,", ")+"]"},ObjectValue:function e(t){var n=t.fields;return"{"+a(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("(",a(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:o((function(e){var t=e.directives,n=e.operationTypes;return a(["schema",a(t," "),s(n)]," ")})),OperationTypeDefinition:function e(t){var n=t.operation,r=t.type;return n+": "+r},ScalarTypeDefinition:o((function(e){var t=e.name,n=e.directives;return a(["scalar",t,a(n," ")]," ")})),ObjectTypeDefinition:o((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return a(["type",t,u("implements ",a(n," & ")),a(r," "),s(i)]," ")})),FieldDefinition:o((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(f(n)?u("(\n",c(a(n,"\n")),"\n)"):u("(",a(n,", "),")"))+": "+r+u(" ",a(i," "))})),InputValueDefinition:o((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return a([t+": "+n,u("= ",r),a(i," ")]," ")})),InterfaceTypeDefinition:o((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return a(["interface",t,u("implements ",a(n," & ")),a(r," "),s(i)]," ")})),UnionTypeDefinition:o((function(e){var t=e.name,n=e.directives,r=e.types;return a(["union",t,a(n," "),r&&r.length!==0?"= "+a(r," | "):""]," ")})),EnumTypeDefinition:o((function(e){var t=e.name,n=e.directives,r=e.values;return a(["enum",t,a(n," "),s(r)]," ")})),EnumValueDefinition:o((function(e){var t=e.name,n=e.directives;return a([t,a(n," ")]," ")})),InputObjectTypeDefinition:o((function(e){var t=e.name,n=e.directives,r=e.fields;return a(["input",t,a(n," "),s(r)]," ")})),DirectiveDefinition:o((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(f(n)?u("(\n",c(a(n,"\n")),"\n)"):u("(",a(n,", "),")"))+(r?" repeatable":"")+" on "+a(i," | ")})),SchemaExtension:function e(t){var n=t.directives,r=t.operationTypes;return a(["extend schema",a(n," "),s(r)]," ")},ScalarTypeExtension:function e(t){var n=t.name,r=t.directives;return a(["extend scalar",n,a(r," ")]," ")},ObjectTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,o=t.fields;return a(["extend type",n,u("implements ",a(r," & ")),a(i," "),s(o)]," ")},InterfaceTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,o=t.fields;return a(["extend interface",n,u("implements ",a(r," & ")),a(i," "),s(o)]," ")},UnionTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.types;return a(["extend union",n,a(r," "),i&&i.length!==0?"= "+a(i," | "):""]," ")},EnumTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.values;return a(["extend enum",n,a(r," "),s(i)]," ")},InputObjectTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.fields;return a(["extend input",n,a(r," "),s(i)]," ")}};function o(e){return function(t){return a([t.description,e(t)],"\n")}}function a(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(a(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 ReactNativeFile=function e(t){var n=t.uri,r=t.name,i=t.type;this.uri=n;this.name=r;this.type=i};var isExtractableFile=function e(t){return typeof File!=="undefined"&&t instanceof File||typeof Blob!=="undefined"&&t instanceof Blob||t instanceof ReactNativeFile};var extractFiles=function e(t,n,r){if(n===void 0){n=""}if(r===void 0){r=isExtractableFile}var i;var o=new Map;function a(e,t){var n=o.get(t);if(n)n.push.apply(n,e);else o.set(t,e)}if(r(t)){i=null;a([n],t)}else{var s=n?n+".":"";if(typeof FileList!=="undefined"&&t instanceof FileList)i=Array.prototype.map.call(t,(function(e,t){a([""+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(a);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(a);i[u]=c.clone}}else i=t}return{clone:i,files:o}};var ReactNativeFile$1=ReactNativeFile;var extractFiles$1=extractFiles;var isExtractableFile$1=isExtractableFile;var _public={ReactNativeFile:ReactNativeFile$1,extractFiles:extractFiles$1,isExtractableFile:isExtractableFile$1};var browser=typeof self=="object"?self.FormData:window.FormData;var createRequestBody_1=createCommonjsModule((function(e,t){var n=commonjsGlobal&&commonjsGlobal.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var r=n(browser);var i=function(e){return _public.isExtractableFile(e)||e!==null&&typeof e==="object"&&typeof e.pipe==="function"};function o(e,t){var n=_public.extractFiles({query:e,variables:t},"",i),o=n.clone,a=n.files;if(a.size===0){return JSON.stringify(o)}var s=typeof FormData==="undefined"?r.default:FormData;var u=new s;u.append("operations",JSON.stringify(o));var c={};var l=0;a.forEach((function(e){c[++l]=e}));u.append("map",JSON.stringify(c));l=0;a.forEach((function(e,t){u.append(""+ ++l,t)}));return u}t.default=o}));var dist=createCommonjsModule((function(e,t){var n=commonjsGlobal&&commonjsGlobal.__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=commonjsGlobal&&commonjsGlobal.__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 i=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=commonjsGlobal&&commonjsGlobal.__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);i(t,e);return t};var a=commonjsGlobal&&commonjsGlobal.__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,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r["throw"](e))}catch(e){o(e)}}function u(e){e.done?n(e.value):i(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))};var s=commonjsGlobal&&commonjsGlobal.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(t){return u([e,t])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=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(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var u=commonjsGlobal&&commonjsGlobal.__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 c=commonjsGlobal&&commonjsGlobal.__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 l=o(browserPonyfill),f=l;var d=c(createRequestBody_1);var p=types;Object.defineProperty(t,"ClientError",{enumerable:true,get:function(){return p.ClientError}});var h=function(e){var t={};if(e){if(typeof Headers!=="undefined"&&e instanceof Headers||e instanceof f.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 v=function(){function e(e,t){this.url=e;this.options=t||{}}e.prototype.rawRequest=function(e,t,r){return a(this,void 0,void 0,(function(){var i,o,a,c,f,p,v,y,m,g,E;return s(this,(function(s){switch(s.label){case 0:i=this.options,o=i.headers,a=i.fetch,c=a===void 0?l.default:a,f=u(i,["headers","fetch"]);p=d.default(e,t);return[4,c(this.url,n({method:"POST",headers:n(n(n({},typeof p==="string"?{"Content-Type":"application/json"}:{}),h(o)),h(r)),body:p},f))];case 1:v=s.sent();return[4,b(v)];case 2:y=s.sent();if(v.ok&&!y.errors&&y.data){m=v.headers,g=v.status;return[2,n(n({},y),{headers:m,status:g})]}else{E=typeof y==="string"?{error:y}:y;throw new types.ClientError(n(n({},E),{status:v.status,headers:v.headers}),{query:e,variables:t})}}}))}))};e.prototype.request=function(e,t,r){return a(this,void 0,void 0,(function(){var i,o,a,c,f,p,v,y,m,E;return s(this,(function(s){switch(s.label){case 0:i=this.options,o=i.headers,a=i.fetch,c=a===void 0?l.default:a,f=u(i,["headers","fetch"]);p=g(e);v=d.default(p,t);return[4,c(this.url,n({method:"POST",headers:n(n(n({},typeof v==="string"?{"Content-Type":"application/json"}:{}),h(o)),h(r)),body:v},f))];case 1:y=s.sent();return[4,b(y)];case 2:m=s.sent();if(y.ok&&!m.errors&&m.data){return[2,m.data]}else{E=typeof m==="string"?{error:m}:m;throw new types.ClientError(n(n({},E),{status:y.status}),{query:p,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=v;function y(e,t,n){return a(this,void 0,void 0,(function(){var r;return s(this,(function(i){r=new v(e);return[2,r.rawRequest(t,n)]}))}))}t.rawRequest=y;function m(e,t,n){return a(this,void 0,void 0,(function(){var r;return s(this,(function(i){r=new v(e);return[2,r.request(t,n)]}))}))}t.request=m;t.default=m;function b(e){var t=e.headers.get("Content-Type");if(t&&t.startsWith("application/json")){return e.json()}else{return e.text()}}function g(e){if(typeof e==="string")return e;return printer.print(e)}function E(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=E;function _(e){var t={};e.forEach((function(e,n){t[n]=e}));return t}}));var utils=createCommonjsModule((function(e,t){var n=commonjsGlobal&&commonjsGlobal.__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=commonjsGlobal&&commonjsGlobal.__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 o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];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 i(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:i(e.value,t)})}))})}else if(e.kind==="ListValue"){return n(n({},e),{values:e.values.map((function(e){return i(e,t)}))})}return e}t.renameValue=i;function o(e,t){return n(n({},e),{value:i(e.value,t)})}t.renameArgument=o;function a(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=a;function s(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 a(e,t)}))})}t.renameVariableDefinition=s;function u(e,t){return n(n({},e),{selections:e.selections.map((function(e){var r,i,s;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?u(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 a(e,t)}))});case"InlineFragment":return n(n({},e),{directives:(s=e.directives)===null||s===void 0?void 0:s.map((function(e){return a(e,t)})),selectionSet:u(e.selectionSet,t)})}}))})}t.renameSelectionSetArguments=u;function c(e,t,r){var i,o;return n(n({},e),{variableDefinitions:(i=e.variableDefinitions)===null||i===void 0?void 0:i.map((function(e){return s(e,t)})),directives:(o=e.directives)===null||o===void 0?void 0:o.map((function(e){return a(e,t)})),selectionSet:u(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=c;function l(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 c(e,t,i)})))})}t.renameVariablesAndTopLevelFields=l;function f(e,t){return Object.keys(e).reduce((function(r,i){var o;return n(n({},r),(o={},o[t(i)]=e[i],o))}),{})}t.renameVariables=f}));var dist$1=createCommonjsModule((function(e,t){var n=commonjsGlobal&&commonjsGlobal.__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=commonjsGlobal&&commonjsGlobal.__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 i=commonjsGlobal&&commonjsGlobal.__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 o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(t,"__esModule",{value:true});var o={kind:"Document",definitions:[]};var a=function(e){n(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Error);var s=function(){function e(e,t,n){this.operationName=e;this.document=t;this.variables=n}e.prototype.add=function(t,n){var o=this;var s=this.document.definitions.concat(t.definitions).filter((function(e){return e.kind==="OperationDefinition"}));if(!s.length){throw new a("Expected at least one OperationDefinition, but found none.")}s.forEach((function(e){var t,n;var r=s.filter((function(t){return t!==e}));r.forEach((function(t){var n,r;if(t.operation!==e.operation){throw new a("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,o,s,u;if((((i=t.alias)===null||i===void 0?void 0:i.value)||t.name.value)===(((o=r.alias)===null||o===void 0?void 0:o.value)||r.name.value)){throw new a("duplicate field definition "+r.name.value+" for oprations "+((s=e.name)===null||s===void 0?void 0:s.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,o;if(t.variable.name.value===r.variable.name.value){throw new a("duplicate variable definition "+r.variable.name.value+" for oprations "+((i=e.name)===null||i===void 0?void 0:i.value)+" and "+((o=n.name)===null||o===void 0?void 0:o.value))}}))}))}))}));var u=function(){if(o.variables&&n){return r(r({},o.variables),n)}return n||o.variables}();var c=[{kind:"OperationDefinition",directives:s.flatMap((function(e){return e.directives||[]})),name:{kind:"Name",value:this.operationName},operation:s[0].operation,selectionSet:{kind:"SelectionSet",selections:s.flatMap((function(e){return e.selectionSet.selections}))},variableDefinitions:s.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=i([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=utils.defaultRenameFn}if(r===void 0){r=utils.defaultRenameFn}if(!t.length){return this}return t.reduce((function(t,i,o){var a=utils.renameVariablesAndTopLevelFields(e,(function(e){return n(e,o)}),(function(e){return r(e,o)}));var s=utils.renameVariables(i,(function(e){return n(e,o)}));return t.add(a,s)}),this)};return e}();function u(e){return{operationName:e,add:function(e,t){return new s(this.operationName,e,t)},addN:function(e,t,n,r){return new s(this.operationName,o).addN(e,t,n,r)}}}t.default=u}));var D=getDefaultExportFromCjs(dist$1);var A={current:void 0};function R(){if(void 0===A.current)throw new Error("no implementation of useHost provided");return A.current()}function V(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");A.current=e}function x(){lazilyStartLocaleContext();var e=R();return h(e,LOCALE_CONTEXT_NAME)}function O(){lazilyStartProgramContext();var e=R();return h(e,PROGRAM_CONTEXT_NAME)}function U(){var e;return null==(e=W())?void 0:e.jwt}function W(){lazilyStartUserContext();var e=R(),t=h(e,USER_CONTEXT_NAME),n=userIdentityFromJwt(null==t?void 0:t.jwt);if(!t||n)return t;setUserIdentity(void 0)}var H=getTenantAlias,L=getAppDomain,_=getEngagementMedium;function T(){return(T=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 Q(e,t){return(Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(e,t){return t||(t=e.slice(0)),e.raw=t,e}function J(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 G(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 J(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)?J(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 B=function(){return(B=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)},K=new Map,Z=new Map,X=!0,Y=!1;function ee(e){return e.replace(/[\s,]+/g," ").trim()}function ne(e){var t,n,r,i=ee(e);if(!K.has(i)){var o=parse(e,{experimentalFragmentVariables:Y});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");K.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=o,n=new Set,r=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=ee((a=e.loc).source.body.substring(a.start,a.end)),o=Z.get(t);o&&!o.has(i)?X&&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"):o||Z.set(t,o=new Set),o.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var a})),B(B({},t),{definitions:r}))))}return K.get(i)}function re(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]})),ne(r)}var te,ae=re;(te=re||(re={})).gql=ae,te.resetCaches=function(){K.clear(),Z.clear()},te.disableFragmentWarnings=function(){X=!1},te.enableExperimentalFragmentVariables=function(){Y=!0},te.disableExperimentalFragmentVariables=function(){Y=!1},re.default=re;var oe=re;function ie(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}var se=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).subject=new Subject;var i=new Subject;return r.subject.pipe(bufferTime(200,void 0,10)).subscribe((function(e){try{if(!e.length)return Promise.resolve();for(var t,n=ce(e),o=n.mergedQuery,a=n.mergedVariables,s=n.mergedQueryAddedEvents,u=G(n.unmergedQueryAddedEvents);!(t=u()).done;)i.next(t.value);return s.length?Promise.resolve(ie((function(){return Promise.resolve(r.superRequest(o,a)).then((function(e){ve(e,s)}))}),(function(e){if(e instanceof types.ClientError){var t=function(){var t=e.response,n=t.data,r=t.errors;if(!n)return{v:pe(s,e)};for(var i,o=Object.keys(n),a=[].concat(s),u=function(){var t=i.value,n=void 0;t.path.find((function(r,i,s){if(o.includes(r)){var u=le(r),c=a.findIndex((function(e){return e.id===u}));if(-1===c)return!1;o.splice(i,1),n=a.splice(c,1)[0];var l=fe(e.response.data,n);s[i]=de(s[i],u);var f=n.query,d=n.variables,p=T({},e.response,{errors:[t],data:l,path:s}),h=new types.ClientError(p,{query:"string"!=typeof f?print(f):f,variables:d});return ge(n,h),!0}return!1}))},c=G(r);!(i=c()).done;)u();ve(n,a)}();if("object"==typeof t)return t.v}else pe(s,e)}))):Promise.resolve()}catch(e){return Promise.reject(e)}})),i.subscribe((function(e){try{var t=ie((function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then((function(t){me(t,e)}))}),(function(t){ge(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,Q(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 o={query:e,variables:t,id:ue(),resolve:r,reject:i};n.subject.next(o)}))},r}(dist.GraphQLClient),ue=function(){return nanoid().replace(/[-_]/g,"")},de=function(e,t){return e.replace("_"+t,"")},le=function(e){var t=e.split("_");return t[t.length-1]},ce=function(e){var t=[],n=[],r=e.reduce((function(e,r){var i=r.query,o=r.variables,a=r.id;try{var s="string"==typeof i?parse(i):i,u=s.definitions.find((function(e){return"FragmentDefinition"===e.kind})),c="string"==typeof i?i:print(i),l=/@/.test(c);if(u||l)return n.push(r),e;var f=function(e){return function(e,t){return e+"_"+t}(e,a)};return e=e.addN(s,[o],f,f),t.push(r),e}catch(t){return n.push(r),e}}),D("BatchedQuery")),i=r.document,o=r.variables;return{mergedQuery:i&&print(i),mergedVariables:o,mergedQueryAddedEvents:t,unmergedQueryAddedEvents:n}},fe=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=T({},t,((i={})[de(n,r)]=e[n],i))),t}),{})},me=function(e,t){(0,t.resolve)(e)},ve=function(e,t){for(var n,r=G(t);!(n=r()).done;){var i=n.value,o=fe(e,i);i.resolve(o)}},ge=function(e,t){(0,e.reject)(t)},pe=function(e,t){for(var n,r=G(e);!(n=r()).done;)(0,n.value.reject)(t)},he="sq:graphql-client",ye=src((function(e,t,n){return new se(e+"/api/v1/"+t+"/graphql",{headers:{Authorization:"Bearer "+(n||"")}})}));function Ce(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 be(e,t){var n,r,i,o,a,s,u=(n=U(),r=L(),i=H(),o=ye(r,i,n),a=R(),null!=(s=h(a,"sq:graphql-client",{attempts:0}))?s:o),c=useReducer(Ce,t),l=c[1];return[c[0],useCallback((function(t,n){void 0===n&&(n=!1);try{if(!u){var r=new Error("No GraphQL client found");return l({type:"errors",payload:r}),Promise.resolve(r)}return Promise.resolve(function(r,i){try{var o=(n||l({type:"loading"}),Promise.resolve(u.request(e,t)).then((function(e){return l({type:"data",payload:e}),e})))}catch(e){return i(e)}return o&&o.then?o.then(void 0,i):o}(0,(function(e){return l({type:"errors",payload:e}),e})))}catch(e){return Promise.reject(e)}}),[u,e,l])]}var we,Pe={loading:!1,data:void 0,errors:void 0};function Fe(e){var t=be(e,Pe);return[t[1],t[0]]}var Ie,Ee=oe(we||(we=z(["\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 Me(){var e=Fe(Ee),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=o(t).user;setUserIdentity({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 Se,$e=oe(Ie||(Ie=z(["\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 De(){var e=Fe($e),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=o(t).user;setUserIdentity({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 ke,je=oe(Se||(Se=z(["\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 qe(){var e=Fe(je),t=e[0],n=e[1],r=n.loading,i=n.data,a=n.errors,s=useState(null),u=s[1];return[function(e){try{return u(null),Promise.resolve(t(e)).then((function(e){var t,n,r,i;if(e instanceof Error)return e;var a=null==(t=e.submitForm)||null==(n=t.results)?void 0:n.find((function(e){var t;return"identity"===(null==e||null==(t=e.formHandler)?void 0:t.namespace)}));if(a&&null!=(r=a.result)&&null!=(i=r.results)&&i.length){var s=a.result.results[0];if(s.success){var c=s.data.token,l=o(c).user;setUserIdentity({jwt:c,id:l.id,accountId:l.accountId,managedIdentity:{email:s.data.email,emailVerified:s.data.emailVerified,sessionData:s.data.sessionData}})}else u(s.message)}return e}))}catch(e){return Promise.reject(e)}},{loading:r,data:i,errors:a,formError:s[0]}]}var Ae,Re=oe(ke||(ke=z(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function Ve(){var e=Fe(Re),t=e[1];return[e[0],{loading:t.loading,data:t.data,errors:t.errors}]}var xe,Oe=oe(Ae||(Ae=z(["\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 Ne(){var e=Fe(Oe),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=o(t).user;setUserIdentity({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 Ue=oe(xe||(xe=z(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function We(){return Fe(Ue)}function He(){var e=R();return{refresh:useCallback((function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}))}),[e])}}function Le(e){var t=e.skip,n=void 0!==t&&t,r=e.update,i=e.variables;useEffect((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=useRef(e),n=useRef(0);return equal(e,t.current)||(t.current=e,n.current+=1),useMemo((function(){return t.current}),[n.current])}([i,r,n]))}var _e,Te={loading:!1,data:void 0,errors:void 0},Qe=Symbol();function ze(e){var t=be(e,Te),n=t[0],r=t[1],i=useRef(Qe);Le({skip:i.current===Qe,update:r,variables:i.current});var o=useCallback((function(e){return i.current=e,r(e)}),[r]);return[r,T({},n,{refetch:o})]}var Je,Ge=oe(_e||(_e=z(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function Be(){var e=W(),t=ze(Ge),n=t[0],r=t[1],i=r.refetch,o=function(t){t instanceof Error||!t.managedIdentitySession||setUserIdentity(T({},e,{managedIdentity:t.managedIdentitySession}))};return[function(){try{return Promise.resolve(n({})).then((function(e){return o(e),e}))}catch(e){return Promise.reject(e)}},{loading:r.loading,data:r.data,errors:r.errors,refetch:function(){try{return Promise.resolve(i()).then((function(e){return o(e),e}))}catch(e){return Promise.reject(e)}}}]}var Ke,Ze=oe(Je||(Je=z(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Xe(){var e=Be()[0],t=Fe(Ze),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 Ye,en=oe(Ke||(Ke=z(["\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 nn(){return Fe(en)}var rn,tn=oe(Ye||(Ye=z(["\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 an(){return Fe(tn)}var on=oe(rn||(rn=z(["\n mutation UpsertPasswordlessUser(\n $email: String!\n $firstName: String\n $lastName: String\n $locale: RSLocale\n $countryCode: RSCountryCode\n $cookies: String\n ) {\n upsertPasswordlessUser(\n passwordlessUserInput: {\n email: $email\n firstName: $firstName\n lastName: $lastName\n locale: $locale\n countryCode: $countryCode\n cookies: $cookies\n }\n ) {\n user {\n id\n accountId\n }\n token\n }\n }\n"])));function sn(){var e=Fe(on),t=e[0],n=e[1];return[function(e){try{return Promise.resolve(t(e)).then((function(e){return console.log({result:e}),e instanceof Error||!e.upsertPasswordlessUser||setUserIdentity({jwt:e.upsertPasswordlessUser.token,id:e.upsertPasswordlessUser.user.id,accountId:e.upsertPasswordlessUser.user.accountId}),e}))}catch(e){return Promise.reject(e)}},{loading:n.loading,data:n.data,errors:n.errors}]}function un(e,t){var n=useRef();return n.current&&equal(t,n.current.key)||(n.current={key:t,value:e()}),n.current.value}function dn(){return useReducer((function(e){return e+1}),0)}function ln(e){for(var t,n=G(Object.getOwnPropertyNames(e));!(t=n()).done;){var r=e[t.value];r&&"object"==typeof r&&ln(r)}return Object.freeze(e)}var cn={loading:!0,data:void 0,errors:void 0};function fn(e,t,n){var r=be(e,cn),i=r[0],o=r[1],a=dn(),s=a[1];return un((function(){!n&&o(t)}),[e,t,o,a[0],n]),Le({skip:n,update:o,variables:t}),ln(T({},i,{refetch:s}))}function mn(){var e=dn()[1];return useEffect((function(){return history_default.listen((function(){e()}))}),[]),history_default.location}var vn,gn=history_default;function pn(e){var t=useState({limit:e.limit,offset:e.offset}),n=t[0],r=t[1],i=n.offset,o=n.limit,a=function(e,t){return e*t},s=function(e,t){return Math.ceil(e/t)||0};return{limit:o,setLimit:function(e){var t=s(i,e),o=a(e,t);r(T({},n,{limit:e,offset:o}))},offset:i,setCurrentPage:function(e){var t=a(e,o);r((function(e){return T({},e,{offset:t})}))},calculatePagination:function(e,t){var n=s(i,o),r=function(e,t){return Math.ceil(e/t)||0}(t,o),a=0===e?"0":e>1?i+1+"-"+(i+e):""+(i+1);return{currentPage:n,pageCount:r,rangeOnPage:a,pageProgress:a+" of "+t}}}}function hn(e,t,n,r,i){var o;void 0===r&&(r={}),void 0===i&&(i=!1);var a=pn(n),s=a.limit,u=a.setLimit,c=a.setCurrentPage,l=a.calculatePagination,f=fn(e,T({limit:s,offset:a.offset},r),i),d=f.loading,p=f.errors,h=f.refetch,v=t(f.data),y=l((null==v||null==(o=v.data)?void 0:o.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 wn=dist.gql(vn||(vn=z(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Fn=1e3,In=60*Fn,En=60*In,Mn=24*En,Sn=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*Mn;case"hours":case"hour":case"hrs":case"hr":case"h":return n*En;case"minutes":case"minute":case"mins":case"min":case"m":return n*In;case"seconds":case"second":case"secs":case"sec":case"s":return n*Fn;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>=Mn?$n(e,t,Mn,"day"):t>=En?$n(e,t,En,"hour"):t>=In?$n(e,t,In,"minute"):t>=Fn?$n(e,t,Fn,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=Mn?Math.round(e/Mn)+"d":t>=En?Math.round(e/En)+"h":t>=In?Math.round(e/In)+"m":t>=Fn?Math.round(e/Fn)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function $n(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}var Dn,kn,jn,qn,An=(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 o(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}if(!o.enabled)return;var i=o,a=Number(new Date);i.diff=a-(r||a),i.prev=r,i.curr=a,r=a,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 o=t.formatters[r];return"function"==typeof o&&(n=o.call(i,e[s]),e.splice(s,1),s--),n})),t.formatArgs.call(i,e),(i.log||t.log).apply(i,e)}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=n,o.destroy=t.destroy,Object.defineProperty(o,"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(o),o}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=Sn,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}}}(Dn={exports:{}},Dn.exports),Dn.exports)("sq:useForm"),Rn=dist.gql(kn||(kn=z(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),Vn=dist.gql(jn||(jn=z(["\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"]))),xn=dist.gql(qn||(qn=z(["\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"])));export{Be as B,De as D,Fe as F,H,Me as M,Ne as N,O,R,U,V,W,Xe as X,_,he as a,an as b,setUserIdentity as c,dn as d,We as e,fn as f,gn as g,hn as h,isDemo as i,setProgramId as j,getEnvironmentSDK as k,Ve as l,mn as m,nn as n,He as o,qe as q,sn as s,x,ye as y,ze as z};
@@ -1 +0,0 @@
1
- import{h,d as getAssetPath}from"./index-17b4da69.js";import{c as createStyleSheet}from"./JSS-67b5cff8.js";var style={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"}}};var sheet=createStyleSheet(style);var styleString=sheet.toString();var AssetCardView=function(e){var t=e.text.titleText,s=e.imgUrl;return h("div",{class:sheet.classes.CardContainer},h("style",{type:"text/css"},styleString),h("div",{class:sheet.classes.TextContainer},h("p",{class:sheet.classes.Title},t),h("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"#000000",class:"bi bi-download "+sheet.classes.Icon,viewBox:"0 0 16 16"},h("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"}),h("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"}))),h("img",{src:getAssetPath(s),class:sheet.classes.CardImg}))};export{AssetCardView as A};