@saasquatch/mint-components 1.5.0-49 → 1.5.0-52

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 (421) hide show
  1. package/dist/cjs/{AutoColor-a489ed67.js → AutoColor-db901e98.js} +101 -105
  2. package/dist/cjs/{GenericTableView-f9bd3b19.js → GenericTableView-34662639.js} +5 -6
  3. package/dist/cjs/{JSS-24a85193.js → JSS-c65a40f1.js} +39 -39
  4. package/dist/cjs/{global-32bf222f.js → global-08276663.js} +589 -589
  5. package/dist/cjs/{index-d8fa5d8e.js → index-b0129cd6.js} +104 -181
  6. package/dist/cjs/{index.module-0f10a4c4.js → index.module-54724339.js} +6392 -6392
  7. package/dist/cjs/loader.cjs.js +7 -7
  8. package/dist/cjs/{luxon-751f2e1c.js → luxon-59ca7d19.js} +2 -2
  9. package/dist/cjs/mint-components.cjs.js +9 -9
  10. package/dist/cjs/{sqm-asset-card-view-0764beab.js → sqm-asset-card-view-d9ac6a95.js} +2 -2
  11. package/dist/cjs/sqm-asset-card.cjs.entry.js +9 -9
  12. package/dist/cjs/{sqm-big-stat-view-37e341c1.js → sqm-big-stat-view-e5dc0877.js} +2 -2
  13. package/dist/cjs/sqm-big-stat.cjs.entry.js +9 -9
  14. package/dist/cjs/{sqm-brand_26.cjs.entry.js → sqm-brand_27.cjs.entry.js} +328 -251
  15. package/dist/cjs/sqm-form-message.cjs.entry.js +3 -3
  16. package/dist/cjs/sqm-graphql-client-provider.cjs.entry.js +10 -10
  17. package/dist/cjs/{sqm-hero-view-6706134d.js → sqm-hero-view-a13795c0.js} +4 -4
  18. package/dist/cjs/sqm-hero.cjs.entry.js +7 -7
  19. package/dist/cjs/{sqm-leaderboard-rank-view-5e2bcad9.js → sqm-leaderboard-rank-view-35015d30.js} +1 -1
  20. package/dist/cjs/sqm-leaderboard-rank.cjs.entry.js +14 -15
  21. package/dist/cjs/sqm-leaderboard.cjs.entry.js +9 -9
  22. package/dist/cjs/{sqm-name-fields-view-c684114f.js → sqm-name-fields-view-c95e4768.js} +10 -12
  23. package/dist/cjs/sqm-name-fields.cjs.entry.js +9 -9
  24. package/dist/cjs/{sqm-navigation-sidebar-item-view-7f69e118.js → sqm-navigation-sidebar-item-view-da648fbc.js} +4 -4
  25. package/dist/cjs/sqm-navigation-sidebar-item.cjs.entry.js +11 -11
  26. package/dist/cjs/{sqm-navigation-sidebar-view-b53fad32.js → sqm-navigation-sidebar-view-36632c96.js} +2 -2
  27. package/dist/cjs/sqm-navigation-sidebar.cjs.entry.js +5 -5
  28. package/dist/cjs/sqm-password-field.cjs.entry.js +26 -27
  29. package/dist/cjs/sqm-popup-container.cjs.entry.js +9 -9
  30. package/dist/cjs/{sqm-portal-container-view-a78ab7ca.js → sqm-portal-container-view-185b4bd0.js} +2 -2
  31. package/dist/cjs/{sqm-portal-email-verification-view-2a783b13.js → sqm-portal-email-verification-view-991a6739.js} +4 -4
  32. package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +13 -13
  33. package/dist/cjs/{sqm-portal-footer-view-ff16e344.js → sqm-portal-footer-view-266e5a7d.js} +3 -3
  34. package/dist/cjs/sqm-portal-footer.cjs.entry.js +9 -9
  35. package/dist/cjs/{sqm-portal-forgot-password-view-036e5d76.js → sqm-portal-forgot-password-view-10c0b54f.js} +3 -3
  36. package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +13 -13
  37. package/dist/cjs/sqm-portal-logout.cjs.entry.js +8 -8
  38. package/dist/cjs/{sqm-portal-profile-view-0c31ff46.js → sqm-portal-profile-view-fda5946f.js} +10 -13
  39. package/dist/cjs/sqm-portal-profile.cjs.entry.js +16 -16
  40. package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +11 -11
  41. package/dist/cjs/{sqm-portal-reset-password-view-c2ca03ef.js → sqm-portal-reset-password-view-1fdc957e.js} +3 -3
  42. package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +15 -15
  43. package/dist/cjs/{sqm-portal-section-view-073d9dda.js → sqm-portal-section-view-3b6c990e.js} +2 -2
  44. package/dist/cjs/{sqm-portal-verify-email-view-1fa62a17.js → sqm-portal-verify-email-view-4c78e231.js} +3 -3
  45. package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +14 -14
  46. package/dist/cjs/sqm-referral-table_11.cjs.entry.js +31 -31
  47. package/dist/cjs/sqm-refresh-button.cjs.entry.js +7 -7
  48. package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +26 -27
  49. package/dist/cjs/sqm-route.cjs.entry.js +2 -2
  50. package/dist/cjs/{sqm-stat-container-view-fd6e8f8d.js → sqm-stat-container-view-5b2db929.js} +2 -18
  51. package/dist/cjs/sqm-stat-container.cjs.entry.js +6 -6
  52. package/dist/cjs/sqm-stencilbook.cjs.entry.js +642 -599
  53. package/dist/cjs/sqm-table-cell_3.cjs.entry.js +5 -5
  54. package/dist/cjs/{sqm-text-span-view-dd99633a.js → sqm-text-span-view-f101dedf.js} +2 -2
  55. package/dist/cjs/sqm-text-span.cjs.entry.js +5 -5
  56. package/dist/cjs/sqm-titled-section.cjs.entry.js +6 -6
  57. package/dist/{esm/stencil-hooks.module-1bcbec4f.js → cjs/stencil-hooks.module-87a1f4f7.js} +58 -40
  58. package/dist/cjs/{use-callback-867e51f6.js → use-callback-e754042f.js} +1 -1
  59. package/dist/cjs/{useChildElements-6f8aa7de.js → useChildElements-4bc9b219.js} +3 -3
  60. package/dist/cjs/{useDemoBigStat-1fa1ca6a.js → useDemoBigStat-42fa7a69.js} +5 -5
  61. package/dist/cjs/{useLeaderboard-b712d583.js → useLeaderboard-6110cd94.js} +5 -5
  62. package/dist/collection/collection-manifest.json +4 -3
  63. package/dist/collection/components/sqm-edit-profile/useEditProfile.js +3 -4
  64. package/dist/collection/components/sqm-image/Image.stories.js +25 -0
  65. package/dist/collection/components/sqm-image/sqm-image-view.js +32 -0
  66. package/dist/collection/components/sqm-image/sqm-image.js +137 -0
  67. package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +1 -1
  68. package/dist/collection/components/sqm-leaderboard-rank/useLeaderboardRank.js +3 -4
  69. package/dist/collection/components/sqm-media/HeroImage.stories.js +37 -0
  70. package/dist/collection/components/sqm-media/{sqm-media-view.js → sqm-hero-image-view.js} +26 -18
  71. package/dist/collection/components/sqm-media/{sqm-media.js → sqm-hero-image.js} +77 -38
  72. package/dist/collection/components/sqm-name-fields/sqm-name-fields-view.js +8 -10
  73. package/dist/collection/components/sqm-password-field/sqm-password-field-view.js +4 -5
  74. package/dist/collection/components/sqm-portal-profile/sqm-portal-profile-view.js +5 -8
  75. package/dist/collection/components/sqm-portal-register/sqm-portal-register-view.js +10 -12
  76. package/dist/collection/components/sqm-referral-card/ReferralCard.stories.js +1 -1
  77. package/dist/collection/components/sqm-referral-card/sqm-timeline-entry.js +47 -16
  78. package/dist/collection/components/sqm-referral-card/sqm-timeline.js +21 -16
  79. package/dist/collection/components/sqm-referral-table/UseReferralTable.stories.js +0 -2
  80. package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +2 -2
  81. package/dist/collection/components/sqm-refresh-button/sqm-refresh-button.js +1 -3
  82. package/dist/collection/components/sqm-reward-exchange-list/UseRewardExchangeList.stories.js +0 -3
  83. package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list-view.js +1 -2
  84. package/dist/collection/components/sqm-rewards-table/UseRewardsTable.stories.js +0 -2
  85. package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-source-cell.js +0 -1
  86. package/dist/collection/components/sqm-rewards-table/sqm-rewards-table-view.js +3 -4
  87. package/dist/collection/components/sqm-share-button/useShareButton.js +1 -2
  88. package/dist/collection/components/sqm-stat-container/sqm-stat-container-view.js +0 -16
  89. package/dist/collection/components/sqm-stencilbook/AutoColor.js +1 -1
  90. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +4 -2
  91. package/dist/collection/components/sqm-task-card/TaskCard.stories.js +2 -2
  92. package/dist/collection/tables/GenericTableView.js +3 -4
  93. package/dist/esm/{AutoColor-9281c94b.js → AutoColor-5d891803.js} +101 -105
  94. package/dist/esm/{GenericTableView-e4257466.js → GenericTableView-5de898c3.js} +5 -6
  95. package/dist/esm/{JSS-df9ea8a0.js → JSS-96eeab98.js} +39 -39
  96. package/dist/esm/{global-cc738e38.js → global-6bd9287e.js} +589 -589
  97. package/dist/esm/{index-2c5a6587.js → index-17b4da69.js} +104 -181
  98. package/dist/esm/{index.module-983975d9.js → index.module-ec3dcc82.js} +6374 -6374
  99. package/dist/esm/loader.js +7 -7
  100. package/dist/esm/{luxon-afa282c2.js → luxon-5fa22651.js} +2 -2
  101. package/dist/esm/mint-components.js +9 -9
  102. package/dist/esm/{sqm-asset-card-view-809b35ce.js → sqm-asset-card-view-f9ca5345.js} +2 -2
  103. package/dist/esm/sqm-asset-card.entry.js +9 -9
  104. package/dist/esm/{sqm-big-stat-view-3adf4ef2.js → sqm-big-stat-view-309f7c1f.js} +2 -2
  105. package/dist/esm/sqm-big-stat.entry.js +9 -9
  106. package/dist/esm/{sqm-brand_26.entry.js → sqm-brand_27.entry.js} +327 -251
  107. package/dist/esm/sqm-form-message.entry.js +3 -3
  108. package/dist/esm/sqm-graphql-client-provider.entry.js +10 -10
  109. package/dist/esm/{sqm-hero-view-b30e42f0.js → sqm-hero-view-190bc812.js} +4 -4
  110. package/dist/esm/sqm-hero.entry.js +7 -7
  111. package/dist/esm/{sqm-leaderboard-rank-view-91a35c42.js → sqm-leaderboard-rank-view-da91f5f3.js} +1 -1
  112. package/dist/esm/sqm-leaderboard-rank.entry.js +14 -15
  113. package/dist/esm/sqm-leaderboard.entry.js +9 -9
  114. package/dist/esm/{sqm-name-fields-view-77895fa8.js → sqm-name-fields-view-69b1583f.js} +10 -12
  115. package/dist/esm/sqm-name-fields.entry.js +9 -9
  116. package/dist/esm/{sqm-navigation-sidebar-item-view-3c21b3ee.js → sqm-navigation-sidebar-item-view-a6f7f96c.js} +4 -4
  117. package/dist/esm/sqm-navigation-sidebar-item.entry.js +11 -11
  118. package/dist/esm/{sqm-navigation-sidebar-view-1c50483e.js → sqm-navigation-sidebar-view-816558e3.js} +2 -2
  119. package/dist/esm/sqm-navigation-sidebar.entry.js +5 -5
  120. package/dist/esm/sqm-password-field.entry.js +26 -27
  121. package/dist/esm/sqm-popup-container.entry.js +9 -9
  122. package/dist/esm/{sqm-portal-container-view-72c8b457.js → sqm-portal-container-view-cf79ed90.js} +2 -2
  123. package/dist/esm/{sqm-portal-email-verification-view-7685db9c.js → sqm-portal-email-verification-view-96c1f91b.js} +4 -4
  124. package/dist/esm/sqm-portal-email-verification.entry.js +13 -13
  125. package/dist/esm/{sqm-portal-footer-view-b344a6ad.js → sqm-portal-footer-view-3a7dfbfc.js} +3 -3
  126. package/dist/esm/sqm-portal-footer.entry.js +9 -9
  127. package/dist/esm/{sqm-portal-forgot-password-view-f7f24742.js → sqm-portal-forgot-password-view-fa088f83.js} +3 -3
  128. package/dist/esm/sqm-portal-forgot-password.entry.js +13 -13
  129. package/dist/esm/sqm-portal-logout.entry.js +8 -8
  130. package/dist/esm/{sqm-portal-profile-view-3da23184.js → sqm-portal-profile-view-36488558.js} +10 -13
  131. package/dist/esm/sqm-portal-profile.entry.js +16 -16
  132. package/dist/esm/sqm-portal-protected-route.entry.js +11 -11
  133. package/dist/esm/{sqm-portal-reset-password-view-f3017d72.js → sqm-portal-reset-password-view-73e14282.js} +3 -3
  134. package/dist/esm/sqm-portal-reset-password.entry.js +15 -15
  135. package/dist/esm/{sqm-portal-section-view-5a3d3829.js → sqm-portal-section-view-d3098f7f.js} +2 -2
  136. package/dist/esm/{sqm-portal-verify-email-view-329fdc3b.js → sqm-portal-verify-email-view-cbf1cfdc.js} +3 -3
  137. package/dist/esm/sqm-portal-verify-email.entry.js +14 -14
  138. package/dist/esm/sqm-referral-table_11.entry.js +31 -31
  139. package/dist/esm/sqm-refresh-button.entry.js +7 -7
  140. package/dist/esm/sqm-rewards-table_9.entry.js +26 -27
  141. package/dist/esm/sqm-route.entry.js +2 -2
  142. package/dist/esm/{sqm-stat-container-view-02b82222.js → sqm-stat-container-view-8a565c5a.js} +2 -18
  143. package/dist/esm/sqm-stat-container.entry.js +6 -6
  144. package/dist/esm/sqm-stencilbook.entry.js +642 -599
  145. package/dist/esm/sqm-table-cell_3.entry.js +5 -5
  146. package/dist/esm/{sqm-text-span-view-be532a94.js → sqm-text-span-view-7e61c95c.js} +2 -2
  147. package/dist/esm/sqm-text-span.entry.js +5 -5
  148. package/dist/esm/sqm-titled-section.entry.js +6 -6
  149. package/dist/{cjs/stencil-hooks.module-23a5a83a.js → esm/stencil-hooks.module-2f159754.js} +40 -58
  150. package/dist/esm/{use-callback-cfeaefe1.js → use-callback-d8ef4b5d.js} +1 -1
  151. package/dist/esm/{useChildElements-9936fb9a.js → useChildElements-c11d6189.js} +3 -3
  152. package/dist/esm/{useDemoBigStat-5450ce4c.js → useDemoBigStat-e2295035.js} +5 -5
  153. package/dist/esm/{useLeaderboard-c0017437.js → useLeaderboard-5d875f53.js} +5 -5
  154. package/dist/esm-es5/AutoColor-5d891803.js +1 -0
  155. package/dist/esm-es5/{GenericTableView-e4257466.js → GenericTableView-5de898c3.js} +1 -1
  156. package/dist/esm-es5/JSS-96eeab98.js +8 -0
  157. package/dist/esm-es5/global-6bd9287e.js +285 -0
  158. package/dist/esm-es5/index-17b4da69.js +1 -0
  159. package/dist/esm-es5/index.module-ec3dcc82.js +1 -0
  160. package/dist/esm-es5/loader.js +1 -1
  161. package/dist/esm-es5/{luxon-afa282c2.js → luxon-5fa22651.js} +1 -1
  162. package/dist/esm-es5/mint-components.js +1 -1
  163. package/dist/esm-es5/{sqm-asset-card-view-809b35ce.js → sqm-asset-card-view-f9ca5345.js} +1 -1
  164. package/dist/esm-es5/sqm-asset-card.entry.js +1 -1
  165. package/dist/esm-es5/{sqm-big-stat-view-3adf4ef2.js → sqm-big-stat-view-309f7c1f.js} +1 -1
  166. package/dist/esm-es5/sqm-big-stat.entry.js +1 -1
  167. package/dist/esm-es5/sqm-brand_27.entry.js +1 -0
  168. package/dist/esm-es5/sqm-form-message.entry.js +1 -1
  169. package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
  170. package/dist/esm-es5/{sqm-hero-view-b30e42f0.js → sqm-hero-view-190bc812.js} +1 -1
  171. package/dist/esm-es5/sqm-hero.entry.js +1 -1
  172. package/dist/esm-es5/sqm-leaderboard-rank-view-da91f5f3.js +1 -0
  173. package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
  174. package/dist/esm-es5/sqm-leaderboard.entry.js +1 -1
  175. package/dist/esm-es5/{sqm-name-fields-view-77895fa8.js → sqm-name-fields-view-69b1583f.js} +1 -1
  176. package/dist/esm-es5/sqm-name-fields.entry.js +1 -1
  177. package/dist/esm-es5/{sqm-navigation-sidebar-item-view-3c21b3ee.js → sqm-navigation-sidebar-item-view-a6f7f96c.js} +1 -1
  178. package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
  179. package/dist/esm-es5/{sqm-navigation-sidebar-view-1c50483e.js → sqm-navigation-sidebar-view-816558e3.js} +1 -1
  180. package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
  181. package/dist/esm-es5/sqm-password-field.entry.js +1 -1
  182. package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
  183. package/dist/esm-es5/{sqm-portal-container-view-72c8b457.js → sqm-portal-container-view-cf79ed90.js} +1 -1
  184. package/dist/esm-es5/{sqm-portal-email-verification-view-7685db9c.js → sqm-portal-email-verification-view-96c1f91b.js} +1 -1
  185. package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
  186. package/dist/esm-es5/{sqm-portal-footer-view-b344a6ad.js → sqm-portal-footer-view-3a7dfbfc.js} +1 -1
  187. package/dist/esm-es5/sqm-portal-footer.entry.js +1 -1
  188. package/dist/esm-es5/{sqm-portal-forgot-password-view-f7f24742.js → sqm-portal-forgot-password-view-fa088f83.js} +1 -1
  189. package/dist/esm-es5/sqm-portal-forgot-password.entry.js +1 -1
  190. package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
  191. package/dist/esm-es5/{sqm-portal-profile-view-3da23184.js → sqm-portal-profile-view-36488558.js} +1 -1
  192. package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
  193. package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
  194. package/dist/esm-es5/{sqm-portal-reset-password-view-f3017d72.js → sqm-portal-reset-password-view-73e14282.js} +1 -1
  195. package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
  196. package/dist/esm-es5/{sqm-portal-section-view-5a3d3829.js → sqm-portal-section-view-d3098f7f.js} +1 -1
  197. package/dist/esm-es5/{sqm-portal-verify-email-view-329fdc3b.js → sqm-portal-verify-email-view-cbf1cfdc.js} +1 -1
  198. package/dist/esm-es5/sqm-portal-verify-email.entry.js +1 -1
  199. package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
  200. package/dist/esm-es5/sqm-refresh-button.entry.js +1 -1
  201. package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
  202. package/dist/esm-es5/sqm-route.entry.js +1 -1
  203. package/dist/esm-es5/{sqm-stat-container-view-02b82222.js → sqm-stat-container-view-8a565c5a.js} +1 -1
  204. package/dist/esm-es5/sqm-stat-container.entry.js +1 -1
  205. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  206. package/dist/esm-es5/sqm-table-cell_3.entry.js +1 -1
  207. package/dist/esm-es5/{sqm-text-span-view-be532a94.js → sqm-text-span-view-7e61c95c.js} +1 -1
  208. package/dist/esm-es5/sqm-text-span.entry.js +1 -1
  209. package/dist/esm-es5/sqm-titled-section.entry.js +1 -1
  210. package/dist/esm-es5/stencil-hooks.module-2f159754.js +53 -0
  211. package/dist/esm-es5/use-callback-d8ef4b5d.js +1 -0
  212. package/dist/esm-es5/useChildElements-c11d6189.js +1 -0
  213. package/dist/esm-es5/useDemoBigStat-e2295035.js +1 -0
  214. package/dist/esm-es5/useLeaderboard-5d875f53.js +1 -0
  215. package/dist/loader/index.d.ts +1 -0
  216. package/dist/mint-components/mint-components.esm.js +1 -1
  217. package/dist/mint-components/mint-components.js +1 -1
  218. package/dist/mint-components/{p-09357f10.system.entry.js → p-01748c80.system.entry.js} +1 -1
  219. package/dist/mint-components/p-023dcaee.js +1 -0
  220. package/dist/mint-components/{p-64d2bfb1.system.entry.js → p-067cf6da.system.entry.js} +1 -1
  221. package/dist/mint-components/p-0c19f830.entry.js +1 -0
  222. package/dist/mint-components/{p-0e97beb3.js → p-0e7e10b6.js} +1 -1
  223. package/dist/mint-components/p-1288be55.entry.js +1 -0
  224. package/dist/mint-components/{p-c4cedfef.system.entry.js → p-136e2028.system.entry.js} +1 -1
  225. package/dist/mint-components/{p-b138c9e4.system.js → p-16effd39.system.js} +1 -1
  226. package/dist/mint-components/{p-740a45df.js → p-179988b5.js} +1 -1
  227. package/dist/mint-components/{p-38045cb3.system.js → p-1959da16.system.js} +1 -1
  228. package/dist/mint-components/{p-408f48ec.system.entry.js → p-197d1027.system.entry.js} +1 -1
  229. package/dist/mint-components/{p-6e2e549a.js → p-1d1e9197.js} +1 -1
  230. package/dist/mint-components/p-204fd08c.js +1 -0
  231. package/dist/mint-components/p-220181cd.system.entry.js +1 -0
  232. package/dist/mint-components/p-232db563.system.entry.js +1 -0
  233. package/dist/mint-components/{p-ef4e8230.system.entry.js → p-2454f30a.system.entry.js} +1 -1
  234. package/dist/mint-components/p-24724b6b.entry.js +13 -0
  235. package/dist/mint-components/p-27e04aaf.entry.js +1 -0
  236. package/dist/mint-components/{p-96103ab1.system.js → p-2c49c7a8.system.js} +1 -1
  237. package/dist/mint-components/p-348461ec.system.entry.js +1 -0
  238. package/dist/mint-components/{p-747dc08d.js → p-373fa002.js} +1 -1
  239. package/dist/mint-components/p-3b184c32.js +1 -0
  240. package/dist/mint-components/{p-1ef9bc8f.system.js → p-3bbb90a9.system.js} +1 -1
  241. package/dist/mint-components/{p-4c5581b9.js → p-3dc2850c.js} +1 -1
  242. package/dist/mint-components/{p-e52d6c0f.js → p-3e556042.js} +1 -1
  243. package/dist/mint-components/{p-65d669e7.system.entry.js → p-4275c957.system.entry.js} +1 -1
  244. package/dist/mint-components/{p-c5d104d8.system.js → p-4279da4b.system.js} +1 -1
  245. package/dist/mint-components/{p-fc103049.system.js → p-443c133e.system.js} +1 -1
  246. package/dist/mint-components/p-48abcb89.entry.js +86 -0
  247. package/dist/mint-components/p-49c9ff69.entry.js +1 -0
  248. package/dist/mint-components/{p-eba0f8b5.js → p-4a1b7d35.js} +1 -1
  249. package/dist/mint-components/p-4c21835b.entry.js +1 -0
  250. package/dist/mint-components/p-4e0b9201.system.js +1 -0
  251. package/dist/mint-components/{p-159a0455.system.entry.js → p-4e8e99bc.system.entry.js} +1 -1
  252. package/dist/mint-components/{p-79b96b7c.js → p-509e6dc9.js} +4 -4
  253. package/dist/mint-components/p-5289072a.js +1 -0
  254. package/dist/mint-components/p-54986541.entry.js +1 -0
  255. package/dist/mint-components/{p-754c90b6.js → p-54e855a1.js} +1 -1
  256. package/dist/mint-components/{p-6d1fd7ef.js → p-591de129.js} +1 -1
  257. package/dist/mint-components/{p-2cf031e5.js → p-5c75acad.js} +1 -1
  258. package/dist/mint-components/{p-feb4ccf1.system.js → p-5df1d9ae.system.js} +1 -1
  259. package/dist/mint-components/{p-b094bf1f.system.entry.js → p-5e2b006a.system.entry.js} +1 -1
  260. package/dist/mint-components/{p-39ba54b0.js → p-61a542ec.js} +1 -1
  261. package/dist/mint-components/p-62625e22.entry.js +1 -0
  262. package/dist/mint-components/p-62e49806.system.entry.js +1 -0
  263. package/dist/mint-components/p-639d3dd3.entry.js +1 -0
  264. package/dist/mint-components/p-63a6475a.system.entry.js +1 -0
  265. package/dist/mint-components/{p-73246c5e.js → p-64c3217a.js} +1 -1
  266. package/dist/mint-components/{p-feea807c.system.js → p-6b43e4cc.system.js} +1 -1
  267. package/dist/mint-components/{p-a6940c14.system.entry.js → p-6e70be1c.system.entry.js} +1 -1
  268. package/dist/mint-components/p-6f88ea09.system.js +1 -0
  269. package/dist/mint-components/p-72a978c8.entry.js +1 -0
  270. package/dist/mint-components/{p-637a01d0.system.js → p-72c87c04.system.js} +1 -1
  271. package/dist/mint-components/{p-071fdcfa.js → p-73d5306f.js} +1 -1
  272. package/dist/mint-components/p-76325d9c.system.entry.js +1 -0
  273. package/dist/mint-components/{p-80eb9f8a.js → p-7a1ebc00.js} +15 -15
  274. package/dist/mint-components/{p-720d9f1a.system.entry.js → p-81681ebd.system.entry.js} +1 -1
  275. package/dist/mint-components/p-871536c7.entry.js +1 -0
  276. package/dist/mint-components/{p-9fa1fb4e.system.js → p-8bcaafaf.system.js} +1 -1
  277. package/dist/mint-components/{p-a6a9d6b7.system.entry.js → p-91ab2b0d.system.entry.js} +1 -1
  278. package/dist/mint-components/{p-efb82cfc.system.js → p-91d119ad.system.js} +1 -1
  279. package/dist/mint-components/p-9580888c.system.js +53 -0
  280. package/dist/mint-components/p-96c971fa.entry.js +1 -0
  281. package/dist/mint-components/p-97f843f9.system.entry.js +1 -0
  282. package/dist/mint-components/p-98393bf0.entry.js +1 -0
  283. package/dist/mint-components/{p-e46a4dc4.js → p-9b48d01e.js} +1 -1
  284. package/dist/mint-components/p-9f215c7f.entry.js +161 -0
  285. package/dist/mint-components/p-9f65904f.entry.js +1 -0
  286. package/dist/mint-components/{p-5cc0dc12.system.js → p-a09e3176.system.js} +1 -1
  287. package/dist/mint-components/p-a674c833.system.entry.js +1 -0
  288. package/dist/mint-components/p-ac5f63b1.entry.js +33 -0
  289. package/dist/mint-components/p-ac65007d.js +1 -0
  290. package/dist/mint-components/p-af5673c4.entry.js +1 -0
  291. package/dist/mint-components/p-b0c32d15.system.js +1 -0
  292. package/dist/mint-components/p-b0d6a380.system.js +1 -0
  293. package/dist/mint-components/p-b0e8c584.system.entry.js +1 -0
  294. package/dist/mint-components/p-b3201e4c.entry.js +1 -0
  295. package/dist/mint-components/p-b3735eaf.entry.js +9 -0
  296. package/dist/mint-components/p-b3af1c6f.js +1 -0
  297. package/dist/mint-components/p-b69365f5.entry.js +1 -0
  298. package/dist/mint-components/p-b77bb179.system.js +285 -0
  299. package/dist/mint-components/p-b7da9a8a.js +42 -0
  300. package/dist/mint-components/{p-e29935f9.system.js → p-b8434fc0.system.js} +1 -1
  301. package/dist/mint-components/p-b9974b87.entry.js +1 -0
  302. package/dist/mint-components/{p-86372145.system.entry.js → p-ba41fde8.system.entry.js} +1 -1
  303. package/dist/mint-components/{p-80493415.system.entry.js → p-bd0475a2.system.entry.js} +1 -1
  304. package/dist/mint-components/{p-0ef64931.system.js → p-bf055b6c.system.js} +1 -1
  305. package/dist/mint-components/{p-1b2b1ba2.js → p-c157f510.js} +3 -3
  306. package/dist/mint-components/{p-16db729c.system.entry.js → p-c1a47137.system.entry.js} +1 -1
  307. package/dist/mint-components/{p-1ca5b819.js → p-c2e84199.js} +1 -1
  308. package/dist/mint-components/p-cb93f2c8.entry.js +1 -0
  309. package/dist/mint-components/p-cd4037d1.entry.js +1 -0
  310. package/dist/mint-components/{p-d8e97fb7.system.js → p-ce0ec1c4.system.js} +1 -1
  311. package/dist/mint-components/p-d10efde1.system.js +1 -0
  312. package/dist/mint-components/p-d1520098.js +1 -0
  313. package/dist/mint-components/p-d312db42.entry.js +1 -0
  314. package/dist/mint-components/{p-d27c4eb5.js → p-d33eb961.js} +1 -1
  315. package/dist/mint-components/{p-5c4dec0c.system.entry.js → p-d6ef4765.system.entry.js} +1 -1
  316. package/dist/mint-components/p-dc17de12.entry.js +119 -0
  317. package/dist/mint-components/p-dcff1a85.entry.js +1 -0
  318. package/dist/mint-components/{p-6d6791b6.system.js → p-df466813.system.js} +1 -1
  319. package/dist/mint-components/{p-b81b4ebf.system.js → p-e00e11b1.system.js} +1 -1
  320. package/dist/mint-components/{p-35a8858e.system.js → p-e0be39d0.system.js} +1 -1
  321. package/dist/mint-components/{p-83e18382.system.entry.js → p-e1166d9b.system.entry.js} +1 -1
  322. package/dist/mint-components/{p-6353bf11.entry.js → p-e7b20665.entry.js} +1 -1
  323. package/dist/mint-components/{p-bb2bc191.system.js → p-ea110693.system.js} +1 -1
  324. package/dist/mint-components/p-ea197664.js +1 -0
  325. package/dist/mint-components/p-eb23e1b9.system.entry.js +1 -0
  326. package/dist/mint-components/{p-8c5bf8ee.system.js → p-eba2e455.system.js} +1 -1
  327. package/dist/mint-components/p-ef99c411.system.entry.js +1 -0
  328. package/dist/mint-components/p-f143117c.entry.js +1 -0
  329. package/dist/mint-components/p-f241ee8a.system.entry.js +1 -0
  330. package/dist/mint-components/p-f372c8d8.entry.js +1 -0
  331. package/dist/mint-components/p-f5cba1f7.system.entry.js +1 -0
  332. package/dist/mint-components/{p-82a02b17.system.js → p-f8d95abc.system.js} +1 -1
  333. package/dist/mint-components/{p-af859f26.js → p-f9008f86.js} +153 -153
  334. package/dist/mint-components/{p-4479f753.system.entry.js → p-fb8a587b.system.entry.js} +1 -1
  335. package/dist/mint-components/p-fe4d9531.system.js +1 -0
  336. package/dist/mint-components/p-ff17b3a4.system.js +1 -0
  337. package/dist/types/components/sqm-image/Image.stories.d.ts +11 -0
  338. package/dist/types/components/sqm-image/sqm-image-view.d.ts +8 -0
  339. package/dist/types/components/sqm-image/sqm-image.d.ts +31 -0
  340. package/dist/types/components/sqm-media/HeroImage.stories.d.ts +15 -0
  341. package/dist/types/components/sqm-media/{sqm-media-view.d.ts → sqm-hero-image-view.d.ts} +6 -3
  342. package/dist/types/components/sqm-media/{sqm-media.d.ts → sqm-hero-image.d.ts} +16 -9
  343. package/dist/types/components/sqm-referral-card/sqm-timeline-entry.d.ts +4 -0
  344. package/dist/types/components.d.ts +215 -138
  345. package/dist/types/stencil-public-runtime.d.ts +182 -190
  346. package/grapesjs/grapesjs.js +1 -1
  347. package/package.json +1 -1
  348. package/dist/collection/components/sqm-media/Media.stories.js +0 -28
  349. package/dist/esm-es5/AutoColor-9281c94b.js +0 -1
  350. package/dist/esm-es5/JSS-df9ea8a0.js +0 -8
  351. package/dist/esm-es5/global-cc738e38.js +0 -285
  352. package/dist/esm-es5/index-2c5a6587.js +0 -1
  353. package/dist/esm-es5/index.module-983975d9.js +0 -1
  354. package/dist/esm-es5/sqm-brand_26.entry.js +0 -1
  355. package/dist/esm-es5/sqm-leaderboard-rank-view-91a35c42.js +0 -1
  356. package/dist/esm-es5/stencil-hooks.module-1bcbec4f.js +0 -53
  357. package/dist/esm-es5/use-callback-cfeaefe1.js +0 -1
  358. package/dist/esm-es5/useChildElements-9936fb9a.js +0 -1
  359. package/dist/esm-es5/useDemoBigStat-5450ce4c.js +0 -1
  360. package/dist/esm-es5/useLeaderboard-c0017437.js +0 -1
  361. package/dist/mint-components/p-00894968.system.js +0 -1
  362. package/dist/mint-components/p-0449904d.system.entry.js +0 -1
  363. package/dist/mint-components/p-050bd4c1.entry.js +0 -1
  364. package/dist/mint-components/p-073c0485.system.js +0 -1
  365. package/dist/mint-components/p-09ae771c.system.entry.js +0 -1
  366. package/dist/mint-components/p-12557b30.js +0 -1
  367. package/dist/mint-components/p-15932a6d.entry.js +0 -1
  368. package/dist/mint-components/p-18e9e739.system.entry.js +0 -1
  369. package/dist/mint-components/p-1c0fac18.system.js +0 -1
  370. package/dist/mint-components/p-2012b3eb.entry.js +0 -1
  371. package/dist/mint-components/p-21bf87e9.system.js +0 -1
  372. package/dist/mint-components/p-2673d322.entry.js +0 -1
  373. package/dist/mint-components/p-32ec3994.entry.js +0 -161
  374. package/dist/mint-components/p-33bd2ff9.entry.js +0 -1
  375. package/dist/mint-components/p-3beda015.js +0 -1
  376. package/dist/mint-components/p-40849586.entry.js +0 -1
  377. package/dist/mint-components/p-40b91bd2.entry.js +0 -1
  378. package/dist/mint-components/p-40d9f8f3.entry.js +0 -1
  379. package/dist/mint-components/p-425ea70b.entry.js +0 -1
  380. package/dist/mint-components/p-46adc2cf.system.entry.js +0 -1
  381. package/dist/mint-components/p-4ac07db9.system.js +0 -1
  382. package/dist/mint-components/p-673d1d37.system.entry.js +0 -1
  383. package/dist/mint-components/p-6f2ab381.system.entry.js +0 -1
  384. package/dist/mint-components/p-71775f38.entry.js +0 -1
  385. package/dist/mint-components/p-746fa1fa.entry.js +0 -1
  386. package/dist/mint-components/p-77bf2413.entry.js +0 -1
  387. package/dist/mint-components/p-79339d1d.entry.js +0 -33
  388. package/dist/mint-components/p-7a24a7a4.system.entry.js +0 -1
  389. package/dist/mint-components/p-860513de.system.js +0 -53
  390. package/dist/mint-components/p-8873b8b0.system.entry.js +0 -1
  391. package/dist/mint-components/p-8b5f9502.system.entry.js +0 -1
  392. package/dist/mint-components/p-8f900354.system.entry.js +0 -1
  393. package/dist/mint-components/p-95b5aa14.system.js +0 -1
  394. package/dist/mint-components/p-a2c12d31.system.entry.js +0 -1
  395. package/dist/mint-components/p-a716fa21.entry.js +0 -1
  396. package/dist/mint-components/p-aa926a92.entry.js +0 -86
  397. package/dist/mint-components/p-adabc223.js +0 -1
  398. package/dist/mint-components/p-ae9a75d7.entry.js +0 -1
  399. package/dist/mint-components/p-aeaf1171.js +0 -1
  400. package/dist/mint-components/p-af8a82a5.entry.js +0 -1
  401. package/dist/mint-components/p-b094b800.js +0 -1
  402. package/dist/mint-components/p-c1509151.system.entry.js +0 -1
  403. package/dist/mint-components/p-c154b16e.system.entry.js +0 -1
  404. package/dist/mint-components/p-c164d3fe.js +0 -1
  405. package/dist/mint-components/p-c358211f.js +0 -1
  406. package/dist/mint-components/p-c824c2e5.system.js +0 -285
  407. package/dist/mint-components/p-ce5a08d0.entry.js +0 -119
  408. package/dist/mint-components/p-cfe598c1.js +0 -1
  409. package/dist/mint-components/p-cfe65695.entry.js +0 -1
  410. package/dist/mint-components/p-d2a2c424.js +0 -56
  411. package/dist/mint-components/p-d4c1b8e9.entry.js +0 -1
  412. package/dist/mint-components/p-d9bf4d77.entry.js +0 -1
  413. package/dist/mint-components/p-e341556f.entry.js +0 -13
  414. package/dist/mint-components/p-e551074e.system.js +0 -1
  415. package/dist/mint-components/p-e9a8a8f3.entry.js +0 -9
  416. package/dist/mint-components/p-eb3ce654.entry.js +0 -1
  417. package/dist/mint-components/p-eb4f3c85.entry.js +0 -1
  418. package/dist/mint-components/p-f0c38e7a.entry.js +0 -1
  419. package/dist/mint-components/p-f17cd500.entry.js +0 -1
  420. package/dist/mint-components/p-f39b5f6b.entry.js +0 -1
  421. package/dist/types/components/sqm-media/Media.stories.d.ts +0 -12
