@saasquatch/mint-components 2.0.5-1 → 2.0.5-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ShadowViewAddon-00e7bf6d.js → ShadowViewAddon-5a9d4a55.js} +89 -208
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/{sqm-big-stat_47.cjs.entry.js → sqm-big-stat_44.cjs.entry.js} +4 -551
- package/dist/cjs/sqm-instant-access-registration.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-forgot-password_6.cjs.entry.js +1078 -0
- package/dist/cjs/sqm-portal-google-registration-form.cjs.entry.js +3 -3
- package/dist/cjs/sqm-portal-verify-email-view-6fcde0e7.js +220 -0
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +1 -1
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +19 -20
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/esm/{IndirectTaxDetailsView-62f67557.js → IndirectTaxDetailsView-4cf9514a.js} +2 -2
- package/dist/esm/{ShadowViewAddon-a470afbc.js → ShadowViewAddon-2b061a3a.js} +96 -213
- package/dist/esm/{data-4e42ca0f.js → data-4390ef62.js} +1 -1
- package/dist/esm/{global-31893424.js → global-fc653a2a.js} +1 -1
- package/dist/esm/{index.module-0bef7c88.js → index.module-849b7d56.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/mint-components.js +3 -3
- package/dist/esm/{re-render-90d2cf01.js → re-render-2a5345de.js} +1 -1
- package/dist/esm/sqm-banking-info-form_10.entry.js +8 -8
- package/dist/esm/{sqm-big-stat_47.entry.js → sqm-big-stat_44.entry.js} +15 -559
- package/dist/esm/sqm-close-button.entry.js +1 -1
- package/dist/esm/sqm-code-verification.entry.js +3 -3
- package/dist/esm/sqm-context-router.entry.js +1 -1
- package/dist/esm/sqm-email-verification.entry.js +3 -3
- package/dist/esm/sqm-empty_4.entry.js +2 -2
- package/dist/esm/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm/sqm-instant-access-registration.entry.js +3 -3
- package/dist/esm/{sqm-lead-checkbox-field-view-184561a6.js → sqm-lead-checkbox-field-view-3d012143.js} +1 -1
- package/dist/esm/sqm-lead-checkbox-field.entry.js +4 -4
- package/dist/esm/{sqm-lead-input-field-view-66f9c1c5.js → sqm-lead-input-field-view-0199ee1e.js} +1 -1
- package/dist/esm/sqm-lead-input-field.entry.js +4 -4
- package/dist/esm/sqm-leaderboard-rank.entry.js +2 -2
- package/dist/esm/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm/{sqm-navigation-sidebar-item-view-55385bda.js → sqm-navigation-sidebar-item-view-5283300c.js} +1 -1
- package/dist/esm/sqm-navigation-sidebar-item.entry.js +2 -2
- package/dist/esm/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm/sqm-pagination_3.entry.js +3 -3
- package/dist/esm/sqm-password-field.entry.js +2 -2
- package/dist/esm/sqm-popup-container.entry.js +1 -1
- package/dist/esm/{sqm-portal-email-verification-view-5dc1cbf3.js → sqm-portal-email-verification-view-03707cd9.js} +1 -1
- package/dist/esm/sqm-portal-email-verification.entry.js +3 -3
- package/dist/esm/sqm-portal-forgot-password_6.entry.js +1069 -0
- package/dist/esm/sqm-portal-google-registration-form.entry.js +5 -5
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/{sqm-portal-profile-view-8022ff18.js → sqm-portal-profile-view-cbef4855.js} +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +4 -4
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm/sqm-portal-verify-email-view-e02a49b1.js +215 -0
- package/dist/esm/sqm-qr-code.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +6 -6
- package/dist/esm/sqm-rewards-table-customer-note-column.entry.js +2 -2
- package/dist/esm/sqm-rewards-table_9.entry.js +5 -5
- package/dist/esm/sqm-stencilbook.entry.js +16 -17
- package/dist/esm/sqm-tab.entry.js +2 -2
- package/dist/esm/sqm-tabs.entry.js +3 -3
- package/dist/esm/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm/sqm-widget-verification.entry.js +1 -1
- package/dist/esm/{useChildElements-3721fb0b.js → useChildElements-14eb2cd7.js} +1 -1
- package/dist/esm/{useInstantAccessRegistration-f12801ad.js → useInstantAccessRegistration-6685ce53.js} +2 -2
- package/dist/esm/{useLeadFormState-259e4b23.js → useLeadFormState-0d1c899e.js} +2 -2
- package/dist/esm/{usePortalRegistrationForm-b448c386.js → usePortalRegistrationForm-65765105.js} +2 -2
- package/dist/esm/{useReferralCodes-9287638d.js → useReferralCodes-f87eea47.js} +1 -1
- package/dist/esm/{useReferralTable-9db5a0ff.js → useReferralTable-bcf191be.js} +3 -3
- package/dist/esm/{useRegistrationFormState-90b6af96.js → useRegistrationFormState-f149c3ba.js} +1 -1
- package/dist/esm/{useVerificationEmail-5ce6400d.js → useVerificationEmail-ca464d15.js} +1 -1
- package/dist/esm/{utilities-add80719.js → utilities-8dba1079.js} +1 -1
- package/dist/esm/{utils-635fa4ea.js → utils-3c8913e6.js} +1 -1
- package/dist/esm-es5/{IndirectTaxDetailsView-62f67557.js → IndirectTaxDetailsView-4cf9514a.js} +1 -1
- package/dist/esm-es5/ShadowViewAddon-2b061a3a.js +1 -0
- package/dist/esm-es5/{data-4e42ca0f.js → data-4390ef62.js} +1 -1
- package/dist/esm-es5/{global-31893424.js → global-fc653a2a.js} +1 -1
- package/dist/esm-es5/{index.module-0bef7c88.js → index.module-849b7d56.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/{re-render-90d2cf01.js → re-render-2a5345de.js} +1 -1
- package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
- package/dist/esm-es5/sqm-big-stat_44.entry.js +1 -0
- package/dist/esm-es5/sqm-close-button.entry.js +1 -1
- package/dist/esm-es5/sqm-code-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-context-router.entry.js +1 -1
- package/dist/esm-es5/sqm-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-empty_4.entry.js +1 -1
- package/dist/esm-es5/sqm-google-sign-in.entry.js +1 -1
- package/dist/esm-es5/sqm-graphql-client-provider.entry.js +1 -1
- package/dist/esm-es5/sqm-instant-access-registration.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-checkbox-field-view-184561a6.js → sqm-lead-checkbox-field-view-3d012143.js} +1 -1
- package/dist/esm-es5/sqm-lead-checkbox-field.entry.js +1 -1
- package/dist/esm-es5/{sqm-lead-input-field-view-66f9c1c5.js → sqm-lead-input-field-view-0199ee1e.js} +1 -1
- package/dist/esm-es5/sqm-lead-input-field.entry.js +1 -1
- package/dist/esm-es5/sqm-leaderboard-rank.entry.js +1 -1
- package/dist/esm-es5/sqm-logout-current-user.entry.js +1 -1
- package/dist/esm-es5/{sqm-navigation-sidebar-item-view-55385bda.js → sqm-navigation-sidebar-item-view-5283300c.js} +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar-item.entry.js +1 -1
- package/dist/esm-es5/sqm-navigation-sidebar.entry.js +1 -1
- package/dist/esm-es5/sqm-pagination_3.entry.js +1 -1
- package/dist/esm-es5/sqm-password-field.entry.js +1 -1
- package/dist/esm-es5/sqm-popup-container.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-email-verification-view-5dc1cbf3.js → sqm-portal-email-verification-view-03707cd9.js} +1 -1
- package/dist/esm-es5/sqm-portal-email-verification.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-forgot-password_6.entry.js +1 -0
- package/dist/esm-es5/sqm-portal-google-registration-form.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-logout.entry.js +1 -1
- package/dist/esm-es5/{sqm-portal-profile-view-8022ff18.js → sqm-portal-profile-view-cbef4855.js} +1 -1
- package/dist/esm-es5/sqm-portal-profile.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-reset-password.entry.js +1 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-e02a49b1.js +1 -0
- package/dist/esm-es5/sqm-qr-code.entry.js +1 -1
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table-customer-note-column.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/esm-es5/sqm-tab.entry.js +1 -1
- package/dist/esm-es5/sqm-tabs.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification-controller.entry.js +1 -1
- package/dist/esm-es5/sqm-widget-verification.entry.js +1 -1
- package/dist/esm-es5/{useChildElements-3721fb0b.js → useChildElements-14eb2cd7.js} +1 -1
- package/dist/esm-es5/{useInstantAccessRegistration-f12801ad.js → useInstantAccessRegistration-6685ce53.js} +1 -1
- package/dist/esm-es5/{useLeadFormState-259e4b23.js → useLeadFormState-0d1c899e.js} +1 -1
- package/dist/esm-es5/{usePortalRegistrationForm-b448c386.js → usePortalRegistrationForm-65765105.js} +1 -1
- package/dist/esm-es5/{useReferralCodes-9287638d.js → useReferralCodes-f87eea47.js} +1 -1
- package/dist/esm-es5/{useReferralTable-9db5a0ff.js → useReferralTable-bcf191be.js} +1 -1
- package/dist/esm-es5/{useRegistrationFormState-90b6af96.js → useRegistrationFormState-f149c3ba.js} +1 -1
- package/dist/esm-es5/{useVerificationEmail-5ce6400d.js → useVerificationEmail-ca464d15.js} +1 -1
- package/dist/esm-es5/{utilities-add80719.js → utilities-8dba1079.js} +1 -1
- package/dist/esm-es5/{utils-635fa4ea.js → utils-3c8913e6.js} +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/mint-components.js +1 -1
- package/dist/mint-components/p-01eab918.js +1 -0
- package/dist/mint-components/p-051908cf.js +1 -0
- package/dist/mint-components/{p-af6e09cb.entry.js → p-071b49c1.entry.js} +1 -1
- package/dist/mint-components/{p-985324ac.system.entry.js → p-07f47f18.system.entry.js} +1 -1
- package/dist/mint-components/p-080fdd32.entry.js +1 -0
- package/dist/mint-components/{p-456ee337.entry.js → p-0bdf0a4b.entry.js} +1 -1
- package/dist/mint-components/{p-289fb8c3.system.entry.js → p-0fe8d9fc.system.entry.js} +1 -1
- package/dist/mint-components/{p-beff34a1.system.entry.js → p-118e4a22.system.entry.js} +1 -1
- package/dist/mint-components/{p-cc926179.entry.js → p-128dad3d.entry.js} +1 -1
- package/dist/mint-components/p-191fc062.entry.js +273 -0
- package/dist/mint-components/{p-2fd02806.entry.js → p-1aebfc0e.entry.js} +2 -2
- package/dist/mint-components/p-1b50850b.entry.js +13 -0
- package/dist/mint-components/{p-0cb43649.system.js → p-2076f887.system.js} +1 -1
- package/dist/mint-components/{p-fb3e9155.system.entry.js → p-23eb911d.system.entry.js} +1 -1
- package/dist/mint-components/{p-1b3e8ebe.entry.js → p-256763e8.entry.js} +1 -1
- package/dist/mint-components/{p-d2f0816a.system.entry.js → p-266e25fd.system.entry.js} +1 -1
- package/dist/mint-components/{p-cf0d2ca3.system.js → p-2851c89b.system.js} +1 -1
- package/dist/mint-components/{p-17b90cc9.entry.js → p-287a9c63.entry.js} +1 -1
- package/dist/mint-components/{p-ff102740.system.entry.js → p-2c70a817.system.entry.js} +1 -1
- package/dist/mint-components/p-2c9dc1ff.js +1 -0
- package/dist/mint-components/p-2fa1f10f.entry.js +9 -0
- package/dist/mint-components/{p-0ecdf3b3.js → p-301b5e90.js} +1 -1
- package/dist/mint-components/{p-26950b0a.system.entry.js → p-3710c2e1.system.entry.js} +1 -1
- package/dist/mint-components/{p-0728b5d5.entry.js → p-382aa99f.entry.js} +1 -1
- package/dist/mint-components/{p-bd317183.entry.js → p-39599251.entry.js} +1 -1
- package/dist/mint-components/{p-a69d6920.js → p-39ad8f1b.js} +2 -2
- package/dist/mint-components/p-3c25bdb4.system.entry.js +1 -0
- package/dist/mint-components/p-3c27540c.js +1 -0
- package/dist/mint-components/{p-8ad15caa.entry.js → p-3f00929b.entry.js} +1 -1
- package/dist/mint-components/{p-6eb15b8b.system.entry.js → p-4308b18f.system.entry.js} +1 -1
- package/dist/mint-components/{p-df1f3dcb.system.entry.js → p-4320e2dc.system.entry.js} +1 -1
- package/dist/mint-components/{p-3bf17416.system.js → p-479202a9.system.js} +1 -1
- package/dist/mint-components/{p-60e6b691.system.js → p-494497c2.system.js} +1 -1
- package/dist/mint-components/{p-c2cd0657.system.entry.js → p-4d3c4cc5.system.entry.js} +1 -1
- package/dist/mint-components/{p-cf5f2a1a.entry.js → p-505f91d6.entry.js} +2 -2
- package/dist/mint-components/{p-ade6644e.system.js → p-51428d05.system.js} +1 -1
- package/dist/mint-components/{p-b7e1513f.js → p-5708d347.js} +1 -1
- package/dist/mint-components/p-5b542964.entry.js +1 -0
- package/dist/mint-components/p-5c3bb317.system.js +1 -0
- package/dist/mint-components/p-6306b75e.system.entry.js +1 -0
- package/dist/mint-components/{p-adc687d2.system.js → p-670b2ab4.system.js} +1 -1
- package/dist/mint-components/{p-89ca6721.entry.js → p-6890a3b2.entry.js} +1 -1
- package/dist/mint-components/p-7295c99c.entry.js +1 -0
- package/dist/mint-components/{p-186834ee.system.entry.js → p-73eaa31b.system.entry.js} +1 -1
- package/dist/mint-components/{p-8ae21c99.system.js → p-74141e43.system.js} +1 -1
- package/dist/mint-components/p-7646a6a4.entry.js +1 -0
- package/dist/mint-components/{p-eadf3ea0.system.entry.js → p-7a5cabc8.system.entry.js} +1 -1
- package/dist/mint-components/{p-f0fcab7a.system.js → p-7c74ad5c.system.js} +1 -1
- package/dist/mint-components/{p-d7ca8c6c.entry.js → p-7e04b813.entry.js} +1 -1
- package/dist/mint-components/p-80569727.system.js +1 -0
- package/dist/mint-components/{p-5bff2e59.js → p-831af05f.js} +4 -4
- package/dist/mint-components/{p-220bf9bc.system.js → p-832579bf.system.js} +1 -1
- package/dist/mint-components/{p-ad04c7ea.entry.js → p-8766952b.entry.js} +1 -1
- package/dist/mint-components/{p-bf45741a.system.js → p-8a11659b.system.js} +1 -1
- package/dist/mint-components/{p-165052a3.entry.js → p-8a85f8f5.entry.js} +1 -1
- package/dist/mint-components/{p-4d2a0a42.system.entry.js → p-8b9f6e1e.system.entry.js} +1 -1
- package/dist/mint-components/p-8d25a7f7.js +448 -0
- package/dist/mint-components/{p-e00c413e.entry.js → p-9046552e.entry.js} +1 -1
- package/dist/mint-components/{p-703ec717.system.entry.js → p-9191b949.system.entry.js} +1 -1
- package/dist/mint-components/{p-a070c828.entry.js → p-941776f2.entry.js} +1 -1
- package/dist/mint-components/p-95fe044b.js +1 -0
- package/dist/mint-components/{p-b6215a34.system.entry.js → p-9652e637.system.entry.js} +1 -1
- package/dist/mint-components/{p-3b4cfc7a.entry.js → p-9ba932a9.entry.js} +1 -1
- package/dist/mint-components/p-9bea2329.system.js +1 -0
- package/dist/mint-components/{p-747b0bc0.js → p-9d31def7.js} +1 -1
- package/dist/mint-components/{p-0ab1b421.js → p-9f44a4bd.js} +1 -1
- package/dist/mint-components/{p-8b1f7092.system.entry.js → p-a13d7d73.system.entry.js} +1 -1
- package/dist/mint-components/{p-84a467be.entry.js → p-a4290ba4.entry.js} +1 -1
- package/dist/mint-components/{p-d1b371d7.system.js → p-a81690ae.system.js} +1 -1
- package/dist/mint-components/{p-bcbede0f.system.entry.js → p-a9f72689.system.entry.js} +1 -1
- package/dist/mint-components/{p-a9cc3f05.system.js → p-aaa0ed28.system.js} +1 -1
- package/dist/mint-components/{p-1debe96f.entry.js → p-aaf290ce.entry.js} +1 -1
- package/dist/mint-components/{p-d7a77305.system.entry.js → p-ab927359.system.entry.js} +1 -1
- package/dist/mint-components/{p-d0de7b62.js → p-ae867ea6.js} +1 -1
- package/dist/mint-components/{p-77d24a8e.entry.js → p-aeb00548.entry.js} +1 -1
- package/dist/mint-components/{p-fc3bc313.system.js → p-b131b384.system.js} +1 -1
- package/dist/mint-components/{p-6cd2e9ac.system.js → p-b35a43d1.system.js} +1 -1
- package/dist/mint-components/{p-c65b0189.js → p-b4a8a34b.js} +1 -1
- package/dist/mint-components/p-b54da510.system.entry.js +1 -0
- package/dist/mint-components/{p-5de5f74c.system.entry.js → p-bbdbefce.system.entry.js} +1 -1
- package/dist/mint-components/{p-70d4936d.js → p-bf3e7bc8.js} +1 -1
- package/dist/mint-components/{p-0f47f904.entry.js → p-c23f5630.entry.js} +1 -1
- package/dist/mint-components/{p-4e47568a.system.entry.js → p-c4151e26.system.entry.js} +1 -1
- package/dist/mint-components/{p-5423baa1.js → p-c5e6c28e.js} +1 -1
- package/dist/mint-components/{p-2478d23c.system.entry.js → p-c7b4e749.system.entry.js} +1 -1
- package/dist/mint-components/{p-1fcbfc5c.system.entry.js → p-c857676d.system.entry.js} +1 -1
- package/dist/mint-components/{p-c6ac6625.js → p-ca3dbd51.js} +1 -1
- package/dist/mint-components/{p-079cf9d7.js → p-ca3f598c.js} +2 -2
- package/dist/mint-components/{p-11e16fe2.system.entry.js → p-ca71dfff.system.entry.js} +1 -1
- package/dist/mint-components/{p-e2899c78.system.entry.js → p-cb225348.system.entry.js} +1 -1
- package/dist/mint-components/{p-110360b9.system.js → p-ce4a36b2.system.js} +1 -1
- package/dist/mint-components/{p-d3449429.entry.js → p-d57bdb68.entry.js} +1 -1
- package/dist/mint-components/p-d9a88615.system.js +1 -0
- package/dist/mint-components/{p-a91ff3f7.system.js → p-dd28cd8c.system.js} +1 -1
- package/dist/mint-components/{p-9df20b9f.system.entry.js → p-de293f9f.system.entry.js} +1 -1
- package/dist/mint-components/p-e21dad58.entry.js +1 -0
- package/dist/mint-components/{p-f7a09923.js → p-e230562f.js} +2 -2
- package/dist/mint-components/{p-8055a9c7.entry.js → p-e6c7c09c.entry.js} +1 -1
- package/dist/mint-components/{p-369021f9.system.entry.js → p-e82ffaee.system.entry.js} +1 -1
- package/dist/mint-components/{p-1111eb94.js → p-e9b0160b.js} +1 -1
- package/dist/mint-components/{p-f38483aa.system.entry.js → p-eb123e88.system.entry.js} +1 -1
- package/dist/mint-components/{p-a6ef5e76.js → p-ebfaa71d.js} +2 -2
- package/dist/mint-components/{p-6c451c54.system.entry.js → p-ed74b25a.system.entry.js} +1 -1
- package/dist/mint-components/{p-4bc9f0e5.system.entry.js → p-f1cf660f.system.entry.js} +1 -1
- package/dist/mint-components/p-f207070d.entry.js +1 -0
- package/dist/mint-components/p-f32d8d19.entry.js +1 -0
- package/dist/mint-components/{p-59a8c3b1.system.entry.js → p-f59cf0a8.system.entry.js} +1 -1
- package/dist/mint-components/{p-78beaa20.system.js → p-f62aa495.system.js} +1 -1
- package/dist/mint-components/{p-68141f06.js → p-f72cf379.js} +1 -1
- package/dist/mint-components/{p-168d59d6.system.entry.js → p-f998a53a.system.entry.js} +1 -1
- package/dist/mint-components/{p-abf70313.system.entry.js → p-fb0ea0df.system.entry.js} +1 -1
- package/dist/mint-components/{p-644df4e5.entry.js → p-fbcd2ae2.entry.js} +1 -1
- package/dist/mint-components/p-fc66ec16.system.js +1 -0
- package/dist/mint-components/{p-bd74bc30.system.js → p-fc850132.system.js} +1 -1
- package/dist/mint-components/{p-253c0ba6.entry.js → p-ff38a567.entry.js} +1 -1
- package/docs/docs.docx +0 -0
- package/package.json +1 -1
- package/dist/cjs/sqm-portal-google-login.cjs.entry.js +0 -130
- package/dist/cjs/sqm-portal-login-view-298425ad.js +0 -58
- package/dist/cjs/sqm-portal-registration-form.cjs.entry.js +0 -194
- package/dist/cjs/sqm-portal-verify-email-view-eb487415.js +0 -49
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +0 -171
- package/dist/cjs/usePortalLogin-95e7c3a0.js +0 -74
- package/dist/esm/sqm-portal-google-login.entry.js +0 -126
- package/dist/esm/sqm-portal-login-view-40f4f6f1.js +0 -56
- package/dist/esm/sqm-portal-registration-form.entry.js +0 -190
- package/dist/esm/sqm-portal-verify-email-view-547bdbef.js +0 -47
- package/dist/esm/sqm-portal-verify-email.entry.js +0 -167
- package/dist/esm/usePortalLogin-9f9ea240.js +0 -72
- package/dist/esm-es5/ShadowViewAddon-a470afbc.js +0 -1
- package/dist/esm-es5/sqm-big-stat_47.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-google-login.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-login-view-40f4f6f1.js +0 -1
- package/dist/esm-es5/sqm-portal-registration-form.entry.js +0 -1
- package/dist/esm-es5/sqm-portal-verify-email-view-547bdbef.js +0 -1
- package/dist/esm-es5/sqm-portal-verify-email.entry.js +0 -1
- package/dist/esm-es5/usePortalLogin-9f9ea240.js +0 -1
- package/dist/mint-components/p-02232e0c.entry.js +0 -1
- package/dist/mint-components/p-0ffd3316.entry.js +0 -1
- package/dist/mint-components/p-1f21cb92.entry.js +0 -9
- package/dist/mint-components/p-23e2c5f4.js +0 -1
- package/dist/mint-components/p-30a281ee.entry.js +0 -1
- package/dist/mint-components/p-348d9e18.system.js +0 -1
- package/dist/mint-components/p-46172119.entry.js +0 -1
- package/dist/mint-components/p-47143651.system.js +0 -1
- package/dist/mint-components/p-4ea55134.js +0 -1
- package/dist/mint-components/p-5ff17d5c.system.js +0 -1
- package/dist/mint-components/p-60f8b8ff.js +0 -1
- package/dist/mint-components/p-69604a2c.entry.js +0 -1
- package/dist/mint-components/p-69c93d10.system.js +0 -1
- package/dist/mint-components/p-85dcd4a6.system.entry.js +0 -1
- package/dist/mint-components/p-8b202cbd.system.entry.js +0 -1
- package/dist/mint-components/p-8d33addb.js +0 -1
- package/dist/mint-components/p-95cc1859.js +0 -1
- package/dist/mint-components/p-9d88b86e.entry.js +0 -1
- package/dist/mint-components/p-a52c0604.entry.js +0 -1
- package/dist/mint-components/p-a625b75f.js +0 -1
- package/dist/mint-components/p-af4bf3fc.system.entry.js +0 -1
- package/dist/mint-components/p-b7a46b96.system.entry.js +0 -1
- package/dist/mint-components/p-b7daf892.system.js +0 -1
- package/dist/mint-components/p-c2f3b2f4.system.js +0 -1
- package/dist/mint-components/p-cfcae11a.js +0 -448
- package/dist/mint-components/p-da2183c2.js +0 -1
- package/dist/mint-components/p-eb640601.entry.js +0 -13
- package/dist/mint-components/p-eb644fb7.system.entry.js +0 -1
- package/dist/mint-components/p-f0c8d3aa.entry.js +0 -273
- package/dist/mint-components/p-f21e0be3.entry.js +0 -1
- package/dist/mint-components/p-f41af37d.entry.js +0 -1
- package/dist/mint-components/p-f80b1849.system.js +0 -1
- package/dist/cjs/{usePortalRegistrationForm-cdf6cb76.js → usePortalRegistrationForm-a0a45299.js} +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as n,s as t,u as e,c as r,a as i,e as o,f as u,h as s,y as a,i as c,j as f,k as l,m as h}from"./p-a7fc1e02.js";function d(n){this.message=n}(d.prototype=new Error).name="InvalidCharacterError";var v="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(n){var t=String(n).replace(/=+$/,"");if(t.length%4==1)throw new d("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,r,i=0,o=0,u="";r=t.charAt(o++);~r&&(e=i%4?64*e+r:r,i++%4)?u+=String.fromCharCode(255&e>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return u};function m(n){var t=n.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(n){return decodeURIComponent(v(n).replace(/(.)/g,(function(n,t){var e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(t)}catch(n){return v(t)}}function p(n){this.message=n}(p.prototype=new Error).name="InvalidTokenError";const{toString:y,hasOwnProperty:b}=Object.prototype,w=Function.prototype.toString,E=new Map;function g(n,t){try{return S(n,t)}finally{E.clear()}}function S(n,t){if(n===t)return!0;const e=y.call(n);if(e!==y.call(t))return!1;switch(e){case"[object Array]":if(n.length!==t.length)return!1;case"[object Object]":{if(N(n,t))return!0;const e=I(n),r=I(t),i=e.length;if(i!==r.length)return!1;for(let n=0;n<i;++n)if(!b.call(t,e[n]))return!1;for(let r=0;r<i;++r){const i=e[r];if(!S(n[i],t[i]))return!1}return!0}case"[object Error]":return n.name===t.name&&n.message===t.message;case"[object Number]":if(n!=n)return t!=t;case"[object Boolean]":case"[object Date]":return+n==+t;case"[object RegExp]":case"[object String]":return n==`${t}`;case"[object Map]":case"[object Set]":{if(n.size!==t.size)return!1;if(N(n,t))return!0;const r=n.entries(),i="[object Map]"===e;for(;;){const n=r.next();if(n.done)break;const[e,o]=n.value;if(!t.has(e))return!1;if(i&&!S(o,t.get(e)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":n=new Uint8Array(n),t=new Uint8Array(t);case"[object DataView]":{let e=n.byteLength;if(e===t.byteLength)for(;e--&&n[e]===t[e];);return-1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const e=w.call(n);return e===w.call(t)&&!function(n){const t=n.length-T.length;return t>=0&&n.indexOf(T,t)===t}(e)}}return!1}function I(n){return Object.keys(n).filter(O,n)}function O(n){return void 0!==this[n]}const T="{ [native code] }";function N(n,t){let e=E.get(n);if(e){if(e.has(t))return!0}else E.set(n,e=new Set);return e.add(t),!1}var j=Object.defineProperty,F=Object.defineProperties,C=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,_=(n,t,e)=>t in n?j(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,x=(n,t)=>{for(var e in t||(t={}))A.call(t,e)&&_(n,e,t[e]);if(D)for(var e of D(t))P.call(t,e)&&_(n,e,t[e]);return n},k=(n,t)=>F(n,C(t));function R(){return q().type}function q(){var n,t,e;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||(null==(n=window.frameElement)?void 0:n.squatchJsApi))&&"demo"!==(null==(t=window.widgetIdent)?void 0:t.env)?{type:"SquatchJS2",api:null==(e=window.frameElement)?void 0:e.squatchJsApi,widgetIdent:window.widgetIdent}:{type:"None"}}function M(){const n=q();return"None"===n.type||"SquatchAdmin"===n.type}function V(){var n;const t=q();switch(t.type){case"SquatchAndroid":case"SquatchIOS":case"SquatchJS2":return null==(n=t.widgetIdent)?void 0:n.tenantAlias;case"SquatchAdmin":case"None":return"demo";case"SquatchPortal":return t.env.tenantAlias}}var U="https://app.referralsaasquatch.com";function $(){var n,t;const e=q();switch(e.type){case"SquatchAndroid":case"SquatchIOS":case"SquatchJS2":return(null==(n=e.widgetIdent)?void 0:n.appDomain)||U;case"SquatchPortal":return(null==(t=e.env)?void 0:t.appDomain)||U;case"SquatchAdmin":case"None":return U}}var L=(()=>{var n;try{return null==(n=null==window?void 0:window.localStorage)?void 0:n.getItem("debug")}catch(n){return!1}})();function B(n,...t){L&&console.debug(`sq:environment:${n}`,...t)}var J=(...n)=>B("history",...n);function G(n){if("string"==typeof n)return n;const t=new URL(n.pathname,window.origin);return n.search&&(t.search=n.search),n.hash&&(t.hash=n.hash),t}function H(){return window.squatchHistory=window.squatchHistory||function(){if("SquatchPortal"===R()){let n=function(n){const t=window.history[n];return function(...e){const r=t.apply(window.history,e),i=new Event(n);return window.dispatchEvent(i),r}};return window.history.pushState=n("pushState"),window.history.replaceState=n("replaceState"),new class{constructor(){this.listeners=new Set,window.addEventListener("popstate",this.notify.bind(this)),window.addEventListener("pushState",this.notify.bind(this)),window.addEventListener("replaceState",this.notify.bind(this))}listen(n){return this.listeners.add(n),()=>{this.listeners.delete(n)}}notify(){J("notifying listeners of route change",this.location),this.listeners&&this.listeners.forEach((n=>n()))}get location(){return{pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,state:window.history.state}}back(){this.go(-1)}forward(){this.go(1)}go(n){window.history.go(n)}push(n,t){const e=G(n);window.history.pushState(t,"",e)}replace(n,t){const e=G(n);window.history.replaceState(t,"",e)}}}return new class{constructor(){this.history=[{pathname:"/",search:"",hash:""}],this.index=0,this.listeners=new Set}listen(n){return this.listeners.add(n),()=>{this.listeners.delete(n)}}current(){return this.history[this.index]}get state(){return this.current().state}notify(){J("notifying listeners of route change",this.location),this.listeners.forEach((n=>n()))}get location(){return this.history[this.index]}back(){this.go(-1)}forward(){this.go(1)}go(n){this.index+=n,this.index<0&&(this.index=0),this.index>=this.history.length&&(this.index=this.history.length-1),this.notify()}push(n,t){let e;e="string"==typeof n?{pathname:n,search:this.history[this.index].search,hash:this.history[this.index].hash,state:t}:k(x({},n),{state:t}),this.index++,this.history.splice(this.index,this.history.length,e),this.notify()}replace(n,t){this.history[this.index]="string"==typeof n?{pathname:n,search:"",hash:"",state:t}:k(x({},n),{state:t}),this.notify()}}}(),window.squatchHistory}var W=new class{get location(){return H().location}listen(n){return H().listen(n)}back(){H().back()}forward(){H().forward()}go(n){H().go(n)}push(n,t){H().push(n,t)}replace(n,t){H().replace(n,t)}},Y=(...n)=>B("sq:locale",...n);function Q(n){if(n&&/^[a-z]{2}(_(?:[A-Z]{2}|[0-9]{3}))?$/.test(n))return n}function z(){var t;let e=window.squatchLocale;if(!e){Y("Creating locale context provider");const r=(null==(t=window.widgetIdent)?void 0:t.locale)??Q(navigator.language.replaceAll("-","_"));Y("initializing with locale:",r),e=new n({element:document.documentElement,initialState:r,contextName:"sq:locale"}).start(),window.squatchLocale=e}return e}var X=(...n)=>B("sq:locale",...n),K=(...n)=>B("sq:locale",...n),Z=new t({contextName:"sq:user-identity",element:(()=>{const n="__environment_context_listener";let t=document.getElementById(n);return t||(t=document.createElement("div"),t.id=n,document.documentElement.appendChild(t)),t})(),onChange:async n=>{var t;const e=z(),r=(null==(t=window.widgetIdent)?void 0:t.locale)??Q(navigator.language.replaceAll("-","_"));let i;if(n){K("User context changed, refetching locale");const n=await async function(){var n;X("Fetching locale from GraphQL for current user");try{const t=await fetch(`${$()}/api/v1/${V()}/graphql`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${null==(n=un())?void 0:n.jwt}`},body:JSON.stringify({query:"\n query {\n viewer {\n ... on User {\n locale\n }\n }\n }\n"})});if(!t.ok)throw new Error("Failed to fetch locale");const e=await t.json();if(e.errors)throw new Error(JSON.stringify(e.errors,null,2));return e.data.viewer.locale||void 0}catch(n){return void X("Failed to fetch locale for current user",n.message)}}();K(`New value fetched from GraphQL [${n}]`),i=n||r}else i=r;K(`Setting locale context to [${i}]`),e.context=i}}),nn=(...n)=>B("sq:user-identity",...n);function tn(){let t=window.squatchUserIdentity;return t||(nn("Creating user context provider"),t=new n({element:document.documentElement,initialState:rn(),contextName:"sq:user-identity"}).start(),window.squatchUserIdentity=t,K("Starting user context listener for locale updates"),Z.start()),t}function en(n){if(n)try{const t=function(n,t){if("string"!=typeof n)throw new p("Invalid token specified");var e=!0===(t=t||{}).header?0:1;try{return JSON.parse(m(n.split(".")[e]))}catch(n){throw new p("Invalid token specified: "+n.message)}}(n),e=t.exp;let r,i,o;if(function(n){return n.sub&&/.*:.*@.*:users/.test(n.sub)}(t)){const n=t.sub.match(/(.*):(.*)@(.*):users/);(null==n?void 0:n[1])&&(i=atob(n[1])),(null==n?void 0:n[2])&&(r=atob(n[2]))}else(function(n){return n.user&&n.user.id&&n.user.accountId})(t)&&(i=t.user.accountId,r=t.user.id,o=t.user.email);return r&&i?e&&Date.now()>=1e3*e?void nn("JWT has expired"):{id:r,accountId:i,email:o,jwt:n}:void nn("No user information")}catch(n){return void nn("Invalid JWT")}}function rn(){const n=q();switch(n.type){case"SquatchIOS":case"SquatchAndroid":case"SquatchJS2":if(!n.widgetIdent)return;const{userId:t,accountId:e,token:r}=n.widgetIdent;if(!t||!e||!r)return;return{id:n.widgetIdent.userId,accountId:n.widgetIdent.accountId,email:n.widgetIdent.email,jwt:n.widgetIdent.token};case"SquatchPortal":const i=new URLSearchParams(document.location.search);if(i.has("jwt"))return en(i.get("jwt"));const o=localStorage.getItem("sq:user-identity");if(!o)return;try{const n=JSON.parse(o),t=en(n.jwt);return t?x(x({},n),t):void 0}catch(n){return}case"SquatchAdmin":case"None":return}}function on(n){const t=tn();g(t.context,n)||(nn(`Setting user context value [${JSON.stringify(n)}]`),t.context=n),n&&"SquatchPortal"===q().type?localStorage.setItem("sq:user-identity",JSON.stringify(n)):n||localStorage.removeItem("sq:user-identity")}function un(){var n;return null==(n=window.squatchUserIdentity)?void 0:n.context}var sn=(...n)=>B("sq:program-id",...n);function an(){var t;let e=window.squatchProgramId;return e||(sn("Creating program context provider"),e=new n({element:document.documentElement,initialState:(null==(t=window.widgetIdent)?void 0:t.programId)||void 0,contextName:"sq:program-id"}).start(),window.squatchProgramId=e),e}function cn(n){const t=an();t.context!==n&&(sn(`Setting program context value [${n}]`),t.context=n)}const fn=(n,t)=>e((()=>n),t);function ln(n){return(ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var hn="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function dn(n,t){for(var e,r=/\r\n|[\n\r]/g,i=1,o=t+1;(e=r.exec(n.body))&&e.index<t;)i+=1,o=t+1-(e.index+e[0].length);return{line:i,column:o}}function vn(n,t){var e=n.locationOffset.column-1,r=pn(e)+n.body,i=t.line-1,o=t.line+(n.locationOffset.line-1),u=t.column+(1===t.line?e:0),s="".concat(n.name,":").concat(o,":").concat(u,"\n"),a=r.split(/\r\n|[\n\r]/g),c=a[i];if(c.length>120){for(var f=Math.floor(u/80),l=u%80,h=[],d=0;d<c.length;d+=80)h.push(c.slice(d,d+80));return s+mn([["".concat(o),h[0]]].concat(h.slice(1,f+1).map((function(n){return["",n]})),[[" ",pn(l-1)+"^"],["",h[f+1]]]))}return s+mn([["".concat(o-1),a[i-1]],["".concat(o),c],["",pn(u-1)+"^"],["".concat(o+1),a[i+1]]])}function mn(n){var t=n.filter((function(n){return void 0!==n[1]})),e=Math.max.apply(Math,t.map((function(n){return n[0].length})));return t.map((function(n){var t,r=n[1];return pn(e-(t=n[0]).length)+t+(r?" | "+r:" |")})).join("\n")}function pn(n){return Array(n+1).join(" ")}function yn(n){return(yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function bn(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function wn(n,t){return!t||"object"!==yn(t)&&"function"!=typeof t?En(n):t}function En(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function gn(n){var t="function"==typeof Map?new Map:void 0;return(gn=function(n){if(null===n||!function(n){return-1!==Function.toString.call(n).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,e)}function e(){return Sn(n,arguments,Tn(this).constructor)}return e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),On(e,n)})(n)}function Sn(n,t,e){return(Sn=In()?Reflect.construct:function(n,t,e){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(n,r));return e&&On(i,e.prototype),i}).apply(null,arguments)}function In(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(n){return!1}}function On(n,t){return(On=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function Tn(n){return(Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}var Nn=function(){!function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&On(n,t)}(o,gn(Error));var n,t,e,r,i=(n=o,t=In(),function(){var e,r=Tn(n);if(t){var i=Tn(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return wn(this,e)});function o(n,t,e,r,u,s,a){var c,f,l,h,d;!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),d=i.call(this,n);var v,m=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,p=e;!p&&m&&(p=null===(v=m[0].loc)||void 0===v?void 0:v.source);var y,b=r;!b&&m&&(b=m.reduce((function(n,t){return t.loc&&n.push(t.loc.start),n}),[])),b&&0===b.length&&(b=void 0),r&&e?y=r.map((function(n){return dn(e,n)})):m&&(y=m.reduce((function(n,t){return t.loc&&n.push(dn(t.loc.source,t.loc.start)),n}),[]));var w,E=a;if(null==E&&null!=s){var g=s.extensions;"object"==ln(w=g)&&null!==w&&(E=g)}return Object.defineProperties(En(d),{name:{value:"GraphQLError"},message:{value:n,enumerable:!0,writable:!0},locations:{value:null!==(c=y)&&void 0!==c?c:void 0,enumerable:null!=y},path:{value:null!=u?u:void 0,enumerable:null!=u},nodes:{value:null!=m?m:void 0},source:{value:null!==(f=p)&&void 0!==f?f:void 0},positions:{value:null!==(l=b)&&void 0!==l?l:void 0},originalError:{value:s},extensions:{value:null!==(h=E)&&void 0!==h?h:void 0,enumerable:null!=E}}),null!=s&&s.stack?(Object.defineProperty(En(d),"stack",{value:s.stack,writable:!0,configurable:!0}),wn(d)):(Error.captureStackTrace?Error.captureStackTrace(En(d),o):Object.defineProperty(En(d),"stack",{value:Error().stack,writable:!0,configurable:!0}),d)}return e=o,(r=[{key:"toString",value:function(){return function(n){var t,e=n.message;if(n.nodes)for(var r=0,i=n.nodes;r<i.length;r++){var o=i[r];o.loc&&(e+="\n\n"+vn((t=o.loc).source,dn(t.source,t.start)))}else if(n.source&&n.locations)for(var u=0,s=n.locations;u<s.length;u++)e+="\n\n"+vn(n.source,s[u]);return e}(this)}},{key:hn,get:function(){return"Object"}}])&&bn(e.prototype,r),o}();function jn(n,t,e){return new Nn("Syntax Error: ".concat(e),void 0,n,[t])}var Fn=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"}),Cn="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function Dn(n){var t=n.prototype.toJSON;"function"==typeof t||function(){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),n.prototype.inspect=t,Cn&&(n.prototype[Cn]=t)}var An=function(){function n(n,t,e){this.start=n.start,this.end=t.end,this.startToken=n,this.endToken=t,this.source=e}return n.prototype.toJSON=function(){return{start:this.start,end:this.end}},n}();Dn(An);var Pn=function(){function n(n,t,e,r,i,o,u){this.kind=n,this.start=t,this.end=e,this.line=r,this.column=i,this.value=u,this.prev=o,this.next=null}return n.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},n}();function _n(n){return null!=n&&"string"==typeof n.kind}Dn(Pn);var xn=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 kn(n){return(kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function Rn(n){return qn(n,[])}function qn(n,t){switch(kn(n)){case"string":return JSON.stringify(n);case"function":return n.name?"[function ".concat(n.name,"]"):"[function]";case"object":return null===n?"null":function(n,t){if(-1!==t.indexOf(n))return"[Circular]";var e=[].concat(t,[n]),r=function(n){var t=n[String(Cn)];return"function"==typeof t?t:"function"==typeof n.inspect?n.inspect:void 0}(n);if(void 0!==r){var i=r.call(n);if(i!==n)return"string"==typeof i?i:qn(i,e)}else if(Array.isArray(n))return function(n,t){if(0===n.length)return"[]";if(t.length>2)return"[Array]";for(var e=Math.min(10,n.length),r=n.length-e,i=[],o=0;o<e;++o)i.push(qn(n[o],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(n,e);return function(n,t){var e=Object.keys(n);return 0===e.length?"{}":t.length>2?"["+function(n){var t=Object.prototype.toString.call(n).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof n.constructor){var e=n.constructor.name;if("string"==typeof e&&""!==e)return e}return t}(n)+"]":"{ "+e.map((function(e){return e+": "+qn(n[e],t)})).join(", ")+" }"}(n,e)}(n,t);default:return String(n)}}function Mn(n,t){if(!Boolean(n))throw new Error(t)}function Vn(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var Un=function(){function n(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof n||Mn(0,"Body must be a string. Received: ".concat(Rn(n),".")),this.body=n,this.name=t,this.locationOffset=e,this.locationOffset.line>0||Mn(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Mn(0,"column in locationOffset is 1-indexed and must be positive.")}var t,e;return t=n,(e=[{key:hn,get:function(){return"Source"}}])&&Vn(t.prototype,e),n}(),$n=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 Ln(n){var t=n.split(/\r\n|[\n\r]/g),e=function(n){for(var t,e=!0,r=!0,i=0,o=null,u=0;u<n.length;++u)switch(n.charCodeAt(u)){case 13:10===n.charCodeAt(u+1)&&++u;case 10:e=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!e&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}(n);if(0!==e)for(var r=1;r<t.length;r++)t[r]=t[r].slice(e);for(var i=0;i<t.length&&Bn(t[i]);)++i;for(var o=t.length;o>i&&Bn(t[o-1]);)--o;return t.slice(i,o).join("\n")}function Bn(n){for(var t=0;t<n.length;++t)if(" "!==n[t]&&"\t"!==n[t])return!1;return!0}var Jn=function(){function n(n){var t=new Pn(xn.SOF,0,0,0,0,null);this.source=n,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=n.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var n=this.token;if(n.kind!==xn.EOF)do{var t;n=null!==(t=n.next)&&void 0!==t?t:n.next=Hn(this,n)}while(n.kind===xn.COMMENT);return n},n}();function Gn(n){return isNaN(n)?xn.EOF:n<127?JSON.stringify(String.fromCharCode(n)):'"\\u'.concat(("00"+n.toString(16).toUpperCase()).slice(-4),'"')}function Hn(n,t){for(var e=n.source,r=e.body,i=r.length,o=t.end;o<i;){var u=r.charCodeAt(o),s=n.line,a=1+o-n.lineStart;switch(u){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++n.line,n.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++n.line,n.lineStart=o;continue;case 33:return new Pn(xn.BANG,o,o+1,s,a,t);case 35:return Yn(e,o,s,a,t);case 36:return new Pn(xn.DOLLAR,o,o+1,s,a,t);case 38:return new Pn(xn.AMP,o,o+1,s,a,t);case 40:return new Pn(xn.PAREN_L,o,o+1,s,a,t);case 41:return new Pn(xn.PAREN_R,o,o+1,s,a,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new Pn(xn.SPREAD,o,o+3,s,a,t);break;case 58:return new Pn(xn.COLON,o,o+1,s,a,t);case 61:return new Pn(xn.EQUALS,o,o+1,s,a,t);case 64:return new Pn(xn.AT,o,o+1,s,a,t);case 91:return new Pn(xn.BRACKET_L,o,o+1,s,a,t);case 93:return new Pn(xn.BRACKET_R,o,o+1,s,a,t);case 123:return new Pn(xn.BRACE_L,o,o+1,s,a,t);case 124:return new Pn(xn.PIPE,o,o+1,s,a,t);case 125:return new Pn(xn.BRACE_R,o,o+1,s,a,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?Kn(e,o,s,a,t,n):Xn(e,o,s,a,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Qn(e,o,u,s,a,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 tt(e,o,s,a,t)}throw jn(e,o,Wn(u))}return new Pn(xn.EOF,i,i,n.line,1+o-n.lineStart,t)}function Wn(n){return n<32&&9!==n&&10!==n&&13!==n?"Cannot contain the invalid character ".concat(Gn(n),"."):39===n?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(Gn(n),".")}function Yn(n,t,e,r,i){var o,u=n.body,s=t;do{o=u.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new Pn(xn.COMMENT,t,s,e,r,i,u.slice(t+1,s))}function Qn(n,t,e,r,i,o){var u=n.body,s=e,a=t,c=!1;if(45===s&&(s=u.charCodeAt(++a)),48===s){if((s=u.charCodeAt(++a))>=48&&s<=57)throw jn(n,a,"Invalid number, unexpected digit after 0: ".concat(Gn(s),"."))}else a=zn(n,a,s),s=u.charCodeAt(a);if(46===s&&(c=!0,s=u.charCodeAt(++a),a=zn(n,a,s),s=u.charCodeAt(a)),69!==s&&101!==s||(c=!0,43!==(s=u.charCodeAt(++a))&&45!==s||(s=u.charCodeAt(++a)),a=zn(n,a,s),s=u.charCodeAt(a)),46===s||function(n){return 95===n||n>=65&&n<=90||n>=97&&n<=122}(s))throw jn(n,a,"Invalid number, expected digit but got: ".concat(Gn(s),"."));return new Pn(c?xn.FLOAT:xn.INT,t,a,r,i,o,u.slice(t,a))}function zn(n,t,e){var r=n.body,i=t,o=e;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw jn(n,i,"Invalid number, expected digit but got: ".concat(Gn(o),"."))}function Xn(n,t,e,r,i){for(var o=n.body,u=t+1,s=u,a=0,c="";u<o.length&&!isNaN(a=o.charCodeAt(u))&&10!==a&&13!==a;){if(34===a)return c+=o.slice(s,u),new Pn(xn.STRING,t,u+1,e,r,i,c);if(a<32&&9!==a)throw jn(n,u,"Invalid character within String: ".concat(Gn(a),"."));if(++u,92===a){switch(c+=o.slice(s,u-1),a=o.charCodeAt(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 f=Zn(o.charCodeAt(u+1),o.charCodeAt(u+2),o.charCodeAt(u+3),o.charCodeAt(u+4));if(f<0){var l=o.slice(u+1,u+5);throw jn(n,u,"Invalid character escape sequence: \\u".concat(l,"."))}c+=String.fromCharCode(f),u+=4;break;default:throw jn(n,u,"Invalid character escape sequence: \\".concat(String.fromCharCode(a),"."))}s=++u}}throw jn(n,u,"Unterminated string.")}function Kn(n,t,e,r,i,o){for(var u=n.body,s=t+3,a=s,c=0,f="";s<u.length&&!isNaN(c=u.charCodeAt(s));){if(34===c&&34===u.charCodeAt(s+1)&&34===u.charCodeAt(s+2))return f+=u.slice(a,s),new Pn(xn.BLOCK_STRING,t,s+3,e,r,i,Ln(f));if(c<32&&9!==c&&10!==c&&13!==c)throw jn(n,s,"Invalid character within String: ".concat(Gn(c),"."));10===c?(++s,++o.line,o.lineStart=s):13===c?(10===u.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===c&&34===u.charCodeAt(s+1)&&34===u.charCodeAt(s+2)&&34===u.charCodeAt(s+3)?(f+=u.slice(a,s)+'"""',a=s+=4):++s}throw jn(n,s,"Unterminated string.")}function Zn(n,t,e,r){return nt(n)<<12|nt(t)<<8|nt(e)<<4|nt(r)}function nt(n){return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:-1}function tt(n,t,e,r,i){for(var o=n.body,u=o.length,s=t+1,a=0;s!==u&&!isNaN(a=o.charCodeAt(s))&&(95===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122);)++s;return new Pn(xn.NAME,t,s,e,r,i,o.slice(t,s))}function et(n,t){return new rt(n,t).parseDocument()}var rt=function(){function n(n,t){var e=function(n){return n instanceof Un}(n)?n:new Un(n);this._lexer=new Jn(e),this._options=t}var t=n.prototype;return t.parseName=function(){var n=this.expectToken(xn.NAME);return{kind:Fn.NAME,value:n.value,loc:this.loc(n)}},t.parseDocument=function(){var n=this._lexer.token;return{kind:Fn.DOCUMENT,definitions:this.many(xn.SOF,this.parseDefinition,xn.EOF),loc:this.loc(n)}},t.parseDefinition=function(){if(this.peek(xn.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(xn.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var n=this._lexer.token;if(this.peek(xn.BRACE_L))return{kind:Fn.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var t,e=this.parseOperationType();return this.peek(xn.NAME)&&(t=this.parseName()),{kind:Fn.OPERATION_DEFINITION,operation:e,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseOperationType=function(){var n=this.expectToken(xn.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(n)},t.parseVariableDefinitions=function(){return this.optionalMany(xn.PAREN_L,this.parseVariableDefinition,xn.PAREN_R)},t.parseVariableDefinition=function(){var n=this._lexer.token;return{kind:Fn.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(xn.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(xn.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(n)}},t.parseVariable=function(){var n=this._lexer.token;return this.expectToken(xn.DOLLAR),{kind:Fn.VARIABLE,name:this.parseName(),loc:this.loc(n)}},t.parseSelectionSet=function(){var n=this._lexer.token;return{kind:Fn.SELECTION_SET,selections:this.many(xn.BRACE_L,this.parseSelection,xn.BRACE_R),loc:this.loc(n)}},t.parseSelection=function(){return this.peek(xn.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var n,t,e=this._lexer.token,r=this.parseName();return this.expectOptionalToken(xn.COLON)?(n=r,t=this.parseName()):t=r,{kind:Fn.FIELD,alias:n,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(xn.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(e)}},t.parseArguments=function(n){return this.optionalMany(xn.PAREN_L,n?this.parseConstArgument:this.parseArgument,xn.PAREN_R)},t.parseArgument=function(){var n=this._lexer.token,t=this.parseName();return this.expectToken(xn.COLON),{kind:Fn.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(n)}},t.parseConstArgument=function(){var n=this._lexer.token;return{kind:Fn.ARGUMENT,name:this.parseName(),value:(this.expectToken(xn.COLON),this.parseValueLiteral(!0)),loc:this.loc(n)}},t.parseFragment=function(){var n=this._lexer.token;this.expectToken(xn.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(xn.NAME)?{kind:Fn.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(n)}:{kind:Fn.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseFragmentDefinition=function(){var n,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(n=this._options)||void 0===n?void 0:n.experimentalFragmentVariables)?{kind:Fn.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:Fn.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(n){var t=this._lexer.token;switch(t.kind){case xn.BRACKET_L:return this.parseList(n);case xn.BRACE_L:return this.parseObject(n);case xn.INT:return this._lexer.advance(),{kind:Fn.INT,value:t.value,loc:this.loc(t)};case xn.FLOAT:return this._lexer.advance(),{kind:Fn.FLOAT,value:t.value,loc:this.loc(t)};case xn.STRING:case xn.BLOCK_STRING:return this.parseStringLiteral();case xn.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:Fn.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:Fn.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:Fn.NULL,loc:this.loc(t)};default:return{kind:Fn.ENUM,value:t.value,loc:this.loc(t)}}case xn.DOLLAR:if(!n)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var n=this._lexer.token;return this._lexer.advance(),{kind:Fn.STRING,value:n.value,block:n.kind===xn.BLOCK_STRING,loc:this.loc(n)}},t.parseList=function(n){var t=this,e=this._lexer.token;return{kind:Fn.LIST,values:this.any(xn.BRACKET_L,(function(){return t.parseValueLiteral(n)}),xn.BRACKET_R),loc:this.loc(e)}},t.parseObject=function(n){var t=this,e=this._lexer.token;return{kind:Fn.OBJECT,fields:this.any(xn.BRACE_L,(function(){return t.parseObjectField(n)}),xn.BRACE_R),loc:this.loc(e)}},t.parseObjectField=function(n){var t=this._lexer.token,e=this.parseName();return this.expectToken(xn.COLON),{kind:Fn.OBJECT_FIELD,name:e,value:this.parseValueLiteral(n),loc:this.loc(t)}},t.parseDirectives=function(n){for(var t=[];this.peek(xn.AT);)t.push(this.parseDirective(n));return t},t.parseDirective=function(n){var t=this._lexer.token;return this.expectToken(xn.AT),{kind:Fn.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n),loc:this.loc(t)}},t.parseTypeReference=function(){var n,t=this._lexer.token;return this.expectOptionalToken(xn.BRACKET_L)?(n=this.parseTypeReference(),this.expectToken(xn.BRACKET_R),n={kind:Fn.LIST_TYPE,type:n,loc:this.loc(t)}):n=this.parseNamedType(),this.expectOptionalToken(xn.BANG)?{kind:Fn.NON_NULL_TYPE,type:n,loc:this.loc(t)}:n},t.parseNamedType=function(){var n=this._lexer.token;return{kind:Fn.NAMED_TYPE,name:this.parseName(),loc:this.loc(n)}},t.parseTypeSystemDefinition=function(){var n=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(n.kind===xn.NAME)switch(n.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(n)},t.peekDescription=function(){return this.peek(xn.STRING)||this.peek(xn.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var e=this.parseDirectives(!0),r=this.many(xn.BRACE_L,this.parseOperationTypeDefinition,xn.BRACE_R);return{kind:Fn.SCHEMA_DEFINITION,description:t,directives:e,operationTypes:r,loc:this.loc(n)}},t.parseOperationTypeDefinition=function(){var n=this._lexer.token,t=this.parseOperationType();this.expectToken(xn.COLON);var e=this.parseNamedType();return{kind:Fn.OPERATION_TYPE_DEFINITION,operation:t,type:e,loc:this.loc(n)}},t.parseScalarTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var e=this.parseName(),r=this.parseDirectives(!0);return{kind:Fn.SCALAR_TYPE_DEFINITION,description:t,name:e,directives:r,loc:this.loc(n)}},t.parseObjectTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Fn.OBJECT_TYPE_DEFINITION,description:t,name:e,interfaces:r,directives:i,fields:o,loc:this.loc(n)}},t.parseImplementsInterfaces=function(){var n;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(n=this._options)||void 0===n?void 0:n.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(xn.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(xn.AMP)||this.peek(xn.NAME));return t}return this.delimitedMany(xn.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var n;return!0===(null===(n=this._options)||void 0===n?void 0:n.allowLegacySDLEmptyFields)&&this.peek(xn.BRACE_L)&&this._lexer.lookahead().kind===xn.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(xn.BRACE_L,this.parseFieldDefinition,xn.BRACE_R)},t.parseFieldDefinition=function(){var n=this._lexer.token,t=this.parseDescription(),e=this.parseName(),r=this.parseArgumentDefs();this.expectToken(xn.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:Fn.FIELD_DEFINITION,description:t,name:e,arguments:r,type:i,directives:o,loc:this.loc(n)}},t.parseArgumentDefs=function(){return this.optionalMany(xn.PAREN_L,this.parseInputValueDef,xn.PAREN_R)},t.parseInputValueDef=function(){var n=this._lexer.token,t=this.parseDescription(),e=this.parseName();this.expectToken(xn.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(xn.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:Fn.INPUT_VALUE_DEFINITION,description:t,name:e,type:i,defaultValue:r,directives:o,loc:this.loc(n)}},t.parseInterfaceTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Fn.INTERFACE_TYPE_DEFINITION,description:t,name:e,interfaces:r,directives:i,fields:o,loc:this.loc(n)}},t.parseUnionTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var e=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:Fn.UNION_TYPE_DEFINITION,description:t,name:e,directives:r,types:i,loc:this.loc(n)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(xn.EQUALS)?this.delimitedMany(xn.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var e=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:Fn.ENUM_TYPE_DEFINITION,description:t,name:e,directives:r,values:i,loc:this.loc(n)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(xn.BRACE_L,this.parseEnumValueDefinition,xn.BRACE_R)},t.parseEnumValueDefinition=function(){var n=this._lexer.token,t=this.parseDescription(),e=this.parseName(),r=this.parseDirectives(!0);return{kind:Fn.ENUM_VALUE_DEFINITION,description:t,name:e,directives:r,loc:this.loc(n)}},t.parseInputObjectTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var e=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:Fn.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:e,directives:r,fields:i,loc:this.loc(n)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(xn.BRACE_L,this.parseInputValueDef,xn.BRACE_R)},t.parseTypeSystemExtension=function(){var n=this._lexer.lookahead();if(n.kind===xn.NAME)switch(n.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(n)},t.parseSchemaExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),e=this.optionalMany(xn.BRACE_L,this.parseOperationTypeDefinition,xn.BRACE_R);if(0===t.length&&0===e.length)throw this.unexpected();return{kind:Fn.SCHEMA_EXTENSION,directives:t,operationTypes:e,loc:this.loc(n)}},t.parseScalarTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),e=this.parseDirectives(!0);if(0===e.length)throw this.unexpected();return{kind:Fn.SCALAR_TYPE_EXTENSION,name:t,directives:e,loc:this.loc(n)}},t.parseObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),e=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===e.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:Fn.OBJECT_TYPE_EXTENSION,name:t,interfaces:e,directives:r,fields:i,loc:this.loc(n)}},t.parseInterfaceTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),e=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===e.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:Fn.INTERFACE_TYPE_EXTENSION,name:t,interfaces:e,directives:r,fields:i,loc:this.loc(n)}},t.parseUnionTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),e=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===e.length&&0===r.length)throw this.unexpected();return{kind:Fn.UNION_TYPE_EXTENSION,name:t,directives:e,types:r,loc:this.loc(n)}},t.parseEnumTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),e=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===e.length&&0===r.length)throw this.unexpected();return{kind:Fn.ENUM_TYPE_EXTENSION,name:t,directives:e,values:r,loc:this.loc(n)}},t.parseInputObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),e=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===e.length&&0===r.length)throw this.unexpected();return{kind:Fn.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:e,fields:r,loc:this.loc(n)}},t.parseDirectiveDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(xn.AT);var e=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:Fn.DIRECTIVE_DEFINITION,description:t,name:e,arguments:r,repeatable:i,locations:o,loc:this.loc(n)}},t.parseDirectiveLocations=function(){return this.delimitedMany(xn.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var n=this._lexer.token,t=this.parseName();if(void 0!==$n[t.value])return t;throw this.unexpected(n)},t.loc=function(n){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new An(n,this._lexer.lastToken,this._lexer.source)},t.peek=function(n){return this._lexer.token.kind===n},t.expectToken=function(n){var t=this._lexer.token;if(t.kind===n)return this._lexer.advance(),t;throw jn(this._lexer.source,t.start,"Expected ".concat(ot(n),", found ").concat(it(t),"."))},t.expectOptionalToken=function(n){var t=this._lexer.token;if(t.kind===n)return this._lexer.advance(),t},t.expectKeyword=function(n){var t=this._lexer.token;if(t.kind!==xn.NAME||t.value!==n)throw jn(this._lexer.source,t.start,'Expected "'.concat(n,'", found ').concat(it(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(n){var t=this._lexer.token;return t.kind===xn.NAME&&t.value===n&&(this._lexer.advance(),!0)},t.unexpected=function(n){var t=null!=n?n:this._lexer.token;return jn(this._lexer.source,t.start,"Unexpected ".concat(it(t),"."))},t.any=function(n,t,e){this.expectToken(n);for(var r=[];!this.expectOptionalToken(e);)r.push(t.call(this));return r},t.optionalMany=function(n,t,e){if(this.expectOptionalToken(n)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(e));return r}return[]},t.many=function(n,t,e){this.expectToken(n);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(e));return r},t.delimitedMany=function(n,t){this.expectOptionalToken(n);var e=[];do{e.push(t.call(this))}while(this.expectOptionalToken(n));return e},n}();function it(n){var t=n.value;return ot(n.kind)+(null!=t?' "'.concat(t,'"'):"")}function ot(n){return function(n){return n===xn.BANG||n===xn.DOLLAR||n===xn.AMP||n===xn.PAREN_L||n===xn.PAREN_R||n===xn.SPREAD||n===xn.COLON||n===xn.EQUALS||n===xn.AT||n===xn.BRACKET_L||n===xn.BRACKET_R||n===xn.BRACE_L||n===xn.PIPE||n===xn.BRACE_R}(n)?'"'.concat(n,'"'):n}var ut={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"]},st=Object.freeze({});function at(n,t,e){var r=n[t];if(r){if(!e&&"function"==typeof r)return r;var i=e?r.leave:r.enter;if("function"==typeof i)return i}else{var o=e?n.leave:n.enter;if(o){if("function"==typeof o)return o;var u=o[t];if("function"==typeof u)return u}}}function ct(n){return function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ut,r=void 0,i=Array.isArray(n),o=[n],u=-1,s=[],a=void 0,c=void 0,f=void 0,l=[],h=[],d=n;do{var v=++u===o.length,m=v&&0!==s.length;if(v){if(c=0===h.length?void 0:l[l.length-1],a=f,f=h.pop(),m){if(i)a=a.slice();else{for(var p={},y=0,b=Object.keys(a);y<b.length;y++){var w=b[y];p[w]=a[w]}a=p}for(var E=0,g=0;g<s.length;g++){var S=s[g][0],I=s[g][1];i&&(S-=E),i&&null===I?(a.splice(S,1),E++):a[S]=I}}u=r.index,o=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(c=f?i?u:o[u]:void 0,null==(a=f?f[c]:d))continue;f&&l.push(c)}var O,T=void 0;if(!Array.isArray(a)){if(!_n(a))throw new Error("Invalid AST Node: ".concat(Rn(a),"."));var N=at(t,a.kind,v);if(N){if((T=N.call(t,a,c,f,l,h))===st)break;if(!1===T){if(!v){l.pop();continue}}else if(void 0!==T&&(s.push([c,T]),!v)){if(!_n(T)){l.pop();continue}a=T}}}void 0===T&&m&&s.push([c,a]),v?l.pop():(r={inArray:i,index:u,keys:o,edits:s,prev:r},o=(i=Array.isArray(a))?a:null!==(O=e[a.kind])&&void 0!==O?O:[],u=-1,s=[],f&&h.push(f),f=a)}while(void 0!==r);return 0!==s.length&&(d=s[s.length-1][1]),d}(n,{leave:ft})}var ft={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return ht(n.definitions,"\n\n")+"\n"},OperationDefinition:function(n){var t=n.operation,e=n.name,r=vt("(",ht(n.variableDefinitions,", "),")"),i=ht(n.directives," "),o=n.selectionSet;return e||i||r||"query"!==t?ht([t,ht([e,r]),i,o]," "):o},VariableDefinition:function(n){var t=n.directives;return n.variable+": "+n.type+vt(" = ",n.defaultValue)+vt(" ",ht(t," "))},SelectionSet:function(n){return dt(n.selections)},Field:function(n){var t=n.name,e=n.arguments,r=n.directives,i=n.selectionSet,o=vt("",n.alias,": ")+t,u=o+vt("(",ht(e,", "),")");return u.length>80&&(u=o+vt("(\n",mt(ht(e,"\n")),"\n)")),ht([u,ht(r," "),i]," ")},Argument:function(n){return n.name+": "+n.value},FragmentSpread:function(n){return"..."+n.name+vt(" ",ht(n.directives," "))},InlineFragment:function(n){var t=n.directives,e=n.selectionSet;return ht(["...",vt("on ",n.typeCondition),ht(t," "),e]," ")},FragmentDefinition:function(n){var t=n.typeCondition,e=n.variableDefinitions,r=n.directives,i=n.selectionSet;return"fragment ".concat(n.name).concat(vt("(",ht(e,", "),")")," ")+"on ".concat(t," ").concat(vt("",ht(r," ")," "))+i},IntValue:function(n){return n.value},FloatValue:function(n){return n.value},StringValue:function(n,t){var e=n.value;return n.block?function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===n.indexOf("\n"),i=" "===n[0]||"\t"===n[0],o='"'===n[n.length-1],u="\\"===n[n.length-1],s=!r||o||u||e,a="";return!s||r&&i||(a+="\n"+t),a+=t?n.replace(/\n/g,"\n"+t):n,s&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}(e,"description"===t?"":" "):JSON.stringify(e)},BooleanValue:function(n){return n.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(n){return n.value},ListValue:function(n){return"["+ht(n.values,", ")+"]"},ObjectValue:function(n){return"{"+ht(n.fields,", ")+"}"},ObjectField:function(n){return n.name+": "+n.value},Directive:function(n){return"@"+n.name+vt("(",ht(n.arguments,", "),")")},NamedType:function(n){return n.name},ListType:function(n){return"["+n.type+"]"},NonNullType:function(n){return n.type+"!"},SchemaDefinition:lt((function(n){var t=n.operationTypes;return ht(["schema",ht(n.directives," "),dt(t)]," ")})),OperationTypeDefinition:function(n){return n.operation+": "+n.type},ScalarTypeDefinition:lt((function(n){return ht(["scalar",n.name,ht(n.directives," ")]," ")})),ObjectTypeDefinition:lt((function(n){var t=n.directives,e=n.fields;return ht(["type",n.name,vt("implements ",ht(n.interfaces," & ")),ht(t," "),dt(e)]," ")})),FieldDefinition:lt((function(n){var t=n.arguments,e=n.type,r=n.directives;return n.name+(yt(t)?vt("(\n",mt(ht(t,"\n")),"\n)"):vt("(",ht(t,", "),")"))+": "+e+vt(" ",ht(r," "))})),InputValueDefinition:lt((function(n){var t=n.directives;return ht([n.name+": "+n.type,vt("= ",n.defaultValue),ht(t," ")]," ")})),InterfaceTypeDefinition:lt((function(n){var t=n.directives,e=n.fields;return ht(["interface",n.name,vt("implements ",ht(n.interfaces," & ")),ht(t," "),dt(e)]," ")})),UnionTypeDefinition:lt((function(n){var t=n.types;return ht(["union",n.name,ht(n.directives," "),t&&0!==t.length?"= "+ht(t," | "):""]," ")})),EnumTypeDefinition:lt((function(n){var t=n.values;return ht(["enum",n.name,ht(n.directives," "),dt(t)]," ")})),EnumValueDefinition:lt((function(n){return ht([n.name,ht(n.directives," ")]," ")})),InputObjectTypeDefinition:lt((function(n){var t=n.fields;return ht(["input",n.name,ht(n.directives," "),dt(t)]," ")})),DirectiveDefinition:lt((function(n){var t=n.arguments,e=n.repeatable,r=n.locations;return"directive @"+n.name+(yt(t)?vt("(\n",mt(ht(t,"\n")),"\n)"):vt("(",ht(t,", "),")"))+(e?" repeatable":"")+" on "+ht(r," | ")})),SchemaExtension:function(n){var t=n.operationTypes;return ht(["extend schema",ht(n.directives," "),dt(t)]," ")},ScalarTypeExtension:function(n){return ht(["extend scalar",n.name,ht(n.directives," ")]," ")},ObjectTypeExtension:function(n){var t=n.directives,e=n.fields;return ht(["extend type",n.name,vt("implements ",ht(n.interfaces," & ")),ht(t," "),dt(e)]," ")},InterfaceTypeExtension:function(n){var t=n.directives,e=n.fields;return ht(["extend interface",n.name,vt("implements ",ht(n.interfaces," & ")),ht(t," "),dt(e)]," ")},UnionTypeExtension:function(n){var t=n.types;return ht(["extend union",n.name,ht(n.directives," "),t&&0!==t.length?"= "+ht(t," | "):""]," ")},EnumTypeExtension:function(n){var t=n.values;return ht(["extend enum",n.name,ht(n.directives," "),dt(t)]," ")},InputObjectTypeExtension:function(n){var t=n.fields;return ht(["extend input",n.name,ht(n.directives," "),dt(t)]," ")}};function lt(n){return function(t){return ht([t.description,n(t)],"\n")}}function ht(n){var t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==n?void 0:n.filter((function(n){return n})).join(e))&&void 0!==t?t:""}function dt(n){return vt("{\n",mt(ht(n,"\n")),"\n}")}function vt(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?n+t+e:""}function mt(n){return vt(" ",n.replace(/\n/g,"\n "))}function pt(n){return-1!==n.indexOf("\n")}function yt(n){return null!=n&&n.some(pt)}function bt(n){this.message=n}(bt.prototype=new Error).name="InvalidCharacterError";var wt="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(n){var t=String(n).replace(/=+$/,"");if(t.length%4==1)throw new bt("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,r,i=0,o=0,u="";r=t.charAt(o++);~r&&(e=i%4?64*e+r:r,i++%4)?u+=String.fromCharCode(255&e>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return u};function Et(n){this.message=n}function gt(n,t){if("string"!=typeof n)throw new Et("Invalid token specified");var e=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(n){var t=n.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(n){return decodeURIComponent(wt(n).replace(/(.)/g,(function(n,t){var e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(t)}catch(n){return wt(t)}}(n.split(".")[e]))}catch(n){throw new Et("Invalid token specified: "+n.message)}}function St(n,t,e,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:e(r),u=t.get(o);return void 0===u&&(u=n.call(this,r),t.set(o,u)),u}function It(n,t,e){var r=Array.prototype.slice.call(arguments,3),i=e(r),o=t.get(i);return void 0===o&&(o=n.apply(this,r),t.set(i,o)),o}function Ot(n,t,e,r,i){return e.bind(t,n,r,i)}function Tt(n,t){return Ot(n,this,1===n.length?St:It,t.cache.create(),t.serializer)}function Nt(){return JSON.stringify(arguments)}function jt(){this.cache=Object.create(null)}(Et.prototype=new Error).name="InvalidTokenError",jt.prototype.has=function(n){return n in this.cache},jt.prototype.get=function(n){return this.cache[n]},jt.prototype.set=function(n,t){this.cache[n]=t};var Ft={create:function(){return new jt}},Ct=function(n,t){return(t&&t.strategy?t.strategy:Tt)(n,{cache:t&&t.cache?t.cache:Ft,serializer:t&&t.serializer?t.serializer:Nt})};Ct.strategies={variadic:function(n,t){return Ot(n,this,It,t.cache.create(),t.serializer)},monadic:function(n,t){return Ot(n,this,St,t.cache.create(),t.serializer)}};var Dt=r((function(n,t){var e=i&&i.__assign||function(){return(e=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},r=i&&i.__spreadArrays||function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),i=0;for(t=0;t<e;t++)for(var o=arguments[t],u=0,s=o.length;u<s;u++,i++)r[i]=o[u];return r};function o(n,t){return"Variable"===n.kind?e(e({},n),{name:e(e({},n.name),{value:t(n.name.value)})}):"ObjectValue"===n.kind?e(e({},n),{fields:n.fields.map((function(n){return e(e({},n),{value:o(n.value,t)})}))}):"ListValue"===n.kind?e(e({},n),{values:n.values.map((function(n){return o(n,t)}))}):n}function u(n,t){return e(e({},n),{value:o(n.value,t)})}function s(n,t){var r;return e(e({},n),{arguments:null===(r=n.arguments)||void 0===r?void 0:r.map((function(n){return u(n,t)}))})}function a(n,t){var r;return e(e({},n),{variable:e(e({},n.variable),{name:e(e({},n.variable.name),{value:t(n.variable.name.value)})}),directives:null===(r=n.directives)||void 0===r?void 0:r.map((function(n){return s(n,t)}))})}function c(n,t){return e(e({},n),{selections:n.selections.map((function(n){var r,i,o;switch(n.kind){case"Field":return e(e({},n),{arguments:null===(r=n.arguments)||void 0===r?void 0:r.map((function(n){return u(n,t)})),selectionSet:n.selectionSet?c(n.selectionSet,t):void 0});case"FragmentSpread":return e(e({},n),{directives:null===(i=n.directives)||void 0===i?void 0:i.map((function(n){return s(n,t)}))});case"InlineFragment":return e(e({},n),{directives:null===(o=n.directives)||void 0===o?void 0:o.map((function(n){return s(n,t)})),selectionSet:c(n.selectionSet,t)})}}))})}function f(n,t,r){var i,o;return e(e({},n),{variableDefinitions:null===(i=n.variableDefinitions)||void 0===i?void 0:i.map((function(n){return a(n,t)})),directives:null===(o=n.directives)||void 0===o?void 0:o.map((function(n){return s(n,t)})),selectionSet:c(e(e({},n.selectionSet),{selections:n.selectionSet.selections.map((function(n){var t,i;switch(n.kind){case"Field":return e(e({},n),{alias:e(e({},n.name),{value:r(null!==(i=null===(t=n.alias)||void 0===t?void 0:t.value)&&void 0!==i?i:n.name.value)})});default:return n}}))}),t)})}Object.defineProperty(t,"__esModule",{value:!0}),t.renameVariables=t.renameVariablesAndTopLevelFields=t.renameVariablesAndTopLevelFieldsOnOpDef=t.renameSelectionSetArguments=t.renameVariableDefinition=t.renameDirectiveArguments=t.renameArgument=t.renameValue=t.defaultRenameFn=void 0,t.defaultRenameFn=function(n,t){return n+"_"+t},t.renameValue=o,t.renameArgument=u,t.renameDirectiveArguments=s,t.renameVariableDefinition=a,t.renameSelectionSetArguments=c,t.renameVariablesAndTopLevelFieldsOnOpDef=f,t.renameVariablesAndTopLevelFields=function(n,t,i){return e(e({},n),{definitions:r(n.definitions.filter((function(n){return"OperationDefinition"!==n.kind})),n.definitions.filter((function(n){return"OperationDefinition"===n.kind})).map((function(n){return f(n,t,i)})))})},t.renameVariables=function(n,t){return Object.keys(n).reduce((function(r,i){var o;return e(e({},r),((o={})[t(i)]=n[i],o))}),{})}}));const At=o(r((function(n,t){var e,r=i&&i.__extends||(e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)},function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=i&&i.__assign||function(){return(o=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},u=i&&i.__spreadArrays||function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),i=0;for(t=0;t<e;t++)for(var o=arguments[t],u=0,s=o.length;u<s;u++,i++)r[i]=o[u];return r};Object.defineProperty(t,"__esModule",{value:!0});var s={kind:"Document",definitions:[]},a=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r(t,n),t}(Error),c=function(){function n(n,t,e){this.operationName=n,this.document=t,this.variables=e}return n.prototype.add=function(t,e){var r=this,i=this.document.definitions.concat(t.definitions).filter((function(n){return"OperationDefinition"===n.kind}));if(!i.length)throw new a("Expected at least one OperationDefinition, but found none.");i.forEach((function(n){var t,e,r=i.filter((function(t){return t!==n}));r.forEach((function(t){var e,r;if(t.operation!==n.operation)throw new a("expected all operations to be of the smae type, but "+(null===(e=t.name)||void 0===e?void 0:e.value)+" is "+t.operation+" and "+(null===(r=n.name)||void 0===r?void 0:r.value)+" is "+n.operation)})),null===(t=n.selectionSet.selections)||void 0===t||t.filter((function(n){return"Field"===n.kind})).forEach((function(t){r.forEach((function(e){var r;return null===(r=e.selectionSet.selections)||void 0===r?void 0:r.filter((function(n){return"Field"===n.kind})).forEach((function(r){var i,o,u,s;if(((null===(i=t.alias)||void 0===i?void 0:i.value)||t.name.value)===((null===(o=r.alias)||void 0===o?void 0:o.value)||r.name.value))throw new a("duplicate field definition "+r.name.value+" for oprations "+(null===(u=n.name)||void 0===u?void 0:u.value)+" and "+(null===(s=e.name)||void 0===s?void 0:s.value))}))}))})),null===(e=n.variableDefinitions)||void 0===e||e.forEach((function(t){r.forEach((function(e){var r;return null===(r=e.variableDefinitions)||void 0===r?void 0:r.forEach((function(r){var i,o;if(t.variable.name.value===r.variable.name.value)throw new a("duplicate variable definition "+r.variable.name.value+" for oprations "+(null===(i=n.name)||void 0===i?void 0:i.value)+" and "+(null===(o=e.name)||void 0===o?void 0:o.value))}))}))}))}));for(var s=r.variables&&e?o(o({},r.variables),e):e||r.variables,c=[{kind:"OperationDefinition",directives:i.flatMap((function(n){return n.directives||[]})),name:{kind:"Name",value:this.operationName},operation:i[0].operation,selectionSet:{kind:"SelectionSet",selections:i.flatMap((function(n){return n.selectionSet.selections}))},variableDefinitions:i.flatMap((function(n){return n.variableDefinitions||[]}))}],f=new Set,l=0,h=this.document.definitions.concat(t.definitions);l<h.length;l++){var d=h[l];if("OperationDefinition"!==d.kind){if("FragmentDefinition"===d.kind){if(f.has(d.name.value))continue;f.add(d.name.value)}c=u([d],c)}}return new n(this.operationName,{kind:"Document",definitions:c},s)},n.prototype.addN=function(n,t,e,r){return void 0===e&&(e=Dt.defaultRenameFn),void 0===r&&(r=Dt.defaultRenameFn),t.length?t.reduce((function(t,i,o){var u=Dt.renameVariablesAndTopLevelFields(n,(function(n){return e(n,o)}),(function(n){return r(n,o)})),s=Dt.renameVariables(i,(function(n){return e(n,o)}));return t.add(u,s)}),this):this},n}();t.default=function(n){return{operationName:n,add:function(n,t){return new c(this.operationName,n,t)},addN:function(n,t,e,r){return new c(this.operationName,s).addN(n,t,e,r)}}}})));var Pt=r((function(n,t){var e="undefined"!=typeof self?self:i,r=function(){function n(){this.fetch=!1,this.DOMException=e.DOMException}return n.prototype=e,new n}();!function(n){!function(t){var e="URLSearchParams"in n,r="Symbol"in n&&"iterator"in Symbol,i="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(n){return!1}}(),o="FormData"in n,u="ArrayBuffer"in n;if(u)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(n){return n&&s.indexOf(Object.prototype.toString.call(n))>-1};function c(n){if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new TypeError("Invalid character in header field name");return n.toLowerCase()}function f(n){return"string"!=typeof n&&(n=String(n)),n}function l(n){var t={next:function(){var t=n.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function h(n){this.map={},n instanceof h?n.forEach((function(n,t){this.append(t,n)}),this):Array.isArray(n)?n.forEach((function(n){this.append(n[0],n[1])}),this):n&&Object.getOwnPropertyNames(n).forEach((function(t){this.append(t,n[t])}),this)}function d(n){if(n.bodyUsed)return Promise.reject(new TypeError("Already read"));n.bodyUsed=!0}function v(n){return new Promise((function(t,e){n.onload=function(){t(n.result)},n.onerror=function(){e(n.error)}}))}function m(n){var t=new FileReader,e=v(t);return t.readAsArrayBuffer(n),e}function p(n){if(n.slice)return n.slice(0);var t=new Uint8Array(n.byteLength);return t.set(new Uint8Array(n)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(n){var t;this._bodyInit=n,n?"string"==typeof n?this._bodyText=n:i&&Blob.prototype.isPrototypeOf(n)?this._bodyBlob=n:o&&FormData.prototype.isPrototypeOf(n)?this._bodyFormData=n:e&&URLSearchParams.prototype.isPrototypeOf(n)?this._bodyText=n.toString():u&&i&&(t=n)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=p(n.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(n)||a(n))?this._bodyArrayBuffer=p(n):this._bodyText=n=Object.prototype.toString.call(n):this._bodyText="",this.headers.get("content-type")||("string"==typeof n?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(n)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var n=d(this);if(n)return n;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var n,t,e,r=d(this);if(r)return r;if(this._bodyBlob)return n=this._bodyBlob,e=v(t=new FileReader),t.readAsText(n),e;if(this._bodyArrayBuffer)return Promise.resolve(function(n){for(var t=new Uint8Array(n),e=new Array(t.length),r=0;r<t.length;r++)e[r]=String.fromCharCode(t[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(n,t){n=c(n),t=f(t);var e=this.map[n];this.map[n]=e?e+", "+t:t},h.prototype.delete=function(n){delete this.map[c(n)]},h.prototype.get=function(n){return n=c(n),this.has(n)?this.map[n]:null},h.prototype.has=function(n){return this.map.hasOwnProperty(c(n))},h.prototype.set=function(n,t){this.map[c(n)]=f(t)},h.prototype.forEach=function(n,t){for(var e in this.map)this.map.hasOwnProperty(e)&&n.call(t,this.map[e],e,this)},h.prototype.keys=function(){var n=[];return this.forEach((function(t,e){n.push(e)})),l(n)},h.prototype.values=function(){var n=[];return this.forEach((function(t){n.push(t)})),l(n)},h.prototype.entries=function(){var n=[];return this.forEach((function(t,e){n.push([e,t])})),l(n)},r&&(h.prototype[Symbol.iterator]=h.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(n,t){var e,r,i=(t=t||{}).body;if(n instanceof w){if(n.bodyUsed)throw new TypeError("Already read");this.url=n.url,this.credentials=n.credentials,t.headers||(this.headers=new h(n.headers)),this.method=n.method,this.mode=n.mode,this.signal=n.signal,i||null==n._bodyInit||(i=n._bodyInit,n.bodyUsed=!0)}else this.url=String(n);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),b.indexOf(r)>-1?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function E(n){var t=new FormData;return n.trim().split("&").forEach((function(n){if(n){var e=n.split("="),r=e.shift().replace(/\+/g," "),i=e.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function g(n,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(n)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},y.call(w.prototype),y.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},g.error=function(){var n=new g(null,{status:0,statusText:""});return n.type="error",n};var S=[301,302,303,307,308];g.redirect=function(n,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:n}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(n){t.DOMException=function(n,t){this.message=n,this.name=t;var e=Error(n);this.stack=e.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function I(n,e){return new Promise((function(r,o){var u=new w(n,e);if(u.signal&&u.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function a(){s.abort()}s.onload=function(){var n,t,e={status:s.status,statusText:s.statusText,headers:(n=s.getAllResponseHeaders()||"",t=new h,n.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(n){var e=n.split(":"),r=e.shift().trim();if(r){var i=e.join(":").trim();t.append(r,i)}})),t)};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL"),r(new g("response"in s?s.response:s.responseText,e))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(u.method,u.url,!0),"include"===u.credentials?s.withCredentials=!0:"omit"===u.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),u.headers.forEach((function(n,t){s.setRequestHeader(t,n)})),u.signal&&(u.signal.addEventListener("abort",a),s.onreadystatechange=function(){4===s.readyState&&u.signal.removeEventListener("abort",a)}),s.send(void 0===u._bodyInit?null:u._bodyInit)}))}I.polyfill=!0,n.fetch||(n.fetch=I,n.Headers=h,n.Request=w,n.Response=g),t.Headers=h,t.Request=w,t.Response=g,t.fetch=I,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,n.exports=t})),_t=r((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=e})),xt=r((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return o(n,[])};var e,r=(e=_t)&&e.__esModule?e:{default:e};function i(n){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(n,t){switch(i(n)){case"string":return JSON.stringify(n);case"function":return n.name?"[function ".concat(n.name,"]"):"[function]";case"object":return null===n?"null":function(n,t){if(-1!==t.indexOf(n))return"[Circular]";var e=[].concat(t,[n]),i=function(n){var t=n[String(r.default)];return"function"==typeof t?t:"function"==typeof n.inspect?n.inspect:void 0}(n);if(void 0!==i){var u=i.call(n);if(u!==n)return"string"==typeof u?u:o(u,e)}else if(Array.isArray(n))return function(n,t){if(0===n.length)return"[]";if(t.length>2)return"[Array]";for(var e=Math.min(10,n.length),r=n.length-e,i=[],u=0;u<e;++u)i.push(o(n[u],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(n,e);return function(n,t){var e=Object.keys(n);return 0===e.length?"{}":t.length>2?"["+function(n){var t=Object.prototype.toString.call(n).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof n.constructor){var e=n.constructor.name;if("string"==typeof e&&""!==e)return e}return t}(n)+"]":"{ "+e.map((function(e){return e+": "+o(n[e],t)})).join(", ")+" }"}(n,e)}(n,t);default:return String(n)}}})),kt=r((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n,t){if(!Boolean(n))throw new Error(null!=t?t:"Unexpected invariant triggered.")}})),Rt=r((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var t=n.prototype.toJSON;"function"==typeof t||(0,e.default)(0),n.prototype.inspect=t,r.default&&(n.prototype[r.default]=t)};var e=i(kt),r=i(_t);function i(n){return n&&n.__esModule?n:{default:n}}})),qt=r((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=function(n){return null!=n&&"string"==typeof n.kind},t.Token=t.Location=void 0;var e,r=(e=Rt)&&e.__esModule?e:{default:e},i=function(){function n(n,t,e){this.start=n.start,this.end=t.end,this.startToken=n,this.endToken=t,this.source=e}return n.prototype.toJSON=function(){return{start:this.start,end:this.end}},n}();t.Location=i,(0,r.default)(i);var o=function(){function n(n,t,e,r,i,o,u){this.kind=n,this.start=t,this.end=e,this.line=r,this.column=i,this.value=u,this.prev=o,this.next=null}return n.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},n}();t.Token=o,(0,r.default)(o)})),Mt=r((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,s=void 0,a=Array.isArray(n),c=[n],f=-1,l=[],h=void 0,d=void 0,v=void 0,m=[],p=[],y=n;do{var b=++f===c.length,w=b&&0!==l.length;if(b){if(d=0===p.length?void 0:m[m.length-1],h=v,v=p.pop(),w){if(a)h=h.slice();else{for(var E={},g=0,S=Object.keys(h);g<S.length;g++){var I=S[g];E[I]=h[I]}h=E}for(var O=0,T=0;T<l.length;T++){var N=l[T][0],j=l[T][1];a&&(N-=O),a&&null===j?(h.splice(N,1),O++):h[N]=j}}f=s.index,c=s.keys,l=s.edits,a=s.inArray,s=s.prev}else{if(d=v?a?f:c[f]:void 0,null==(h=v?v[d]:y))continue;v&&m.push(d)}var F,C=void 0;if(!Array.isArray(h)){if(!(0,qt.isNode)(h))throw new Error("Invalid AST Node: ".concat((0,r.default)(h),"."));var D=u(t,h.kind,b);if(D){if((C=D.call(t,h,d,v,m,p))===o)break;if(!1===C){if(!b){m.pop();continue}}else if(void 0!==C&&(l.push([d,C]),!b)){if(!(0,qt.isNode)(C)){m.pop();continue}h=C}}}void 0===C&&w&&l.push([d,h]),b?m.pop():(s={inArray:a,index:f,keys:c,edits:l,prev:s},c=(a=Array.isArray(h))?h:null!==(F=e[h.kind])&&void 0!==F?F:[],f=-1,l=[],v&&p.push(v),v=h)}while(void 0!==s);return 0!==l.length&&(y=l[l.length-1][1]),y},t.visitInParallel=function(n){var t=new Array(n.length);return{enter:function(e){for(var r=0;r<n.length;r++)if(null==t[r]){var i=u(n[r],e.kind,!1);if(i){var s=i.apply(n[r],arguments);if(!1===s)t[r]=e;else if(s===o)t[r]=o;else if(void 0!==s)return s}}},leave:function(e){for(var r=0;r<n.length;r++)if(null==t[r]){var i=u(n[r],e.kind,!0);if(i){var s=i.apply(n[r],arguments);if(s===o)t[r]=o;else if(void 0!==s&&!1!==s)return s}}else t[r]===e&&(t[r]=null)}}},t.getVisitFn=u,t.BREAK=t.QueryDocumentKeys=void 0;var e,r=(e=xt)&&e.__esModule?e:{default:e},i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=i;var o=Object.freeze({});function u(n,t,e){var r=n[t];if(r){if(!e&&"function"==typeof r)return r;var i=e?r.leave:r.enter;if("function"==typeof i)return i}else{var o=e?n.leave:n.enter;if(o){if("function"==typeof o)return o;var u=o[t];if("function"==typeof u)return u}}}t.BREAK=o})),Vt=r((function(n,t){function e(n){for(var t=0;t<n.length;++t)if(" "!==n[t]&&"\t"!==n[t])return!1;return!0}function r(n){for(var t,e=!0,r=!0,i=0,o=null,u=0;u<n.length;++u)switch(n.charCodeAt(u)){case 13:10===n.charCodeAt(u+1)&&++u;case 10:e=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!e&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringValue=function(n){var t=n.split(/\r\n|[\n\r]/g),i=r(n);if(0!==i)for(var o=1;o<t.length;o++)t[o]=t[o].slice(i);for(var u=0;u<t.length&&e(t[u]);)++u;for(var s=t.length;s>u&&e(t[s-1]);)--s;return t.slice(u,s).join("\n")},t.getBlockStringIndentation=r,t.printBlockString=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===n.indexOf("\n"),i=" "===n[0]||"\t"===n[0],o='"'===n[n.length-1],u="\\"===n[n.length-1],s=!r||o||u||e,a="";return!s||r&&i||(a+="\n"+t),a+=t?n.replace(/\n/g,"\n"+t):n,s&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}})),Ut=r((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(n){return(0,Mt.visit)(n,{leave:e})};var e={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return i(n.definitions,"\n\n")+"\n"},OperationDefinition:function(n){var t=n.operation,e=n.name,r=u("(",i(n.variableDefinitions,", "),")"),o=i(n.directives," "),s=n.selectionSet;return e||o||r||"query"!==t?i([t,i([e,r]),o,s]," "):s},VariableDefinition:function(n){var t=n.directives;return n.variable+": "+n.type+u(" = ",n.defaultValue)+u(" ",i(t," "))},SelectionSet:function(n){return o(n.selections)},Field:function(n){var t=n.name,e=n.arguments,r=n.directives,o=n.selectionSet,a=u("",n.alias,": ")+t,c=a+u("(",i(e,", "),")");return c.length>80&&(c=a+u("(\n",s(i(e,"\n")),"\n)")),i([c,i(r," "),o]," ")},Argument:function(n){return n.name+": "+n.value},FragmentSpread:function(n){return"..."+n.name+u(" ",i(n.directives," "))},InlineFragment:function(n){var t=n.directives,e=n.selectionSet;return i(["...",u("on ",n.typeCondition),i(t," "),e]," ")},FragmentDefinition:function(n){var t=n.typeCondition,e=n.variableDefinitions,r=n.directives,o=n.selectionSet;return"fragment ".concat(n.name).concat(u("(",i(e,", "),")")," ")+"on ".concat(t," ").concat(u("",i(r," ")," "))+o},IntValue:function(n){return n.value},FloatValue:function(n){return n.value},StringValue:function(n,t){var e=n.value;return n.block?(0,Vt.printBlockString)(e,"description"===t?"":" "):JSON.stringify(e)},BooleanValue:function(n){return n.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(n){return n.value},ListValue:function(n){return"["+i(n.values,", ")+"]"},ObjectValue:function(n){return"{"+i(n.fields,", ")+"}"},ObjectField:function(n){return n.name+": "+n.value},Directive:function(n){return"@"+n.name+u("(",i(n.arguments,", "),")")},NamedType:function(n){return n.name},ListType:function(n){return"["+n.type+"]"},NonNullType:function(n){return n.type+"!"},SchemaDefinition:r((function(n){var t=n.operationTypes;return i(["schema",i(n.directives," "),o(t)]," ")})),OperationTypeDefinition:function(n){return n.operation+": "+n.type},ScalarTypeDefinition:r((function(n){return i(["scalar",n.name,i(n.directives," ")]," ")})),ObjectTypeDefinition:r((function(n){var t=n.directives,e=n.fields;return i(["type",n.name,u("implements ",i(n.interfaces," & ")),i(t," "),o(e)]," ")})),FieldDefinition:r((function(n){var t=n.arguments,e=n.type,r=n.directives;return n.name+(c(t)?u("(\n",s(i(t,"\n")),"\n)"):u("(",i(t,", "),")"))+": "+e+u(" ",i(r," "))})),InputValueDefinition:r((function(n){var t=n.directives;return i([n.name+": "+n.type,u("= ",n.defaultValue),i(t," ")]," ")})),InterfaceTypeDefinition:r((function(n){var t=n.directives,e=n.fields;return i(["interface",n.name,u("implements ",i(n.interfaces," & ")),i(t," "),o(e)]," ")})),UnionTypeDefinition:r((function(n){var t=n.types;return i(["union",n.name,i(n.directives," "),t&&0!==t.length?"= "+i(t," | "):""]," ")})),EnumTypeDefinition:r((function(n){var t=n.values;return i(["enum",n.name,i(n.directives," "),o(t)]," ")})),EnumValueDefinition:r((function(n){return i([n.name,i(n.directives," ")]," ")})),InputObjectTypeDefinition:r((function(n){var t=n.fields;return i(["input",n.name,i(n.directives," "),o(t)]," ")})),DirectiveDefinition:r((function(n){var t=n.arguments,e=n.repeatable,r=n.locations;return"directive @"+n.name+(c(t)?u("(\n",s(i(t,"\n")),"\n)"):u("(",i(t,", "),")"))+(e?" repeatable":"")+" on "+i(r," | ")})),SchemaExtension:function(n){var t=n.operationTypes;return i(["extend schema",i(n.directives," "),o(t)]," ")},ScalarTypeExtension:function(n){return i(["extend scalar",n.name,i(n.directives," ")]," ")},ObjectTypeExtension:function(n){var t=n.directives,e=n.fields;return i(["extend type",n.name,u("implements ",i(n.interfaces," & ")),i(t," "),o(e)]," ")},InterfaceTypeExtension:function(n){var t=n.directives,e=n.fields;return i(["extend interface",n.name,u("implements ",i(n.interfaces," & ")),i(t," "),o(e)]," ")},UnionTypeExtension:function(n){var t=n.types;return i(["extend union",n.name,i(n.directives," "),t&&0!==t.length?"= "+i(t," | "):""]," ")},EnumTypeExtension:function(n){var t=n.values;return i(["extend enum",n.name,i(n.directives," "),o(t)]," ")},InputObjectTypeExtension:function(n){var t=n.fields;return i(["extend input",n.name,i(n.directives," "),o(t)]," ")}};function r(n){return function(t){return i([t.description,n(t)],"\n")}}function i(n){var t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==n?void 0:n.filter((function(n){return n})).join(e))&&void 0!==t?t:""}function o(n){return u("{\n",s(i(n,"\n")),"\n}")}function u(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?n+t+e:""}function s(n){return u(" ",n.replace(/\n/g,"\n "))}function a(n){return-1!==n.indexOf("\n")}function c(n){return null!=n&&n.some(a)}})),$t=function(n){var t=n.name,e=n.type;this.uri=n.uri,this.name=t,this.type=e},Lt=function(n){return"undefined"!=typeof File&&n instanceof File||"undefined"!=typeof Blob&&n instanceof Blob||n instanceof $t},Bt=function n(t,e,r){var i;void 0===e&&(e=""),void 0===r&&(r=Lt);var o=new Map;function u(n,t){var e=o.get(t);e?e.push.apply(e,n):o.set(t,n)}if(r(t))i=null,u([e],t);else{var s=e?e+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)i=Array.prototype.map.call(t,(function(n,t){return u([""+s+t],n),null}));else if(Array.isArray(t))i=t.map((function(t,e){var i=n(t,""+s+e,r);return i.files.forEach(u),i.clone}));else if(t&&t.constructor===Object)for(var a in i={},t){var c=n(t[a],""+s+a,r);c.files.forEach(u),i[a]=c.clone}else i=t}return{clone:i,files:o}},Jt=Lt,Gt="object"==typeof self?self.FormData:window.FormData,Ht=r((function(n,t){var e=i&&i.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(Gt),o=function(n){return Jt(n)||null!==n&&"object"==typeof n&&"function"==typeof n.pipe};t.default=function(n,t){var e=Bt({query:n,variables:t},"",o),i=e.clone,u=e.files;if(0===u.size)return JSON.stringify(i);var s=new("undefined"==typeof FormData?r.default:FormData);s.append("operations",JSON.stringify(i));var a={},c=0;return u.forEach((function(n){a[++c]=n})),s.append("map",JSON.stringify(a)),c=0,u.forEach((function(n,t){s.append(""+ ++c,t)})),s}})),Wt=r((function(n,t){var e,r=i&&i.__extends||(e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])})(n,t)},function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;var o=function(n){function t(e,r){var i=this,o=t.extractMessage(e)+": "+JSON.stringify({response:e,request:r});return i=n.call(this,o)||this,Object.setPrototypeOf(i,t.prototype),i.response=e,i.request=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return r(t,n),t.extractMessage=function(n){try{return n.errors[0].message}catch(t){return"GraphQL Error (Code: "+n.status+")"}},t}(Error);t.ClientError=o})),Yt=r((function(n,t){var e=i&&i.__assign||function(){return(e=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},r=i&&i.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),o=i&&i.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=i&&i.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return o(t,n),t},s=i&&i.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(i,o){function u(n){try{a(r.next(n))}catch(n){o(n)}}function s(n){try{a(r.throw(n))}catch(n){o(n)}}function a(n){var t;n.done?i(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(u,s)}a((r=r.apply(n,t||[])).next())}))},a=i&&i.__generator||function(n,t){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((i=(i=u.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(n,u)}catch(n){o=[6,n],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},c=i&&i.__rest||function(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(n);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(e[r[i]]=n[r[i]])}return e},f=i&&i.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.gql=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var l=u(Pt),h=l,d=f(Ht),v=Wt;Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return v.ClientError}});var m=function(n){var t={};return n&&("undefined"!=typeof Headers&&n instanceof Headers||n instanceof h.Headers?t=function(n){var t={};return n.forEach((function(n,e){t[e]=n})),t}(n):Array.isArray(n)?n.forEach((function(n){t[n[0]]=n[1]})):t=n),t},p=function(){function n(n,t){this.url=n,this.options=t||{}}return n.prototype.rawRequest=function(n,t,r){return s(this,void 0,void 0,(function(){var i,o,u,s,f,h,v,p,y,w;return a(this,(function(a){switch(a.label){case 0:return o=(i=this.options).headers,s=void 0===(u=i.fetch)?l.default:u,f=c(i,["headers","fetch"]),h=d.default(n,t),[4,s(this.url,e({method:"POST",headers:e(e(e({},"string"==typeof h?{"Content-Type":"application/json"}:{}),m(o)),m(r)),body:h},f))];case 1:return[4,b(v=a.sent())];case 2:if(p=a.sent(),v.ok&&!p.errors&&p.data)return y=v.headers,w=v.status,[2,e(e({},p),{headers:y,status:w})];throw new Wt.ClientError(e(e({},"string"==typeof p?{error:p}:p),{status:v.status,headers:v.headers}),{query:n,variables:t})}}))}))},n.prototype.request=function(n,t,r){return s(this,void 0,void 0,(function(){var i,o,u,s,f,h,v,p,y;return a(this,(function(a){switch(a.label){case 0:return o=(i=this.options).headers,s=void 0===(u=i.fetch)?l.default:u,f=c(i,["headers","fetch"]),h=function(n){return"string"==typeof n?n:Ut.print(n)}(n),v=d.default(h,t),[4,s(this.url,e({method:"POST",headers:e(e(e({},"string"==typeof v?{"Content-Type":"application/json"}:{}),m(o)),m(r)),body:v},f))];case 1:return[4,b(p=a.sent())];case 2:if(y=a.sent(),p.ok&&!y.errors&&y.data)return[2,y.data];throw new Wt.ClientError(e(e({},"string"==typeof y?{error:y}:y),{status:p.status}),{query:h,variables:t})}}))}))},n.prototype.setHeaders=function(n){return this.options.headers=n,this},n.prototype.setHeader=function(n,t){var e,r=this.options.headers;return r?r[n]=t:this.options.headers=((e={})[n]=t,e),this},n}();function y(n,t,e){return s(this,void 0,void 0,(function(){return a(this,(function(){return[2,new p(n).request(t,e)]}))}))}function b(n){var t=n.headers.get("Content-Type");return t&&t.startsWith("application/json")?n.json():n.text()}t.GraphQLClient=p,t.rawRequest=function(n,t,e){return s(this,void 0,void 0,(function(){return a(this,(function(){return[2,new p(n).rawRequest(t,e)]}))}))},t.request=y,t.default=y,t.gql=function(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return n.reduce((function(n,e,r){return""+n+e+(r in t?t[r]:"")}),"")}}));function Qt(n){return"function"==typeof n}let zt=!1;const Xt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else zt&&console.log("RxJS: Back to a better error behavior. Thank you. <3");zt=n},get useDeprecatedSynchronousErrorHandling(){return zt}};function Kt(n){setTimeout((()=>{throw n}),0)}const Zt={closed:!0,next(n){},error(n){if(Xt.useDeprecatedSynchronousErrorHandling)throw n;Kt(n)},complete(){}},ne=Array.isArray||(n=>n&&"number"==typeof n.length),te=(()=>{function n(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map(((n,t)=>`${t+1}) ${n.toString()}`)).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return n.prototype=Object.create(Error.prototype),n})();class ee{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:e,_unsubscribe:r,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof ee)t.remove(this);else if(null!==t)for(let n=0;n<t.length;++n)t[n].remove(this);if(Qt(r)){e&&(this._unsubscribe=void 0);try{r.call(this)}catch(t){n=t instanceof te?re(t.errors):[t]}}if(ne(i)){let t=-1,e=i.length;for(;++t<e;){const e=i[t];if(null!==(o=e)&&"object"==typeof o)try{e.unsubscribe()}catch(t){n=n||[],t instanceof te?n=n.concat(re(t.errors)):n.push(t)}}}var o;if(n)throw new te(n)}add(n){let t=n;if(!n)return ee.EMPTY;switch(typeof n){case"function":t=new ee(n);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof ee)){const n=t;t=new ee,t._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}let{_parentOrParents:e}=t;if(null===e)t._parentOrParents=this;else if(e instanceof ee){if(e===this)return t;t._parentOrParents=[e,this]}else{if(-1!==e.indexOf(this))return t;e.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(n){const t=this._subscriptions;if(t){const e=t.indexOf(n);-1!==e&&t.splice(e,1)}}}function re(n){return n.reduce(((n,t)=>n.concat(t instanceof te?t.errors:t)),[])}ee.EMPTY=function(n){return n.closed=!0,n}(new ee);const ie="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class oe extends ee{constructor(n,t,e){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Zt;break;case 1:if(!n){this.destination=Zt;break}if("object"==typeof n){n instanceof oe?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new ue(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new ue(this,n,t,e)}}[ie](){return this}static create(n,t,e){const r=new oe(n,t,e);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class ue extends oe{constructor(n,t,e,r){let i;super(),this._parentSubscriber=n;let o=this;Qt(t)?i=t:t&&(i=t.next,e=t.error,r=t.complete,t!==Zt&&(o=Object.create(t),Qt(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=e,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Xt.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:e}=Xt;if(this._error)e&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(t.syncErrorThrowable)e?(t.syncErrorValue=n,t.syncErrorThrown=!0):Kt(n),this.unsubscribe();else{if(this.unsubscribe(),e)throw n;Kt(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const t=()=>this._complete.call(this._context);Xt.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,t){try{n.call(this._context,t)}catch(n){if(this.unsubscribe(),Xt.useDeprecatedSynchronousErrorHandling)throw n;Kt(n)}}__tryOrSetError(n,t,e){if(!Xt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,e)}catch(t){return Xt.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=t,n.syncErrorThrown=!0,!0):(Kt(t),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const se="function"==typeof Symbol&&Symbol.observable||"@@observable";function ae(n){return n}class ce{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const t=new ce;return t.source=this,t.operator=n,t}subscribe(n,t,e){const{operator:r}=this,i=function(n,t,e){if(n){if(n instanceof oe)return n;if(n[ie])return n[ie]()}return n||t||e?new oe(n,t,e):new oe(Zt)}(n,t,e);if(i.add(r?r.call(i,this.source):this.source||Xt.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),Xt.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(n){try{return this._subscribe(n)}catch(t){Xt.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=t),function(n){for(;n;){const{closed:t,destination:e,isStopped:r}=n;if(t||r)return!1;n=e&&e instanceof oe?e:null}return!0}(n)?n.error(t):console.warn(t)}}forEach(n,t){return new(t=fe(t))(((t,e)=>{let r;r=this.subscribe((t=>{try{n(t)}catch(n){e(n),r&&r.unsubscribe()}}),e,t)}))}_subscribe(n){const{source:t}=this;return t&&t.subscribe(n)}[se](){return this}pipe(...n){return 0===n.length?this:(0===(t=n).length?ae:1===t.length?t[0]:function(n){return t.reduce(((n,t)=>t(n)),n)})(this);var t}toPromise(n){return new(n=fe(n))(((n,t)=>{let e;this.subscribe((n=>e=n),(n=>t(n)),(()=>n(e)))}))}}function fe(n){if(n||(n=Promise),!n)throw new Error("no Promise impl found");return n}ce.create=n=>new ce(n);const le=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class he extends ee{constructor(n,t){super(),this.subject=n,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,t=n.observers;if(this.subject=null,!t||0===t.length||n.isStopped||n.closed)return;const e=t.indexOf(this.subscriber);-1!==e&&t.splice(e,1)}}class de extends oe{constructor(n){super(n),this.destination=n}}class ve extends ce{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ie](){return new de(this)}lift(n){const t=new me(this,this);return t.operator=n,t}next(n){if(this.closed)throw new le;if(!this.isStopped){const{observers:t}=this,e=t.length,r=t.slice();for(let t=0;t<e;t++)r[t].next(n)}}error(n){if(this.closed)throw new le;this.hasError=!0,this.thrownError=n,this.isStopped=!0;const{observers:t}=this,e=t.length,r=t.slice();for(let t=0;t<e;t++)r[t].error(n);this.observers.length=0}complete(){if(this.closed)throw new le;this.isStopped=!0;const{observers:n}=this,t=n.length,e=n.slice();for(let n=0;n<t;n++)e[n].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(n){if(this.closed)throw new le;return super._trySubscribe(n)}_subscribe(n){if(this.closed)throw new le;return this.hasError?(n.error(this.thrownError),ee.EMPTY):this.isStopped?(n.complete(),ee.EMPTY):(this.observers.push(n),new he(this,n))}asObservable(){const n=new ce;return n.source=this,n}}ve.create=(n,t)=>new me(n,t);class me extends ve{constructor(n,t){super(),this.destination=n,this.source=t}next(n){const{destination:t}=this;t&&t.next&&t.next(n)}error(n){const{destination:t}=this;t&&t.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:t}=this;return t?this.source.subscribe(n):ee.EMPTY}}class pe extends ee{constructor(n,t){super()}schedule(n,t=0){return this}}class ye{constructor(n,t=ye.now){this.SchedulerAction=n,this.now=t}schedule(n,t=0,e){return new this.SchedulerAction(this,n).schedule(e,t)}}ye.now=()=>Date.now();class be extends ye{constructor(n,t=ye.now){super(n,(()=>be.delegate&&be.delegate!==this?be.delegate.now():t())),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,t=0,e){return be.delegate&&be.delegate!==this?be.delegate.schedule(n,t,e):super.schedule(n,t,e)}flush(n){const{actions:t}=this;if(this.active)return void t.push(n);let e;this.active=!0;do{if(e=n.execute(n.state,n.delay))break}while(n=t.shift());if(this.active=!1,e){for(;n=t.shift();)n.unsubscribe();throw e}}}function we(n){return n&&"function"==typeof n.schedule}const Ee=new be(class extends pe{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){if(this.closed)return this;this.state=n;const e=this.id,r=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(r,e,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(n,t,e=0){return setInterval(n.flush.bind(n,this),e)}recycleAsyncId(n,t,e=0){if(null!==e&&this.delay===e&&!1===this.pending)return t;clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const e=this._execute(n,t);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let e,r=!1;try{this.work(n)}catch(n){r=!0,e=!!n&&n||new Error(n)}if(r)return this.unsubscribe(),e}_unsubscribe(){const n=this.id,t=this.scheduler,e=t.actions,r=e.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&e.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null}});class ge{constructor(n,t,e,r){this.bufferTimeSpan=n,this.bufferCreationInterval=t,this.maxBufferSize=e,this.scheduler=r}call(n,t){return t.subscribe(new Ie(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class Se{constructor(){this.buffer=[]}}class Ie extends oe{constructor(n,t,e,r,i){super(n),this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=r,this.scheduler=i,this.contexts=[];const o=this.openContext();if(this.timespanOnly=null==e||e<0,this.timespanOnly)this.add(o.closeAction=i.schedule(Oe,t,{subscriber:this,context:o,bufferTimeSpan:t}));else{const n={bufferTimeSpan:t,bufferCreationInterval:e,subscriber:this,scheduler:i};this.add(o.closeAction=i.schedule(Ne,t,{subscriber:this,context:o})),this.add(i.schedule(Te,e,n))}}_next(n){const t=this.contexts,e=t.length;let r;for(let i=0;i<e;i++){const e=t[i],o=e.buffer;o.push(n),o.length==this.maxBufferSize&&(r=e)}r&&this.onBufferFull(r)}_error(n){this.contexts.length=0,super._error(n)}_complete(){const{contexts:n,destination:t}=this;for(;n.length>0;){const e=n.shift();t.next(e.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(n){this.closeContext(n);const t=n.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){n=this.openContext();const t=this.bufferTimeSpan;this.add(n.closeAction=this.scheduler.schedule(Oe,t,{subscriber:this,context:n,bufferTimeSpan:t}))}}openContext(){const n=new Se;return this.contexts.push(n),n}closeContext(n){this.destination.next(n.buffer);const t=this.contexts;(t?t.indexOf(n):-1)>=0&&t.splice(t.indexOf(n),1)}}function Oe(n){const t=n.subscriber,e=n.context;e&&t.closeContext(e),t.closed||(n.context=t.openContext(),n.context.closeAction=this.schedule(n,n.bufferTimeSpan))}function Te(n){const{bufferCreationInterval:t,bufferTimeSpan:e,subscriber:r,scheduler:i}=n,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(Ne,e,{subscriber:r,context:o})),this.schedule(n,t))}function Ne(n){const{subscriber:t,context:e}=n;t.closeContext(e)}var je=r((function(n,t){!function(n){var t=Object.getOwnPropertyNames,e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty;function i(n,t){return function(e,r,i){return n(e,r,i)&&t(e,r,i)}}function o(n){return function(t,e,r){if(!t||!e||"object"!=typeof t||"object"!=typeof e)return n(t,e,r);var i=r.cache,o=i.get(t),u=i.get(e);if(o&&u)return o===e&&u===t;i.set(t,e),i.set(e,t);var s=n(t,e,r);return i.delete(t),i.delete(e),s}}function u(n){return t(n).concat(e(n))}var s=Object.hasOwn||function(n,t){return r.call(n,t)};function a(n,t){return n||t?n===t:n===t||n!=n&&t!=t}var c="_owner",f=Object.getOwnPropertyDescriptor,l=Object.keys;function h(n,t,e){var r=n.length;if(t.length!==r)return!1;for(;r-- >0;)if(!e.equals(n[r],t[r],r,r,n,t,e))return!1;return!0}function d(n,t){return a(n.getTime(),t.getTime())}function v(n,t,e){if(n.size!==t.size)return!1;for(var r,i,o={},u=n.entries(),s=0;(r=u.next())&&!r.done;){for(var a=t.entries(),c=!1,f=0;(i=a.next())&&!i.done;){var l=r.value,h=l[0],d=l[1],v=i.value,m=v[0],p=v[1];c||o[f]||!(c=e.equals(h,m,s,f,n,t,e)&&e.equals(d,p,h,m,n,t,e))||(o[f]=!0),f++}if(!c)return!1;s++}return!0}function m(n,t,e){var r,i=l(n),o=i.length;if(l(t).length!==o)return!1;for(;o-- >0;){if((r=i[o])===c&&(n.$$typeof||t.$$typeof)&&n.$$typeof!==t.$$typeof)return!1;if(!s(t,r)||!e.equals(n[r],t[r],r,r,n,t,e))return!1}return!0}function p(n,t,e){var r,i,o,a=u(n),l=a.length;if(u(t).length!==l)return!1;for(;l-- >0;){if((r=a[l])===c&&(n.$$typeof||t.$$typeof)&&n.$$typeof!==t.$$typeof)return!1;if(!s(t,r))return!1;if(!e.equals(n[r],t[r],r,r,n,t,e))return!1;if(i=f(n,r),o=f(t,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function y(n,t){return a(n.valueOf(),t.valueOf())}function b(n,t){return n.source===t.source&&n.flags===t.flags}function w(n,t,e){if(n.size!==t.size)return!1;for(var r,i,o={},u=n.values();(r=u.next())&&!r.done;){for(var s=t.values(),a=!1,c=0;(i=s.next())&&!i.done;)a||o[c]||!(a=e.equals(r.value,i.value,r.value,i.value,n,t,e))||(o[c]=!0),c++;if(!a)return!1}return!0}function E(n,t){var e=n.length;if(t.length!==e)return!1;for(;e-- >0;)if(n[e]!==t[e])return!1;return!0}var g=Array.isArray,S="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,I=Object.assign,O=Object.prototype.toString.call.bind(Object.prototype.toString);var T=_(),N=_({strict:!0}),j=_({circular:!0}),F=_({circular:!0,strict:!0}),C=_({createInternalComparator:function(){return a}}),D=_({strict:!0,createInternalComparator:function(){return a}}),A=_({circular:!0,createInternalComparator:function(){return a}}),P=_({circular:!0,createInternalComparator:function(){return a},strict:!0});function _(n){void 0===n&&(n={});var t,e=n.circular,r=void 0!==e&&e,u=n.createInternalComparator,s=n.createState,a=n.strict,c=void 0!==a&&a,f=function(n){var t=n.areArraysEqual,e=n.areDatesEqual,r=n.areMapsEqual,i=n.areObjectsEqual,o=n.arePrimitiveWrappersEqual,u=n.areRegExpsEqual,s=n.areSetsEqual,a=n.areTypedArraysEqual;return function(n,c,f){if(n===c)return!0;if(null==n||null==c||"object"!=typeof n||"object"!=typeof c)return n!=n&&c!=c;var l=n.constructor;if(l!==c.constructor)return!1;if(l===Object)return i(n,c,f);if(g(n))return t(n,c,f);if(null!=S&&S(n))return a(n,c,f);if(l===Date)return e(n,c,f);if(l===RegExp)return u(n,c,f);if(l===Map)return r(n,c,f);if(l===Set)return s(n,c,f);var h=O(n);return"[object Date]"===h?e(n,c,f):"[object RegExp]"===h?u(n,c,f):"[object Map]"===h?r(n,c,f):"[object Set]"===h?s(n,c,f):"[object Object]"===h?"function"!=typeof n.then&&"function"!=typeof c.then&&i(n,c,f):"[object Arguments]"===h?i(n,c,f):("[object Boolean]"===h||"[object Number]"===h||"[object String]"===h)&&o(n,c,f)}}(function(n){var t=n.circular,e=n.createCustomConfig,r=n.strict,u={areArraysEqual:r?p:h,areDatesEqual:d,areMapsEqual:r?i(v,p):v,areObjectsEqual:r?p:m,arePrimitiveWrappersEqual:y,areRegExpsEqual:b,areSetsEqual:r?i(w,p):w,areTypedArraysEqual:r?p:E};if(e&&(u=I({},u,e(u))),t){var s=o(u.areArraysEqual),a=o(u.areMapsEqual),c=o(u.areObjectsEqual),f=o(u.areSetsEqual);u=I({},u,{areArraysEqual:s,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:f})}return u}(n));return function(n){var t=n.circular,e=n.comparator,r=n.createState,i=n.equals,o=n.strict;if(r)return function(n,u){var s=r(),a=s.cache,c=void 0===a?t?new WeakMap:void 0:a;return e(n,u,{cache:c,equals:i,meta:s.meta,strict:o})};if(t)return function(n,t){return e(n,t,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var u={cache:void 0,equals:i,meta:void 0,strict:o};return function(n,t){return e(n,t,u)}}({circular:r,comparator:f,createState:s,equals:u?u(f):(t=f,function(n,e,r,i,o,u,s){return t(n,e,s)}),strict:c})}n.circularDeepEqual=j,n.circularShallowEqual=A,n.createCustomEqual=_,n.deepEqual=T,n.sameValueZeroEqual=a,n.shallowEqual=C,n.strictCircularDeepEqual=F,n.strictCircularShallowEqual=P,n.strictDeepEqual=N,n.strictShallowEqual=D}(t)})),Fe={current:void 0};function Ce(){if(void 0===Fe.current)throw new Error("no implementation of useHost provided");return Fe.current()}function De(n){if(!n)throw new Error("Must supply an implementation");if("function"!=typeof n)throw new Error("implementation must be a function");Fe.current=n}function Ae(){z();var n=Ce();return s(n,"sq:locale")}function Pe(){an();var n=Ce();return s(n,"sq:program-id")}function _e(){var n;return null==(n=xe())?void 0:n.jwt}function xe(){tn();var n=Ce(),t=s(n,"sq:user-identity"),e=en(null==t?void 0:t.jwt);if(M()||!t||e)return t;on(void 0)}var ke=V,Re=$,qe=function(){var n;const t=q();switch(t.type){case"SquatchJS2":return(null==(n=t.widgetIdent)?void 0:n.engagementMedium)||"EMBED";case"SquatchAndroid":case"SquatchIOS":case"SquatchPortal":case"SquatchAdmin":case"None":return"EMBED"}};function Me(){return(Me=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n}).apply(this,arguments)}function Ve(n,t){return(Ve=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function Ue(n,t){return t||(t=n.slice(0)),n.raw=t,n}function $e(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function Le(n,t){var e;if("undefined"==typeof Symbol||null==n[Symbol.iterator]){if(Array.isArray(n)||(e=function(n,t){if(n){if("string"==typeof n)return $e(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?$e(n,t):void 0}}(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[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(e=n[Symbol.iterator]()).next.bind(e)}var Be=function(){return(Be=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},Je=new Map,Ge=new Map,He=!0,We=!1;function Ye(n){return n.replace(/[\s,]+/g," ").trim()}function Qe(n){var t,e,r,i=Ye(n);if(!Je.has(i)){var o=et(n,{experimentalFragmentVariables:We});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");Je.set(i,function(n){var t=new Set(n.definitions);t.forEach((function(n){n.loc&&delete n.loc,Object.keys(n).forEach((function(e){var r=n[e];r&&"object"==typeof r&&t.add(r)}))}));var e=n.loc;return e&&(delete e.startToken,delete e.endToken),n}((t=o,e=new Set,r=[],t.definitions.forEach((function(n){if("FragmentDefinition"===n.kind){var t=n.name.value,i=Ye((u=n.loc).source.body.substring(u.start,u.end)),o=Ge.get(t);o&&!o.has(i)?He&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||Ge.set(t,o=new Set),o.add(i),e.has(i)||(e.add(i),r.push(n))}else r.push(n);var u})),Be(Be({},t),{definitions:r}))))}return Je.get(i)}function ze(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];"string"==typeof n&&(n=[n]);var r=n[0];return t.forEach((function(t,e){r+=t&&"Document"===t.kind?t.loc.source.body:t,r+=n[e+1]})),Qe(r)}var Xe,Ke=ze;(Xe=ze||(ze={})).gql=Ke,Xe.resetCaches=function(){Je.clear(),Ge.clear()},Xe.disableFragmentWarnings=function(){He=!1},Xe.enableExperimentalFragmentVariables=function(){We=!0},Xe.disableExperimentalFragmentVariables=function(){We=!1},ze.default=ze;var Ze=ze;function nr(n,t){try{var e=n()}catch(n){return t(n)}return e&&e.then?e.then(void 0,t):e}var tr=function(n){var t,e;function r(t,e){var r;(r=n.call(this,t,e)||this).subject=new ve;var i=new ve;return r.subject.pipe(function(n){let t=arguments.length,e=Ee;we(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],t--);let r=null;t>=2&&(r=arguments[1]);let i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new ge(n,r,i,e))}}(200,void 0,10)).subscribe((function(n){try{if(!n.length)return Promise.resolve();for(var t,e=or(n),o=e.mergedQuery,u=e.mergedVariables,s=e.mergedQueryAddedEvents,a=Le(e.unmergedQueryAddedEvents);!(t=a()).done;)i.next(t.value);return s.length?Promise.resolve(nr((function(){return Promise.resolve(r.superRequest(o,u)).then((function(n){ar(n,s)}))}),(function(n){if(n instanceof Wt.ClientError){var t=function(){var t=n.response,e=t.data,r=t.errors;if(!e)return{v:fr(s,n)};for(var i,o=Object.keys(e),u=[].concat(s),a=function(){var t=i.value,e=void 0;t.path.find((function(r,i,s){if(o.includes(r)){var a=ir(r),c=u.findIndex((function(n){return n.id===a}));if(-1===c)return!1;o.splice(i,1),e=u.splice(c,1)[0];var f=ur(n.response.data,e);s[i]=rr(s[i],a);var l=e.query,h=e.variables,d=Me({},n.response,{errors:[t],data:f,path:s}),v=new Wt.ClientError(d,{query:"string"!=typeof l?ct(l):l,variables:h});return cr(e,v),!0}return!1}))},c=Le(r);!(i=c()).done;)a();ar(e,u)}();if("object"==typeof t)return t.v}else fr(s,n)}))):Promise.resolve()}catch(n){return Promise.reject(n)}})),i.subscribe((function(n){try{var t=nr((function(){return Promise.resolve(r.superRequest(n.query,n.variables)).then((function(t){sr(t,n)}))}),(function(t){cr(n,t)}));return Promise.resolve(t&&t.then?t.then((function(){})):void 0)}catch(n){return Promise.reject(n)}})),r}e=n,(t=r).prototype=Object.create(e.prototype),t.prototype.constructor=t,Ve(t,e);var i=r.prototype;return i.superRequest=function(t,e){return n.prototype.request.call(this,t,e)},i.request=function(n,t,e){var r=this;return new Promise((function(i,o){var u={query:n,variables:t,id:er(),options:e,resolve:i,reject:o};r.subject.next(u)}))},r}(Yt.GraphQLClient),er=function(){return((n=21)=>{let t="",e=crypto.getRandomValues(new Uint8Array(n));for(;n--;){let r=63&e[n];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t})().replace(/[-_]/g,"")},rr=function(n,t){return n.replace("_"+t,"")},ir=function(n){var t=n.split("_");return t[t.length-1]},or=function(n){var t=[],e=[],r=n.reduce((function(n,r){var i=r.query,o=r.variables,u=r.id,s=r.options;if(null==s||!s.batch)return e.push(r),n;try{var a="string"==typeof i?et(i):i,c=a.definitions.find((function(n){return"FragmentDefinition"===n.kind})),f="string"==typeof i?i:ct(i),l=/@/.test(f);if(c||l)return e.push(r),n;var h=function(n){return function(n,t){return n+"_"+t}(n,u)};return n=n.addN(a,[o],h,h),t.push(r),n}catch(t){return e.push(r),n}}),At("BatchedQuery")),i=r.document,o=r.variables;return{mergedQuery:i&&ct(i),mergedVariables:o,mergedQueryAddedEvents:t,unmergedQueryAddedEvents:e}},ur=function(n,t){if(!n)return n;var e=Object.keys(n),r=t.id;return e.reduce((function(t,e){var i;return e.endsWith(r)&&(t=Me({},t,((i={})[rr(e,r)]=n[e],i))),t}),{})},sr=function(n,t){(0,t.resolve)(n)},ar=function(n,t){for(var e,r=Le(t);!(e=r()).done;){var i=e.value,o=ur(n,i);i.resolve(o)}},cr=function(n,t){(0,n.reject)(t)},fr=function(n,t){for(var e,r=Le(n);!(e=r()).done;)(0,e.value.reject)(t)},lr="sq:graphql-client",hr=Ct((function(n,t,e){return new tr(n+"/api/v1/"+t+"/graphql",{headers:{Authorization:"Bearer "+(e||"")}})}));function dr(n,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 vr(n,t,e){void 0===e&&(e={batch:!0});var r,i,o,u,a,c,l=(r=_e(),i=Re(),o=ke(),u=hr(i,o,r),a=Ce(),null!=(c=s(a,"sq:graphql-client",{attempts:0}))?c:u),h=f(dr,t),d=h[1];return[h[0],fn((function(t,r){void 0===r&&(r=!1);try{if(!l){var i=new Error("No GraphQL client found");return d({type:"errors",payload:i}),Promise.resolve(i)}return Promise.resolve(function(i,o){try{var u=(r||d({type:"loading"}),Promise.resolve(l.request(n,t,e)).then((function(n){return d({type:"data",payload:n}),n})))}catch(n){return o(n)}return u&&u.then?u.then(void 0,o):u}(0,(function(n){return d({type:"errors",payload:n}),n})))}catch(n){return Promise.reject(n)}}),[l,n,d])]}var mr,pr={loading:!1,data:void 0,errors:void 0};function yr(n){var t=vr(n,pr);return[t[1],t[0]]}var br,wr=Ze(mr||(mr=Ue(["\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 Er(){var n=yr(wr),t=n[0],e=n[1];return[function(n){try{return Promise.resolve(t(n)).then((function(n){if(!(n instanceof Error)&&n.authenticateManagedIdentityWithEmailAndPassword){var t=n.authenticateManagedIdentityWithEmailAndPassword.token,e=gt(t).user;on({jwt:t,id:e.id,accountId:e.accountId,managedIdentity:{email:n.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:n.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:n.authenticateManagedIdentityWithEmailAndPassword.sessionData}})}return n}))}catch(n){return Promise.reject(n)}},{loading:e.loading,data:e.data,errors:e.errors}]}var gr,Sr=Ze(br||(br=Ue(["\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 Ir(){var n=yr(Sr),t=n[0],e=n[1];return[function(n){try{return Promise.resolve(t(n)).then((function(n){if(!(n instanceof Error)&&n.registerManagedIdentityWithEmailAndPassword){var t=n.registerManagedIdentityWithEmailAndPassword.token,e=gt(t).user;on({jwt:t,id:e.id,accountId:e.accountId,managedIdentity:{email:n.registerManagedIdentityWithEmailAndPassword.email,emailVerified:n.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:n.registerManagedIdentityWithEmailAndPassword.sessionData}})}return n}))}catch(n){return Promise.reject(n)}},{loading:e.loading,data:e.data,errors:e.errors}]}var Or,Tr=Ze(gr||(gr=Ue(["\n mutation RegisterViaRegistrationForm($key: String!, $formData: RSJsonNode!) {\n submitForm(formSubmissionInput: { key: $key, formData: $formData }) {\n results {\n ... on FormHandlerSubmissionResult {\n result\n formHandler {\n namespace\n }\n }\n ... on FormHandlerError {\n errorCode\n error\n errorType\n formHandler {\n name\n endpointUrl\n }\n }\n }\n }\n }\n"])));function Nr(){var n=yr(Tr),t=n[0],e=n[1],r=e.loading,i=e.data,o=e.errors,u=l(null),s=u[1];return[function(n){try{return s(null),Promise.resolve(t(n)).then((function(n){var t,e,r,i;if(n instanceof Error)return n;var o=null==(t=n.submitForm)||null==(e=t.results)?void 0:e.find((function(n){var t;return"identity"===(null==n||null==(t=n.formHandler)?void 0:t.namespace)}));if(o&&null!=(r=o.result)&&null!=(i=r.results)&&i.length){var u=o.result.results[0];if(u.success){var a=u.data.token,c=gt(a).user;on({jwt:a,id:c.id,accountId:c.accountId,managedIdentity:{email:u.data.email,emailVerified:u.data.emailVerified,sessionData:u.data.sessionData}})}else s(u.message)}return n}))}catch(n){return Promise.reject(n)}},{loading:r,data:i,errors:o,formError:u[0]}]}var jr,Fr=Ze(Or||(Or=Ue(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function Cr(){var n=yr(Fr),t=n[1];return[n[0],{loading:t.loading,data:t.data,errors:t.errors}]}var Dr,Ar=Ze(jr||(jr=Ue(["\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 Pr(){var n=yr(Ar),t=n[0],e=n[1];return[function(n){try{return Promise.resolve(t(n)).then((function(n){if(!(n instanceof Error)&&n.resetManagedIdentityPassword){var t=n.resetManagedIdentityPassword.token,e=gt(t).user;on({jwt:t,id:e.id,accountId:e.accountId,managedIdentity:{email:n.resetManagedIdentityPassword.email,emailVerified:n.resetManagedIdentityPassword.emailVerified,sessionData:n.resetManagedIdentityPassword.sessionData}})}return n}))}catch(n){return Promise.reject(n)}},{loading:e.loading,data:e.data,errors:e.errors}]}var _r=Ze(Dr||(Dr=Ue(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function xr(){return yr(_r)}function kr(){var n=Ce();return{refresh:fn((function(){n.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}))}),[n])}}function Rr(n){var t=n.skip,r=void 0!==t&&t,i=n.update,o=n.variables;u((function(){var n=function(){!r&&i(o,!0)};return document.addEventListener("sq:refresh",n),function(){return document.removeEventListener("sq:refresh",n)}}),function(n){var t=h(n),r=h(0);return g(n,t.current)||(t.current=n,r.current+=1),e((function(){return t.current}),[r.current])}([o,i,r]))}var qr,Mr={loading:!1,data:void 0,errors:void 0},Vr=Symbol();function Ur(n){var t=vr(n,Mr),e=t[0],r=t[1],i=h(Vr);Rr({skip:i.current===Vr,update:r,variables:i.current});var o=fn((function(n){return i.current=n,r(n)}),[r]);return[r,Me({},e,{refetch:o})]}var $r,Lr=Ze(qr||(qr=Ue(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function Br(){var n=xe(),t=Ur(Lr),e=t[0],r=t[1],i=r.refetch,o=function(t){t instanceof Error||!t.managedIdentitySession||on(Me({},n,{managedIdentity:t.managedIdentitySession}))};return[function(){try{return Promise.resolve(e({})).then((function(n){return o(n),n}))}catch(n){return Promise.reject(n)}},{loading:r.loading,data:r.data,errors:r.errors,refetch:function(){try{return Promise.resolve(i()).then((function(n){return o(n),n}))}catch(n){return Promise.reject(n)}}}]}var Jr,Gr=Ze($r||($r=Ue(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Hr(){var n=Br()[0],t=yr(Gr),e=t[0],r=t[1];return[function(t){try{return Promise.resolve(e(t)).then((function(t){var e=function(){if(!(t instanceof Error)&&t.verifyManagedIdentityEmail.success)return Promise.resolve(n()).then((function(){}))}();return e&&e.then?e.then((function(){return t})):t}))}catch(t){return Promise.reject(t)}},{loading:r.loading,data:r.data,errors:r.errors}]}var Wr,Yr=Ze(Jr||(Jr=Ue(["\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 Qr(){return yr(Yr)}var zr,Xr=Ze(Wr||(Wr=Ue(["\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 Kr(){return yr(Xr)}var Zr,ni=Ze(zr||(zr=Ue(["\n mutation authenticateManagedIdentityWithInstantAccess(\n $email: String!\n $firstName: String\n $lastName: String\n $locale: RSLocale\n $countryCode: RSCountryCode\n $cookies: String\n ) {\n authenticateManagedIdentityWithInstantAccess(\n authenticateManagedIdentityWithInstantAccessInput: {\n email: $email\n firstName: $firstName\n lastName: $lastName\n locale: $locale\n countryCode: $countryCode\n cookies: $cookies\n }\n ) {\n email\n emailVerified\n sessionData\n token\n }\n }\n"])));function ti(){var n=Pe(),t=R(),e=yr(ni),r=e[0],i=e[1];return[function(e){try{return Promise.resolve(r(e)).then((function(e){var r=function(){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithInstantAccess)return Promise.resolve(function(n,t){try{return Promise.resolve(function(e,r){try{var i=Promise.resolve(fetch($()+"/api/v1/"+V()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+t},body:JSON.stringify({query:"\n query checkReferralFraudStatus($programId: ID) {\n viewer {\n ... on User {\n id\n instantAccessRewards(filter: { programId_eq: $programId }) {\n data {\n id\n pendingReasons\n cancelledReason\n }\n }\n }\n }\n }\n",variables:{programId:n}})})).then((function(n){if(!n.ok)throw new Error("Failed to fetch locale");return Promise.resolve(n.json()).then((function(n){var t;if(n.errors)throw new Error(JSON.stringify(n.errors,null,2));var e=(null==(t=n.data.viewer.instantAccessRewards)?void 0:t.data)||[];return e.some((function(n){return"SUSPECTED_FRAUD"===n.cancelledReason}))?"DENIED":e.some((function(n){var t;return null==(t=n.pendingReasons)?void 0:t.includes("SUSPECTED_FRAUD")}))?"PENDING_REVIEW":"APPROVED"}))}))}catch(n){return r(n)}return i&&i.then?i.then(void 0,r):i}(0,(function(n){console.error(n)})))}catch(n){return Promise.reject(n)}}(n,e.authenticateManagedIdentityWithInstantAccess.token)).then((function(n){if("APPROVED"!==n)throw{name:"fraud_error",message:"Referral flagged as fraud."};var r=e.authenticateManagedIdentityWithInstantAccess.email;if(on({jwt:e.authenticateManagedIdentityWithInstantAccess.token,id:r,accountId:r}),"SquatchJS2"===t){var i=new CustomEvent("sq:user-registration",{bubbles:!0,detail:{userId:r,accountId:r}});document.dispatchEvent(i)}}))}();return r&&r.then?r.then((function(){return e})):e}))}catch(n){return Promise.reject(n)}},{loading:i.loading,data:i.data,errors:i.errors}]}var ei=Yt.gql(Zr||(Zr=Ue(["\n mutation authenticateManagedIdentityWithGoogle($idToken: String!) {\n authenticateManagedIdentityWithGoogle(\n authenticateManagedIdentityWithGoogleInput: { idToken: $idToken }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function ri(){var n=yr(ei),t=n[0],e=n[1];return[function(n){try{return Promise.resolve(t(n)).then((function(n){if(!(n instanceof Error)&&n.authenticateManagedIdentityWithGoogle){var t=n.authenticateManagedIdentityWithGoogle.token,e=gt(t).user;on({jwt:t,id:e.id,accountId:e.accountId,managedIdentity:{email:n.authenticateManagedIdentityWithGoogle.email,emailVerified:n.authenticateManagedIdentityWithGoogle.emailVerified,sessionData:n.authenticateManagedIdentityWithGoogle.sessionData}})}return n}))}catch(n){return Promise.reject(n)}},{loading:e.loading,data:e.data,errors:e.errors}]}function ii(){return f((function(n){return n+1}),0)}function oi(n){for(var t,e=Le(Object.getOwnPropertyNames(n));!(t=e()).done;){var r=n[t.value];r&&"object"==typeof r&&oi(r)}return Object.freeze(n)}var ui={loading:!0,data:void 0,errors:void 0};function si(n,t,e,r){var i=vr(n,ui,Me({batch:!0},r||{})),o=i[0],u=i[1],s=ii(),a=s[1];return function(n,t){var e=h();e.current&&g(t,e.current.key)||(e.current={key:t,value:n()})}((function(){!e&&u(t)}),[n,t,u,s[0],e]),Rr({skip:e,update:u,variables:t}),oi(Me({},o,{refetch:a}))}function ai(n){var t=Ce(),e=a(t,hi(n.namespace),n.initialValue),r=e[0],i=e[1];return a(t,di(n.namespace),[r,i]),[r,i]}function ci(n){var t=c(di(n)),e=c(hi(n));return t?[e,t[1]]:[void 0,void 0]}function fi(n){var t=c(di(n));if(t)return t[1]}function li(n){return c(hi(n))}function hi(n){return n+"-value"}function di(n){return n+"-state"}function vi(n){var t=Ce(),e=si(n.query,n.variables||{},n.skip,Me({batch:!0},n.options||{})),r=a(t,hi(n.namespace),e),i=r[0],o=r[1];return u((function(){je.deepEqual(e,i)||o(e)}),[e,i]),e}function mi(n){return c(hi(n))||{data:null,loading:!0,refetch:function(){return console.warn("component still loading")}}}function pi(){var n=ii()[1];return u((function(){return W.listen((function(){n()}))}),[]),W.location}var yi,bi=W;function wi(n,t,e,r,i){var o;void 0===r&&(r={}),void 0===i&&(i=!1);var u=function(n){var t=l({limit:n.limit,offset:n.offset}),e=t[0],r=t[1],i=e.offset,o=e.limit,u=function(n,t){return n*t},s=function(n,t){return Math.ceil(n/t)||0};return{limit:o,setLimit:function(n){var t=s(i,n),o=u(n,t);r(Me({},e,{limit:n,offset:o}))},offset:i,setCurrentPage:function(n){var t=u(n,o);r((function(n){return Me({},n,{offset:t})}))},calculatePagination:function(n,t){var e=s(i,o),r=function(n,t){return Math.ceil(n/t)||0}(t,o),u=0===n?"0":n>1?i+1+"-"+(i+n):""+(i+1);return{currentPage:e,pageCount:r,rangeOnPage:u,pageProgress:u+" of "+t}}}}(e),s=u.limit,a=u.setLimit,c=u.setCurrentPage,f=u.calculatePagination,h=si(n,Me({limit:s,offset:u.offset},r),i),d=h.loading,v=h.errors,m=h.refetch,p=t(h.data),y=f((null==p||null==(o=p.data)?void 0:o.length)||0,(null==p?void 0:p.totalCount)||0);return{envelope:p,states:{errors:v,loading:d,limit:s,currentPage:y.currentPage,pageCount:y.pageCount,pageProgress:y.pageProgress},callbacks:{refetch:m,setLimit:a,setCurrentPage:c}}}Yt.gql(yi||(yi=Ue(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Ei=1e3,gi=6e4,Si=60*gi,Ii=24*Si,Oi=function(n,t){t=t||{};var e=typeof n;if("string"===e&&n.length>0)return function(n){if(!((n=String(n)).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(n);if(t){var e=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*e;case"weeks":case"week":case"w":return 6048e5*e;case"days":case"day":case"d":return e*Ii;case"hours":case"hour":case"hrs":case"hr":case"h":return e*Si;case"minutes":case"minute":case"mins":case"min":case"m":return e*gi;case"seconds":case"second":case"secs":case"sec":case"s":return e*Ei;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}}}(n);if("number"===e&&isFinite(n))return t.long?function(n){var t=Math.abs(n);return t>=Ii?Ti(n,t,Ii,"day"):t>=Si?Ti(n,t,Si,"hour"):t>=gi?Ti(n,t,gi,"minute"):t>=Ei?Ti(n,t,Ei,"second"):n+" ms"}(n):function(n){var t=Math.abs(n);return t>=Ii?Math.round(n/Ii)+"d":t>=Si?Math.round(n/Si)+"h":t>=gi?Math.round(n/gi)+"m":t>=Ei?Math.round(n/Ei)+"s":n+"ms"}(n);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))};function Ti(n,t,e,r){var i=t>=1.5*e;return Math.round(n/e)+" "+r+(i?"s":"")}var Ni,ji,Fi,Ci,Di,Ai=(function(n,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;const e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(n=>{"%%"!==n&&(r++,"%c"===n&&(i=r))})),t.splice(i,0,e)},t.save=function(n){try{n?t.storage.setItem("debug",n):t.storage.removeItem("debug")}catch(n){}},t.load=function(){let n;try{n=t.storage.getItem("debug")}catch(n){}return!n&&"undefined"!=typeof process&&"env"in process&&(n=process.env.DEBUG),n},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(n){}}(),t.destroy=(()=>{let n=!1;return()=>{n||(n=!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||(()=>{}),n.exports=function(n){function t(n){let r,i=null;function o(...n){if(!o.enabled)return;const e=o,i=Number(new Date);e.diff=i-(r||i),e.prev=r,e.curr=i,r=i,n[0]=t.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");let u=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";u++;const o=t.formatters[i];return"function"==typeof o&&(r=o.call(e,n[u]),n.splice(u,1),u--),r})),t.formatArgs.call(e,n),(e.log||t.log).apply(e,n)}return o.namespace=n,o.useColors=t.useColors(),o.color=t.selectColor(n),o.extend=e,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===i?t.enabled(n):i,set:n=>{i=n}}),"function"==typeof t.init&&t.init(o),o}function e(n,e){const r=t(this.namespace+(void 0===e?":":e)+n);return r.log=this.log,r}function r(n){return n.toString().substring(2,n.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(n){return n instanceof Error?n.stack||n.message:n},t.disable=function(){const n=[...t.names.map(r),...t.skips.map(r).map((n=>"-"+n))].join(",");return t.enable(""),n},t.enable=function(n){let e;t.save(n),t.names=[],t.skips=[];const r=("string"==typeof n?n:"").split(/[\s,]+/),i=r.length;for(e=0;e<i;e++)r[e]&&("-"===(n=r[e].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+n.substr(1)+"$")):t.names.push(new RegExp("^"+n+"$")))},t.enabled=function(n){if("*"===n[n.length-1])return!0;let e,r;for(e=0,r=t.skips.length;e<r;e++)if(t.skips[e].test(n))return!1;for(e=0,r=t.names.length;e<r;e++)if(t.names[e].test(n))return!0;return!1},t.humanize=Oi,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(n).forEach((e=>{t[e]=n[e]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(n){let e=0;for(let t=0;t<n.length;t++)e=(e<<5)-e+n.charCodeAt(t),e|=0;return t.colors[Math.abs(e)%t.colors.length]},t.enable(t.load()),t}(t);const{formatters:e}=n.exports;e.j=function(n){try{return JSON.stringify(n)}catch(n){return"[UnexpectedJSONParseError]: "+n.message}}}(Ni={exports:{}},Ni.exports),Ni.exports);Ai("sq:load-event"),Yt.gql(ji||(ji=Ue(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"]))),Ai("sq:useForm"),Yt.gql(Fi||(Fi=Ue(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),Yt.gql(Ci||(Ci=Ue(["\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"]))),Yt.gql(Di||(Di=Ue(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])));export{yr as $,qe as B,hr as E,li as F,_e as G,Pe as H,ai as I,xe as J,Ae as L,hi as M,Nr as O,lr as P,kr as Q,wi as R,vi as S,Pr as T,De as U,Ir as V,Ur as X,Ce as _,ke as a,Er as b,xr as c,Yt as d,Hr as e,cn as f,q as g,ri as h,M as i,bi as j,pi as k,Kr as l,fi as m,Br as n,Cr as o,Qr as p,ci as q,mi as r,on as s,fn as u,ti as v,si as w,ii as y}
|
|
1
|
+
import{d as n,s as t,u as e,c as r,a as i,e as o,f as u,h as s,y as a,i as c,j as f,k as l,m as h}from"./p-a7fc1e02.js";function d(n){this.message=n}(d.prototype=new Error).name="InvalidCharacterError";var v="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(n){var t=String(n).replace(/=+$/,"");if(t.length%4==1)throw new d("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,r,i=0,o=0,u="";r=t.charAt(o++);~r&&(e=i%4?64*e+r:r,i++%4)?u+=String.fromCharCode(255&e>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return u};function m(n){var t=n.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(n){return decodeURIComponent(v(n).replace(/(.)/g,(function(n,t){var e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(t)}catch(n){return v(t)}}function p(n){this.message=n}(p.prototype=new Error).name="InvalidTokenError";const{toString:y,hasOwnProperty:b}=Object.prototype,w=Function.prototype.toString,E=new Map;function g(n,t){try{return S(n,t)}finally{E.clear()}}function S(n,t){if(n===t)return!0;const e=y.call(n);if(e!==y.call(t))return!1;switch(e){case"[object Array]":if(n.length!==t.length)return!1;case"[object Object]":{if(N(n,t))return!0;const e=I(n),r=I(t),i=e.length;if(i!==r.length)return!1;for(let n=0;n<i;++n)if(!b.call(t,e[n]))return!1;for(let r=0;r<i;++r){const i=e[r];if(!S(n[i],t[i]))return!1}return!0}case"[object Error]":return n.name===t.name&&n.message===t.message;case"[object Number]":if(n!=n)return t!=t;case"[object Boolean]":case"[object Date]":return+n==+t;case"[object RegExp]":case"[object String]":return n==`${t}`;case"[object Map]":case"[object Set]":{if(n.size!==t.size)return!1;if(N(n,t))return!0;const r=n.entries(),i="[object Map]"===e;for(;;){const n=r.next();if(n.done)break;const[e,o]=n.value;if(!t.has(e))return!1;if(i&&!S(o,t.get(e)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":n=new Uint8Array(n),t=new Uint8Array(t);case"[object DataView]":{let e=n.byteLength;if(e===t.byteLength)for(;e--&&n[e]===t[e];);return-1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const e=w.call(n);return e===w.call(t)&&!function(n){const t=n.length-T.length;return t>=0&&n.indexOf(T,t)===t}(e)}}return!1}function I(n){return Object.keys(n).filter(O,n)}function O(n){return void 0!==this[n]}const T="{ [native code] }";function N(n,t){let e=E.get(n);if(e){if(e.has(t))return!0}else E.set(n,e=new Set);return e.add(t),!1}var j=Object.defineProperty,F=Object.defineProperties,C=Object.getOwnPropertyDescriptors,D=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,_=(n,t,e)=>t in n?j(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,x=(n,t)=>{for(var e in t||(t={}))A.call(t,e)&&_(n,e,t[e]);if(D)for(var e of D(t))P.call(t,e)&&_(n,e,t[e]);return n},k=(n,t)=>F(n,C(t));function R(){return q().type}function q(){var n,t,e;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||(null==(n=window.frameElement)?void 0:n.squatchJsApi))&&"demo"!==(null==(t=window.widgetIdent)?void 0:t.env)?{type:"SquatchJS2",api:null==(e=window.frameElement)?void 0:e.squatchJsApi,widgetIdent:window.widgetIdent}:{type:"None"}}function M(){const n=q();return"None"===n.type||"SquatchAdmin"===n.type}function V(){var n;const t=q();switch(t.type){case"SquatchAndroid":case"SquatchIOS":case"SquatchJS2":return null==(n=t.widgetIdent)?void 0:n.tenantAlias;case"SquatchAdmin":case"None":return"demo";case"SquatchPortal":return t.env.tenantAlias}}var U="https://app.referralsaasquatch.com";function $(){var n,t;const e=q();switch(e.type){case"SquatchAndroid":case"SquatchIOS":case"SquatchJS2":return(null==(n=e.widgetIdent)?void 0:n.appDomain)||U;case"SquatchPortal":return(null==(t=e.env)?void 0:t.appDomain)||U;case"SquatchAdmin":case"None":return U}}var L=(()=>{var n;try{return null==(n=null==window?void 0:window.localStorage)?void 0:n.getItem("debug")}catch(n){return!1}})();function B(n,...t){L&&console.debug(`sq:environment:${n}`,...t)}var J=(...n)=>B("history",...n);function G(n){if("string"==typeof n)return n;const t=new URL(n.pathname,window.origin);return n.search&&(t.search=n.search),n.hash&&(t.hash=n.hash),t}function H(){return window.squatchHistory=window.squatchHistory||function(){if("SquatchPortal"===R()){let n=function(n){const t=window.history[n];return function(...e){const r=t.apply(window.history,e),i=new Event(n);return window.dispatchEvent(i),r}};return window.history.pushState=n("pushState"),window.history.replaceState=n("replaceState"),new class{constructor(){this.listeners=new Set,window.addEventListener("popstate",this.notify.bind(this)),window.addEventListener("pushState",this.notify.bind(this)),window.addEventListener("replaceState",this.notify.bind(this))}listen(n){return this.listeners.add(n),()=>{this.listeners.delete(n)}}notify(){J("notifying listeners of route change",this.location),this.listeners&&this.listeners.forEach((n=>n()))}get location(){return{pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,state:window.history.state}}back(){this.go(-1)}forward(){this.go(1)}go(n){window.history.go(n)}push(n,t){const e=G(n);window.history.pushState(t,"",e)}replace(n,t){const e=G(n);window.history.replaceState(t,"",e)}}}return new class{constructor(){this.history=[{pathname:"/",search:"",hash:""}],this.index=0,this.listeners=new Set}listen(n){return this.listeners.add(n),()=>{this.listeners.delete(n)}}current(){return this.history[this.index]}get state(){return this.current().state}notify(){J("notifying listeners of route change",this.location),this.listeners.forEach((n=>n()))}get location(){return this.history[this.index]}back(){this.go(-1)}forward(){this.go(1)}go(n){this.index+=n,this.index<0&&(this.index=0),this.index>=this.history.length&&(this.index=this.history.length-1),this.notify()}push(n,t){let e;e="string"==typeof n?{pathname:n,search:this.history[this.index].search,hash:this.history[this.index].hash,state:t}:k(x({},n),{state:t}),this.index++,this.history.splice(this.index,this.history.length,e),this.notify()}replace(n,t){this.history[this.index]="string"==typeof n?{pathname:n,search:"",hash:"",state:t}:k(x({},n),{state:t}),this.notify()}}}(),window.squatchHistory}var W=new class{get location(){return H().location}listen(n){return H().listen(n)}back(){H().back()}forward(){H().forward()}go(n){H().go(n)}push(n,t){H().push(n,t)}replace(n,t){H().replace(n,t)}},Y=(...n)=>B("sq:locale",...n);function Q(n){if(n&&/^[a-z]{2}(_(?:[A-Z]{2}|[0-9]{3}))?$/.test(n))return n}function z(){var t;let e=window.squatchLocale;if(!e){Y("Creating locale context provider");const r=(null==(t=window.widgetIdent)?void 0:t.locale)??Q(navigator.language.replaceAll("-","_"));Y("initializing with locale:",r),e=new n({element:document.documentElement,initialState:r,contextName:"sq:locale"}).start(),window.squatchLocale=e}return e}var X=(...n)=>B("sq:locale",...n),K=(...n)=>B("sq:locale",...n),Z=new t({contextName:"sq:user-identity",element:(()=>{const n="__environment_context_listener";let t=document.getElementById(n);return t||(t=document.createElement("div"),t.id=n,document.documentElement.appendChild(t)),t})(),onChange:async n=>{var t;const e=z(),r=(null==(t=window.widgetIdent)?void 0:t.locale)??Q(navigator.language.replaceAll("-","_"));let i;if(n){K("User context changed, refetching locale");const n=await async function(){var n;X("Fetching locale from GraphQL for current user");try{const t=await fetch(`${$()}/api/v1/${V()}/graphql`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${null==(n=un())?void 0:n.jwt}`},body:JSON.stringify({query:"\n query {\n viewer {\n ... on User {\n locale\n }\n }\n }\n"})});if(!t.ok)throw new Error("Failed to fetch locale");const e=await t.json();if(e.errors)throw new Error(JSON.stringify(e.errors,null,2));return e.data.viewer.locale||void 0}catch(n){return void X("Failed to fetch locale for current user",n.message)}}();K(`New value fetched from GraphQL [${n}]`),i=n||r}else i=r;K(`Setting locale context to [${i}]`),e.context=i}}),nn=(...n)=>B("sq:user-identity",...n);function tn(){let t=window.squatchUserIdentity;return t||(nn("Creating user context provider"),t=new n({element:document.documentElement,initialState:rn(),contextName:"sq:user-identity"}).start(),window.squatchUserIdentity=t,K("Starting user context listener for locale updates"),Z.start()),t}function en(n){if(n)try{const t=function(n,t){if("string"!=typeof n)throw new p("Invalid token specified");var e=!0===(t=t||{}).header?0:1;try{return JSON.parse(m(n.split(".")[e]))}catch(n){throw new p("Invalid token specified: "+n.message)}}(n),e=t.exp;let r,i,o;if(function(n){return n.sub&&/.*:.*@.*:users/.test(n.sub)}(t)){const n=t.sub.match(/(.*):(.*)@(.*):users/);(null==n?void 0:n[1])&&(i=atob(n[1])),(null==n?void 0:n[2])&&(r=atob(n[2]))}else(function(n){return n.user&&n.user.id&&n.user.accountId})(t)&&(i=t.user.accountId,r=t.user.id,o=t.user.email);return r&&i?e&&Date.now()>=1e3*e?void nn("JWT has expired"):{id:r,accountId:i,email:o,jwt:n}:void nn("No user information")}catch(n){return void nn("Invalid JWT")}}function rn(){const n=q();switch(n.type){case"SquatchIOS":case"SquatchAndroid":case"SquatchJS2":if(!n.widgetIdent)return;const{userId:t,accountId:e,token:r}=n.widgetIdent;if(!t||!e||!r)return;return{id:n.widgetIdent.userId,accountId:n.widgetIdent.accountId,email:n.widgetIdent.email,jwt:n.widgetIdent.token};case"SquatchPortal":const i=new URLSearchParams(document.location.search);if(i.has("jwt"))return en(i.get("jwt"));const o=localStorage.getItem("sq:user-identity");if(!o)return;try{const n=JSON.parse(o),t=en(n.jwt);return t?x(x({},n),t):void 0}catch(n){return}case"SquatchAdmin":case"None":return}}function on(n){const t=tn();g(t.context,n)||(nn(`Setting user context value [${JSON.stringify(n)}]`),t.context=n),n&&"SquatchPortal"===q().type?localStorage.setItem("sq:user-identity",JSON.stringify(n)):n||localStorage.removeItem("sq:user-identity")}function un(){var n;return null==(n=window.squatchUserIdentity)?void 0:n.context}var sn=(...n)=>B("sq:program-id",...n);function an(){var t;let e=window.squatchProgramId;return e||(sn("Creating program context provider"),e=new n({element:document.documentElement,initialState:(null==(t=window.widgetIdent)?void 0:t.programId)||void 0,contextName:"sq:program-id"}).start(),window.squatchProgramId=e),e}function cn(n){const t=an();t.context!==n&&(sn(`Setting program context value [${n}]`),t.context=n)}const fn=(n,t)=>e((()=>n),t);function ln(n){return(ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}var hn="function"==typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function dn(n,t){for(var e,r=/\r\n|[\n\r]/g,i=1,o=t+1;(e=r.exec(n.body))&&e.index<t;)i+=1,o=t+1-(e.index+e[0].length);return{line:i,column:o}}function vn(n,t){var e=n.locationOffset.column-1,r=pn(e)+n.body,i=t.line-1,o=t.line+(n.locationOffset.line-1),u=t.column+(1===t.line?e:0),s="".concat(n.name,":").concat(o,":").concat(u,"\n"),a=r.split(/\r\n|[\n\r]/g),c=a[i];if(c.length>120){for(var f=Math.floor(u/80),l=u%80,h=[],d=0;d<c.length;d+=80)h.push(c.slice(d,d+80));return s+mn([["".concat(o),h[0]]].concat(h.slice(1,f+1).map((function(n){return["",n]})),[[" ",pn(l-1)+"^"],["",h[f+1]]]))}return s+mn([["".concat(o-1),a[i-1]],["".concat(o),c],["",pn(u-1)+"^"],["".concat(o+1),a[i+1]]])}function mn(n){var t=n.filter((function(n){return void 0!==n[1]})),e=Math.max.apply(Math,t.map((function(n){return n[0].length})));return t.map((function(n){var t,r=n[1];return pn(e-(t=n[0]).length)+t+(r?" | "+r:" |")})).join("\n")}function pn(n){return Array(n+1).join(" ")}function yn(n){return(yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function bn(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function wn(n,t){return!t||"object"!==yn(t)&&"function"!=typeof t?En(n):t}function En(n){if(void 0===n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function gn(n){var t="function"==typeof Map?new Map:void 0;return(gn=function(n){if(null===n||!function(n){return-1!==Function.toString.call(n).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(n))return t.get(n);t.set(n,e)}function e(){return Sn(n,arguments,Tn(this).constructor)}return e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),On(e,n)})(n)}function Sn(n,t,e){return(Sn=In()?Reflect.construct:function(n,t,e){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(n,r));return e&&On(i,e.prototype),i}).apply(null,arguments)}function In(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(n){return!1}}function On(n,t){return(On=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function Tn(n){return(Tn=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)})(n)}var Nn=function(){!function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),t&&On(n,t)}(o,gn(Error));var n,t,e,r,i=(n=o,t=In(),function(){var e,r=Tn(n);if(t){var i=Tn(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return wn(this,e)});function o(n,t,e,r,u,s,a){var c,f,l,h,d;!function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),d=i.call(this,n);var v,m=Array.isArray(t)?0!==t.length?t:void 0:t?[t]:void 0,p=e;!p&&m&&(p=null===(v=m[0].loc)||void 0===v?void 0:v.source);var y,b=r;!b&&m&&(b=m.reduce((function(n,t){return t.loc&&n.push(t.loc.start),n}),[])),b&&0===b.length&&(b=void 0),r&&e?y=r.map((function(n){return dn(e,n)})):m&&(y=m.reduce((function(n,t){return t.loc&&n.push(dn(t.loc.source,t.loc.start)),n}),[]));var w,E=a;if(null==E&&null!=s){var g=s.extensions;"object"==ln(w=g)&&null!==w&&(E=g)}return Object.defineProperties(En(d),{name:{value:"GraphQLError"},message:{value:n,enumerable:!0,writable:!0},locations:{value:null!==(c=y)&&void 0!==c?c:void 0,enumerable:null!=y},path:{value:null!=u?u:void 0,enumerable:null!=u},nodes:{value:null!=m?m:void 0},source:{value:null!==(f=p)&&void 0!==f?f:void 0},positions:{value:null!==(l=b)&&void 0!==l?l:void 0},originalError:{value:s},extensions:{value:null!==(h=E)&&void 0!==h?h:void 0,enumerable:null!=E}}),null!=s&&s.stack?(Object.defineProperty(En(d),"stack",{value:s.stack,writable:!0,configurable:!0}),wn(d)):(Error.captureStackTrace?Error.captureStackTrace(En(d),o):Object.defineProperty(En(d),"stack",{value:Error().stack,writable:!0,configurable:!0}),d)}return e=o,(r=[{key:"toString",value:function(){return function(n){var t,e=n.message;if(n.nodes)for(var r=0,i=n.nodes;r<i.length;r++){var o=i[r];o.loc&&(e+="\n\n"+vn((t=o.loc).source,dn(t.source,t.start)))}else if(n.source&&n.locations)for(var u=0,s=n.locations;u<s.length;u++)e+="\n\n"+vn(n.source,s[u]);return e}(this)}},{key:hn,get:function(){return"Object"}}])&&bn(e.prototype,r),o}();function jn(n,t,e){return new Nn("Syntax Error: ".concat(e),void 0,n,[t])}var Fn=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"}),Cn="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;function Dn(n){var t=n.prototype.toJSON;"function"==typeof t||function(){if(!Boolean(0))throw new Error("Unexpected invariant triggered.")}(),n.prototype.inspect=t,Cn&&(n.prototype[Cn]=t)}var An=function(){function n(n,t,e){this.start=n.start,this.end=t.end,this.startToken=n,this.endToken=t,this.source=e}return n.prototype.toJSON=function(){return{start:this.start,end:this.end}},n}();Dn(An);var Pn=function(){function n(n,t,e,r,i,o,u){this.kind=n,this.start=t,this.end=e,this.line=r,this.column=i,this.value=u,this.prev=o,this.next=null}return n.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},n}();function _n(n){return null!=n&&"string"==typeof n.kind}Dn(Pn);var xn=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 kn(n){return(kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function Rn(n){return qn(n,[])}function qn(n,t){switch(kn(n)){case"string":return JSON.stringify(n);case"function":return n.name?"[function ".concat(n.name,"]"):"[function]";case"object":return null===n?"null":function(n,t){if(-1!==t.indexOf(n))return"[Circular]";var e=[].concat(t,[n]),r=function(n){var t=n[String(Cn)];return"function"==typeof t?t:"function"==typeof n.inspect?n.inspect:void 0}(n);if(void 0!==r){var i=r.call(n);if(i!==n)return"string"==typeof i?i:qn(i,e)}else if(Array.isArray(n))return function(n,t){if(0===n.length)return"[]";if(t.length>2)return"[Array]";for(var e=Math.min(10,n.length),r=n.length-e,i=[],o=0;o<e;++o)i.push(qn(n[o],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(n,e);return function(n,t){var e=Object.keys(n);return 0===e.length?"{}":t.length>2?"["+function(n){var t=Object.prototype.toString.call(n).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof n.constructor){var e=n.constructor.name;if("string"==typeof e&&""!==e)return e}return t}(n)+"]":"{ "+e.map((function(e){return e+": "+qn(n[e],t)})).join(", ")+" }"}(n,e)}(n,t);default:return String(n)}}function Mn(n,t){if(!Boolean(n))throw new Error(t)}function Vn(n,t){for(var e=0;e<t.length;e++){var r=t[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}var Un=function(){function n(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"==typeof n||Mn(0,"Body must be a string. Received: ".concat(Rn(n),".")),this.body=n,this.name=t,this.locationOffset=e,this.locationOffset.line>0||Mn(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||Mn(0,"column in locationOffset is 1-indexed and must be positive.")}var t,e;return t=n,(e=[{key:hn,get:function(){return"Source"}}])&&Vn(t.prototype,e),n}(),$n=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 Ln(n){var t=n.split(/\r\n|[\n\r]/g),e=function(n){for(var t,e=!0,r=!0,i=0,o=null,u=0;u<n.length;++u)switch(n.charCodeAt(u)){case 13:10===n.charCodeAt(u+1)&&++u;case 10:e=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!e&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}(n);if(0!==e)for(var r=1;r<t.length;r++)t[r]=t[r].slice(e);for(var i=0;i<t.length&&Bn(t[i]);)++i;for(var o=t.length;o>i&&Bn(t[o-1]);)--o;return t.slice(i,o).join("\n")}function Bn(n){for(var t=0;t<n.length;++t)if(" "!==n[t]&&"\t"!==n[t])return!1;return!0}var Jn=function(){function n(n){var t=new Pn(xn.SOF,0,0,0,0,null);this.source=n,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=n.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var n=this.token;if(n.kind!==xn.EOF)do{var t;n=null!==(t=n.next)&&void 0!==t?t:n.next=Hn(this,n)}while(n.kind===xn.COMMENT);return n},n}();function Gn(n){return isNaN(n)?xn.EOF:n<127?JSON.stringify(String.fromCharCode(n)):'"\\u'.concat(("00"+n.toString(16).toUpperCase()).slice(-4),'"')}function Hn(n,t){for(var e=n.source,r=e.body,i=r.length,o=t.end;o<i;){var u=r.charCodeAt(o),s=n.line,a=1+o-n.lineStart;switch(u){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++n.line,n.lineStart=o;continue;case 13:10===r.charCodeAt(o+1)?o+=2:++o,++n.line,n.lineStart=o;continue;case 33:return new Pn(xn.BANG,o,o+1,s,a,t);case 35:return Yn(e,o,s,a,t);case 36:return new Pn(xn.DOLLAR,o,o+1,s,a,t);case 38:return new Pn(xn.AMP,o,o+1,s,a,t);case 40:return new Pn(xn.PAREN_L,o,o+1,s,a,t);case 41:return new Pn(xn.PAREN_R,o,o+1,s,a,t);case 46:if(46===r.charCodeAt(o+1)&&46===r.charCodeAt(o+2))return new Pn(xn.SPREAD,o,o+3,s,a,t);break;case 58:return new Pn(xn.COLON,o,o+1,s,a,t);case 61:return new Pn(xn.EQUALS,o,o+1,s,a,t);case 64:return new Pn(xn.AT,o,o+1,s,a,t);case 91:return new Pn(xn.BRACKET_L,o,o+1,s,a,t);case 93:return new Pn(xn.BRACKET_R,o,o+1,s,a,t);case 123:return new Pn(xn.BRACE_L,o,o+1,s,a,t);case 124:return new Pn(xn.PIPE,o,o+1,s,a,t);case 125:return new Pn(xn.BRACE_R,o,o+1,s,a,t);case 34:return 34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)?Kn(e,o,s,a,t,n):Xn(e,o,s,a,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return Qn(e,o,u,s,a,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 tt(e,o,s,a,t)}throw jn(e,o,Wn(u))}return new Pn(xn.EOF,i,i,n.line,1+o-n.lineStart,t)}function Wn(n){return n<32&&9!==n&&10!==n&&13!==n?"Cannot contain the invalid character ".concat(Gn(n),"."):39===n?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(Gn(n),".")}function Yn(n,t,e,r,i){var o,u=n.body,s=t;do{o=u.charCodeAt(++s)}while(!isNaN(o)&&(o>31||9===o));return new Pn(xn.COMMENT,t,s,e,r,i,u.slice(t+1,s))}function Qn(n,t,e,r,i,o){var u=n.body,s=e,a=t,c=!1;if(45===s&&(s=u.charCodeAt(++a)),48===s){if((s=u.charCodeAt(++a))>=48&&s<=57)throw jn(n,a,"Invalid number, unexpected digit after 0: ".concat(Gn(s),"."))}else a=zn(n,a,s),s=u.charCodeAt(a);if(46===s&&(c=!0,s=u.charCodeAt(++a),a=zn(n,a,s),s=u.charCodeAt(a)),69!==s&&101!==s||(c=!0,43!==(s=u.charCodeAt(++a))&&45!==s||(s=u.charCodeAt(++a)),a=zn(n,a,s),s=u.charCodeAt(a)),46===s||function(n){return 95===n||n>=65&&n<=90||n>=97&&n<=122}(s))throw jn(n,a,"Invalid number, expected digit but got: ".concat(Gn(s),"."));return new Pn(c?xn.FLOAT:xn.INT,t,a,r,i,o,u.slice(t,a))}function zn(n,t,e){var r=n.body,i=t,o=e;if(o>=48&&o<=57){do{o=r.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw jn(n,i,"Invalid number, expected digit but got: ".concat(Gn(o),"."))}function Xn(n,t,e,r,i){for(var o=n.body,u=t+1,s=u,a=0,c="";u<o.length&&!isNaN(a=o.charCodeAt(u))&&10!==a&&13!==a;){if(34===a)return c+=o.slice(s,u),new Pn(xn.STRING,t,u+1,e,r,i,c);if(a<32&&9!==a)throw jn(n,u,"Invalid character within String: ".concat(Gn(a),"."));if(++u,92===a){switch(c+=o.slice(s,u-1),a=o.charCodeAt(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 f=Zn(o.charCodeAt(u+1),o.charCodeAt(u+2),o.charCodeAt(u+3),o.charCodeAt(u+4));if(f<0){var l=o.slice(u+1,u+5);throw jn(n,u,"Invalid character escape sequence: \\u".concat(l,"."))}c+=String.fromCharCode(f),u+=4;break;default:throw jn(n,u,"Invalid character escape sequence: \\".concat(String.fromCharCode(a),"."))}s=++u}}throw jn(n,u,"Unterminated string.")}function Kn(n,t,e,r,i,o){for(var u=n.body,s=t+3,a=s,c=0,f="";s<u.length&&!isNaN(c=u.charCodeAt(s));){if(34===c&&34===u.charCodeAt(s+1)&&34===u.charCodeAt(s+2))return f+=u.slice(a,s),new Pn(xn.BLOCK_STRING,t,s+3,e,r,i,Ln(f));if(c<32&&9!==c&&10!==c&&13!==c)throw jn(n,s,"Invalid character within String: ".concat(Gn(c),"."));10===c?(++s,++o.line,o.lineStart=s):13===c?(10===u.charCodeAt(s+1)?s+=2:++s,++o.line,o.lineStart=s):92===c&&34===u.charCodeAt(s+1)&&34===u.charCodeAt(s+2)&&34===u.charCodeAt(s+3)?(f+=u.slice(a,s)+'"""',a=s+=4):++s}throw jn(n,s,"Unterminated string.")}function Zn(n,t,e,r){return nt(n)<<12|nt(t)<<8|nt(e)<<4|nt(r)}function nt(n){return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:-1}function tt(n,t,e,r,i){for(var o=n.body,u=o.length,s=t+1,a=0;s!==u&&!isNaN(a=o.charCodeAt(s))&&(95===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122);)++s;return new Pn(xn.NAME,t,s,e,r,i,o.slice(t,s))}function et(n,t){return new rt(n,t).parseDocument()}var rt=function(){function n(n,t){var e=function(n){return n instanceof Un}(n)?n:new Un(n);this._lexer=new Jn(e),this._options=t}var t=n.prototype;return t.parseName=function(){var n=this.expectToken(xn.NAME);return{kind:Fn.NAME,value:n.value,loc:this.loc(n)}},t.parseDocument=function(){var n=this._lexer.token;return{kind:Fn.DOCUMENT,definitions:this.many(xn.SOF,this.parseDefinition,xn.EOF),loc:this.loc(n)}},t.parseDefinition=function(){if(this.peek(xn.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(xn.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var n=this._lexer.token;if(this.peek(xn.BRACE_L))return{kind:Fn.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(n)};var t,e=this.parseOperationType();return this.peek(xn.NAME)&&(t=this.parseName()),{kind:Fn.OPERATION_DEFINITION,operation:e,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseOperationType=function(){var n=this.expectToken(xn.NAME);switch(n.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(n)},t.parseVariableDefinitions=function(){return this.optionalMany(xn.PAREN_L,this.parseVariableDefinition,xn.PAREN_R)},t.parseVariableDefinition=function(){var n=this._lexer.token;return{kind:Fn.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(xn.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(xn.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(n)}},t.parseVariable=function(){var n=this._lexer.token;return this.expectToken(xn.DOLLAR),{kind:Fn.VARIABLE,name:this.parseName(),loc:this.loc(n)}},t.parseSelectionSet=function(){var n=this._lexer.token;return{kind:Fn.SELECTION_SET,selections:this.many(xn.BRACE_L,this.parseSelection,xn.BRACE_R),loc:this.loc(n)}},t.parseSelection=function(){return this.peek(xn.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var n,t,e=this._lexer.token,r=this.parseName();return this.expectOptionalToken(xn.COLON)?(n=r,t=this.parseName()):t=r,{kind:Fn.FIELD,alias:n,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(xn.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(e)}},t.parseArguments=function(n){return this.optionalMany(xn.PAREN_L,n?this.parseConstArgument:this.parseArgument,xn.PAREN_R)},t.parseArgument=function(){var n=this._lexer.token,t=this.parseName();return this.expectToken(xn.COLON),{kind:Fn.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(n)}},t.parseConstArgument=function(){var n=this._lexer.token;return{kind:Fn.ARGUMENT,name:this.parseName(),value:(this.expectToken(xn.COLON),this.parseValueLiteral(!0)),loc:this.loc(n)}},t.parseFragment=function(){var n=this._lexer.token;this.expectToken(xn.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(xn.NAME)?{kind:Fn.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(n)}:{kind:Fn.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(n)}},t.parseFragmentDefinition=function(){var n,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(n=this._options)||void 0===n?void 0:n.experimentalFragmentVariables)?{kind:Fn.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:Fn.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(n){var t=this._lexer.token;switch(t.kind){case xn.BRACKET_L:return this.parseList(n);case xn.BRACE_L:return this.parseObject(n);case xn.INT:return this._lexer.advance(),{kind:Fn.INT,value:t.value,loc:this.loc(t)};case xn.FLOAT:return this._lexer.advance(),{kind:Fn.FLOAT,value:t.value,loc:this.loc(t)};case xn.STRING:case xn.BLOCK_STRING:return this.parseStringLiteral();case xn.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:Fn.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:Fn.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:Fn.NULL,loc:this.loc(t)};default:return{kind:Fn.ENUM,value:t.value,loc:this.loc(t)}}case xn.DOLLAR:if(!n)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var n=this._lexer.token;return this._lexer.advance(),{kind:Fn.STRING,value:n.value,block:n.kind===xn.BLOCK_STRING,loc:this.loc(n)}},t.parseList=function(n){var t=this,e=this._lexer.token;return{kind:Fn.LIST,values:this.any(xn.BRACKET_L,(function(){return t.parseValueLiteral(n)}),xn.BRACKET_R),loc:this.loc(e)}},t.parseObject=function(n){var t=this,e=this._lexer.token;return{kind:Fn.OBJECT,fields:this.any(xn.BRACE_L,(function(){return t.parseObjectField(n)}),xn.BRACE_R),loc:this.loc(e)}},t.parseObjectField=function(n){var t=this._lexer.token,e=this.parseName();return this.expectToken(xn.COLON),{kind:Fn.OBJECT_FIELD,name:e,value:this.parseValueLiteral(n),loc:this.loc(t)}},t.parseDirectives=function(n){for(var t=[];this.peek(xn.AT);)t.push(this.parseDirective(n));return t},t.parseDirective=function(n){var t=this._lexer.token;return this.expectToken(xn.AT),{kind:Fn.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(n),loc:this.loc(t)}},t.parseTypeReference=function(){var n,t=this._lexer.token;return this.expectOptionalToken(xn.BRACKET_L)?(n=this.parseTypeReference(),this.expectToken(xn.BRACKET_R),n={kind:Fn.LIST_TYPE,type:n,loc:this.loc(t)}):n=this.parseNamedType(),this.expectOptionalToken(xn.BANG)?{kind:Fn.NON_NULL_TYPE,type:n,loc:this.loc(t)}:n},t.parseNamedType=function(){var n=this._lexer.token;return{kind:Fn.NAMED_TYPE,name:this.parseName(),loc:this.loc(n)}},t.parseTypeSystemDefinition=function(){var n=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(n.kind===xn.NAME)switch(n.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(n)},t.peekDescription=function(){return this.peek(xn.STRING)||this.peek(xn.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var e=this.parseDirectives(!0),r=this.many(xn.BRACE_L,this.parseOperationTypeDefinition,xn.BRACE_R);return{kind:Fn.SCHEMA_DEFINITION,description:t,directives:e,operationTypes:r,loc:this.loc(n)}},t.parseOperationTypeDefinition=function(){var n=this._lexer.token,t=this.parseOperationType();this.expectToken(xn.COLON);var e=this.parseNamedType();return{kind:Fn.OPERATION_TYPE_DEFINITION,operation:t,type:e,loc:this.loc(n)}},t.parseScalarTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var e=this.parseName(),r=this.parseDirectives(!0);return{kind:Fn.SCALAR_TYPE_DEFINITION,description:t,name:e,directives:r,loc:this.loc(n)}},t.parseObjectTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Fn.OBJECT_TYPE_DEFINITION,description:t,name:e,interfaces:r,directives:i,fields:o,loc:this.loc(n)}},t.parseImplementsInterfaces=function(){var n;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(n=this._options)||void 0===n?void 0:n.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(xn.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(xn.AMP)||this.peek(xn.NAME));return t}return this.delimitedMany(xn.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var n;return!0===(null===(n=this._options)||void 0===n?void 0:n.allowLegacySDLEmptyFields)&&this.peek(xn.BRACE_L)&&this._lexer.lookahead().kind===xn.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(xn.BRACE_L,this.parseFieldDefinition,xn.BRACE_R)},t.parseFieldDefinition=function(){var n=this._lexer.token,t=this.parseDescription(),e=this.parseName(),r=this.parseArgumentDefs();this.expectToken(xn.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:Fn.FIELD_DEFINITION,description:t,name:e,arguments:r,type:i,directives:o,loc:this.loc(n)}},t.parseArgumentDefs=function(){return this.optionalMany(xn.PAREN_L,this.parseInputValueDef,xn.PAREN_R)},t.parseInputValueDef=function(){var n=this._lexer.token,t=this.parseDescription(),e=this.parseName();this.expectToken(xn.COLON);var r,i=this.parseTypeReference();this.expectOptionalToken(xn.EQUALS)&&(r=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:Fn.INPUT_VALUE_DEFINITION,description:t,name:e,type:i,defaultValue:r,directives:o,loc:this.loc(n)}},t.parseInterfaceTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:Fn.INTERFACE_TYPE_DEFINITION,description:t,name:e,interfaces:r,directives:i,fields:o,loc:this.loc(n)}},t.parseUnionTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var e=this.parseName(),r=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:Fn.UNION_TYPE_DEFINITION,description:t,name:e,directives:r,types:i,loc:this.loc(n)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(xn.EQUALS)?this.delimitedMany(xn.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var e=this.parseName(),r=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:Fn.ENUM_TYPE_DEFINITION,description:t,name:e,directives:r,values:i,loc:this.loc(n)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(xn.BRACE_L,this.parseEnumValueDefinition,xn.BRACE_R)},t.parseEnumValueDefinition=function(){var n=this._lexer.token,t=this.parseDescription(),e=this.parseName(),r=this.parseDirectives(!0);return{kind:Fn.ENUM_VALUE_DEFINITION,description:t,name:e,directives:r,loc:this.loc(n)}},t.parseInputObjectTypeDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var e=this.parseName(),r=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:Fn.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:e,directives:r,fields:i,loc:this.loc(n)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(xn.BRACE_L,this.parseInputValueDef,xn.BRACE_R)},t.parseTypeSystemExtension=function(){var n=this._lexer.lookahead();if(n.kind===xn.NAME)switch(n.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(n)},t.parseSchemaExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),e=this.optionalMany(xn.BRACE_L,this.parseOperationTypeDefinition,xn.BRACE_R);if(0===t.length&&0===e.length)throw this.unexpected();return{kind:Fn.SCHEMA_EXTENSION,directives:t,operationTypes:e,loc:this.loc(n)}},t.parseScalarTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),e=this.parseDirectives(!0);if(0===e.length)throw this.unexpected();return{kind:Fn.SCALAR_TYPE_EXTENSION,name:t,directives:e,loc:this.loc(n)}},t.parseObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),e=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===e.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:Fn.OBJECT_TYPE_EXTENSION,name:t,interfaces:e,directives:r,fields:i,loc:this.loc(n)}},t.parseInterfaceTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),e=this.parseImplementsInterfaces(),r=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===e.length&&0===r.length&&0===i.length)throw this.unexpected();return{kind:Fn.INTERFACE_TYPE_EXTENSION,name:t,interfaces:e,directives:r,fields:i,loc:this.loc(n)}},t.parseUnionTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),e=this.parseDirectives(!0),r=this.parseUnionMemberTypes();if(0===e.length&&0===r.length)throw this.unexpected();return{kind:Fn.UNION_TYPE_EXTENSION,name:t,directives:e,types:r,loc:this.loc(n)}},t.parseEnumTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),e=this.parseDirectives(!0),r=this.parseEnumValuesDefinition();if(0===e.length&&0===r.length)throw this.unexpected();return{kind:Fn.ENUM_TYPE_EXTENSION,name:t,directives:e,values:r,loc:this.loc(n)}},t.parseInputObjectTypeExtension=function(){var n=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),e=this.parseDirectives(!0),r=this.parseInputFieldsDefinition();if(0===e.length&&0===r.length)throw this.unexpected();return{kind:Fn.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:e,fields:r,loc:this.loc(n)}},t.parseDirectiveDefinition=function(){var n=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(xn.AT);var e=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:Fn.DIRECTIVE_DEFINITION,description:t,name:e,arguments:r,repeatable:i,locations:o,loc:this.loc(n)}},t.parseDirectiveLocations=function(){return this.delimitedMany(xn.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var n=this._lexer.token,t=this.parseName();if(void 0!==$n[t.value])return t;throw this.unexpected(n)},t.loc=function(n){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new An(n,this._lexer.lastToken,this._lexer.source)},t.peek=function(n){return this._lexer.token.kind===n},t.expectToken=function(n){var t=this._lexer.token;if(t.kind===n)return this._lexer.advance(),t;throw jn(this._lexer.source,t.start,"Expected ".concat(ot(n),", found ").concat(it(t),"."))},t.expectOptionalToken=function(n){var t=this._lexer.token;if(t.kind===n)return this._lexer.advance(),t},t.expectKeyword=function(n){var t=this._lexer.token;if(t.kind!==xn.NAME||t.value!==n)throw jn(this._lexer.source,t.start,'Expected "'.concat(n,'", found ').concat(it(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(n){var t=this._lexer.token;return t.kind===xn.NAME&&t.value===n&&(this._lexer.advance(),!0)},t.unexpected=function(n){var t=null!=n?n:this._lexer.token;return jn(this._lexer.source,t.start,"Unexpected ".concat(it(t),"."))},t.any=function(n,t,e){this.expectToken(n);for(var r=[];!this.expectOptionalToken(e);)r.push(t.call(this));return r},t.optionalMany=function(n,t,e){if(this.expectOptionalToken(n)){var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(e));return r}return[]},t.many=function(n,t,e){this.expectToken(n);var r=[];do{r.push(t.call(this))}while(!this.expectOptionalToken(e));return r},t.delimitedMany=function(n,t){this.expectOptionalToken(n);var e=[];do{e.push(t.call(this))}while(this.expectOptionalToken(n));return e},n}();function it(n){var t=n.value;return ot(n.kind)+(null!=t?' "'.concat(t,'"'):"")}function ot(n){return function(n){return n===xn.BANG||n===xn.DOLLAR||n===xn.AMP||n===xn.PAREN_L||n===xn.PAREN_R||n===xn.SPREAD||n===xn.COLON||n===xn.EQUALS||n===xn.AT||n===xn.BRACKET_L||n===xn.BRACKET_R||n===xn.BRACE_L||n===xn.PIPE||n===xn.BRACE_R}(n)?'"'.concat(n,'"'):n}var ut={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"]},st=Object.freeze({});function at(n,t,e){var r=n[t];if(r){if(!e&&"function"==typeof r)return r;var i=e?r.leave:r.enter;if("function"==typeof i)return i}else{var o=e?n.leave:n.enter;if(o){if("function"==typeof o)return o;var u=o[t];if("function"==typeof u)return u}}}function ct(n){return function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ut,r=void 0,i=Array.isArray(n),o=[n],u=-1,s=[],a=void 0,c=void 0,f=void 0,l=[],h=[],d=n;do{var v=++u===o.length,m=v&&0!==s.length;if(v){if(c=0===h.length?void 0:l[l.length-1],a=f,f=h.pop(),m){if(i)a=a.slice();else{for(var p={},y=0,b=Object.keys(a);y<b.length;y++){var w=b[y];p[w]=a[w]}a=p}for(var E=0,g=0;g<s.length;g++){var S=s[g][0],I=s[g][1];i&&(S-=E),i&&null===I?(a.splice(S,1),E++):a[S]=I}}u=r.index,o=r.keys,s=r.edits,i=r.inArray,r=r.prev}else{if(c=f?i?u:o[u]:void 0,null==(a=f?f[c]:d))continue;f&&l.push(c)}var O,T=void 0;if(!Array.isArray(a)){if(!_n(a))throw new Error("Invalid AST Node: ".concat(Rn(a),"."));var N=at(t,a.kind,v);if(N){if((T=N.call(t,a,c,f,l,h))===st)break;if(!1===T){if(!v){l.pop();continue}}else if(void 0!==T&&(s.push([c,T]),!v)){if(!_n(T)){l.pop();continue}a=T}}}void 0===T&&m&&s.push([c,a]),v?l.pop():(r={inArray:i,index:u,keys:o,edits:s,prev:r},o=(i=Array.isArray(a))?a:null!==(O=e[a.kind])&&void 0!==O?O:[],u=-1,s=[],f&&h.push(f),f=a)}while(void 0!==r);return 0!==s.length&&(d=s[s.length-1][1]),d}(n,{leave:ft})}var ft={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return ht(n.definitions,"\n\n")+"\n"},OperationDefinition:function(n){var t=n.operation,e=n.name,r=vt("(",ht(n.variableDefinitions,", "),")"),i=ht(n.directives," "),o=n.selectionSet;return e||i||r||"query"!==t?ht([t,ht([e,r]),i,o]," "):o},VariableDefinition:function(n){var t=n.directives;return n.variable+": "+n.type+vt(" = ",n.defaultValue)+vt(" ",ht(t," "))},SelectionSet:function(n){return dt(n.selections)},Field:function(n){var t=n.name,e=n.arguments,r=n.directives,i=n.selectionSet,o=vt("",n.alias,": ")+t,u=o+vt("(",ht(e,", "),")");return u.length>80&&(u=o+vt("(\n",mt(ht(e,"\n")),"\n)")),ht([u,ht(r," "),i]," ")},Argument:function(n){return n.name+": "+n.value},FragmentSpread:function(n){return"..."+n.name+vt(" ",ht(n.directives," "))},InlineFragment:function(n){var t=n.directives,e=n.selectionSet;return ht(["...",vt("on ",n.typeCondition),ht(t," "),e]," ")},FragmentDefinition:function(n){var t=n.typeCondition,e=n.variableDefinitions,r=n.directives,i=n.selectionSet;return"fragment ".concat(n.name).concat(vt("(",ht(e,", "),")")," ")+"on ".concat(t," ").concat(vt("",ht(r," ")," "))+i},IntValue:function(n){return n.value},FloatValue:function(n){return n.value},StringValue:function(n,t){var e=n.value;return n.block?function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===n.indexOf("\n"),i=" "===n[0]||"\t"===n[0],o='"'===n[n.length-1],u="\\"===n[n.length-1],s=!r||o||u||e,a="";return!s||r&&i||(a+="\n"+t),a+=t?n.replace(/\n/g,"\n"+t):n,s&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}(e,"description"===t?"":" "):JSON.stringify(e)},BooleanValue:function(n){return n.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(n){return n.value},ListValue:function(n){return"["+ht(n.values,", ")+"]"},ObjectValue:function(n){return"{"+ht(n.fields,", ")+"}"},ObjectField:function(n){return n.name+": "+n.value},Directive:function(n){return"@"+n.name+vt("(",ht(n.arguments,", "),")")},NamedType:function(n){return n.name},ListType:function(n){return"["+n.type+"]"},NonNullType:function(n){return n.type+"!"},SchemaDefinition:lt((function(n){var t=n.operationTypes;return ht(["schema",ht(n.directives," "),dt(t)]," ")})),OperationTypeDefinition:function(n){return n.operation+": "+n.type},ScalarTypeDefinition:lt((function(n){return ht(["scalar",n.name,ht(n.directives," ")]," ")})),ObjectTypeDefinition:lt((function(n){var t=n.directives,e=n.fields;return ht(["type",n.name,vt("implements ",ht(n.interfaces," & ")),ht(t," "),dt(e)]," ")})),FieldDefinition:lt((function(n){var t=n.arguments,e=n.type,r=n.directives;return n.name+(yt(t)?vt("(\n",mt(ht(t,"\n")),"\n)"):vt("(",ht(t,", "),")"))+": "+e+vt(" ",ht(r," "))})),InputValueDefinition:lt((function(n){var t=n.directives;return ht([n.name+": "+n.type,vt("= ",n.defaultValue),ht(t," ")]," ")})),InterfaceTypeDefinition:lt((function(n){var t=n.directives,e=n.fields;return ht(["interface",n.name,vt("implements ",ht(n.interfaces," & ")),ht(t," "),dt(e)]," ")})),UnionTypeDefinition:lt((function(n){var t=n.types;return ht(["union",n.name,ht(n.directives," "),t&&0!==t.length?"= "+ht(t," | "):""]," ")})),EnumTypeDefinition:lt((function(n){var t=n.values;return ht(["enum",n.name,ht(n.directives," "),dt(t)]," ")})),EnumValueDefinition:lt((function(n){return ht([n.name,ht(n.directives," ")]," ")})),InputObjectTypeDefinition:lt((function(n){var t=n.fields;return ht(["input",n.name,ht(n.directives," "),dt(t)]," ")})),DirectiveDefinition:lt((function(n){var t=n.arguments,e=n.repeatable,r=n.locations;return"directive @"+n.name+(yt(t)?vt("(\n",mt(ht(t,"\n")),"\n)"):vt("(",ht(t,", "),")"))+(e?" repeatable":"")+" on "+ht(r," | ")})),SchemaExtension:function(n){var t=n.operationTypes;return ht(["extend schema",ht(n.directives," "),dt(t)]," ")},ScalarTypeExtension:function(n){return ht(["extend scalar",n.name,ht(n.directives," ")]," ")},ObjectTypeExtension:function(n){var t=n.directives,e=n.fields;return ht(["extend type",n.name,vt("implements ",ht(n.interfaces," & ")),ht(t," "),dt(e)]," ")},InterfaceTypeExtension:function(n){var t=n.directives,e=n.fields;return ht(["extend interface",n.name,vt("implements ",ht(n.interfaces," & ")),ht(t," "),dt(e)]," ")},UnionTypeExtension:function(n){var t=n.types;return ht(["extend union",n.name,ht(n.directives," "),t&&0!==t.length?"= "+ht(t," | "):""]," ")},EnumTypeExtension:function(n){var t=n.values;return ht(["extend enum",n.name,ht(n.directives," "),dt(t)]," ")},InputObjectTypeExtension:function(n){var t=n.fields;return ht(["extend input",n.name,ht(n.directives," "),dt(t)]," ")}};function lt(n){return function(t){return ht([t.description,n(t)],"\n")}}function ht(n){var t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==n?void 0:n.filter((function(n){return n})).join(e))&&void 0!==t?t:""}function dt(n){return vt("{\n",mt(ht(n,"\n")),"\n}")}function vt(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?n+t+e:""}function mt(n){return vt(" ",n.replace(/\n/g,"\n "))}function pt(n){return-1!==n.indexOf("\n")}function yt(n){return null!=n&&n.some(pt)}function bt(n){this.message=n}(bt.prototype=new Error).name="InvalidCharacterError";var wt="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(n){var t=String(n).replace(/=+$/,"");if(t.length%4==1)throw new bt("'atob' failed: The string to be decoded is not correctly encoded.");for(var e,r,i=0,o=0,u="";r=t.charAt(o++);~r&&(e=i%4?64*e+r:r,i++%4)?u+=String.fromCharCode(255&e>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return u};function Et(n){this.message=n}function gt(n,t){if("string"!=typeof n)throw new Et("Invalid token specified");var e=!0===(t=t||{}).header?0:1;try{return JSON.parse(function(n){var t=n.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(n){return decodeURIComponent(wt(n).replace(/(.)/g,(function(n,t){var e=t.charCodeAt(0).toString(16).toUpperCase();return e.length<2&&(e="0"+e),"%"+e})))}(t)}catch(n){return wt(t)}}(n.split(".")[e]))}catch(n){throw new Et("Invalid token specified: "+n.message)}}function St(n,t,e,r){var i,o=null==(i=r)||"number"==typeof i||"boolean"==typeof i?r:e(r),u=t.get(o);return void 0===u&&(u=n.call(this,r),t.set(o,u)),u}function It(n,t,e){var r=Array.prototype.slice.call(arguments,3),i=e(r),o=t.get(i);return void 0===o&&(o=n.apply(this,r),t.set(i,o)),o}function Ot(n,t,e,r,i){return e.bind(t,n,r,i)}function Tt(n,t){return Ot(n,this,1===n.length?St:It,t.cache.create(),t.serializer)}function Nt(){return JSON.stringify(arguments)}function jt(){this.cache=Object.create(null)}(Et.prototype=new Error).name="InvalidTokenError",jt.prototype.has=function(n){return n in this.cache},jt.prototype.get=function(n){return this.cache[n]},jt.prototype.set=function(n,t){this.cache[n]=t};var Ft={create:function(){return new jt}},Ct=function(n,t){return(t&&t.strategy?t.strategy:Tt)(n,{cache:t&&t.cache?t.cache:Ft,serializer:t&&t.serializer?t.serializer:Nt})};Ct.strategies={variadic:function(n,t){return Ot(n,this,It,t.cache.create(),t.serializer)},monadic:function(n,t){return Ot(n,this,St,t.cache.create(),t.serializer)}};var Dt=r((function(n,t){var e=i&&i.__assign||function(){return(e=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},r=i&&i.__spreadArrays||function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),i=0;for(t=0;t<e;t++)for(var o=arguments[t],u=0,s=o.length;u<s;u++,i++)r[i]=o[u];return r};function o(n,t){return"Variable"===n.kind?e(e({},n),{name:e(e({},n.name),{value:t(n.name.value)})}):"ObjectValue"===n.kind?e(e({},n),{fields:n.fields.map((function(n){return e(e({},n),{value:o(n.value,t)})}))}):"ListValue"===n.kind?e(e({},n),{values:n.values.map((function(n){return o(n,t)}))}):n}function u(n,t){return e(e({},n),{value:o(n.value,t)})}function s(n,t){var r;return e(e({},n),{arguments:null===(r=n.arguments)||void 0===r?void 0:r.map((function(n){return u(n,t)}))})}function a(n,t){var r;return e(e({},n),{variable:e(e({},n.variable),{name:e(e({},n.variable.name),{value:t(n.variable.name.value)})}),directives:null===(r=n.directives)||void 0===r?void 0:r.map((function(n){return s(n,t)}))})}function c(n,t){return e(e({},n),{selections:n.selections.map((function(n){var r,i,o;switch(n.kind){case"Field":return e(e({},n),{arguments:null===(r=n.arguments)||void 0===r?void 0:r.map((function(n){return u(n,t)})),selectionSet:n.selectionSet?c(n.selectionSet,t):void 0});case"FragmentSpread":return e(e({},n),{directives:null===(i=n.directives)||void 0===i?void 0:i.map((function(n){return s(n,t)}))});case"InlineFragment":return e(e({},n),{directives:null===(o=n.directives)||void 0===o?void 0:o.map((function(n){return s(n,t)})),selectionSet:c(n.selectionSet,t)})}}))})}function f(n,t,r){var i,o;return e(e({},n),{variableDefinitions:null===(i=n.variableDefinitions)||void 0===i?void 0:i.map((function(n){return a(n,t)})),directives:null===(o=n.directives)||void 0===o?void 0:o.map((function(n){return s(n,t)})),selectionSet:c(e(e({},n.selectionSet),{selections:n.selectionSet.selections.map((function(n){var t,i;switch(n.kind){case"Field":return e(e({},n),{alias:e(e({},n.name),{value:r(null!==(i=null===(t=n.alias)||void 0===t?void 0:t.value)&&void 0!==i?i:n.name.value)})});default:return n}}))}),t)})}Object.defineProperty(t,"__esModule",{value:!0}),t.renameVariables=t.renameVariablesAndTopLevelFields=t.renameVariablesAndTopLevelFieldsOnOpDef=t.renameSelectionSetArguments=t.renameVariableDefinition=t.renameDirectiveArguments=t.renameArgument=t.renameValue=t.defaultRenameFn=void 0,t.defaultRenameFn=function(n,t){return n+"_"+t},t.renameValue=o,t.renameArgument=u,t.renameDirectiveArguments=s,t.renameVariableDefinition=a,t.renameSelectionSetArguments=c,t.renameVariablesAndTopLevelFieldsOnOpDef=f,t.renameVariablesAndTopLevelFields=function(n,t,i){return e(e({},n),{definitions:r(n.definitions.filter((function(n){return"OperationDefinition"!==n.kind})),n.definitions.filter((function(n){return"OperationDefinition"===n.kind})).map((function(n){return f(n,t,i)})))})},t.renameVariables=function(n,t){return Object.keys(n).reduce((function(r,i){var o;return e(e({},r),((o={})[t(i)]=n[i],o))}),{})}}));const At=o(r((function(n,t){var e,r=i&&i.__extends||(e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)t.hasOwnProperty(e)&&(n[e]=t[e])})(n,t)},function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o=i&&i.__assign||function(){return(o=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},u=i&&i.__spreadArrays||function(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;var r=Array(n),i=0;for(t=0;t<e;t++)for(var o=arguments[t],u=0,s=o.length;u<s;u++,i++)r[i]=o[u];return r};Object.defineProperty(t,"__esModule",{value:!0});var s={kind:"Document",definitions:[]},a=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return r(t,n),t}(Error),c=function(){function n(n,t,e){this.operationName=n,this.document=t,this.variables=e}return n.prototype.add=function(t,e){var r=this,i=this.document.definitions.concat(t.definitions).filter((function(n){return"OperationDefinition"===n.kind}));if(!i.length)throw new a("Expected at least one OperationDefinition, but found none.");i.forEach((function(n){var t,e,r=i.filter((function(t){return t!==n}));r.forEach((function(t){var e,r;if(t.operation!==n.operation)throw new a("expected all operations to be of the smae type, but "+(null===(e=t.name)||void 0===e?void 0:e.value)+" is "+t.operation+" and "+(null===(r=n.name)||void 0===r?void 0:r.value)+" is "+n.operation)})),null===(t=n.selectionSet.selections)||void 0===t||t.filter((function(n){return"Field"===n.kind})).forEach((function(t){r.forEach((function(e){var r;return null===(r=e.selectionSet.selections)||void 0===r?void 0:r.filter((function(n){return"Field"===n.kind})).forEach((function(r){var i,o,u,s;if(((null===(i=t.alias)||void 0===i?void 0:i.value)||t.name.value)===((null===(o=r.alias)||void 0===o?void 0:o.value)||r.name.value))throw new a("duplicate field definition "+r.name.value+" for oprations "+(null===(u=n.name)||void 0===u?void 0:u.value)+" and "+(null===(s=e.name)||void 0===s?void 0:s.value))}))}))})),null===(e=n.variableDefinitions)||void 0===e||e.forEach((function(t){r.forEach((function(e){var r;return null===(r=e.variableDefinitions)||void 0===r?void 0:r.forEach((function(r){var i,o;if(t.variable.name.value===r.variable.name.value)throw new a("duplicate variable definition "+r.variable.name.value+" for oprations "+(null===(i=n.name)||void 0===i?void 0:i.value)+" and "+(null===(o=e.name)||void 0===o?void 0:o.value))}))}))}))}));for(var s=r.variables&&e?o(o({},r.variables),e):e||r.variables,c=[{kind:"OperationDefinition",directives:i.flatMap((function(n){return n.directives||[]})),name:{kind:"Name",value:this.operationName},operation:i[0].operation,selectionSet:{kind:"SelectionSet",selections:i.flatMap((function(n){return n.selectionSet.selections}))},variableDefinitions:i.flatMap((function(n){return n.variableDefinitions||[]}))}],f=new Set,l=0,h=this.document.definitions.concat(t.definitions);l<h.length;l++){var d=h[l];if("OperationDefinition"!==d.kind){if("FragmentDefinition"===d.kind){if(f.has(d.name.value))continue;f.add(d.name.value)}c=u([d],c)}}return new n(this.operationName,{kind:"Document",definitions:c},s)},n.prototype.addN=function(n,t,e,r){return void 0===e&&(e=Dt.defaultRenameFn),void 0===r&&(r=Dt.defaultRenameFn),t.length?t.reduce((function(t,i,o){var u=Dt.renameVariablesAndTopLevelFields(n,(function(n){return e(n,o)}),(function(n){return r(n,o)})),s=Dt.renameVariables(i,(function(n){return e(n,o)}));return t.add(u,s)}),this):this},n}();t.default=function(n){return{operationName:n,add:function(n,t){return new c(this.operationName,n,t)},addN:function(n,t,e,r){return new c(this.operationName,s).addN(n,t,e,r)}}}})));var Pt=r((function(n,t){var e="undefined"!=typeof self?self:i,r=function(){function n(){this.fetch=!1,this.DOMException=e.DOMException}return n.prototype=e,new n}();!function(n){!function(t){var e="URLSearchParams"in n,r="Symbol"in n&&"iterator"in Symbol,i="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(n){return!1}}(),o="FormData"in n,u="ArrayBuffer"in n;if(u)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(n){return n&&s.indexOf(Object.prototype.toString.call(n))>-1};function c(n){if("string"!=typeof n&&(n=String(n)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(n))throw new TypeError("Invalid character in header field name");return n.toLowerCase()}function f(n){return"string"!=typeof n&&(n=String(n)),n}function l(n){var t={next:function(){var t=n.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function h(n){this.map={},n instanceof h?n.forEach((function(n,t){this.append(t,n)}),this):Array.isArray(n)?n.forEach((function(n){this.append(n[0],n[1])}),this):n&&Object.getOwnPropertyNames(n).forEach((function(t){this.append(t,n[t])}),this)}function d(n){if(n.bodyUsed)return Promise.reject(new TypeError("Already read"));n.bodyUsed=!0}function v(n){return new Promise((function(t,e){n.onload=function(){t(n.result)},n.onerror=function(){e(n.error)}}))}function m(n){var t=new FileReader,e=v(t);return t.readAsArrayBuffer(n),e}function p(n){if(n.slice)return n.slice(0);var t=new Uint8Array(n.byteLength);return t.set(new Uint8Array(n)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(n){var t;this._bodyInit=n,n?"string"==typeof n?this._bodyText=n:i&&Blob.prototype.isPrototypeOf(n)?this._bodyBlob=n:o&&FormData.prototype.isPrototypeOf(n)?this._bodyFormData=n:e&&URLSearchParams.prototype.isPrototypeOf(n)?this._bodyText=n.toString():u&&i&&(t=n)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=p(n.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(n)||a(n))?this._bodyArrayBuffer=p(n):this._bodyText=n=Object.prototype.toString.call(n):this._bodyText="",this.headers.get("content-type")||("string"==typeof n?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(n)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var n=d(this);if(n)return n;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var n,t,e,r=d(this);if(r)return r;if(this._bodyBlob)return n=this._bodyBlob,e=v(t=new FileReader),t.readAsText(n),e;if(this._bodyArrayBuffer)return Promise.resolve(function(n){for(var t=new Uint8Array(n),e=new Array(t.length),r=0;r<t.length;r++)e[r]=String.fromCharCode(t[r]);return e.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(E)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(n,t){n=c(n),t=f(t);var e=this.map[n];this.map[n]=e?e+", "+t:t},h.prototype.delete=function(n){delete this.map[c(n)]},h.prototype.get=function(n){return n=c(n),this.has(n)?this.map[n]:null},h.prototype.has=function(n){return this.map.hasOwnProperty(c(n))},h.prototype.set=function(n,t){this.map[c(n)]=f(t)},h.prototype.forEach=function(n,t){for(var e in this.map)this.map.hasOwnProperty(e)&&n.call(t,this.map[e],e,this)},h.prototype.keys=function(){var n=[];return this.forEach((function(t,e){n.push(e)})),l(n)},h.prototype.values=function(){var n=[];return this.forEach((function(t){n.push(t)})),l(n)},h.prototype.entries=function(){var n=[];return this.forEach((function(t,e){n.push([e,t])})),l(n)},r&&(h.prototype[Symbol.iterator]=h.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function w(n,t){var e,r,i=(t=t||{}).body;if(n instanceof w){if(n.bodyUsed)throw new TypeError("Already read");this.url=n.url,this.credentials=n.credentials,t.headers||(this.headers=new h(n.headers)),this.method=n.method,this.mode=n.mode,this.signal=n.signal,i||null==n._bodyInit||(i=n._bodyInit,n.bodyUsed=!0)}else this.url=String(n);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),b.indexOf(r)>-1?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function E(n){var t=new FormData;return n.trim().split("&").forEach((function(n){if(n){var e=n.split("="),r=e.shift().replace(/\+/g," "),i=e.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function g(n,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(n)}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})},y.call(w.prototype),y.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},g.error=function(){var n=new g(null,{status:0,statusText:""});return n.type="error",n};var S=[301,302,303,307,308];g.redirect=function(n,t){if(-1===S.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:n}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(n){t.DOMException=function(n,t){this.message=n,this.name=t;var e=Error(n);this.stack=e.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function I(n,e){return new Promise((function(r,o){var u=new w(n,e);if(u.signal&&u.signal.aborted)return o(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function a(){s.abort()}s.onload=function(){var n,t,e={status:s.status,statusText:s.statusText,headers:(n=s.getAllResponseHeaders()||"",t=new h,n.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(n){var e=n.split(":"),r=e.shift().trim();if(r){var i=e.join(":").trim();t.append(r,i)}})),t)};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL"),r(new g("response"in s?s.response:s.responseText,e))},s.onerror=function(){o(new TypeError("Network request failed"))},s.ontimeout=function(){o(new TypeError("Network request failed"))},s.onabort=function(){o(new t.DOMException("Aborted","AbortError"))},s.open(u.method,u.url,!0),"include"===u.credentials?s.withCredentials=!0:"omit"===u.credentials&&(s.withCredentials=!1),"responseType"in s&&i&&(s.responseType="blob"),u.headers.forEach((function(n,t){s.setRequestHeader(t,n)})),u.signal&&(u.signal.addEventListener("abort",a),s.onreadystatechange=function(){4===s.readyState&&u.signal.removeEventListener("abort",a)}),s.send(void 0===u._bodyInit?null:u._bodyInit)}))}I.polyfill=!0,n.fetch||(n.fetch=I,n.Headers=h,n.Request=w,n.Response=g),t.Headers=h,t.Request=w,t.Response=g,t.fetch=I,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,n.exports=t})),_t=r((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var e="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=e})),xt=r((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){return o(n,[])};var e,r=(e=_t)&&e.__esModule?e:{default:e};function i(n){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function o(n,t){switch(i(n)){case"string":return JSON.stringify(n);case"function":return n.name?"[function ".concat(n.name,"]"):"[function]";case"object":return null===n?"null":function(n,t){if(-1!==t.indexOf(n))return"[Circular]";var e=[].concat(t,[n]),i=function(n){var t=n[String(r.default)];return"function"==typeof t?t:"function"==typeof n.inspect?n.inspect:void 0}(n);if(void 0!==i){var u=i.call(n);if(u!==n)return"string"==typeof u?u:o(u,e)}else if(Array.isArray(n))return function(n,t){if(0===n.length)return"[]";if(t.length>2)return"[Array]";for(var e=Math.min(10,n.length),r=n.length-e,i=[],u=0;u<e;++u)i.push(o(n[u],t));return 1===r?i.push("... 1 more item"):r>1&&i.push("... ".concat(r," more items")),"["+i.join(", ")+"]"}(n,e);return function(n,t){var e=Object.keys(n);return 0===e.length?"{}":t.length>2?"["+function(n){var t=Object.prototype.toString.call(n).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof n.constructor){var e=n.constructor.name;if("string"==typeof e&&""!==e)return e}return t}(n)+"]":"{ "+e.map((function(e){return e+": "+o(n[e],t)})).join(", ")+" }"}(n,e)}(n,t);default:return String(n)}}})),kt=r((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n,t){if(!Boolean(n))throw new Error(null!=t?t:"Unexpected invariant triggered.")}})),Rt=r((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(n){var t=n.prototype.toJSON;"function"==typeof t||(0,e.default)(0),n.prototype.inspect=t,r.default&&(n.prototype[r.default]=t)};var e=i(kt),r=i(_t);function i(n){return n&&n.__esModule?n:{default:n}}})),qt=r((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=function(n){return null!=n&&"string"==typeof n.kind},t.Token=t.Location=void 0;var e,r=(e=Rt)&&e.__esModule?e:{default:e},i=function(){function n(n,t,e){this.start=n.start,this.end=t.end,this.startToken=n,this.endToken=t,this.source=e}return n.prototype.toJSON=function(){return{start:this.start,end:this.end}},n}();t.Location=i,(0,r.default)(i);var o=function(){function n(n,t,e,r,i,o,u){this.kind=n,this.start=t,this.end=e,this.line=r,this.column=i,this.value=u,this.prev=o,this.next=null}return n.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},n}();t.Token=o,(0,r.default)(o)})),Mt=r((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,s=void 0,a=Array.isArray(n),c=[n],f=-1,l=[],h=void 0,d=void 0,v=void 0,m=[],p=[],y=n;do{var b=++f===c.length,w=b&&0!==l.length;if(b){if(d=0===p.length?void 0:m[m.length-1],h=v,v=p.pop(),w){if(a)h=h.slice();else{for(var E={},g=0,S=Object.keys(h);g<S.length;g++){var I=S[g];E[I]=h[I]}h=E}for(var O=0,T=0;T<l.length;T++){var N=l[T][0],j=l[T][1];a&&(N-=O),a&&null===j?(h.splice(N,1),O++):h[N]=j}}f=s.index,c=s.keys,l=s.edits,a=s.inArray,s=s.prev}else{if(d=v?a?f:c[f]:void 0,null==(h=v?v[d]:y))continue;v&&m.push(d)}var F,C=void 0;if(!Array.isArray(h)){if(!(0,qt.isNode)(h))throw new Error("Invalid AST Node: ".concat((0,r.default)(h),"."));var D=u(t,h.kind,b);if(D){if((C=D.call(t,h,d,v,m,p))===o)break;if(!1===C){if(!b){m.pop();continue}}else if(void 0!==C&&(l.push([d,C]),!b)){if(!(0,qt.isNode)(C)){m.pop();continue}h=C}}}void 0===C&&w&&l.push([d,h]),b?m.pop():(s={inArray:a,index:f,keys:c,edits:l,prev:s},c=(a=Array.isArray(h))?h:null!==(F=e[h.kind])&&void 0!==F?F:[],f=-1,l=[],v&&p.push(v),v=h)}while(void 0!==s);return 0!==l.length&&(y=l[l.length-1][1]),y},t.visitInParallel=function(n){var t=new Array(n.length);return{enter:function(e){for(var r=0;r<n.length;r++)if(null==t[r]){var i=u(n[r],e.kind,!1);if(i){var s=i.apply(n[r],arguments);if(!1===s)t[r]=e;else if(s===o)t[r]=o;else if(void 0!==s)return s}}},leave:function(e){for(var r=0;r<n.length;r++)if(null==t[r]){var i=u(n[r],e.kind,!0);if(i){var s=i.apply(n[r],arguments);if(s===o)t[r]=o;else if(void 0!==s&&!1!==s)return s}}else t[r]===e&&(t[r]=null)}}},t.getVisitFn=u,t.BREAK=t.QueryDocumentKeys=void 0;var e,r=(e=xt)&&e.__esModule?e:{default:e},i={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=i;var o=Object.freeze({});function u(n,t,e){var r=n[t];if(r){if(!e&&"function"==typeof r)return r;var i=e?r.leave:r.enter;if("function"==typeof i)return i}else{var o=e?n.leave:n.enter;if(o){if("function"==typeof o)return o;var u=o[t];if("function"==typeof u)return u}}}t.BREAK=o})),Vt=r((function(n,t){function e(n){for(var t=0;t<n.length;++t)if(" "!==n[t]&&"\t"!==n[t])return!1;return!0}function r(n){for(var t,e=!0,r=!0,i=0,o=null,u=0;u<n.length;++u)switch(n.charCodeAt(u)){case 13:10===n.charCodeAt(u+1)&&++u;case 10:e=!1,r=!0,i=0;break;case 9:case 32:++i;break;default:r&&!e&&(null===o||i<o)&&(o=i),r=!1}return null!==(t=o)&&void 0!==t?t:0}Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringValue=function(n){var t=n.split(/\r\n|[\n\r]/g),i=r(n);if(0!==i)for(var o=1;o<t.length;o++)t[o]=t[o].slice(i);for(var u=0;u<t.length&&e(t[u]);)++u;for(var s=t.length;s>u&&e(t[s-1]);)--s;return t.slice(u,s).join("\n")},t.getBlockStringIndentation=r,t.printBlockString=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===n.indexOf("\n"),i=" "===n[0]||"\t"===n[0],o='"'===n[n.length-1],u="\\"===n[n.length-1],s=!r||o||u||e,a="";return!s||r&&i||(a+="\n"+t),a+=t?n.replace(/\n/g,"\n"+t):n,s&&(a+="\n"),'"""'+a.replace(/"""/g,'\\"""')+'"""'}})),Ut=r((function(n,t){Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(n){return(0,Mt.visit)(n,{leave:e})};var e={Name:function(n){return n.value},Variable:function(n){return"$"+n.name},Document:function(n){return i(n.definitions,"\n\n")+"\n"},OperationDefinition:function(n){var t=n.operation,e=n.name,r=u("(",i(n.variableDefinitions,", "),")"),o=i(n.directives," "),s=n.selectionSet;return e||o||r||"query"!==t?i([t,i([e,r]),o,s]," "):s},VariableDefinition:function(n){var t=n.directives;return n.variable+": "+n.type+u(" = ",n.defaultValue)+u(" ",i(t," "))},SelectionSet:function(n){return o(n.selections)},Field:function(n){var t=n.name,e=n.arguments,r=n.directives,o=n.selectionSet,a=u("",n.alias,": ")+t,c=a+u("(",i(e,", "),")");return c.length>80&&(c=a+u("(\n",s(i(e,"\n")),"\n)")),i([c,i(r," "),o]," ")},Argument:function(n){return n.name+": "+n.value},FragmentSpread:function(n){return"..."+n.name+u(" ",i(n.directives," "))},InlineFragment:function(n){var t=n.directives,e=n.selectionSet;return i(["...",u("on ",n.typeCondition),i(t," "),e]," ")},FragmentDefinition:function(n){var t=n.typeCondition,e=n.variableDefinitions,r=n.directives,o=n.selectionSet;return"fragment ".concat(n.name).concat(u("(",i(e,", "),")")," ")+"on ".concat(t," ").concat(u("",i(r," ")," "))+o},IntValue:function(n){return n.value},FloatValue:function(n){return n.value},StringValue:function(n,t){var e=n.value;return n.block?(0,Vt.printBlockString)(e,"description"===t?"":" "):JSON.stringify(e)},BooleanValue:function(n){return n.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(n){return n.value},ListValue:function(n){return"["+i(n.values,", ")+"]"},ObjectValue:function(n){return"{"+i(n.fields,", ")+"}"},ObjectField:function(n){return n.name+": "+n.value},Directive:function(n){return"@"+n.name+u("(",i(n.arguments,", "),")")},NamedType:function(n){return n.name},ListType:function(n){return"["+n.type+"]"},NonNullType:function(n){return n.type+"!"},SchemaDefinition:r((function(n){var t=n.operationTypes;return i(["schema",i(n.directives," "),o(t)]," ")})),OperationTypeDefinition:function(n){return n.operation+": "+n.type},ScalarTypeDefinition:r((function(n){return i(["scalar",n.name,i(n.directives," ")]," ")})),ObjectTypeDefinition:r((function(n){var t=n.directives,e=n.fields;return i(["type",n.name,u("implements ",i(n.interfaces," & ")),i(t," "),o(e)]," ")})),FieldDefinition:r((function(n){var t=n.arguments,e=n.type,r=n.directives;return n.name+(c(t)?u("(\n",s(i(t,"\n")),"\n)"):u("(",i(t,", "),")"))+": "+e+u(" ",i(r," "))})),InputValueDefinition:r((function(n){var t=n.directives;return i([n.name+": "+n.type,u("= ",n.defaultValue),i(t," ")]," ")})),InterfaceTypeDefinition:r((function(n){var t=n.directives,e=n.fields;return i(["interface",n.name,u("implements ",i(n.interfaces," & ")),i(t," "),o(e)]," ")})),UnionTypeDefinition:r((function(n){var t=n.types;return i(["union",n.name,i(n.directives," "),t&&0!==t.length?"= "+i(t," | "):""]," ")})),EnumTypeDefinition:r((function(n){var t=n.values;return i(["enum",n.name,i(n.directives," "),o(t)]," ")})),EnumValueDefinition:r((function(n){return i([n.name,i(n.directives," ")]," ")})),InputObjectTypeDefinition:r((function(n){var t=n.fields;return i(["input",n.name,i(n.directives," "),o(t)]," ")})),DirectiveDefinition:r((function(n){var t=n.arguments,e=n.repeatable,r=n.locations;return"directive @"+n.name+(c(t)?u("(\n",s(i(t,"\n")),"\n)"):u("(",i(t,", "),")"))+(e?" repeatable":"")+" on "+i(r," | ")})),SchemaExtension:function(n){var t=n.operationTypes;return i(["extend schema",i(n.directives," "),o(t)]," ")},ScalarTypeExtension:function(n){return i(["extend scalar",n.name,i(n.directives," ")]," ")},ObjectTypeExtension:function(n){var t=n.directives,e=n.fields;return i(["extend type",n.name,u("implements ",i(n.interfaces," & ")),i(t," "),o(e)]," ")},InterfaceTypeExtension:function(n){var t=n.directives,e=n.fields;return i(["extend interface",n.name,u("implements ",i(n.interfaces," & ")),i(t," "),o(e)]," ")},UnionTypeExtension:function(n){var t=n.types;return i(["extend union",n.name,i(n.directives," "),t&&0!==t.length?"= "+i(t," | "):""]," ")},EnumTypeExtension:function(n){var t=n.values;return i(["extend enum",n.name,i(n.directives," "),o(t)]," ")},InputObjectTypeExtension:function(n){var t=n.fields;return i(["extend input",n.name,i(n.directives," "),o(t)]," ")}};function r(n){return function(t){return i([t.description,n(t)],"\n")}}function i(n){var t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==n?void 0:n.filter((function(n){return n})).join(e))&&void 0!==t?t:""}function o(n){return u("{\n",s(i(n,"\n")),"\n}")}function u(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?n+t+e:""}function s(n){return u(" ",n.replace(/\n/g,"\n "))}function a(n){return-1!==n.indexOf("\n")}function c(n){return null!=n&&n.some(a)}})),$t=function(n){var t=n.name,e=n.type;this.uri=n.uri,this.name=t,this.type=e},Lt=function(n){return"undefined"!=typeof File&&n instanceof File||"undefined"!=typeof Blob&&n instanceof Blob||n instanceof $t},Bt=function n(t,e,r){var i;void 0===e&&(e=""),void 0===r&&(r=Lt);var o=new Map;function u(n,t){var e=o.get(t);e?e.push.apply(e,n):o.set(t,n)}if(r(t))i=null,u([e],t);else{var s=e?e+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)i=Array.prototype.map.call(t,(function(n,t){return u([""+s+t],n),null}));else if(Array.isArray(t))i=t.map((function(t,e){var i=n(t,""+s+e,r);return i.files.forEach(u),i.clone}));else if(t&&t.constructor===Object)for(var a in i={},t){var c=n(t[a],""+s+a,r);c.files.forEach(u),i[a]=c.clone}else i=t}return{clone:i,files:o}},Jt=Lt,Gt="object"==typeof self?self.FormData:window.FormData,Ht=r((function(n,t){var e=i&&i.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0});var r=e(Gt),o=function(n){return Jt(n)||null!==n&&"object"==typeof n&&"function"==typeof n.pipe};t.default=function(n,t){var e=Bt({query:n,variables:t},"",o),i=e.clone,u=e.files;if(0===u.size)return JSON.stringify(i);var s=new("undefined"==typeof FormData?r.default:FormData);s.append("operations",JSON.stringify(i));var a={},c=0;return u.forEach((function(n){a[++c]=n})),s.append("map",JSON.stringify(a)),c=0,u.forEach((function(n,t){s.append(""+ ++c,t)})),s}})),Wt=r((function(n,t){var e,r=i&&i.__extends||(e=function(n,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n[e]=t[e])})(n,t)},function(n,t){function r(){this.constructor=n}e(n,t),n.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;var o=function(n){function t(e,r){var i=this,o=t.extractMessage(e)+": "+JSON.stringify({response:e,request:r});return i=n.call(this,o)||this,Object.setPrototypeOf(i,t.prototype),i.response=e,i.request=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return r(t,n),t.extractMessage=function(n){try{return n.errors[0].message}catch(t){return"GraphQL Error (Code: "+n.status+")"}},t}(Error);t.ClientError=o})),Yt=r((function(n,t){var e=i&&i.__assign||function(){return(e=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},r=i&&i.__createBinding||(Object.create?function(n,t,e,r){void 0===r&&(r=e),Object.defineProperty(n,r,{enumerable:!0,get:function(){return t[e]}})}:function(n,t,e,r){void 0===r&&(r=e),n[r]=t[e]}),o=i&&i.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),u=i&&i.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(null!=n)for(var e in n)"default"!==e&&Object.prototype.hasOwnProperty.call(n,e)&&r(t,n,e);return o(t,n),t},s=i&&i.__awaiter||function(n,t,e,r){return new(e||(e=Promise))((function(i,o){function u(n){try{a(r.next(n))}catch(n){o(n)}}function s(n){try{a(r.throw(n))}catch(n){o(n)}}function a(n){var t;n.done?i(n.value):(t=n.value,t instanceof e?t:new e((function(n){n(t)}))).then(u,s)}a((r=r.apply(n,t||[])).next())}))},a=i&&i.__generator||function(n,t){var e,r,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return u.label++,{value:o[1],done:!1};case 5:u.label++,r=o[1],o=[0];continue;case 7:o=u.ops.pop(),u.trys.pop();continue;default:if(!((i=(i=u.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){u=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){u.label=o[1];break}if(6===o[0]&&u.label<i[1]){u.label=i[1],i=o;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(o);break}i[2]&&u.ops.pop(),u.trys.pop();continue}o=t.call(n,u)}catch(n){o=[6,n],r=0}finally{e=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},c=i&&i.__rest||function(n,t){var e={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&t.indexOf(r)<0&&(e[r]=n[r]);if(null!=n&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(n);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(e[r[i]]=n[r[i]])}return e},f=i&&i.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(t,"__esModule",{value:!0}),t.gql=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var l=u(Pt),h=l,d=f(Ht),v=Wt;Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return v.ClientError}});var m=function(n){var t={};return n&&("undefined"!=typeof Headers&&n instanceof Headers||n instanceof h.Headers?t=function(n){var t={};return n.forEach((function(n,e){t[e]=n})),t}(n):Array.isArray(n)?n.forEach((function(n){t[n[0]]=n[1]})):t=n),t},p=function(){function n(n,t){this.url=n,this.options=t||{}}return n.prototype.rawRequest=function(n,t,r){return s(this,void 0,void 0,(function(){var i,o,u,s,f,h,v,p,y,w;return a(this,(function(a){switch(a.label){case 0:return o=(i=this.options).headers,s=void 0===(u=i.fetch)?l.default:u,f=c(i,["headers","fetch"]),h=d.default(n,t),[4,s(this.url,e({method:"POST",headers:e(e(e({},"string"==typeof h?{"Content-Type":"application/json"}:{}),m(o)),m(r)),body:h},f))];case 1:return[4,b(v=a.sent())];case 2:if(p=a.sent(),v.ok&&!p.errors&&p.data)return y=v.headers,w=v.status,[2,e(e({},p),{headers:y,status:w})];throw new Wt.ClientError(e(e({},"string"==typeof p?{error:p}:p),{status:v.status,headers:v.headers}),{query:n,variables:t})}}))}))},n.prototype.request=function(n,t,r){return s(this,void 0,void 0,(function(){var i,o,u,s,f,h,v,p,y;return a(this,(function(a){switch(a.label){case 0:return o=(i=this.options).headers,s=void 0===(u=i.fetch)?l.default:u,f=c(i,["headers","fetch"]),h=function(n){return"string"==typeof n?n:Ut.print(n)}(n),v=d.default(h,t),[4,s(this.url,e({method:"POST",headers:e(e(e({},"string"==typeof v?{"Content-Type":"application/json"}:{}),m(o)),m(r)),body:v},f))];case 1:return[4,b(p=a.sent())];case 2:if(y=a.sent(),p.ok&&!y.errors&&y.data)return[2,y.data];throw new Wt.ClientError(e(e({},"string"==typeof y?{error:y}:y),{status:p.status}),{query:h,variables:t})}}))}))},n.prototype.setHeaders=function(n){return this.options.headers=n,this},n.prototype.setHeader=function(n,t){var e,r=this.options.headers;return r?r[n]=t:this.options.headers=((e={})[n]=t,e),this},n}();function y(n,t,e){return s(this,void 0,void 0,(function(){return a(this,(function(){return[2,new p(n).request(t,e)]}))}))}function b(n){var t=n.headers.get("Content-Type");return t&&t.startsWith("application/json")?n.json():n.text()}t.GraphQLClient=p,t.rawRequest=function(n,t,e){return s(this,void 0,void 0,(function(){return a(this,(function(){return[2,new p(n).rawRequest(t,e)]}))}))},t.request=y,t.default=y,t.gql=function(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return n.reduce((function(n,e,r){return""+n+e+(r in t?t[r]:"")}),"")}}));function Qt(n){return"function"==typeof n}let zt=!1;const Xt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else zt&&console.log("RxJS: Back to a better error behavior. Thank you. <3");zt=n},get useDeprecatedSynchronousErrorHandling(){return zt}};function Kt(n){setTimeout((()=>{throw n}),0)}const Zt={closed:!0,next(n){},error(n){if(Xt.useDeprecatedSynchronousErrorHandling)throw n;Kt(n)},complete(){}},ne=Array.isArray||(n=>n&&"number"==typeof n.length),te=(()=>{function n(n){return Error.call(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map(((n,t)=>`${t+1}) ${n.toString()}`)).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n,this}return n.prototype=Object.create(Error.prototype),n})();class ee{constructor(n){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}unsubscribe(){let n;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:e,_unsubscribe:r,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof ee)t.remove(this);else if(null!==t)for(let n=0;n<t.length;++n)t[n].remove(this);if(Qt(r)){e&&(this._unsubscribe=void 0);try{r.call(this)}catch(t){n=t instanceof te?re(t.errors):[t]}}if(ne(i)){let t=-1,e=i.length;for(;++t<e;){const e=i[t];if(null!==(o=e)&&"object"==typeof o)try{e.unsubscribe()}catch(t){n=n||[],t instanceof te?n=n.concat(re(t.errors)):n.push(t)}}}var o;if(n)throw new te(n)}add(n){let t=n;if(!n)return ee.EMPTY;switch(typeof n){case"function":t=new ee(n);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof ee)){const n=t;t=new ee,t._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}let{_parentOrParents:e}=t;if(null===e)t._parentOrParents=this;else if(e instanceof ee){if(e===this)return t;t._parentOrParents=[e,this]}else{if(-1!==e.indexOf(this))return t;e.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(n){const t=this._subscriptions;if(t){const e=t.indexOf(n);-1!==e&&t.splice(e,1)}}}function re(n){return n.reduce(((n,t)=>n.concat(t instanceof te?t.errors:t)),[])}ee.EMPTY=function(n){return n.closed=!0,n}(new ee);const ie="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class oe extends ee{constructor(n,t,e){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Zt;break;case 1:if(!n){this.destination=Zt;break}if("object"==typeof n){n instanceof oe?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,n.add(this)):(this.syncErrorThrowable=!0,this.destination=new ue(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new ue(this,n,t,e)}}[ie](){return this}static create(n,t,e){const r=new oe(n,t,e);return r.syncErrorThrowable=!1,r}next(n){this.isStopped||this._next(n)}error(n){this.isStopped||(this.isStopped=!0,this._error(n))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(n){this.destination.next(n)}_error(n){this.destination.error(n),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:n}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=n,this}}class ue extends oe{constructor(n,t,e,r){let i;super(),this._parentSubscriber=n;let o=this;Qt(t)?i=t:t&&(i=t.next,e=t.error,r=t.complete,t!==Zt&&(o=Object.create(t),Qt(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=e,this._complete=r}next(n){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;Xt.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,n)&&this.unsubscribe():this.__tryOrUnsub(this._next,n)}}error(n){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:e}=Xt;if(this._error)e&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,n),this.unsubscribe()):(this.__tryOrUnsub(this._error,n),this.unsubscribe());else if(t.syncErrorThrowable)e?(t.syncErrorValue=n,t.syncErrorThrown=!0):Kt(n),this.unsubscribe();else{if(this.unsubscribe(),e)throw n;Kt(n)}}}complete(){if(!this.isStopped){const{_parentSubscriber:n}=this;if(this._complete){const t=()=>this._complete.call(this._context);Xt.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(n,t){try{n.call(this._context,t)}catch(n){if(this.unsubscribe(),Xt.useDeprecatedSynchronousErrorHandling)throw n;Kt(n)}}__tryOrSetError(n,t,e){if(!Xt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,e)}catch(t){return Xt.useDeprecatedSynchronousErrorHandling?(n.syncErrorValue=t,n.syncErrorThrown=!0,!0):(Kt(t),!0)}return!1}_unsubscribe(){const{_parentSubscriber:n}=this;this._context=null,this._parentSubscriber=null,n.unsubscribe()}}const se="function"==typeof Symbol&&Symbol.observable||"@@observable";function ae(n){return n}class ce{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const t=new ce;return t.source=this,t.operator=n,t}subscribe(n,t,e){const{operator:r}=this,i=function(n,t,e){if(n){if(n instanceof oe)return n;if(n[ie])return n[ie]()}return n||t||e?new oe(n,t,e):new oe(Zt)}(n,t,e);if(i.add(r?r.call(i,this.source):this.source||Xt.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),Xt.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(n){try{return this._subscribe(n)}catch(t){Xt.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=t),function(n){for(;n;){const{closed:t,destination:e,isStopped:r}=n;if(t||r)return!1;n=e&&e instanceof oe?e:null}return!0}(n)?n.error(t):console.warn(t)}}forEach(n,t){return new(t=fe(t))(((t,e)=>{let r;r=this.subscribe((t=>{try{n(t)}catch(n){e(n),r&&r.unsubscribe()}}),e,t)}))}_subscribe(n){const{source:t}=this;return t&&t.subscribe(n)}[se](){return this}pipe(...n){return 0===n.length?this:(0===(t=n).length?ae:1===t.length?t[0]:function(n){return t.reduce(((n,t)=>t(n)),n)})(this);var t}toPromise(n){return new(n=fe(n))(((n,t)=>{let e;this.subscribe((n=>e=n),(n=>t(n)),(()=>n(e)))}))}}function fe(n){if(n||(n=Promise),!n)throw new Error("no Promise impl found");return n}ce.create=n=>new ce(n);const le=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class he extends ee{constructor(n,t){super(),this.subject=n,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const n=this.subject,t=n.observers;if(this.subject=null,!t||0===t.length||n.isStopped||n.closed)return;const e=t.indexOf(this.subscriber);-1!==e&&t.splice(e,1)}}class de extends oe{constructor(n){super(n),this.destination=n}}class ve extends ce{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[ie](){return new de(this)}lift(n){const t=new me(this,this);return t.operator=n,t}next(n){if(this.closed)throw new le;if(!this.isStopped){const{observers:t}=this,e=t.length,r=t.slice();for(let t=0;t<e;t++)r[t].next(n)}}error(n){if(this.closed)throw new le;this.hasError=!0,this.thrownError=n,this.isStopped=!0;const{observers:t}=this,e=t.length,r=t.slice();for(let t=0;t<e;t++)r[t].error(n);this.observers.length=0}complete(){if(this.closed)throw new le;this.isStopped=!0;const{observers:n}=this,t=n.length,e=n.slice();for(let n=0;n<t;n++)e[n].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(n){if(this.closed)throw new le;return super._trySubscribe(n)}_subscribe(n){if(this.closed)throw new le;return this.hasError?(n.error(this.thrownError),ee.EMPTY):this.isStopped?(n.complete(),ee.EMPTY):(this.observers.push(n),new he(this,n))}asObservable(){const n=new ce;return n.source=this,n}}ve.create=(n,t)=>new me(n,t);class me extends ve{constructor(n,t){super(),this.destination=n,this.source=t}next(n){const{destination:t}=this;t&&t.next&&t.next(n)}error(n){const{destination:t}=this;t&&t.error&&this.destination.error(n)}complete(){const{destination:n}=this;n&&n.complete&&this.destination.complete()}_subscribe(n){const{source:t}=this;return t?this.source.subscribe(n):ee.EMPTY}}class pe extends ee{constructor(n,t){super()}schedule(n,t=0){return this}}class ye{constructor(n,t=ye.now){this.SchedulerAction=n,this.now=t}schedule(n,t=0,e){return new this.SchedulerAction(this,n).schedule(e,t)}}ye.now=()=>Date.now();class be extends ye{constructor(n,t=ye.now){super(n,(()=>be.delegate&&be.delegate!==this?be.delegate.now():t())),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(n,t=0,e){return be.delegate&&be.delegate!==this?be.delegate.schedule(n,t,e):super.schedule(n,t,e)}flush(n){const{actions:t}=this;if(this.active)return void t.push(n);let e;this.active=!0;do{if(e=n.execute(n.state,n.delay))break}while(n=t.shift());if(this.active=!1,e){for(;n=t.shift();)n.unsubscribe();throw e}}}function we(n){return n&&"function"==typeof n.schedule}const Ee=new be(class extends pe{constructor(n,t){super(n,t),this.scheduler=n,this.work=t,this.pending=!1}schedule(n,t=0){if(this.closed)return this;this.state=n;const e=this.id,r=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(r,e,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(n,t,e=0){return setInterval(n.flush.bind(n,this),e)}recycleAsyncId(n,t,e=0){if(null!==e&&this.delay===e&&!1===this.pending)return t;clearInterval(t)}execute(n,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const e=this._execute(n,t);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(n,t){let e,r=!1;try{this.work(n)}catch(n){r=!0,e=!!n&&n||new Error(n)}if(r)return this.unsubscribe(),e}_unsubscribe(){const n=this.id,t=this.scheduler,e=t.actions,r=e.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&e.splice(r,1),null!=n&&(this.id=this.recycleAsyncId(t,n,null)),this.delay=null}});class ge{constructor(n,t,e,r){this.bufferTimeSpan=n,this.bufferCreationInterval=t,this.maxBufferSize=e,this.scheduler=r}call(n,t){return t.subscribe(new Ie(n,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))}}class Se{constructor(){this.buffer=[]}}class Ie extends oe{constructor(n,t,e,r,i){super(n),this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=r,this.scheduler=i,this.contexts=[];const o=this.openContext();if(this.timespanOnly=null==e||e<0,this.timespanOnly)this.add(o.closeAction=i.schedule(Oe,t,{subscriber:this,context:o,bufferTimeSpan:t}));else{const n={bufferTimeSpan:t,bufferCreationInterval:e,subscriber:this,scheduler:i};this.add(o.closeAction=i.schedule(Ne,t,{subscriber:this,context:o})),this.add(i.schedule(Te,e,n))}}_next(n){const t=this.contexts,e=t.length;let r;for(let i=0;i<e;i++){const e=t[i],o=e.buffer;o.push(n),o.length==this.maxBufferSize&&(r=e)}r&&this.onBufferFull(r)}_error(n){this.contexts.length=0,super._error(n)}_complete(){const{contexts:n,destination:t}=this;for(;n.length>0;){const e=n.shift();t.next(e.buffer)}super._complete()}_unsubscribe(){this.contexts=null}onBufferFull(n){this.closeContext(n);const t=n.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){n=this.openContext();const t=this.bufferTimeSpan;this.add(n.closeAction=this.scheduler.schedule(Oe,t,{subscriber:this,context:n,bufferTimeSpan:t}))}}openContext(){const n=new Se;return this.contexts.push(n),n}closeContext(n){this.destination.next(n.buffer);const t=this.contexts;(t?t.indexOf(n):-1)>=0&&t.splice(t.indexOf(n),1)}}function Oe(n){const t=n.subscriber,e=n.context;e&&t.closeContext(e),t.closed||(n.context=t.openContext(),n.context.closeAction=this.schedule(n,n.bufferTimeSpan))}function Te(n){const{bufferCreationInterval:t,bufferTimeSpan:e,subscriber:r,scheduler:i}=n,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(Ne,e,{subscriber:r,context:o})),this.schedule(n,t))}function Ne(n){const{subscriber:t,context:e}=n;t.closeContext(e)}var je=r((function(n,t){!function(n){var t=Object.getOwnPropertyNames,e=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty;function i(n,t){return function(e,r,i){return n(e,r,i)&&t(e,r,i)}}function o(n){return function(t,e,r){if(!t||!e||"object"!=typeof t||"object"!=typeof e)return n(t,e,r);var i=r.cache,o=i.get(t),u=i.get(e);if(o&&u)return o===e&&u===t;i.set(t,e),i.set(e,t);var s=n(t,e,r);return i.delete(t),i.delete(e),s}}function u(n){return t(n).concat(e(n))}var s=Object.hasOwn||function(n,t){return r.call(n,t)};function a(n,t){return n||t?n===t:n===t||n!=n&&t!=t}var c="_owner",f=Object.getOwnPropertyDescriptor,l=Object.keys;function h(n,t,e){var r=n.length;if(t.length!==r)return!1;for(;r-- >0;)if(!e.equals(n[r],t[r],r,r,n,t,e))return!1;return!0}function d(n,t){return a(n.getTime(),t.getTime())}function v(n,t,e){if(n.size!==t.size)return!1;for(var r,i,o={},u=n.entries(),s=0;(r=u.next())&&!r.done;){for(var a=t.entries(),c=!1,f=0;(i=a.next())&&!i.done;){var l=r.value,h=l[0],d=l[1],v=i.value,m=v[0],p=v[1];c||o[f]||!(c=e.equals(h,m,s,f,n,t,e)&&e.equals(d,p,h,m,n,t,e))||(o[f]=!0),f++}if(!c)return!1;s++}return!0}function m(n,t,e){var r,i=l(n),o=i.length;if(l(t).length!==o)return!1;for(;o-- >0;){if((r=i[o])===c&&(n.$$typeof||t.$$typeof)&&n.$$typeof!==t.$$typeof)return!1;if(!s(t,r)||!e.equals(n[r],t[r],r,r,n,t,e))return!1}return!0}function p(n,t,e){var r,i,o,a=u(n),l=a.length;if(u(t).length!==l)return!1;for(;l-- >0;){if((r=a[l])===c&&(n.$$typeof||t.$$typeof)&&n.$$typeof!==t.$$typeof)return!1;if(!s(t,r))return!1;if(!e.equals(n[r],t[r],r,r,n,t,e))return!1;if(i=f(n,r),o=f(t,r),(i||o)&&(!i||!o||i.configurable!==o.configurable||i.enumerable!==o.enumerable||i.writable!==o.writable))return!1}return!0}function y(n,t){return a(n.valueOf(),t.valueOf())}function b(n,t){return n.source===t.source&&n.flags===t.flags}function w(n,t,e){if(n.size!==t.size)return!1;for(var r,i,o={},u=n.values();(r=u.next())&&!r.done;){for(var s=t.values(),a=!1,c=0;(i=s.next())&&!i.done;)a||o[c]||!(a=e.equals(r.value,i.value,r.value,i.value,n,t,e))||(o[c]=!0),c++;if(!a)return!1}return!0}function E(n,t){var e=n.length;if(t.length!==e)return!1;for(;e-- >0;)if(n[e]!==t[e])return!1;return!0}var g=Array.isArray,S="function"==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,I=Object.assign,O=Object.prototype.toString.call.bind(Object.prototype.toString);var T=_(),N=_({strict:!0}),j=_({circular:!0}),F=_({circular:!0,strict:!0}),C=_({createInternalComparator:function(){return a}}),D=_({strict:!0,createInternalComparator:function(){return a}}),A=_({circular:!0,createInternalComparator:function(){return a}}),P=_({circular:!0,createInternalComparator:function(){return a},strict:!0});function _(n){void 0===n&&(n={});var t,e=n.circular,r=void 0!==e&&e,u=n.createInternalComparator,s=n.createState,a=n.strict,c=void 0!==a&&a,f=function(n){var t=n.areArraysEqual,e=n.areDatesEqual,r=n.areMapsEqual,i=n.areObjectsEqual,o=n.arePrimitiveWrappersEqual,u=n.areRegExpsEqual,s=n.areSetsEqual,a=n.areTypedArraysEqual;return function(n,c,f){if(n===c)return!0;if(null==n||null==c||"object"!=typeof n||"object"!=typeof c)return n!=n&&c!=c;var l=n.constructor;if(l!==c.constructor)return!1;if(l===Object)return i(n,c,f);if(g(n))return t(n,c,f);if(null!=S&&S(n))return a(n,c,f);if(l===Date)return e(n,c,f);if(l===RegExp)return u(n,c,f);if(l===Map)return r(n,c,f);if(l===Set)return s(n,c,f);var h=O(n);return"[object Date]"===h?e(n,c,f):"[object RegExp]"===h?u(n,c,f):"[object Map]"===h?r(n,c,f):"[object Set]"===h?s(n,c,f):"[object Object]"===h?"function"!=typeof n.then&&"function"!=typeof c.then&&i(n,c,f):"[object Arguments]"===h?i(n,c,f):("[object Boolean]"===h||"[object Number]"===h||"[object String]"===h)&&o(n,c,f)}}(function(n){var t=n.circular,e=n.createCustomConfig,r=n.strict,u={areArraysEqual:r?p:h,areDatesEqual:d,areMapsEqual:r?i(v,p):v,areObjectsEqual:r?p:m,arePrimitiveWrappersEqual:y,areRegExpsEqual:b,areSetsEqual:r?i(w,p):w,areTypedArraysEqual:r?p:E};if(e&&(u=I({},u,e(u))),t){var s=o(u.areArraysEqual),a=o(u.areMapsEqual),c=o(u.areObjectsEqual),f=o(u.areSetsEqual);u=I({},u,{areArraysEqual:s,areMapsEqual:a,areObjectsEqual:c,areSetsEqual:f})}return u}(n));return function(n){var t=n.circular,e=n.comparator,r=n.createState,i=n.equals,o=n.strict;if(r)return function(n,u){var s=r(),a=s.cache,c=void 0===a?t?new WeakMap:void 0:a;return e(n,u,{cache:c,equals:i,meta:s.meta,strict:o})};if(t)return function(n,t){return e(n,t,{cache:new WeakMap,equals:i,meta:void 0,strict:o})};var u={cache:void 0,equals:i,meta:void 0,strict:o};return function(n,t){return e(n,t,u)}}({circular:r,comparator:f,createState:s,equals:u?u(f):(t=f,function(n,e,r,i,o,u,s){return t(n,e,s)}),strict:c})}n.circularDeepEqual=j,n.circularShallowEqual=A,n.createCustomEqual=_,n.deepEqual=T,n.sameValueZeroEqual=a,n.shallowEqual=C,n.strictCircularDeepEqual=F,n.strictCircularShallowEqual=P,n.strictDeepEqual=N,n.strictShallowEqual=D}(t)})),Fe={current:void 0};function Ce(){if(void 0===Fe.current)throw new Error("no implementation of useHost provided");return Fe.current()}function De(n){if(!n)throw new Error("Must supply an implementation");if("function"!=typeof n)throw new Error("implementation must be a function");Fe.current=n}function Ae(){z();var n=Ce();return s(n,"sq:locale")}function Pe(){an();var n=Ce();return s(n,"sq:program-id")}function _e(){var n;return null==(n=xe())?void 0:n.jwt}function xe(){tn();var n=Ce(),t=s(n,"sq:user-identity"),e=en(null==t?void 0:t.jwt);if(M()||!t||e)return t;on(void 0)}var ke=V,Re=$,qe=function(){var n;const t=q();switch(t.type){case"SquatchJS2":return(null==(n=t.widgetIdent)?void 0:n.engagementMedium)||"EMBED";case"SquatchAndroid":case"SquatchIOS":case"SquatchPortal":case"SquatchAdmin":case"None":return"EMBED"}};function Me(){return(Me=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n}).apply(this,arguments)}function Ve(n,t){return(Ve=Object.setPrototypeOf||function(n,t){return n.__proto__=t,n})(n,t)}function Ue(n,t){return t||(t=n.slice(0)),n.raw=t,n}function $e(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}function Le(n,t){var e;if("undefined"==typeof Symbol||null==n[Symbol.iterator]){if(Array.isArray(n)||(e=function(n,t){if(n){if("string"==typeof n)return $e(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);return"Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e?Array.from(n):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?$e(n,t):void 0}}(n))||t&&n&&"number"==typeof n.length){e&&(n=e);var r=0;return function(){return r>=n.length?{done:!0}:{done:!1,value:n[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(e=n[Symbol.iterator]()).next.bind(e)}var Be=function(){return(Be=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++)for(var i in t=arguments[e])Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n}).apply(this,arguments)},Je=new Map,Ge=new Map,He=!0,We=!1;function Ye(n){return n.replace(/[\s,]+/g," ").trim()}function Qe(n){var t,e,r,i=Ye(n);if(!Je.has(i)){var o=et(n,{experimentalFragmentVariables:We});if(!o||"Document"!==o.kind)throw new Error("Not a valid GraphQL document.");Je.set(i,function(n){var t=new Set(n.definitions);t.forEach((function(n){n.loc&&delete n.loc,Object.keys(n).forEach((function(e){var r=n[e];r&&"object"==typeof r&&t.add(r)}))}));var e=n.loc;return e&&(delete e.startToken,delete e.endToken),n}((t=o,e=new Set,r=[],t.definitions.forEach((function(n){if("FragmentDefinition"===n.kind){var t=n.name.value,i=Ye((u=n.loc).source.body.substring(u.start,u.end)),o=Ge.get(t);o&&!o.has(i)?He&&console.warn("Warning: fragment with name "+t+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||Ge.set(t,o=new Set),o.add(i),e.has(i)||(e.add(i),r.push(n))}else r.push(n);var u})),Be(Be({},t),{definitions:r}))))}return Je.get(i)}function ze(n){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];"string"==typeof n&&(n=[n]);var r=n[0];return t.forEach((function(t,e){r+=t&&"Document"===t.kind?t.loc.source.body:t,r+=n[e+1]})),Qe(r)}var Xe,Ke=ze;(Xe=ze||(ze={})).gql=Ke,Xe.resetCaches=function(){Je.clear(),Ge.clear()},Xe.disableFragmentWarnings=function(){He=!1},Xe.enableExperimentalFragmentVariables=function(){We=!0},Xe.disableExperimentalFragmentVariables=function(){We=!1},ze.default=ze;var Ze=ze;function nr(n,t){try{var e=n()}catch(n){return t(n)}return e&&e.then?e.then(void 0,t):e}var tr=function(n){var t,e;function r(t,e){var r;(r=n.call(this,t,e)||this).subject=new ve;var i=new ve;return r.subject.pipe(function(n){let t=arguments.length,e=Ee;we(arguments[arguments.length-1])&&(e=arguments[arguments.length-1],t--);let r=null;t>=2&&(r=arguments[1]);let i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new ge(n,r,i,e))}}(200,void 0,10)).subscribe((function(n){try{if(!n.length)return Promise.resolve();for(var t,e=or(n),o=e.mergedQuery,u=e.mergedVariables,s=e.mergedQueryAddedEvents,a=Le(e.unmergedQueryAddedEvents);!(t=a()).done;)i.next(t.value);return s.length?Promise.resolve(nr((function(){return Promise.resolve(r.superRequest(o,u)).then((function(n){ar(n,s)}))}),(function(n){if(n instanceof Wt.ClientError){var t=function(){var t=n.response,e=t.data,r=t.errors;if(!e)return{v:fr(s,n)};for(var i,o=Object.keys(e),u=[].concat(s),a=function(){var t=i.value,e=void 0;t.path.find((function(r,i,s){if(o.includes(r)){var a=ir(r),c=u.findIndex((function(n){return n.id===a}));if(-1===c)return!1;o.splice(i,1),e=u.splice(c,1)[0];var f=ur(n.response.data,e);s[i]=rr(s[i],a);var l=e.query,h=e.variables,d=Me({},n.response,{errors:[t],data:f,path:s}),v=new Wt.ClientError(d,{query:"string"!=typeof l?ct(l):l,variables:h});return cr(e,v),!0}return!1}))},c=Le(r);!(i=c()).done;)a();ar(e,u)}();if("object"==typeof t)return t.v}else fr(s,n)}))):Promise.resolve()}catch(n){return Promise.reject(n)}})),i.subscribe((function(n){try{var t=nr((function(){return Promise.resolve(r.superRequest(n.query,n.variables)).then((function(t){sr(t,n)}))}),(function(t){cr(n,t)}));return Promise.resolve(t&&t.then?t.then((function(){})):void 0)}catch(n){return Promise.reject(n)}})),r}e=n,(t=r).prototype=Object.create(e.prototype),t.prototype.constructor=t,Ve(t,e);var i=r.prototype;return i.superRequest=function(t,e){return n.prototype.request.call(this,t,e)},i.request=function(n,t,e){var r=this;return new Promise((function(i,o){var u={query:n,variables:t,id:er(),options:e,resolve:i,reject:o};r.subject.next(u)}))},r}(Yt.GraphQLClient),er=function(){return((n=21)=>{let t="",e=crypto.getRandomValues(new Uint8Array(n));for(;n--;){let r=63&e[n];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t})().replace(/[-_]/g,"")},rr=function(n,t){return n.replace("_"+t,"")},ir=function(n){var t=n.split("_");return t[t.length-1]},or=function(n){var t=[],e=[],r=n.reduce((function(n,r){var i=r.query,o=r.variables,u=r.id,s=r.options;if(null==s||!s.batch)return e.push(r),n;try{var a="string"==typeof i?et(i):i,c=a.definitions.find((function(n){return"FragmentDefinition"===n.kind})),f="string"==typeof i?i:ct(i),l=/@/.test(f);if(c||l)return e.push(r),n;var h=function(n){return function(n,t){return n+"_"+t}(n,u)};return n=n.addN(a,[o],h,h),t.push(r),n}catch(t){return e.push(r),n}}),At("BatchedQuery")),i=r.document,o=r.variables;return{mergedQuery:i&&ct(i),mergedVariables:o,mergedQueryAddedEvents:t,unmergedQueryAddedEvents:e}},ur=function(n,t){if(!n)return n;var e=Object.keys(n),r=t.id;return e.reduce((function(t,e){var i;return e.endsWith(r)&&(t=Me({},t,((i={})[rr(e,r)]=n[e],i))),t}),{})},sr=function(n,t){(0,t.resolve)(n)},ar=function(n,t){for(var e,r=Le(t);!(e=r()).done;){var i=e.value,o=ur(n,i);i.resolve(o)}},cr=function(n,t){(0,n.reject)(t)},fr=function(n,t){for(var e,r=Le(n);!(e=r()).done;)(0,e.value.reject)(t)},lr="sq:graphql-client",hr=Ct((function(n,t,e){return new tr(n+"/api/v1/"+t+"/graphql",{headers:{Authorization:"Bearer "+(e||"")}})}));function dr(n,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 vr(n,t,e){void 0===e&&(e={batch:!0});var r,i,o,u,a,c,l=(r=_e(),i=Re(),o=ke(),u=hr(i,o,r),a=Ce(),null!=(c=s(a,"sq:graphql-client",{attempts:0}))?c:u),h=f(dr,t),d=h[1];return[h[0],fn((function(t,r){void 0===r&&(r=!1);try{if(!l){var i=new Error("No GraphQL client found");return d({type:"errors",payload:i}),Promise.resolve(i)}return Promise.resolve(function(i,o){try{var u=(r||d({type:"loading"}),Promise.resolve(l.request(n,t,e)).then((function(n){return d({type:"data",payload:n}),n})))}catch(n){return o(n)}return u&&u.then?u.then(void 0,o):u}(0,(function(n){return d({type:"errors",payload:n}),n})))}catch(n){return Promise.reject(n)}}),[l,n,d])]}var mr,pr={loading:!1,data:void 0,errors:void 0};function yr(n){var t=vr(n,pr);return[t[1],t[0]]}var br,wr=Ze(mr||(mr=Ue(["\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 Er(){var n=yr(wr),t=n[0],e=n[1];return[function(n){try{return Promise.resolve(t(n)).then((function(n){if(!(n instanceof Error)&&n.authenticateManagedIdentityWithEmailAndPassword){var t=n.authenticateManagedIdentityWithEmailAndPassword.token,e=gt(t).user;on({jwt:t,id:e.id,accountId:e.accountId,managedIdentity:{email:n.authenticateManagedIdentityWithEmailAndPassword.email,emailVerified:n.authenticateManagedIdentityWithEmailAndPassword.emailVerified,sessionData:n.authenticateManagedIdentityWithEmailAndPassword.sessionData}})}return n}))}catch(n){return Promise.reject(n)}},{loading:e.loading,data:e.data,errors:e.errors}]}var gr,Sr=Ze(br||(br=Ue(["\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 Ir(){var n=yr(Sr),t=n[0],e=n[1];return[function(n){try{return Promise.resolve(t(n)).then((function(n){if(!(n instanceof Error)&&n.registerManagedIdentityWithEmailAndPassword){var t=n.registerManagedIdentityWithEmailAndPassword.token,e=gt(t).user;on({jwt:t,id:e.id,accountId:e.accountId,managedIdentity:{email:n.registerManagedIdentityWithEmailAndPassword.email,emailVerified:n.registerManagedIdentityWithEmailAndPassword.emailVerified,sessionData:n.registerManagedIdentityWithEmailAndPassword.sessionData}})}return n}))}catch(n){return Promise.reject(n)}},{loading:e.loading,data:e.data,errors:e.errors}]}var Or,Tr=Ze(gr||(gr=Ue(["\n mutation RegisterViaRegistrationForm($key: String!, $formData: RSJsonNode!) {\n submitForm(formSubmissionInput: { key: $key, formData: $formData }) {\n results {\n ... on FormHandlerSubmissionResult {\n result\n formHandler {\n namespace\n }\n }\n ... on FormHandlerError {\n errorCode\n error\n errorType\n formHandler {\n name\n endpointUrl\n }\n }\n }\n }\n }\n"])));function Nr(){var n=yr(Tr),t=n[0],e=n[1],r=e.loading,i=e.data,o=e.errors,u=l(null),s=u[1];return[function(n){try{return s(null),Promise.resolve(t(n)).then((function(n){var t,e,r,i;if(n instanceof Error)return n;var o=null==(t=n.submitForm)||null==(e=t.results)?void 0:e.find((function(n){var t;return"identity"===(null==n||null==(t=n.formHandler)?void 0:t.namespace)}));if(o&&null!=(r=o.result)&&null!=(i=r.results)&&i.length){var u=o.result.results[0];if(u.success){var a=u.data.token,c=gt(a).user;on({jwt:a,id:c.id,accountId:c.accountId,managedIdentity:{email:u.data.email,emailVerified:u.data.emailVerified,sessionData:u.data.sessionData}})}else s(u.message)}return n}))}catch(n){return Promise.reject(n)}},{loading:r,data:i,errors:o,formError:u[0]}]}var jr,Fr=Ze(Or||(Or=Ue(["\n mutation ChangePassword($password: String!) {\n changeManagedIdentityPassword(\n changeManagedIdentityPasswordInput: { password: $password }\n ) {\n success\n }\n }\n"])));function Cr(){var n=yr(Fr),t=n[1];return[n[0],{loading:t.loading,data:t.data,errors:t.errors}]}var Dr,Ar=Ze(jr||(jr=Ue(["\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 Pr(){var n=yr(Ar),t=n[0],e=n[1];return[function(n){try{return Promise.resolve(t(n)).then((function(n){if(!(n instanceof Error)&&n.resetManagedIdentityPassword){var t=n.resetManagedIdentityPassword.token,e=gt(t).user;on({jwt:t,id:e.id,accountId:e.accountId,managedIdentity:{email:n.resetManagedIdentityPassword.email,emailVerified:n.resetManagedIdentityPassword.emailVerified,sessionData:n.resetManagedIdentityPassword.sessionData}})}return n}))}catch(n){return Promise.reject(n)}},{loading:e.loading,data:e.data,errors:e.errors}]}var _r=Ze(Dr||(Dr=Ue(["\n mutation VerifyPasswordResetCode($oobCode: String!) {\n verifyManagedIdentityPasswordResetCode(\n verifyManagedIdentityPasswordResetCodeInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function xr(){return yr(_r)}function kr(){var n=Ce();return{refresh:fn((function(){n.dispatchEvent(new CustomEvent("sq:refresh",{bubbles:!0,composed:!0,cancelable:!0,detail:{}}))}),[n])}}function Rr(n){var t=n.skip,r=void 0!==t&&t,i=n.update,o=n.variables;u((function(){var n=function(){!r&&i(o,!0)};return document.addEventListener("sq:refresh",n),function(){return document.removeEventListener("sq:refresh",n)}}),function(n){var t=h(n),r=h(0);return g(n,t.current)||(t.current=n,r.current+=1),e((function(){return t.current}),[r.current])}([o,i,r]))}var qr,Mr={loading:!1,data:void 0,errors:void 0},Vr=Symbol();function Ur(n){var t=vr(n,Mr),e=t[0],r=t[1],i=h(Vr);Rr({skip:i.current===Vr,update:r,variables:i.current});var o=fn((function(n){return i.current=n,r(n)}),[r]);return[r,Me({},e,{refetch:o})]}var $r,Lr=Ze(qr||(qr=Ue(["\n query ManagedIdentitySession {\n managedIdentitySession {\n email\n emailVerified\n sessionData\n }\n }\n"])));function Br(){var n=xe(),t=Ur(Lr),e=t[0],r=t[1],i=r.refetch,o=function(t){t instanceof Error||!t.managedIdentitySession||on(Me({},n,{managedIdentity:t.managedIdentitySession}))};return[function(){try{return Promise.resolve(e({})).then((function(n){return o(n),n}))}catch(n){return Promise.reject(n)}},{loading:r.loading,data:r.data,errors:r.errors,refetch:function(){try{return Promise.resolve(i()).then((function(n){return o(n),n}))}catch(n){return Promise.reject(n)}}}]}var Jr,Gr=Ze($r||($r=Ue(["\n mutation VerifyEmail($oobCode: String!) {\n verifyManagedIdentityEmail(\n verifyManagedIdentityEmailInput: { oobCode: $oobCode }\n ) {\n success\n }\n }\n"])));function Hr(){var n=Br()[0],t=yr(Gr),e=t[0],r=t[1];return[function(t){try{return Promise.resolve(e(t)).then((function(t){var e=function(){if(!(t instanceof Error)&&t.verifyManagedIdentityEmail.success)return Promise.resolve(n()).then((function(){}))}();return e&&e.then?e.then((function(){return t})):t}))}catch(t){return Promise.reject(t)}},{loading:r.loading,data:r.data,errors:r.errors}]}var Wr,Yr=Ze(Jr||(Jr=Ue(["\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 Qr(){return yr(Yr)}var zr,Xr=Ze(Wr||(Wr=Ue(["\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 Kr(){return yr(Xr)}var Zr,ni=Ze(zr||(zr=Ue(["\n mutation authenticateManagedIdentityWithInstantAccess(\n $email: String!\n $firstName: String\n $lastName: String\n $locale: RSLocale\n $countryCode: RSCountryCode\n $cookies: String\n ) {\n authenticateManagedIdentityWithInstantAccess(\n authenticateManagedIdentityWithInstantAccessInput: {\n email: $email\n firstName: $firstName\n lastName: $lastName\n locale: $locale\n countryCode: $countryCode\n cookies: $cookies\n }\n ) {\n email\n emailVerified\n sessionData\n token\n }\n }\n"])));function ti(){var n=Pe(),t=R(),e=yr(ni),r=e[0],i=e[1];return[function(e){try{return Promise.resolve(r(e)).then((function(e){var r=function(){if(!(e instanceof Error)&&e.authenticateManagedIdentityWithInstantAccess)return Promise.resolve(function(n,t){try{return Promise.resolve(function(e,r){try{var i=Promise.resolve(fetch($()+"/api/v1/"+V()+"/graphql",{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer "+t},body:JSON.stringify({query:"\n query checkReferralFraudStatus($programId: ID) {\n viewer {\n ... on User {\n id\n instantAccessRewards(filter: { programId_eq: $programId }) {\n data {\n id\n pendingReasons\n cancelledReason\n }\n }\n }\n }\n }\n",variables:{programId:n}})})).then((function(n){if(!n.ok)throw new Error("Failed to fetch locale");return Promise.resolve(n.json()).then((function(n){var t;if(n.errors)throw new Error(JSON.stringify(n.errors,null,2));var e=(null==(t=n.data.viewer.instantAccessRewards)?void 0:t.data)||[];return e.some((function(n){return"SUSPECTED_FRAUD"===n.cancelledReason}))?"DENIED":e.some((function(n){var t;return null==(t=n.pendingReasons)?void 0:t.includes("SUSPECTED_FRAUD")}))?"PENDING_REVIEW":"APPROVED"}))}))}catch(n){return r(n)}return i&&i.then?i.then(void 0,r):i}(0,(function(n){console.error(n)})))}catch(n){return Promise.reject(n)}}(n,e.authenticateManagedIdentityWithInstantAccess.token)).then((function(n){if("APPROVED"!==n)throw{name:"fraud_error",message:"Referral flagged as fraud."};var r=e.authenticateManagedIdentityWithInstantAccess.email;if(on({jwt:e.authenticateManagedIdentityWithInstantAccess.token,id:r,accountId:r}),"SquatchJS2"===t){var i=new CustomEvent("sq:user-registration",{bubbles:!0,detail:{userId:r,accountId:r}});document.dispatchEvent(i)}}))}();return r&&r.then?r.then((function(){return e})):e}))}catch(n){return Promise.reject(n)}},{loading:i.loading,data:i.data,errors:i.errors}]}var ei=Yt.gql(Zr||(Zr=Ue(["\n mutation authenticateManagedIdentityWithGoogle($idToken: String!) {\n authenticateManagedIdentityWithGoogle(\n authenticateManagedIdentityWithGoogleInput: { idToken: $idToken }\n ) {\n token\n email\n emailVerified\n sessionData\n }\n }\n"])));function ri(){var n=yr(ei),t=n[0],e=n[1];return[function(n){try{return Promise.resolve(t(n)).then((function(n){if(!(n instanceof Error)&&n.authenticateManagedIdentityWithGoogle){var t=n.authenticateManagedIdentityWithGoogle.token,e=gt(t).user;on({jwt:t,id:e.id,accountId:e.accountId,managedIdentity:{email:n.authenticateManagedIdentityWithGoogle.email,emailVerified:n.authenticateManagedIdentityWithGoogle.emailVerified,sessionData:n.authenticateManagedIdentityWithGoogle.sessionData}})}return n}))}catch(n){return Promise.reject(n)}},{loading:e.loading,data:e.data,errors:e.errors}]}function ii(){return f((function(n){return n+1}),0)}function oi(n){for(var t,e=Le(Object.getOwnPropertyNames(n));!(t=e()).done;){var r=n[t.value];r&&"object"==typeof r&&oi(r)}return Object.freeze(n)}var ui={loading:!0,data:void 0,errors:void 0};function si(n,t,e,r){var i=vr(n,ui,Me({batch:!0},r||{})),o=i[0],u=i[1],s=ii(),a=s[1];return function(n,t){var e=h();e.current&&g(t,e.current.key)||(e.current={key:t,value:n()})}((function(){!e&&u(t)}),[n,t,u,s[0],e]),Rr({skip:e,update:u,variables:t}),oi(Me({},o,{refetch:a}))}function ai(n){var t=Ce(),e=a(t,hi(n.namespace),n.initialValue),r=e[0],i=e[1];return a(t,di(n.namespace),[r,i]),[r,i]}function ci(n){var t=c(di(n)),e=c(hi(n));return t?[e,t[1]]:[void 0,void 0]}function fi(n){var t=c(di(n));if(t)return t[1]}function li(n){return c(hi(n))}function hi(n){return n+"-value"}function di(n){return n+"-state"}function vi(n){var t=Ce(),e=si(n.query,n.variables||{},n.skip,Me({batch:!0},n.options||{})),r=a(t,hi(n.namespace),e),i=r[0],o=r[1];return u((function(){je.deepEqual(e,i)||o(e)}),[e,i]),e}function mi(n){return c(hi(n))||{data:null,loading:!0,refetch:function(){return console.warn("component still loading")}}}function pi(){var n=ii()[1];return u((function(){return W.listen((function(){n()}))}),[]),W.location}var yi,bi=W;function wi(n,t,e,r,i){var o;void 0===r&&(r={}),void 0===i&&(i=!1);var u=function(n){var t=l({limit:n.limit,offset:n.offset}),e=t[0],r=t[1],i=e.offset,o=e.limit,u=function(n,t){return n*t},s=function(n,t){return Math.ceil(n/t)||0};return{limit:o,setLimit:function(n){var t=s(i,n),o=u(n,t);r(Me({},e,{limit:n,offset:o}))},offset:i,setCurrentPage:function(n){var t=u(n,o);r((function(n){return Me({},n,{offset:t})}))},calculatePagination:function(n,t){var e=s(i,o),r=function(n,t){return Math.ceil(n/t)||0}(t,o),u=0===n?"0":n>1?i+1+"-"+(i+n):""+(i+1);return{currentPage:e,pageCount:r,rangeOnPage:u,pageProgress:u+" of "+t}}}}(e),s=u.limit,a=u.setLimit,c=u.setCurrentPage,f=u.calculatePagination,h=si(n,Me({limit:s,offset:u.offset},r),i),d=h.loading,v=h.errors,m=h.refetch,p=t(h.data),y=f((null==p||null==(o=p.data)?void 0:o.length)||0,(null==p?void 0:p.totalCount)||0);return{envelope:p,states:{errors:v,loading:d,limit:s,currentPage:y.currentPage,pageCount:y.pageCount,pageProgress:y.pageProgress},callbacks:{refetch:m,setLimit:a,setCurrentPage:c}}}Yt.gql(yi||(yi=Ue(["\n mutation ($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"])));var Ei=1e3,gi=6e4,Si=60*gi,Ii=24*Si,Oi=function(n,t){t=t||{};var e=typeof n;if("string"===e&&n.length>0)return function(n){if(!((n=String(n)).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(n);if(t){var e=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*e;case"weeks":case"week":case"w":return 6048e5*e;case"days":case"day":case"d":return e*Ii;case"hours":case"hour":case"hrs":case"hr":case"h":return e*Si;case"minutes":case"minute":case"mins":case"min":case"m":return e*gi;case"seconds":case"second":case"secs":case"sec":case"s":return e*Ei;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return e;default:return}}}}(n);if("number"===e&&isFinite(n))return t.long?function(n){var t=Math.abs(n);return t>=Ii?Ti(n,t,Ii,"day"):t>=Si?Ti(n,t,Si,"hour"):t>=gi?Ti(n,t,gi,"minute"):t>=Ei?Ti(n,t,Ei,"second"):n+" ms"}(n):function(n){var t=Math.abs(n);return t>=Ii?Math.round(n/Ii)+"d":t>=Si?Math.round(n/Si)+"h":t>=gi?Math.round(n/gi)+"m":t>=Ei?Math.round(n/Ei)+"s":n+"ms"}(n);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(n))};function Ti(n,t,e,r){var i=t>=1.5*e;return Math.round(n/e)+" "+r+(i?"s":"")}var Ni,ji,Fi,Ci,Di,Ai=(function(n,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;const e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(n=>{"%%"!==n&&(r++,"%c"===n&&(i=r))})),t.splice(i,0,e)},t.save=function(n){try{n?t.storage.setItem("debug",n):t.storage.removeItem("debug")}catch(n){}},t.load=function(){let n;try{n=t.storage.getItem("debug")}catch(n){}return!n&&"undefined"!=typeof process&&"env"in process&&(n=process.env.DEBUG),n},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(n){}}(),t.destroy=(()=>{let n=!1;return()=>{n||(n=!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||(()=>{}),n.exports=function(n){function t(n){let r,i=null;function o(...n){if(!o.enabled)return;const e=o,i=Number(new Date);e.diff=i-(r||i),e.prev=r,e.curr=i,r=i,n[0]=t.coerce(n[0]),"string"!=typeof n[0]&&n.unshift("%O");let u=0;n[0]=n[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";u++;const o=t.formatters[i];return"function"==typeof o&&(r=o.call(e,n[u]),n.splice(u,1),u--),r})),t.formatArgs.call(e,n),(e.log||t.log).apply(e,n)}return o.namespace=n,o.useColors=t.useColors(),o.color=t.selectColor(n),o.extend=e,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null===i?t.enabled(n):i,set:n=>{i=n}}),"function"==typeof t.init&&t.init(o),o}function e(n,e){const r=t(this.namespace+(void 0===e?":":e)+n);return r.log=this.log,r}function r(n){return n.toString().substring(2,n.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(n){return n instanceof Error?n.stack||n.message:n},t.disable=function(){const n=[...t.names.map(r),...t.skips.map(r).map((n=>"-"+n))].join(",");return t.enable(""),n},t.enable=function(n){let e;t.save(n),t.names=[],t.skips=[];const r=("string"==typeof n?n:"").split(/[\s,]+/),i=r.length;for(e=0;e<i;e++)r[e]&&("-"===(n=r[e].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+n.substr(1)+"$")):t.names.push(new RegExp("^"+n+"$")))},t.enabled=function(n){if("*"===n[n.length-1])return!0;let e,r;for(e=0,r=t.skips.length;e<r;e++)if(t.skips[e].test(n))return!1;for(e=0,r=t.names.length;e<r;e++)if(t.names[e].test(n))return!0;return!1},t.humanize=Oi,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(n).forEach((e=>{t[e]=n[e]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(n){let e=0;for(let t=0;t<n.length;t++)e=(e<<5)-e+n.charCodeAt(t),e|=0;return t.colors[Math.abs(e)%t.colors.length]},t.enable(t.load()),t}(t);const{formatters:e}=n.exports;e.j=function(n){try{return JSON.stringify(n)}catch(n){return"[UnexpectedJSONParseError]: "+n.message}}}(Ni={exports:{}},Ni.exports),Ni.exports);Ai("sq:load-event"),Yt.gql(ji||(ji=Ue(["\n mutation loadEvent($eventMeta: UserAnalyticsEvent!) {\n createUserAnalyticsEvent(eventMeta: $eventMeta)\n }\n"]))),Ai("sq:useForm"),Yt.gql(Fi||(Fi=Ue(["\n query ($key: String!) {\n form(key: $key) {\n schema\n initialData {\n initialData\n isEnabled\n isEnabledErrorMessage\n }\n }\n }\n"]))),Yt.gql(Ci||(Ci=Ue(["\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"]))),Yt.gql(Di||(Di=Ue(["\n query ($formValidationInput: FormValidationInput!) {\n validateForm(formValidationInput: $formValidationInput) {\n valid\n results {\n ... on FormHandlerValidationResult {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n result\n }\n ... on FormHandlerError {\n formHandler {\n name\n endpointUrl\n integration {\n name\n }\n }\n errorType\n error\n errorCode\n }\n }\n }\n }\n"])));export{yr as $,qe as B,hr as E,li as F,_e as G,Pe as H,ai as I,xe as J,Ae as L,hi as M,Nr as O,lr as P,kr as Q,wi as R,vi as S,Pr as T,De as U,Ir as V,Ur as X,Ce as _,Er as a,fn as b,Hr as c,Yt as d,ke as e,xr as f,q as g,ri as h,M as i,bi as j,pi as k,Kr as l,cn as m,Br as n,fi as o,Cr as p,ci as q,mi as r,on as s,Qr as u,ti as v,si as w,ii as y}
|