@@ -1,53 +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){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __spreadArray=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e};import{g as getElement,f as forceUpdate,a as getRenderingRef}from"./index-2c5a6587.js";var commonjsGlobal=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e["default"]:e}function createCommonjsModule(e,t,n){return n={path:t,exports:{},require:function(e,t){return commonjsRequire()}},e(n,n.exports),n.exports}function getAugmentedNamespace(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:true});Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:true,get:function(){return e[n]}})}));return t}function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}
2
- /**
3
- * @license
4
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
5
- * This code may only be used under the BSD style license found at
6
- * http://polymer.github.io/LICENSE.txt
7
- * The complete set of authors may be found at
8
- * http://polymer.github.io/AUTHORS.txt
9
- * The complete set of contributors may be found at
10
- * http://polymer.github.io/CONTRIBUTORS.txt
11
- * Code distributed by Google as part of the polymer project is also
12
- * subject to an additional IP rights grant found at
13
- * http://polymer.github.io/PATENTS.txt
14
- */"{{lit-"+String(Math.random()).slice(2)+"}}";
15
- /**
16
- * @license
17
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
18
- * This code may only be used under the BSD style license found at
19
- * http://polymer.github.io/LICENSE.txt
20
- * The complete set of authors may be found at
21
- * http://polymer.github.io/AUTHORS.txt
22
- * The complete set of contributors may be found at
23
- * http://polymer.github.io/CONTRIBUTORS.txt
24
- * Code distributed by Google as part of the polymer project is also
25
- * subject to an additional IP rights grant found at
26
- * http://polymer.github.io/PATENTS.txt
27
- */window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:function(e){return e}});
28
- /**
29
- * @license
30
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
31
- * This code may only be used under the BSD style license found at
32
- * http://polymer.github.io/LICENSE.txt
33
- * The complete set of authors may be found at
34
- * http://polymer.github.io/AUTHORS.txt
35
- * The complete set of contributors may be found at
36
- * http://polymer.github.io/CONTRIBUTORS.txt
37
- * Code distributed by Google as part of the polymer project is also
38
- * subject to an additional IP rights grant found at
39
- * http://polymer.github.io/PATENTS.txt
40
- */(function(){try{var e={get capture(){return false}};window.addEventListener("test",e,e);window.removeEventListener("test",e,e)}catch(e){}})();
41
- /**
42
- * @license
43
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
44
- * This code may only be used under the BSD style license found at
45
- * http://polymer.github.io/LICENSE.txt
46
- * The complete set of authors may be found at
47
- * http://polymer.github.io/AUTHORS.txt
48
- * The complete set of contributors may be found at
49
- * http://polymer.github.io/CONTRIBUTORS.txt
50
- * Code distributed by Google as part of the polymer project is also
51
- * subject to an additional IP rights grant found at
52
- * http://polymer.github.io/PATENTS.txt
53
- */if(typeof window!=="undefined"){(window["litHtmlVersions"]||(window["litHtmlVersions"]=[])).push("1.4.1")}var current;var currentId=0;function setCurrent(e){current=e}function clear(){current=null;currentId=0}function notify(){return currentId++}var hookSymbol=Symbol("haunted.hook");var effectsSymbol=Symbol("haunted.effects");var layoutEffectsSymbol=Symbol("haunted.layoutEffects");var contextEvent="haunted.context";var State=function(){function e(e,t){this.update=e;this.host=t;this[hookSymbol]=new Map;this[effectsSymbol]=[];this[layoutEffectsSymbol]=[]}e.prototype.run=function(e){setCurrent(this);var t=e();clear();return t};e.prototype._runEffects=function(e){var t=this[e];setCurrent(this);for(var n=0,r=t;n<r.length;n++){var o=r[n];o.call(this)}clear()};e.prototype.runEffects=function(){this._runEffects(effectsSymbol)};e.prototype.runLayoutEffects=function(){this._runEffects(layoutEffectsSymbol)};e.prototype.teardown=function(){var e=this[hookSymbol];e.forEach((function(e){if(typeof e.teardown==="function"){e.teardown()}}))};return e}();Promise.resolve().then.bind(Promise.resolve());var Hook=function(){function e(e,t){this.id=e;this.state=t}return e}();function use(e){var t=[];for(var n=1;n<arguments.length;n++){t[n-1]=arguments[n]}var r=notify();var o=current[hookSymbol];var s=o.get(r);if(!s){s=new(e.bind.apply(e,__spreadArray([void 0,r,current],t)));o.set(r,s)}return s.update.apply(s,t)}function hook(e){return use.bind(null,e)}function createEffect(e){return hook(function(t){__extends(n,t);function n(n,r,o,s){var i=t.call(this,n,r)||this;e(r,i);return i}n.prototype.update=function(e,t){this.callback=e;this.values=t};n.prototype.call=function(){if(!this.values||this.hasChanged()){this.run()}this.lastValues=this.values};n.prototype.run=function(){this.teardown();this._teardown=this.callback.call(this.state)};n.prototype.teardown=function(){if(typeof this._teardown==="function"){this._teardown()}};n.prototype.hasChanged=function(){var e=this;return!this.lastValues||this.values.some((function(t,n){return e.lastValues[n]!==t}))};return n}(Hook))}function setEffects(e,t){e[effectsSymbol].push(t)}var useEffect=createEffect(setEffects);hook(function(e){__extends(t,e);function t(t,n,r){var o=e.call(this,t,n)||this;o._updater=o._updater.bind(o);o._ranEffect=false;o._unsubscribe=null;setEffects(n,o);return o}t.prototype.update=function(e){if(this.state.virtual){throw new Error("can't be used with virtual components")}if(this.Context!==e){this._subscribe(e);this.Context=e}return this.value};t.prototype.call=function(){if(!this._ranEffect){this._ranEffect=true;if(this._unsubscribe)this._unsubscribe();this._subscribe(this.Context);this.state.update()}};t.prototype._updater=function(e){this.value=e;this.state.update()};t.prototype._subscribe=function(e){var t={Context:e,callback:this._updater};this.state.host.dispatchEvent(new CustomEvent(contextEvent,{detail:t,bubbles:true,cancelable:true,composed:true}));var n=t.unsubscribe,r=n===void 0?null:n,o=t.value;this.value=r?o:e.defaultValue;this._unsubscribe=r};t.prototype.teardown=function(){if(this._unsubscribe){this._unsubscribe()}};return t}(Hook));var useMemo=hook(function(e){__extends(t,e);function t(t,n,r,o){var s=e.call(this,t,n)||this;s.value=r();s.values=o;return s}t.prototype.update=function(e,t){if(this.hasChanged(t)){this.values=t;this.value=e()}return this.value};t.prototype.hasChanged=function(e){var t=this;if(e===void 0){e=[]}return e.some((function(e,n){return t.values[n]!==e}))};return t}(Hook));function setLayoutEffects(e,t){e[layoutEffectsSymbol].push(t)}createEffect(setLayoutEffects);var useState=hook(function(e){__extends(t,e);function t(t,n,r){var o=e.call(this,t,n)||this;o.updater=o.updater.bind(o);if(typeof r==="function"){r=r()}o.makeArgs(r);return o}t.prototype.update=function(){return this.args};t.prototype.updater=function(e){if(typeof e==="function"){var t=e;var n=this.args[0];e=t(n)}this.makeArgs(e);this.state.update()};t.prototype.makeArgs=function(e){this.args=Object.freeze([e,this.updater])};return t}(Hook));var useReducer=hook(function(e){__extends(t,e);function t(t,n,r,o,s){var i=e.call(this,t,n)||this;i.dispatch=i.dispatch.bind(i);i.currentState=s!==undefined?s(o):o;return i}t.prototype.update=function(e){this.reducer=e;return[this.currentState,this.dispatch]};t.prototype.dispatch=function(e){this.currentState=this.reducer(this.currentState,e);this.state.update()};return t}(Hook));var useRef=function(e){return useMemo((function(){return{current:e}}),[])};var s$2=1e3;var m$2=s$2*60;var h$2=m$2*60;var d$2=h$2*24;var w=d$2*7;var y$1=d$2*365.25;var ms=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}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){return}var n=parseFloat(t[1]);var r=(t[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*y$1;case"weeks":case"week":case"w":return n*w;case"days":case"day":case"d":return n*d$2;case"hours":case"hour":case"hrs":case"hr":case"h":return n*h$2;case"minutes":case"minute":case"mins":case"min":case"m":return n*m$2;case"seconds":case"second":case"secs":case"sec":case"s":return n*s$2;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return undefined}}function fmtShort(e){var t=Math.abs(e);if(t>=d$2){return Math.round(e/d$2)+"d"}if(t>=h$2){return Math.round(e/h$2)+"h"}if(t>=m$2){return Math.round(e/m$2)+"m"}if(t>=s$2){return Math.round(e/s$2)+"s"}return e+"ms"}function fmtLong(e){var t=Math.abs(e);if(t>=d$2){return plural(e,t,d$2,"day")}if(t>=h$2){return plural(e,t,h$2,"hour")}if(t>=m$2){return plural(e,t,m$2,"minute")}if(t>=s$2){return plural(e,t,s$2,"second")}return e+" ms"}function plural(e,t,n,r){var o=t>=n*1.5;return Math.round(e/n)+" "+r+(o?"s":"")}function setup(e){n.debug=n;n.default=n;n.coerce=u;n.disable=s;n.enable=o;n.enabled=i;n.humanize=ms;n.destroy=c;Object.keys(e).forEach((function(t){n[t]=e[t]}));n.names=[];n.skips=[];n.formatters={};function t(e){var t=0;for(var r=0;r<e.length;r++){t=(t<<5)-t+e.charCodeAt(r);t|=0}return n.colors[Math.abs(t)%n.colors.length]}n.selectColor=t;function n(e){var t;var o=null;var s;var i;function a(){var e=[];for(var r=0;r<arguments.length;r++){e[r]=arguments[r]}if(!a.enabled){return}var o=a;var s=Number(new Date);var i=s-(t||s);o.diff=i;o.prev=t;o.curr=s;t=s;e[0]=n.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}var u=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(function(t,r){if(t==="%%"){return"%"}u++;var s=n.formatters[r];if(typeof s==="function"){var i=e[u];t=s.call(o,i);e.splice(u,1);u--}return t}));n.formatArgs.call(o,e);var c=o.log||n.log;c.apply(o,e)}a.namespace=e;a.useColors=n.useColors();a.color=n.selectColor(e);a.extend=r;a.destroy=n.destroy;Object.defineProperty(a,"enabled",{enumerable:true,configurable:false,get:function(){if(o!==null){return o}if(s!==n.namespaces){s=n.namespaces;i=n.enabled(e)}return i},set:function(e){o=e}});if(typeof n.init==="function"){n.init(a)}return a}function r(e,t){var r=n(this.namespace+(typeof t==="undefined"?":":t)+e);r.log=this.log;return r}function o(e){n.save(e);n.namespaces=e;n.names=[];n.skips=[];var t;var r=(typeof e==="string"?e:"").split(/[\s,]+/);var o=r.length;for(t=0;t<o;t++){if(!r[t]){continue}e=r[t].replace(/\*/g,".*?");if(e[0]==="-"){n.skips.push(new RegExp("^"+e.substr(1)+"$"))}else{n.names.push(new RegExp("^"+e+"$"))}}}function s(){var e=__spreadArray(__spreadArray([],n.names.map(a)),n.skips.map(a).map((function(e){return"-"+e}))).join(",");n.enable("");return e}function i(e){if(e[e.length-1]==="*"){return true}var t;var r;for(t=0,r=n.skips.length;t<r;t++){if(n.skips[t].test(e)){return false}}for(t=0,r=n.names.length;t<r;t++){if(n.names[t].test(e)){return true}}return false}function a(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function u(e){if(e instanceof Error){return e.stack||e.message}return e}function c(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}n.enable(n.load());return n}var common=setup;var browser=createCommonjsModule((function(e,t){t.formatArgs=r;t.save=o;t.load=s;t.useColors=n;t.storage=i();t.destroy=function(){var e=false;return function(){if(!e){e=true;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"];function n(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0;var o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){if(e==="%%"){return}r++;if(e==="%c"){o=r}}));t.splice(o,0,n)}t.log=console.debug||console.log||function(){};function o(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function s(){var e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function i(){try{return localStorage}catch(e){}}e.exports=common(t);var a=e.exports.formatters;a.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}));function t(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(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}var s$1=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,o=function(){if("Connected"!==n()){var o=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(o),"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(o,a(this.options.pollingMs)||100)),o(),this},t.stop=function(){return this._interval&&clearInterval(this._interval),this.resolvePromise&&this.resolvePromise(),this.status="Initial",this},n(e,[{key:"status",set:function(e){this._status=e,this.options.onStatus&&this.options.onStatus(e)},get:function(){return this._status}}]),e}(),c$1=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 o=Promise.resolve(e.detail.onConnect(t.__current)).then((function(){}))}catch(e){return r(!0,e)}return o&&o.then?o.then(r.bind(null,!1),r.bind(null,!0)):r(!1,o)}(0,(function(n,r){var o,s;if(t.__listeners=(s=(o=t.__listeners).indexOf(e.detail),o.slice(0,s).concat(o.slice(s+1,o.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(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}function c(){return(c=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$1=60*C,d$1=24*l$1,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$1;case"hours":case"hour":case"hrs":case"hr":case"h":return n*l$1;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$1?g(e,t,d$1,"day"):t>=l$1?g(e,t,l$1,"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$1?Math.round(e/d$1)+"d":t>=l$1?Math.round(e/l$1)+"h":t>=C?Math.round(e/C)+"m":t>=u?Math.round(e/u)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function g(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}var p$1,m$1=(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,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){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,o=null;function s(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}if(!s.enabled)return;var o=s,i=Number(new Date);o.diff=i-(r||i),o.prev=r,o.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");var a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return"%";a++;var s=t.formatters[r];return"function"==typeof s&&(n=s.call(o,e[a]),e.splice(a,1),a--),n})),t.formatArgs.call(o,e),(o.log||t.log).apply(o,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:function(){return null===o?t.enabled(e):o},set:function(e){o=e}}),"function"==typeof t.init&&t.init(s),s}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=__spreadArray(__spreadArray([],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,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;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$1={exports:{}},p$1.exports),p$1.exports)("useDomContext");function h$1(e,t,n){void 0===n&&(n={});var r=useRef(void 0),o=useState(void 0),s=o[0],i=o[1],a=useMemo((function(){var o=new s$1(c({contextName:t,element:e,onChange:function(e){r.current=e,i(e)}},n));return o.start(),m$1("Listener initialized",o),{listener:o}}),[t,r]).listener;return useEffect((function(){return m$1("Listener starting (or restarting)",a),a.start(),function(){m$1("Listener stopping (or restopping)",a),a.stop()}}),[a,e.isConnected]),s||r.current}function y(e,t,n){var r=useMemo((function(){var r=new c$1({contextName:t,element:e,initialState:n});return r.start(),m$1("Provider initialized",r),r}),[t,e]);useEffect((function(){return m$1("Provider starting (or restarting)",r),r.start(),function(){m$1("Provider stopping (or re-stopping)",r),r.stop()}}),[r,e.isConnected]);var o=useReducer((function(e,t){var n;return m$1("New context value",t),n="function"==typeof t?t(r.context):t,r.context=n,r.context}),r.context);return[o[0],o[1],r]}function s(){return getRenderingRef()}function l(){var e=s();return getElement(e)}function d(e,t){void 0===t&&(t={});var n=l();return h$1(n,e,t)}function m(e,t){var n=l();return y(n,e,t)}var p=browser("stencil-hook");function h(e){var t,n=getElement(e),r=(t=!1,new State((function(){p("Queue update on element",n),t||(t=!0,Promise.resolve().then((function(){p("Forced update on element",n),t=!1,forceUpdate(n)})))}),n)),o=e.disconnectedCallback;if(!o)throw new Error("Stencil hooks requires `disconnectedCallback` to be defined (even if it's empty). This is because of how the Stencil compiler works internally");e.disconnectedCallback=function(){r.teardown(),v(o)};var s=e.connectedCallback;e.connectedCallback=function(){r.update(),v(s)};var i=e.render.bind(e);e.render=function(){var e=r.run(i);return r.runEffects(),e}}function v(e){"function"==typeof e&&e()}export{commonjsGlobal as a,browser as b,createCommonjsModule as c,getDefaultExportFromCjs as d,useReducer as e,useRef as f,getAugmentedNamespace as g,h$1 as h,useMemo as i,c$1 as j,useState as k,l,h as m,m as n,d as o,useEffect as u,y};
@@ -1 +0,0 @@
1
- import{i as useMemo}from"./stencil-hooks.module-1bcbec4f.js";var useCallback=function(e,o){return useMemo((function(){return e}),o)};export{useCallback as u};
@@ -1 +0,0 @@
1
- var __spreadArray=this&&this.__spreadArray||function(e,r){for(var t=0,n=r.length,s=e.length;t<n;t++,s++)e[s]=r[t];return e};import{P,r as rn}from"./index.module-983975d9.js";import{u as useEffect,k as useState}from"./stencil-hooks.module-1bcbec4f.js";var RENDER_EVENT="sqm:request-rerender";function useRequestRerender(e){var r=P();useEffect((function(){r.dispatchEvent(new CustomEvent(RENDER_EVENT,{detail:true,bubbles:true,composed:true}))}),e)}function useRerenderListener(){var e=P();var r=rn(),t=r[0],n=r[1];useEffect((function(){var r=function(e){e.stopPropagation();n()};e.addEventListener(RENDER_EVENT,r);return function(){e.removeEventListener(RENDER_EVENT,r)}}),[]);return t}function useChildElements(){var e=P();var r=e.children.length?Array.from(e.children):[];var t=useState(r),n=t[0],s=t[1];useEffect((function(){var r=new MutationObserver((function(){var r=Array.from(e.children);s(__spreadArray([],r))}));r.observe(e,{childList:true});return function(){return r.disconnect()}}),[e]);return n}export{useChildElements as a,useRequestRerender as b,useRerenderListener as u};
@@ -1 +0,0 @@
1
- var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,r){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:r})}else{e.raw=r}return e};var __assign=this&&this.__assign||function(){__assign=Object.assign||function(e){for(var r,n=1,t=arguments.length;n<t;n++){r=arguments[n];for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a))e[a]=r[a]}return e};return __assign.apply(this,arguments)};var __spreadArray=this&&this.__spreadArray||function(e,r){for(var n=0,t=r.length,a=e.length;n<t;n++,a++)e[a]=r[n];return e};import{b as browser,i as useMemo}from"./stencil-hooks.module-1bcbec4f.js";import{c as cjs}from"./cjs-bdfb4486.js";import{M,A as An,i as ie,d as dist,b as sn}from"./index.module-983975d9.js";function lexer(e){var r=[];var n=0;while(n<e.length){var t=e[n];if(t==="*"||t==="+"||t==="?"){r.push({type:"MODIFIER",index:n,value:e[n++]});continue}if(t==="\\"){r.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if(t==="{"){r.push({type:"OPEN",index:n,value:e[n++]});continue}if(t==="}"){r.push({type:"CLOSE",index:n,value:e[n++]});continue}if(t===":"){var a="";var l=n+1;while(l<e.length){var i=e.charCodeAt(l);if(i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122||i===95){a+=e[l++];continue}break}if(!a)throw new TypeError("Missing parameter name at "+n);r.push({type:"NAME",index:n,value:a});n=l;continue}if(t==="("){var o=1;var u="";var l=n+1;if(e[l]==="?"){throw new TypeError('Pattern cannot start with "?" at '+l)}while(l<e.length){if(e[l]==="\\"){u+=e[l++]+e[l++];continue}if(e[l]===")"){o--;if(o===0){l++;break}}else if(e[l]==="("){o++;if(e[l+1]!=="?"){throw new TypeError("Capturing groups are not allowed at "+l)}}u+=e[l++]}if(o)throw new TypeError("Unbalanced pattern at "+n);if(!u)throw new TypeError("Missing pattern at "+n);r.push({type:"PATTERN",index:n,value:u});n=l;continue}r.push({type:"CHAR",index:n,value:e[n++]})}r.push({type:"END",index:n,value:""});return r}function parse(e,r){if(r===void 0){r={}}var n=lexer(e);var t=r.prefixes,a=t===void 0?"./":t;var l="[^"+escapeString(r.delimiter||"/#?")+"]+?";var i=[];var o=0;var u=0;var d="";var v=function(e){if(u<n.length&&n[u].type===e)return n[u++].value};var s=function(e){var r=v(e);if(r!==undefined)return r;var t=n[u],a=t.type,l=t.index;throw new TypeError("Unexpected "+a+" at "+l+", expected "+e)};var p=function(){var e="";var r;while(r=v("CHAR")||v("ESCAPED_CHAR")){e+=r}return e};while(u<n.length){var c=v("CHAR");var f=v("NAME");var m=v("PATTERN");if(f||m){var g=c||"";if(a.indexOf(g)===-1){d+=g;g=""}if(d){i.push(d);d=""}i.push({name:f||o++,prefix:g,suffix:"",pattern:m||l,modifier:v("MODIFIER")||""});continue}var y=c||v("ESCAPED_CHAR");if(y){d+=y;continue}if(d){i.push(d);d=""}var w=v("OPEN");if(w){var g=p();var _=v("NAME")||"";var b=v("PATTERN")||"";var I=p();s("CLOSE");i.push({name:_||(b?o++:""),pattern:_&&!b?l:b,prefix:g,suffix:I,modifier:v("MODIFIER")||""});continue}s("END")}return i}function escapeString(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function flags(e){return e&&e.sensitive?"":"i"}function regexpToRegexp(e,r){if(!r)return e;var n=/\((?:\?<(.*?)>)?(?!\?)/g;var t=0;var a=n.exec(e.source);while(a){r.push({name:a[1]||t++,prefix:"",suffix:"",modifier:"",pattern:""});a=n.exec(e.source)}return e}function arrayToRegexp(e,r,n){var t=e.map((function(e){return pathToRegexp(e,r,n).source}));return new RegExp("(?:"+t.join("|")+")",flags(n))}function stringToRegexp(e,r,n){return tokensToRegexp(parse(e,n),r,n)}function tokensToRegexp(e,r,n){if(n===void 0){n={}}var t=n.strict,a=t===void 0?false:t,l=n.start,i=l===void 0?true:l,o=n.end,u=o===void 0?true:o,d=n.encode,v=d===void 0?function(e){return e}:d;var s="["+escapeString(n.endsWith||"")+"]|$";var p="["+escapeString(n.delimiter||"/#?")+"]";var c=i?"^":"";for(var f=0,m=e;f<m.length;f++){var g=m[f];if(typeof g==="string"){c+=escapeString(v(g))}else{var y=escapeString(v(g.prefix));var w=escapeString(v(g.suffix));if(g.pattern){if(r)r.push(g);if(y||w){if(g.modifier==="+"||g.modifier==="*"){var _=g.modifier==="*"?"?":"";c+="(?:"+y+"((?:"+g.pattern+")(?:"+w+y+"(?:"+g.pattern+"))*)"+w+")"+_}else{c+="(?:"+y+"("+g.pattern+")"+w+")"+g.modifier}}else{c+="("+g.pattern+")"+g.modifier}}else{c+="(?:"+y+w+")"+g.modifier}}}if(u){if(!a)c+=p+"?";c+=!n.endsWith?"$":"(?="+s+")"}else{var b=e[e.length-1];var I=typeof b==="string"?p.indexOf(b[b.length-1])>-1:b===undefined;if(!a){c+="(?:"+p+"(?="+s+"))?"}if(!I){c+="(?="+p+"|"+s+")"}}return new RegExp(c,flags(n))}function pathToRegexp(e,r,n){if(e instanceof RegExp)return regexpToRegexp(e,r);if(Array.isArray(e))return arrayToRegexp(e,r,n);return stringToRegexp(e,r,n)}var debug=browser("sq:useBigStat");var LOADING="...";var debugQuery=function(e,r,n){var t=sn(e,r);if(!(t===null||t===void 0?void 0:t.data)&&!t.loading){console.error("issue getting stat:",t)}var a=n(t);return __assign(__assign({},a),{loading:t.loading})};var referralsCountQuery=function(e,r,n){var t=e==="classic"?{programId_exists:false}:{programId_eq:e};var a=n&&n=="converted"?{dateConverted_exists:true}:n&&n=="started"?{dateConverted_exists:false}:{};var l=__assign(__assign({},t),a);return debugQuery(dist.gql(templateObject_1||(templateObject_1=__makeTemplateObject(["\n query ($queryFilter: ReferralFilterInput) {\n viewer {\n ... on User {\n referrals(filter: $queryFilter) {\n totalCount\n }\n }\n }\n }\n "],["\n query ($queryFilter: ReferralFilterInput) {\n viewer {\n ... on User {\n referrals(filter: $queryFilter) {\n totalCount\n }\n }\n }\n }\n "]))),{queryFilter:l},(function(e){var r,n,t,a,l,i,o;return{value:(t=(n=(r=e.data)===null||r===void 0?void 0:r.viewer)===null||n===void 0?void 0:n.referrals)===null||t===void 0?void 0:t.totalCount,statvalue:(o=(i=(l=(a=e.data)===null||a===void 0?void 0:a.viewer)===null||l===void 0?void 0:l.referrals)===null||i===void 0?void 0:i.totalCount)===null||o===void 0?void 0:o.toString()}}))};var programGoalsQuery=function(e,r,n,t){if(e==="classic")return null;return debugQuery(dist.gql(templateObject_2||(templateObject_2=__makeTemplateObject(["\n query {\n viewer {\n ... on User {\n programGoals {\n goalId\n programId\n count\n conversionCount\n }\n }\n }\n }\n "],["\n query {\n viewer {\n ... on User {\n programGoals {\n goalId\n programId\n count\n conversionCount\n }\n }\n }\n }\n "]))),{programId:e,metricType:n,goalId:t,locale:r},(function(r){var a,l,i,o,u,d;var v=(i=(l=(a=r.data)===null||a===void 0?void 0:a.viewer)===null||l===void 0?void 0:l.programGoals)===null||i===void 0?void 0:i.filter((function(r){return r.goalId===t&&r.programId===e}));return{value:((o=v===null||v===void 0?void 0:v[0])===null||o===void 0?void 0:o[n])||0,statvalue:((d=(u=v===null||v===void 0?void 0:v[0])===null||u===void 0?void 0:u[n])===null||d===void 0?void 0:d.toString())||0}}))};var customFieldsQuery=function(e,r,n,t){if(e==="classic")return null;return debugQuery(dist.gql(templateObject_3||(templateObject_3=__makeTemplateObject(["\n query {\n viewer {\n ... on User {\n customFields\n }\n }\n }\n "],["\n query {\n viewer {\n ... on User {\n customFields\n }\n }\n }\n "]))),{programId:e,fieldName:n,goalId:t,locale:r},(function(e){var r,t,a;var l=(a=(t=(r=e.data)===null||r===void 0?void 0:r.viewer)===null||t===void 0?void 0:t.customFields)===null||a===void 0?void 0:a[n];return{value:l||0,statvalue:(l===null||l===void 0?void 0:l.toString())||"0"}}))};var referralsMonthQuery=function(e){var r=e==="classic"?{programId_exists:false}:{programId_eq:e};var n=__assign(__assign({},r),{dateReferralStarted_timeframe:"this_month"});return debugQuery(dist.gql(templateObject_4||(templateObject_4=__makeTemplateObject(["\n query ($filter: ReferralFilterInput) {\n viewer {\n ... on User {\n referrals(filter: $filter) {\n totalCount\n }\n }\n }\n }\n "],["\n query ($filter: ReferralFilterInput) {\n viewer {\n ... on User {\n referrals(filter: $filter) {\n totalCount\n }\n }\n }\n }\n "]))),{filter:n},(function(e){var r,n,t,a,l,i,o;return{value:((t=(n=(r=e.data)===null||r===void 0?void 0:r.viewer)===null||n===void 0?void 0:n.referrals)===null||t===void 0?void 0:t.totalCount)||0,statvalue:(o=(i=(l=(a=e.data)===null||a===void 0?void 0:a.viewer)===null||l===void 0?void 0:l.referrals)===null||i===void 0?void 0:i.totalCount)===null||o===void 0?void 0:o.toString()}}))};var referralsWeekQuery=function(e){var r=e==="classic"?{programId_exists:false}:{programId_eq:e};var n=__assign(__assign({},r),{dateReferralStarted_timeframe:"this_month"});return debugQuery(dist.gql(templateObject_5||(templateObject_5=__makeTemplateObject(["\n query ($filter: ReferralFilterInput) {\n viewer {\n ... on User {\n referrals(filter: $filter) {\n totalCount\n }\n }\n }\n }\n "],["\n query ($filter: ReferralFilterInput) {\n viewer {\n ... on User {\n referrals(filter: $filter) {\n totalCount\n }\n }\n }\n }\n "]))),{filter:n},(function(e){var r,n,t,a,l,i,o;return{value:((t=(n=(r=e.data)===null||r===void 0?void 0:r.viewer)===null||n===void 0?void 0:n.referrals)===null||t===void 0?void 0:t.totalCount)||0,statvalue:(o=(i=(l=(a=e.data)===null||a===void 0?void 0:a.viewer)===null||l===void 0?void 0:l.referrals)===null||i===void 0?void 0:i.totalCount)===null||o===void 0?void 0:o.toString()}}))};var rewardsCountQuery=function(e,r,n){if(n===void 0){n=""}return debugQuery(dist.gql(templateObject_6||(templateObject_6=__makeTemplateObject(["\n query ($programId: ID) {\n viewer {\n ... on User {\n rewards(filter: { programId_eq: $programId }) {\n totalCount\n }\n }\n }\n }\n "],["\n query ($programId: ID) {\n viewer {\n ... on User {\n rewards(filter: { programId_eq: $programId }) {\n totalCount\n }\n }\n }\n }\n "]))),{programId:!n&&e!=="classic"?e:null},(function(e){var r,n,t,a,l,i,o;return{value:((t=(n=(r=e.data)===null||r===void 0?void 0:r.viewer)===null||n===void 0?void 0:n.rewards)===null||t===void 0?void 0:t.totalCount)||0,statvalue:(o=(i=(l=(a=e.data)===null||a===void 0?void 0:a.viewer)===null||l===void 0?void 0:l.rewards)===null||i===void 0?void 0:i.totalCount)===null||o===void 0?void 0:o.toString()}}))};var rewardsCountFilteredQuery=function(e,r,n,t,a,l){if(l===void 0){l=""}var i=a?{status:a}:null;return debugQuery(dist.gql(templateObject_7||(templateObject_7=__makeTemplateObject(["\n query (\n $programId: ID\n $unit: String\n $type: RewardType\n $statusFilter: RewardStatusFilterInput\n ) {\n viewer {\n ... on User {\n rewards(\n filter: {\n programId_eq: $programId\n type_eq: $type\n unit_eq: $unit\n statuses_eq: $statusFilter\n }\n ) {\n totalCount\n }\n }\n }\n }\n "],["\n query (\n $programId: ID\n $unit: String\n $type: RewardType\n $statusFilter: RewardStatusFilterInput\n ) {\n viewer {\n ... on User {\n rewards(\n filter: {\n programId_eq: $programId\n type_eq: $type\n unit_eq: $unit\n statuses_eq: $statusFilter\n }\n ) {\n totalCount\n }\n }\n }\n }\n "]))),{programId:!l&&e!=="classic"?e:null,unit:t,type:n,statusFilter:i},(function(e){var r,n,t,a,l,i,o;return{value:((t=(n=(r=e.data)===null||r===void 0?void 0:r.viewer)===null||n===void 0?void 0:n.rewards)===null||t===void 0?void 0:t.totalCount)||0,statvalue:(o=(i=(l=(a=e.data)===null||a===void 0?void 0:a.viewer)===null||l===void 0?void 0:l.rewards)===null||i===void 0?void 0:i.totalCount)===null||o===void 0?void 0:o.toString()}}))};var integrationRewardsCountFilteredQuery=function(e,r,n,t){if(t===void 0){t=""}var a=n?{status:n}:null;return debugQuery(dist.gql(templateObject_8||(templateObject_8=__makeTemplateObject(["\n query ($programId: ID, $statusFilter: RewardStatusFilterInput) {\n viewer {\n ... on User {\n rewards(\n filter: {\n programId_eq: $programId\n type_eq: INTEGRATION\n statuses_eq: $statusFilter\n }\n ) {\n totalCount\n }\n }\n }\n }\n "],["\n query ($programId: ID, $statusFilter: RewardStatusFilterInput) {\n viewer {\n ... on User {\n rewards(\n filter: {\n programId_eq: $programId\n type_eq: INTEGRATION\n statuses_eq: $statusFilter\n }\n ) {\n totalCount\n }\n }\n }\n }\n "]))),{programId:!t&&e!=="classic"?e:null,statusFilter:a},(function(e){var r,n,t,a,l,i,o;return{value:((t=(n=(r=e.data)===null||r===void 0?void 0:r.viewer)===null||n===void 0?void 0:n.rewards)===null||t===void 0?void 0:t.totalCount)||0,statvalue:(o=(i=(l=(a=e.data)===null||a===void 0?void 0:a.viewer)===null||l===void 0?void 0:l.rewards)===null||i===void 0?void 0:i.totalCount)===null||o===void 0?void 0:o.toString()}}))};var rewardsMonthQuery=function(e,r,n){if(n===void 0){n=""}return debugQuery(dist.gql(templateObject_9||(templateObject_9=__makeTemplateObject(['\n query ($programId: ID) {\n viewer {\n ... on User {\n rewards(\n filter: {\n programId_eq: $programId\n dateGiven_timeframe: "this_month"\n }\n ) {\n totalCount\n }\n }\n }\n }\n '],['\n query ($programId: ID) {\n viewer {\n ... on User {\n rewards(\n filter: {\n programId_eq: $programId\n dateGiven_timeframe: "this_month"\n }\n ) {\n totalCount\n }\n }\n }\n }\n ']))),{programId:!n&&e!=="classic"?e:null},(function(e){var r,n,t,a,l,i,o;return{value:((t=(n=(r=e.data)===null||r===void 0?void 0:r.viewer)===null||n===void 0?void 0:n.rewards)===null||t===void 0?void 0:t.totalCount)||0,statvalue:(o=(i=(l=(a=e.data)===null||a===void 0?void 0:a.viewer)===null||l===void 0?void 0:l.rewards)===null||i===void 0?void 0:i.totalCount)===null||o===void 0?void 0:o.toString()}}))};var rewardsWeekQuery=function(e,r,n){if(n===void 0){n=""}return debugQuery(dist.gql(templateObject_10||(templateObject_10=__makeTemplateObject(['\n query ($programId: ID) {\n viewer {\n ... on User {\n rewards(\n filter: {\n programId_eq: $programId\n dateGiven_timeframe: "this_week"\n }\n ) {\n totalCount\n }\n }\n }\n }\n '],['\n query ($programId: ID) {\n viewer {\n ... on User {\n rewards(\n filter: {\n programId_eq: $programId\n dateGiven_timeframe: "this_week"\n }\n ) {\n totalCount\n }\n }\n }\n }\n ']))),{programId:!n&&e!=="classic"?e:null},(function(e){var r,n,t,a,l,i,o;return{value:((t=(n=(r=e.data)===null||r===void 0?void 0:r.viewer)===null||n===void 0?void 0:n.rewards)===null||t===void 0?void 0:t.totalCount)||0,statvalue:(o=(i=(l=(a=e.data)===null||a===void 0?void 0:a.viewer)===null||l===void 0?void 0:l.rewards)===null||i===void 0?void 0:i.totalCount)===null||o===void 0?void 0:o.toString()}}))};var rewardsRedeemedQuery=function(e,r,n,t,a){if(a===void 0){a=""}return debugQuery(dist.gql(templateObject_11||(templateObject_11=__makeTemplateObject(["\n query (\n $programId: ID\n $type: RewardType\n $unit: String!\n $locale: RSLocale\n ) {\n fallback: formatRewardPrettyValue(\n value: 0\n unit: $unit\n locale: $locale\n formatType: UNIT_FORMATTED\n )\n viewer: viewer {\n ... on User {\n rewardBalanceDetails(\n programId: $programId\n filter: { type_eq: $type, unit_eq: $unit }\n locale: $locale\n ) {\n ... on CreditRewardBalance {\n prettyRedeemedCredit\n }\n }\n }\n }\n }\n "],["\n query (\n $programId: ID\n $type: RewardType\n $unit: String!\n $locale: RSLocale\n ) {\n fallback: formatRewardPrettyValue(\n value: 0\n unit: $unit\n locale: $locale\n formatType: UNIT_FORMATTED\n )\n viewer: viewer {\n ... on User {\n rewardBalanceDetails(\n programId: $programId\n filter: { type_eq: $type, unit_eq: $unit }\n locale: $locale\n ) {\n ... on CreditRewardBalance {\n prettyRedeemedCredit\n }\n }\n }\n }\n }\n "]))),{programId:!a&&e!=="classic"?e:null,type:n,unit:t,locale:r},(function(e){var r,n,t,a,l;var i=(n=(r=e.data)===null||r===void 0?void 0:r.viewer)===null||n===void 0?void 0:n.rewardBalanceDetails;var o=(t=e.data)===null||t===void 0?void 0:t.fallback;return{value:((a=i===null||i===void 0?void 0:i[0])===null||a===void 0?void 0:a.prettyRedeemedCredit)||0,statvalue:((l=i===null||i===void 0?void 0:i[0])===null||l===void 0?void 0:l.prettyRedeemedCredit)||o}}))};var rewardsAssignedQuery=function(e,r,n,t,a){if(a===void 0){a=""}return debugQuery(dist.gql(templateObject_12||(templateObject_12=__makeTemplateObject(["\n query (\n $programId: ID\n $type: RewardType\n $unit: String!\n $locale: RSLocale\n ) {\n fallback: formatRewardPrettyValue(\n value: 0\n unit: $unit\n locale: $locale\n formatType: UNIT_FORMATTED\n )\n viewer: viewer {\n ... on User {\n rewardBalanceDetails(\n programId: $programId\n filter: { type_eq: $type, unit_eq: $unit }\n locale: $locale\n ) {\n ... on CreditRewardBalance {\n prettyAssignedCredit\n }\n }\n }\n }\n }\n "],["\n query (\n $programId: ID\n $type: RewardType\n $unit: String!\n $locale: RSLocale\n ) {\n fallback: formatRewardPrettyValue(\n value: 0\n unit: $unit\n locale: $locale\n formatType: UNIT_FORMATTED\n )\n viewer: viewer {\n ... on User {\n rewardBalanceDetails(\n programId: $programId\n filter: { type_eq: $type, unit_eq: $unit }\n locale: $locale\n ) {\n ... on CreditRewardBalance {\n prettyAssignedCredit\n }\n }\n }\n }\n }\n "]))),{programId:!a&&e!=="classic"?e:null,type:n,unit:t,locale:r},(function(e){var r,n,t,a,l;var i=(n=(r=e.data)===null||r===void 0?void 0:r.viewer)===null||n===void 0?void 0:n.rewardBalanceDetails;var o=(t=e.data)===null||t===void 0?void 0:t.fallback;return{value:((a=i===null||i===void 0?void 0:i[0])===null||a===void 0?void 0:a.prettyAssignedCredit)||0,statvalue:((l=i===null||i===void 0?void 0:i[0])===null||l===void 0?void 0:l.prettyAssignedCredit)||o}}))};var rewardsAvailableQuery=function(e,r,n,t,a){if(a===void 0){a=""}return debugQuery(dist.gql(templateObject_13||(templateObject_13=__makeTemplateObject(["\n query (\n $programId: ID\n $type: RewardType\n $unit: String!\n $locale: RSLocale\n ) {\n fallback: formatRewardPrettyValue(\n value: 0\n unit: $unit\n locale: $locale\n formatType: UNIT_FORMATTED\n )\n viewer: viewer {\n ... on User {\n rewardBalanceDetails(\n programId: $programId\n filter: { type_eq: $type, unit_eq: $unit }\n locale: $locale\n ) {\n ... on CreditRewardBalance {\n prettyAvailableValue\n }\n }\n }\n }\n }\n "],["\n query (\n $programId: ID\n $type: RewardType\n $unit: String!\n $locale: RSLocale\n ) {\n fallback: formatRewardPrettyValue(\n value: 0\n unit: $unit\n locale: $locale\n formatType: UNIT_FORMATTED\n )\n viewer: viewer {\n ... on User {\n rewardBalanceDetails(\n programId: $programId\n filter: { type_eq: $type, unit_eq: $unit }\n locale: $locale\n ) {\n ... on CreditRewardBalance {\n prettyAvailableValue\n }\n }\n }\n }\n }\n "]))),{programId:!a&&e!=="classic"?e:null,type:n,unit:t,locale:r},(function(e){var r,n,t,a,l;var i=(n=(r=e.data)===null||r===void 0?void 0:r.viewer)===null||n===void 0?void 0:n.rewardBalanceDetails;var o=(t=e.data)===null||t===void 0?void 0:t.fallback;return{value:((a=i===null||i===void 0?void 0:i[0])===null||a===void 0?void 0:a.prettyAvailableValue)||0,statvalue:((l=i===null||i===void 0?void 0:i[0])===null||l===void 0?void 0:l.prettyAvailableValue)||o}}))};var parseRewardValueFormat={prettyValue:"UNIT_FORMATTED",value:"NUMBER_UNFORMATTED"};var rewardsBalanceQuery=function(e,r,n,t,a,l){if(a===void 0){a="prettyValue"}if(l===void 0){l=""}var i;return debugQuery(dist.gql(templateObject_14||(templateObject_14=__makeTemplateObject(["\n query (\n $programId: ID\n $type: RewardType!\n $unit: String!\n $format: RewardValueFormatType!\n $locale: RSLocale\n ) {\n fallback: formatRewardPrettyValue(\n value: 0\n unit: $unit\n locale: $locale\n formatType: $format\n )\n viewer: viewer {\n ... on User {\n rewardBalanceDetails(\n programId: $programId\n filter: { type_eq: $type, unit_eq: $unit }\n locale: $locale\n ) {\n ... on CreditRewardBalance {\n prettyAvailableValue(formatType: $format)\n }\n }\n }\n }\n }\n "],["\n query (\n $programId: ID\n $type: RewardType!\n $unit: String!\n $format: RewardValueFormatType!\n $locale: RSLocale\n ) {\n fallback: formatRewardPrettyValue(\n value: 0\n unit: $unit\n locale: $locale\n formatType: $format\n )\n viewer: viewer {\n ... on User {\n rewardBalanceDetails(\n programId: $programId\n filter: { type_eq: $type, unit_eq: $unit }\n locale: $locale\n ) {\n ... on CreditRewardBalance {\n prettyAvailableValue(formatType: $format)\n }\n }\n }\n }\n }\n "]))),{programId:!l&&e!=="classic"?e:null,type:n,unit:t,format:(i=parseRewardValueFormat[a])!==null&&i!==void 0?i:"UNIT_FORMATTED",locale:r},(function(e){var r,n,t,a,l;var i=(n=(r=e.data)===null||r===void 0?void 0:r.viewer)===null||n===void 0?void 0:n.rewardBalanceDetails;var o=(t=e.data)===null||t===void 0?void 0:t.fallback;return{value:((a=i===null||i===void 0?void 0:i[0])===null||a===void 0?void 0:a.prettyAvailableValue)||0,statvalue:((l=i===null||i===void 0?void 0:i[0])===null||l===void 0?void 0:l.prettyAvailableValue)||o}}))};var queries={rewardsAssigned:{label:"Rewards Earned",query:rewardsAssignedQuery},rewardsRedeemed:{label:"Rewards Paid",query:rewardsRedeemedQuery},rewardsAvailable:{label:"Rewards Available",query:rewardsAvailableQuery},referralsCount:{label:"Referrals - Count",query:referralsCountQuery},referralsMonth:{label:"Referrals - This Month",query:referralsMonthQuery},referralsWeek:{label:"Referrals - This Week",query:referralsWeekQuery},rewardsCount:{label:"Rewards",query:rewardsCountQuery},rewardsCountFiltered:{label:"Rewards",query:rewardsCountFilteredQuery},integrationRewardsCountFiltered:{label:"Rewards",query:integrationRewardsCountFilteredQuery},rewardsMonth:{label:"Rewards - This Month",query:rewardsMonthQuery},rewardsWeek:{label:"Rewards - This Week",query:rewardsWeekQuery},rewardBalance:{label:"Balance - Credit Earned",query:rewardsBalanceQuery},programGoals:{label:"Program Goals",query:programGoalsQuery},customFields:{label:"Custom Fields",query:customFieldsQuery}};var StatPaths=[{name:"programGoals",route:"/(programGoals)/:metricType/:goalId"},{name:"customFields",route:"/(customFields)/:customField"},{name:"referralsCount",route:"/(referralsCount)/:status?"},{name:"referralsMonth",route:"/(referralsMonth)"},{name:"referralsWeek",route:"/(referralsWeek)"},{name:"rewardsCount",route:"/(rewardsCount)/:global?"},{name:"rewardsMonth",route:"/(rewardsMonth)/:global?"},{name:"rewardsWeek",route:"/(rewardsWeek)/:global?"},{name:"rewardsCountFiltered",route:"/(rewardsCountFiltered)/:statType([INTEGRATION|PCT_DISCOUNT|CREDIT]*)?/:unit((?!global)(?!PENDING)(?!CANCELLED)(?!EXPIRED)(?!REDEEMED)(?!AVAILABLE)[a-zA-Z0-9%]+)?/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"},{name:"integrationRewardsCountFiltered",route:"/(integrationRewardsCountFiltered)/:status([PENDING|CANCELLED|EXPIRED|REDEEMED|AVAILABLE]*)?/:global?"},{name:"rewardsAssigned",route:"/(rewardsAssigned)/:statType/:unit/:global?"},{name:"rewardsRedeemed",route:"/(rewardsRedeemed)/:statType/:unit/:global?"},{name:"rewardsAvailable",route:"/(rewardsAvailable)/:statType/:unit/:global?"},{name:"rewardBalance",route:"/(rewardBalance)/:statType/:unit/:format([prettyValue|value]*)?/:global?"}];var StatPatterns=StatPaths.map((function(e){return pathToRegexp(e.route)}));function useBigStat(e){var r;var n;var t=e.statType,a=e.flexReverse,l=e.alignment,i=e.programId,o=i===void 0?M():i;var u=An();var d=ie();var v=useMemo((function(){return StatPatterns.find((function(e){return e.exec(t)}))}),[t]);if(!(v===null||v===void 0?void 0:v.exec(t))){return{props:{value:0,statvalue:"!!!",flexReverse:a,alignment:l,loading:false},label:"BAD PROP TYPE"}}var s=v.exec(t);var p=s[1];var c=StatPaths.find((function(e){return e.name===p}));var f=[];var m=pathToRegexp(c===null||c===void 0?void 0:c.route,f,{strict:false,sensitive:false,end:true});var g=m.exec(t);var y=f.map((function(e,r){return g[r+1]?decodeURIComponent(g[r+1]):undefined}));y.shift();var w=queries[p].label;var _=(d===null||d===void 0?void 0:d.jwt)&&(r=queries[p]).query.apply(r,__spreadArray([o,u],y));debug("stat:",_);return{props:{value:_===null||_===void 0?void 0:_.value,statvalue:(n=_===null||_===void 0?void 0:_.statvalue)!==null&&n!==void 0?n:LOADING,loading:_===null||_===void 0?void 0:_.loading,flexReverse:a,alignment:l},label:w}}function useDemoBigStat(e){var r=e.statType;var n=useMemo((function(){return StatPatterns.find((function(e){return e.exec(r)}))}),[r]);if(!(n===null||n===void 0?void 0:n.exec(r))){return{props:{value:0,statvalue:"!!!",loading:false,flexReverse:false,alignment:"center"},label:"BAD PROP TYPE"}}var t=n.exec(r);var a=t[1];var l=queries[a].label;return{props:cjs({statvalue:"12345",flexReverse:false,alignment:"center"},e.demoData||{},{arrayMerge:function(e,r){return r}}),label:l!==null&&l!==void 0?l:"Demo Label"}}export{useBigStat as a,pathToRegexp as p,useDemoBigStat as u};var templateObject_1,templateObject_2,templateObject_3,templateObject_4,templateObject_5,templateObject_6,templateObject_7,templateObject_8,templateObject_9,templateObject_10,templateObject_11,templateObject_12,templateObject_13,templateObject_14;
@@ -1 +0,0 @@
1
- var __makeTemplateObject=this&&this.__makeTemplateObject||function(e,r){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:r})}else{e.raw=r}return e};var __spreadArray=this&&this.__spreadArray||function(e,r){for(var a=0,n=r.length,t=e.length;a<n;a++,t++)e[t]=r[a];return e};import{g as getElement,h}from"./index-2c5a6587.js";import{d as dist,M,i as ie,b as sn}from"./index.module-983975d9.js";var map=new Map;function withShadowView(e){var r=getElement(e);var a=e["render"].bind(e);var n=function(){var e=r.getAttribute("stencilbook-shadow-view");if(e){var n=map.get(e);if(n){return n}}return a()};e["render"]=n}var ShadowViewAddon=function(e,r){var a=e.story;var n;var t=(n=a.parent.parameters)===null||n===void 0?void 0:n.tagname;if(!t)return r;var l=Math.round(Math.random()*1e5);map.set(l+"",r);var i="stencilbook-shawdow-view-"+l;return h(i,null,h(t,{"stencilbook-shadow-view":l}))};function empty(e){return h("table",null,h("tr",null,e.showRank&&h("th",{class:"Rank"},e.rankheading),h("th",{class:"User"},e.usersheading),h("th",{class:"Score"},e.statsheading)),h("tr",null,h("td",{colSpan:100},e.emptyStateText)))}function loading(){return h("table",null,__spreadArray([],Array(10)).map((function(){return h("tr",null,h("td",null,h("sl-skeleton",null)))})))}function LeaderboardView(e){var r,a,n,t,l,i,d;var o=e.states,s=e.data,u=e.elements;var v=o.styles;if(o.loading)return(r=u.loadingstate)!==null&&r!==void 0?r:loading();if(!o.hasLeaders)return(a=u.empty)!==null&&a!==void 0?a:empty(v);var m=false;return h("div",null,h("table",null,h("tr",null,v.showRank&&h("th",{class:"Rank"},v.rankheading),h("th",{class:"User"},v.usersheading),h("th",{class:"Score"},v.statsheading)),(n=s.leaderboard)===null||n===void 0?void 0:n.map((function(e){var r,a;if(e.rowNumber===((r=s.userRank)===null||r===void 0?void 0:r.rowNumber))m=true;return h("tr",{class:e.rowNumber===((a=s.userRank)===null||a===void 0?void 0:a.rowNumber)?"highlight":""},v.showRank&&h("td",{class:"Rank"},e.rank),h("td",{class:"User"},e.firstName+" "+e.lastInitial+" "),h("td",{class:"Score"},e.value))})),!m&&s.showUser&&h("tr",null,h("td",{colSpan:100,class:"ellipses"},h("sl-icon",{name:"three-dots",style:{verticalAlign:"middle"}}))),!m&&s.showUser&&h("tr",{class:"highlight"},v.showRank&&h("td",{class:"Rank"},((t=s.userRank)===null||t===void 0?void 0:t.rank)||"-"),h("td",{class:"User"},(((l=s.userRank)===null||l===void 0?void 0:l.firstName)||"-")+" "+(((i=s.userRank)===null||i===void 0?void 0:i.lastInitial)||"-")+" "),h("td",{class:"Score"},((d=s.userRank)===null||d===void 0?void 0:d.value)||"0"))))}var GET_LEADERBOARD=dist.gql(templateObject_1||(templateObject_1=__makeTemplateObject(["\n query ($type: String!, $filter: UserLeaderboardFilterInput) {\n userLeaderboard(type: $type, filter: $filter) {\n dateModified\n rows {\n value\n firstName\n lastInitial\n rank {\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"],["\n query ($type: String!, $filter: UserLeaderboardFilterInput) {\n userLeaderboard(type: $type, filter: $filter) {\n dateModified\n rows {\n value\n firstName\n lastInitial\n rank {\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"])));var GET_RANK=dist.gql(templateObject_2||(templateObject_2=__makeTemplateObject(["\n query ($type: String!, $filter: UserLeaderboardFilterInput) {\n viewer {\n ... on User {\n firstName\n lastInitial\n leaderboardRank(type: $type, filter: $filter) {\n value\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"],["\n query ($type: String!, $filter: UserLeaderboardFilterInput) {\n viewer {\n ... on User {\n firstName\n lastInitial\n leaderboardRank(type: $type, filter: $filter) {\n value\n rank\n denseRank\n rowNumber\n }\n }\n }\n }\n"])));function useLeaderboard(e){var r,a,n,t,l,i,d,o,s;var u=M();var v=ie();var h={type:e.leaderboardType,filter:{programId_eq:u}};if(e.interval){h.filter["interval"]=e.interval}var m=sn(GET_LEADERBOARD,h,!(v===null||v===void 0?void 0:v.jwt)),p=m.data,f=m.loading;var w=sn(GET_RANK,h,!(v===null||v===void 0?void 0:v.jwt)).data;var c=(r=p===null||p===void 0?void 0:p.userLeaderboard)===null||r===void 0?void 0:r.rows;var b=y(c);var k=b===null||b===void 0?void 0:b.sort((function(e,r){return e.rank-r.rank}));function y(r){return r===null||r===void 0?void 0:r.flatMap((function(r){var a,n;return{value:r.value,firstName:r.firstName||e.anonymousUser,lastInitial:r.lastInitial,rank:(a=r.rank)===null||a===void 0?void 0:a[e.rankType],rowNumber:(n=r.rank)===null||n===void 0?void 0:n.rowNumber}}))}console.log(w);var g={value:(n=(a=w===null||w===void 0?void 0:w.viewer)===null||a===void 0?void 0:a.leaderboardRank)===null||n===void 0?void 0:n.value,firstName:(t=w===null||w===void 0?void 0:w.viewer)===null||t===void 0?void 0:t.firstName,lastInitial:(l=w===null||w===void 0?void 0:w.viewer)===null||l===void 0?void 0:l.lastInitial,rank:(d=(i=w===null||w===void 0?void 0:w.viewer)===null||i===void 0?void 0:i.leaderboardRank)===null||d===void 0?void 0:d[e.rankType],rowNumber:(s=(o=w===null||w===void 0?void 0:w.viewer)===null||o===void 0?void 0:o.leaderboardRank)===null||s===void 0?void 0:s.rowNumber};return{states:{loading:f,hasLeaders:(k===null||k===void 0?void 0:k.length)>0,styles:e},data:{leaderboard:k,rankType:e.rankType,userRank:g,showUser:e.showUser},elements:{empty:e.empty,loadingstate:e.loadingstate}}}export{LeaderboardView as L,ShadowViewAddon as S,useLeaderboard as u,withShadowView as w};var templateObject_1,templateObject_2;
@@ -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){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __spreadArray=this&&this.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};System.register(["./p-860513de.system.js","./p-1c17892a.system.js","./p-b81b4ebf.system.js"],(function(e){"use strict";var t,n,r,i,a,o,s,u,c,l,f,d;return{setters:[function(e){t=e.c;n=e.a;r=e.d;i=e.h;a=e.u;o=e.e;s=e.f;u=e.i;c=e.j;l=e.k},function(e){f=e._},function(e){d=e.u}],execute:function(){e({$:qi,A:Vi,D:Wr,E:Yr,H:oi,K:mi,M:zn,N:ai,P:Jn,R:Ki,S:Gn,V:ri,Y:Ei,_:fi,a:Fi,b:xi,e:Or,f:Qn,g:ei,i:xr,j:Ui,k:Bi,l:Ci,n:_i,o:Ir,q:Hr,r:Si});var p=t((function(e,t){var r=typeof self!=="undefined"?self:n;var i=function(){function e(){this.fetch=false;this.DOMException=r.DOMException}e.prototype=r;return new e}();(function(e){(function(t){var n={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{new Blob;return true}catch(e){return false}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};function r(e){return e&&DataView.prototype.isPrototypeOf(e)}if(n.arrayBuffer){var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"];var a=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1}}function o(e){if(typeof e!=="string"){e=String(e)}if(/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e)){throw new TypeError("Invalid character in header field name")}return e.toLowerCase()}function s(e){if(typeof e!=="string"){e=String(e)}return e}function u(e){var t={next:function(){var t=e.shift();return{done:t===undefined,value:t}}};if(n.iterable){t[Symbol.iterator]=function(){return t}}return t}function c(e){this.map={};if(e instanceof c){e.forEach((function(e,t){this.append(t,e)}),this)}else if(Array.isArray(e)){e.forEach((function(e){this.append(e[0],e[1])}),this)}else if(e){Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}}c.prototype.append=function(e,t){e=o(e);t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};c.prototype["delete"]=function(e){delete this.map[o(e)]};c.prototype.get=function(e){e=o(e);return this.has(e)?this.map[e]:null};c.prototype.has=function(e){return this.map.hasOwnProperty(o(e))};c.prototype.set=function(e,t){this.map[o(e)]=s(t)};c.prototype.forEach=function(e,t){for(var n in this.map){if(this.map.hasOwnProperty(n)){e.call(t,this.map[n],n,this)}}};c.prototype.keys=function(){var e=[];this.forEach((function(t,n){e.push(n)}));return u(e)};c.prototype.values=function(){var e=[];this.forEach((function(t){e.push(t)}));return u(e)};c.prototype.entries=function(){var e=[];this.forEach((function(t,n){e.push([n,t])}));return u(e)};if(n.iterable){c.prototype[Symbol.iterator]=c.prototype.entries}function l(e){if(e.bodyUsed){return Promise.reject(new TypeError("Already read"))}e.bodyUsed=true}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)};e.onerror=function(){n(e.error)}}))}function d(e){var t=new FileReader;var n=f(t);t.readAsArrayBuffer(e);return n}function p(e){var t=new FileReader;var n=f(t);t.readAsText(e);return n}function h(e){var t=new Uint8Array(e);var n=new Array(t.length);for(var r=0;r<t.length;r++){n[r]=String.fromCharCode(t[r])}return n.join("")}function v(e){if(e.slice){return e.slice(0)}else{var t=new Uint8Array(e.byteLength);t.set(new Uint8Array(e));return t.buffer}}function y(){this.bodyUsed=false;this._initBody=function(e){this._bodyInit=e;if(!e){this._bodyText=""}else if(typeof e==="string"){this._bodyText=e}else if(n.blob&&Blob.prototype.isPrototypeOf(e)){this._bodyBlob=e}else if(n.formData&&FormData.prototype.isPrototypeOf(e)){this._bodyFormData=e}else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)){this._bodyText=e.toString()}else if(n.arrayBuffer&&n.blob&&r(e)){this._bodyArrayBuffer=v(e.buffer);this._bodyInit=new Blob([this._bodyArrayBuffer])}else if(n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))){this._bodyArrayBuffer=v(e)}else{this._bodyText=e=Object.prototype.toString.call(e)}if(!this.headers.get("content-type")){if(typeof e==="string"){this.headers.set("content-type","text/plain;charset=UTF-8")}else if(this._bodyBlob&&this._bodyBlob.type){this.headers.set("content-type",this._bodyBlob.type)}else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)){this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8")}}};if(n.blob){this.blob=function(){var e=l(this);if(e){return e}if(this._bodyBlob){return Promise.resolve(this._bodyBlob)}else if(this._bodyArrayBuffer){return Promise.resolve(new Blob([this._bodyArrayBuffer]))}else if(this._bodyFormData){throw new Error("could not read FormData body as blob")}else{return Promise.resolve(new Blob([this._bodyText]))}};this.arrayBuffer=function(){if(this._bodyArrayBuffer){return l(this)||Promise.resolve(this._bodyArrayBuffer)}else{return this.blob().then(d)}}}this.text=function(){var e=l(this);if(e){return e}if(this._bodyBlob){return p(this._bodyBlob)}else if(this._bodyArrayBuffer){return Promise.resolve(h(this._bodyArrayBuffer))}else if(this._bodyFormData){throw new Error("could not read FormData body as text")}else{return Promise.resolve(this._bodyText)}};if(n.formData){this.formData=function(){return this.text().then(E)}}this.json=function(){return this.text().then(JSON.parse)};return this}var m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e){var t=e.toUpperCase();return m.indexOf(t)>-1?t:e}function g(e,t){t=t||{};var n=t.body;if(e instanceof g){if(e.bodyUsed){throw new TypeError("Already read")}this.url=e.url;this.credentials=e.credentials;if(!t.headers){this.headers=new c(e.headers)}this.method=e.method;this.mode=e.mode;this.signal=e.signal;if(!n&&e._bodyInit!=null){n=e._bodyInit;e.bodyUsed=true}}else{this.url=String(e)}this.credentials=t.credentials||this.credentials||"same-origin";if(t.headers||!this.headers){this.headers=new c(t.headers)}this.method=b(t.method||this.method||"GET");this.mode=t.mode||this.mode||null;this.signal=t.signal||this.signal;this.referrer=null;if((this.method==="GET"||this.method==="HEAD")&&n){throw new TypeError("Body not allowed for GET or HEAD requests")}this._initBody(n)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})};function E(e){var t=new FormData;e.trim().split("&").forEach((function(e){if(e){var n=e.split("=");var r=n.shift().replace(/\+/g," ");var i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}));return t}function w(e){var t=new c;var n=e.replace(/\r?\n[\t ]+/g," ");n.split(/\r?\n/).forEach((function(e){var n=e.split(":");var r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}));return t}y.call(g.prototype);function _(e,t){if(!t){t={}}this.type="default";this.status=t.status===undefined?200:t.status;this.ok=this.status>=200&&this.status<300;this.statusText="statusText"in t?t.statusText:"OK";this.headers=new c(t.headers);this.url=t.url||"";this._initBody(e)}y.call(_.prototype);_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new c(this.headers),url:this.url})};_.error=function(){var e=new _(null,{status:0,statusText:""});e.type="error";return e};var T=[301,302,303,307,308];_.redirect=function(e,t){if(T.indexOf(t)===-1){throw new RangeError("Invalid status code")}return new _(null,{status:t,headers:{location:e}})};t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e;this.name=t;var n=Error(e);this.stack=n.stack};t.DOMException.prototype=Object.create(Error.prototype);t.DOMException.prototype.constructor=t.DOMException}function S(e,r){return new Promise((function(i,a){var o=new g(e,r);if(o.signal&&o.signal.aborted){return a(new t.DOMException("Aborted","AbortError"))}var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:w(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;i(new _(t,e))};s.onerror=function(){a(new TypeError("Network request failed"))};s.ontimeout=function(){a(new TypeError("Network request failed"))};s.onabort=function(){a(new t.DOMException("Aborted","AbortError"))};s.open(o.method,o.url,true);if(o.credentials==="include"){s.withCredentials=true}else if(o.credentials==="omit"){s.withCredentials=false}if("responseType"in s&&n.blob){s.responseType="blob"}o.headers.forEach((function(e,t){s.setRequestHeader(t,e)}));if(o.signal){o.signal.addEventListener("abort",u);s.onreadystatechange=function(){if(s.readyState===4){o.signal.removeEventListener("abort",u)}}}s.send(typeof o._bodyInit==="undefined"?null:o._bodyInit)}))}S.polyfill=true;if(!e.fetch){e.fetch=S;e.Headers=c;e.Request=g;e.Response=_}t.Headers=c;t.Request=g;t.Response=_;t.fetch=S;Object.defineProperty(t,"__esModule",{value:true});return t})({})})(i);i.fetch.ponyfill=true;delete i.fetch.polyfill;var a=i;t=a.fetch;t.default=a.fetch;t.fetch=a.fetch;t.Headers=a.Headers;t.Request=a.Request;t.Response=a.Response;e.exports=t}));var h=t((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 v=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=s;var n=r(h);function r(e){return e&&e.__esModule?e:{default:e}}function i(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){i=function e(t){return typeof t}}else{i=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return i(e)}var a=10;var o=2;function s(e){return u(e,[])}function u(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":if(e===null){return"null"}return c(e,t);default:return String(e)}}function c(e,t){if(t.indexOf(e)!==-1){return"[Circular]"}var n=[].concat(t,[e]);var r=d(e);if(r!==undefined){var i=r.call(e);if(i!==e){return typeof i==="string"?i:u(i,n)}}else if(Array.isArray(e)){return f(e,n)}return l(e,n)}function l(e,t){var n=Object.keys(e);if(n.length===0){return"{}"}if(t.length>o){return"["+p(e)+"]"}var r=n.map((function(n){var r=u(e[n],t);return n+": "+r}));return"{ "+r.join(", ")+" }"}function f(e,t){if(e.length===0){return"[]"}if(t.length>o){return"[Array]"}var n=Math.min(a,e.length);var r=e.length-n;var i=[];for(var s=0;s<n;++s){i.push(u(e[s],t))}if(r===1){i.push("... 1 more item")}else if(r>1){i.push("... ".concat(r," more items"))}return"["+i.join(", ")+"]"}function d(e){var t=e[String(n.default)];if(typeof t==="function"){return t}if(typeof e.inspect==="function"){return e.inspect}}function p(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor==="function"){var n=e.constructor.name;if(typeof n==="string"&&n!==""){return n}}return t}}));var y=t((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 m=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.default=a;var n=i(y);var r=i(h);function i(e){return e&&e.__esModule?e:{default:e}}function a(e){var t=e.prototype.toJSON;typeof t==="function"||(0,n.default)(0);e.prototype.inspect=t;if(r.default){e.prototype[r.default]=t}}}));var b=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.isNode=o;t.Token=t.Location=void 0;var n=r(m);function r(e){return e&&e.__esModule?e:{default:e}}var i=function(){function e(e,t,n){this.start=e.start;this.end=t.end;this.startToken=e;this.endToken=t;this.source=n}var t=e.prototype;t.toJSON=function e(){return{start:this.start,end:this.end}};return e}();t.Location=i;(0,n.default)(i);var a=function(){function e(e,t,n,r,i,a,o){this.kind=e;this.start=t;this.end=n;this.line=r;this.column=i;this.value=o;this.prev=a;this.next=null}var t=e.prototype;t.toJSON=function e(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};return e}();t.Token=a;(0,n.default)(a);function o(e){return e!=null&&typeof e.kind==="string"}}));var g=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.visit=o;t.visitInParallel=s;t.getVisitFn=u;t.BREAK=t.QueryDocumentKeys=void 0;var n=r(v);function r(e){return e&&e.__esModule?e:{default:e}}var i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=i;var a=Object.freeze({});t.BREAK=a;function o(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:i;var o=undefined;var s=Array.isArray(e);var c=[e];var l=-1;var f=[];var d=undefined;var p=undefined;var h=undefined;var v=[];var y=[];var m=e;do{l++;var g=l===c.length;var E=g&&f.length!==0;if(g){p=y.length===0?undefined:v[v.length-1];d=h;h=y.pop();if(E){if(s){d=d.slice()}else{var w={};for(var _=0,T=Object.keys(d);_<T.length;_++){var S=T[_];w[S]=d[S]}d=w}var O=0;for(var I=0;I<f.length;I++){var x=f[I][0];var A=f[I][1];if(s){x-=O}if(s&&A===null){d.splice(x,1);O++}else{d[x]=A}}}l=o.index;c=o.keys;f=o.edits;s=o.inArray;o=o.prev}else{p=h?s?l:c[l]:undefined;d=h?h[p]:m;if(d===null||d===undefined){continue}if(h){v.push(p)}}var N=void 0;if(!Array.isArray(d)){if(!(0,b.isNode)(d)){throw new Error("Invalid AST Node: ".concat((0,n.default)(d),"."))}var D=u(t,d.kind,g);if(D){N=D.call(t,d,p,h,v,y);if(N===a){break}if(N===false){if(!g){v.pop();continue}}else if(N!==undefined){f.push([p,N]);if(!g){if((0,b.isNode)(N)){d=N}else{v.pop();continue}}}}}if(N===undefined&&E){f.push([p,d])}if(g){v.pop()}else{var C;o={inArray:s,index:l,keys:c,edits:f,prev:o};s=Array.isArray(d);c=s?d:(C=r[d.kind])!==null&&C!==void 0?C:[];l=-1;f=[];if(h){y.push(h)}h=d}}while(o!==undefined);if(f.length!==0){m=f[f.length-1][1]}return m}function s(e){var t=new Array(e.length);return{enter:function n(r){for(var i=0;i<e.length;i++){if(t[i]==null){var o=u(e[i],r.kind,false);if(o){var s=o.apply(e[i],arguments);if(s===false){t[i]=r}else if(s===a){t[i]=a}else if(s!==undefined){return s}}}}},leave:function n(r){for(var i=0;i<e.length;i++){if(t[i]==null){var o=u(e[i],r.kind,true);if(o){var s=o.apply(e[i],arguments);if(s===a){t[i]=a}else if(s!==undefined&&s!==false){return s}}}else if(t[i]===r){t[i]=null}}}}}function u(e,t,n){var r=e[t];if(r){if(!n&&typeof r==="function"){return r}var i=n?r.leave:r.enter;if(typeof i==="function"){return i}}else{var a=n?e.leave:e.enter;if(a){if(typeof a==="function"){return a}var o=a[t];if(typeof o==="function"){return o}}}}}));var E=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.dedentBlockStringValue=n;t.getBlockStringIndentation=i;t.printBlockString=a;function n(e){var t=e.split(/\r\n|[\n\r]/g);var n=i(e);if(n!==0){for(var a=1;a<t.length;a++){t[a]=t[a].slice(n)}}var o=0;while(o<t.length&&r(t[o])){++o}var s=t.length;while(s>o&&r(t[s-1])){--s}return t.slice(o,s).join("\n")}function r(e){for(var t=0;t<e.length;++t){if(e[t]!==" "&&e[t]!=="\t"){return false}}return true}function i(e){var t;var n=true;var r=true;var i=0;var a=null;for(var o=0;o<e.length;++o){switch(e.charCodeAt(o)){case 13:if(e.charCodeAt(o+1)===10){++o}case 10:n=false;r=true;i=0;break;case 9:case 32:++i;break;default:if(r&&!n&&(a===null||i<a)){a=i}r=false}}return(t=a)!==null&&t!==void 0?t:0}function a(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var r=e.indexOf("\n")===-1;var i=e[0]===" "||e[0]==="\t";var a=e[e.length-1]==='"';var o=e[e.length-1]==="\\";var s=!r||a||o||n;var u="";if(s&&!(r&&i)){u+="\n"+t}u+=t?e.replace(/\n/g,"\n"+t):e;if(s){u+="\n"}return'"""'+u.replace(/"""/g,'\\"""')+'"""'}}));var w=t((function(e,t){Object.defineProperty(t,"__esModule",{value:true});t.print=n;function n(e){return(0,g.visit)(e,{leave:i})}var r=80;var i={Name:function e(t){return t.value},Variable:function e(t){return"$"+t.name},Document:function e(t){return o(t.definitions,"\n\n")+"\n"},OperationDefinition:function e(t){var n=t.operation;var r=t.name;var i=u("(",o(t.variableDefinitions,", "),")");var a=o(t.directives," ");var s=t.selectionSet;return!r&&!a&&!i&&n==="query"?s:o([n,o([r,i]),a,s]," ")},VariableDefinition:function e(t){var n=t.variable,r=t.type,i=t.defaultValue,a=t.directives;return n+": "+r+u(" = ",i)+u(" ",o(a," "))},SelectionSet:function e(t){var n=t.selections;return s(n)},Field:function e(t){var n=t.alias,i=t.name,a=t.arguments,s=t.directives,l=t.selectionSet;var f=u("",n,": ")+i;var d=f+u("(",o(a,", "),")");if(d.length>r){d=f+u("(\n",c(o(a,"\n")),"\n)")}return o([d,o(s," "),l]," ")},Argument:function e(t){var n=t.name,r=t.value;return n+": "+r},FragmentSpread:function e(t){var n=t.name,r=t.directives;return"..."+n+u(" ",o(r," "))},InlineFragment:function e(t){var n=t.typeCondition,r=t.directives,i=t.selectionSet;return o(["...",u("on ",n),o(r," "),i]," ")},FragmentDefinition:function e(t){var n=t.name,r=t.typeCondition,i=t.variableDefinitions,a=t.directives,s=t.selectionSet;return"fragment ".concat(n).concat(u("(",o(i,", "),")")," ")+"on ".concat(r," ").concat(u("",o(a," ")," "))+s},IntValue:function e(t){var n=t.value;return n},FloatValue:function e(t){var n=t.value;return n},StringValue:function e(t,n){var r=t.value,i=t.block;return i?(0,E.printBlockString)(r,n==="description"?"":" "):JSON.stringify(r)},BooleanValue:function e(t){var n=t.value;return n?"true":"false"},NullValue:function e(){return"null"},EnumValue:function e(t){var n=t.value;return n},ListValue:function e(t){var n=t.values;return"["+o(n,", ")+"]"},ObjectValue:function e(t){var n=t.fields;return"{"+o(n,", ")+"}"},ObjectField:function e(t){var n=t.name,r=t.value;return n+": "+r},Directive:function e(t){var n=t.name,r=t.arguments;return"@"+n+u("(",o(r,", "),")")},NamedType:function e(t){var n=t.name;return n},ListType:function e(t){var n=t.type;return"["+n+"]"},NonNullType:function e(t){var n=t.type;return n+"!"},SchemaDefinition:a((function(e){var t=e.directives,n=e.operationTypes;return o(["schema",o(t," "),s(n)]," ")})),OperationTypeDefinition:function e(t){var n=t.operation,r=t.type;return n+": "+r},ScalarTypeDefinition:a((function(e){var t=e.name,n=e.directives;return o(["scalar",t,o(n," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["type",t,u("implements ",o(n," & ")),o(r," "),s(i)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(f(n)?u("(\n",c(o(n,"\n")),"\n)"):u("(",o(n,", "),")"))+": "+r+u(" ",o(i," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return o([t+": "+n,u("= ",r),o(i," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["interface",t,u("implements ",o(n," & ")),o(r," "),s(i)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return o(["union",t,o(n," "),r&&r.length!==0?"= "+o(r," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return o(["enum",t,o(n," "),s(r)]," ")})),EnumValueDefinition:a((function(e){var t=e.name,n=e.directives;return o([t,o(n," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return o(["input",t,o(n," "),s(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(f(n)?u("(\n",c(o(n,"\n")),"\n)"):u("(",o(n,", "),")"))+(r?" repeatable":"")+" on "+o(i," | ")})),SchemaExtension:function e(t){var n=t.directives,r=t.operationTypes;return o(["extend schema",o(n," "),s(r)]," ")},ScalarTypeExtension:function e(t){var n=t.name,r=t.directives;return o(["extend scalar",n,o(r," ")]," ")},ObjectTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return o(["extend type",n,u("implements ",o(r," & ")),o(i," "),s(a)]," ")},InterfaceTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return o(["extend interface",n,u("implements ",o(r," & ")),o(i," "),s(a)]," ")},UnionTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.types;return o(["extend union",n,o(r," "),i&&i.length!==0?"= "+o(i," | "):""]," ")},EnumTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.values;return o(["extend enum",n,o(r," "),s(i)]," ")},InputObjectTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.fields;return o(["extend input",n,o(r," "),s(i)]," ")}};function a(e){return function(t){return o([t.description,e(t)],"\n")}}function o(e){var t;var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";return(t=e===null||e===void 0?void 0:e.filter((function(e){return e})).join(n))!==null&&t!==void 0?t:""}function s(e){return u("{\n",c(o(e,"\n")),"\n}")}function u(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"";return t!=null&&t!==""?e+t+n:""}function c(e){return u(" ",e.replace(/\n/g,"\n "))}function l(e){return e.indexOf("\n")!==-1}function f(e){return e!=null&&e.some(l)}}));var _=function e(t){var n=t.uri,r=t.name,i=t.type;this.uri=n;this.name=r;this.type=i};var T=function e(t){return typeof File!=="undefined"&&t instanceof File||typeof Blob!=="undefined"&&t instanceof Blob||t instanceof _};var S=function e(t,n,r){if(n===void 0){n=""}if(r===void 0){r=T}var i;var a=new Map;function o(e,t){var n=a.get(t);if(n)n.push.apply(n,e);else a.set(t,e)}if(r(t)){i=null;o([n],t)}else{var s=n?n+".":"";if(typeof FileList!=="undefined"&&t instanceof FileList)i=Array.prototype.map.call(t,(function(e,t){o([""+s+t],e);return null}));else if(Array.isArray(t))i=t.map((function(t,n){var i=e(t,""+s+n,r);i.files.forEach(o);return i.clone}));else if(t&&t.constructor===Object){i={};for(var u in t){var c=e(t[u],""+s+u,r);c.files.forEach(o);i[u]=c.clone}}else i=t}return{clone:i,files:a}};var O=_;var I=S;var x=T;var A={ReactNativeFile:O,extractFiles:I,isExtractableFile:x};var N=typeof self=="object"?self.FormData:window.FormData;var D=t((function(e,t){var r=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var i=r(N);var a=function(e){return A.isExtractableFile(e)||e!==null&&typeof e==="object"&&typeof e.pipe==="function"};function o(e,t){var n=A.extractFiles({query:e,variables:t},"",a),r=n.clone,o=n.files;if(o.size===0){return JSON.stringify(r)}var s=typeof FormData==="undefined"?i.default:FormData;var u=new s;u.append("operations",JSON.stringify(r));var c={};var l=0;o.forEach((function(e){c[++l]=e}));u.append("map",JSON.stringify(c));l=0;o.forEach((function(e,t){u.append(""+ ++l,t)}));return u}t.default=o}));var C=t((function(e,t){var r=n&&n.__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 i=function(e){r(t,e);function t(n,r){var i=this;var a=t.extractMessage(n)+": "+JSON.stringify({response:n,request:r});i=e.call(this,a)||this;Object.setPrototypeOf(i,t.prototype);i.response=n;i.request=r;if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(i,t)}return i}t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: "+e.status+")"}};return t}(Error);t.ClientError=i}));var k=e("d",t((function(e,t){var r=n&&n.__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=n&&n.__createBinding||(Object.create?function(e,t,n,r){if(r===undefined)r=n;Object.defineProperty(e,r,{enumerable:true,get:function(){return t[n]}})}:function(e,t,n,r){if(r===undefined)r=n;e[r]=t[n]});var a=n&&n.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=n&&n.__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))i(t,e,n);a(t,e);return t};var s=n&&n.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function s(e){try{u(r["throw"](e))}catch(e){a(e)}}function u(e){e.done?n(e.value):i(e.value).then(o,s)}u((r=r.apply(e,t||[])).next())}))};var u=n&&n.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return u([e,t])}}function u(o){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(a=o[0]&2?i["return"]:o[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;if(i=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){n.label=o[1];break}if(o[0]===6&&n.label<a[1]){n.label=a[1];a=o;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(o);break}if(a[2])n.ops.pop();n.trys.pop();continue}o=t.call(e,n)}catch(e){o=[6,e];i=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var c=n&&n.__rest||function(e,t){var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0)n[r]=e[r];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++){if(t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i]))n[r[i]]=e[r[i]]}return n};var l=n&&n.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.gql=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var f=o(p),d=f;var h=l(D);var v=C;Object.defineProperty(t,"ClientError",{enumerable:true,get:function(){return v.ClientError}});var y=function(e){var t={};if(e){if(typeof Headers!=="undefined"&&e instanceof Headers||e instanceof d.Headers){t=S(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 m=function(){function e(e,t){this.url=e;this.options=t||{}}e.prototype.rawRequest=function(e,t,n){return s(this,void 0,void 0,(function(){var i,a,o,s,l,d,p,v,m,b,g;return u(this,(function(u){switch(u.label){case 0:i=this.options,a=i.headers,o=i.fetch,s=o===void 0?f.default:o,l=c(i,["headers","fetch"]);d=h.default(e,t);return[4,s(this.url,r({method:"POST",headers:r(r(r({},typeof d==="string"?{"Content-Type":"application/json"}:{}),y(a)),y(n)),body:d},l))];case 1:p=u.sent();return[4,E(p)];case 2:v=u.sent();if(p.ok&&!v.errors&&v.data){m=p.headers,b=p.status;return[2,r(r({},v),{headers:m,status:b})]}else{g=typeof v==="string"?{error:v}:v;throw new C.ClientError(r(r({},g),{status:p.status,headers:p.headers}),{query:e,variables:t})}}}))}))};e.prototype.request=function(e,t,n){return s(this,void 0,void 0,(function(){var i,a,o,s,l,d,p,v,m,b;return u(this,(function(u){switch(u.label){case 0:i=this.options,a=i.headers,o=i.fetch,s=o===void 0?f.default:o,l=c(i,["headers","fetch"]);d=_(e);p=h.default(d,t);return[4,s(this.url,r({method:"POST",headers:r(r(r({},typeof p==="string"?{"Content-Type":"application/json"}:{}),y(a)),y(n)),body:p},l))];case 1:v=u.sent();return[4,E(v)];case 2:m=u.sent();if(v.ok&&!m.errors&&m.data){return[2,m.data]}else{b=typeof m==="string"?{error:m}:m;throw new C.ClientError(r(r({},b),{status:v.status}),{query:d,variables:t})}}}))}))};e.prototype.setHeaders=function(e){this.options.headers=e;return this};e.prototype.setHeader=function(e,t){var n;var r=this.options.headers;if(r){r[e]=t}else{this.options.headers=(n={},n[e]=t,n)}return this};return e}();t.GraphQLClient=m;function b(e,t,n){return s(this,void 0,void 0,(function(){var r;return u(this,(function(i){r=new m(e);return[2,r.rawRequest(t,n)]}))}))}t.rawRequest=b;function g(e,t,n){return s(this,void 0,void 0,(function(){var r;return u(this,(function(i){r=new m(e);return[2,r.request(t,n)]}))}))}t.request=g;t.default=g;function E(e){var t=e.headers.get("Content-Type");if(t&&t.startsWith("application/json")){return e.json()}else{return e.text()}}function _(e){if(typeof e==="string")return e;return w.print(e)}function T(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=T;function S(e){var t={};e.forEach((function(e,n){t[n]=e}));return t}})));function F(e){this.message=e}F.prototype=new Error,F.prototype.name="InvalidCharacterError";var P="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new F("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,r,i=0,a=0,o="";r=t.charAt(a++);~r&&(n=i%4?64*n+r:r,i++%4)?o+=String.fromCharCode(255&n>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return o};function j(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(P(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 P(t)}}function R(e){this.message=e}function M(e,t){if("string"!=typeof e)throw new R("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(j(e.split(".")[n]))}catch(e){throw new R("Invalid token specified: "+e.message)}}R.prototype=new Error,R.prototype.name="InvalidTokenError";var L=Object.prototype,V=L.toString,B=L.hasOwnProperty;var U=Function.prototype.toString;var q=new Map;function $(e,t){try{return K(e,t)}finally{q.clear()}}function K(e,t){if(e===t){return true}var n=V.call(e);var r=V.call(t);if(n!==r){return false}switch(n){case"[object Array]":if(e.length!==t.length)return false;case"[object Object]":{if(z(e,t))return true;var i=H(e);var a=H(t);var o=i.length;if(o!==a.length)return false;for(var s=0;s<o;++s){if(!B.call(t,i[s])){return false}}for(var s=0;s<o;++s){var u=i[s];if(!K(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(z(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&&!K(h,t.get(p))){return false}}return true}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var v=U.call(e);if(v!==U.call(t)){return false}return!Y(v,G)}}return false}function H(e){return Object.keys(e).filter(J,e)}function J(e){return this[e]!==void 0}var G="{ [native code] }";function Y(e,t){var n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function z(e,t){var n=q.get(e);if(n){if(n.has(t))return true}else{q.set(e,n=new Set)}n.add(t);return false}function Q(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Q=function e(t){return typeof t}}else{Q=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return Q(e)}function W(e){return Q(e)=="object"&&e!==null}var X=typeof Symbol==="function"&&Symbol.toStringTag!=null?Symbol.toStringTag:"@@toStringTag";function Z(e,t){var n=/\r\n|[\n\r]/g;var r=1;var i=t+1;var a;while((a=n.exec(e.body))&&a.index<t){r+=1;i=t+1-(a.index+a[0].length)}return{line:r,column:i}}function ee(e){return te(e.source,Z(e.source,e.start))}function te(e,t){var n=e.locationOffset.column-1;var r=re(n)+e.body;var i=t.line-1;var a=e.locationOffset.line-1;var o=t.line+a;var s=t.line===1?n:0;var u=t.column+s;var c="".concat(e.name,":").concat(o,":").concat(u,"\n");var l=r.split(/\r\n|[\n\r]/g);var f=l[i];if(f.length>120){var d=Math.floor(u/80);var p=u%80;var h=[];for(var v=0;v<f.length;v+=80){h.push(f.slice(v,v+80))}return c+ne([["".concat(o),h[0]]].concat(h.slice(1,d+1).map((function(e){return["",e]})),[[" ",re(p-1)+"^"],["",h[d+1]]]))}return c+ne([["".concat(o-1),l[i-1]],["".concat(o),f],["",re(u-1)+"^"],["".concat(o+1),l[i+1]]])}function ne(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 ie(n,t)+(r?" | "+r:" |")})).join("\n")}function re(e){return Array(e+1).join(" ")}function ie(e,t){return re(e-t.length)+t}function ae(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){ae=function e(t){return typeof t}}else{ae=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return ae(e)}function oe(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function se(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 ue(e,t,n){if(t)se(e.prototype,t);if(n)se(e,n);return e}function ce(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)me(e,t)}function le(e){var t=ve();return function n(){var r=be(e),i;if(t){var a=be(this).constructor;i=Reflect.construct(r,arguments,a)}else{i=r.apply(this,arguments)}return fe(this,i)}}function fe(e,t){if(t&&(ae(t)==="object"||typeof t==="function")){return t}return de(e)}function de(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function pe(e){var t=typeof Map==="function"?new Map:undefined;pe=function e(n){if(n===null||!ye(n))return n;if(typeof n!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof t!=="undefined"){if(t.has(n))return t.get(n);t.set(n,r)}function r(){return he(n,arguments,be(this).constructor)}r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}});return me(r,n)};return pe(e)}function he(e,t,n){if(ve()){he=Reflect.construct}else{he=function e(t,n,r){var i=[null];i.push.apply(i,n);var a=Function.bind.apply(t,i);var o=new a;if(r)me(o,r.prototype);return o}}return he.apply(null,arguments)}function ve(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],(function(){})));return true}catch(e){return false}}function ye(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function me(e,t){me=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return me(e,t)}function be(e){be=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return be(e)}var ge=function(e){ce(n,e);var t=le(n);function n(e,r,i,a,o,s,u){var c,l,f,d;var p;oe(this,n);p=t.call(this,e);var h=Array.isArray(r)?r.length!==0?r:undefined:r?[r]:undefined;var v=i;if(!v&&h){var y;v=(y=h[0].loc)===null||y===void 0?void 0:y.source}var m=a;if(!m&&h){m=h.reduce((function(e,t){if(t.loc){e.push(t.loc.start)}return e}),[])}if(m&&m.length===0){m=undefined}var b;if(a&&i){b=a.map((function(e){return Z(i,e)}))}else if(h){b=h.reduce((function(e,t){if(t.loc){e.push(Z(t.loc.source,t.loc.start))}return e}),[])}var g=u;if(g==null&&s!=null){var E=s.extensions;if(W(E)){g=E}}Object.defineProperties(de(p),{name:{value:"GraphQLError"},message:{value:e,enumerable:true,writable:true},locations:{value:(c=b)!==null&&c!==void 0?c:undefined,enumerable:b!=null},path:{value:o!==null&&o!==void 0?o:undefined,enumerable:o!=null},nodes:{value:h!==null&&h!==void 0?h:undefined},source:{value:(l=v)!==null&&l!==void 0?l:undefined},positions:{value:(f=m)!==null&&f!==void 0?f:undefined},originalError:{value:s},extensions:{value:(d=g)!==null&&d!==void 0?d:undefined,enumerable:g!=null}});if(s!==null&&s!==void 0&&s.stack){Object.defineProperty(de(p),"stack",{value:s.stack,writable:true,configurable:true});return fe(p)}if(Error.captureStackTrace){Error.captureStackTrace(de(p),n)}else{Object.defineProperty(de(p),"stack",{value:Error().stack,writable:true,configurable:true})}return p}ue(n,[{key:"toString",value:function e(){return Ee(this)}},{key:X,get:function e(){return"Object"}}]);return n}(pe(Error));function Ee(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"+ee(i.loc)}}}else if(e.source&&e.locations){for(var a=0,o=e.locations;a<o.length;a++){var s=o[a];t+="\n\n"+te(e.source,s)}}return t}function we(e,t,n){return new ge("Syntax Error: ".concat(n),undefined,e,[t])}var _e=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 Te(e,t){var n=Boolean(e);if(!n){throw new Error(t!=null?t:"Unexpected invariant triggered.")}}var Se=typeof Symbol==="function"&&typeof Symbol.for==="function"?Symbol.for("nodejs.util.inspect.custom"):undefined;function Oe(e){var t=e.prototype.toJSON;typeof t==="function"||Te(0);e.prototype.inspect=t;if(Se){e.prototype[Se]=t}}var Ie=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}();Oe(Ie);var xe=function(){function e(e,t,n,r,i,a,o){this.kind=e;this.start=t;this.end=n;this.line=r;this.column=i;this.value=o;this.prev=a;this.next=null}var t=e.prototype;t.toJSON=function e(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};return e}();Oe(xe);function Ae(e){return e!=null&&typeof e.kind==="string"}var Ne=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 De(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){De=function e(t){return typeof t}}else{De=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return De(e)}var Ce=10;var ke=2;function Fe(e){return Pe(e,[])}function Pe(e,t){switch(De(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 je(e,t);default:return String(e)}}function je(e,t){if(t.indexOf(e)!==-1){return"[Circular]"}var n=[].concat(t,[e]);var r=Le(e);if(r!==undefined){var i=r.call(e);if(i!==e){return typeof i==="string"?i:Pe(i,n)}}else if(Array.isArray(e)){return Me(e,n)}return Re(e,n)}function Re(e,t){var n=Object.keys(e);if(n.length===0){return"{}"}if(t.length>ke){return"["+Ve(e)+"]"}var r=n.map((function(n){var r=Pe(e[n],t);return n+": "+r}));return"{ "+r.join(", ")+" }"}function Me(e,t){if(e.length===0){return"[]"}if(t.length>ke){return"[Array]"}var n=Math.min(Ce,e.length);var r=e.length-n;var i=[];for(var a=0;a<n;++a){i.push(Pe(e[a],t))}if(r===1){i.push("... 1 more item")}else if(r>1){i.push("... ".concat(r," more items"))}return"["+i.join(", ")+"]"}function Le(e){var t=e[String(Se)];if(typeof t==="function"){return t}if(typeof e.inspect==="function"){return e.inspect}}function Ve(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 Be(e,t){var n=Boolean(e);if(!n){throw new Error(t)}}var Ue=function e(t,n){return t instanceof n};function qe(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 $e(e,t,n){if(t)qe(e.prototype,t);if(n)qe(e,n);return e}var Ke=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"||Be(0,"Body must be a string. Received: ".concat(Fe(e),"."));this.body=e;this.name=t;this.locationOffset=n;this.locationOffset.line>0||Be(0,"line in locationOffset is 1-indexed and must be positive.");this.locationOffset.column>0||Be(0,"column in locationOffset is 1-indexed and must be positive.")}$e(e,[{key:X,get:function e(){return"Source"}}]);return e}();function He(e){return Ue(e,Ke)}var Je=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 Ge(e){var t=e.split(/\r\n|[\n\r]/g);var n=ze(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&&Ye(t[i])){++i}var a=t.length;while(a>i&&Ye(t[a-1])){--a}return t.slice(i,a).join("\n")}function Ye(e){for(var t=0;t<e.length;++t){if(e[t]!==" "&&e[t]!=="\t"){return false}}return true}function ze(e){var t;var n=true;var r=true;var i=0;var a=null;for(var o=0;o<e.length;++o){switch(e.charCodeAt(o)){case 13:if(e.charCodeAt(o+1)===10){++o}case 10:n=false;r=true;i=0;break;case 9:case 32:++i;break;default:if(r&&!n&&(a===null||i<a)){a=i}r=false}}return(t=a)!==null&&t!==void 0?t:0}function Qe(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var r=e.indexOf("\n")===-1;var i=e[0]===" "||e[0]==="\t";var a=e[e.length-1]==='"';var o=e[e.length-1]==="\\";var s=!r||a||o||n;var u="";if(s&&!(r&&i)){u+="\n"+t}u+=t?e.replace(/\n/g,"\n"+t):e;if(s){u+="\n"}return'"""'+u.replace(/"""/g,'\\"""')+'"""'}var We=function(){function e(e){var t=new xe(Ne.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!==Ne.EOF){do{var n;t=(n=t.next)!==null&&n!==void 0?n:t.next=et(this,t)}while(t.kind===Ne.COMMENT)}return t};return e}();function Xe(e){return e===Ne.BANG||e===Ne.DOLLAR||e===Ne.AMP||e===Ne.PAREN_L||e===Ne.PAREN_R||e===Ne.SPREAD||e===Ne.COLON||e===Ne.EQUALS||e===Ne.AT||e===Ne.BRACKET_L||e===Ne.BRACKET_R||e===Ne.BRACE_L||e===Ne.PIPE||e===Ne.BRACE_R}function Ze(e){return isNaN(e)?Ne.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function et(e,t){var n=e.source;var r=n.body;var i=r.length;var a=t.end;while(a<i){var o=r.charCodeAt(a);var s=e.line;var u=1+a-e.lineStart;switch(o){case 65279:case 9:case 32:case 44:++a;continue;case 10:++a;++e.line;e.lineStart=a;continue;case 13:if(r.charCodeAt(a+1)===10){a+=2}else{++a}++e.line;e.lineStart=a;continue;case 33:return new xe(Ne.BANG,a,a+1,s,u,t);case 35:return nt(n,a,s,u,t);case 36:return new xe(Ne.DOLLAR,a,a+1,s,u,t);case 38:return new xe(Ne.AMP,a,a+1,s,u,t);case 40:return new xe(Ne.PAREN_L,a,a+1,s,u,t);case 41:return new xe(Ne.PAREN_R,a,a+1,s,u,t);case 46:if(r.charCodeAt(a+1)===46&&r.charCodeAt(a+2)===46){return new xe(Ne.SPREAD,a,a+3,s,u,t)}break;case 58:return new xe(Ne.COLON,a,a+1,s,u,t);case 61:return new xe(Ne.EQUALS,a,a+1,s,u,t);case 64:return new xe(Ne.AT,a,a+1,s,u,t);case 91:return new xe(Ne.BRACKET_L,a,a+1,s,u,t);case 93:return new xe(Ne.BRACKET_R,a,a+1,s,u,t);case 123:return new xe(Ne.BRACE_L,a,a+1,s,u,t);case 124:return new xe(Ne.PIPE,a,a+1,s,u,t);case 125:return new xe(Ne.BRACE_R,a,a+1,s,u,t);case 34:if(r.charCodeAt(a+1)===34&&r.charCodeAt(a+2)===34){return ot(n,a,s,u,t,e)}return at(n,a,s,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return rt(n,a,o,s,u,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return ct(n,a,s,u,t)}throw we(n,a,tt(o))}var c=e.line;var l=1+a-e.lineStart;return new xe(Ne.EOF,i,i,c,l,t)}function tt(e){if(e<32&&e!==9&&e!==10&&e!==13){return"Cannot contain the invalid character ".concat(Ze(e),".")}if(e===39){return"Unexpected single quote character ('), did you mean to use a double quote (\")?"}return"Cannot parse the unexpected character ".concat(Ze(e),".")}function nt(e,t,n,r,i){var a=e.body;var o;var s=t;do{o=a.charCodeAt(++s)}while(!isNaN(o)&&(o>31||o===9));return new xe(Ne.COMMENT,t,s,n,r,i,a.slice(t+1,s))}function rt(e,t,n,r,i,a){var o=e.body;var s=n;var u=t;var c=false;if(s===45){s=o.charCodeAt(++u)}if(s===48){s=o.charCodeAt(++u);if(s>=48&&s<=57){throw we(e,u,"Invalid number, unexpected digit after 0: ".concat(Ze(s),"."))}}else{u=it(e,u,s);s=o.charCodeAt(u)}if(s===46){c=true;s=o.charCodeAt(++u);u=it(e,u,s);s=o.charCodeAt(u)}if(s===69||s===101){c=true;s=o.charCodeAt(++u);if(s===43||s===45){s=o.charCodeAt(++u)}u=it(e,u,s);s=o.charCodeAt(u)}if(s===46||lt(s)){throw we(e,u,"Invalid number, expected digit but got: ".concat(Ze(s),"."))}return new xe(c?Ne.FLOAT:Ne.INT,t,u,r,i,a,o.slice(t,u))}function it(e,t,n){var r=e.body;var i=t;var a=n;if(a>=48&&a<=57){do{a=r.charCodeAt(++i)}while(a>=48&&a<=57);return i}throw we(e,i,"Invalid number, expected digit but got: ".concat(Ze(a),"."))}function at(e,t,n,r,i){var a=e.body;var o=t+1;var s=o;var u=0;var c="";while(o<a.length&&!isNaN(u=a.charCodeAt(o))&&u!==10&&u!==13){if(u===34){c+=a.slice(s,o);return new xe(Ne.STRING,t,o+1,n,r,i,c)}if(u<32&&u!==9){throw we(e,o,"Invalid character within String: ".concat(Ze(u),"."))}++o;if(u===92){c+=a.slice(s,o-1);u=a.charCodeAt(o);switch(u){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:{var l=st(a.charCodeAt(o+1),a.charCodeAt(o+2),a.charCodeAt(o+3),a.charCodeAt(o+4));if(l<0){var f=a.slice(o+1,o+5);throw we(e,o,"Invalid character escape sequence: \\u".concat(f,"."))}c+=String.fromCharCode(l);o+=4;break}default:throw we(e,o,"Invalid character escape sequence: \\".concat(String.fromCharCode(u),"."))}++o;s=o}}throw we(e,o,"Unterminated string.")}function ot(e,t,n,r,i,a){var o=e.body;var s=t+3;var u=s;var c=0;var l="";while(s<o.length&&!isNaN(c=o.charCodeAt(s))){if(c===34&&o.charCodeAt(s+1)===34&&o.charCodeAt(s+2)===34){l+=o.slice(u,s);return new xe(Ne.BLOCK_STRING,t,s+3,n,r,i,Ge(l))}if(c<32&&c!==9&&c!==10&&c!==13){throw we(e,s,"Invalid character within String: ".concat(Ze(c),"."))}if(c===10){++s;++a.line;a.lineStart=s}else if(c===13){if(o.charCodeAt(s+1)===10){s+=2}else{++s}++a.line;a.lineStart=s}else if(c===92&&o.charCodeAt(s+1)===34&&o.charCodeAt(s+2)===34&&o.charCodeAt(s+3)===34){l+=o.slice(u,s)+'"""';s+=4;u=s}else{++s}}throw we(e,s,"Unterminated string.")}function st(e,t,n,r){return ut(e)<<12|ut(t)<<8|ut(n)<<4|ut(r)}function ut(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function ct(e,t,n,r,i){var a=e.body;var o=a.length;var s=t+1;var u=0;while(s!==o&&!isNaN(u=a.charCodeAt(s))&&(u===95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122)){++s}return new xe(Ne.NAME,t,s,n,r,i,a.slice(t,s))}function lt(e){return e===95||e>=65&&e<=90||e>=97&&e<=122}function ft(e,t){var n=new dt(e,t);return n.parseDocument()}var dt=function(){function e(e,t){var n=He(e)?e:new Ke(e);this._lexer=new We(n);this._options=t}var t=e.prototype;t.parseName=function e(){var t=this.expectToken(Ne.NAME);return{kind:_e.NAME,value:t.value,loc:this.loc(t)}};t.parseDocument=function e(){var t=this._lexer.token;return{kind:_e.DOCUMENT,definitions:this.many(Ne.SOF,this.parseDefinition,Ne.EOF),loc:this.loc(t)}};t.parseDefinition=function e(){if(this.peek(Ne.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(Ne.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(Ne.BRACE_L)){return{kind:_e.OPERATION_DEFINITION,operation:"query",name:undefined,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(t)}}var n=this.parseOperationType();var r;if(this.peek(Ne.NAME)){r=this.parseName()}return{kind:_e.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(Ne.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(Ne.PAREN_L,this.parseVariableDefinition,Ne.PAREN_R)};t.parseVariableDefinition=function e(){var t=this._lexer.token;return{kind:_e.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(Ne.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(Ne.EQUALS)?this.parseValueLiteral(true):undefined,directives:this.parseDirectives(true),loc:this.loc(t)}};t.parseVariable=function e(){var t=this._lexer.token;this.expectToken(Ne.DOLLAR);return{kind:_e.VARIABLE,name:this.parseName(),loc:this.loc(t)}};t.parseSelectionSet=function e(){var t=this._lexer.token;return{kind:_e.SELECTION_SET,selections:this.many(Ne.BRACE_L,this.parseSelection,Ne.BRACE_R),loc:this.loc(t)}};t.parseSelection=function e(){return this.peek(Ne.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(Ne.COLON)){r=n;i=this.parseName()}else{i=n}return{kind:_e.FIELD,alias:r,name:i,arguments:this.parseArguments(false),directives:this.parseDirectives(false),selectionSet:this.peek(Ne.BRACE_L)?this.parseSelectionSet():undefined,loc:this.loc(t)}};t.parseArguments=function e(t){var n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(Ne.PAREN_L,n,Ne.PAREN_R)};t.parseArgument=function e(){var t=this._lexer.token;var n=this.parseName();this.expectToken(Ne.COLON);return{kind:_e.ARGUMENT,name:n,value:this.parseValueLiteral(false),loc:this.loc(t)}};t.parseConstArgument=function e(){var t=this._lexer.token;return{kind:_e.ARGUMENT,name:this.parseName(),value:(this.expectToken(Ne.COLON),this.parseValueLiteral(true)),loc:this.loc(t)}};t.parseFragment=function e(){var t=this._lexer.token;this.expectToken(Ne.SPREAD);var n=this.expectOptionalKeyword("on");if(!n&&this.peek(Ne.NAME)){return{kind:_e.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(false),loc:this.loc(t)}}return{kind:_e.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:_e.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:_e.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 Ne.BRACKET_L:return this.parseList(t);case Ne.BRACE_L:return this.parseObject(t);case Ne.INT:this._lexer.advance();return{kind:_e.INT,value:n.value,loc:this.loc(n)};case Ne.FLOAT:this._lexer.advance();return{kind:_e.FLOAT,value:n.value,loc:this.loc(n)};case Ne.STRING:case Ne.BLOCK_STRING:return this.parseStringLiteral();case Ne.NAME:this._lexer.advance();switch(n.value){case"true":return{kind:_e.BOOLEAN,value:true,loc:this.loc(n)};case"false":return{kind:_e.BOOLEAN,value:false,loc:this.loc(n)};case"null":return{kind:_e.NULL,loc:this.loc(n)};default:return{kind:_e.ENUM,value:n.value,loc:this.loc(n)}}case Ne.DOLLAR:if(!t){return this.parseVariable()}break}throw this.unexpected()};t.parseStringLiteral=function e(){var t=this._lexer.token;this._lexer.advance();return{kind:_e.STRING,value:t.value,block:t.kind===Ne.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:_e.LIST,values:this.any(Ne.BRACKET_L,i,Ne.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:_e.OBJECT,fields:this.any(Ne.BRACE_L,i,Ne.BRACE_R),loc:this.loc(r)}};t.parseObjectField=function e(t){var n=this._lexer.token;var r=this.parseName();this.expectToken(Ne.COLON);return{kind:_e.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t),loc:this.loc(n)}};t.parseDirectives=function e(t){var n=[];while(this.peek(Ne.AT)){n.push(this.parseDirective(t))}return n};t.parseDirective=function e(t){var n=this._lexer.token;this.expectToken(Ne.AT);return{kind:_e.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(Ne.BRACKET_L)){n=this.parseTypeReference();this.expectToken(Ne.BRACKET_R);n={kind:_e.LIST_TYPE,type:n,loc:this.loc(t)}}else{n=this.parseNamedType()}if(this.expectOptionalToken(Ne.BANG)){return{kind:_e.NON_NULL_TYPE,type:n,loc:this.loc(t)}}return n};t.parseNamedType=function e(){var t=this._lexer.token;return{kind:_e.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===Ne.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(Ne.STRING)||this.peek(Ne.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(Ne.BRACE_L,this.parseOperationTypeDefinition,Ne.BRACE_R);return{kind:_e.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(Ne.COLON);var r=this.parseNamedType();return{kind:_e.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:_e.SCALAR_TYPE_DEFINITION,description:n,name:r,directives:i,loc:this.loc(t)}};t.parseObjectTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("type");var r=this.parseName();var i=this.parseImplementsInterfaces();var a=this.parseDirectives(true);var o=this.parseFieldsDefinition();return{kind:_e.OBJECT_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o,loc:this.loc(t)}};t.parseImplementsInterfaces=function e(){var t;if(!this.expectOptionalKeyword("implements")){return[]}if(((t=this._options)===null||t===void 0?void 0:t.allowLegacySDLImplementsInterfaces)===true){var n=[];this.expectOptionalToken(Ne.AMP);do{n.push(this.parseNamedType())}while(this.expectOptionalToken(Ne.AMP)||this.peek(Ne.NAME));return n}return this.delimitedMany(Ne.AMP,this.parseNamedType)};t.parseFieldsDefinition=function e(){var t;if(((t=this._options)===null||t===void 0?void 0:t.allowLegacySDLEmptyFields)===true&&this.peek(Ne.BRACE_L)&&this._lexer.lookahead().kind===Ne.BRACE_R){this._lexer.advance();this._lexer.advance();return[]}return this.optionalMany(Ne.BRACE_L,this.parseFieldDefinition,Ne.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(Ne.COLON);var a=this.parseTypeReference();var o=this.parseDirectives(true);return{kind:_e.FIELD_DEFINITION,description:n,name:r,arguments:i,type:a,directives:o,loc:this.loc(t)}};t.parseArgumentDefs=function e(){return this.optionalMany(Ne.PAREN_L,this.parseInputValueDef,Ne.PAREN_R)};t.parseInputValueDef=function e(){var t=this._lexer.token;var n=this.parseDescription();var r=this.parseName();this.expectToken(Ne.COLON);var i=this.parseTypeReference();var a;if(this.expectOptionalToken(Ne.EQUALS)){a=this.parseValueLiteral(true)}var o=this.parseDirectives(true);return{kind:_e.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:a,directives:o,loc:this.loc(t)}};t.parseInterfaceTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("interface");var r=this.parseName();var i=this.parseImplementsInterfaces();var a=this.parseDirectives(true);var o=this.parseFieldsDefinition();return{kind:_e.INTERFACE_TYPE_DEFINITION,description:n,name:r,interfaces:i,directives:a,fields:o,loc:this.loc(t)}};t.parseUnionTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("union");var r=this.parseName();var i=this.parseDirectives(true);var a=this.parseUnionMemberTypes();return{kind:_e.UNION_TYPE_DEFINITION,description:n,name:r,directives:i,types:a,loc:this.loc(t)}};t.parseUnionMemberTypes=function e(){return this.expectOptionalToken(Ne.EQUALS)?this.delimitedMany(Ne.PIPE,this.parseNamedType):[]};t.parseEnumTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("enum");var r=this.parseName();var i=this.parseDirectives(true);var a=this.parseEnumValuesDefinition();return{kind:_e.ENUM_TYPE_DEFINITION,description:n,name:r,directives:i,values:a,loc:this.loc(t)}};t.parseEnumValuesDefinition=function e(){return this.optionalMany(Ne.BRACE_L,this.parseEnumValueDefinition,Ne.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:_e.ENUM_VALUE_DEFINITION,description:n,name:r,directives:i,loc:this.loc(t)}};t.parseInputObjectTypeDefinition=function e(){var t=this._lexer.token;var n=this.parseDescription();this.expectKeyword("input");var r=this.parseName();var i=this.parseDirectives(true);var a=this.parseInputFieldsDefinition();return{kind:_e.INPUT_OBJECT_TYPE_DEFINITION,description:n,name:r,directives:i,fields:a,loc:this.loc(t)}};t.parseInputFieldsDefinition=function e(){return this.optionalMany(Ne.BRACE_L,this.parseInputValueDef,Ne.BRACE_R)};t.parseTypeSystemExtension=function e(){var t=this._lexer.lookahead();if(t.kind===Ne.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(Ne.BRACE_L,this.parseOperationTypeDefinition,Ne.BRACE_R);if(n.length===0&&r.length===0){throw this.unexpected()}return{kind:_e.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:_e.SCALAR_TYPE_EXTENSION,name:n,directives:r,loc:this.loc(t)}};t.parseObjectTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("type");var n=this.parseName();var r=this.parseImplementsInterfaces();var i=this.parseDirectives(true);var a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0){throw this.unexpected()}return{kind:_e.OBJECT_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a,loc:this.loc(t)}};t.parseInterfaceTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("interface");var n=this.parseName();var r=this.parseImplementsInterfaces();var i=this.parseDirectives(true);var a=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&a.length===0){throw this.unexpected()}return{kind:_e.INTERFACE_TYPE_EXTENSION,name:n,interfaces:r,directives:i,fields:a,loc:this.loc(t)}};t.parseUnionTypeExtension=function e(){var t=this._lexer.token;this.expectKeyword("extend");this.expectKeyword("union");var n=this.parseName();var r=this.parseDirectives(true);var i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0){throw this.unexpected()}return{kind:_e.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:_e.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:_e.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(Ne.AT);var r=this.parseName();var i=this.parseArgumentDefs();var a=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:_e.DIRECTIVE_DEFINITION,description:n,name:r,arguments:i,repeatable:a,locations:o,loc:this.loc(t)}};t.parseDirectiveLocations=function e(){return this.delimitedMany(Ne.PIPE,this.parseDirectiveLocation)};t.parseDirectiveLocation=function e(){var t=this._lexer.token;var n=this.parseName();if(Je[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 Ie(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 we(this._lexer.source,n.start,"Expected ".concat(ht(t),", found ").concat(pt(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===Ne.NAME&&n.value===t){this._lexer.advance()}else{throw we(this._lexer.source,n.start,'Expected "'.concat(t,'", found ').concat(pt(n),"."))}};t.expectOptionalKeyword=function e(t){var n=this._lexer.token;if(n.kind===Ne.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 we(this._lexer.source,n.start,"Unexpected ".concat(pt(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 pt(e){var t=e.value;return ht(e.kind)+(t!=null?' "'.concat(t,'"'):"")}function ht(e){return Xe(e)?'"'.concat(e,'"'):e}var vt={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};var yt=Object.freeze({});function mt(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:vt;var r=undefined;var i=Array.isArray(e);var a=[e];var o=-1;var s=[];var u=undefined;var c=undefined;var l=undefined;var f=[];var d=[];var p=e;do{o++;var h=o===a.length;var v=h&&s.length!==0;if(h){c=d.length===0?undefined:f[f.length-1];u=l;l=d.pop();if(v){if(i){u=u.slice()}else{var y={};for(var m=0,b=Object.keys(u);m<b.length;m++){var g=b[m];y[g]=u[g]}u=y}var E=0;for(var w=0;w<s.length;w++){var _=s[w][0];var T=s[w][1];if(i){_-=E}if(i&&T===null){u.splice(_,1);E++}else{u[_]=T}}}o=r.index;a=r.keys;s=r.edits;i=r.inArray;r=r.prev}else{c=l?i?o:a[o]:undefined;u=l?l[c]:p;if(u===null||u===undefined){continue}if(l){f.push(c)}}var S=void 0;if(!Array.isArray(u)){if(!Ae(u)){throw new Error("Invalid AST Node: ".concat(Fe(u),"."))}var O=bt(t,u.kind,h);if(O){S=O.call(t,u,c,l,f,d);if(S===yt){break}if(S===false){if(!h){f.pop();continue}}else if(S!==undefined){s.push([c,S]);if(!h){if(Ae(S)){u=S}else{f.pop();continue}}}}}if(S===undefined&&v){s.push([c,u])}if(h){f.pop()}else{var I;r={inArray:i,index:o,keys:a,edits:s,prev:r};i=Array.isArray(u);a=i?u:(I=n[u.kind])!==null&&I!==void 0?I:[];o=-1;s=[];if(l){d.push(l)}l=u}}while(r!==undefined);if(s.length!==0){p=s[s.length-1][1]}return p}function bt(e,t,n){var r=e[t];if(r){if(!n&&typeof r==="function"){return r}var i=n?r.leave:r.enter;if(typeof i==="function"){return i}}else{var a=n?e.leave:e.enter;if(a){if(typeof a==="function"){return a}var o=a[t];if(typeof o==="function"){return o}}}}function gt(e){return mt(e,{leave:wt})}var Et=80;var wt={Name:function e(t){return t.value},Variable:function e(t){return"$"+t.name},Document:function e(t){return Tt(t.definitions,"\n\n")+"\n"},OperationDefinition:function e(t){var n=t.operation;var r=t.name;var i=Ot("(",Tt(t.variableDefinitions,", "),")");var a=Tt(t.directives," ");var o=t.selectionSet;return!r&&!a&&!i&&n==="query"?o:Tt([n,Tt([r,i]),a,o]," ")},VariableDefinition:function e(t){var n=t.variable,r=t.type,i=t.defaultValue,a=t.directives;return n+": "+r+Ot(" = ",i)+Ot(" ",Tt(a," "))},SelectionSet:function e(t){var n=t.selections;return St(n)},Field:function e(t){var n=t.alias,r=t.name,i=t.arguments,a=t.directives,o=t.selectionSet;var s=Ot("",n,": ")+r;var u=s+Ot("(",Tt(i,", "),")");if(u.length>Et){u=s+Ot("(\n",It(Tt(i,"\n")),"\n)")}return Tt([u,Tt(a," "),o]," ")},Argument:function e(t){var n=t.name,r=t.value;return n+": "+r},FragmentSpread:function e(t){var n=t.name,r=t.directives;return"..."+n+Ot(" ",Tt(r," "))},InlineFragment:function e(t){var n=t.typeCondition,r=t.directives,i=t.selectionSet;return Tt(["...",Ot("on ",n),Tt(r," "),i]," ")},FragmentDefinition:function e(t){var n=t.name,r=t.typeCondition,i=t.variableDefinitions,a=t.directives,o=t.selectionSet;return"fragment ".concat(n).concat(Ot("(",Tt(i,", "),")")," ")+"on ".concat(r," ").concat(Ot("",Tt(a," ")," "))+o},IntValue:function e(t){var n=t.value;return n},FloatValue:function e(t){var n=t.value;return n},StringValue:function e(t,n){var r=t.value,i=t.block;return i?Qe(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"["+Tt(n,", ")+"]"},ObjectValue:function e(t){var n=t.fields;return"{"+Tt(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+Ot("(",Tt(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:_t((function(e){var t=e.directives,n=e.operationTypes;return Tt(["schema",Tt(t," "),St(n)]," ")})),OperationTypeDefinition:function e(t){var n=t.operation,r=t.type;return n+": "+r},ScalarTypeDefinition:_t((function(e){var t=e.name,n=e.directives;return Tt(["scalar",t,Tt(n," ")]," ")})),ObjectTypeDefinition:_t((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return Tt(["type",t,Ot("implements ",Tt(n," & ")),Tt(r," "),St(i)]," ")})),FieldDefinition:_t((function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+(At(n)?Ot("(\n",It(Tt(n,"\n")),"\n)"):Ot("(",Tt(n,", "),")"))+": "+r+Ot(" ",Tt(i," "))})),InputValueDefinition:_t((function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return Tt([t+": "+n,Ot("= ",r),Tt(i," ")]," ")})),InterfaceTypeDefinition:_t((function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return Tt(["interface",t,Ot("implements ",Tt(n," & ")),Tt(r," "),St(i)]," ")})),UnionTypeDefinition:_t((function(e){var t=e.name,n=e.directives,r=e.types;return Tt(["union",t,Tt(n," "),r&&r.length!==0?"= "+Tt(r," | "):""]," ")})),EnumTypeDefinition:_t((function(e){var t=e.name,n=e.directives,r=e.values;return Tt(["enum",t,Tt(n," "),St(r)]," ")})),EnumValueDefinition:_t((function(e){var t=e.name,n=e.directives;return Tt([t,Tt(n," ")]," ")})),InputObjectTypeDefinition:_t((function(e){var t=e.name,n=e.directives,r=e.fields;return Tt(["input",t,Tt(n," "),St(r)]," ")})),DirectiveDefinition:_t((function(e){var t=e.name,n=e.arguments,r=e.repeatable,i=e.locations;return"directive @"+t+(At(n)?Ot("(\n",It(Tt(n,"\n")),"\n)"):Ot("(",Tt(n,", "),")"))+(r?" repeatable":"")+" on "+Tt(i," | ")})),SchemaExtension:function e(t){var n=t.directives,r=t.operationTypes;return Tt(["extend schema",Tt(n," "),St(r)]," ")},ScalarTypeExtension:function e(t){var n=t.name,r=t.directives;return Tt(["extend scalar",n,Tt(r," ")]," ")},ObjectTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return Tt(["extend type",n,Ot("implements ",Tt(r," & ")),Tt(i," "),St(a)]," ")},InterfaceTypeExtension:function e(t){var n=t.name,r=t.interfaces,i=t.directives,a=t.fields;return Tt(["extend interface",n,Ot("implements ",Tt(r," & ")),Tt(i," "),St(a)]," ")},UnionTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.types;return Tt(["extend union",n,Tt(r," "),i&&i.length!==0?"= "+Tt(i," | "):""]," ")},EnumTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.values;return Tt(["extend enum",n,Tt(r," "),St(i)]," ")},InputObjectTypeExtension:function e(t){var n=t.name,r=t.directives,i=t.fields;return Tt(["extend input",n,Tt(r," "),St(i)]," ")}};function _t(e){return function(t){return Tt([t.description,e(t)],"\n")}}function Tt(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 St(e){return Ot("{\n",It(Tt(e,"\n")),"\n}")}function Ot(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"";return t!=null&&t!==""?e+t+n:""}function It(e){return Ot(" ",e.replace(/\n/g,"\n "))}function xt(e){return e.indexOf("\n")!==-1}function At(e){return e!=null&&e.some(xt)}function Nt(e,t){var n=t&&t.cache?t.cache:Vt;var r=t&&t.serializer?t.serializer:Mt;var i=t&&t.strategy?t.strategy:Pt;return i(e,{cache:n,serializer:r})}function Dt(e){return e==null||typeof e==="number"||typeof e==="boolean"}function Ct(e,t,n,r){var i=Dt(r)?r:n(r);var a=t.get(i);if(typeof a==="undefined"){a=e.call(this,r);t.set(i,a)}return a}function kt(e,t,n){var r=Array.prototype.slice.call(arguments,3);var i=n(r);var a=t.get(i);if(typeof a==="undefined"){a=e.apply(this,r);t.set(i,a)}return a}function Ft(e,t,n,r,i){return n.bind(t,e,r,i)}function Pt(e,t){var n=e.length===1?Ct:kt;return Ft(e,this,n,t.cache.create(),t.serializer)}function jt(e,t){var n=kt;return Ft(e,this,n,t.cache.create(),t.serializer)}function Rt(e,t){var n=Ct;return Ft(e,this,n,t.cache.create(),t.serializer)}function Mt(){return JSON.stringify(arguments)}function Lt(){this.cache=Object.create(null)}Lt.prototype.has=function(e){return e in this.cache};Lt.prototype.get=function(e){return this.cache[e]};Lt.prototype.set=function(e,t){this.cache[e]=t};var Vt={create:function e(){return new Lt}};var Bt=e("s",Nt);var Ut={variadic:jt,monadic:Rt};Bt.strategies=Ut;var qt=Object.freeze(Object.assign(Object.create(null),Bt,{default:Bt,strategies:Ut}));e("m",qt);function $t(e){return typeof e==="function"}var Kt=false;var Ht={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(Kt){console.log("RxJS: Back to a better error behavior. Thank you. <3")}Kt=e},get useDeprecatedSynchronousErrorHandling(){return Kt}};function Jt(e){setTimeout((function(){throw e}),0)}var Gt={closed:true,next:function(e){},error:function(e){if(Ht.useDeprecatedSynchronousErrorHandling){throw e}else{Jt(e)}},complete:function(){}};var Yt=function(){return Array.isArray||function(e){return e&&typeof e.length==="number"}}();function zt(e){return e!==null&&typeof e==="object"}var Qt=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 Wt=Qt;var Xt=function(){function e(e){this.closed=false;this._parentOrParents=null;this._subscriptions=null;if(e){this._ctorUnsubscribe=true;this._unsubscribe=e}}e.prototype.unsubscribe=function(){var t;if(this.closed){return}var n=this,r=n._parentOrParents,i=n._ctorUnsubscribe,a=n._unsubscribe,o=n._subscriptions;this.closed=true;this._parentOrParents=null;this._subscriptions=null;if(r instanceof e){r.remove(this)}else if(r!==null){for(var s=0;s<r.length;++s){var u=r[s];u.remove(this)}}if($t(a)){if(i){this._unsubscribe=undefined}try{a.call(this)}catch(e){t=e instanceof Wt?Zt(e.errors):[e]}}if(Yt(o)){var s=-1;var c=o.length;while(++s<c){var l=o[s];if(zt(l)){try{l.unsubscribe()}catch(e){t=t||[];if(e instanceof Wt){t=t.concat(Zt(e.errors))}else{t.push(e)}}}}}if(t){throw new Wt(t)}};e.prototype.add=function(t){var n=t;if(!t){return e.EMPTY}switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||typeof n.unsubscribe!=="function"){return n}else if(this.closed){n.unsubscribe();return n}else if(!(n instanceof e)){var r=n;n=new e;n._subscriptions=[r]}break;default:{throw new Error("unrecognized teardown "+t+" added to Subscription.")}}var i=n._parentOrParents;if(i===null){n._parentOrParents=this}else if(i instanceof e){if(i===this){return n}n._parentOrParents=[i,this]}else if(i.indexOf(this)===-1){i.push(this)}else{return n}var a=this._subscriptions;if(a===null){this._subscriptions=[n]}else{a.push(n)}return n};e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);if(n!==-1){t.splice(n,1)}}};return e}();Xt.EMPTY=function(e){e.closed=true;return e}(new Xt);function Zt(e){return e.reduce((function(e,t){return e.concat(t instanceof Wt?t.errors:t)}),[])}var en=function(){return typeof Symbol==="function"?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}();var tn=function(e){__extends(t,e);function t(n,r,i){var a=e.call(this)||this;a.syncErrorValue=null;a.syncErrorThrown=false;a.syncErrorThrowable=false;a.isStopped=false;switch(arguments.length){case 0:a.destination=Gt;break;case 1:if(!n){a.destination=Gt;break}if(typeof n==="object"){if(n instanceof t){a.syncErrorThrowable=n.syncErrorThrowable;a.destination=n;n.add(a)}else{a.syncErrorThrowable=true;a.destination=new nn(a,n)}break}default:a.syncErrorThrowable=true;a.destination=new nn(a,n,r,i);break}return a}t.prototype[en]=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}(Xt);var nn=function(e){__extends(t,e);function t(t,n,r,i){var a=e.call(this)||this;a._parentSubscriber=t;var o;var s=a;if($t(n)){o=n}else if(n){o=n.next;r=n.error;i=n.complete;if(n!==Gt){s=Object.create(n);if($t(s.unsubscribe)){a.add(s.unsubscribe.bind(s))}s.unsubscribe=a.unsubscribe.bind(a)}}a._context=s;a._next=o;a._error=r;a._complete=i;return a}t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;if(!Ht.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=Ht.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}Jt(e)}else{if(n){t.syncErrorValue=e;t.syncErrorThrown=true}else{Jt(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(!Ht.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(Ht.useDeprecatedSynchronousErrorHandling){throw e}else{Jt(e)}}};t.prototype.__tryOrSetError=function(e,t,n){if(!Ht.useDeprecatedSynchronousErrorHandling){throw new Error("bad call")}try{t.call(this._context,n)}catch(t){if(Ht.useDeprecatedSynchronousErrorHandling){e.syncErrorValue=t;e.syncErrorThrown=true;return true}else{Jt(t);return true}}return false};t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null;this._parentSubscriber=null;e.unsubscribe()};return t}(tn);function rn(e){while(e){var t=e.closed,n=e.destination,r=e.isStopped;if(t||r){return false}else if(n&&n instanceof tn){e=n}else{e=null}}return true}function an(e,t,n){if(e){if(e instanceof tn){return e}if(e[en]){return e[en]()}}if(!e&&!t&&!n){return new tn(Gt)}return new tn(e,t,n)}var on=function(){return typeof Symbol==="function"&&Symbol.observable||"@@observable"}();function sn(e){return e}function un(e){if(e.length===0){return sn}if(e.length===1){return e[0]}return function t(n){return e.reduce((function(e,t){return t(e)}),n)}}var cn=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=an(e,t,n);if(r){i.add(r.call(i,this.source))}else{i.add(this.source||Ht.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i))}if(Ht.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(Ht.useDeprecatedSynchronousErrorHandling){e.syncErrorThrown=true;e.syncErrorValue=t}if(rn(e)){e.error(t)}else{console.warn(t)}}};e.prototype.forEach=function(e,t){var n=this;t=ln(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[on]=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 un(e)(this)};e.prototype.toPromise=function(e){var t=this;e=ln(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}();cn.create=function(e){return new cn(e)};function ln(e){if(!e){e=Promise}if(!e){throw new Error("no Promise impl found")}return e}var fn=function(){function e(){Error.call(this);this.message="object unsubscribed";this.name="ObjectUnsubscribedError";return this}e.prototype=Object.create(Error.prototype);return e}();var dn=fn;var pn=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}(Xt);var hn=function(e){__extends(t,e);function t(t){var n=e.call(this,t)||this;n.destination=t;return n}return t}(tn);var vn=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[en]=function(){return new hn(this)};t.prototype.lift=function(e){var t=new yn(this,this);t.operator=e;return t};t.prototype.next=function(e){if(this.closed){throw new dn}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 dn}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 dn}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 dn}else{return e.prototype._trySubscribe.call(this,t)}};t.prototype._subscribe=function(e){if(this.closed){throw new dn}else if(this.hasError){e.error(this.thrownError);return Xt.EMPTY}else if(this.isStopped){e.complete();return Xt.EMPTY}else{this.observers.push(e);return new pn(this,e)}};t.prototype.asObservable=function(){var e=new cn;e.source=this;return e};return t}(cn);vn.create=function(e,t){return new yn(e,t)};var yn=function(e){__extends(t,e);function t(t,n){var r=e.call(this)||this;r.destination=t;r.source=n;return r}t.prototype.next=function(e){var t=this.destination;if(t&&t.next){t.next(e)}};t.prototype.error=function(e){var t=this.destination;if(t&&t.error){this.destination.error(e)}};t.prototype.complete=function(){var e=this.destination;if(e&&e.complete){this.destination.complete()}};t.prototype._subscribe=function(e){var t=this.source;if(t){return this.source.subscribe(e)}else{return Xt.EMPTY}};return t}(vn);var mn=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}(Xt);var bn=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}(mn);var gn=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}();gn.now=function(){return Date.now()};var En=function(e){__extends(t,e);function t(n,r){if(r===void 0){r=gn.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}(gn);function wn(e){return e&&typeof e.schedule==="function"}var _n=new En(bn);var Tn=_n;function Sn(e){var t=arguments.length;var n=Tn;if(wn(arguments[arguments.length-1])){n=arguments[arguments.length-1];t--}var r=null;if(t>=2){r=arguments[1]}var i=Number.POSITIVE_INFINITY;if(t>=3){i=arguments[2]}return function t(a){return a.lift(new On(e,r,i,n))}}var On=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 xn(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))};return e}();var In=function(){function e(){this.buffer=[]}return e}();var xn=function(e){__extends(t,e);function t(t,n,r,i,a){var o=e.call(this,t)||this;o.bufferTimeSpan=n;o.bufferCreationInterval=r;o.maxBufferSize=i;o.scheduler=a;o.contexts=[];var s=o.openContext();o.timespanOnly=r==null||r<0;if(o.timespanOnly){var u={subscriber:o,context:s,bufferTimeSpan:n};o.add(s.closeAction=a.schedule(An,n,u))}else{var c={subscriber:o,context:s};var l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:o,scheduler:a};o.add(s.closeAction=a.schedule(Dn,n,c));o.add(a.schedule(Nn,r,l))}return o}t.prototype._next=function(e){var t=this.contexts;var n=t.length;var r;for(var i=0;i<n;i++){var a=t[i];var o=a.buffer;o.push(e);if(o.length==this.maxBufferSize){r=a}}if(r){this.onBufferFull(r)}};t.prototype._error=function(t){this.contexts.length=0;e.prototype._error.call(this,t)};t.prototype._complete=function(){var t=this,n=t.contexts,r=t.destination;while(n.length>0){var i=n.shift();r.next(i.buffer)}e.prototype._complete.call(this)};t.prototype._unsubscribe=function(){this.contexts=null};t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;t.unsubscribe();this.remove(t);if(!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan;var r={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(An,n,r))}};t.prototype.openContext=function(){var e=new In;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}(tn);function An(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 Nn(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler;var a=r.openContext();var o=this;if(!r.closed){r.add(a.closeAction=i.schedule(Dn,n,{subscriber:r,context:a}));o.schedule(e,t)}}function Dn(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var Cn=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 kn=t((function(e,t){var r=n&&n.__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=n&&n.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(t,"__esModule",{value:true});t.renameVariables=t.renameVariablesAndTopLevelFields=t.renameVariablesAndTopLevelFieldsOnOpDef=t.renameSelectionSetArguments=t.renameVariableDefinition=t.renameDirectiveArguments=t.renameArgument=t.renameValue=t.defaultRenameFn=void 0;t.defaultRenameFn=function(e,t){return e+"_"+t};function a(e,t){if(e.kind==="Variable"){return r(r({},e),{name:r(r({},e.name),{value:t(e.name.value)})})}else if(e.kind==="ObjectValue"){return r(r({},e),{fields:e.fields.map((function(e){return r(r({},e),{value:a(e.value,t)})}))})}else if(e.kind==="ListValue"){return r(r({},e),{values:e.values.map((function(e){return a(e,t)}))})}return e}t.renameValue=a;function o(e,t){return r(r({},e),{value:a(e.value,t)})}t.renameArgument=o;function s(e,t){var n;return r(r({},e),{arguments:(n=e.arguments)===null||n===void 0?void 0:n.map((function(e){return o(e,t)}))})}t.renameDirectiveArguments=s;function u(e,t){var n;return r(r({},e),{variable:r(r({},e.variable),{name:r(r({},e.variable.name),{value:t(e.variable.name.value)})}),directives:(n=e.directives)===null||n===void 0?void 0:n.map((function(e){return s(e,t)}))})}t.renameVariableDefinition=u;function c(e,t){return r(r({},e),{selections:e.selections.map((function(e){var n,i,a;switch(e.kind){case"Field":return r(r({},e),{arguments:(n=e.arguments)===null||n===void 0?void 0:n.map((function(e){return o(e,t)})),selectionSet:e.selectionSet?c(e.selectionSet,t):undefined});case"FragmentSpread":return r(r({},e),{directives:(i=e.directives)===null||i===void 0?void 0:i.map((function(e){return s(e,t)}))});case"InlineFragment":return r(r({},e),{directives:(a=e.directives)===null||a===void 0?void 0:a.map((function(e){return s(e,t)})),selectionSet:c(e.selectionSet,t)})}}))})}t.renameSelectionSetArguments=c;function l(e,t,n){var i,a;return r(r({},e),{variableDefinitions:(i=e.variableDefinitions)===null||i===void 0?void 0:i.map((function(e){return u(e,t)})),directives:(a=e.directives)===null||a===void 0?void 0:a.map((function(e){return s(e,t)})),selectionSet:c(r(r({},e.selectionSet),{selections:e.selectionSet.selections.map((function(e){var t,i;switch(e.kind){case"Field":return r(r({},e),{alias:r(r({},e.name),{value:n((i=(t=e.alias)===null||t===void 0?void 0:t.value)!==null&&i!==void 0?i:e.name.value)})});default:return e}}))}),t)})}t.renameVariablesAndTopLevelFieldsOnOpDef=l;function f(e,t,n){return r(r({},e),{definitions:i(e.definitions.filter((function(e){return e.kind!=="OperationDefinition"})),e.definitions.filter((function(e){return e.kind==="OperationDefinition"})).map((function(e){return l(e,t,n)})))})}t.renameVariablesAndTopLevelFields=f;function d(e,t){return Object.keys(e).reduce((function(n,i){var a;return r(r({},n),(a={},a[t(i)]=e[i],a))}),{})}t.renameVariables=d}));var Fn=t((function(e,t){var r=n&&n.__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 i=n&&n.__assign||function(){i=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 i.apply(this,arguments)};var a=n&&n.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r};Object.defineProperty(t,"__esModule",{value:true});var o={kind:"Document",definitions:[]};var s=function(e){r(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Error);var u=function(){function e(e,t,n){this.operationName=e;this.document=t;this.variables=n}e.prototype.add=function(t,n){var r=this;var o=this.document.definitions.concat(t.definitions).filter((function(e){return e.kind==="OperationDefinition"}));if(!o.length){throw new s("Expected at least one OperationDefinition, but found none.")}o.forEach((function(e){var t,n;var r=o.filter((function(t){return t!==e}));r.forEach((function(t){var n,r;if(t.operation!==e.operation){throw new s("expected all operations to be of the smae type, but "+((n=t.name)===null||n===void 0?void 0:n.value)+" is "+t.operation+" and "+((r=e.name)===null||r===void 0?void 0:r.value)+" is "+e.operation)}}));(t=e.selectionSet.selections)===null||t===void 0?void 0:t.filter((function(e){return e.kind==="Field"})).forEach((function(t){r.forEach((function(n){var r;return(r=n.selectionSet.selections)===null||r===void 0?void 0:r.filter((function(e){return e.kind==="Field"})).forEach((function(r){var i,a,o,u;if((((i=t.alias)===null||i===void 0?void 0:i.value)||t.name.value)===(((a=r.alias)===null||a===void 0?void 0:a.value)||r.name.value)){throw new s("duplicate field definition "+r.name.value+" for oprations "+((o=e.name)===null||o===void 0?void 0:o.value)+" and "+((u=n.name)===null||u===void 0?void 0:u.value))}}))}))}));(n=e.variableDefinitions)===null||n===void 0?void 0:n.forEach((function(t){r.forEach((function(n){var r;return(r=n.variableDefinitions)===null||r===void 0?void 0:r.forEach((function(r){var i,a;if(t.variable.name.value===r.variable.name.value){throw new s("duplicate variable definition "+r.variable.name.value+" for oprations "+((i=e.name)===null||i===void 0?void 0:i.value)+" and "+((a=n.name)===null||a===void 0?void 0:a.value))}}))}))}))}));var u=function(){if(r.variables&&n){return i(i({},r.variables),n)}return n||r.variables}();var c=[{kind:"OperationDefinition",directives:o.flatMap((function(e){return e.directives||[]})),name:{kind:"Name",value:this.operationName},operation:o[0].operation,selectionSet:{kind:"SelectionSet",selections:o.flatMap((function(e){return e.selectionSet.selections}))},variableDefinitions:o.flatMap((function(e){return e.variableDefinitions||[]}))}];var l=new Set;var f=this.document.definitions.concat(t.definitions);for(var d=0,p=f;d<p.length;d++){var h=p[d];if(h.kind==="OperationDefinition"){continue}if(h.kind==="FragmentDefinition"){if(l.has(h.name.value)){continue}l.add(h.name.value)}c=a([h],c)}var v={kind:"Document",definitions:c};return new e(this.operationName,v,u)};e.prototype.addN=function(e,t,n,r){if(n===void 0){n=kn.defaultRenameFn}if(r===void 0){r=kn.defaultRenameFn}if(!t.length){return this}return t.reduce((function(t,i,a){var o=kn.renameVariablesAndTopLevelFields(e,(function(e){return n(e,a)}),(function(e){return r(e,a)}));var s=kn.renameVariables(i,(function(e){return n(e,a)}));return t.add(o,s)}),this)};return e}();function c(e){return{operationName:e,add:function(e,t){return new u(this.operationName,e,t)},addN:function(e,t,n,r){return new u(this.operationName,o).addN(e,t,n,r)}}}t.default=c}));var Pn=r(Fn);var jn,Rn=jn||(jn={});Rn.Pop="POP";Rn.Push="PUSH";Rn.Replace="REPLACE";var Mn=function(e){return e};function Ln(e){e.preventDefault();e.returnValue=""}function Vn(){var e=[];return{get length(){return e.length},push:function(t){e.push(t);return function(){e=e.filter((function(e){return e!==t}))}},call:function(t){e.forEach((function(e){return e&&e(t)}))}}}function Bn(){return Math.random().toString(36).substr(2,8)}function Un(e){var t=e.pathname;t=void 0===t?"/":t;var n=e.search;n=void 0===n?"":n;e=e.hash;e=void 0===e?"":e;n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n);e&&"#"!==e&&(t+="#"===e.charAt(0)?e:"#"+e);return t}function qn(e){var t={};if(e){var n=e.indexOf("#");0<=n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?");0<=n&&(t.search=e.substr(n),e=e.substr(0,n));e&&(t.pathname=e)}return t}function $n(e){function t(){var e=u.location,t=c.state||{};return[t.idx,Mn({pathname:e.pathname,search:e.search,hash:e.hash,state:t.usr||null,key:t.key||"default"})]}function n(e){return"string"===typeof e?e:Un(e)}function r(e,t){void 0===t&&(t=null);return Mn(f({pathname:h.pathname,hash:"",search:""},"string"===typeof e?qn(e):e,{state:t,key:Bn()}))}function i(e){d=e;e=t();p=e[0];h=e[1];v.call({action:d,location:h})}function a(e,t){function o(){a(e,t)}var s=jn.Push,l=r(e,t);if(!y.length||(y.call({action:s,location:l,retry:o}),!1)){var f=[{usr:l.state,key:l.key,idx:p+1},n(l)];l=f[0];f=f[1];try{c.pushState(l,"",f)}catch(e){u.location.assign(f)}i(s)}}function o(e,t){function a(){o(e,t)}var s=jn.Replace,u=r(e,t);y.length&&(y.call({action:s,location:u,retry:a}),1)||(u=[{usr:u.state,key:u.key,idx:p},n(u)],c.replaceState(u[0],"",u[1]),i(s))}function s(e){c.go(e)}void 0===e&&(e={});e=e.window;var u=void 0===e?document.defaultView:e,c=u.history,l=null;u.addEventListener("popstate",(function(){if(l)y.call(l),l=null;else{var e=jn.Pop,n=t(),r=n[0];n=n[1];if(y.length)if(null!=r){var a=p-r;a&&(l={action:e,location:n,retry:function(){s(-1*a)}},s(a))}else;else i(e)}}));var d=jn.Pop;e=t();var p=e[0],h=e[1],v=Vn(),y=Vn();null==p&&(p=0,c.replaceState(f({},c.state,{idx:p}),""));return{get action(){return d},get location(){return h},createHref:n,push:a,replace:o,go:s,back:function(){s(-1)},forward:function(){s(1)},listen:function(e){return v.push(e)},block:function(e){var t=y.push(e);1===y.length&&u.addEventListener("beforeunload",Ln);return function(){t();y.length||u.removeEventListener("beforeunload",Ln)}}}}function Kn(e){function t(e,t){void 0===t&&(t=null);return Mn(f({pathname:d.pathname,search:"",hash:""},"string"===typeof e?qn(e):e,{state:t,key:Bn()}))}function n(e,t,n){return!h.length||(h.call({action:e,location:t,retry:n}),!1)}function r(e,t){l=e;d=t;p.call({action:l,location:d})}function i(e,a){var o=jn.Push,s=t(e,a);n(o,s,(function(){i(e,a)}))&&(c+=1,u.splice(c,u.length,s),r(o,s))}function a(e,i){var o=jn.Replace,s=t(e,i);n(o,s,(function(){a(e,i)}))&&(u[c]=s,r(o,s))}function o(e){var t=Math.min(Math.max(c+e,0),u.length-1),i=jn.Pop,a=u[t];n(i,a,(function(){o(e)}))&&(c=t,r(i,a))}void 0===e&&(e={});var s=e;e=s.initialEntries;s=s.initialIndex;var u=(void 0===e?["/"]:e).map((function(e){var t=Mn(f({pathname:"/",search:"",hash:"",state:null,key:Bn()},"string"===typeof e?qn(e):e));return t})),c=Math.min(Math.max(null==s?u.length-1:s,0),u.length-1),l=jn.Pop,d=u[c],p=Vn(),h=Vn();return{get index(){return c},get action(){return l},get location(){return d},createHref:function(e){return"string"===typeof e?e:Un(e)},push:i,replace:a,go:o,back:function(){o(-1)},forward:function(){o(1)},listen:function(e){return p.push(e)},block:function(e){return h.push(e)}}}var Hn={current:void 0};function Jn(){if(void 0===Hn.current)throw new Error("no implementation of useHost provided");return Hn.current()}function Gn(e){if(!e)throw new Error("Must supply an implementation");if("function"!=typeof e)throw new Error("implementation must be a function");Hn.current=e}function Yn(){var e;window.squatchProgramId||(window.squatchProgramId=new c({element:document.documentElement,initialState:(null==(e=window.widgetIdent)?void 0:e.programId)||void 0,contextName:"sq:program-id"}).start())}function zn(){Yn();var e=Jn();return i(e,"sq:program-id")}function Qn(e){Yn(),window.squatchProgramId.context=e}function Wn(){return(Wn=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 Xn(e,t){return(Xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zn(e,t){return t||(t=e.slice(0)),e.raw=t,e}function er(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 tr(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 er(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)?er(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 nr=function(){return(nr=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)},rr=new Map,ir=new Map,ar=!0,or=!1;function sr(e){return e.replace(/[\s,]+/g," ").trim()}function ur(e){var t,n,r,i=sr(e);if(!rr.has(i)){var a=ft(e,{experimentalFragmentVariables:or});if(!a||"Document"!==a.kind)throw new Error("Not a valid GraphQL document.");rr.set(i,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(n){var r=e[n];r&&"object"==typeof r&&t.add(r)}))}));var n=e.loc;return n&&(delete n.startToken,delete n.endToken),e}((t=a,n=new Set,r=[],t.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var t=e.name.value,i=sr((o=e.loc).source.body.substring(o.start,o.end)),a=ir.get(t);a&&!a.has(i)?ar&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||ir.set(t,a=new Set),a.add(i),n.has(i)||(n.add(i),r.push(e))}else r.push(e);var o})),nr(nr({},t),{definitions:r}))))}return rr.get(i)}function cr(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]})),ur(r)}var lr,fr=cr;(lr=cr||(cr={})).gql=fr,lr.resetCaches=function(){rr.clear(),ir.clear()},lr.disableFragmentWarnings=function(){ar=!1},lr.enableExperimentalFragmentVariables=function(){or=!0},lr.disableExperimentalFragmentVariables=function(){or=!1},cr.default=cr;var dr=cr,pr=1e3,hr=60*pr,vr=60*hr,yr=24*vr,mr=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*yr;case"hours":case"hour":case"hrs":case"hr":case"h":return n*vr;case"minutes":case"minute":case"mins":case"min":case"m":return n*hr;case"seconds":case"second":case"secs":case"sec":case"s":return n*pr;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>=yr?br(e,t,yr,"day"):t>=vr?br(e,t,vr,"hour"):t>=hr?br(e,t,hr,"minute"):t>=pr?br(e,t,pr,"second"):e+" ms"}(e):function(e){var t=Math.abs(e);return t>=yr?Math.round(e/yr)+"d":t>=vr?Math.round(e/vr)+"h":t>=hr?Math.round(e/hr)+"m":t>=pr?Math.round(e/pr)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function br(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}var gr,Er=(function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=function(){var e=!1;return function(){e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||function(){},e.exports=function(e){function t(e){var r,i=null;function a(){var e=[];for(var n=0;n<arguments.length;n++){e[n]=arguments[n]}if(!a.enabled)return;var i=a,o=Number(new Date);i.diff=o-(r||o),i.prev=r,i.curr=o,r=o,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");var s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return"%";s++;var a=t.formatters[r];return"function"==typeof a&&(n=a.call(i,e[s]),e.splice(s,1),s--),n})),t.formatArgs.call(i,e),(i.log||t.log).apply(i,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:function(){return null===i?t.enabled(e):i},set:function(e){i=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){var e=__spreadArray(__spreadArray([],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=mr,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}}}(gr={exports:{}},gr.exports),gr.exports),wr=Er("sq:user-identity");function _r(){window.squatchUserIdentity||(window.squatchUserIdentity=new c({element:document.documentElement,initialState:Sr(),contextName:"sq:user-identity"}).start())}function Tr(e){if(e)try{var t,n,r=M(e),i=r.exp;if(function(e){return e.sub&&/.*:.*@.*:users/.test(e.sub)}(r)){var a=r.sub.match(/(.*):(.*)@(.*):users/);n=atob(a[1]),t=atob(a[2])}else(function(e){return e.user&&e.user.id&&e.user.accountId})(r)&&(n=r.user.accountId,t=r.user.id);if(!t||!n)return;if(i&&Date.now()>=1e3*i)return;return{id:t,accountId:n,jwt:e}}catch(e){return}}function Sr(){var e=Bi();switch(e.type){case"SquatchAndroid":case"SquatchJS2":return{id:e.widgetIdent.userId,accountId:e.widgetIdent.accountId,jwt:e.widgetIdent.token};case"SquatchPortal":var t=new URLSearchParams(document.location.search);if(t.has("jwt"))return Tr(t.get("jwt"));var n=localStorage.getItem("sq:user-identity");if(!n)return;try{var r=JSON.parse(n),i=Tr(r.jwt);return i?Wn({},r,i):void 0}catch(e){return}case"SquatchAdmin":case"None":return}}function Or(e){_r();var t=window.squatchUserIdentity;$(t.context,e)||(t.context=e),e&&"SquatchPortal"===Bi().type?localStorage.setItem("sq:user-identity",JSON.stringify(e)):e||(wr("Deleting user from localStorage"),localStorage.removeItem("sq:user-identity"))}function Ir(){var e;return null==(e=xr())?void 0:e.jwt}function xr(){_r();var e=Jn(),t=i(e,"sq:user-identity"),n=Tr(null==t?void 0:t.jwt);if(!t||n)return t;Or(void 0)}function Ar(e,t){try{var n=e()}catch(e){return t(e)}return n&&n.then?n.then(void 0,t):n}var Nr=function(e){var t,n;function r(t,n){var r;(r=e.call(this,t,n)||this).subject=new vn;var i=new vn;return r.subject.pipe(Sn(200,void 0,10)).subscribe((function(e){try{if(!e.length)return Promise.resolve();for(var t,n=Fr(e),a=n.mergedQuery,o=n.mergedVariables,s=n.mergedQueryAddedEvents,u=tr(n.unmergedQueryAddedEvents);!(t=u()).done;)i.next(t.value);return s.length?Promise.resolve(Ar((function(){return Promise.resolve(r.superRequest(a,o)).then((function(e){Rr(e,s)}))}),(function(e){if(e instanceof C.ClientError){var t=function(){var t=e.response,n=t.data,r=t.errors;if(!n)return{v:Lr(s,e)};for(var i,a=Object.keys(n),o=[].concat(s),u=function(){var t=i.value,n=void 0;t.path.find((function(r,i,s){if(a.includes(r)){var u=kr(r),c=o.findIndex((function(e){return e.id===u}));if(-1===c)return!1;a.splice(i,1),n=o.splice(c,1)[0];var l=Pr(e.response.data,n);s[i]=Cr(s[i],u);var f=n.query,d=n.variables,p=Wn({},e.response,{errors:[t],data:l,path:s}),h=new C.ClientError(p,{query:"string"!=typeof f?gt(f):f,variables:d});return Mr(n,h),!0}return!1}))},c=tr(r);!(i=c()).done;)u();Rr(n,o)}();if("object"==typeof t)return t.v}else Lr(s,e)}))):Promise.resolve()}catch(e){return Promise.reject(e)}})),i.subscribe((function(e){try{var t=Ar((function(){return Promise.resolve(r.superRequest(e.query,e.variables)).then((function(t){jr(t,e)}))}),(function(t){Mr(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,Xn(t,n);var i=r.prototype;return i.superRequest=function(t,n){return e.prototype.request.call(this,t,n)},i.request=function(e,t){var n=this;return new Promise((function(r,i){var a={query:e,variables:t,id:Dr(),resolve:r,reject:i};n.subject.next(a)}))},r}(k.GraphQLClient),Dr=function(){return Cn().replace(/[-_]/g,"")},Cr=function(e,t){return e.replace("_"+t,"")},kr=function(e){var t=e.split("_");return t[t.length-1]},Fr=function(e){var t=[],n=[],r=e.reduce((function(e,r){var i=r.query,a=r.variables,o=r.id;try{var s="string"==typeof i?ft(i):i,u=s.definitions.find((function(e){return"FragmentDefinition"===e.kind})),c="string"==typeof i?i:gt(i),l=/@/.test(c);if(u||l)return n.push(r),e;var f=function(e){return function(e,t){return e+"_"+t}(e,o)};return e=e.addN(s,[a],f,f),t.push(r),e}catch(t){return n.push(r),e}}),Pn("BatchedQuery")),i=r.document,a=r.variables;return{mergedQuery:i&&gt(i),mergedVariables:a,mergedQueryAddedEvents:t,unmergedQueryAddedEvents:n}},Pr=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=Wn({},t,((i={})[Cr(n,r)]=e[n],i))),t}),{})},jr=function(e,t){(0,t.resolve)(e)},Rr=function(e,t){for(var n,r=tr(t);!(n=r()).done;){var i=n.value,a=Pr(e,i);i.resolve(a)}},Mr=function(e,t){(0,e.reject)(t)},Lr=function(e,t){for(var n,r=tr(e);!(n=r()).done;)(0,n.value.reject)(t)},Vr=e("y","sq:graphql-client"),Br=e("w",Bt((function(e,t,n){return new Nr(e+"/api/v1/"+t+"/graphql",{headers:{Authorization:"Bearer "+(n||"")}})})));function Ur(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 qr(e,t){var n,r,a,s,u,c,l=(n=Ir(),r=$i(),a=qi(),s=Br(r,a,n),u=Jn(),null!=(c=i(u,"sq:graphql-client",{attempts:0}))?c:s),f=o(Ur,t),p=f[1];return[f[0],d((function(t,n){void 0===n&&(n=!1);try{if(!l)return p({type:"errors",payload:new Error("No GraphQL client found")}),Promise.resolve();var r=function(r,i){try{var a=(n||p({type:"loading"}),Promise.resolve(l.request(e,t)).then((function(e){p({type:"data",payload:e})})))}catch(e){return i(e)}return a&&a.then?a.then(void 0,i):a}(0,(function(e){p({type:"errors",payload:e})}));return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(t){return Promise.reject(t)}}),[l,e,p])]}var $r,Kr={loading:!1,data:void 0,errors:void 0};function Hr(e){var t=qr(e,Kr);return[t[1],t[0]]}var Jr,Gr=dr($r||($r=Zn(["\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 Yr(){var e=Hr(Gr),t=e[0],n=e[1],r=n.loading,i=n.data,o=n.errors;return a((function(){if(null!=i&&i.authenticateManagedIdentityWithEmailAndPassword){var e=i.authenticateManagedIdentityWithEmailAndPassword,t=e.token,n=M(t).user;Or({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.email,emailVerified:e.emailVerified,sessionData:e.sessionData}})}}),[null==i?void 0:i.authenticateManagedIdentityWithEmailAndPassword]),[t,{loading:r,data:i,errors:o}]}var zr,Qr=dr(Jr||(Jr=Zn(["\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 Wr(){var e=Hr(Qr),t=e[0],n=e[1],r=n.loading,i=n.data,o=n.errors;return a((function(){if(null!=i&&i.registerManagedIdentityWithEmailAndPassword){var e=i.registerManagedIdentityWithEmailAndPassword,t=e.token,n=M(t).user;Or({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.email,emailVerified:e.emailVerified,sessionData:e.sessionData}})}}),[null==i?void 0:i.registerManagedIdentityWithEmailAndPassword]),[t,{loading:r,data:i,errors:o}]}var Xr,Zr=dr(zr||(zr=Zn(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function ei(){var e=Hr(Zr),t=e[1];return[e[0],{loading:t.loading,data:t.data,errors:t.errors}]}var ti,ni=dr(Xr||(Xr=Zn(["\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 ri(){var e=Hr(ni),t=e[0],n=e[1],r=n.loading,i=n.data,o=n.errors;return a((function(){if(null!=i&&i.resetManagedIdentityPassword){var e=i.resetManagedIdentityPassword,t=e.token,n=M(t).user;Or({jwt:t,id:n.id,accountId:n.accountId,managedIdentity:{email:e.email,emailVerified:e.emailVerified,sessionData:e.sessionData}})}}),[null==i?void 0:i.resetManagedIdentityPassword]),[t,{loading:r,data:i,errors:o}]}var ii=dr(ti||(ti=Zn(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function ai(){return Hr(ii)}function oi(){var e=Jn();return{refresh:d((function(){e.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}))}),[e])}}function si(e){var t=e.skip,n=void 0!==t&&t,r=e.update,i=e.variables;a((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=s(e),n=s(0);return $(e,t.current)||(t.current=e,n.current+=1),u((function(){return t.current}),[n.current])}([i,r,n]))}var ui,ci={loading:!1,data:void 0,errors:void 0},li=Symbol();function fi(e){var t=qr(e,ci),n=t[0],r=t[1],i=s(li);return si({skip:i.current===li,update:r,variables:i.current}),[r,Wn({},n,{refetch:function(e){i.current=e,r(e)}})]}var di,pi=dr(ui||(ui=Zn(["\n query ManagedIdentity {\n managedIdentity {\n email\n emailVerified\n sessionData\n }\n }\n"])));function hi(){var e=xr(),t=fi(pi),n=t[0],r=t[1],i=r.loading,o=r.data,s=r.errors,u=r.refetch;return a((function(){null!=o&&o.managedIdentity&&Or(Wn({},e,{managedIdentity:o.managedIdentity}))}),[null==o?void 0:o.managedIdentity]),[d((function(){return n({})}),[n]),{loading:i,data:o,errors:s,refetch:u}]}var vi,yi=dr(di||(di=Zn(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function mi(){var e,t=hi()[0],n=Hr(yi),r=n[0],i=n[1],o=i.loading,s=i.data,u=i.errors;return a((function(){var e;null!=s&&null!=(e=s.verifyManagedIdentityEmail)&&e.success&&t()}),[null==s||null==(e=s.verifyManagedIdentityEmail)?void 0:e.success]),[r,{loading:o,data:s,errors:u}]}var bi,gi=dr(vi||(vi=Zn(["\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 Ei(){return Hr(gi)}var wi=dr(bi||(bi=Zn(["\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 _i(){return Hr(wi)}function Ti(e,t){var n=s();return n.current&&$(t,n.current.key)||(n.current={key:t,value:e()}),n.current.value}function Si(){return o((function(e){return e+1}),0)}function Oi(e){for(var t,n=tr(Object.getOwnPropertyNames(e));!(t=n()).done;){var r=e[t.value];r&&"object"==typeof r&&Oi(r)}return Object.freeze(e)}var Ii={loading:!0,data:void 0,errors:void 0};function xi(e,t,n){var r=qr(e,Ii),i=r[0],a=r[1],o=Si(),s=o[1];return Ti((function(){!n&&a(t)}),[e,t,a,o[0],n]),si({skip:n,update:a,variables:t}),Oi(Wn({},i,{refetch:s}))}function Ai(){return window.squatchHistory=window.squatchHistory||function(){switch(Bi().type){case"SquatchPortal":return $n();default:return Kn()}}(),window.squatchHistory}var Ni,Di=e("c",{createHref:function(){var e;return(e=Ai()).createHref.apply(e,[].slice.call(arguments))},push:function(){var e;return(e=Ai()).push.apply(e,[].slice.call(arguments))},replace:function(){var e;return(e=Ai()).replace.apply(e,[].slice.call(arguments))},go:function(){var e;return(e=Ai()).go.apply(e,[].slice.call(arguments))},back:function(){return Ai().back()},forward:function(){var e;return(e=Ai()).forward.apply(e,[].slice.call(arguments))}});function Ci(){var e=Si()[1];return a((function(){return Ai().listen((function(){e()}))}),[]),Ai().location}function ki(e){var t=l({limit:e.limit,offset:e.offset}),n=t[0],r=t[1],i=n.offset,a=n.limit,o=function(e,t){return e*t},s=function(e,t){return Math.ceil(e/t)||0};return{limit:a,setLimit:function(e){var t=s(i,e),a=o(e,t);r(Wn({},n,{limit:e,offset:a}))},offset:i,setCurrentPage:function(e){var t=o(e,a);r((function(e){return Wn({},e,{offset:t})}))},calculatePagination:function(e,t){var n=s(i,a),r=function(e,t){return Math.ceil(e/t)||0}(t,a),o=0===e?"0":e>1?i+1+"-"+(i+e):""+(i+1);return{currentPage:n,pageCount:r,rangeOnPage:o,pageProgress:o+" of "+t}}}}function Fi(e,t,n,r,i){var a;void 0===r&&(r={}),void 0===i&&(i=!1);var o=ki(n),s=o.limit,u=o.setLimit,c=o.setCurrentPage,l=o.calculatePagination,f=xi(e,Wn({limit:s,offset:o.offset},r),i),d=f.loading,p=f.errors,h=f.refetch,v=t(f.data),y=l((null==v||null==(a=v.data)?void 0:a.length)||0,(null==v?void 0:v.totalCount)||0);return{envelope:v,states:{errors:p,loading:d,limit:s,currentPage:y.currentPage,pageCount:y.pageCount,pageProgress:y.pageProgress},callbacks:{refetch:h,setLimit:u,setCurrentPage:c}}}var Pi,ji,Ri;k.gql(Ni||(Ni=Zn(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Mi;Er("sq:useForm");k.gql(Pi||(Pi=Zn(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"])));k.gql(ji||(ji=Zn(["\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"])));k.gql(Ri||(Ri=Zn(["\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"])));var Li=k.gql(Mi||(Mi=Zn(["\n query {\n viewer {\n ... on User {\n locale\n }\n }\n }\n"])));function Vi(){var e,t,n,r,a,o;n=window.squatchLocale,r=xr(),o=null==(a=xi(Li,{},!r).data)||null==(e=a.viewer)?void 0:e.locale,n?o&&o!==n.context&&(n.context=o):window.squatchLocale=new c({element:document.documentElement,initialState:o||(null==(t=window.widgetIdent)?void 0:t.locale)||void 0,contextName:"sq:locale"}).start();var s=Jn();return i(s,"sq:locale")}function Bi(){var e,t;return window.SquatchAndroid?{type:"SquatchAndroid",android:window.SquatchAndroid,widgetIdent:window.widgetIdent}:window.SquatchPortal?{type:"SquatchPortal",env:window.SquatchPortal}:window.SquatchAdmin?{type:"SquatchAdmin",adminSDK:window.SquatchAdmin}:window.widgetIdent&&"demo"!==(null==(e=window.widgetIdent)?void 0:e.env)?{type:"SquatchJS2",api:null==(t=window.frameElement)?void 0:t.squatchJsApi,widgetIdent:window.widgetIdent}:{type:"None"}}function Ui(){var e=Bi();return"None"===e.type||"SquatchAdmin"===e.type}function qi(){var e=Bi();switch(e.type){case"SquatchAndroid":case"SquatchJS2":return e.widgetIdent.tenantAlias;case"SquatchAdmin":case"None":return"demo";case"SquatchPortal":return e.env.tenantAlias}}function $i(){var e,t=Bi();switch(t.type){case"SquatchAndroid":case"SquatchJS2":return t.widgetIdent.appDomain;case"SquatchPortal":return(null==(e=t.env)?void 0:e.appDomain)||"https://app.referralsaasquatch.com";case"SquatchAdmin":case"None":return"https://app.referralsaasquatch.com"}}function Ki(){var e=Bi();switch(e.type){case"SquatchJS2":return e.widgetIdent.engagementMedium||"EMBED";case"SquatchAndroid":case"SquatchPortal":case"SquatchAdmin":case"None":return"EMBED"}}}}}));
@@ -1 +0,0 @@
1
- System.register(["./p-95b5aa14.system.js","./p-00894968.system.js","./p-860513de.system.js","./p-4bd679a7.system.js","./p-c5d104d8.system.js","./p-1c17892a.system.js","./p-b81b4ebf.system.js","./p-1ef9bc8f.system.js","./p-126bcba1.system.js"],(function(t){"use strict";var s,e,a,n,i,r,o;return{setters:[function(t){s=t.r;e=t.h},function(t){a=t.j},function(t){n=t.o;i=t.m},function(t){r=t.c},function(t){o=t.N},function(){},function(){},function(){},function(){}],execute:function(){var c="sq:validation-state";function u(t){var s=n(c);return{states:{validationErrors:s===null||s===void 0?void 0:s.validationErrors,content:{lastNameLabel:t.lastNameLabel,firstNameLabel:t.firstNameLabel}}}}var f=t("sqm_name_fields",function(){function t(t){s(this,t);this.ignored=true;this.firstNameLabel="First Name";this.lastNameLabel="Last Name";i(this)}t.prototype.disconnectedCallback=function(){};t.prototype.render=function(){var t=(a()?m(this):u(this)).states;return e(o,{states:t})};return t}());function m(t){return r({states:{validationErrors:[],content:{firstNameLabel:"First Name",lastNameLabel:"Last Name"}}},t.demoData||{},{arrayMerge:function(t,s){return s}})}}}}));
@@ -1 +0,0 @@
1
- import{r,h as s}from"./p-73246c5e.js";import{m as o}from"./p-d2a2c424.js";let a=class{constructor(s){r(this,s),this.ignored=!0,o(this)}disconnectedCallback(){}render(){return"error"===this.type?s("sl-alert",{exportparts:"base: erroralert-base, icon:erroralert-icon",class:"Error",type:"danger",open:!0},s("sl-icon",{slot:"icon",name:`${this.icon?this.icon:"exclamation-octagon"}`}),s("slot",null)):"info"===this.type?s("sl-alert",{exportparts:"base: infoalert-base, icon:infoalert-icon",class:"Info",type:"primary",open:!0},s("sl-icon",{slot:"icon",name:`${this.icon?this.icon:"info-circle"}`}),s("slot",null)):s("sl-alert",{exportparts:"base: successalert-base, icon:successalert-icon",class:"Success",type:"success",open:!0},s("sl-icon",{slot:"icon",name:`${this.icon?this.icon:"check2-circle"}`}),s("slot",null))}};a.style="sl-alert::part(base){border:1px solid;border-radius:3px;-webkit-box-shadow:0 1px 2px rgba(20, 20, 20, 0.1);box-shadow:0 1px 2px rgba(20, 20, 20, 0.1)}.Error::part(base){background-color:var(--sl-color-danger-100);border-color:var(--sl-color-danger-200)}.Success::part(base){background-color:var(--sl-color-success-100);border-color:var(--sl-color-success-200)}.Info::part(base){background-color:var(--sl-color-primary-100);border-color:var(--sl-color-primary-200)}";export{a as sqm_form_message}