@volter/twin-clerk 0.1.0
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/LICENSE +202 -0
- package/README.md +102 -0
- package/client/clerk-js-dist/167_clerk.headless_b86dff_5.127.2.js +1 -0
- package/client/clerk-js-dist/2172_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/2172_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/368_clerk.headless_b86dff_5.127.2.js +3 -0
- package/client/clerk-js-dist/377_clerk.headless_b86dff_5.127.2.js +1 -0
- package/client/clerk-js-dist/4170_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/4170_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/437_clerk.headless_b86dff_5.127.2.js +1 -0
- package/client/clerk-js-dist/5192_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/5192_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/553_clerk.headless_b86dff_5.127.2.js +1 -0
- package/client/clerk-js-dist/5645_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/5645_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/623_clerk.headless_b86dff_5.127.2.js +42 -0
- package/client/clerk-js-dist/7067_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/7067_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/7502_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/7502_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/785_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/client/clerk-js-dist/785_clerk.headless_b86dff_5.127.2.js +1 -0
- package/client/clerk-js-dist/8043_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/825_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/client/clerk-js-dist/825_clerk.headless_b86dff_5.127.2.js +1 -0
- package/client/clerk-js-dist/890_clerk.headless_b86dff_5.127.2.js +2 -0
- package/client/clerk-js-dist/901_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/client/clerk-js-dist/apiKeys_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/apiKeys_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/base-account-sdk_clerk.browser_0cc2cc_5.127.2.js +42 -0
- package/client/clerk-js-dist/base-account-sdk_clerk.headless.browser_540199_5.127.2.js +42 -0
- package/client/clerk-js-dist/base-account-sdk_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/blankcaptcha_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/blankcaptcha_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/checkout_clerk.browser_0cc2cc_5.127.2.js +9 -0
- package/client/clerk-js-dist/checkout_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/clerk.browser.js +19 -0
- package/client/clerk-js-dist/clerk.headless.browser.js +19 -0
- package/client/clerk-js-dist/clerk.headless.js +19 -0
- package/client/clerk-js-dist/clerk.js +809 -0
- package/client/clerk-js-dist/clerk.legacy.browser.js +1 -0
- package/client/clerk-js-dist/clerk.no-rhc.js +766 -0
- package/client/clerk-js-dist/coinbase-wallet-sdk_clerk.browser_0cc2cc_5.127.2.js +3 -0
- package/client/clerk-js-dist/coinbase-wallet-sdk_clerk.headless.browser_540199_5.127.2.js +3 -0
- package/client/clerk-js-dist/coinbase-wallet-sdk_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/cookieSuffix_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/cookieSuffix_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/client/clerk-js-dist/cookieSuffix_clerk.headless_b86dff_5.127.2.js +1 -0
- package/client/clerk-js-dist/cookieSuffix_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/copy-api-key-modal_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/copy-api-key-modal_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/createorganization_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/createorganization_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/enableOrganizationsPrompt_clerk.browser_0cc2cc_5.127.2.js +247 -0
- package/client/clerk-js-dist/enableOrganizationsPrompt_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/framework_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/framework_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/impersonationfab_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/impersonationfab_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/keylessPrompt_clerk.browser_0cc2cc_5.127.2.js +228 -0
- package/client/clerk-js-dist/keylessPrompt_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/oauthConsent_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/oauthConsent_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/onetap_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/onetap_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/op-api-keys-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/op-api-keys-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/op-billing-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/op-billing-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/op-plans-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/op-plans-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/organizationlist_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/organizationlist_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/organizationprofile_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/organizationprofile_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/organizationswitcher_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/organizationswitcher_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/payment-attempt-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/payment-attempt-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/planDetails_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/planDetails_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/prefetchorganizationlist_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/prefetchorganizationlist_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/pricingTable_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/pricingTable_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/query-core-vendors_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/query-core-vendors_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/client/clerk-js-dist/query-core-vendors_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/revoke-api-key-modal_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/revoke-api-key-modal_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/sessionTasks_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/sessionTasks_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/signin_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/signin_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/signup_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/signup_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/statement-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/statement-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/stripe-vendors_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/stripe-vendors_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/client/clerk-js-dist/stripe-vendors_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/subscriptionDetails_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/subscriptionDetails_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/taskChooseOrganization_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/taskChooseOrganization_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/taskResetPassword_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/taskResetPassword_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/taskSetupMFA_clerk.browser_0cc2cc_5.127.2.js +4 -0
- package/client/clerk-js-dist/taskSetupMFA_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/ui-common_clerk.browser_0cc2cc_5.127.2.js +124 -0
- package/client/clerk-js-dist/ui-common_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/up-api-keys-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/up-api-keys-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/up-billing-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/up-billing-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/up-plans-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/up-plans-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/useravatar_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/useravatar_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/userbutton_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/userbutton_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/userprofile_clerk.browser_0cc2cc_5.127.2.js +4 -0
- package/client/clerk-js-dist/userprofile_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/userverification_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/userverification_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/vendors_clerk.browser_0cc2cc_5.127.2.js +20 -0
- package/client/clerk-js-dist/vendors_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/client/clerk-js-dist/vendors_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/waitlist_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/waitlist_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/web3-solana-wallet-buttons_clerk.browser_0cc2cc_5.127.2.js +143 -0
- package/client/clerk-js-dist/web3-solana-wallet-buttons_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/zxcvbn-common_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/client/clerk-js-dist/zxcvbn-common_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/client/clerk-js-dist/zxcvbn-common_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-js-dist/zxcvbn-ts-core_clerk.browser_0cc2cc_5.127.2.js +2 -0
- package/client/clerk-js-dist/zxcvbn-ts-core_clerk.headless.browser_540199_5.127.2.js +2 -0
- package/client/clerk-js-dist/zxcvbn-ts-core_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/client/clerk-mirror.css +72 -0
- package/client/clerk-mirror.tsx +204 -0
- package/client/clerk.browser.js +19 -0
- package/dist/client/clerk-js-dist/167_clerk.headless_b86dff_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/2172_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/2172_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/368_clerk.headless_b86dff_5.127.2.js +3 -0
- package/dist/client/clerk-js-dist/377_clerk.headless_b86dff_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/4170_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/4170_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/437_clerk.headless_b86dff_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/5192_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/5192_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/553_clerk.headless_b86dff_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/5645_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/5645_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/623_clerk.headless_b86dff_5.127.2.js +42 -0
- package/dist/client/clerk-js-dist/7067_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/7067_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/7502_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/7502_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/785_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/785_clerk.headless_b86dff_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/8043_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/825_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/825_clerk.headless_b86dff_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/890_clerk.headless_b86dff_5.127.2.js +2 -0
- package/dist/client/clerk-js-dist/901_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/apiKeys_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/apiKeys_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/base-account-sdk_clerk.browser_0cc2cc_5.127.2.js +42 -0
- package/dist/client/clerk-js-dist/base-account-sdk_clerk.headless.browser_540199_5.127.2.js +42 -0
- package/dist/client/clerk-js-dist/base-account-sdk_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/blankcaptcha_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/blankcaptcha_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/checkout_clerk.browser_0cc2cc_5.127.2.js +9 -0
- package/dist/client/clerk-js-dist/checkout_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/clerk.browser.js +19 -0
- package/dist/client/clerk-js-dist/clerk.headless.browser.js +19 -0
- package/dist/client/clerk-js-dist/clerk.headless.js +19 -0
- package/dist/client/clerk-js-dist/clerk.js +809 -0
- package/dist/client/clerk-js-dist/clerk.legacy.browser.js +1 -0
- package/dist/client/clerk-js-dist/clerk.no-rhc.js +766 -0
- package/dist/client/clerk-js-dist/coinbase-wallet-sdk_clerk.browser_0cc2cc_5.127.2.js +3 -0
- package/dist/client/clerk-js-dist/coinbase-wallet-sdk_clerk.headless.browser_540199_5.127.2.js +3 -0
- package/dist/client/clerk-js-dist/coinbase-wallet-sdk_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/cookieSuffix_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/cookieSuffix_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/cookieSuffix_clerk.headless_b86dff_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/cookieSuffix_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/copy-api-key-modal_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/copy-api-key-modal_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/createorganization_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/createorganization_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/enableOrganizationsPrompt_clerk.browser_0cc2cc_5.127.2.js +247 -0
- package/dist/client/clerk-js-dist/enableOrganizationsPrompt_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/framework_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/framework_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/impersonationfab_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/impersonationfab_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/keylessPrompt_clerk.browser_0cc2cc_5.127.2.js +228 -0
- package/dist/client/clerk-js-dist/keylessPrompt_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/oauthConsent_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/oauthConsent_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/onetap_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/onetap_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/op-api-keys-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/op-api-keys-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/op-billing-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/op-billing-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/op-plans-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/op-plans-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/organizationlist_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/organizationlist_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/organizationprofile_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/organizationprofile_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/organizationswitcher_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/organizationswitcher_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/payment-attempt-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/payment-attempt-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/planDetails_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/planDetails_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/prefetchorganizationlist_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/prefetchorganizationlist_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/pricingTable_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/pricingTable_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/query-core-vendors_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/query-core-vendors_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/query-core-vendors_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/revoke-api-key-modal_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/revoke-api-key-modal_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/sessionTasks_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/sessionTasks_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/signin_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/signin_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/signup_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/signup_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/statement-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/statement-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/stripe-vendors_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/stripe-vendors_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/stripe-vendors_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/subscriptionDetails_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/subscriptionDetails_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/taskChooseOrganization_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/taskChooseOrganization_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/taskResetPassword_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/taskResetPassword_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/taskSetupMFA_clerk.browser_0cc2cc_5.127.2.js +4 -0
- package/dist/client/clerk-js-dist/taskSetupMFA_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/ui-common_clerk.browser_0cc2cc_5.127.2.js +124 -0
- package/dist/client/clerk-js-dist/ui-common_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/up-api-keys-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/up-api-keys-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/up-billing-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/up-billing-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/up-plans-page_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/up-plans-page_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/useravatar_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/useravatar_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/userbutton_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/userbutton_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/userprofile_clerk.browser_0cc2cc_5.127.2.js +4 -0
- package/dist/client/clerk-js-dist/userprofile_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/userverification_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/userverification_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/vendors_clerk.browser_0cc2cc_5.127.2.js +20 -0
- package/dist/client/clerk-js-dist/vendors_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/vendors_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/waitlist_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/waitlist_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/web3-solana-wallet-buttons_clerk.browser_0cc2cc_5.127.2.js +143 -0
- package/dist/client/clerk-js-dist/web3-solana-wallet-buttons_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/zxcvbn-common_clerk.browser_0cc2cc_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/zxcvbn-common_clerk.headless.browser_540199_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/zxcvbn-common_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-js-dist/zxcvbn-ts-core_clerk.browser_0cc2cc_5.127.2.js +2 -0
- package/dist/client/clerk-js-dist/zxcvbn-ts-core_clerk.headless.browser_540199_5.127.2.js +2 -0
- package/dist/client/clerk-js-dist/zxcvbn-ts-core_clerk.legacy.browser_6070dd_5.127.2.js +1 -0
- package/dist/client/clerk-mirror.bundle.js +321 -0
- package/dist/client/clerk-mirror.css +72 -0
- package/dist/client/clerk-mirror.d.ts +33 -0
- package/dist/client/clerk-mirror.js +143 -0
- package/dist/client/clerk-mirror.tsx +204 -0
- package/dist/client/clerk.browser.js +19 -0
- package/dist/src/clerk-capabilities.d.ts +4 -0
- package/dist/src/clerk-capabilities.js +1132 -0
- package/dist/src/clerk-conformance.d.ts +32 -0
- package/dist/src/clerk-conformance.js +158 -0
- package/dist/src/clerk-connector.d.ts +170 -0
- package/dist/src/clerk-connector.js +223 -0
- package/dist/src/clerk-events.d.ts +55 -0
- package/dist/src/clerk-events.js +146 -0
- package/dist/src/clerk-fapi.d.ts +19 -0
- package/dist/src/clerk-fapi.js +665 -0
- package/dist/src/clerk-jwt.d.ts +109 -0
- package/dist/src/clerk-jwt.js +230 -0
- package/dist/src/clerk-mirror-ui.d.ts +34 -0
- package/dist/src/clerk-mirror-ui.js +160 -0
- package/dist/src/clerk-server.d.ts +35 -0
- package/dist/src/clerk-server.js +172 -0
- package/dist/src/clerk-twin.d.ts +28 -0
- package/dist/src/clerk-twin.js +1658 -0
- package/dist/src/cli.d.ts +2 -0
- package/dist/src/cli.js +35 -0
- package/dist/src/index.d.ts +12 -0
- package/dist/src/index.js +56 -0
- package/dist/test-fixtures/clerk-openapi-operations.SOURCE.md +16 -0
- package/dist/test-fixtures/clerk-openapi-operations.json +1989 -0
- package/package.json +76 -0
- package/src/clerk-capabilities.ts +1246 -0
- package/src/clerk-conformance.ts +172 -0
- package/src/clerk-connector.ts +268 -0
- package/src/clerk-events.ts +166 -0
- package/src/clerk-fapi.ts +673 -0
- package/src/clerk-jwt.ts +256 -0
- package/src/clerk-mirror-ui.ts +165 -0
- package/src/clerk-server.ts +175 -0
- package/src/clerk-twin.ts +1580 -0
- package/src/cli.ts +33 -0
- package/src/index.ts +94 -0
- package/test-fixtures/clerk-openapi-operations.SOURCE.md +16 -0
- package/test-fixtures/clerk-openapi-operations.json +1989 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_clerk_clerk_js=globalThis.webpackChunk_clerk_clerk_js||[]).push([["9573"],{3656:function(e,t,r){r.d(t,{getDebugLogger:()=>s}),r(92823);class n{logLevel;transport;constructor(e,t){this.transport=e,this.logLevel=t??"debug"}debug(e,t,r){this.log("debug",e,t,r)}error(e,t,r){this.log("error",e,t,r)}info(e,t,r){this.log("info",e,t,r)}warn(e,t,r){this.log("warn",e,t,r)}log(e,t,r,n){if(!this.shouldLogLevel(e))return;let o={timestamp:Date.now(),level:e,message:t,context:r,source:n};this.transport.send(o).catch(e=>{console.error("Failed to send log entry:",e)})}shouldLogLevel(e){let t=["error","warn","info","debug"],r=t.indexOf(this.logLevel);return t.indexOf(e)<=r}}class o{transports;constructor(e){this.transports=e}async send(e){let t=this.transports.map(t=>t.send(e).catch(e=>{console.error("Failed to send to transport:",e)}));await Promise.allSettled(t)}}class i{send(e){return Promise.resolve()}}class a{collector;constructor(e){this.collector=e}async send(e){this.collector&&await Promise.resolve(this.collector.recordLog({context:e.context,level:e.level,message:e.message,organizationId:e.organizationId,sessionId:e.sessionId,source:e.source,timestamp:e.timestamp,userId:e.userId}))}}class l{static instance;initialized=!1;logger=null;initializationPromise=null;constructor(){}static getInstance(){return l.instance||(l.instance=new l),l.instance}async initialize(e={}){return this.initialized?this.logger:(this.initializationPromise||(this.initializationPromise=this.performInitialization(e)),this.initializationPromise)}async performInitialization(e){try{if(e.logLevel&&"string"!=typeof e.logLevel)throw Error("logLevel must be a string");let{logLevel:t,telemetryCollector:r}=e,l=[{transport:new i},...r?[{transport:new a(r)}]:[]].map(e=>e.transport),s=new o(l),c=new n(s,t??"info");return this.logger=c,this.initialized=!0,this.logger}catch(e){return console.error("Failed to initialize debug module:",e),this.initializationPromise=null,null}}getLogger(){return this.logger}isInitialized(){return this.initialized}reset(){this.initialized=!1,this.logger=null,this.initializationPromise=null}}async function s(e={}){return l.getInstance().initialize(e)}},54586:function(e,t,r){r.r(t),r.d(t,{QueryClient:()=>n.S});var n=r(95614)},86595:function(e,t,r){r.d(t,{N:()=>o});var n=r(28069);class o extends n.i{pathRoot="/dev_tools";fromJSON(e){return this}async __internal_enableEnvironmentSetting(e){await this._basePatch({path:`${this.pathRoot}/enable_environment_setting`,body:e})}}},71989:function(e,t,r){r.d(t,{c:()=>c});var n=r(73312),o=r(69144),i=r(64204),a=r(92418),l=r(2672),s=r(92654);let c=({title:e,subtitle:t,onClick:r,enterpriseConnections:o})=>{let c=(0,l.useCardState)();return(0,n.BX)(a.Z.Root,{children:[(0,n.BX)(a.Z.Content,{children:[(0,n.BX)(s.h.Root,{showLogo:!0,children:[(0,n.tZ)(s.h.Title,{localizationKey:e}),(0,n.tZ)(s.h.Subtitle,{localizationKey:t})]}),(0,n.tZ)(a.Z.Alert,{children:c.error}),(0,n.tZ)(i.Grid,{elementDescriptor:i.descriptors.enterpriseConnectionsRoot,gap:2,children:o?.map(({id:e,name:t})=>(0,n.tZ)(d,{id:e,label:t,onClick:r},e))})]}),(0,n.tZ)(a.Z.Footer,{})]})},d=e=>{let{label:t,onClick:r,...a}=e,[l,s]=(0,o.useState)(!1);return(0,n.tZ)(i.SimpleButton,{elementDescriptor:i.descriptors.enterpriseConnectionButton,variant:"outline",block:!0,isLoading:l,hoverAsFocus:!0,onClick:()=>{s(!0),r(e.id).catch(()=>s(!1))},...a,sx:e=>[{gap:e.space.$4,position:"relative",justifyContent:"flex-start"},a.sx],children:(0,n.BX)(i.Flex,{justify:"center",align:"center",as:"span",gap:3,sx:{width:"100%",overflow:"hidden"},children:[l&&(0,n.tZ)(i.Flex,{as:"span",center:!0,sx:e=>({flex:`0 0 ${e.space.$4}`}),children:(0,n.tZ)(i.Spinner,{size:"sm",elementDescriptor:i.descriptors.spinner})}),(0,n.tZ)(i.Text,{elementDescriptor:i.descriptors.enterpriseConnectionButtonText,as:"span",truncate:!0,variant:"buttonLarge",children:t})]})})}},94995:function(e,t,r){r.d(t,{O:()=>a});var n=r(73312),o=r(64204),i=r(87256);let a=({mount:e,unmount:t})=>(0,n.tZ)(o.Col,{elementDescriptor:o.descriptors.page,gap:8,children:(0,n.tZ)(o.Col,{elementDescriptor:o.descriptors.profilePage,gap:8,children:(0,n.tZ)(i.q,{mount:e,unmount:t})})})},22189:function(e,t,r){r.d(t,{P:()=>o});var n=r(61869);let o=({children:e})=>"development"!==(0,n.cL)().instanceType?null:e},15112:function(e,t,r){r.d(t,{$:()=>d,J:()=>c});var n=r(73312),o=r(2672),i=r(17703),a=r(40686);let l={verified:{title:(0,i.u1)("signIn.emailLink.verified.title"),subtitle:(0,i.u1)("signIn.emailLink.verified.subtitle")},verified_switch_tab:{title:(0,i.u1)("signIn.emailLink.verified.title"),subtitle:(0,i.u1)("signIn.emailLink.verifiedSwitchTab.subtitle")},loading:{title:(0,i.u1)("signIn.emailLink.loading.title"),subtitle:(0,i.u1)("signIn.emailLink.loading.subtitle")},failed:{title:(0,i.u1)("signIn.emailLink.failed.title"),subtitle:(0,i.u1)("signIn.emailLink.failed.subtitle")},expired:{title:(0,i.u1)("signIn.emailLink.expired.title"),subtitle:(0,i.u1)("signIn.emailLink.expired.subtitle")},client_mismatch:{title:(0,i.u1)("signIn.emailLink.clientMismatch.title"),subtitle:(0,i.u1)("signIn.emailLink.clientMismatch.subtitle")}},s={...l,verified:{...l.verified,title:(0,i.u1)("signUp.emailLink.verified.title")},verified_switch_tab:{...l.verified_switch_tab,title:(0,i.u1)("signUp.emailLink.verified.title")},loading:{...l.loading,title:(0,i.u1)("signUp.emailLink.loading.title")},client_mismatch:{...l.client_mismatch,subtitle:(0,i.u1)("signUp.emailLink.clientMismatch.subtitle")}},c=(0,o.withCardStateProvider)(e=>(0,n.tZ)(a.$,{...e,texts:l})),d=(0,o.withCardStateProvider)(e=>(0,n.tZ)(a.$,{...e,texts:s}))},36273:function(e,t,r){r.d(t,{E:()=>u});var n=r(73312);r(69144);var o=r(64204),i=r(92418),a=r(2672),l=r(92654),s=r(34174),c=r(51217);let d={verified:s.qy,verified_switch_tab:s.oX,expired:s.SV,failed:s.SV,client_mismatch:s.SV},u=e=>{let t=(0,a.useCardState)();return(0,n.tZ)(o.Flow.Part,{part:"emailLinkStatus",children:(0,n.BX)(i.Z.Root,{children:[(0,n.BX)(i.Z.Content,{children:[(0,n.BX)(l.h.Root,{children:[(0,n.tZ)(l.h.Title,{localizationKey:e.title}),(0,n.tZ)(l.h.Subtitle,{localizationKey:e.subtitle})]}),(0,n.tZ)(i.Z.Alert,{children:t.error}),(0,n.tZ)(o.Col,{elementDescriptor:o.descriptors.main,children:(0,n.tZ)(p,{status:e.status})})]}),(0,n.tZ)(i.Z.Footer,{})]})})},p=e=>(0,n.tZ)(o.Flex,{elementDescriptor:o.descriptors.verificationLinkStatusBox,center:!0,direction:"col",gap:8,children:"loading"===e.status?(0,n.tZ)(o.Spinner,{size:"xl",colorScheme:"primary",sx:e=>({margin:`${e.space.$12} 0`}),elementDescriptor:o.descriptors.spinner}):(0,n.BX)(n.HY,{children:[(0,n.tZ)(m,{status:e.status}),(0,n.tZ)(o.Text,{elementDescriptor:o.descriptors.verificationLinkStatusText,colorScheme:"secondary",localizationKey:(0,o.localizationKeys)("signIn.emailLink.unusedTab.title")})]})}),m=e=>{let{status:t}=e;return(0,n.tZ)(o.Flex,{elementDescriptor:o.descriptors.verificationLinkStatusIconBox,center:!0,sx:e=>({width:e.sizes.$24,height:e.sizes.$24,borderRadius:e.radii.$circle,backgroundColor:e.colors.$neutralAlpha100,color:({verified:e.colors.$success500,verified_switch_tab:e.colors.$primary500,expired:e.colors.$warning500,failed:e.colors.$danger500,client_mismatch:e.colors.$warning500})[t],animation:`${c.animations.dropdownSlideInScaleAndFade} 500ms ease`}),children:(0,n.tZ)(o.Icon,{elementDescriptor:o.descriptors.verificationLinkStatusIcon,icon:d[t],sx:e=>({height:e.sizes.$6,width:e.sizes.$5})})})}},40686:function(e,t,r){r.d(t,{$:()=>p});var n=r(73312),o=r(41024),i=r(61869),a=r(69144),l=r(63872),s=r(11576),c=r(24676),d=r(57046),u=r(36273);let p=e=>{let{redirectUrl:t,redirectUrlComplete:r,verifyEmailPath:p,verifyPhonePath:m,continuePath:h}=e,{handleEmailLinkVerification:g}=(0,i.cL)(),{navigate:f}=(0,c.useRouter)(),b=(0,s.useCoreSignUp)(),[v,y]=a.useState("loading"),w=async()=>{try{await (0,d._)(750),await g({redirectUrlComplete:r,redirectUrl:t},f),y("verified_switch_tab"),await (0,d._)(750),await (0,l.vx)({signUp:b,verifyEmailPath:p,verifyPhonePath:m,continuePath:h,navigate:f})}catch(e){if((0,o.G1)(e)&&(e.code===o.u$.Expired||e.code===o.u$.ClientMismatch))return void y(e.code);y(o.u$.Failed)}};return a.useEffect(()=>{w()},[]),(0,n.tZ)(u.E,{title:e.texts[v]?.title||"",subtitle:e.texts[v]?.subtitle||"",status:v})}},13559:function(e,t,r){r.d(t,{Ci:()=>c,Cv:()=>s,N2:()=>l});var n=r(73312),o=r(61869),i=r(69144),a=r(24676);let l=e=>{let{session:t}=(0,o.kP)();return!!t?.id&&("function"==typeof e?e(t.checkAuthorization):t.checkAuthorization(e))},s=e=>{let{children:t,fallback:r,redirectTo:o,...s}=e,c=l("function"==typeof s.condition?s.condition:s),{navigate:d}=(0,a.useRouter)();return((0,i.useEffect)(()=>{!c&&o&&d(o)},[c,o]),!c&&r)?(0,n.tZ)(n.HY,{children:r}):c?(0,n.tZ)(n.HY,{children:t}):null};function c(e,t){let r=e.displayName||e.name||"Component",o=r=>(0,n.tZ)(s,{...t,children:(0,n.tZ)(e,{...r})});return o.displayName=`withProtect(${r})`,o}},7772:function(e,t,r){r.d(t,{kJ:()=>l,vO:()=>a,vX:()=>i});var n=r(65059);let o=Object.freeze({email_address_username:{label:(0,n.u)("formFieldLabel__emailAddress_username"),placeholder:(0,n.u)("formFieldInputPlaceholder__emailAddress_username"),type:"text",action:(0,n.u)("signIn.start.actionLink__use_email_username"),validLastAuthenticationStrategies:new Set(["email_code","email_link","email_address","username","password"])},email_address:{label:(0,n.u)("formFieldLabel__emailAddress"),placeholder:(0,n.u)("formFieldInputPlaceholder__emailAddress"),type:"email",action:(0,n.u)("signIn.start.actionLink__use_email"),validLastAuthenticationStrategies:new Set(["email_code","email_link","email_address","password"])},phone_number:{label:(0,n.u)("formFieldLabel__phoneNumber"),placeholder:(0,n.u)("formFieldInputPlaceholder__phoneNumber"),type:"tel",action:(0,n.u)("signIn.start.actionLink__use_phone"),validLastAuthenticationStrategies:new Set(["phone_code","password"])},username:{label:(0,n.u)("formFieldLabel__username"),placeholder:(0,n.u)("formFieldInputPlaceholder__username"),type:"text",action:(0,n.u)("signIn.start.actionLink__use_username"),validLastAuthenticationStrategies:new Set(["username","password"])},default:{label:"",placeholder:"",type:"text",action:"",validLastAuthenticationStrategies:new Set}}),i=e=>{let t=[...e.filter(e=>"passkey"!==e)];return["email_address","username"].every(e=>t.includes(e))&&(t=t.filter(e=>!["email_address","username"].includes(e))).unshift("email_address_username"),t},a=(e,t)=>{let r=e.indexOf(t);return -1===r?{currentIdentifier:{...o.default},nextIdentifier:void 0}:{currentIdentifier:{...o[t]},nextIdentifier:e.length>1?{...o[e[(r+1)%e.length]]}:void 0}},l=Object.freeze({Password:"password",OTP:"otp"})},96231:function(e,t,r){r.d(t,{Ci:()=>c.Ci,s_:()=>w,N2:()=>c.N2,vO:()=>a.vO,Hy:()=>D.Hy,Jh:()=>D.Jh,en:()=>L,e_:()=>v,vX:()=>a.vX,Ej:()=>l.E,Cv:()=>c.Cv,wT:()=>x.wT,dN:()=>h,Qz:()=>g,a2:()=>F,me:()=>D.me,sN:()=>D.sN,aX:()=>i,q7:()=>d,o4:()=>f,LE:()=>I,L:()=>Z,jT:()=>D.jT});var n=r(73312),o=r(64204);let i=e=>{let{icon:t,text:r,textSx:i,actionLabel:a,onClick:l}=e;return(0,n.tZ)(o.Flex,{sx:e=>({background:e.colors.$neutralAlpha50,padding:`${e.space.$2x5} ${e.space.$4}`,justifyContent:"space-between",alignItems:"flex-start",borderRadius:e.radii.$md}),children:(0,n.BX)(o.Flex,{gap:2,children:[(0,n.tZ)(o.Icon,{colorScheme:"neutral",icon:t,sx:e=>({marginTop:e.space.$1})}),(0,n.BX)(o.Col,{gap:4,children:[(0,n.tZ)(o.Text,{colorScheme:"secondary",sx:i,localizationKey:r,children:e.children}),a&&(0,n.tZ)(o.Link,{colorScheme:"primary",variant:"subtitle",localizationKey:a,onClick:e=>{l?.(e)}})]})]})})};var a=r(7772),l=r(36273);r(40686);var s=r(69144),c=r(13559);let d=(0,s.forwardRef)((e,t)=>(0,n.tZ)(o.Box,{ref:t,sx:e=>({width:"100%",height:e.space.$12,position:"relative"}),children:(0,n.tZ)(o.Box,{sx:{margin:"auto",position:"absolute",left:"50%",top:"50%",transform:"translateY(-50%) translateX(-50%)"},children:(0,n.tZ)(o.Spinner,{size:"sm",colorScheme:"primary",elementDescriptor:o.descriptors.spinner})})}));var u=r(68545),p=r(65695),m=r(51217);let h=e=>{let{notificationCount:t,containerSx:r,shouldAnimate:i=!0,...a}=e,l=(0,p.Tb)(),{t:s}=(0,o.useLocalizations)(),c=s((0,o.localizationKeys)("locale")),d=(0,u.$p)(t,c);return(0,n.tZ)(o.Flex,{justify:"center",align:"center",as:"span",sx:[e=>({marginLeft:e.space.$1x5}),r],children:(0,n.tZ)(o.NotificationBadge,{sx:e=>({animation:i&&!l?`${m.animations.notificationAnimation} ${e.transitionDuration.$textField} ${e.transitionTiming.$slowBezier} 0s 1 normal forwards`:"none"}),...a,children:d})})},g=()=>{let e=[];return{print:()=>e.forEach(e=>e()),printableProps:{onPrint:t=>e.push(t)}}},f=e=>{let{children:t,onPrint:r}=e,o=s.useRef(null);return r(()=>{b(o)}),(0,n.tZ)("div",{ref:o,style:{position:"fixed",left:"-9999px",top:0,display:"none"},children:t})},b=e=>{let t=e.current;if(!t)return;let r=document.createElement("iframe");r.style.position="fixed",r.style.right="-2000px",r.style.bottom="-2000px",r.onload=()=>{((e,t="[data-emotion=cl-internal]")=>{if(!e.contentDocument)return;let r=[...document.head.querySelectorAll(t)].map(e=>e.innerHTML).join("\n"),n=e.contentDocument.createElement("style");n.innerHTML=r,e.contentDocument.head.prepend(n)})(r),r.contentDocument&&(r.contentDocument.body.style.fontFamily="Arial",r.contentDocument.body.style.cssText=`* {
|
|
2
|
+
-webkit-print-color-adjust: exact !important;
|
|
3
|
+
color-adjust: exact !important;
|
|
4
|
+
print-color-adjust: exact !important;
|
|
5
|
+
}`),r.contentDocument&&r.contentWindow&&(r.contentDocument.body.innerHTML=t.innerHTML,r.contentWindow.print())},window.document.body.appendChild(r)},v=e=>{let{value:t,id:r,...i}=e;return(0,n.tZ)(o.Box,{as:"span",elementDescriptor:[o.descriptors.providerIcon,o.descriptors.socialButtonsProviderInitialIcon],elementId:o.descriptors.socialButtonsProviderInitialIcon.setId(r),sx:e=>({...m.common.centeredFlex("inline-flex"),width:e.space.$4,height:e.space.$4,borderRadius:e.radii.$sm,color:e.colors.$colorPrimaryForeground,backgroundColor:e.colors.$primary500}),...i,children:(0,n.tZ)(o.Text,{as:"span",variant:"buttonSmall",sx:{...m.common.centeredFlex("inline-flex"),width:"100%"},children:t[0].toUpperCase()})})};var y=r(4718);let w=e=>{let{size:t=200,url:r,...i}=e;return(0,n.tZ)(o.Flex,{elementDescriptor:o.descriptors.qrCodeRow,...i,children:(0,n.tZ)(o.Flex,{elementDescriptor:o.descriptors.qrCodeContainer,sx:e=>({backgroundColor:"white",padding:e.space.$2x5}),children:(0,n.tZ)(y.t,{value:r||"",size:t})})})};var x=r(56749),S=r(61869),C=r(2672),$=r(70431),_=r(19460),k=r(68487),P=r(88870);let I=(0,C.withCardStateProvider)(e=>{let{title:t,messageLine1:r,messageLine2:i,deleteResource:a,onSuccess:l,onReset:s}=e,c=(0,C.useCardState)(),d=(0,S.WZ)(a),u=async()=>{try{await d().then(l)}catch(e){(0,P.S3)(e,[],c.setError)}};return(0,n.tZ)(k.Y,{headerTitle:t,headerSubtitle:r,children:(0,n.BX)($.l.Root,{onSubmit:u,children:[i?(0,n.tZ)(o.Text,{colorScheme:"secondary",localizationKey:i}):null,(0,n.tZ)(_.A,{submitLabel:(0,o.localizationKeys)("userProfile.formButtonPrimary__remove"),colorScheme:"danger",onReset:s})]})})});var A=r(37321),T=r(92418),R=r(21455),z=r(24676);let Z=(0,C.withCardStateProvider)(e=>(0,n.tZ)(o.Flow.Part,{part:"ssoCallback",children:(0,n.tZ)(B,{...e})})),B=e=>{let{handleRedirectCallback:t,__internal_setActiveInProgress:r}=(0,S.cL)(),{navigate:i}=(0,z.useRouter)(),a=(0,C.useCardState)();return s.useEffect(()=>{let n;if(!0!==r){let r=new URLSearchParams(window.location.search).get("intent");t({...e,reloadResource:"signIn"===r||"signUp"===r?r:void 0},i).catch(e=>{(0,P.S3)(e,[],a.setError),n=setTimeout(()=>void i("../"),4e3)})}return()=>clearTimeout(n)},[P.S3,t]),(0,n.tZ)(o.Flow.Part,{part:"ssoCallback",children:(0,n.BX)(T.Z.Root,{children:[(0,n.BX)(T.Z.Content,{children:[(0,n.tZ)(T.Z.Alert,{children:a.error}),(0,n.tZ)(R.I,{}),(0,n.tZ)(A.S,{})]}),(0,n.tZ)(T.Z.Footer,{})]})})};var D=r(23147),E=r(36781);let F=(e={})=>{let{defaultStep:t=0,onNextStep:r}=e,[n,o]=s.useState(t),i=s.useCallback(()=>{r?.(),o(e=>e+1)},[]);return{nextStep:i,prevStep:s.useCallback(()=>o(e=>e-1),[]),goToStep:s.useCallback(e=>o(e),[]),props:{step:n}}},L=e=>{let{step:t,children:r,animate:o=!0}=e;return o?(0,n.tZ)(E.f,{children:s.Children.toArray(r)[t]}):s.Children.toArray(r)[t]}},20237:function(e,t,r){r.d(t,{De:()=>g,Td:()=>f,fq:()=>p,ij:()=>m,o2:()=>d,pr:()=>h});var n=r(73312),o=r(69144),i=r(35973),a=r(48774),l=r(64204),s=r(34174),c=r(51217);let d=({elementDescriptor:e,children:t})=>(0,n.tZ)(l.Col,{elementDescriptor:e,sx:e=>({maxHeight:`calc(8 * ${e.sizes.$12})`,overflowY:"auto",borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100,...c.common.unstyledScrollbar(e)}),children:t}),u=e=>({padding:`${e.space.$4} ${e.space.$5}`}),p=e=>({color:e.colors.$colorForeground,":hover":{color:e.colors.$colorForeground}}),m=({children:e,elementId:t,elementDescriptor:r,organizationData:o})=>(0,n.BX)(l.Flex,{align:"center",gap:2,sx:[e=>({minHeight:"unset",justifyContent:"space-between",borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100}),u],elementDescriptor:r,children:[(0,n.tZ)(i.Z,{elementId:t,mainIdentifierSx:p,organization:o}),e]}),h=(0,o.forwardRef)((e,t)=>(0,n.tZ)(l.Box,{ref:t,sx:e=>({width:"100%",height:e.space.$12,position:"relative"}),children:(0,n.tZ)(l.Box,{sx:{margin:"auto",position:"absolute",left:"50%",top:"50%",transform:"translateY(-50%) translateX(-50%)"},children:(0,n.tZ)(l.Spinner,{size:"sm",colorScheme:"primary",elementDescriptor:l.descriptors.spinner})})})),g=e=>(0,n.tZ)(l.Button,{textVariant:"buttonSmall",variant:"outline",size:"xs",...e}),f=e=>(0,n.tZ)(a.K,{sx:[u],icon:s.nR,...e})},56749:function(e,t,r){r.d(t,{F_:()=>s,Uu:()=>a,X8:()=>o,wT:()=>l,zg:()=>i});var n=r(12244);let o="/sso-callback",i="/verify";function a({ctx:e,baseUrl:t="",intent:r="sign-in"}){let{routing:n,authQueryString:o,path:a}=e;return s({routing:n,baseUrl:t,authQueryString:o,path:a,endpoint:"isCombinedFlow"in e&&e.isCombinedFlow&&"sign-up"===r?`/create${i}`:i})}function l(e,t=""){let{routing:r,authQueryString:n,path:i}=e;return e.ssoCallbackUrl&&e.isCombinedFlow&&"virtual"!==r?e.ssoCallbackUrl:s({routing:r,baseUrl:t,authQueryString:n,path:i,endpoint:o})}let s=({routing:e,authQueryString:t,baseUrl:r,path:n,endpoint:o})=>e&&"hash"!==e?"path"===e?d(n||"",t,o):u(r||"",t,o):c(t,o),c=(e,t)=>{let r=t+(e?`?${e}`:"");return(0,n.KV)({hash:r},{stringify:!0})},d=(e,t,r)=>(0,n.KV)({pathname:e+r,...t?{search:"?"+t}:{}},{stringify:!0}),u=(e,t,r)=>{let o=r+(t?`?${t}`:"");return(0,n.KV)({base:e,hash:o},{stringify:!0})}},23147:function(e,t,r){r.d(t,{Hy:()=>p,Jh:()=>h,jT:()=>g,me:()=>u,sN:()=>m});var n=r(73312),o=r(32186),i=r(61869),a=r(69144),l=r(95274),s=r(63872),c=r(11576),d=r(24676);function u(e,t,r,l){let s=e.displayName||e.name||"Component";e.displayName=s;let u=s=>{let{navigate:u}=(0,d.useRouter)(),p=(0,i.cL)(),m=(0,c.useEnvironment)(),h=(0,c.useOptions)(),g=t(p,m,h);return(a.useEffect(()=>{g&&(l&&(0,o.kZ)(p.publishableKey)&&console.info(l),u(r({clerk:p,environment:m,options:h})))},[]),g)?null:(0,n.tZ)(e,{...s})};return u.displayName=`withRedirect(${s})`,u}let p=e=>{let t=e.displayName||e.name||"Component";e.displayName=t;let r=t=>{let r=(0,c.useSignInContext)();return u(e,s.dj,({clerk:e})=>r.afterSignInUrl||e.buildAfterSignInUrl(),l.q.cannotRenderSignInComponentWhenSessionExists)(t)};return r.displayName=`withRedirectToAfterSignIn(${t})`,r},m=e=>{let t=e.displayName||e.name||"Component";e.displayName=t;let r=t=>{let r=(0,c.useSignUpContext)();return u(e,s.dj,({clerk:e})=>r.afterSignUpUrl||e.buildAfterSignUpUrl(),l.q.cannotRenderSignUpComponentWhenSessionExists)(t)};return r.displayName=`withRedirectToAfterSignUp(${t})`,r},h=e=>{let t=e.displayName||e.name||"Component";e.displayName=t;let r=t=>{let r=(0,c.useSignInContext)();return u(e,(e,t)=>!!t?.authConfig.singleSessionMode&&!!(e.session?.currentTask&&r?.taskUrl),()=>r.taskUrl,void 0)(t)};return r.displayName=`withRedirectToSignInTask(${t})`,r},g=e=>{let t=e.displayName||e.name||"Component";e.displayName=t;let r=t=>{let r=(0,c.useSignUpContext)();return u(e,(e,t)=>!!t?.authConfig.singleSessionMode&&!!(e.session?.currentTask&&r?.taskUrl),()=>r.taskUrl,void 0)(t)};return r.displayName=`withRedirectToSignUpTask(${t})`,r}},31673:function(e,t,r){r.d(t,{Zb:()=>i,aw:()=>l,bm:()=>o,g8:()=>a,xM:()=>n});let n={ACCOUNT:"account",SECURITY:"security",BILLING:"billing",API_KEYS:"apiKeys"},o={GENERAL:"general",MEMBERS:"members",BILLING:"billing",API_KEYS:"apiKeys"},i={MANAGE_ACCOUNT:"manageAccount",SIGN_OUT:"signOut"},a="clerk-profileCardScrollBox",l="clerk-organizationProfileScrollBox"},75747:function(e,t,r){r.d(t,{O:()=>s,u:()=>l});var n=r(73312),o=r(69144),i=r(8555);let a=o.createContext(null);function l({children:e,value:t}){return(0,n.tZ)(a.Provider,{value:t,children:e})}function s(){let e=o.useContext(a);return(0,i.LB)(e,"EnvironmentProvider"),e}},46952:function(e,t,r){r.d(t,{D2:()=>l,fM:()=>a,jI:()=>i});var n=r(73312),o=r(69144);let i=o.createContext({});function a({children:e,value:t}){return(0,n.tZ)(i.Provider,{value:t,children:e})}function l(){let e=o.useContext(i);if(void 0===e)throw Error("useOptions must be used within an OptionsContext");return e}},86988:function(e,t,r){r.d(t,{G:()=>l,Hs:()=>a,Id:()=>m,_:()=>c,md:()=>s,mf:()=>d,rr:()=>p,y2:()=>u});var n=r(69144),o=r(76663),i=r(24676);let a=(0,n.createContext)(null),l=()=>{let e=(0,n.useContext)(a),{navigate:t,basePath:r,startPath:l}=(0,i.useRouter)();if(null===e)throw Error("Clerk: useSessionTasksContext called outside of the mounted SessionTasks component.");let s=async({session:e,redirectUrlComplete:n})=>{let i=e.currentTask;if(!i)return t(n);let a=(0,o.Mo)(i);return t(`/${r+l+a}`)};return{...e,navigateOnSetActive:s}},s=(0,n.createContext)(null),c=()=>{let e=(0,n.useContext)(s);if(null===e)throw Error("Clerk: useTaskChooseOrganizationContext called outside of the mounted TaskChooseOrganization component.");return e},d=(0,n.createContext)(null),u=()=>{let e=(0,n.useContext)(d);if(null===e)throw Error("Clerk: useTaskResetPasswordContext called outside of the mounted TaskResetPassword component.");return e},p=(0,n.createContext)(null),m=()=>{let e=(0,n.useContext)(p);if(null===e)throw Error("Clerk: useTaskSetupMFAContext called outside of the mounted TaskSetupMFA component.");return e}},1677:function(e,t,r){r.d(t,{F:()=>i,I:()=>o});var n=r(69144);let o=(0,n.createContext)(null),i=()=>{let e=(0,n.useContext)(o);if(!e||"SubscriptionDetails"!==e.componentName)throw Error("Clerk: useSubscriptionDetailsContext called outside SubscriptionDetails.");let{componentName:t,...r}=e;return{...r,componentName:t}}},7439:function(e,t,r){r.d(t,{mN:()=>c,DC:()=>h,F2:()=>ex.F,gc:()=>eU,HQ:()=>b,Z$:()=>ea,wP:()=>es,fR:()=>ef,O$:()=>eB,Bf:()=>g,Rh:()=>S,lO:()=>ey,I9:()=>eb,rC:()=>Y,yy:()=>et,mU:()=>en,yQ:()=>w,js:()=>ec,xr:()=>G,jU:()=>eC,jK:()=>J,fm:()=>eE,Ew:()=>ee,EY:()=>eD,Tr:()=>eu,H2:()=>eF,FA:()=>eM,Fk:()=>ej,L5:()=>eS,Pb:()=>ev,Tq:()=>y,p4:()=>er,Ki:()=>ei,dh:()=>ed,IR:()=>ex.I,xn:()=>eo,w6:()=>d,cj:()=>el,HA:()=>ew,Yf:()=>eL,rQ:()=>o,hu:()=>i,pl:()=>v,sC:()=>q,Us:()=>x});var n=r(69144);let o=(0,n.createContext)(null),i=()=>{let e=(0,n.useContext)(o);if(!e||"APIKeys"!==e.componentName)throw Error("Clerk: useAPIKeysContext called outside APIKeys.");let{componentName:t,...r}=e;return{...r,componentName:t}};var a=r(61869),l=r(63872),s=r(46952);let c=(0,n.createContext)(null),d=()=>{let e=(0,n.useContext)(c),t=(0,a.cL)(),r=(0,s.D2)();if(!e||"Checkout"!==e.componentName)throw Error("Clerk: useCheckoutContext called outside Checkout.");let o=(0,n.useMemo)(()=>{if(e.portalRoot)return;let n=e.newSubscriptionRedirectUrl||t.buildNewSubscriptionRedirectUrl?.();return(0,l.QD)(r?.allowedRedirectOrigins,window.location.origin)(n)?n:void 0},[e.portalRoot,e.newSubscriptionRedirectUrl,t,r?.allowedRedirectOrigins]),{componentName:i,...d}=e;return{...d,componentName:i,newSubscriptionRedirectUrl:o}};var u=r(11576),p=r(24676),m=r(8555);let h=(0,n.createContext)(null),g=()=>{let e=(0,n.useContext)(h),{navigate:t}=(0,p.useRouter)(),{displayConfig:r}=(0,u.useEnvironment)();if(!e||"CreateOrganization"!==e.componentName)throw Error("Clerk: useCreateOrganizationContext called outside CreateOrganization.");let{componentName:o,...i}=e;return{...i,skipInvitationScreen:i.skipInvitationScreen||!1,hideSlug:i.hideSlug||!1,navigateAfterCreateOrganization:e=>"function"==typeof i.afterCreateOrganizationUrl?t(i.afterCreateOrganizationUrl(e)):i.afterCreateOrganizationUrl?t((0,m.Q8)({urlWithParam:i.afterCreateOrganizationUrl,entity:e})):t(r.afterCreateOrganizationUrl),componentName:o}};var f=r(74054);let b=(0,n.createContext)(null),v=()=>{let e=(0,n.useContext)(b),t=(0,u.useOptions)(),{displayConfig:r}=(0,u.useEnvironment)(),{queryParams:o}=(0,p.useRouter)();if(!e||"GoogleOneTap"!==e.componentName)throw Error("Clerk: useGoogleOneTapContext called outside GoogleOneTap.");let{componentName:i,...a}=e,s=(0,n.useCallback)(e=>{let n=new f.O(t,{...a,signInFallbackRedirectUrl:e,signUpFallbackRedirectUrl:e},o),i=t.signUpUrl||r.signUpUrl,s=t.signInUrl||r.signInUrl,c=n.getPreservedSearchParams();s=(0,l.KV)({base:s,hashSearchParams:[o,c]},{stringify:!0}),i=(0,l.KV)({base:i,hashSearchParams:[o,c]},{stringify:!0});let d=n.getAfterSignInUrl(),u=n.getAfterSignUpUrl(),p=(0,l.KV)({base:i,hashPath:"/continue",hashSearch:new URLSearchParams({sign_up_force_redirect_url:u}).toString()},{stringify:!0}),m=(0,l.KV)({base:s,hashPath:"/factor-one",hashSearch:new URLSearchParams({sign_in_force_redirect_url:d}).toString()},{stringify:!0}),h=(0,l.KV)({base:s,hashPath:"/factor-two",hashSearch:new URLSearchParams({sign_in_force_redirect_url:d}).toString()},{stringify:!0});return{signInUrl:s,signUpUrl:i,firstFactorUrl:m,secondFactorUrl:h,continueSignUpUrl:p,signInForceRedirectUrl:d,signUpForceRedirectUrl:u}},[a,r.signInUrl,r.signUpUrl,t,o]);return{...a,componentName:i,generateCallbackUrls:s}},y=(0,n.createContext)(null),w=()=>{let e=(0,n.useContext)(y);if(null===e)throw Error("Clerk: useOAuthConsentContext called outside of the mounted OAuthConsent component.");return e},x=(0,n.createContext)(null),S=()=>{let e=(0,n.useContext)(x),{navigate:t}=(0,p.useRouter)(),{displayConfig:r,organizationSettings:o}=(0,u.useEnvironment)();if(!e||"OrganizationList"!==e.componentName)throw Error("Clerk: useOrganizationListContext called outside OrganizationList.");let{componentName:i,...a}=e,l=a.afterCreateOrganizationUrl||r.afterCreateOrganizationUrl,s=({organization:e,user:r})=>"function"==typeof a.afterSelectPersonalUrl&&r?t(a.afterSelectPersonalUrl(r)):"function"==typeof a.afterSelectOrganizationUrl&&e?t(a.afterSelectOrganizationUrl(e)):a.afterSelectPersonalUrl&&r?t((0,m.Q8)({urlWithParam:a.afterSelectPersonalUrl,entity:r})):a.afterSelectOrganizationUrl&&e?t((0,m.Q8)({urlWithParam:a.afterSelectOrganizationUrl,entity:e})):Promise.resolve();return{...a,afterCreateOrganizationUrl:l,skipInvitationScreen:a.skipInvitationScreen||!1,hideSlug:a.hideSlug||!1,hidePersonal:o.forceOrganizationSelection||a.hidePersonal||!1,navigateAfterCreateOrganization:e=>"function"==typeof a.afterCreateOrganizationUrl?t(a.afterCreateOrganizationUrl(e)):a.afterCreateOrganizationUrl?t((0,m.Q8)({urlWithParam:a.afterCreateOrganizationUrl,entity:e})):t(r.afterCreateOrganizationUrl),navigateAfterSelectOrganization:e=>s({organization:e}),navigateAfterSelectPersonal:e=>s({user:e}),componentName:i}};var C=r(73312),$=r(31673),_=r(34174),k=r(17703),P=r(87256),I=r(92823);let A=e=>(0,I.vf)()||e.sdkMetadata?.environment==="development",T=e=>{if(!e)throw Error("Clerk: URL is required for custom links");return(0,l.jv)(e)||"/"===e.charAt(0)?e:`/${e}`},R=({customPages:e,getDefaultRoutes:t,setFirstPathToRoot:r,excludedPathsFromDuplicateWarning:n},o,i,a,s)=>{let{INITIAL_ROUTES:c,pageToRootNavbarRouteMap:d,validReorderItemLabels:u}=t({commerce:s?!(0,l.Rh)(o,a)&&i:!(0,l.oF)(o,a)&&i,apiKeys:s?!(0,l.Mg)(o,a):!(0,l.Dk)(o,a)});A(o)&&D(e,u);let{allRoutes:p,contents:m}=z({customPages:e.filter(e=>!!F(e,u)||(A(o)&&console.error("Clerk: Invalid custom page data: ",e),!1)),defaultRoutes:c});j(p);let h=r(p);return A(o)&&E(h,n),{routes:h,contents:m,pageToRootNavbarRouteMap:d}},z=({customPages:e,defaultRoutes:t})=>{let r=t.map(e=>e),n=[],o=e.map((e,o)=>{if(M(e))return{name:e.label,id:`custom-page-${o}`,icon:t=>(0,C.tZ)(P.q,{mount:e.mountIcon,unmount:e.unmountIcon,...t}),path:T(e.url),external:!0};if(L(e)){let t=U(e.url);return n.push({url:t,mount:e.mount,unmount:e.unmount}),{name:e.label,id:`custom-page-${o}`,icon:t=>(0,C.tZ)(P.q,{mount:e.mountIcon,unmount:e.unmountIcon,...t}),path:t}}let i=t.find(t=>t.id===e.label);return r=r.filter(({id:t})=>t!==e.label),{...i}});return{allRoutes:[...r,...o],contents:n}},Z=e=>e.map((e,t)=>0===t?{...e,path:"/"}:e),B=e=>e.map((e,t)=>0===t?{...e,path:"/"}:e),D=(e,t)=>{e.filter(e=>O(e,t)).reduce((e,t)=>(e.includes(t.label)&&console.error(`Clerk: The "${t.label}" item is used more than once when reordering pages. This may cause unexpected behavior.`),[...e,t.label]),[])},E=(e,t)=>{let r=e.filter(({external:e,path:r})=>!e&&t.every(e=>e!==r)).map(({path:e})=>e);r.filter((e,t)=>r.indexOf(e)!==t).forEach(e=>{console.error(`Clerk: Duplicate path "${e}" found in custom pages. This may cause unexpected behavior.`)})},F=(e,t)=>L(e)||M(e)||O(e,t),L=e=>!!e.url&&!!e.label&&!!e.mount&&!!e.unmount&&!!e.mountIcon&&!!e.unmountIcon,M=e=>!!e.url&&!!e.label&&!e.mount&&!e.unmount&&!!e.mountIcon&&!!e.unmountIcon,O=(e,t)=>!e.url&&!e.mount&&!e.unmount&&!e.mountIcon&&!e.unmountIcon&&t.some(t=>t===e.label),U=e=>{if(!e)throw Error("Clerk: URL is required for custom pages");if((0,l.jv)(e))throw Error("Clerk: Absolute URLs are not supported for custom pages");return"/"===e.charAt(0)&&e.length>1?e.substring(1):e},j=e=>{if(e[0].external)throw Error("Clerk: The first route cannot be a custom external link component")},W=({commerce:e,apiKeys:t})=>{let r=[{name:(0,k.u1)("userProfile.navbar.account"),id:$.xM.ACCOUNT,icon:_.n5,path:"account"},{name:(0,k.u1)("userProfile.navbar.security"),id:$.xM.SECURITY,icon:_.qy,path:"security"}];e&&r.push({name:(0,k.u1)("userProfile.navbar.billing"),id:$.xM.BILLING,icon:_.aB,path:"billing"}),t&&r.push({name:(0,k.u1)("userProfile.navbar.apiKeys"),id:$.xM.API_KEYS,icon:_.EK,path:"api-keys"});let n={profile:r.find(e=>e.id===$.xM.ACCOUNT),"email-address":r.find(e=>e.id===$.xM.ACCOUNT),"phone-number":r.find(e=>e.id===$.xM.ACCOUNT),"connected-account":r.find(e=>e.id===$.xM.ACCOUNT),"web3-wallet":r.find(e=>e.id===$.xM.ACCOUNT),username:r.find(e=>e.id===$.xM.ACCOUNT),"multi-factor":r.find(e=>e.id===$.xM.SECURITY),password:r.find(e=>e.id===$.xM.SECURITY)},o=r.map(e=>e.id);return{INITIAL_ROUTES:r,pageToRootNavbarRouteMap:n,validReorderItemLabels:o}},N=({commerce:e,apiKeys:t})=>{let r=[{name:(0,k.u1)("organizationProfile.navbar.general"),id:$.bm.GENERAL,icon:_.cp,path:"organization-general"},{name:(0,k.u1)("organizationProfile.navbar.members"),id:$.bm.MEMBERS,icon:_.Q,path:"organization-members"}];e&&r.push({name:(0,k.u1)("organizationProfile.navbar.billing"),id:$.xM.BILLING,icon:_.aB,path:"organization-billing"}),t&&r.push({name:(0,k.u1)("organizationProfile.navbar.apiKeys"),id:$.bm.API_KEYS,icon:_.EK,path:"organization-api-keys"});let n={"invite-members":r.find(e=>e.id===$.bm.MEMBERS),domain:r.find(e=>e.id===$.bm.GENERAL),profile:r.find(e=>e.id===$.bm.GENERAL),leave:r.find(e=>e.id===$.bm.GENERAL),delete:r.find(e=>e.id===$.bm.GENERAL)},o=r.map(e=>e.id);return{INITIAL_ROUTES:r,pageToRootNavbarRouteMap:n,validReorderItemLabels:o}};var H=r(75747),V=r(13559),K=r(2432);let X="user",Y=(0,n.createContext)(X),q=()=>(0,n.useContext)(Y)||X,G=()=>"user"===q()?"userProfile":"organizationProfile";function J(e){return e.endsWith(".00")?e.slice(0,-3):e}let Q=()=>{let e=q(),t=(0,V.N2)(e=>e({permission:"org:sys_billing:read"})||e({permission:"org:sys_billing:manage"})),r=(0,a.mP)();return{for:e,keepPreviousData:!0,enabled:"organization"!==e||!!r?.organization&&t}},ee=()=>{let e=Q();return(0,a.TR)(e)},et=()=>{let e=Q();return(0,a.Xn)(e)},er=e=>{let t=Q();return(0,a.IK)({...t,__experimental_mode:e?.mode})},en=()=>{let e=Q(),t=(0,a.lQ)(e),r=(0,n.useMemo)(()=>t.data?.subscriptionItems||[],[t.data?.subscriptionItems]);return{...t,subscriptionItems:r}},eo=e=>{let t=q();return(0,a.Ju)({for:t,initialPage:1,pageSize:50,keepPreviousData:!0,enabled:!0,__experimental_mode:e?.mode})},ei=()=>{let e=(0,a.cL)(),{session:t}=(0,a.kP)(),r=q(),o=(0,n.useMemo)(()=>!!(!e.session||e?.session?.checkAuthorization({permission:"org:sys_billing:manage"})||"user"===r),[e,r]),{subscriptionItems:i,revalidate:l,data:s}=en(),{data:c,revalidate:d}=eo({mode:"cache"}),{revalidate:u}=er({mode:"cache"}),{revalidate:p}=ee(),m=(0,n.useCallback)(()=>{l(),d(),u(),p()},[l,d,u,p]),h=(0,n.useMemo)(()=>0===i.length||!i.some(e=>!e.canceledAt),[i]),g=(0,n.useCallback)(e=>i.find(t=>t.plan.id===e.id),[i]),f=(0,n.useCallback)(e=>i.filter(t=>t.plan.id===e.id),[i]),b=(0,n.useCallback)((e,t="month")=>{let r=f(e);if(r.length>1){let e=r.find(e=>e.planPeriod===t);return e||r[0]}if(1===r.length)return r[0]},[f]),v=(0,n.useCallback)(({plan:e,subscription:t})=>{let r=t??(e?g(e):void 0);return!r||!r.canceledAt},[g]),y=(0,n.useCallback)(({plan:e,subscription:r,isCompact:n=!1,selectedPlanPeriod:a="annual"})=>{let l=r??(e?b(e,a):void 0),c=a,d=!!(e?.annualMonthlyFee&&!e.isDefault);"annual"!==c||d||(c="month");let u=r=>{if(e?.freeTrialEnabled){let r=!t,n=s?.eligibleForFreeTrial;if(r||n)return(0,k.u1)("billing.startFreeTrial__days",{days:e.freeTrialDays??0})}return r};return{localizationKey:u((()=>{if(l){if(c!==l.planPeriod&&l.canceledAt){if("month"===c)return(0,k.u1)("billing.switchToMonthly");if(d)return(0,k.u1)("billing.switchToAnnual")}if(l.canceledAt)return(0,k.u1)("billing.reSubscribe");if(c!==l.planPeriod){if("month"===c)return(0,k.u1)("billing.switchToMonthly");if(d)return(0,k.u1)("billing.switchToAnnual")}return(0,k.u1)("billing.manageSubscription")}return i.filter(e=>!e.plan.isDefault).length>0?(0,k.u1)("billing.switchPlan"):u((0,k.u1)("billing.subscribe"))})()),variant:n?"bordered":"solid",colorScheme:n?"secondary":"primary",isDisabled:!o,disabled:!o}},[b,o,i,s]),w=(0,n.useCallback)(e=>e.pastDueAt?(0,k.u1)("badge__pastDueAt",{date:e.pastDueAt}):"upcoming"===e.status?(0,k.u1)("badge__startsAt",{date:e.periodStart}):e.canceledAt?(0,k.u1)("badge__canceledEndsAt",{date:e.periodEnd}):e.periodEnd?(0,k.u1)(e.isFreeTrial?"badge__trialEndsAt":"badge__renewsAt",{date:e.periodEnd}):void 0,[]),x=(0,n.useCallback)(t=>{let n=(0,K.N)("modal",t);e.__internal_openSubscriptionDetails({for:r,onSubscriptionCancel:()=>{m()},portalRoot:n})},[e,r,m]);return{activeOrUpcomingSubscription:g,activeAndUpcomingSubscriptions:f,activeOrUpcomingSubscriptionBasedOnPlanPeriod:b,isDefaultPlanImplicitlyActiveOrUpcoming:h,handleSelectPlan:(0,n.useCallback)(({plan:n,planPeriod:o,mode:i="mounted",event:a,appearance:l,newSubscriptionRedirectUrl:s})=>{let c=(0,K.N)(i,a);e.__internal_openCheckout({planId:n.id,planPeriod:"annual"!==o||n.annualMonthlyFee?o:"month",for:r,onSubscriptionComplete:()=>{m()},onClose:()=>{t?.id&&e.setActive({session:t.id})},appearance:l,portalRoot:c,newSubscriptionRedirectUrl:s})},[e,m,r,t?.id]),openSubscriptionDetails:x,buttonPropsForPlan:y,canManageSubscription:v,captionForSubscription:w,defaultFreePlan:(0,n.useMemo)(()=>c?.find(e=>e.isDefault),[c]),revalidateAll:m}},ea=(0,n.createContext)(null),el=()=>{let e=(0,n.useContext)(ea),{navigate:t}=(0,p.useRouter)(),r=(0,H.O)(),o=(0,a.cL)();if(!e||"OrganizationProfile"!==e.componentName)throw Error("Clerk: useOrganizationProfileContext called outside OrganizationProfile.");let{componentName:i,customPages:l,...s}=e,c=en(),d=er(),u=c.data?.subscriptionItems.some(e=>e.plan.hasBaseFee),m=r.commerceSettings.billing.organization.hasPaidPlans||u||d.data.length>0,h=(0,n.useMemo)(()=>R({customPages:l||[],getDefaultRoutes:N,setFirstPathToRoot:B,excludedPathsFromDuplicateWarning:[]},o,m,r,!0),[l,m]),g=h.routes[0].id===$.bm.MEMBERS,f=h.routes[0].id===$.bm.GENERAL,b=h.routes[0].id===$.bm.BILLING,v=h.routes[0].id===$.bm.API_KEYS;return{...s,pages:h,navigateAfterLeaveOrganization:()=>t(s.afterLeaveOrganizationUrl||r.displayConfig.afterLeaveOrganizationUrl),componentName:i,navigateToGeneralPageRoot:()=>t(f?"../":g?"./organization-general":"../organization-general"),isMembersPageRoot:g,isGeneralPageRoot:f,isBillingPageRoot:b,isAPIKeysPageRoot:v,shouldShowBilling:m}},es=(0,n.createContext)(null),ec=()=>{let e=(0,n.useContext)(es),{navigate:t}=(0,p.useRouter)(),{displayConfig:r,organizationSettings:o}=(0,u.useEnvironment)();if(!e||"OrganizationSwitcher"!==e.componentName)throw Error("Clerk: useOrganizationSwitcherContext called outside OrganizationSwitcher.");let{componentName:i,...a}=e,l=a.afterCreateOrganizationUrl||r.afterCreateOrganizationUrl,s=a.afterLeaveOrganizationUrl||r.afterLeaveOrganizationUrl,c=({organization:e,user:r})=>{let n=d({organization:e,user:r});return n?t(n):Promise.resolve()},d=({organization:e,user:t})=>"function"==typeof a.afterSelectPersonalUrl&&t?a.afterSelectPersonalUrl(t):"function"==typeof a.afterSelectOrganizationUrl&&e?a.afterSelectOrganizationUrl(e):a.afterSelectPersonalUrl&&t?(0,m.Q8)({urlWithParam:a.afterSelectPersonalUrl,entity:t}):a.afterSelectOrganizationUrl&&e?(0,m.Q8)({urlWithParam:a.afterSelectOrganizationUrl,entity:e}):void 0,h=a.organizationProfileUrl&&!a.organizationProfileMode?"navigation":a.organizationProfileMode,g=a.createOrganizationUrl&&!a.createOrganizationMode?"navigation":a.createOrganizationMode;return{...a,hidePersonal:o.forceOrganizationSelection||a.hidePersonal||!1,organizationProfileMode:h||"modal",createOrganizationMode:g||"modal",skipInvitationScreen:a.skipInvitationScreen||!1,hideSlug:a.hideSlug||!1,afterCreateOrganizationUrl:l,afterLeaveOrganizationUrl:s,navigateOrganizationProfile:()=>t(a.organizationProfileUrl||r.organizationProfileUrl),navigateCreateOrganization:()=>t(a.createOrganizationUrl||r.createOrganizationUrl),navigateAfterSelectOrganization:e=>c({organization:e}),navigateAfterSelectPersonal:e=>c({user:e}),afterSelectOrganizationUrl:e=>d({organization:e}),afterSelectPersonalUrl:e=>d({user:e}),componentName:i}},ed=(0,n.createContext)(null),eu=()=>{let e=(0,n.useContext)(ed);if(!e||"PricingTable"!==e.componentName)throw Error("Clerk: usePricingTableContext called outside PricingTable.");let{componentName:t,...r}=e;return{...r,componentName:t}};var ep=r(58159),em=r(76663),eh=r(80753),eg=r(56749);let ef=(0,n.createContext)(null),eb=()=>{let e=(0,n.useContext)(ef),{navigate:t,basePath:r,startPath:o}=(0,p.useRouter)(),{displayConfig:i,userSettings:s}=(0,u.useEnvironment)(),{queryParams:c,queryString:d}=(0,p.useRouter)(),h=s.signUp.mode,g=(0,u.useOptions)(),b=(0,a.cL)();if(null===e||"SignIn"!==e.componentName)throw Error("Clerk: useSignInContext called outside of the mounted SignIn component.");let v="restricted"!==h&&!!(!g.signUpUrl&&g.signInUrl&&!(0,ep.sD)(g.signInUrl))&&!1!==e.withSignUp||e.withSignUp||!1,{componentName:y,mode:w,...x}=e,S=(0,n.useMemo)(()=>(0,m.x6)(d,eh.im),[]),C=new f.O(g,{...x,signInFallbackRedirectUrl:x.signInFallbackRedirectUrl||x.fallbackRedirectUrl,signInForceRedirectUrl:x.signInForceRedirectUrl||x.forceRedirectUrl},c,w);delete x.fallbackRedirectUrl,delete x.forceRedirectUrl;let $=b.buildUrlWithAuth(C.getAfterSignInUrl()),_=b.buildUrlWithAuth(C.getAfterSignUpUrl()),k="path"===x.routing&&x.path||g.signInUrl||i.signInUrl,P=v?"path"===x.routing&&x.path||g.signUpUrl||i.signUpUrl:x.signUpUrl||g.signUpUrl||i.signUpUrl,I=x.waitlistUrl||g.waitlistUrl||i.waitlistUrl,A=C.getPreservedSearchParams();k=(0,l.KV)({base:k,hashSearchParams:[c,A]},{stringify:!0}),P=(0,l.KV)({base:P,hashSearchParams:[c,A]},{stringify:!0}),I=(0,l.KV)({base:I,hashSearchParams:[c,A]},{stringify:!0});let T=C.toSearchParams().toString(),R=(0,eg.F_)({routing:x.routing,baseUrl:P,authQueryString:T,path:x.path,endpoint:v?"/create"+eg.zg:eg.zg}),z=(0,eg.F_)({routing:x.routing,baseUrl:P,authQueryString:T,path:x.path,endpoint:v?"/create"+eg.X8:eg.X8});v&&(P=(0,l.KV)({base:k,hashPath:"/create",hashSearchParams:[c,A]},{stringify:!0}));let Z=(0,l.KV)({base:P,hashPath:"/continue"},{stringify:!0}),B=async({session:e,redirectUrl:n})=>{let i=e.currentTask;if(!i)return t(n);let a=(0,em.Mo)(i);return t(`/${r+o+(v?"/create"+a:a)}`)},D=b.session?.currentTask?b.__internal_getOption("taskUrls")?.[b.session?.currentTask.key]??(0,eg.F_)({routing:x.routing,baseUrl:k,authQueryString:T,path:x.path,endpoint:v?"/create"+(0,em.Mo)(b.session?.currentTask):(0,em.Mo)(b.session?.currentTask)}):null;return{...x,transferable:x.transferable??!0,oauthFlow:x.oauthFlow||"auto",componentName:y,signUpUrl:P,signInUrl:k,waitlistUrl:I,afterSignInUrl:$,afterSignUpUrl:_,emailLinkRedirectUrl:R,ssoCallbackUrl:z,navigateAfterSignIn:()=>t($),signUpContinueUrl:Z,queryParams:c,initialValues:{...x.initialValues,...S},authQueryString:T,isCombinedFlow:v,navigateOnSetActive:B,taskUrl:D}},ev=()=>{let{navigate:e}=(0,p.useRouter)(),t=(0,a.cL)();return{navigateAfterSignOut:()=>e(t.buildAfterSignOutUrl()),navigateAfterMultiSessionSingleSignOutUrl:()=>e(t.buildAfterMultiSessionSingleSignOutUrl()),afterSignOutUrl:t.buildAfterSignOutUrl(),afterMultiSessionSingleSignOutUrl:t.buildAfterMultiSessionSingleSignOutUrl()}},ey=(0,n.createContext)(null),ew=()=>{let e=(0,n.useContext)(ey),{navigate:t,basePath:r,startPath:o}=(0,p.useRouter)(),{displayConfig:i,userSettings:s}=(0,u.useEnvironment)(),{queryParams:c,queryString:d}=(0,p.useRouter)(),h=s.signUp.mode,g=(0,u.useOptions)(),b=(0,a.cL)(),v="restricted"!==h&&!!(!g.signUpUrl&&g.signInUrl&&!(0,ep.sD)(g.signInUrl)&&"public"===h),y=(0,n.useMemo)(()=>(0,m.x6)(d,eh.bf),[]);if(!e||"SignUp"!==e.componentName)throw Error("Clerk: useSignUpContext called outside of the mounted SignUp component.");let{componentName:w,mode:x,...S}=e,C=new f.O(g,{...S,signUpFallbackRedirectUrl:S.signUpFallbackRedirectUrl||S.fallbackRedirectUrl,signUpForceRedirectUrl:S.signUpForceRedirectUrl||S.forceRedirectUrl},c,x);delete S.fallbackRedirectUrl,delete S.forceRedirectUrl;let $=b.buildUrlWithAuth(C.getAfterSignUpUrl()),_=b.buildUrlWithAuth(C.getAfterSignInUrl()),k="path"===S.routing&&S.path||g.signUpUrl||i.signUpUrl,P=S.signInUrl||g.signInUrl||i.signInUrl,I=S.waitlistUrl||g.waitlistUrl||i.waitlistUrl,A=C.getPreservedSearchParams();P=(0,l.KV)({base:P,hashSearchParams:[c,A]},{stringify:!0}),k=(0,l.KV)({base:k,hashSearchParams:[c,A]},{stringify:!0}),I=(0,l.KV)({base:I,hashSearchParams:[c,A]},{stringify:!0});let T=C.toSearchParams().toString(),R=S.emailLinkRedirectUrl??(0,eg.F_)({routing:S.routing,baseUrl:k,authQueryString:T,path:S.path,endpoint:v?"/create"+eg.zg:eg.zg}),z=S.ssoCallbackUrl??(0,eg.F_)({routing:S.routing,baseUrl:k,authQueryString:T,path:S.path,endpoint:v?"/create"+eg.X8:eg.X8}),Z=(0,l.KV)({base:P,hashPath:"/factor-two"},{stringify:!0}),B=async({session:e,redirectUrl:n})=>{let i=e.currentTask;if(!i)return t(n);let a=(0,em.Mo)(i);return t(`/${r+o+a}`)},D=b.session?.currentTask?b.__internal_getOption("taskUrls")?.[b.session?.currentTask.key]??(0,eg.F_)({routing:S.routing,baseUrl:P,authQueryString:T,path:S.path,endpoint:(0,em.Mo)(b.session?.currentTask)}):null;return{...S,oauthFlow:S.oauthFlow||"auto",componentName:w,signInUrl:P,signUpUrl:k,waitlistUrl:I,secondFactorUrl:Z,afterSignUpUrl:$,afterSignInUrl:_,emailLinkRedirectUrl:R,ssoCallbackUrl:z,navigateAfterSignUp:()=>t($),queryParams:c,initialValues:{...S.initialValues,...y},authQueryString:T,isCombinedFlow:v,navigateOnSetActive:B,taskUrl:D}};var ex=r(1677);let eS=(0,n.createContext)(null),eC=()=>{let e=(0,n.useContext)(eS);if(!e||"UserAvatar"!==e.componentName)throw Error("Clerk: useUserAvatarContext called outside UserAvatar.");let{componentName:t,...r}=e;return{...r,componentName:t}};var e$=r(31924);let e_=({customMenuItems:e,defaultMenuItems:t})=>{let r=t.map(e=>e),n=[...e.map((e,n)=>{if(eT(e))return{name:e.label,id:`custom-menutItem-${n}`,icon:t=>(0,C.tZ)(P.q,{mount:e.mountIcon,unmount:e.unmountIcon,...t}),path:T(e.href)};if(eI(e))return{name:e.label,id:`custom-menutItem-${n}`,icon:t=>(0,C.tZ)(P.q,{mount:e.mountIcon,unmount:e.unmountIcon,...t}),onClick:e?.onClick};if(eA(e))return{name:e.label,id:`custom-menutItem-${n}`,icon:t=>(0,C.tZ)(P.q,{mount:e.mountIcon,unmount:e.unmountIcon,...t}),open:e.open};let o=t.find(t=>t.id===e.label);return r=r.filter(t=>t.id!==e.label),{...o}}),...r];return e.some(e=>e.label===$.Zb.MANAGE_ACCOUNT)||n.sort(e=>e.id===$.Zb.MANAGE_ACCOUNT?-1:0),{menuItems:n}},ek=()=>{let e=[{name:(0,k.u1)("userButton.action__manageAccount"),id:$.Zb.MANAGE_ACCOUNT,icon:_.tc},{name:(0,k.u1)("userButton.action__signOut"),id:$.Zb.SIGN_OUT,icon:_.lv}],t=e.map(e=>e.id);return{INITIAL_MENU_ITEMS:e,validReorderItemLabels:t}},eP=(e,t)=>(eT(e)||eI(e)||eA(e)||eR(e,t))&&"string"==typeof e.label,eI=e=>!!e.label&&!!e.onClick&&!e.mount&&!e.unmount&&!!e.mountIcon&&!!e.unmountIcon,eA=e=>!!e.label&&!!e.open&&!e.mount&&!e.unmount&&!!e.mountIcon&&!!e.unmountIcon,eT=e=>!!e.href&&!!e.label&&!e.mount&&!e.unmount&&!!e.mountIcon&&!!e.unmountIcon,eR=(e,t)=>!e.mount&&!e.unmount&&!e.mountIcon&&!e.unmountIcon&&t.some(t=>t===e.label),ez=(e,t)=>{e.filter(e=>eR(e,t)).reduce((e,t)=>(e.includes(t.label)&&console.error(`Clerk: The "${t.label}" item is used more than once when reordering pages. This may cause unexpected behavior.`),[...e,t.label]),[])},eZ=e=>{let t=e.map(e=>e.label),r=t.filter((e,r)=>t.indexOf(e)!==r);r.length>0&&console.warn(`Clerk: Duplicate custom menu item labels found: ${r.join(", ")}`)},eB=(0,n.createContext)(null),eD=()=>{let e=(0,n.useContext)(eB),t=(0,a.cL)(),{navigate:r}=(0,p.useRouter)(),{displayConfig:o}=(0,u.useEnvironment)(),i=(0,u.useOptions)();if(!e||"UserButton"!==e.componentName)throw Error("Clerk: useUserButtonContext called outside of the mounted UserButton component.");let{componentName:l,customMenuItems:s,...c}=e,d=c.signInUrl||i.signInUrl||o.signInUrl,m=c.userProfileUrl||o.userProfileUrl;c.afterSignOutUrl&&(0,e$.x6)(c,"afterSignOutUrl","Move 'afterSignOutUrl' to '<ClerkProvider/>");let h=c.afterSignOutUrl||t.buildAfterSignOutUrl();c.afterSignOutUrl&&(0,e$.x6)(c,"afterMultiSessionSingleSignOutUrl","Move 'afterMultiSessionSingleSignOutUrl' to '<ClerkProvider/>");let g=c.afterMultiSessionSingleSignOutUrl||t.buildAfterMultiSessionSingleSignOutUrl(),f=c.afterSwitchSessionUrl||o.afterSwitchSessionUrl,b=c.userProfileUrl&&!c.userProfileMode?"navigation":c.userProfileMode,v=(0,n.useMemo)(()=>(({customMenuItems:e,getDefaultMenuItems:t},r)=>{let{INITIAL_MENU_ITEMS:n,validReorderItemLabels:o}=t(),i=e.filter(e=>!!eP(e,o)||(A(r)&&console.error("Clerk: Invalid custom menu item:",e),!1));A(r)&&(ez(e,o),eZ(i));let{menuItems:a}=e_({customMenuItems:i,defaultMenuItems:n});return a})({customMenuItems:s||[],getDefaultMenuItems:ek},t),[]);return{...c,componentName:l,navigateAfterMultiSessionSingleSignOut:()=>t.redirectWithAuth(g),navigateAfterSignOut:()=>r(h),signInUrl:d,userProfileUrl:m,afterMultiSessionSingleSignOutUrl:g,afterSignOutUrl:h,afterSwitchSessionUrl:f,userProfileMode:b||"modal",menutItems:v}},eE=(0,n.createContext)(null),eF=()=>{let e=(0,n.useContext)(eE),{queryParams:t}=(0,p.useRouter)(),r=(0,a.cL)(),o=(0,H.O)(),{user:i}=(0,a.aF)(),l=en(),s=er(),c=l.data?.subscriptionItems.some(e=>e.plan.hasBaseFee),d=o.commerceSettings.billing.user.hasPaidPlans||c||s.data.length>0;if(!e||"UserProfile"!==e.componentName)throw Error("Clerk: useUserProfileContext called outside of the mounted UserProfile component.");let{componentName:u,customPages:m,...h}=e,g=(0,n.useMemo)(()=>R({customPages:m||[],getDefaultRoutes:W,setFirstPathToRoot:Z,excludedPathsFromDuplicateWarning:[]},r,d,o),[m,d]),f=(0,n.useMemo)(()=>{let{enterpriseSSO:e}=o.userSettings;return!(i&&e.enabled)||!i?.enterpriseAccounts.some(e=>e.active&&e.enterpriseConnection?.disableAdditionalIdentifications)},[i,o.userSettings.enterpriseSSO]);return{...h,pages:g,componentName:u,queryParams:t,authQueryString:"",shouldAllowIdentificationCreation:f,shouldShowBilling:d}},eL=(0,n.createContext)(null),eM=()=>{let e=(0,n.useContext)(eL);if(!e||"UserVerification"!==e.componentName)throw Error("Clerk: useUserVerificationContext called outside of the mounted UserVerification component.");let{componentName:t,...r}=e;return{...r,componentName:t}},eO=["email_address"],eU=(0,n.createContext)(null),ej=()=>{let e=(0,n.useContext)(eU),{displayConfig:t}=(0,u.useEnvironment)(),r=(0,u.useOptions)(),{queryString:o}=(0,p.useRouter)(),i=(0,n.useMemo)(()=>(0,m.x6)(o,eO),[]);if(!e||"Waitlist"!==e.componentName)throw Error("Clerk: useWaitlistContext called outside Waitlist.");let{componentName:a,...s}=e,c=s.signInUrl||r.signInUrl||t.signInUrl;return c=(0,l.KV)({base:c},{stringify:!0}),{...s,componentName:a,signInUrl:c,initialValues:{...i}}}},11576:function(e,t,r){r.r(t),r.d(t,{withCoreSessionSwitchGuard:()=>p,SubscriptionDetailsContext:()=>l.IR,useSubscription:()=>l.mU,OptionsProvider:()=>u.fM,OrganizationListContext:()=>l.Us,WaitlistContext:()=>l.gc,useSignInContext:()=>l.I9,useUserButtonContext:()=>l.EY,useCoreSignIn:()=>m,useAPIKeysContext:()=>l.hu,useSubscriberTypeLocalizationRoot:()=>l.xr,usePaymentAttempts:()=>l.yy,UserProfileContext:()=>l.fm,useEnvironment:()=>d.O,useOAuthConsentContext:()=>l.yQ,useOptions:()=>u.D2,CreateOrganizationContext:()=>l.DC,OptionsContext:()=>u.jI,usePlans:()=>l.xn,useOrganizationListContext:()=>l.Rh,useUserAvatarContext:()=>l.jU,normalizeFormatted:()=>l.jK,useUserProfileContext:()=>l.H2,APIKeysContext:()=>l.rQ,withCoreUserGuard:()=>a,useSubscriptionDetailsContext:()=>l.F2,useCoreSignUp:()=>h,useCreateOrganizationContext:()=>l.Bf,usePlansContext:()=>l.Ki,SubscriberTypeContext:()=>l.rC,OrganizationProfileContext:()=>l.Z$,useGoogleOneTapContext:()=>l.pl,CoreClerkContextWrapper:()=>f,SignUpContext:()=>l.lO,useUserVerification:()=>l.FA,useCheckoutContext:()=>l.w6,OrganizationSwitcherContext:()=>l.wP,CheckoutContext:()=>l.mN,usePaymentMethods:()=>l.Ew,GoogleOneTapContext:()=>l.HQ,usePricingTableContext:()=>l.Tr,useOrganizationSwitcherContext:()=>l.js,EnvironmentProvider:()=>d.u,ComponentContextProvider:()=>c,SignInContext:()=>l.fR,useAcceptedInvitations:()=>y,useOrganizationProfileContext:()=>l.cj,AcceptedInvitationsProvider:()=>v,useStatements:()=>l.p4,PricingTableContext:()=>l.dh,useSignUpContext:()=>l.HA,useWaitlistContext:()=>l.Fk,OAuthConsentContext:()=>l.Tq,UserAvatarContext:()=>l.L5,UserButtonContext:()=>l.O$,useSubscriberTypeContext:()=>l.sC,UserVerificationContext:()=>l.Yf,useSignOutContext:()=>l.Pb});var n=r(73312),o=r(61869),i=r(69144);function a(e){let t=t=>(0,o.SE)()?(0,n.tZ)(e,{...t}):null,r=e.displayName||e.name||"Component";return e.displayName=r,t.displayName=r,t}var l=r(7439),s=r(86988);function c({componentName:e,props:t,children:r}){switch(e){case"SignIn":return(0,n.tZ)(l.fR.Provider,{value:{componentName:e,...t},children:r});case"SignUp":return(0,n.tZ)(l.lO.Provider,{value:{componentName:e,...t},children:r});case"UserProfile":return(0,n.tZ)(l.fm.Provider,{value:{componentName:e,...t},children:r});case"UserVerification":return(0,n.tZ)(l.Yf.Provider,{value:{componentName:e,...t},children:r});case"UserAvatar":return(0,n.tZ)(l.L5.Provider,{value:{componentName:e,...t},children:r});case"UserButton":return(0,n.tZ)(l.O$.Provider,{value:{componentName:e,...t},children:r});case"OrganizationSwitcher":return(0,n.tZ)(l.wP.Provider,{value:{componentName:e,...t},children:r});case"OrganizationList":return(0,n.tZ)(l.Us.Provider,{value:{componentName:e,...t},children:r});case"OrganizationProfile":return(0,n.tZ)(l.Z$.Provider,{value:{componentName:e,...t},children:r});case"CreateOrganization":return(0,n.tZ)(l.DC.Provider,{value:{componentName:e,...t},children:r});case"GoogleOneTap":return(0,n.tZ)(l.HQ.Provider,{value:{componentName:e,...t},children:r});case"Waitlist":return(0,n.tZ)(l.gc.Provider,{value:{componentName:e,...t},children:r});case"PricingTable":return(0,n.tZ)(l.rC.Provider,{value:t.forOrganizations?"organization":t.for||"user",children:(0,n.tZ)(l.dh.Provider,{value:{componentName:e,...t},children:r})});case"APIKeys":return(0,n.tZ)(l.rQ.Provider,{value:{componentName:e,...t},children:r});case"OAuthConsent":return(0,n.tZ)(l.Tq.Provider,{value:{componentName:e,...t},children:r});case"TaskChooseOrganization":return(0,n.tZ)(s.md.Provider,{value:{componentName:"TaskChooseOrganization",...t},children:(0,n.tZ)(s.Hs.Provider,{value:{...t},children:r})});case"TaskResetPassword":return(0,n.tZ)(s.mf.Provider,{value:{componentName:"TaskResetPassword",...t},children:(0,n.tZ)(s.Hs.Provider,{value:{...t},children:r})});case"TaskSetupMFA":return(0,n.tZ)(s.rr.Provider,{value:{componentName:"TaskSetupMFA",...t},children:(0,n.tZ)(s.Hs.Provider,{value:{...t},children:r})});default:throw Error(`Unknown component context: ${e}`)}}var d=r(75747),u=r(46952);function p(e){let t=t=>void 0===(0,o.Tt)()?null:(0,n.tZ)(e,{...t}),r=e.displayName||e.name||"Component";return e.displayName=r,t.displayName=r,t}function m(){let e=(0,o.sX)();return(0,o.LB)(e,o.RY),e.signIn}function h(){let e=(0,o.sX)();return(0,o.LB)(e,o.RY),e.signUp}var g=r(8555);function f(e){let t=e.clerk;(0,g.MN)(t);let[r,a]=i.useState({client:t.client,session:t.session,user:t.user,organization:t.organization});i.useEffect(()=>t.addListener(e=>a({...e})),[]);let{client:l,session:s,user:c,organization:d}=r,u=i.useMemo(()=>({value:t}),[]),p=i.useMemo(()=>({value:l}),[l]),m=i.useMemo(()=>({value:s}),[s]),h=i.useMemo(()=>({value:c}),[c]),f=i.useMemo(()=>({value:{organization:d}}),[d]);return(0,n.tZ)(o.b5.Provider,{value:u,children:(0,n.tZ)(o.RY.Provider,{value:p,children:(0,n.tZ)(o.B3.Provider,{value:m,children:(0,n.tZ)(o.f0,{...f.value,swrConfig:e.swrConfig,children:(0,n.tZ)(o.St.Provider,{value:h,children:(0,n.tZ)(o.hA,{value:void 0,children:e.children})})})})})})}let b=(0,i.createContext)({acceptedInvitations:[],setAcceptedInvitations:()=>{}});function v({children:e}){let[t,r]=(0,i.useState)([]);return(0,n.tZ)(b.Provider,{value:{acceptedInvitations:t,setAcceptedInvitations:r},children:e})}function y(){return(0,i.useContext)(b)}},8555:function(e,t,r){r.d(t,{LB:()=>a,MN:()=>i,Q8:()=>s,x6:()=>l});var n=r(72642),o=r(24152);function i(e){e||(0,o.G6)()}function a(e,t){e||(0,o.k2)(t)}function l(e,t){let r={};return new URLSearchParams(e).forEach((e,o)=>{t.includes(o)&&"string"==typeof e&&(r[(0,n.TD)(o)]=e)}),r}let s=(0,r(63872).OY)({regex:/:(\w+)/})},7316:function(e,t,r){r.d(t,{x:()=>T,M:()=>A});var n=r(73312),o=r(61869);r(69144);var i=r(92823);let a="0px 0px 0px 1px",l=e=>`${a} ${e}, 0px 1px 1px 0px rgba(255, 255, 255, 0.07) inset, 0px 2px 3px 0px rgba(34, 42, 53, 0.20), 0px 1px 1px 0px rgba(0, 0, 0, 0.24)`,s=e=>`${a} ${e}, 0px 2px 3px -1px rgba(0, 0, 0, 0.08), 0px 1px 0px 0px rgba(0, 0, 0, 0.02)`,c=e=>({borderWidth:0,boxShadow:`${e.shadows.$cardContentShadow}, ${a} ${e.colors.$borderAlpha50}`}),d=(e,t)=>{let r=[`0px 0px 0px 1px ${t.idle1}`,e.shadows.$input.replace("{{color}}",t.idle2)].toString(),n=[`0px 0px 0px 1px ${t.hover1}`,e.shadows.$input.replace("{{color}}",t.hover2)].toString();return{boxShadow:r,"&:hover":{boxShadow:n},'&:focus-within,&[data-focus-within="true"]':{boxShadow:[n,e.shadows.$focusRing.replace("{{color}}",t.focus)].toString()}}},u=e=>({borderWidth:0,...d(e,{idle1:e.colors.$borderAlpha150,idle2:e.colors.$borderAlpha100,hover1:e.colors.$borderAlpha300,hover2:e.colors.$borderAlpha150,focus:e.colors.$colorRing}),'&[data-feedback="error"]':d(e,{idle1:e.colors.$dangerAlpha400,idle2:e.colors.$dangerAlpha200,hover1:e.colors.$dangerAlpha500,hover2:e.colors.$dangerAlpha200,focus:e.colors.$dangerAlpha200}),'&[data-feedback="warning"]':d(e,{idle1:e.colors.$warningAlpha400,idle2:e.colors.$warningAlpha200,hover1:e.colors.$warningAlpha500,hover2:e.colors.$warningAlpha200,focus:e.colors.$warningAlpha200}),'&[data-feedback="success"]':d(e,{idle1:e.colors.$successAlpha400,idle2:e.colors.$successAlpha200,hover1:e.colors.$successAlpha500,hover2:e.colors.$successAlpha200,focus:e.colors.$successAlpha200})}),p={elements:({theme:e})=>({button:{'&[data-variant="solid"]':{borderWidth:"0px","&:after":{position:"absolute",content:'""',borderRadius:"inherit",zIndex:-1,inset:0,opacity:1,transitionProperty:e.transitionProperty.$common,transitionDuration:e.transitionDuration.$controls,background:`linear-gradient(180deg, ${e.colors.$whiteAlpha150} 0%, ${e.colors.$transparent} 100%)`},"&:hover::after":{opacity:0},"&:active::after":{opacity:1},'&[data-color="primary"]':{boxShadow:l(e.colors.$primary500),"&:focus":{boxShadow:[l(e.colors.$primary500),e.shadows.$focusRing.replace("{{color}}",e.colors.$colorRing)].toString()}},'&[data-color="danger"]':{boxShadow:l(e.colors.$danger500),"&:focus":{boxShadow:[l(e.colors.$danger500),e.shadows.$focusRing.replace("{{color}}",e.colors.$dangerAlpha200)].toString()}}},'&[data-variant="outline"]':{borderWidth:0,boxShadow:s(e.colors.$borderAlpha100),"&:focus":{boxShadow:[s(e.colors.$borderAlpha100),e.shadows.$focusRing.replace("{{color}}",e.colors.$colorRing)].toString()}},'&[data-variant="bordered"]':{borderWidth:0,boxShadow:s(e.colors.$borderAlpha100),"&:focus":{boxShadow:[s(e.colors.$borderAlpha100),e.shadows.$focusRing.replace("{{color}}",e.colors.$colorRing)].toString()}}},badge:{borderWidth:0,margin:"1px",'&[data-color="primary"]':{boxShadow:`${a} ${e.colors.$borderAlpha100}, ${e.shadows.$badge}`},'&[data-color="danger"]':{boxShadow:`${a} ${e.colors.$dangerAlpha300}, ${e.shadows.$badge}`},'&[data-color="success"]':{boxShadow:`${a} ${e.colors.$successAlpha300}, ${e.shadows.$badge}`},'&[data-color="warning"]':{boxShadow:`${a} ${e.colors.$warningAlpha300}, ${e.shadows.$badge}`}},input:{'&[data-variant="default"]':{...u(e)}},checkbox:{...((e,t)=>{let r=[`0px 0px 0px 1px ${t.idle1}`,e.shadows.$input.replace("{{color}}",t.idle2)].toString(),n=[`0px 0px 0px 1px ${t.hover1}`,e.shadows.$input.replace("{{color}}",t.hover2)].toString();return{boxShadow:r,"&:hover":{boxShadow:n},"&:focus-visible":{boxShadow:[n,e.shadows.$focusRing.replace("{{color}}",t.focus)].toString()}}})(e,{idle1:e.colors.$neutralAlpha150,idle2:e.colors.$neutralAlpha100,hover1:e.colors.$neutralAlpha300,hover2:e.colors.$neutralAlpha150,focus:e.colors.$neutralAlpha150}),padding:e.space.$1,width:e.sizes.$3x5,height:e.sizes.$3x5,appearance:"none",borderRadius:e.radii.$sm,border:"none",backgroundSize:`${e.sizes.$2} ${e.sizes.$2}`,backgroundPosition:"center",backgroundRepeat:"no-repeat","&:checked":{backgroundImage:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 8 8'%3E%3Cpath fill='${e.colors.$white}' fill-rule='evenodd' d='M7.712.233a.889.889 0 0 1 .055 1.256C6.742 2.61 6.249 3.291 5.508 4.615c-.279.5-.589 1.194-.835 1.784a36.761 36.761 0 0 0-.382.95l-.021.057-.006.014-.001.003a.89.89 0 0 1-1.504.27L.218 4.765A.889.889 0 1 1 1.56 3.6l1.591 1.834c.235-.548.524-1.181.806-1.685.807-1.445 1.38-2.239 2.499-3.46A.889.889 0 0 1 7.712.234Z' clip-rule='evenodd'/%3E%3C/svg%3E")`,borderColor:e.colors.$transparent,backgroundColor:e.colors.$primary500}},tagInputContainer:{...u(e)},tagPillContainer:{borderWidth:0,boxShadow:`${a} ${e.colors.$borderAlpha100}, ${e.shadows.$badge}`},phoneInputBox:{...u(e)},formInputGroup:{...u(e)},selectSearchInput__countryCode:{boxShadow:"none","&:focus":{boxShadow:"none"}},cardBox:{borderWidth:0,boxShadow:`${e.shadows.$cardBoxShadow}, ${a} ${e.colors.$borderAlpha100}`},drawerContent:{borderWidth:0,boxShadow:`${e.shadows.$cardBoxShadow}, ${a} ${e.colors.$borderAlpha100}`},popoverBox:{borderWidth:0,boxShadow:`${e.shadows.$cardBoxShadow}, ${a} ${e.colors.$borderAlpha100}`},card:{...c(e)},pricingTableCard:{'&[data-variant="default"]':{borderWidth:0,boxShadow:`${e.shadows.$cardBoxShadow}, ${a} ${e.colors.$borderAlpha100}`},'&[data-variant="compact"]':{borderWidth:0,boxShadow:`0px 0px 2px 0px rgba(0, 0, 0, 0.08), 0px 1px 2px 0px rgba(25, 28, 33, 0.12), 0px 0px 0px 1px ${e.colors.$borderAlpha100}`}},scrollBox:{...c(e)},userButtonPopoverMain:{...c(e)},organizationSwitcherPopoverMain:{...c(e)},menuList:{borderWidth:0,boxShadow:`${e.shadows.$menuShadow}, ${a} ${e.colors.$borderAlpha100}`},actionCard:{borderWidth:0,boxShadow:`${e.shadows.$actionCardShadow}, ${a} ${e.colors.$borderAlpha100}`},table:{borderWidth:0,boxShadow:`0px 0px 2px 0px rgba(0, 0, 0, 0.08), 0px 1px 2px 0px rgba(25, 28, 33, 0.12), 0px 0px 0px 1px ${e.colors.$borderAlpha100}`}})},m={simpleStyles:!0,elements:{}};var h=r(56279),g=r(11867),f=r(82635),b=r(96289),v=r(25407),y=r(87135),w=r(28097),x=r(99065),S=r(12041);let C=e=>(Object.keys(e).forEach(t=>void 0===e[t]&&delete e[t]),e),$={logoPlacement:"inside",socialButtonsPlacement:"top",socialButtonsVariant:"auto",logoImageUrl:"",logoLinkUrl:"",showOptionalFields:!0,helpPageUrl:"",privacyPageUrl:"",termsPageUrl:"",shimmer:!0,animations:!0,unsafe_disableDevelopmentModeWarnings:!1},_={theme:"auto",size:"normal",language:""},k=(e,t)=>{if(!e)return;let r=void 0!==e.theme?e.theme:e.baseTheme;void 0!==r&&(Array.isArray(r)?r:[r]).forEach(e=>{"string"==typeof e?k(((e="clerk")=>"simple"===e?m:p)(e),t):k(e,t)}),t.push(e)},P=e=>{if(!e)return{};let t={...(e=>{let t,r=(t=e.variables||{},x.d.modernColor()?t:Object.fromEntries(Object.entries(t).filter(([e,t])=>{if("string"==typeof t){let r=!t.startsWith("var(");return r||console.warn(`Invalid color value: ${t} for key: ${e}, using default value instead. Using CSS variables is not supported in this browser.`),r}return"object"==typeof t&&Object.entries(t).every(([e,t])=>{if("string"!=typeof t)return!0;let r=!t.startsWith("var(");return r||console.warn(`Invalid color value: ${t} for key: ${e}, using default value instead. Using CSS variables is not supported in this browser.`),r})}))),n=(0,y.rh)(r.colorDanger,"danger"),o=(0,y.rh)(r.colorPrimary,"primary"),i=(0,y.rh)(r.colorSuccess,"success"),a=(0,y.rh)(r.colorWarning,"warning"),l=(0,y.jV)(n?.danger500,"dangerAlpha"),s=(0,y.jV)(r.colorNeutral,"neutralAlpha"),c=(0,y.jV)(o?.primary500,"primaryAlpha"),d=(0,y.jV)(i?.success500,"successAlpha"),u=(0,y.jV)(a?.warning500,"warningAlpha"),p=(0,y.jV)(r.colorBorder||r.colorNeutral,"borderAlpha");return C({...n,...o,...i,...a,...l,...s,...c,...d,...u,...p,primaryHover:v.O9.adjustForLightness(o?.primary500),colorPrimaryForeground:r.colorPrimaryForeground?v.O9.toHslaString(r.colorPrimaryForeground):r.colorTextOnPrimaryBackground?v.O9.toHslaString(r.colorTextOnPrimaryBackground):void 0,colorForeground:r.colorForeground?v.O9.toHslaString(r.colorForeground):v.O9.toHslaString(r.colorText),colorMutedForeground:r.colorMutedForeground?v.O9.toHslaString(r.colorMutedForeground):r.colorTextSecondary?v.O9.toHslaString(r.colorTextSecondary):r.colorForeground?v.O9.makeTransparent(r.colorForeground,.35):v.O9.makeTransparent(r.colorText,.35),colorInputForeground:r.colorInputForeground?v.O9.toHslaString(r.colorInputForeground):v.O9.toHslaString(r.colorInputText),colorBackground:v.O9.toHslaString(r.colorBackground),colorInput:r.colorInput?v.O9.toHslaString(r.colorInput):v.O9.toHslaString(r.colorInputBackground),colorShimmer:v.O9.toHslaString(r.colorShimmer),colorMuted:r.colorMuted?v.O9.toHslaString(r.colorMuted):void 0,colorRing:r.colorRing?v.O9.makeTransparent(v.O9.toHslaString(r.colorRing),.85):void 0,colorShadow:r.colorShadow?v.O9.toHslaString(r.colorShadow):void 0,colorModalBackdrop:r.colorModalBackdrop?v.O9.makeTransparent(v.O9.toHslaString(r.colorModalBackdrop),.27):void 0,avatarBackground:s?.neutralAlpha400?v.O9.toHslaString(s.neutralAlpha400):void 0,avatarBorder:s?.neutralAlpha200?v.O9.toHslaString(s.neutralAlpha200):void 0})})(e)},r={...(e=>{let{borderRadius:t}=e.variables||{};if(void 0===t)return;let r="none"===t?"0":t;return{sm:`calc(${r} * ${f.u2.sm})`,md:r,lg:`calc(${r} * ${f.u2.lg})`,xl:`calc(${r} * ${f.u2.xl})`}})(e)},n={...(e=>{let{spacing:t,spacingUnit:r}=e.variables||{},n=t??r;if(void 0!==n)return(0,S.s)(f.Mx.map(e=>{let t=Number.parseFloat(e.replace("x","."));return[e,`calc(${n} * ${t/.5*.125})`]}))})(e)},o={...(e=>{let{fontSize:t}=e.variables||{};if(void 0!==t)return"object"==typeof t?C(Object.fromEntries(Object.entries(b.q0).map(([e,r])=>[e,t[e]??void 0]))):Object.fromEntries(Object.entries(b.q0).map(([e,r])=>[e,"1"===r?t:`calc(${t} * ${r})`]))})(e)},i={...(e=>{let{fontWeight:t}=e.variables||{};return C({...t})})(e)},a={...(e=>{let{fontFamily:t,fontFamilyButtons:r}=e.variables||{};return C({main:t,buttons:r})})(e)},l={...(e=>{let{colorShadow:t}=e.variables||{};if(!t)return;let r=v.O9.toHslaString(t);if(r)return(0,g.on)(r,(0,g.rx)((e,t)=>(0,w.Mw)(e,100*t)))})(e)};return(0,h.cS)({colors:t,radii:r,space:n,fontSizes:o,fontWeights:i,fonts:a,shadows:l})},[I,A]=(0,o.uH)("AppearanceContext"),T=e=>{let t=(0,o.I7)(()=>({value:(e=>{let t,r,{globalAppearance:n,appearance:o,appearanceKey:a}=e,l=[];[n,n?.[a],o].forEach(e=>k(e,l));let s=(e=>{let t={};return(0,i.EB)({...h.$4},t),e.forEach(e=>{(0,i.EB)(P(e),t)}),t})(l),c=(t=l,{...$,...t.reduce((e,t)=>({...e,...t.layout}),{})}),d=(r=l,{..._,...r.reduce((e,t)=>{if(t.captcha){let{theme:r,size:n,language:o}=t.captcha;return{...e,...r&&{theme:r},...n&&{size:n},...o&&{language:o}}}return e},{})});return l.find(e=>!!e.simpleStyles)||l.unshift(p),{parsedElements:l.map(e=>{if(!e.elements||"function"!=typeof e.elements)return e;let t={...e};return t.elements=e.elements({theme:s}),t}).map(e=>({...e?.elements})),parsedInternalTheme:s,parsedLayout:c,parsedCaptcha:d}})(e)}),[e.appearance,e.globalAppearance]);return(0,n.tZ)(I.Provider,{value:t,children:e.children})}},38873:function(e,t,r){r.d(t,{Z:()=>p});var n=r(73312),o=r(69144),i=r(2672),a=r(44569);let l=o.memo(e=>{let[t,r]=o.useState(!0),i=o.useRef(null);return o.useEffect(()=>{let n=i.current;n&&(t&&r(!1),n.setAttribute("class",e.className),"isFlowReady"in e&&n.setAttribute("data-component-status",e.isFlowReady?"ready":"awaiting-data"))},[e.className,e.isFlowReady]),(0,n.BX)(n.HY,{children:[e.children,t&&(0,n.tZ)("span",{ref:e=>i.current=e?e.parentElement:i.current,"aria-hidden":!0,style:{display:"none"}})]})}),s=(0,a.P)(l,{defaultStyles:e=>({boxSizing:"border-box",width:"fit-content",fontFamily:e.fonts.$main,fontStyle:e.fontStyles.$normal})});var c=r(51217),d=r(40342),u=r(64204);let p={Root:e=>(0,n.tZ)(i.FlowMetadataProvider,{flow:e.flow,children:(0,n.tZ)(c.InternalThemeProvider,{children:(0,n.tZ)(s,{elementDescriptor:u.descriptors.rootBox,className:(0,d.vn)(e),...e})})}),Part:e=>{let{flow:t}=(0,i.useFlowMetadata)();return(0,n.tZ)(i.FlowMetadataProvider,{flow:t,part:e.part,children:(0,n.tZ)(c.InternalThemeProvider,{children:e.children})})}}},40342:function(e,t,r){r.d(t,{ZS:()=>u,fI:()=>v,u8:()=>a,vn:()=>b});var n=r(44975);let o=Object.freeze({loading:` ${n.jW}loading`,error:` ${n.jW}error`,open:` ${n.jW}open`,active:` ${n.jW}active`}),i=Object.freeze({loading:2,error:2,open:2,active:2}),a=(e,t,r,n)=>{let o=h(n),i="",a=[];return i=m(i=d(i=c(i=s(i=l(i,t),t,r),o),n),e,t,r,o),p(a,e,t,r,o),{className:i,css:a}},l=(e,t)=>{for(let r=t.length-1;r>=0;r--)e+=t[r].targettableClassname+" ";return e.trimEnd()},s=(e,t,r)=>{if(!r)return e;for(let n=t.length-1;n>=0;n--)e=e+" "+t[n].getTargettableIdClassname(r);return e},c=(e,t)=>t?e+o[t]:e,d=(e,t)=>t&&t.isRequired?e+` ${n.jW}required`:e,u=(e,t)=>e+(t?" "+t:"")+" \uD83D\uDD12️",p=(e,t,r,n,o)=>{for(let i=0;i<r.length;i++)for(let a=0;a<t.length;a++)w(e,t[a],r[i],n,o)},m=(e,t,r,n,o)=>{for(let i=0;i<r.length;i++)for(let a=0;a<t.length;a++)e=y(e,t[a],r[i],n,o);return e},h=e=>{if(e){if(e.isLoading)return"loading";if(e.hasError)return"error";if(e.isOpen)return"open";if(e.isActive)return"active"}},g=(e,t)=>"string"==typeof t?e+" "+t:e,f=(e,t,r=0)=>{r?t&&"object"==typeof t&&e.push({["&".repeat(r)]:t}):t&&"object"==typeof t&&e.push(t)},b=e=>n.jW+e.flow+"-root",v=e=>e.part?n.jW+e.flow+"-"+e.part:"",y=(e,t,r,n,o)=>(t&&(e=g(e,t[r.objectKey]),n&&(e=g(e,t[r.getObjectKeyWithId(n)])),o&&(e=g(e,t[r.getObjectKeyWithState(o)])),n&&o&&(e=g(e,t[r.getObjectKeyWithIdAndState(n,o)]))),e),w=(e,t,r,n,o)=>{t&&(f(e,t[r.objectKey]),n&&f(e,t[r.getObjectKeyWithId(n)]),o&&f(e,t[r.getObjectKeyWithState(o)],i[o]),n&&o&&f(e,t[r.getObjectKeyWithIdAndState(n,o)],i[o]))}},44975:function(e,t,r){r.d(t,{tp:()=>l,jW:()=>o});var n=r(12041);let o="cl-",i=["button","input","checkbox","radio","table","rootBox","cardBox","card","footerItem","popoverBox","disclosureRoot","disclosureTrigger","disclosureContentRoot","disclosureContentInner","disclosureContent","lineItemsRoot","lineItemsDivider","lineItemsGroup","lineItemsTitle","lineItemsTitleDescription","lineItemsDescription","lineItemsDescriptionInner","lineItemsDescriptionSuffix","lineItemsDescriptionPrefix","lineItemsDescriptionText","lineItemsCopyButton","lineItemsDowngradeNotice","actionCard","logoBox","logoImage","header","headerTitle","headerSubtitle","headerBackLink","main","footer","footerAction","footerActionText","footerActionLink","footerPages","footerPagesLink","backRow","backLink","socialButtonsRoot","socialButtons","socialButtonsIconButton","socialButtonsBlockButton","socialButtonsBlockButtonText","socialButtonsProviderIcon","socialButtonsProviderInitialIcon","lastAuthenticationStrategyBadge","enterpriseButtonsProviderIcon","providerIcon","providerInitialIcon","alternativeMethods","alternativeMethodsBlockButton","alternativeMethodsBlockButtonText","alternativeMethodsBlockButtonArrow","checkoutFormLineItemsRoot","checkoutFormElementsRoot","checkoutSuccessRoot","checkoutSuccessRings","checkoutSuccessBadge","checkoutSuccessTitle","checkoutSuccessDescription","otpCodeField","otpCodeFieldInputs","otpCodeFieldInput","otpCodeFieldInputContainer","otpCodeFieldErrorText","otpCodeFieldSuccessText","formResendCodeLink","dividerRow","dividerColumn","dividerText","dividerLine","drawerBackdrop","drawerRoot","drawerContent","drawerHeader","drawerTitle","drawerBody","drawerFooter","drawerFooterTitle","drawerFooterDescription","drawerClose","drawerConfirmationBackdrop","drawerConfirmationRoot","drawerConfirmationTitle","drawerConfirmationDescription","drawerConfirmationActions","formHeader","formHeaderTitle","formHeaderSubtitle","verificationLinkStatusBox","verificationLinkStatusIconBox","verificationLinkStatusIcon","verificationLinkStatusText","form","formContainer","formFieldRow","formField","formFieldLabelRow","formFieldLabel","formFieldRadioGroup","formFieldRadioGroupItem","formFieldRadioInput","formFieldRadioLabel","formFieldRadioLabelTitle","formFieldRadioLabelDescription","formFieldCheckboxInput","formFieldCheckboxLabel","formFieldAction","formFieldInput","formFieldErrorText","formFieldWarningText","formFieldSuccessText","formFieldInfoText","formFieldHintText","formButtonPrimary","formButtonReset","formFieldInputGroup","formFieldInputShowPasswordButton","formFieldInputShowPasswordIcon","formFieldInputCopyToClipboardButton","formFieldInputCopyToClipboardIcon","phoneInputBox","formInputGroup","avatarBox","avatarImage","avatarImageActions","avatarImageActionsUpload","avatarImageActionsRemove","userButtonBox","userButtonOuterIdentifier","userButtonTrigger","userButtonAvatarBox","userButtonAvatarImage","userButtonPopoverRootBox","userButtonPopoverCard","userButtonPopoverMain","userButtonPopoverActions","userButtonPopoverActionButton","userButtonPopoverActionButtonIconBox","userButtonPopoverActionButtonIcon","userButtonPopoverCustomItemButton","userButtonPopoverCustomItemButtonIconBox","userButtonPopoverActionItemButtonIcon","userButtonPopoverFooter","userButtonPopoverFooterPagesLink","organizationSwitcherTrigger","organizationSwitcherTriggerIcon","organizationSwitcherPopoverRootBox","organizationSwitcherPopoverCard","organizationSwitcherPopoverMain","organizationSwitcherPopoverActions","organizationSwitcherPopoverInvitationActions","organizationSwitcherPopoverInvitationActionsBox","organizationSwitcherPopoverActionButton","organizationSwitcherPreviewButton","organizationSwitcherInvitationAcceptButton","organizationSwitcherPopoverActionButtonIconBox","organizationSwitcherPopoverActionButtonIcon","organizationSwitcherPopoverFooter","organizationProfileMembersSearchInputIcon","organizationProfileMembersSearchInput","organizationListPreviewItems","organizationListPreviewItem","organizationListPreviewButton","organizationListPreviewItemActionButton","organizationListCreateOrganizationActionButton","taskChooseOrganizationPreviewItem","taskChooseOrganizationPreviewItems","taskChooseOrganizationCreateOrganizationActionButton","taskChooseOrganizationPreviewButton","taskSetupMfaMethodSelectionItem","taskSetupMfaMethodSelectionItems","taskSetupMfaPhoneSelectionItems","taskSetupMfaPhoneSelectionItem","taskSetupMfaPhoneSelectionAddPhoneAction","userAvatarBox","userAvatarImage","userPreview","userPreviewAvatarContainer","userPreviewAvatarBox","userPreviewAvatarImage","userPreviewAvatarIcon","userPreviewTextContainer","userPreviewMainIdentifier","userPreviewMainIdentifierText","userPreviewSecondaryIdentifier","organizationPreview","organizationPreviewAvatarContainer","organizationPreviewAvatarBox","organizationPreviewAvatarImage","organizationPreviewTextContainer","organizationPreviewMainIdentifier","organizationPreviewSecondaryIdentifier","organizationAvatarUploaderContainer","membersPageInviteButton","identityPreview","identityPreviewText","identityPreviewEditButton","identityPreviewEditButtonIcon","passkeyIcon","accountSwitcherActionButton","accountSwitcherActionButtonIconBox","accountSwitcherActionButtonIcon","pricingTable","pricingTableCard","pricingTableCardHeader","pricingTableCardTitleContainer","pricingTableCardTitle","pricingTableCardDescription","pricingTableCardBody","pricingTableCardStatusRow","pricingTableCardStatus","pricingTableCardFeatures","pricingTableCardFeaturesList","pricingTableCardFeaturesListItem","pricingTableCardFeaturesListItemContent","pricingTableCardFeaturesListItemTitle","pricingTableCardPeriodToggle","pricingTableCardFeeContainer","pricingTableCardFee","pricingTableCardFeePeriod","pricingTableCardFeePeriodNotice","pricingTableCardFooter","pricingTableCardFooterButton","pricingTableCardFooterNotice","pricingTableMatrix","pricingTableMatrixTable","pricingTableMatrixRowGroup","pricingTableMatrixRowGroupHeader","pricingTableMatrixRowGroupBody","pricingTableMatrixRow","pricingTableMatrixRowHeader","pricingTableMatrixRowBody","pricingTableMatrixColumnHeader","pricingTableMatrixCell","pricingTableMatrixCellFooter","pricingTableMatrixAvatar","pricingTableMatrixBadge","pricingTableMatrixPlanName","pricingTableMatrixFee","pricingTableMatrixFeePeriod","pricingTableMatrixFeePeriodNotice","pricingTableMatrixFeePeriodNoticeInner","pricingTableMatrixFeePeriodNoticeLabel","pricingTableMatrixFooter","planDetailHeader","planDetailAvatar","planDetailBadgeAvatarTitleDescriptionContainer","planDetailBadgeContainer","planDetailBadge","planDetailTitle","planDetailTitleDescriptionContainer","planDetailDescription","planDetailAction","planDetailFeeContainer","planDetailFee","planDetailFeePeriod","planDetailFeePeriodNotice","planDetailFeePeriodNoticeInner","planDetailFeePeriodNoticeLabel","planDetailCaption","planDetailFeatures","planDetailFeaturesList","planDetailFeaturesListItem","planDetailFeaturesListItemContent","planDetailFeaturesListItemTitle","planDetailFeaturesListItemDescription","planDetailPeriodToggle","segmentedControlRoot","segmentedControlButton","switchRoot","switchIndicator","switchThumb","switchLabel","alert","alertIcon","alertText","alertTextContainer","tagInputContainer","tagPillIcon","tagPillContainer","tabPanel","tabButton","tabListContainer","tableHead","tableBody","tableRow","tableHeaderCell","tableBodyCell","paginationButton","paginationButtonIcon","paginationRowText","selectButton","selectSearchInput","selectButtonIcon","selectOptionsContainer","selectOption","paymentMethodRow","paymentMethodRowIcon","paymentMethodRowText","paymentMethodRowType","paymentMethodRowValue","paymentMethodRowBadge","statementRoot","statementHeader","statementHeaderTitleContainer","statementHeaderTitle","statementHeaderBadge","statementBody","statementSection","statementSectionHeader","statementSectionHeaderTitle","statementSectionContent","statementSectionContentItem","statementSectionContentDetailsList","statementSectionContentDetailsListItem","statementSectionContentDetailsListItemLabelContainer","statementSectionContentDetailsListItemLabel","statementSectionContentDetailsListItemValue","statementSectionContentDetailsHeader","statementSectionContentDetailsHeaderItem","statementSectionContentDetailsHeaderItemIcon","statementSectionContentDetailsHeaderTitle","statementSectionContentDetailsHeaderDescription","statementSectionContentDetailsHeaderSecondaryTitle","statementSectionContentDetailsHeaderSecondaryDescription","statementFooter","statementFooterLabel","statementFooterValueContainer","statementFooterCurrency","statementFooterValue","statementCopyButton","menuButton","menuButtonEllipsis","menuButtonEllipsisBordered","menuList","menuItem","paymentAttemptRoot","paymentAttemptHeader","paymentAttemptHeaderTitleContainer","paymentAttemptHeaderTitle","paymentAttemptHeaderBadge","paymentAttemptBody","paymentAttemptFooter","paymentAttemptFooterLabel","paymentAttemptFooterValueContainer","paymentAttemptFooterCurrency","paymentAttemptFooterValue","paymentAttemptCopyButton","modalBackdrop","modalContent","modalCloseButton","profileSection","profileSectionItemList","profileSectionItem","profileSectionHeader","profileSectionTitle","profileSectionTitleText","profileSectionSubtitle","profileSectionSubtitleText","profileSectionContent","profileSectionPrimaryButton","profileSectionButtonGroup","profilePage","formattedPhoneNumber","formattedPhoneNumberFlag","formattedPhoneNumberText","formattedDate","scrollBox","navbar","navbarButtons","navbarButton","navbarButtonIcon","navbarButtonText","navbarMobileMenuRow","navbarMobileMenuButton","navbarMobileMenuButtonIcon","pageScrollBox","page","activeDevice","activeDeviceListItem","activeDeviceIcon","impersonationFab","impersonationFabIcon","impersonationFabIconContainer","impersonationFabTitle","impersonationFabActionLink","invitationsSentIconBox","invitationsSentIcon","qrCodeRow","qrCodeContainer","tooltip","tooltipContent","tooltipText","badge","notificationBadge","buttonArrowIcon","spinner","apiKeys","apiKeysHeader","apiKeysSearchBox","apiKeysSearchInput","apiKeysAddButton","apiKeysTable","apiKeysCopyButton","apiKeysRevealButton","apiKeysCreateForm","apiKeysCreateFormNameInput","apiKeysCreateFormDescriptionInput","apiKeysCreateFormExpirationInput","apiKeysCreateFormSubmitButton","apiKeysCreateFormExpirationCaption","apiKeysRevokeModal","apiKeysRevokeModalInput","apiKeysRevokeModalSubmitButton","apiKeysCopyModal","apiKeysCopyModalInput","apiKeysCopyModalSubmitButton","subscriptionDetailsCard","subscriptionDetailsCardHeader","subscriptionDetailsCardBadge","subscriptionDetailsCardTitle","subscriptionDetailsCardBody","subscriptionDetailsCardFooter","subscriptionDetailsCardActions","subscriptionDetailsActionButton","subscriptionDetailsCancelButton","subscriptionDetailsDetailRow","subscriptionDetailsDetailRowLabel","subscriptionDetailsDetailRowValue","enterpriseConnectionsRoot","enterpriseConnectionButton","enterpriseConnectionButtonText","web3SolanaWalletButtonsRoot","web3SolanaWalletButtons","web3SolanaWalletButtonsIconButton","web3SolanaWalletButtonsBlockButton","web3SolanaWalletButtonsBlockButtonText","web3SolanaWalletButtonsWalletIcon","web3SolanaWalletButtonsWalletInitialIcon","walletIcon","walletInitialIcon"].map(e=>e.replace(/-./g,e=>e[1].toUpperCase())),a=e=>e.replace(/([-][a-z])/,e=>e[1].toUpperCase()),l=((e=i)=>{let t=e.map(e=>[a(e),(e=>{let t=a(e);return{objectKey:t,targettableClassname:o+e,getTargettableIdClassname:t=>o+e+"__"+t.id,getObjectKeyWithState:e=>t+"__"+e,getObjectKeyWithId:e=>t+"__"+e.id,getObjectKeyWithIdAndState:(e,r)=>t+"__"+e.id+"__"+r,setId:e=>e?{id:e,__type:"id"}:void 0}})(e)]);return(0,n.s)(t)})()},64204:function(e,t,r){r.r(t),r.d(t,{Dt:()=>q,Flex:()=>b,Flow:()=>m.Z,Span:()=>G,Button:()=>w,Box:()=>f,Form:()=>F,NotificationBadge:()=>U,RadioInput:()=>R,Tbody:()=>N,useAppearance:()=>h.M,Image:()=>_,OTPInputSegment:()=>A,SimpleButton:()=>x,Alert:()=>k,FormErrorText:()=>Z,AppearanceProvider:()=>h.x,FormWarningText:()=>D,Icon:()=>L,Text:()=>$,Th:()=>V,Tr:()=>H,Thead:()=>W,localizationKeys:()=>n.u1,useLocalizations:()=>n.zJ,AlertIcon:()=>P,Badge:()=>O,FormLabel:()=>z,Grid:()=>y,Spinner:()=>M,descriptors:()=>i.tp,CheckboxInput:()=>T,FormInfoText:()=>E,Dd:()=>Y,Heading:()=>S,Link:()=>C,Table:()=>j,generateFlowPartClassname:()=>g.fI,Hr:()=>J,Col:()=>v,Td:()=>K,Dl:()=>X,Input:()=>I,FormSuccessText:()=>B});var n=r(17703),o=r(30215),i=r(44975),a=r(44569),l=r(73312),s=r(69144),c=r(63872);let d=["https://img.clerk.com/","https://img.clerkstage.dev/","https://img.lclclerk.com/"],u=({src:e,width:t})=>{if(!(0,c.jv)(e)||(0,c.pU)(e))return e;let r=new URL(e);return t&&r.searchParams.append("width",t?.toString()),r.href},p=e=>s.forwardRef((t,r)=>{let{elementId:n,elementDescriptor:o,localizationKey:i,...a}=t;return(0,l.tZ)(e,{...a,ref:r})});var m=r(38873),h=r(7316),g=r(40342);let f=(0,a.P)(p(o.xu)),b=(0,a.P)(p(o.kC)),v=(0,a.P)(p(o.JX)),y=(0,a.P)(p(o.rj)),w=(0,a.P)((0,n.W5)(p(o.zx)),{defaultDescriptor:i.tp.button}),x=(0,a.P)((0,n.W5)(p(o.rF)),{defaultDescriptor:i.tp.button}),S=(0,a.P)((0,n.W5)(p(o.X6))),C=(0,a.P)((0,n.W5)(p(o.rU))),$=(0,a.P)((0,n.W5)(p(o.xv))),_=(0,a.P)(p((e=>{let t=s.forwardRef((t,r)=>{let n,{src:o,size:i=80,xDescriptors:a=[1,2],...s}=t,c=(n=o,!!d.some(e=>n?.includes(e)));return(0,l.tZ)(e,{srcSet:c?(({src:e,width:t,xDescriptors:r})=>e?r.map(r=>`${u({src:e,width:t*r})} ${r}x`).toString():"")({src:o,width:i,xDescriptors:a}):void 0,src:c?u({src:o,width:2*i}):o,...s,ref:r})}),r=e.displayName||e.name||"Component";return t.displayName=`Responsive${r}`.replace("_",""),t})(o.Ee))),k=(0,a.P)(p(o.bZ)),P=(0,a.P)(p(o.zM)),I=(0,a.P)(p(o.II),{defaultDescriptor:i.tp.input}),A=(0,a.P)(p(o.v0),{defaultDescriptor:i.tp.input}),T=(0,a.P)(p(o.I0),{defaultDescriptor:i.tp.checkbox}),R=(0,a.P)(p(o.NA),{defaultDescriptor:i.tp.radio}),z=(0,a.P)((0,n.W5)(p(o.lX))),Z=(0,a.P)((0,n.W5)(p(o.jo))),B=(0,a.P)((0,n.W5)(p(o.Xc))),D=(0,a.P)((0,n.W5)(p(o.ZD))),E=(0,a.P)((0,n.W5)(p(o.Zh))),F=(0,a.P)(p(o.l0)),L=(0,a.P)(p(o.JO)),M=(0,a.P)(p(o.$j)),O=(0,a.P)((0,n.W5)(p(o.Ct)),{defaultDescriptor:i.tp.badge}),U=(0,a.P)((0,n.W5)(p(o.Cc)),{defaultDescriptor:i.tp.notificationBadge}),j=(0,a.P)(p(o.iA),{defaultDescriptor:i.tp.table}),W=(0,a.P)(p(o.hr),{defaultDescriptor:i.tp.tableHead}),N=(0,a.P)(p(o.p3),{defaultDescriptor:i.tp.tableBody}),H=(0,a.P)(p(o.Tr),{defaultDescriptor:i.tp.tableRow}),V=(0,a.P)((0,n.W5)(p(o.Th)),{defaultDescriptor:i.tp.tableHeaderCell}),K=(0,a.P)((0,n.W5)(p(o.Td)),{defaultDescriptor:i.tp.tableBodyCell}),X=(0,a.P)((0,n.W5)(p(o.Dl))),Y=(0,a.P)((0,n.W5)(p(o.Dd))),q=(0,a.P)((0,n.W5)(p(o.Dt))),G=(0,a.P)((0,n.W5)(p(o.Dr))),J=(0,a.P)(p(o.Hr))},44569:function(e,t,r){r.d(t,{P:()=>l});var n=r(73312),o=r(69144),i=r(7316),a=r(40342);let l=(e,t)=>{let{defaultStyles:r,defaultDescriptor:l}=t||{},s=o.forwardRef((t,o)=>{let{elementDescriptor:s,elementId:c,sx:d,className:u,...p}=t,{parsedElements:m}=(0,i.M)(),h=[l,...Array.isArray(s)?s:[s]].filter(e=>e);if(!h.length)return(0,n.tZ)(e,{css:d,...p,className:u,ref:o});let g=(0,a.u8)(m,h,c,t),f=(0,a.ZS)(g.className,u);return g.css.unshift(r,d),(0,n.tZ)(e,{elementId:c,css:g.css,className:f,...p,ref:o})}),c=e.displayName||e.name||"Component";return s.displayName=`Customizable${c}`.replace("_",""),s}},44709:function(e,t,r){r.d(t,{FR:()=>d,XC:()=>s});var n=r(73312),o=r(61869),i=r(69144),a=r(36781);let[l,s,c]=(0,o.uH)("ActionContext"),d=e=>{let{animate:t=!0,children:r,value:o,onChange:s}=e,[c,d]=(0,i.useState)(null),u=(0,i.useCallback)(()=>{s?s(null):d(null)},[s]),p=(0,i.useCallback)(e=>{s?s(e):d(e)},[s]),m=(0,n.tZ)(l.Provider,{value:{value:{active:void 0!==o?o:c,open:p,close:u}},children:r});return t?(0,n.tZ)(a.f,{children:m}):m}},99805:function(e,t,r){r.d(t,{a:()=>s});var n=r(73312),o=r(64204),i=r(44709),a=r(69144);let l=a.forwardRef((e,t)=>(0,n.tZ)("div",{ref:t,...e})),s={Root:i.FR,Card:e=>{let{children:t,sx:r,variant:i="neutral",...a}=e;return(0,n.tZ)(o.Col,{elementDescriptor:o.descriptors.actionCard,sx:[e=>({gap:e.space.$4,borderRadius:e.radii.$lg,padding:`${e.space.$4} ${e.space.$5}`,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,...{neutral:{backgroundColor:e.colors.$colorBackground},destructive:{backgroundColor:e.colors.$neutralAlpha50}}[i]}),r],...a,children:t})},Trigger:e=>{let{children:t,value:r,hideOnActive:n=!0}=e,{active:o,open:l}=(0,i.XC)(),s=a.Children.only(t);if(!(0,a.isValidElement)(s))throw Error("Children of ActionTrigger must be a valid element");return n&&o===r?null:(0,a.cloneElement)(s,{onClick:async()=>{await s.props.onClick?.(),l(r)}})},Open:({children:e,value:t})=>{let{active:r}=(0,i.XC)(),o=(0,a.useRef)(null);return((0,a.useEffect)(()=>{let e=o.current,n=new MutationObserver(()=>{n.disconnect(),e&&setTimeout(()=>{e.scrollIntoView({behavior:"smooth",block:"center"})},300)});return r===t&&e&&n.observe(e,{childList:!0,subtree:!0,attributes:!0}),()=>n.disconnect()},[r,t]),r!==t)?null:(0,n.tZ)(l,{ref:o,children:e})},Closed:e=>{let{children:t,value:r}=e,n=Array.isArray(r)?r:[r],{active:o}=(0,i.XC)();return o&&n.includes(o)?null:t}}},42305:function(e,t,r){r.d(t,{U8:()=>c,aU:()=>d,eX:()=>l,r5:()=>s});var n=r(73312);r(69144);var o=r(64204),i=r(2672),a=r(65695);let l=e=>{let{sx:t,...r}=e;return(0,n.tZ)(o.Col,{sx:[e=>({"> button,div":{border:`0 solid ${e.colors.$borderAlpha100}`},">:not([hidden],:empty)~:not([hidden],:empty)":{borderTopWidth:"1px",borderBottomWidth:"0"}}),t],...r})},s=e=>(0,n.tZ)(o.Col,{...e}),c=e=>{let{sx:t,iconBoxSx:r,iconSx:o,...i}=e;return(0,n.tZ)(d,{size:"xs",variant:"outline",textVariant:"buttonSmall",sx:[e=>({borderRadius:e.radii.$lg,gap:e.space.$0x5,justifyContent:"center",flex:"1 1 0",padding:`${e.space.$1} ${e.space.$1x5}`}),t],iconSx:[e=>({width:e.sizes.$4,height:e.sizes.$4}),o],iconBoxSx:[{flex:"unset"},r],...i})},d=e=>{let t=(0,i.useCardState)(),r=(0,a._m)(),{t:l}=(0,o.useLocalizations)(),{icon:s,label:c,onClick:d,iconElementDescriptor:u,sx:p,iconElementId:m,iconSx:h,iconBoxElementDescriptor:g,iconBoxElementId:f,iconBoxSx:b,trailing:v,spinnerSize:y,...w}=e,x=async e=>{t.setLoading(),r.setLoading();try{await d?.(e)}finally{t.setIdle(),r.setIdle()}};return(0,n.BX)(o.Button,{size:"md",variant:"ghost",colorScheme:"neutral",textVariant:"buttonLarge",hoverAsFocus:!0,focusRing:!1,sx:[e=>({flex:"1",borderRadius:0,gap:e.space.$4,justifyContent:"flex-start"}),p],isDisabled:t.isLoading,onClick:x,role:"menuitem",...w,children:[(0,n.tZ)(o.Flex,{elementDescriptor:g,elementId:f,justify:"center",as:"span",sx:[e=>({flex:`0 0 ${e.sizes.$9}`,gap:e.space.$2,alignItems:"center"}),b],children:r.isLoading?(0,n.tZ)(o.Spinner,{size:y||"xs",elementDescriptor:o.descriptors.spinner,sx:e=>({marginRight:e.space.$1})}):(0,n.tZ)(o.Icon,{elementDescriptor:u,elementId:m,icon:s,sx:[e=>({width:e.sizes.$4,height:"auto",maxWidth:"100%"}),h]})}),c?l(c):null,v]})}},9117:function(e,t,r){r.d(t,{b:()=>i});var n=r(73312),o=r(64204);let i=e=>{let{children:t,title:r,subtitle:i,variant:a="warning",...l}=e;if(!t&&!r&&!i)return null;let s="danger"===a?"danger":"warning"===a?"warning":"secondary";return(0,n.BX)(o.Alert,{elementDescriptor:o.descriptors.alert,elementId:o.descriptors.alert.setId(a),colorScheme:a,align:"start",...l,sx:[l.sx],children:[(0,n.tZ)(o.AlertIcon,{elementId:o.descriptors.alert.setId(a),elementDescriptor:o.descriptors.alertIcon,variant:a,colorScheme:a,sx:{flexShrink:"0"}}),(0,n.BX)(o.Col,{elementDescriptor:o.descriptors.alertTextContainer,elementId:o.descriptors.alertTextContainer.setId(a),gap:1,sx:{textAlign:"left"},children:[(0,n.tZ)(o.Text,{elementDescriptor:o.descriptors.alertText,elementId:o.descriptors.alert.setId(a),colorScheme:s,variant:i?"h3":"body",localizationKey:r,children:t}),i&&(0,n.tZ)(o.Text,{elementDescriptor:o.descriptors.alertText,elementId:o.descriptors.alert.setId(a),colorScheme:s,variant:"body",localizationKey:i})]})]})}},36781:function(e,t,r){r.d(t,{f:()=>l});var n=r(73312),o=r(57627),i=r(69144),a=r(64204);let l=e=>{let{children:t,asChild:r}=e,{animations:l}=(0,a.useAppearance)().parsedLayout,[s]=(0,o.u)();return r?(0,i.cloneElement)(t,{ref:l?s:null}):(0,n.tZ)("div",{ref:l?s:null,children:t})}},53174:function(e,t,r){r.d(t,{u:()=>c});var n=r(73312),o=r(69144),i=r(11576),a=r(64204),l=r(30215),s=r(86990);let c=e=>{let{src:t,alt:r,href:c,isExternal:d,sx:u,...p}=e,m=o.useRef(null),[h,g]=o.useState(!1),{logoImageUrl:f,applicationName:b,homeUrl:v}=(0,i.useEnvironment)().displayConfig,{parsedLayout:y}=(0,a.useAppearance)(),w=t||y.logoImageUrl||f,x=c||y.logoLinkUrl||v;if(!w)return null;let S=(0,n.tZ)(a.Image,{ref:m,elementDescriptor:a.descriptors.logoImage,alt:r||b,src:w,size:200,onLoad:()=>g(!0),sx:{display:h?"inline-block":"none",height:"100%",width:"100%",objectFit:"contain"}});return(0,n.tZ)(a.Flex,{elementDescriptor:a.descriptors.logoBox,...p,sx:[e=>({height:((e,t)=>{if(!e.current)return`calc(${t} * 2)`;let r=e.current.naturalWidth/e.current.naturalHeight;return r<=1?`calc(${t} * 2)`:r>1&&r<=2?`calc((${t} * 2) / ${r})`:t})(m,e.sizes.$6),justifyContent:"center"}),u],children:x?d?(0,n.tZ)(l.rU,{focusRing:!0,href:x,isExternal:!0,children:S}):(0,n.tZ)(s.r,{focusRing:!0,to:x,children:S}):S})}},38246:function(e,t,r){r.d(t,{$:()=>l});var n=r(73312),o=r(69144),i=r(64204),a=r(34174);let l=o.forwardRef((e,t)=>{let{rightIcon:r=a.LZ,rightIconSx:l,leftIcon:s,leftIconSx:c,leftIconElementId:d,leftIconElementDescriptor:u,isLoading:p,children:m,textElementDescriptor:h,textElementId:g,spinnerElementDescriptor:f,spinnerElementId:b,arrowElementDescriptor:v,arrowElementId:y,textLocalizationKey:w,childrenSx:x,badge:S,textVariant:C="buttonSmall",...$}=e,_=(0,o.isValidElement)(s);return(0,n.BX)(i.SimpleButton,{variant:"outline",block:!0,isLoading:p,...$,ref:t,sx:t=>[{gap:t.space.$2,position:"relative",justifyContent:"center",borderColor:t.colors.$neutralAlpha100,alignItems:"center",padding:`${t.space.$1x5} ${t.space.$3} ${t.space.$1x5} ${t.space.$2x5}`,"--arrow-opacity":"0","--arrow-transform":`translateX(-${t.space.$2});`,"&:hover,&:focus ":{"--arrow-opacity":"0.5","--arrow-transform":"translateX(0px);"}},e.sx],children:[(p||s)&&(0,n.tZ)(i.Flex,{as:"span",sx:e=>({width:e.space.$4,height:e.space.$4,flex:"none",alignItems:"center"}),children:p?(0,n.tZ)(i.Spinner,{elementDescriptor:f,elementId:b,size:"md"}):!_&&s?(0,n.tZ)(i.Icon,{elementDescriptor:u,elementId:d,icon:s,sx:[e=>({width:e.sizes.$4,transform:"translateZ(0)"}),c]}):s}),(0,n.BX)(i.Flex,{gap:2,as:"span",sx:[{overflow:"hidden"},x],children:[(0,n.tZ)(i.Text,{elementDescriptor:h,elementId:g,as:"span",truncate:!0,variant:C,localizationKey:w,children:m}),S]}),r&&(0,n.tZ)(i.Icon,{elementDescriptor:v,elementId:y,icon:r,sx:[e=>({transition:"all 100ms ease",minWidth:e.sizes.$4,minHeight:e.sizes.$4,width:"1em",height:"1em",opacity:"var(--arrow-opacity)",transform:"var(--arrow-transform)"}),l]})]})})},29629:function(e,t,r){r.d(t,{q:()=>l});var n=r(73312),o=r(69144),i=r(64204),a=r(51217);let l=e=>{let{size:t=()=>26,title:r,initials:a,imageUrl:l,rounded:c=!0,imageFetchSize:d=80,sx:u,boxElementDescriptor:p,imageElementDescriptor:m,showLoadingSpinner:h=!1}=e,[g,f]=o.useState(!1),[b,v]=o.useState(!1),[y,w]=o.useState(!1),x=o.useRef(null),S=o.useRef(null);o.useEffect(()=>(v(!1),f(!1),w(!1),x.current=null,()=>{S.current&&(clearTimeout(S.current),S.current=null)}),[l]),o.useEffect(()=>{if(!h||!l||b||g)return;let e=setTimeout(()=>{w(!0),x.current=Date.now()},150);return()=>clearTimeout(e)},[h,l,b,g]);let C=o.useCallback(()=>{if(x.current){let e=400-(Date.now()-x.current);if(e>0){S.current=setTimeout(()=>{S.current=null,v(!0)},e);return}}v(!0)},[]),$=h&&y&&l&&!b&&!g,_=a&&(!l||g)?(0,n.tZ)(s,{initials:a}):(0,n.tZ)(i.Image,{elementDescriptor:[m,i.descriptors.avatarImage],title:r,alt:`${r}'s logo`,src:l||"",sx:{objectFit:"cover",width:"100%",height:"100%",opacity:h?+!!b:1,transition:"opacity 0.2s ease-in-out"},onError:()=>f(!0),onLoad:C,size:d});return(0,n.BX)(i.Flex,{as:"span",elementDescriptor:[p,i.descriptors.avatarBox],sx:[e=>({flexShrink:0,borderRadius:c?e.radii.$circle:e.radii.$avatar,overflow:"hidden",width:t(e),height:t(e),backgroundColor:e.colors.$avatarBackground,backgroundClip:"padding-box",position:"relative"}),u],children:[_,$&&(0,n.tZ)(i.Flex,{as:"span",sx:e=>({position:"absolute",inset:0,alignItems:"center",justifyContent:"center",backgroundColor:e.colors.$avatarBackground}),children:(0,n.tZ)(i.Spinner,{size:"sm",colorScheme:"neutral"})}),(0,n.tZ)(i.Box,{as:"span",sx:e=>({overflow:"hidden",background:e.colors.$colorShimmer,position:"absolute",width:"25%",height:"100%",transition:`all ${e.transitionDuration.$slow} ${e.transitionTiming.$easeOut}`,transform:"var(--cl-shimmer-hover-transform, skewX(-45deg) translateX(-300%))",":after":{display:"block",boxSizing:"border-box",content:"''",position:"absolute",width:"400%",height:"100%",transform:"var(--cl-shimmer-hover-after-transform, skewX(45deg) translateX(75%))",transition:`all ${e.transitionDuration.$slow} ${e.transitionTiming.$easeOut}`,borderWidth:e.borderWidths.$heavy,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$colorShimmer,borderRadius:c?e.radii.$circle:e.radii.$avatar}})})]})},s=e=>{let t=e.initials;return(0,n.tZ)(i.Text,{as:"span",sx:e=>({...a.common.centeredFlex("inline-flex"),width:"100%",color:e.colors.$colorForeground}),children:t})}},6654:function(e,t,r){r.d(t,{C:()=>c});var n=r(73312),o=r(69144),i=r(64204),a=r(88870),l=r(2672);let s=Object.freeze(["image/png","image/jpeg","image/gif","image/webp"]),c=e=>{let{t}=(0,i.useLocalizations)(),[r,c]=o.useState(!1),[d,u]=o.useState(),p=(0,l.useCardState)(),m=o.useRef(null),h=()=>m.current?.click(),{onAvatarChange:g,onAvatarRemove:f,title:b,avatarPreview:v,avatarPreviewPlaceholder:y,...w}=e,x=e=>null===e?u(""):(new Promise((t,r)=>{let n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(n.result),n.onerror=e=>r(e)}).then(u),p.setLoading(),g(e).then(()=>{c(!r),p.setIdle()}).catch(e=>(0,a.S3)(e,[],p.setError))),S=async()=>(p.setLoading(),await x(null),f?.()),C=async e=>{if(e){if(!s.includes(e.type))return void p.setError(t((0,i.localizationKeys)("unstable__errors.avatar_file_type_invalid")));if(!(e.size<=1e7))return void p.setError(t((0,i.localizationKeys)("unstable__errors.avatar_file_size_exceeded")));await x(e)}},$=!!v.props?.imageUrl,_=d?o.cloneElement(v,{imageUrl:d}):y&&!$?o.cloneElement(y,{onClick:h}):v;return(0,n.BX)(i.Col,{gap:4,children:[(0,n.tZ)("input",{type:"file",accept:s.join(","),style:{display:"none"},ref:m,onChange:e=>C(e.currentTarget.files?.[0])}),(0,n.BX)(i.Flex,{gap:4,align:"center",...w,children:[_,(0,n.BX)(i.Col,{gap:1,children:[(0,n.BX)(i.Flex,{elementDescriptor:i.descriptors.avatarImageActions,gap:2,children:[(0,n.tZ)(i.SimpleButton,{elementDescriptor:i.descriptors.avatarImageActionsUpload,localizationKey:(0,i.localizationKeys)("userProfile.profilePage.imageFormSubtitle"),isDisabled:p.isLoading,variant:"outline",size:"xs",onClick:h}),!!f&&!r&&(0,n.tZ)(i.Button,{elementDescriptor:i.descriptors.avatarImageActionsRemove,localizationKey:(0,i.localizationKeys)("userProfile.profilePage.imageFormDestructiveActionSubtitle"),isDisabled:p.isLoading,sx:e=>({color:e.colors.$danger500}),variant:"ghost",colorScheme:"danger",onClick:S,size:"xs"})]}),(0,n.tZ)(i.Text,{colorScheme:"secondary",sx:e=>({fontSize:e.fontSizes.$sm}),localizationKey:(0,i.localizationKeys)("userProfile.profilePage.fileDropAreaHint")})]})]})]})}},5482:function(e,t,r){r.d(t,{h:()=>a});var n=r(73312),o=r(64204),i=r(86990);let a=e=>{let{boxElementDescriptor:t,linkElementDescriptor:r,...a}=e;return(0,n.tZ)(o.Flex,{elementDescriptor:t,sx:e=>({margin:`${e.space.$none} auto`}),children:(0,n.tZ)(i.r,{...a,children:(0,n.tZ)(o.Text,{localizationKey:(0,o.localizationKeys)("backButton"),elementDescriptor:r,variant:"body"})})})}},50097:function(e,t,r){r.d(t,{H:()=>a});var n=r(73312),o=r(64204),i=r(51217);let a=({sx:e,overlay:t,...r})=>(0,n.tZ)(o.Span,{...r,elementDescriptor:o.descriptors.lastAuthenticationStrategyBadge,localizationKey:(0,o.localizationKeys)("lastAuthenticationStrategy"),sx:[e=>({...i.common.textVariants(e).caption,background:`linear-gradient(${e.colors.$borderAlpha25}, transparent), ${e.colors.$colorBackground}`,border:`${e.space.$px} solid ${e.colors.$borderAlpha150}`,borderRadius:e.radii.$lg,color:e.colors.$colorMutedForeground,height:e.space.$4x5,paddingInline:e.space.$1x5,whiteSpace:"nowrap",boxShadow:`0 0 0 1px ${e.colors.$colorBackground}`,...t&&{position:"absolute",right:-1,top:-1,transform:`translate(${e.space.$2x5}, calc(-50% - ${e.space.$0x5}))`,pointerEvents:"none"}}),e]})},37321:function(e,t,r){r.d(t,{S:()=>l});var n=r(73312),o=r(69144),i=r(83935),a=r(64204);let l=({onInteractiveChange:e,gapless:t})=>{let r=(0,o.useRef)(null),l=(0,o.useRef)("0"),s=(0,o.useRef)("unset"),c=(0,o.useRef)("unset"),[d,u]=(0,o.useState)(!1),p=(0,o.useRef)(e);p.current=e;let m=(0,o.useRef)(!1),{parsedCaptcha:h}=(0,a.useAppearance)(),{locale:g}=(0,a.useLocalizations)(),f=h?.theme,b=h?.size,v=h?.language||g?.toLowerCase();return(0,o.useEffect)(()=>{if(!r.current)return;let e=new MutationObserver(e=>{e.forEach(e=>{let t=e.target;if("attributes"===e.type&&r.current){if("style"===e.attributeName&&(l.current=t.style.maxHeight||"0",s.current=t.style.minHeight||"unset",c.current=t.style.marginBottom||"unset",!("clInteractive"in t.dataset))){let e=t.style.maxHeight,r=""!==e&&"0"!==e&&"0px"!==e;r!==m.current&&(m.current=r,u(r),p.current?.(r))}if("data-cl-interactive"===e.attributeName){let e="true"===t.dataset.clInteractive;e!==m.current&&(m.current=e,u(e),p.current?.(e))}}})});return e.observe(r.current,{attributes:!0,attributeFilter:["style","data-cl-interactive"]}),()=>e.disconnect()},[]),(0,n.tZ)(a.Box,{ref:r,id:i.M,style:{display:"block",alignSelf:"center",maxHeight:l.current,minHeight:s.current,marginBottom:c.current,position:t?d?"static":"absolute":void 0},"data-cl-theme":f,"data-cl-size":b,"data-cl-language":v})}},48216:function(e,t,r){r.d(t,{m:()=>l});var n=r(73312),o=r(69144),i=r(51217),a=r(9117);let l=o.memo(e=>(0,n.tZ)(a.b,{variant:"danger",sx:e=>({animation:`${i.animations.textInBig} ${e.transitionDuration.$slow}`}),...e}))},92418:function(e,t,r){r.d(t,{Z:()=>C});var n=r(73312),o=r(69144),i=r(64204),a=r(86990),l=r(48216),s=r(11576),c=r(70143),d=r(34174),u=r(37434);let p=o.memo(o.forwardRef((e,t)=>{let{sx:r,outerSx:o,withFooterPages:a=!1,withDevOverlay:l=!1,devModeNoticeSx:d,...p}=e,{displayConfig:h}=(0,s.useEnvironment)(),{showDevModeNotice:g}=(0,c.n)();return h.branded||a||g?(0,n.BX)(i.Box,{sx:[{width:"100%",position:"relative",isolation:"isolate"},o],children:[l&&(0,n.tZ)(u.W,{gradient:0}),(0,n.BX)(i.Col,{sx:e=>({gap:h.branded||a?e.space.$2:0,marginLeft:"auto",marginRight:"auto",width:"100%",justifyContent:"center",alignItems:"center",zIndex:1,position:"relative"}),children:[(h.branded||a)&&(0,n.BX)(i.Flex,{sx:[{":has(div:only-child)":{justifyContent:"center"},justifyContent:"space-between",width:"100%"},r],...p,ref:t,children:[h.branded&&(0,n.tZ)(i.Flex,{gap:1,align:"center",justify:"center",sx:e=>({color:e.colors.$colorMutedForeground}),children:(0,n.BX)(n.HY,{children:[(0,n.tZ)(i.Text,{variant:"buttonSmall",children:"Secured by"}),(0,n.tZ)(m,{})]})}),a&&(0,n.tZ)(C.FooterLinks,{})]}),(0,n.tZ)(u.Y,{sx:d})]})]}):null})),m=()=>(0,n.tZ)(i.Link,{href:"https://go.clerk.com/components",colorScheme:"inherit",isExternal:!0,"aria-label":"Clerk logo",children:(0,n.tZ)(i.Icon,{icon:d.cN,sx:e=>({width:e.sizes.$12,height:e.sizes.$3x5})})});var h=r(2672),g=r(53412),f=r(56459);let b=o.forwardRef((e,t)=>{let{children:r,sx:o,...a}=e,c=(0,h.useFlowMetadata)(),{toggle:u}=(0,f.useUnsafeModalContext)(),{maintenanceMode:p}=(0,s.useEnvironment)(),m=(0,h.useCardState)(),{t:b}=(0,i.useLocalizations)();return(0,n.BX)(i.Flex,{direction:"col",className:(0,i.generateFlowPartClassname)(c),elementDescriptor:i.descriptors.card,sx:[e=>({backgroundColor:e.colors.$colorBackground,transitionProperty:e.transitionProperty.$common,transitionDuration:"200ms",textAlign:"center",zIndex:e.zIndices.$card,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,borderRadius:e.radii.$lg,position:"relative",padding:`${e.space.$8} ${e.space.$10}`,justifyContent:"center",alignContent:"center",marginBlockStart:"-1px",marginInline:"-1px"}),o],gap:8,ref:t,...a,children:[u&&(0,n.tZ)(g.h,{elementDescriptor:i.descriptors.modalCloseButton,variant:"ghost","aria-label":"Close modal",onClick:u,icon:(0,n.tZ)(i.Icon,{icon:d.x8,size:"xs"}),sx:e=>({color:e.colors.$colorMutedForeground,zIndex:e.zIndices.$modal,position:"absolute",top:e.space.$2,right:e.space.$2,padding:e.space.$3})}),p&&!m.error&&(0,n.tZ)(l.m,{variant:"warning",children:b((0,i.localizationKeys)("maintenanceMode"))}),r]})});var v=r(51217);let y=o.forwardRef((e,t)=>{let{children:r,isProfileFooter:o=!1,sx:a,...l}=e,{displayConfig:d}=(0,s.useEnvironment)(),{branded:u}=d,{showDevModeNotice:p}=(0,c.n)(),{helpPageUrl:m,privacyPageUrl:h,termsPageUrl:g}=(0,i.useAppearance)().parsedLayout,f=o?u:!!(u||m||h||g);return r||f||p?(0,n.BX)(i.Flex,{direction:"col",align:"center",justify:"center",elementDescriptor:i.descriptors.footer,sx:[e=>({marginTop:`calc(${e.space.$2} * -1)`,paddingTop:e.space.$2,background:v.common.mutedBackground(e),"&:empty":{padding:0,marginTop:0}}),!o&&(e=>({">:first-of-type":{padding:`${e.space.$4} ${e.space.$8} ${e.space.$4} ${e.space.$8}`},">:not(:first-of-type)":{padding:`${e.space.$4} ${e.space.$8}`,borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100}})),a],...l,ref:t,children:[r,(0,n.tZ)(C.ClerkAndPagesTag,{withFooterPages:f&&!o,devModeNoticeSx:e=>({padding:e.space.$none}),outerSx:o?e=>({padding:`${e.space.$4} ${e.space.$8}`}):void 0,withDevOverlay:!0})]}):null}),w=e=>(0,n.tZ)(i.Link,{elementDescriptor:i.descriptors.footerPagesLink,...e,colorScheme:"neutral",variant:"buttonSmall"}),x=o.memo(()=>{let{helpPageUrl:e,privacyPageUrl:t,termsPageUrl:r}=(0,i.useAppearance)().parsedLayout;return e||t||r?(0,n.BX)(i.Flex,{elementDescriptor:i.descriptors.footerPages,justify:"between",sx:e=>({gap:e.space.$3,[v.mqu.sm]:{gap:e.space.$2}}),children:[e&&(0,n.tZ)(w,{localizationKey:(0,i.localizationKeys)("footerPageLink__help"),elementId:i.descriptors.footerPagesLink.setId("help"),isExternal:!0,href:e}),t&&(0,n.tZ)(w,{localizationKey:(0,i.localizationKeys)("footerPageLink__privacy"),elementId:i.descriptors.footerPagesLink.setId("privacy"),isExternal:!0,href:t}),r&&(0,n.tZ)(w,{localizationKey:(0,i.localizationKeys)("footerPageLink__terms"),elementId:i.descriptors.footerPagesLink.setId("terms"),isExternal:!0,href:r})]}):null});var S=r(53174);let C={Root:o.forwardRef((e,t)=>{let{sx:r,children:o,...a}=e,l=(0,i.useAppearance)(),s=(0,h.useFlowMetadata)();return(0,n.BX)(n.HY,{children:["outside"===l.parsedLayout.logoPlacement&&(0,n.tZ)(S.u,{sx:e=>({position:"relative",[v.mqu.sm]:{margin:`0 0 ${e.space.$7} 0`}})}),(0,n.tZ)(i.Col,{elementDescriptor:[i.descriptors.cardBox,e.elementDescriptor],className:(0,i.generateFlowPartClassname)(s),ref:t,sx:[e=>({isolation:"isolate",maxWidth:`calc(100vw - ${e.sizes.$10})`,width:e.sizes.$100,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,borderRadius:e.radii.$xl,color:e.colors.$colorForeground,position:"relative",overflow:"hidden"}),r],...a,children:o})]})}),Content:b,Footer:y,Alert:l.m,Action:e=>{let{elementId:t,sx:r,...o}=e;return(0,n.tZ)(i.Flex,{elementDescriptor:i.descriptors.footerAction,elementId:i.descriptors.footerAction.setId(t),...o,gap:1,sx:[e=>({margin:`${e.space.$none} auto`}),r]})},ActionLink:e=>(0,n.tZ)(a.r,{elementDescriptor:i.descriptors.footerActionLink,...e,colorScheme:"primary",variant:"buttonLarge"}),ActionText:e=>(0,n.tZ)(i.Text,{elementDescriptor:i.descriptors.footerActionText,...e,as:"span",variant:"body",colorScheme:"secondary"}),FooterLinks:x,ClerkAndPagesTag:p}},68864:function(e,t,r){r.d(t,{D:()=>l});var n=r(73312),o=r(64204),i=r(65695),a=r(34174);let l=e=>{let{id:t,value:r,copyIcon:l=a.TU,copiedIcon:s=a.qy,sx:c,...d}=e,{onCopy:u,hasCopied:p}=(0,i.VP)(r);return(0,n.BX)(o.Flex,{direction:"col",justify:"center",sx:[{position:"relative"},c],children:[(0,n.tZ)(o.Input,{...d,value:r,isDisabled:!0,sx:e=>({paddingRight:e.space.$8})}),(0,n.tZ)(o.Button,{elementDescriptor:o.descriptors.formFieldInputCopyToClipboardButton,variant:"ghost",onClick:u,sx:{position:"absolute",right:0},children:(0,n.tZ)(o.Icon,{elementDescriptor:o.descriptors.formFieldInputCopyToClipboardIcon,icon:p?s:l,size:"sm"})})]})}},12667:function(e,t,r){r.d(t,{GZ:()=>w,KR:()=>x,e3:()=>g,q0:()=>y});var n=r(73312),o=r(61869),i=r(59244),a=r(69144),l=r(64204),s=r(2672),c=r(65695),d=r(51217),u=r(88870),p=r(57046),m=r(36788),h=r(85679);let g=e=>{let t=(0,s.useCardState)(),{id:r="code",onCodeEntryFinished:n,onResendCodeClicked:o,onResolve:i}=e,l=(0,m.Yp)(r,""),d=f(l),h=(0,c._m)(),g=async e=>{l.setSuccess("success"),await (0,p._)(750),await i?.(e)},b=async e=>{(0,u.S3)(e,[l],t.setError),h.setIdle(),await (0,p._)(750),d.reset()};d.onCodeEntryFinished(e=>{h.setLoading(),l.clearFeedback(),n(e,g,b)});let v=(0,a.useCallback)(e=>{d.reset(),o?.(e)},[d,o]);return{isLoading:h.isLoading,otpControl:d,onResendCode:o?v:void 0,onFakeContinue:()=>{l.clearFeedback(),n("",g,b)}}},f=(e,t)=>{let r=a.useRef(),n=e.value,{feedback:o,feedbackType:i,onChange:l,clearFeedback:s}=e,{length:c=6}=t||{},[d,u]=a.useState(()=>n?n.split("").slice(0,c):Array.from({length:c},()=>"")),p=a.useCallback(()=>{u(Array.from({length:c},()=>""))},[c]);return a.useEffect(()=>{if(d.filter(e=>e).length===c){let e=d.map(e=>e||" ").join("");r.current?.(e)}else{let e=d.join("");l?.({target:{value:e}})}},[d.toString()]),{otpInputProps:{length:c,values:d,setValues:u,feedback:o,feedbackType:i,clearFeedback:s},onCodeEntryFinished:e=>{r.current=e},reset:p}},[b,v]=(0,o.uH)("OTPInputContext"),y=({children:e,...t})=>(0,n.tZ)(b.Provider,{value:{value:t},children:e}),w=()=>{let{resendButton:e,onResendCode:t,isLoading:r,otpControl:o}=v();return t?(0,n.tZ)(h.u,{elementDescriptor:l.descriptors.formResendCodeLink,onClick:t,startDisabled:!0,isDisabled:"success"===o.otpInputProps.feedbackType||r,showCounter:"success"!==o.otpInputProps.feedbackType,localizationKey:e}):null},x=()=>{let[e,t]=a.useState(!1),{otpControl:r,isLoading:o,isDisabled:s}=v(),{feedback:c,values:d,setValues:u,feedbackType:p,length:m}=r.otpInputProps;return a.useEffect(()=>{c&&t(!0)},[c]),(0,n.tZ)(l.Box,{elementDescriptor:l.descriptors.otpCodeFieldInputContainer,sx:{position:"relative"},children:(0,n.tZ)(i.uZ,{autoFocus:!0,"aria-label":"Enter verification code","aria-required":!0,maxLength:m,inputMode:"numeric",pattern:i.Ww,textAlign:"center",value:d.join(""),onChange:e=>{u(e.split(""))},render:({slots:t})=>(0,n.tZ)(l.Flex,{align:"center",elementDescriptor:l.descriptors.otpCodeFieldInputs,gap:2,hasError:"error"===p,isLoading:o,role:"group",children:t.map((t,r)=>(0,n.tZ)(S,{elementDescriptor:l.descriptors.otpCodeFieldInput,isDisabled:s||o||e||"success"===p,hasError:"error"===p,isSuccessfullyFilled:"success"===p,...t},r))})})})};function S(e){let{isSuccessfullyFilled:t,...r}=e,{char:o,hasFakeCaret:i,isActive:a,placeholderChar:s,...c}=r;return(0,n.BX)(l.OTPInputSegment,{"data-testid":"otp-input-segment",...c,focusRing:a,variant:"default",sx:r=>({textAlign:"center",...d.common.textVariants(r).h2,padding:`${r.space.$0x5} 0`,boxSizing:"border-box",display:"flex",position:"relative",alignItems:"center",justifyContent:"center",height:r.space.$10,width:r.space.$10,color:r.colors.$colorInputForeground,borderWidth:r.borderWidths.$normal,borderRadius:r.radii.$md,...t?{borderColor:r.colors.$success500}:d.common.borderColor(r,e),backgroundColor:"unset",[d.mqu.sm]:{height:r.space.$8,width:r.space.$8}}),children:[null!==o&&(0,n.tZ)("div",{children:o}),i&&(0,n.tZ)(C,{})]})}function C(){return(0,n.BX)(n.HY,{children:[(0,n.tZ)("style",{children:`
|
|
6
|
+
@keyframes caret-blink-animation {
|
|
7
|
+
0%, 50% {
|
|
8
|
+
opacity: 1;
|
|
9
|
+
}
|
|
10
|
+
51%, 100% {
|
|
11
|
+
opacity: 0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
`}),(0,n.tZ)(l.Flex,{align:"center",justify:"center",sx:()=>({animation:"caret-blink-animation 1s infinite",pointerEvents:"none",position:"absolute",inset:0}),children:(0,n.tZ)(l.Box,{sx:e=>({height:e.space.$4,width:e.space.$px,backgroundColor:e.colors.$colorInputForeground})})})]})}},16600:function(e,t,r){r.d(t,{Uk:()=>s,wQ:()=>a});var n=r(73312);r(69144);var o=r(64204),i=r(77691);let a=e=>{let{headers:t,page:r,onPageChange:a,rows:s,isLoading:c,itemCount:d,itemsPerPage:u,pageCount:p,emptyStateLocalizationKey:m}=e,h=d>0?Math.max(0,(r-1)*u)+1:0,g=Math.min(r*u,d);return(0,n.BX)(o.Col,{gap:4,sx:{width:"100%"},children:[(0,n.tZ)(o.Flex,{sx:e=>({overflowX:"auto",padding:e.space.$1}),children:(0,n.BX)(o.Table,{sx:{tableLayout:"fixed"},children:[(0,n.tZ)(o.Thead,{children:(0,n.tZ)(o.Tr,{children:t.map((e,t)=>(0,n.tZ)(o.Th,{elementDescriptor:o.descriptors.tableHead,localizationKey:e,sx:{width:0===t?"auto":"25%"}},t))})}),(0,n.tZ)(o.Tbody,{children:c?(0,n.tZ)(o.Tr,{children:(0,n.tZ)(o.Td,{colSpan:4,children:(0,n.tZ)(o.Spinner,{colorScheme:"primary",sx:{margin:"auto",display:"block"},elementDescriptor:o.descriptors.spinner})})}):s.length?s:(0,n.tZ)(l,{localizationKey:m},"empty")})]})}),p>1&&(0,n.tZ)(i.t,{count:p,page:r,onChange:a,siblingCount:1,rowInfo:{allRowsCount:d,startingRow:h,endingRow:g}})]})},l=e=>(0,n.tZ)(o.Tr,{children:(0,n.tZ)(o.Td,{colSpan:4,children:(0,n.tZ)(o.Text,{localizationKey:e.localizationKey,sx:{margin:"auto",display:"block",width:"fit-content"}})})}),s=e=>(0,n.tZ)(o.Tr,{...e,sx:e=>({":hover":{backgroundColor:e.colors.$neutralAlpha50}})})},37434:function(e,t,r){r.d(t,{W:()=>a,Y:()=>l});var n=r(73312),o=r(64204),i=r(70143);let a=e=>{let{gradient:t=60}=e,{showDevModeNotice:r}=(0,i.n)();return r?(0,n.tZ)(o.Box,{sx:e=>({userSelect:"none",pointerEvents:"none",inset:0,position:"absolute",background:`repeating-linear-gradient(-45deg,${e.colors.$warningAlpha100},${e.colors.$warningAlpha100} 6px,${e.colors.$warningAlpha150} 6px,${e.colors.$warningAlpha150} 12px)`,maskImage:`linear-gradient(transparent ${t}%, black)`})}):null},l=e=>{let{sx:t}=e,{showDevModeNotice:r}=(0,i.n)();return r?(0,n.tZ)(o.Text,{sx:[e=>({color:e.colors.$warning500,fontWeight:e.fontWeights.$semibold,padding:e.space.$1x5}),t],children:"Development mode"}):null}},16735:function(e,t,r){r.d(t,{i:()=>i,p:()=>a});var n=r(73312),o=r(64204);let i=e=>{let{dividerText:t,...r}=e;return(0,n.BX)(o.Flex,{center:!0,elementDescriptor:o.descriptors.dividerRow,...r,children:[(0,n.tZ)(l,{}),(0,n.tZ)(o.Text,{localizationKey:t||(0,o.localizationKeys)("dividerText"),elementDescriptor:o.descriptors.dividerText,variant:"body",colorScheme:"secondary",sx:e=>({margin:`0 ${e.space.$4}`})}),(0,n.tZ)(l,{})]})},a=e=>{let{sx:t,...r}=e;return(0,n.tZ)(o.Flex,{center:!0,direction:"col",elementDescriptor:o.descriptors.dividerColumn,sx:[e=>({height:e.space.$6}),t],...r,children:(0,n.tZ)(l,{vertical:!0})})},l=e=>{let t=e?.vertical?{width:"1px"}:{height:"1px"};return(0,n.tZ)(o.Flex,{elementDescriptor:o.descriptors.dividerLine,sx:e=>({flex:"1",backgroundColor:e.colors.$borderAlpha100,...t})})}},81102:function(e,t,r){r.r(t),r.d(t,{Drawer:()=>$,FloatingOverlay:()=>f,useDrawerContext:()=>g});var n=r(73312),o=r(61869),i=r(67126),a=r(69144),l=r(73003),s=r(64204),c=r(65695),d=r(34174),u=r(51217),p=r(25407),m=r(53412);let h=a.createContext(null),g=()=>{let e=a.useContext(h);if(!e)throw Error("Drawer components must be wrapped in <Drawer.Root>");return e},f=a.forwardRef(function(e,t){let{strategy:r}=g(),{disableScrollLock:i,enableScrollLock:a}=(0,c.Pr)();return(0,o.Gw)(()=>{if("fixed"===r)return a(),()=>{i()}},[r,i,a]),(0,n.tZ)(s.Box,{ref:t,...e,elementDescriptor:s.descriptors.drawerBackdrop,sx:[e=>({inset:0,backgroundColor:p.O9.setAlpha(e.colors.$colorBackground,.28)}),e.sx]})}),b=a.forwardRef((e,t)=>{let{strategy:r,context:o}=g(),{isMounted:a,styles:s}=(0,i.Y_)(o,{initial:{opacity:0},open:{opacity:1},close:{opacity:0},common:{position:r,inset:0,transitionProperty:"opacity",transitionTimingFunction:l.$$.bezier},duration:l.bf.drawer});return a?(0,n.tZ)(f,{ref:t,style:{...s}}):null});b.displayName="Drawer.Overlay";let v=a.forwardRef(({children:e},t)=>{let r=(0,c.Tb)(),{animations:o}=(0,s.useAppearance)().parsedLayout,{strategy:a,refs:d,context:u,getFloatingProps:p,direction:m}=g(),h=(0,i.qq)([t,d.setFloating]),{isMounted:f,styles:b}=(0,i.Y_)(u,{initial:{transform:"translate3d(var(--transform-offset), 0, 0)"},open:{transform:"translate3d(0, 0, 0)"},close:{transform:"translate3d(var(--transform-offset), 0, 0)"},common:{transitionProperty:"transform",transitionTimingFunction:l.$$.bezier},duration:r||!0!==o?0:l.bf.drawer});return f?(0,n.tZ)(i.wD,{context:u,modal:!0,outsideElementsInert:!0,initialFocus:d.floating,children:(0,n.tZ)(s.Box,{ref:h,...p(),sx:e=>({position:a,insetBlock:0,insetInline:0,pointerEvents:"none",isolation:"isolate",zIndex:"absolute"===a?e.zIndices.$modal:void 0}),elementDescriptor:s.descriptors.drawerRoot,children:(0,n.tZ)(s.Flex,{elementDescriptor:s.descriptors.drawerContent,style:b,direction:"col",sx:e=>({"--transform-offset":"fixed"===a?`calc((100% + ${e.space.$3} + ${e.space.$8x75}) * ${"rtl"===m?-1:1})`:`calc((100% + ${e.space.$8x75}) * ${"rtl"===m?-1:1})`,willChange:"transform",position:a,insetBlock:"fixed"===a?e.space.$3:0,insetInlineEnd:"fixed"===a?e.space.$3:0,outline:0,width:e.sizes.$100,maxWidth:"fixed"===a?`calc(100% - ${e.space.$6})`:"100%",backgroundColor:e.colors.$colorBackground,borderStartStartRadius:e.radii.$lg,borderEndStartRadius:e.radii.$lg,borderEndEndRadius:"fixed"===a?e.radii.$lg:0,borderStartEndRadius:"fixed"===a?e.radii.$lg:0,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,overflow:"hidden",pointerEvents:"auto"}),children:e})})}):null});v.displayName="Drawer.Content";let y=a.forwardRef(({title:e,children:t,sx:r},o)=>(0,n.tZ)(s.Box,{ref:o,elementDescriptor:s.descriptors.drawerHeader,as:"header",sx:[t=>({display:"flex",background:u.common.mergedColorsBackground(p.O9.setAlpha(t.colors.$colorBackground,1),t.colors.$neutralAlpha50),borderBlockEndWidth:t.borderWidths.$normal,borderBlockEndStyle:t.borderStyles.$solid,borderBlockEndColor:t.colors.$borderAlpha150,borderStartStartRadius:t.radii.$lg,borderStartEndRadius:t.radii.$lg,paddingBlock:e?t.space.$3:void 0,paddingInline:e?t.space.$4:void 0}),r],children:e?(0,n.BX)(n.HY,{children:[(0,n.tZ)(s.Heading,{localizationKey:e,as:"h2",elementDescriptor:s.descriptors.drawerTitle,textVariant:"h2",sx:{alignSelf:"center"}}),(0,n.tZ)(S,{})]}):t})),w=a.forwardRef(({children:e,...t},r)=>(0,n.tZ)(s.Box,{ref:r,elementDescriptor:s.descriptors.drawerBody,sx:[()=>({display:"flex",flexDirection:"column",flex:1,overflowY:"auto",overflowX:"hidden"}),t.sx],...t,children:e})),x=a.forwardRef(({children:e,sx:t,...r},o)=>(0,n.tZ)(s.Box,{ref:o,elementDescriptor:s.descriptors.drawerFooter,sx:[e=>({display:"flex",flexDirection:"column",background:u.common.mergedColorsBackground(p.O9.setAlpha(e.colors.$colorBackground,1),e.colors.$neutralAlpha50),borderBlockStartWidth:e.borderWidths.$normal,borderBlockStartStyle:e.borderStyles.$solid,borderBlockStartColor:e.colors.$borderAlpha100,borderEndStartRadius:e.radii.$xl,borderEndEndRadius:e.radii.$xl,paddingBlock:e.space.$3,paddingInline:e.space.$4}),t],...r,children:e})),S=a.forwardRef((e,t)=>{let{setIsOpen:r}=g();return(0,n.tZ)(m.h,{ref:t,elementDescriptor:s.descriptors.drawerClose,variant:"ghost","aria-label":"Close drawer",onClick:()=>r(!1),icon:(0,n.tZ)(s.Icon,{icon:d.x8,size:"sm"}),sx:e=>({color:e.colors.$colorMutedForeground,padding:e.space.$3,marginInlineStart:"auto"})})});S.displayName="Drawer.Close";let C=a.forwardRef(({open:e,onOpenChange:t,children:r,actionsSlot:o,roleProps:a},d)=>{let m=(0,c.Tb)(),{animations:h}=(0,s.useAppearance)().parsedLayout,{refs:g,context:f}=(0,i.YF)({open:e,onOpenChange:t,transform:!1,strategy:"absolute"}),{getFloatingProps:b}=(0,i.NI)([(0,i.eS)(f),(0,i.bQ)(f),(0,i.qs)(f,{role:"alertdialog",...a})]),v=(0,i.qq)([d,g.setFloating]),{styles:y}=(0,i.Y_)(f,{initial:{opacity:0},open:{opacity:1},close:{opacity:0},common:{transitionProperty:"opacity",transitionTimingFunction:l.$$.bezier},duration:l.bf.drawer}),{isMounted:w,styles:x}=(0,i.Y_)(f,{initial:{transform:"translate3D(0, 100%, 0)"},open:{transform:"translate3D(0, 0, 0)"},close:{transform:"translate3D(0, 100%, 0)"},common:{transitionProperty:"transform",transitionTimingFunction:l.$$.bezier},duration:m||!0!==h?0:l.bf.drawer});return w?(0,n.BX)(n.HY,{children:[(0,n.tZ)(s.Span,{elementDescriptor:s.descriptors.drawerConfirmationBackdrop,style:y,sx:e=>({position:"absolute",inset:0,backgroundImage:`linear-gradient(to bottom, ${p.O9.setAlpha(e.colors.$colorBackground,.28)}, ${e.colors.$colorBackground})`})}),(0,n.tZ)(i.wD,{context:f,modal:!0,outsideElementsInert:!0,initialFocus:g.floating,children:(0,n.BX)(s.Box,{ref:v,elementDescriptor:s.descriptors.drawerConfirmationRoot,style:x,...b(),sx:e=>({display:"flex",flexDirection:"column",rowGap:e.space.$6,outline:"none",willChange:"transform",position:"absolute",bottom:0,left:0,right:0,background:u.common.mergedColorsBackground(p.O9.setAlpha(e.colors.$colorBackground,1),e.colors.$neutralAlpha50),padding:e.space.$4,borderStartStartRadius:e.radii.$md,borderStartEndRadius:e.radii.$md,boxShadow:`0 0 0 1px ${e.colors.$borderAlpha100}`}),children:[r,(0,n.tZ)(s.Flex,{elementDescriptor:s.descriptors.drawerConfirmationActions,gap:3,justify:"end",children:o})]})})]}):null});C.displayName="Drawer.Confirmation";let $={Root:function({children:e,open:t,onOpenChange:r,strategy:o="fixed",floatingProps:a,portalProps:l,dismissProps:s}){let d=(0,c.gm)(),{refs:u,context:p}=(0,i.YF)({open:t,onOpenChange:r,transform:!1,strategy:o,placement:"ltr"===d?"right":"left",...a}),{getFloatingProps:m}=(0,i.NI)([(0,i.eS)(p),(0,i.bQ)(p,s),(0,i.qs)(p)]);return(0,n.tZ)(h.Provider,{value:{isOpen:t,setIsOpen:r,strategy:o,portalProps:l||{},refs:u,context:p,getFloatingProps:m,direction:d},children:(0,n.tZ)(i.ll,{...l,children:e})})},Overlay:b,Content:v,Header:y,Body:w,Footer:x,Confirmation:C,Close:S}},24562:function(e,t,r){r.d(t,{_:()=>d});var n=r(73312);r(69144);var o=r(64204),i=r(93234),a=r(24676),l=r(92418),s=r(2672),c=r(92654);let d=e=>{let{shouldNavigateBack:t=!0}=e,r=(0,s.useCardState)(),{navigate:d}=(0,a.useRouter)(),u=(0,i.H)();return(0,n.tZ)(o.Flow.Part,{part:"havingTrouble",children:(0,n.BX)(l.Z.Root,{children:[(0,n.BX)(l.Z.Content,{children:[(0,n.BX)(c.h.Root,{showLogo:!0,children:[(0,n.tZ)(c.h.Title,{localizationKey:e.cardTitle||"Error"}),e.cardSubtitle&&(0,n.tZ)(c.h.Subtitle,{localizationKey:e.cardSubtitle})]}),(0,n.tZ)(l.Z.Alert,{children:r.error}),(0,n.BX)(o.Flex,{direction:"col",elementDescriptor:o.descriptors.main,gap:4,children:[e.message&&(0,n.tZ)(o.Text,{colorScheme:"secondary",localizationKey:e.message}),(0,n.tZ)(o.Button,{localizationKey:(0,o.localizationKeys)("signIn.alternativeMethods.getHelp.blockButton__emailSupport"),onClick:()=>{window.location.href=`mailto:${u}`},hasArrow:!0}),t?(0,n.tZ)(l.Z.Action,{elementId:"alternativeMethods",children:(0,n.tZ)(l.Z.ActionLink,{localizationKey:(0,o.localizationKeys)("backButton"),onClick:r=>{if(e.onBackLinkClick)return e.onBackLinkClick(r);t&&d("../")}})}):null]})]}),(0,n.tZ)(l.Z.Footer,{})]})})}},60807:function(e,t,r){r.d(t,{g:()=>E});var n=r(73312),o=r(69144),i=r(64204),a=r(80734),l=r(12667),s=r(2672),c=r(72642),d=r(65695),u=r(51217);let p=({feedback:e})=>{let[t,r]=(0,o.useState)(0);return{height:t,calculateHeight:(0,o.useCallback)(e=>{e&&r(e.scrollHeight+2*e.offsetTop)},[e])}},m=e=>{let{id:t,elementDescriptors:r,sx:a,feedback:l,feedbackType:s="info",center:m=!1}=e,h=(0,o.useRef)({a:void 0,b:void 0}),{getFormTextAnimation:g}=function(){let e=(0,d.Tb)(),{animations:t}=(0,i.useAppearance)().parsedLayout;return{getFormTextAnimation:(0,o.useCallback)((r,n)=>{if(e||!t)return{animation:"none"};let o=n?.inDelay?u.animations.inDelayAnimation:u.animations.inAnimation;return e=>({animation:`${r?o:u.animations.outAnimation} ${e.transitionDuration.$textField} ${e.transitionTiming.$common}`,transitionProperty:"height",transitionDuration:e.transitionDuration.$slow,transitionTimingFunction:e.transitionTiming.$common})},[e,t])}}(),f={error:i.descriptors.formFieldErrorText,warning:i.descriptors.formFieldWarningText,info:i.descriptors.formFieldInfoText,success:i.descriptors.formFieldSuccessText},b=(0,o.useMemo)(()=>{let e,t=h.current;return h.current=e=t.a?.shouldEnter?{a:{...t.a,shouldEnter:!1},b:{feedback:l,feedbackType:s,shouldEnter:!0}}:{a:{feedback:l,feedbackType:s,shouldEnter:!0},b:{...t.b,shouldEnter:!1}},e},[l,s]),{calculateHeight:v,height:y}=p({feedback:b.a?.feedback||""}),{calculateHeight:w,height:x}=p({feedback:b.b?.feedback||""}),S=(0,o.useRef)(Math.max(y,x)),C=(0,o.useMemo)(()=>{let e=Math.max(y,x,S.current);return S.current=e,e},[y,x]),$=e=>{if(!e)return{};let n=r?.[e]||f[e];return{elementDescriptor:n,elementId:t?n?.setId?.(t):void 0,id:"error"===e?`error-${t}`:`${t}-${e}-feedback`}},_={error:i.FormErrorText,info:i.FormInfoText,success:i.FormSuccessText,warning:i.FormWarningText},k=_[b.a?.feedbackType||"info"],P=_[b.b?.feedbackType||"info"];return(0,n.BX)(n.HY,{children:[(0,n.tZ)(i.Span,{"aria-live":"polite","aria-atomic":"true",sx:{...u.common.visuallyHidden()},children:l?(0,c.MI)(l):""}),(0,n.BX)(i.Flex,{style:{height:l?C:0,position:"relative"},center:m,sx:[g(!!l),a],children:[(0,n.tZ)(k,{...$(b.a?.feedbackType),...b.a?.feedbackType&&{"data-testid":`form-feedback-${b.a.feedbackType}`},ref:v,sx:[()=>({visibility:b.a?.shouldEnter?"visible":"hidden"}),g(!!b.a?.shouldEnter,{inDelay:!0})],localizationKey:(0,c.MI)(b.a?.feedback)}),(0,n.tZ)(P,{...$(b.b?.feedbackType),...b.b?.feedbackType&&{"data-testid":`form-feedback-${b.b.feedbackType}`},ref:w,sx:[()=>({visibility:b.b?.shouldEnter?"visible":"hidden"}),g(!!b.b?.shouldEnter,{inDelay:!0})],localizationKey:(0,c.MI)(b.b?.feedback)})]})]})},h=(0,o.forwardRef)((e,t)=>{let{sx:r,groupPrefix:o,groupSuffix:a,...l}=e,s=o?{borderTopLeftRadius:"0",borderBottomLeftRadius:"0"}:{borderTopRightRadius:"0",borderBottomRightRadius:"0"},c=e=>({paddingInline:e.space.$2,borderTopRightRadius:"0",borderBottomRightRadius:"0",width:"fit-content",display:"flex",alignItems:"center"});return(0,n.BX)(i.Flex,{elementDescriptor:i.descriptors.formInputGroup,direction:"row",hasError:l.hasError,sx:e=>({position:"relative",zIndex:1,...u.common.borderVariants(e).normal,':focus-within,&[data-focus-within="true"]':{...u.common.borderVariants(e,{focusRing:!0}).normal["&:focus"]}}),children:[o&&(0,n.tZ)(i.Text,{colorScheme:"secondary",sx:c,children:o}),(0,n.tZ)(i.Input,{maxLength:25,sx:[{...s},r],variant:"unstyled",ref:t,...l}),a&&(0,n.tZ)(i.Text,{colorScheme:"secondary",sx:c,children:a})]})});var g=r(80753),f=r(11576),b=r(49067),v=r(34174);let y=(...e)=>t=>{for(let r of e)r&&(r.current=t)};var w=r(53412);let x=(0,o.forwardRef)((e,t)=>{let[r,a]=o.useState(!0),{id:l,onChange:s,validatePassword:c=!1,setInfo:d,setSuccess:u,setWarning:p,setError:m,setHasPassedComplexity:h,tabIndex:x,...S}=e,C=(0,o.useRef)(null),[$,_]=(0,o.useState)(null),{userSettings:{passwordSettings:k}}=(0,f.useEnvironment)(),{t:P}=(0,i.useLocalizations)(),{validatePassword:I}=(0,b.i)({...k,validatePassword:c},{onValidationSuccess:()=>u(P((0,i.localizationKeys)("unstable__errors.zxcvbn.goodPassword"))),onValidationError:e=>m(e),onValidationWarning:e=>p(e),onValidationInfo:e=>{C.current&&(C.current===document.activeElement?d(e):m(e))},onValidationComplexity:e=>h(e)});return(0,n.BX)(i.Flex,{elementDescriptor:i.descriptors.formFieldInputGroup,direction:"col",justify:"center",sx:{position:"relative"},children:[(0,n.tZ)(i.Input,{...S,tabIndex:x,onChange:e=>($&&clearTimeout($),_(setTimeout(()=>{I(e.target.value)},g.hz)),s?.(e)),onBlur:e=>{S.onBlur?.(e),I(e.target.value)},onFocus:e=>{S.onFocus?.(e),I(e.target.value)},ref:y(t,C),type:r?"password":"text",sx:e=>({paddingRight:e.space.$10})}),(0,n.tZ)(w.h,{elementDescriptor:i.descriptors.formFieldInputShowPasswordButton,iconElementDescriptor:i.descriptors.formFieldInputShowPasswordIcon,"aria-label":`${r?"Show":"Hide"} password`,variant:"ghost",size:"xs",tabIndex:x,onClick:()=>a(e=>!e),sx:e=>({position:"absolute",right:0,marginRight:e.space.$1,color:e.colors.$neutralAlpha400}),icon:r?v.bA:v.N6})]})});var S=r(61869),C=r(3146),$=r(78191),_=r(98690);let k=[...$.h5.values()].map(e=>({searchTerm:`${e.iso} ${e.name} ${e.code}`,value:`${e.iso} ${e.name} ${e.code}`,country:e})),P=(0,o.forwardRef)((e,t)=>{let{onChange:r,value:a,locationBasedCountryIso:l,feedbackType:s,sx:c,...d}=e,p=(0,o.useRef)(null),m=(0,o.useRef)(null),{setNumber:h,setIso:g,setNumberAndIso:f,numberWithCode:b,iso:w,formattedNumber:x}=(e=>{let[t,r]=o.useState(()=>{let{number:t}=(0,_.y3)(e.initPhoneWithCode||"");return t}),[n,i]=o.useState((0,_.y3)(e.initPhoneWithCode||"").number?(0,_.y3)(e.initPhoneWithCode||"").iso:e.locationBasedCountryIso||"us");o.useEffect(()=>{r((0,_.yy)(t))},[n,t]);let a=o.useMemo(()=>{if(!t)return"";let e=$.h5.get(n)?.code||"1";return"+"+(0,_.yy)(`${e}${t}`)},[n,t]),l=o.useMemo(()=>((e,t)=>{if(!e)return"";let r=$.h5.get(t);return(0,_.un)(e,r?.pattern,r?.code)})(t,n),[n,t]),s=o.useCallback(e=>{let{iso:t,number:n}=(0,_.y3)(e);r(n),i(t)},[n,t]);return{setNumber:r,setIso:i,setNumberAndIso:s,iso:n,number:t,numberWithCode:a,formattedNumber:l}})({initPhoneWithCode:a,locationBasedCountryIso:l}),S=(0,o.useMemo)(()=>k.find(e=>e.country.iso===w)||k[0],[w]);return(0,o.useEffect)(()=>{r?.({target:{value:b}})},[b]),(0,n.BX)(i.Flex,{elementDescriptor:i.descriptors.phoneInputBox,direction:"row",hasError:d.hasError,"data-feedback":s,ref:m,sx:e=>({...u.common.borderVariants(e,{hasError:d.hasError}).normal,position:"relative",borderRadius:e.radii.$md,zIndex:1,'&:focus-within,&[data-focus-within="true"]':{...u.common.borderVariants(e,{hasError:d.hasError}).normal["&:focus"]}}),children:[(0,n.BX)(C.Ph,{elementId:"countryCode",value:S.value,options:k,portal:!0,referenceElement:m,renderOption:(e,t,r)=>(0,n.tZ)(I,{sx:e=>({"&:hover":{backgroundColor:e.colors.$neutralAlpha100},'&[data-focused="true"]':{backgroundColor:e.colors.$neutralAlpha150}}),isSelected:r,country:e.country}),onChange:e=>{g(e.country.iso),p.current?.focus()},noResultsMessage:"No countries found",searchPlaceholder:"Search country or code",comparator:(e,t)=>t.searchTerm.toLowerCase().includes(e.toLowerCase()),children:[(0,n.tZ)(C.UN,{variant:"ghost",sx:e=>({borderWidth:"0",borderRadius:e.radii.$md,borderBottomRightRadius:"0",borderTopRightRadius:"0",paddingRight:e.space.$2,":focus":{zIndex:2,boxShadow:"none"},":active":{zIndex:2}}),hoverAsFocus:!0,isDisabled:d.isDisabled,icon:v.jC,iconSx:e=>({color:d.isDisabled?e.colors.$neutralAlpha300:e.colors.$neutralAlpha500}),children:(0,n.tZ)(i.Text,{colorScheme:"body",as:"span",sx:{textTransform:"uppercase"},children:w})}),(0,n.tZ)(C.pp,{sx:{padding:"0 0"},containerSx:e=>({gap:0,padding:`${e.space.$0x5} 0`})})]}),(0,n.BX)(i.Flex,{sx:{position:"relative",width:"100%"},children:[(0,n.BX)(i.Text,{sx:t=>({display:"flex",alignItems:"center",pointerEvents:"none",paddingLeft:t.space.$0x5,opacity:e.isDisabled?t.opacity.$disabled:1}),children:["+",S.country.code]}),(0,n.tZ)(i.Input,{value:x,variant:"unstyled",onPaste:e=>{e.preventDefault();let t=e.clipboardData.getData("text");t.includes("+")?f(t):h(t)},onChange:e=>{let t=e.target.value;t.includes("+")?f(t):h(t)},maxLength:25,type:"tel",sx:[e=>({boxShadow:"none",height:"100%",transitionProperty:e.transitionProperty.$common,transitionTimingFunction:e.transitionTiming.$common,transitionDuration:e.transitionDuration.$focusRing,"&[type=tel]":{borderRadius:e.radii.$md,borderWidth:0,borderTopLeftRadius:0,borderBottomLeftRadius:0,paddingLeft:e.space.$1,"&:focus":{borderColor:"unset",boxShadow:"unset"}}}),c],ref:y(p,t),...d})]})]})}),I=(0,o.memo)(e=>{let{country:t,isSelected:r,sx:o,...a}=e;return(0,n.BX)(i.Flex,{center:!0,sx:[e=>({width:"100%",gap:e.space.$2,padding:`${e.space.$1x5} ${e.space.$4}`,color:e.colors.$colorForeground}),o],...a,children:[(0,n.tZ)(i.Icon,{icon:v.Jr,size:"sm",sx:{visibility:r?"visible":"hidden"}}),(0,n.tZ)(i.Text,{as:"div",sx:{width:"100%",textAlign:"left"},children:t.name}),(0,n.BX)(i.Text,{colorScheme:"secondary",children:["+",t.code]})]})}),A=(0,o.forwardRef)((e,t)=>{let{__internal_country:r}=(0,S.cL)();return(0,n.tZ)(P,{...e,locationBasedCountryIso:r,ref:t})}),T=(0,o.forwardRef)((e,t)=>{let r=(0,a.YV)(),{value:o,placeholder:l,...s}=(0,a.X2)(r);return(0,n.tZ)(i.RadioInput,{ref:t,...s,elementDescriptor:i.descriptors.formFieldRadioInput,id:e.id,focusRing:!1,sx:e=>({width:"fit-content",marginTop:e.space.$0x5}),value:e.value,checked:e.value===o})}),R=e=>(0,n.BX)(i.FormLabel,{elementDescriptor:i.descriptors.formFieldRadioLabel,htmlFor:e.id,sx:e=>({padding:`${e.space.$none} ${e.space.$2}`,display:"flex",flexDirection:"column"}),children:[(0,n.tZ)(i.Text,{elementDescriptor:i.descriptors.formFieldRadioLabelTitle,variant:"subtitle",localizationKey:e.label}),e.description&&(0,n.tZ)(i.Text,{elementDescriptor:i.descriptors.formFieldRadioLabelDescription,colorScheme:"secondary",localizationKey:e.description})]}),z=(0,o.forwardRef)((e,t)=>{let r=(0,o.useId)();return(0,n.BX)(i.Flex,{elementDescriptor:i.descriptors.formFieldRadioGroupItem,align:"start",children:[(0,n.tZ)(T,{id:r,ref:t,value:e.value}),(0,n.tZ)(R,{id:r,label:e.label,description:e.description})]})}),Z=(0,o.forwardRef)((e,t)=>{let{t:r}=(0,i.useLocalizations)(),o=(0,a.YV)(),{placeholder:l,...s}=(0,a.X2)(o);return(0,n.tZ)(A,{ref:t,elementDescriptor:i.descriptors.formFieldInput,elementId:i.descriptors.formFieldInput.setId(o.fieldId),...s,feedbackType:o.feedbackType,placeholder:r(l)})}),B=(0,o.forwardRef)((e,t)=>{let{t:r}=(0,i.useLocalizations)(),o=(0,a.YV)(),{placeholder:l,...s}=(0,a.X2)(o,["validatePassword","setError","setWarning","setSuccess","setInfo","setHasPassedComplexity"]);return(0,n.tZ)(x,{ref:t,elementDescriptor:i.descriptors.formFieldInput,elementId:i.descriptors.formFieldInput.setId(o.fieldId),...s,placeholder:r(l)})}),D=(0,o.forwardRef)(({elementDescriptor:e,elementId:t},r)=>{let o=(0,a.YV)(),{placeholder:l,...s}=(0,a.X2)(o);return(0,n.tZ)(i.CheckboxInput,{ref:r,...s,elementDescriptor:e||i.descriptors.formFieldInput,elementId:t||i.descriptors.formFieldInput.setId(o.fieldId),focusRing:!1,sx:e=>({width:"fit-content",flexShrink:0,marginTop:e.space.$0x5})})}),E={Root:e=>{let t=(0,s.useCardState)(),{children:r,isDisabled:o,...i}=e,l=o||t.isLoading,c={...i,isDisabled:l};return(0,n.tZ)(a.aS,{...c,children:r})},Label:e=>{let{isRequired:t,id:r,label:o,isDisabled:l,hasError:s}=(0,a.YV)();return e.localizationKey||o||e.children?(0,n.tZ)(i.FormLabel,{localizationKey:e.localizationKey||o,elementDescriptor:i.descriptors.formFieldLabel,elementId:i.descriptors.formFieldLabel.setId(r),hasError:!!s,isDisabled:l,isRequired:t,sx:{display:"flex",alignItems:"center"},children:e.children}):null},LabelRow:e=>{let{fieldId:t}=(0,a.YV)();return(0,n.tZ)(i.Flex,{justify:"between",align:"center",elementDescriptor:i.descriptors.formFieldLabelRow,elementId:i.descriptors.formFieldLabelRow.setId(t),children:e.children})},Input:(0,o.forwardRef)((e,t)=>{let{t:r}=(0,i.useLocalizations)(),o=(0,a.YV)(),{placeholder:l,...s}=(0,a.X2)(o);return(0,n.tZ)(i.Input,{ref:t,elementDescriptor:i.descriptors.formFieldInput,elementId:i.descriptors.formFieldInput.setId(o.fieldId),...s,placeholder:r(l)})}),PasswordInput:B,PhoneInput:Z,InputGroup:(0,o.forwardRef)((e,t)=>{let{t:r}=(0,i.useLocalizations)(),o=(0,a.YV)(),{placeholder:l,...s}=(0,a.X2)(o);return(0,n.tZ)(h,{ref:t,elementDescriptor:i.descriptors.formFieldInput,elementId:i.descriptors.formFieldInput.setId(o.fieldId),...s,groupPrefix:e.groupPrefix,groupSuffix:e.groupSuffix,placeholder:r(l)})}),RadioItem:z,CheckboxIndicator:D,CheckboxLabel:e=>{let{label:t,id:r}=(0,a.YV)();return t?(0,n.tZ)(R,{label:t,id:r,description:e.description}):null},Action:e=>{let{fieldId:t,isDisabled:r}=(0,a.YV)();return e.localizationKey||e.children?(0,n.tZ)(i.Link,{localizationKey:e.localizationKey,elementDescriptor:i.descriptors.formFieldAction,elementId:i.descriptors.formFieldLabel.setId(t),isDisabled:r,colorScheme:"primary",variant:"buttonSmall",onClick:t=>{t.preventDefault(),e.onClick?.(t)},children:e.children}):null},AsOptional:()=>{let{fieldId:e,isDisabled:t}=(0,a.YV)();return(0,n.tZ)(i.Text,{localizationKey:(0,i.localizationKeys)("formFieldHintText__optional"),elementDescriptor:i.descriptors.formFieldHintText,elementId:i.descriptors.formFieldHintText.setId(e),as:"span",variant:"caption",colorScheme:"secondary",isDisabled:t})},LabelIcon:e=>{let{t}=(0,i.useLocalizations)();return e.icon?(0,n.tZ)(i.Flex,{as:"span",title:t((0,i.localizationKeys)("formFieldHintText__slug")),sx:{marginRight:"auto"},children:(0,n.tZ)(i.Icon,{icon:e.icon,sx:e=>({marginLeft:e.space.$0x5,color:e.colors.$neutralAlpha400,width:e.sizes.$4,height:e.sizes.$4})})}):null},Feedback:e=>{let{fieldId:t,debouncedFeedback:r}=(0,a.YV)();return(0,n.tZ)(m,{center:e.center,...r,elementDescriptors:e.elementDescriptors,id:t})},OTPRoot:l.q0,OTPCodeControl:l.KR,OTPResendButton:l.GZ}},70431:function(e,t,r){r.d(t,{l:()=>g});var n=r(73312),o=r(61869),i=r(69144),a=r(64204),l=r(65695),s=r(50097),c=r(2672),d=r(60807);let[u,p]=(0,o.uH)("FormState"),m=e=>{let{isOptional:t,isLastAuthenticationStrategy:r,icon:o,actionLabel:i,children:l,onActionClicked:s,...c}=e;return(0,n.tZ)(d.g.Root,{...c,children:(0,n.BX)(a.Col,{elementDescriptor:a.descriptors.formField,elementId:a.descriptors.formField.setId(c.id),sx:{position:"relative",flex:"1 1 auto"},children:[(0,n.BX)(a.Flex,{direction:"col",sx:e=>({gap:e.space.$2}),children:[(0,n.BX)(d.g.LabelRow,{children:[(0,n.tZ)(d.g.Label,{}),(0,n.tZ)(d.g.LabelIcon,{icon:o}),!i&&t&&(0,n.tZ)(d.g.AsOptional,{}),i&&(0,n.tZ)(d.g.Action,{localizationKey:i,onClick:s}),r&&!i&&!t&&(0,n.tZ)(h,{}),(0,n.tZ)(d.g.Action,{})]}),l]}),(0,n.tZ)(d.g.Feedback,{})]})})},h=e=>{let{isLoading:t,isDisabled:r}=p();return(0,n.tZ)(s.H,{...e,sx:e=>({opacity:r||t?e.opacity.$disabled:1})})},g={Root:e=>{let t=(0,c.useCardState)(),r=(0,l._m)(),[o,s]=(0,i.useState)(!1),d=async n=>{if(n.preventDefault(),n.stopPropagation(),e.onSubmit)try{t.setLoading(),r.setLoading(),s(!0),await e.onSubmit(n)}finally{t.setIdle(),r.setIdle()}},p=i.useMemo(()=>({value:{isLoading:r.isLoading,isDisabled:t.isLoading||r.isLoading,submittedWithEnter:o}}),[t.isLoading,r.isLoading,o]);return(0,n.tZ)(u.Provider,{value:p,children:(0,n.BX)(a.Form,{elementDescriptor:a.descriptors.form,gap:6,...e,onSubmit:d,children:[(0,n.tZ)("button",{type:"submit","aria-hidden":!0,style:{visibility:"hidden",position:"absolute"}}),e.children]})})},ControlRow:e=>{let{elementId:t,...r}=e;return(0,n.tZ)(a.Flex,{elementDescriptor:a.descriptors.formFieldRow,elementId:a.descriptors.formFieldRow.setId(t),justify:"between",gap:4,...r})},PlainInput:e=>(0,n.tZ)(m,{...e,children:(0,n.tZ)(d.g.Input,{})}),PasswordInput:(0,i.forwardRef)((e,t)=>(0,n.tZ)(m,{...e,children:(0,n.tZ)(d.g.PasswordInput,{ref:t})})),PhoneInput:e=>(0,n.tZ)(m,{...e,children:(0,n.tZ)(d.g.PhoneInput,{})}),OTPInput:e=>{let{centerAlign:t=!0}=e;return(0,n.tZ)(d.g.Root,{...e.otpControl.otpInputProps,children:(0,n.tZ)(d.g.OTPRoot,{...e,children:(0,n.BX)(a.Col,{elementDescriptor:a.descriptors.form,gap:2,align:t?"center":"start",children:[(0,n.BX)(a.Flex,{elementDescriptor:a.descriptors.otpCodeField,isLoading:e.isLoading,hasError:"error"===e.otpControl.otpInputProps.feedbackType,direction:"col",children:[(0,n.tZ)(d.g.OTPCodeControl,{}),(0,n.tZ)(d.g.Feedback,{center:!0,elementDescriptors:{error:a.descriptors.otpCodeFieldErrorText,success:a.descriptors.otpCodeFieldSuccessText}})]}),(0,n.tZ)(d.g.OTPResendButton,{})]})})})},InputGroup:e=>{let{groupSuffix:t,groupPrefix:r,...o}=e;return(0,n.tZ)(m,{...o,children:(0,n.tZ)(d.g.InputGroup,{groupSuffix:t,groupPrefix:r})})},RadioGroup:e=>{let{radioOptions:t,...r}=e;return(0,n.BX)(d.g.Root,{...r,children:[(0,n.tZ)(a.Col,{elementDescriptor:a.descriptors.formFieldRadioGroup,gap:3,children:t?.map(({value:e,description:t,label:r})=>(0,n.tZ)(a.Flex,{sx:e=>({borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha100,borderRadius:e.radii.$md,padding:e.space.$2}),children:(0,n.tZ)(d.g.RadioItem,{value:e,label:r,description:t})},e))}),(0,n.tZ)(d.g.Feedback,{})]})},Checkbox:e=>(0,n.tZ)(d.g.Root,{...e,children:(0,n.BX)(a.Flex,{align:"start",children:[(0,n.tZ)(d.g.CheckboxIndicator,{}),(0,n.tZ)(d.g.CheckboxLabel,{description:e.description})]})}),SubmitButton:e=>{let{isLoading:t,isDisabled:r}=p();return(0,n.tZ)(a.Button,{elementDescriptor:a.descriptors.formButtonPrimary,block:!0,textVariant:"buttonLarge",isLoading:t,isDisabled:r,type:"submit",...e,localizationKey:e.localizationKey||(0,a.localizationKeys)("formButtonPrimary")})},ResetButton:e=>{let{isLoading:t,isDisabled:r}=p();return(0,n.tZ)(a.Button,{elementDescriptor:a.descriptors.formButtonReset,block:!0,variant:"ghost",type:"reset",isDisabled:t||r,...e})},CommonInputWrapper:m}},19460:function(e,t,r){r.d(t,{A:()=>s,K:()=>c});var n=r(73312),o=r(64204),i=r(65695),a=r(17703),l=r(70431);let s=e=>{let{isDisabled:t,onReset:r,submitLabel:o,resetLabel:s,hideReset:d,...u}=e,{navigateToFlowStart:p}=(0,i.zk)();return(0,n.BX)(c,{children:[(0,n.tZ)(l.l.SubmitButton,{block:!1,isDisabled:t,localizationKey:o||(0,a.u1)("userProfile.formButtonPrimary__save"),...u}),!d&&(0,n.tZ)(l.l.ResetButton,{localizationKey:s||(0,a.u1)("userProfile.formButtonReset"),block:!1,onClick:r||p})]})},c=e=>(0,n.tZ)(o.Flex,{direction:"rowReverse",gap:2,...e,children:e.children})},68487:function(e,t,r){r.d(t,{Y:()=>s});var n=r(73312),o=r(64204),i=r(92418),a=r(2672),l=r(92654);let s=e=>{let{headerTitle:t,headerTitleTextVariant:r="h3",headerSubtitle:s,headerSubtitleTextVariant:c="body",badgeText:d,children:u,sx:p,...m}=e,h=(0,a.useCardState)();return(0,n.BX)(o.Col,{elementDescriptor:o.descriptors.formContainer,gap:4,...m,sx:[p],children:[(t||s)&&(0,n.BX)(l.h.Root,{badgeText:d,children:[t&&(0,n.tZ)(l.h.Title,{textVariant:r,..."string"==typeof t?{children:t}:{localizationKey:t}}),s&&(0,n.tZ)(l.h.Subtitle,{variant:c,..."string"==typeof s?{children:s}:{localizationKey:s}})]}),(0,n.tZ)(i.Z.Alert,{children:h.error}),(0,n.tZ)(o.Col,{gap:8,children:u})]})}},5994:function(e,t,r){r.d(t,{q:()=>a});var n=r(73312),o=r(64204),i=r(98690);let a=e=>{let t=(0,i.L_)(e.value);return(0,n.tZ)(o.Text,{as:"span",elementDescriptor:o.descriptors.formattedPhoneNumberText,children:t})}},58104:function(e,t,r){r.d(t,{m:()=>i});var n=r(73312),o=r(64204);let i=()=>(0,n.tZ)(o.Flex,{center:!0,sx:{height:"100%"},children:(0,n.tZ)(o.Spinner,{colorScheme:"primary",size:"lg",elementDescriptor:o.descriptors.spinner})})},932:function(e,t,r){r.d(t,{a:()=>s});var n=r(73312),o=r(69144),i=r(64204),a=r(56279);let l={xs:{svgSize:24,textSize:a.$4.fontSizes.$xs},sm:{svgSize:32,textSize:a.$4.fontSizes.$sm},md:{svgSize:52,textSize:a.$4.fontSizes.$md},lg:{svgSize:64,textSize:a.$4.fontSizes.$lg},xl:{svgSize:96,textSize:a.$4.fontSizes.$xl}},s=o.memo(e=>{let{value:t,limit:r,size:o="sm"}=e,{textSize:a,svgSize:s}=l[o],c=s/2,d=e.strokeWidth||s/10,u=c-d/2,p=2*Math.PI*u,m=t/r*p;return(0,n.BX)(i.Col,{center:!0,sx:e=>({"--cl-gauge-inner-stroke-color":e.colors.$neutralAlpha900,"--cl-gauge-outter-stroke-color":e.colors.$neutralAlpha300,"> svg":{transform:"rotate(-90deg)"}}),children:[(0,n.BX)("svg",{width:s,height:s,viewBox:`0 0 ${s} ${s}`,children:[(0,n.tZ)("circle",{r:u,cx:c,cy:c,strokeWidth:d,fill:"transparent",stroke:"var(--cl-gauge-outter-stroke-color)",strokeLinecap:"round"}),t>=0?(0,n.tZ)("circle",{r:u,cx:c,cy:c,strokeWidth:d,strokeDasharray:p+" "+p,strokeDashoffset:p-m,fill:"transparent",stroke:"var(--cl-gauge-inner-stroke-color)",strokeLinecap:"round"}):null]}),(0,n.tZ)(i.Text,{as:"div",sx:e=>({position:"absolute",display:"flex",fontSize:a,color:e.colors.$neutralAlpha900}),children:t})]})})},92654:function(e,t,r){r.d(t,{h:()=>u});var n=r(73312),o=r(69144),i=r(64204),a=r(34174),l=r(53174),s=r(16735);let c=o.memo(o.forwardRef((e,t)=>{let{sx:r,children:o,contentSx:a,gap:c=6,showLogo:d=!1,showDivider:u=!1,badgeText:p,...m}=e,h="inside"===(0,i.useAppearance)().parsedLayout.logoPlacement&&d,g=u&&h;return(0,n.BX)(i.Col,{ref:t,elementDescriptor:i.descriptors.header,gap:c,sx:r,...m,children:[h&&(0,n.tZ)(l.u,{}),g&&(0,n.tZ)(s.p,{}),p&&(0,n.tZ)(i.Flex,{justify:"center",children:(0,n.tZ)(i.Badge,{localizationKey:p})}),(0,n.tZ)(i.Col,{gap:1,sx:a,...m,children:o})]})})),d=o.memo(e=>{let{sx:t,textVariant:r="h2",...o}=e;return(0,n.tZ)(i.Heading,{elementDescriptor:i.descriptors.headerTitle,textVariant:r,sx:t,...o})}),u={Root:c,Title:d,Subtitle:o.memo(e=>{let{sx:t,...r}=e;return(0,n.tZ)(i.Text,{elementDescriptor:i.descriptors.headerSubtitle,variant:"body",colorScheme:"secondary",sx:[{wordWrap:"break-word"},t],...r})}),BackLink:o.memo(e=>{let{sx:t,children:r,...o}=e;return(0,n.BX)(i.Link,{elementDescriptor:i.descriptors.headerBackLink,sx:e=>[{display:"inline-flex",alignItems:"center",gap:e.space.$2,width:"fit-content","&:hover":{textDecoration:"none"}},t],...o,children:[(0,n.tZ)(i.Icon,{icon:a.Y4,sx:e=>({color:e.colors.$colorForeground})}),r]})})}},53412:function(e,t,r){r.d(t,{h:()=>a});var n=r(73312),o=r(69144),i=r(64204);let a=e=>{let{children:t,icon:r,localizationKey:a,iconElementDescriptor:l,...s}=e,{t:c}=(0,i.useLocalizations)(),d=c(a),u=(0,o.isValidElement)(r)?(0,o.cloneElement)(r,{"aria-hidden":!0,focusable:!1}):(0,n.tZ)(i.Icon,{elementDescriptor:l,icon:r,size:"md"});return(0,n.tZ)(i.Button,{...s,children:(0,n.BX)(n.HY,{children:[u,d||t]})})}},19566:function(e,t,r){r.d(t,{f:()=>i});var n=r(73312),o=r(64204);let i=e=>{let{icon:t,boxElementDescriptor:r,iconElementDescriptor:i,sx:a,...l}=e;return(0,n.tZ)(o.Flex,{center:!0,elementDescriptor:r,sx:[e=>({backgroundColor:e.colors.$neutralAlpha50,width:e.sizes.$16,height:e.sizes.$16,borderRadius:e.radii.$circle}),a],...l,children:(0,n.tZ)(o.Icon,{elementDescriptor:i,icon:t,size:"lg",sx:e=>({color:e.colors.$neutralAlpha600})})})}},384:function(e,t,r){r.d(t,{m:()=>d});var n=r(73312),o=r(78690),i=r(69144),a=r(64204),l=r(34174),s=r(44271),c=r(98690);let d=e=>{let{avatarUrl:t=(0,o.WY)("avatar_placeholder","jpeg"),identifier:r,onClick:d,...u}=e,g=i.useRef({avatarUrl:t,identifier:(0,s.H)(r)}),f=d&&(0,n.tZ)(a.Button,{elementDescriptor:a.descriptors.identityPreviewEditButton,variant:"link",textVariant:"buttonSmall",onClick:d,"aria-label":"Edit",children:(0,n.tZ)(a.Icon,{elementDescriptor:a.descriptors.identityPreviewEditButtonIcon,icon:l.ET})});if(!g.current.identifier)return(0,n.tZ)(h,{...u,children:f});if((0,s.S)(g.current.identifier)||!g.current.identifier.startsWith("+"))return(0,n.BX)(h,{...u,children:[(0,n.tZ)(p,{...g.current}),f]});let b=(0,c.y3)(g.current.identifier||""),v=(0,c.uz)(b.iso);return(0,n.BX)(h,{...u,children:[(0,n.tZ)(m,{identifier:g.current.identifier,flag:v}),f]})},u=e=>(0,n.tZ)(a.Text,{elementDescriptor:a.descriptors.identityPreviewText,colorScheme:"secondary",truncate:!0,...e}),p=e=>(0,n.tZ)(u,{children:e.identifier}),m=e=>(0,n.BX)(n.HY,{children:[(0,n.tZ)(a.Text,{sx:e=>({fontSize:e.fontSizes.$sm}),children:e.flag}),(0,n.tZ)(u,{children:e.identifier})]}),h=e=>(0,n.tZ)(a.Flex,{elementDescriptor:a.descriptors.identityPreview,align:"center",gap:2,sx:{justifyContent:"center"},...e})},43300:function(e,t,r){r.d(t,{e:()=>a});var n=r(73312),o=r(64204),i=r(34174);function a(e){return(0,n.BX)(o.Flex,{sx:e=>({gap:e.space.$2,padding:`${e.space.$3} ${e.space.$4}`,backgroundColor:e.colors.$neutralAlpha50,borderRadius:e.radii.$md}),children:[(0,n.tZ)(o.Icon,{icon:i.I$,sx:e=>({opacity:e.opacity.$disabled})}),(0,n.tZ)(o.Text,{localizationKey:e.message,sx:e=>({color:e.colors.$colorMutedForeground})})]})}},81319:function(e,t,r){r.d(t,{W:()=>a});var n=r(73312),o=r(69144),i=r(64204);let a=o.forwardRef((e,t)=>{let{leftIcon:r,sx:o,...a}=e;return(0,n.BX)(i.Flex,{center:!0,sx:{width:"100%",position:"relative"},children:[r?(0,n.tZ)(i.Box,{sx:e=>[{position:"absolute",left:e.space.$3x5,width:e.sizes.$3x5,height:e.sizes.$3x5,pointerEvents:"none",display:"grid",placeContent:"center","& svg":{position:"absolute",width:"100%",height:"100%"}}],children:r}):null,(0,n.tZ)(i.Input,{...a,sx:[e=>({width:"100%",paddingLeft:e.space.$10}),o],ref:t})]})})},96935:function(e,t,r){r.d(t,{H:()=>d});var n=r(73312),o=r(11576),i=r(64204),a=r(80734),l=r(60807),s=r(3422);let c=e=>{let t,{termsUrl:r,privacyPolicyUrl:o}=e,{t:l}=(0,i.useLocalizations)(),c=(0,a.YV)(),{placeholder:d,...u}=(0,a.X2)(c);return r&&o?t=(0,i.localizationKeys)("signUp.legalConsent.checkbox.label__termsOfServiceAndPrivacyPolicy",{termsOfServiceLink:r,privacyPolicyLink:o}):r?t=(0,i.localizationKeys)("signUp.legalConsent.checkbox.label__onlyTermsOfService",{termsOfServiceLink:r}):o&&(t=(0,i.localizationKeys)("signUp.legalConsent.checkbox.label__onlyPrivacyPolicy",{privacyPolicyLink:o})),(0,n.tZ)(i.FormLabel,{elementDescriptor:i.descriptors.formFieldCheckboxLabel,htmlFor:u.id,isDisabled:u.isDisabled,sx:e=>({paddingLeft:e.space.$1x5,textAlign:"left"}),children:(0,n.tZ)(i.Text,{variant:"body",as:"span",children:(0,n.tZ)(s._,{text:l(t),isExternal:!0,sx:e=>({textDecoration:"underline",textUnderlineOffset:e.space.$1})})})})},d=e=>{let{displayConfig:t}=(0,o.useEnvironment)(),{parsedLayout:r}=(0,i.useAppearance)(),a=r.termsPageUrl||t.termsUrl,s=r.privacyPageUrl||t.privacyPolicyUrl;return(0,n.tZ)(l.g.Root,{...e,children:(0,n.BX)(i.Flex,{justify:"center",children:[(0,n.tZ)(l.g.CheckboxIndicator,{elementDescriptor:i.descriptors.formFieldCheckboxInput,elementId:i.descriptors.formFieldInput.setId("legalAccepted")}),(0,n.tZ)(c,{termsUrl:a,privacyPolicyUrl:s})]})})}},28e3:function(e,t,r){r.d(t,{a:()=>m});var n=r(73312),o=r(69144),i=r(64204),a=r(65695),l=r(34174),s=r(51217),c=r(55913);let d=o.createContext(void 0);function u({text:e}){let{onCopy:t}=(0,a.VP)(e);return(0,n.tZ)(i.Span,{elementDescriptor:i.descriptors.lineItemsDescriptionText,sx:e=>({...s.common.textVariants(e).body,display:"flex",minWidth:"0"}),onCopy:async e=>{e.preventDefault(),await t()},children:(0,c.L)(e,15)})}function p({text:e,copyLabel:t="Copy"}){let{onCopy:r,hasCopied:o}=(0,a.VP)(e);return(0,n.tZ)(i.Button,{variant:"unstyled",onClick:r,sx:e=>({color:"inherit",width:e.sizes.$4,height:e.sizes.$4,padding:0,borderRadius:e.radii.$sm,"&:focus-visible":{outline:"2px solid",outlineColor:e.colors.$colorRing}}),focusRing:!1,"aria-label":o?"Copied":t,children:(0,n.tZ)(i.Icon,{size:"sm",icon:o?l.Jr:l.CK,"aria-hidden":!0})})}let m={Root:function({children:e}){return(0,n.tZ)(i.Dl,{elementDescriptor:i.descriptors.lineItemsRoot,sx:e=>({display:"grid",gridRowGap:e.space.$2}),children:e})},Group:function({children:e,borderTop:t=!1,variant:r="primary"}){return(0,n.tZ)(d.Provider,{value:{variant:r},children:(0,n.tZ)(i.Box,{elementDescriptor:i.descriptors.lineItemsGroup,elementId:i.descriptors.lineItemsGroup.setId(r),sx:e=>({display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",...t?{borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100,paddingTop:e.space.$2}:{}}),children:e})})},Title:o.forwardRef(({title:e,description:t,icon:r,badge:a=null},l)=>{let c=o.useContext(d);if(!c)throw Error("LineItems.Title must be used within LineItems.Group");let{variant:u}=c,p="primary"===u?"subtitle":"caption";return(0,n.BX)(i.Dt,{ref:l,elementDescriptor:i.descriptors.lineItemsTitle,elementId:i.descriptors.lineItemsTitle.setId(u),sx:e=>({display:"grid",color:"primary"===u?e.colors.$colorForeground:e.colors.$colorMutedForeground,...s.common.textVariants(e)[p]}),children:[e?(0,n.BX)(i.Span,{sx:e=>({display:"inline-flex",alignItems:"center",gap:e.space.$1}),children:[r?(0,n.tZ)(i.Icon,{size:"md",icon:r,"aria-hidden":!0}):null,(0,n.tZ)(i.Span,{localizationKey:e}),a]}):null,t?(0,n.tZ)(i.Span,{localizationKey:t,elementDescriptor:i.descriptors.lineItemsTitleDescription,sx:e=>({fontSize:e.fontSizes.$sm,color:e.colors.$colorMutedForeground})}):null]})}),Description:function({text:e,prefix:t,suffix:r,truncateText:a=!1,copyText:l=!1,copyLabel:c}){let m=o.useContext(d);if(!m)throw Error("LineItems.Description must be used within LineItems.Group");let{variant:h}=m;return(0,n.BX)(i.Dd,{elementDescriptor:i.descriptors.lineItemsDescription,elementId:i.descriptors.lineItemsDescription.setId(h),sx:e=>({display:"grid",justifyContent:"end",color:"tertiary"===h?e.colors.$colorMutedForeground:e.colors.$colorForeground}),children:[(0,n.BX)(i.Span,{elementDescriptor:i.descriptors.lineItemsDescriptionInner,sx:e=>({display:"inline-flex",justifyContent:"flex-end",alignItems:"center",gap:e.space.$1,minWidth:"0"}),children:[t?(0,n.tZ)(i.Span,{localizationKey:t,elementDescriptor:i.descriptors.lineItemsDescriptionPrefix,sx:e=>({color:e.colors.$colorMutedForeground,...s.common.textVariants(e).caption})}):null,"string"==typeof e&&a?(0,n.tZ)(u,{text:e}):(0,n.tZ)(i.Span,{localizationKey:e,elementDescriptor:i.descriptors.lineItemsDescriptionText,sx:e=>({...s.common.textVariants(e).body,minWidth:"0",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"})}),"string"==typeof e&&l?(0,n.tZ)(p,{text:e,copyLabel:c}):null]}),r?(0,n.tZ)(i.Span,{localizationKey:r,elementDescriptor:i.descriptors.lineItemsDescriptionSuffix,sx:e=>({color:e.colors.$colorMutedForeground,...s.common.textVariants(e).caption,justifySelf:"flex-end"})}):null]})}}},3422:function(e,t,r){r.d(t,{_:()=>l});var n=r(73312),o=r(69144),i=r(64204);let a=/\[([^\]]+)\]\(([^)]+)\)/g,l=(0,o.memo)(({text:e,...t})=>{let r=(0,o.useMemo)(()=>t,[t]);return(0,o.useMemo)(()=>{let t=[],o=0;return e.replace(a,(a,l,s,c)=>(c>o&&t.push(e.slice(o,c)),t.push((0,n.tZ)(i.Link,{href:s,...r,children:l},c)),o=c+a.length,a)),o<e.length&&t.push(e.slice(o)),t},[e,r])})},21455:function(e,t,r){r.d(t,{I:()=>s,W:()=>c});var n=r(73312),o=r(64204),i=r(37321),a=r(92418),l=r(2672);let s=({children:e})=>(0,n.BX)(o.Flex,{direction:"col",center:!0,elementDescriptor:o.descriptors.main,gap:8,sx:e=>({marginTop:e.space.$16,marginBottom:e.space.$13}),children:[(0,n.tZ)(o.Spinner,{size:"xl",colorScheme:"primary",elementDescriptor:o.descriptors.spinner}),e]}),c=(0,l.withCardStateProvider)(()=>{let e=(0,l.useCardState)();return(0,n.BX)(a.Z.Root,{children:[(0,n.BX)(a.Z.Content,{children:[(0,n.tZ)(a.Z.Alert,{children:e.error}),(0,n.tZ)(s,{}),(0,n.tZ)(i.S,{})]}),(0,n.tZ)(a.Z.Footer,{})]})})},15158:function(e,t,r){r.d(t,{bF:()=>g,qy:()=>b,sN:()=>v,v2:()=>h});var n=r(73312),o=r(61869),i=r(69144),a=r(64204),l=r(65695),s=r(51217),c=r(25407),d=r(2672),u=r(84045);let[p,m]=(0,o.uH)("MenuState"),h=(0,d.withFloatingTree)(e=>{let{popoverPlacement:t="bottom-end",elementId:r,...o}=e,a=(0,l.Sv)({placement:t,offset:8,shoudFlip:!0}),s=i.useMemo(()=>({value:{popoverCtx:a,elementId:r}}),[{...a},r]);return(0,n.tZ)(p.Provider,{value:s,...o})}),g=e=>{let{children:t,arialLabel:r}=e,{popoverCtx:n,elementId:o}=m(),{reference:l,toggle:s,isOpen:c}=n,d="function"==typeof r?r(c):r;return(0,i.isValidElement)(t)?(0,i.cloneElement)(t,{ref:l,elementDescriptor:t.props.elementDescriptor||a.descriptors.menuButton,elementId:t.props.elementId||a.descriptors.menuButton.setId(o),"aria-label":d,"aria-expanded":c,onClick:e=>{t.props?.onClick?.(e),s()}}):null},f=(e,t,r)=>{let n=r?.countSelf?e.tagName:"",o=e;for(;o&&"BUTTON"!==n.toUpperCase();)o=o["prev"===t?"previousElementSibling":"nextElementSibling"],n=o?.tagName??"";return o},b=e=>{let{sx:t,asPortal:r,...o}=e,{popoverCtx:l,elementId:d}=m(),{floating:p,styles:h,isOpen:g,context:b,nodeId:v}=l,y=(0,i.useRef)(null);return(0,i.useLayoutEffect)(()=>{p(y.current)},[g]),(0,n.tZ)(u.J,{context:b,nodeId:v,isOpen:g,portal:r,children:(0,n.tZ)(a.Col,{elementDescriptor:a.descriptors.menuList,elementId:a.descriptors.menuList.setId(d),ref:y,role:"menu",onKeyDown:e=>{let t=y.current;if(t&&t===document.activeElement&&"ArrowDown"===e.key)return e.preventDefault(),f(t.children[0],"next",{countSelf:!0})?.focus()},sx:[e=>({backgroundColor:c.O9.makeSolid(e.colors.$colorBackground),borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,outline:"none",borderRadius:e.radii.$md,padding:e.space.$0x5,overflow:"hidden",top:`calc(100% + ${e.space.$2})`,animation:`${s.animations.dropdownSlideInScaleAndFade} ${e.transitionDuration.$slower} ${e.transitionTiming.$slowBezier}`,transformOrigin:"top center",zIndex:e.zIndices.$dropdown,gap:e.space.$0x5}),t],style:h,...o})})},v=e=>{let{sx:t,onClick:r,destructive:o,closeAfterClick:l=!0,...s}=e,{popoverCtx:c,elementId:d}=m(),{toggle:u}=c,p=(0,i.useRef)(null);return(0,n.tZ)(a.SimpleButton,{ref:p,elementDescriptor:a.descriptors.menuItem,elementId:a.descriptors.menuItem.setId(d),hoverAsFocus:!0,variant:"ghost",colorScheme:o?"danger":"neutral",role:"menuitem",onKeyDown:e=>{let t=p.current;if(!t)return;let r=e.key;if("ArrowUp"!==r&&"ArrowDown"!==r)return;e.preventDefault();let n=f(t,"ArrowUp"===r?"prev":"next");n?.focus()},focusRing:!1,onClick:e=>{r?.(e),l&&u()},sx:[e=>({justifyContent:"start",borderRadius:e.radii.$sm,padding:`${e.space.$1} ${e.space.$3}`}),t],...s})}},56459:function(e,t,r){r.r(t),r.d(t,{Modal:()=>g,ModalContext:()=>p,_:()=>m,useUnsafeModalContext:()=>h});var n=r(73312),o=r(61869),i=r(69144),a=r(64204),l=r(65695),s=r(32505),c=r(51217),d=r(2672),u=r(84045);let[p,m,h]=(0,o.uH)("ModalContext"),g=(0,d.withFloatingTree)(e=>{let{disableScrollLock:t,enableScrollLock:r}=(0,s.P)(),{handleClose:d,handleOpen:m,contentSx:h,containerSx:g,canCloseModal:f,id:b,style:v,portalRoot:y,initialFocusRef:w}=e,x=(0,i.useRef)(null),{floating:S,isOpen:C,context:$,nodeId:_,toggle:k}=(0,l.Sv)({defaultOpen:!0,autoUpdate:!1,outsidePress:e=>e.target===x.current,canCloseModal:f});i.useEffect(()=>{C?m?.():d?.()},[C]);let P=i.useMemo(()=>({value:!1===f?{}:{toggle:k}}),[k,f]);return(0,o.Gw)(()=>(r(),()=>{t()}),[]),(0,n.tZ)(u.J,{nodeId:_,context:$,isOpen:C,outsideElementsInert:!0,root:y,initialFocus:w,children:(0,n.tZ)(p.Provider,{value:P,children:(0,n.tZ)(a.Flex,{id:b,ref:x,elementDescriptor:a.descriptors.modalBackdrop,style:v,sx:[e=>({animation:`${c.animations.fadeIn} 150ms ${e.transitionTiming.$common}`,zIndex:e.zIndices.$modal,backgroundColor:e.colors.$colorModalBackdrop,alignItems:"flex-start",justifyContent:"center",overflow:"auto",width:"100vw",height:["100vh","-webkit-fill-available"],position:"fixed",left:0,top:0}),g],children:(0,n.tZ)(a.Flex,{elementDescriptor:a.descriptors.modalContent,ref:S,"aria-modal":"true",role:"dialog",sx:[e=>({position:"relative",outline:0,animation:`${c.animations.modalSlideAndFade} 180ms ${e.transitionTiming.$easeOut}`,margin:`${e.space.$16} 0`,[c.mqu.sm]:{margin:`${e.space.$10} 0`}}),h],children:e.children})})})})})},15579:function(e,t,r){r.d(t,{Uh:()=>y,ap:()=>$,jh:()=>v,l2:()=>w});var n=r(73312),o=r(61869),i=r(69144),a=r(64204),l=r(65695),s=r(34174),c=r(24676),d=r(51217),u=r(25407),p=r(92418),m=r(2672),h=r(37434),g=r(84045);let[f,b,v]=(0,o.uH)("NavbarContext"),y=({children:e,contentRef:t})=>{let[r,o]=i.useState(!1),a=i.useCallback(()=>o(!0),[]),l=i.useCallback(()=>o(!1),[]),s=i.useMemo(()=>({value:{isOpen:r,open:a,close:l,contentRef:t}}),[r]);return(0,n.tZ)(f.Provider,{value:s,children:e})},w=e=>{let{contentRef:t,title:r,description:o,routes:s,header:d}=e,{close:u}=b(),{navigate:p}=(0,c.useRouter)(),{navigateToFlowStart:m}=(0,l.zk)(),h=(0,c.useRouter)(),g=async e=>{t.current&&(u(),"/"===e.path?await m():await p(e.path))},f=(0,i.useCallback)(e=>{if(e.external)return!1;let t=h.currentPath===h.fullPath&&"/"===e.path,r=h.matches(e.path);return t||r},[h.currentPath]),v=(0,n.tZ)(a.Col,{elementDescriptor:a.descriptors.navbarButtons,sx:e=>({gap:e.space.$0x5}),children:s.map(e=>(0,n.tZ)(C,{elementDescriptor:a.descriptors.navbarButton,elementId:a.descriptors.navbarButton.setId(e.id),iconElementDescriptor:a.descriptors.navbarButtonIcon,iconElementId:a.descriptors.navbarButtonIcon.setId(e.id),onClick:e?.external?()=>p(e.path):()=>g(e),icon:e.icon,isActive:f(e),sx:e=>({padding:`${e.space.$1x5} ${e.space.$3}`,minHeight:e.space.$8}),children:(0,n.tZ)(a.Span,{elementDescriptor:a.descriptors.navbarButtonText,elementId:a.descriptors.navbarButtonText.setId(e.id),localizationKey:e.name})},e.id))});return(0,n.BX)(n.HY,{children:[(0,n.BX)(x,{title:r,description:o,children:[d,v]}),(0,n.BX)(S,{children:[d,v]})]})},x=e=>{let{title:t,description:r}=e;return(0,n.BX)(a.Col,{elementDescriptor:a.descriptors.navbar,sx:e=>({[d.mqu.md]:{display:"none"},flex:`0 0 ${e.space.$57}`,width:e.sizes.$57,position:"relative",maxWidth:e.space.$57,background:d.common.mutedBackground(e),padding:`${e.space.$6} ${e.space.$5} ${e.space.$4} ${e.space.$3}`,marginRight:`calc(${e.space.$2} * -1)`,color:e.colors.$colorForeground,justifyContent:"space-between"}),children:[(0,n.tZ)(h.W,{}),(0,n.BX)(a.Col,{sx:e=>({gap:e.space.$6,flex:`0 0 ${e.space.$60}`}),children:[(0,n.BX)(a.Col,{sx:e=>({gap:e.space.$0x5,padding:`${e.space.$none} ${e.space.$3}`}),children:[(0,n.tZ)(a.Heading,{as:"h1",localizationKey:t}),(0,n.tZ)(a.Text,{colorScheme:"secondary",localizationKey:r})]}),e.children]}),(0,n.tZ)(p.Z.ClerkAndPagesTag,{sx:{width:"fit-content"}})]})},S=(0,m.withFloatingTree)(e=>{let t=b(),{floating:r,isOpen:o,open:s,close:c,nodeId:p,context:m}=(0,l.Sv)({defaultOpen:!1,autoUpdate:!1});return i.useEffect(()=>{t.isOpen?s():c()},[t.isOpen]),i.useEffect(()=>{o||t.close()},[o]),(0,n.tZ)(g.J,{nodeId:p,context:m,isOpen:o,portal:!1,children:(0,n.tZ)(a.Col,{sx:e=>({position:"absolute",top:0,bottom:0,width:"100%",zIndex:e.zIndices.$navbar,overflow:"hidden",color:e.colors.$colorForeground}),children:(0,n.tZ)(a.Col,{ref:r,elementDescriptor:a.descriptors.navbar,tabIndex:0,sx:e=>({outline:0,position:"absolute",top:0,bottom:0,width:e.space.$60,backgroundColor:u.O9.makeSolid(e.colors.$colorBackground),borderTopRightRadius:e.radii.$lg,borderBottomRightRadius:e.radii.$lg,padding:`${e.space.$10} ${e.space.$6}`,animation:`${d.animations.navbarSlideIn} ${e.transitionDuration.$slower} ${e.transitionTiming.$slowBezier}`,borderRightWidth:e.borderWidths.$normal,borderRightStyle:e.borderStyles.$solid,borderRightColor:e.colors.$borderAlpha150,boxShadow:e.shadows.$cardContentShadow}),children:e.children})})})}),C=e=>{let{icon:t,children:r,isActive:o,iconElementDescriptor:i,iconElementId:l,sx:s,...c}=e;return(0,n.BX)(a.Button,{variant:"unstyled",colorScheme:o?"primary":"neutral",textVariant:"buttonLarge",size:"md",isActive:o,focusRing:!1,...c,sx:[e=>({gap:e.space.$3,justifyContent:"flex-start",backgroundColor:o?e.colors.$neutralAlpha100:void 0,color:o?e.colors.$primary500:e.colors.$colorMutedForeground,"&:hover":{backgroundColor:o?void 0:e.colors.$neutralAlpha25},"&:focus":{backgroundColor:o?void 0:e.colors.$neutralAlpha50}}),s],children:[(0,n.tZ)(a.Icon,{elementDescriptor:i,elementId:l,icon:t,sx:{opacity:o?1:.7,transform:"translateZ(0)"}}),r]})},$=({navbarTitleLocalizationKey:e,...t})=>{let{open:r}=v(),{t:o}=(0,a.useLocalizations)();return r?(0,n.tZ)(a.Flex,{elementDescriptor:a.descriptors.navbarMobileMenuRow,sx:e=>({display:"none",background:d.common.mutedBackground(e),padding:`${e.space.$2} ${e.space.$3} ${e.space.$4} ${e.space.$3}`,marginBottom:`calc(${e.space.$2} * -1)`,[d.mqu.md]:{display:"flex"}}),children:(0,n.BX)(a.Button,{elementDescriptor:a.descriptors.navbarMobileMenuButton,...t,onClick:r,size:"xs",textVariant:"h2",variant:"ghost",sx:e=>({color:e.colors.$colorForeground,gap:e.space.$2x5,width:"fit-content",alignItems:"center",justifyContent:"center"}),children:[(0,n.tZ)(a.Icon,{elementDescriptor:a.descriptors.navbarMobileMenuButtonIcon,icon:s.v2,size:"md"}),o(e)]})}):null}},25623:function(e,t,r){r.d(t,{l:()=>i});var n=r(73312),o=r(29629);let i=e=>{let{name:t="",imageUrl:r,showLoadingSpinner:i,...a}=e;return(0,n.tZ)(o.q,{title:t,initials:(t||" ")[0],imageUrl:r,showLoadingSpinner:i,rounded:!1,...a})}},35973:function(e,t,r){r.d(t,{Z:()=>l});var n=r(73312);r(69144);var o=r(64204),i=r(93266),a=r(25623);let l=e=>{let{organization:t,size:r="md",icon:l,rounded:s=!1,badge:c,sx:d,user:u,avatarSx:p,mainIdentifierSx:m,mainIdentifierVariant:h,elementId:g,...f}=e,{localizeCustomRole:b}=(0,i.q)(),v=u?.organizationMemberships.find(e=>e.organization.id===t.id),y=v?.roleName,w=b(v?.role)||y;return(0,n.BX)(o.Flex,{elementDescriptor:o.descriptors.organizationPreview,elementId:o.descriptors.organizationPreview.setId(g),gap:3,align:"center",as:"span",sx:[{minWidth:"0"},d],...f,children:[(0,n.BX)(o.Flex,{elementDescriptor:o.descriptors.organizationPreviewAvatarContainer,elementId:o.descriptors.organizationPreviewAvatarContainer.setId(g),justify:"center",as:"span",sx:{position:"relative"},children:[(0,n.tZ)(a.l,{boxElementDescriptor:o.descriptors.organizationPreviewAvatarBox,imageElementDescriptor:o.descriptors.organizationPreviewAvatarImage,...t,size:e=>({xs:e.sizes.$5,sm:e.sizes.$8,md:e.sizes.$9,lg:e.sizes.$12})[r],sx:p,rounded:s}),l&&(0,n.tZ)(o.Flex,{sx:{position:"absolute",left:0,bottom:0},children:l})]}),(0,n.BX)(o.Flex,{elementDescriptor:o.descriptors.organizationPreviewTextContainer,elementId:o.descriptors.organizationPreviewTextContainer.setId(g),direction:"col",justify:"center",as:"span",sx:{minWidth:"0px",textAlign:"left"},children:[(0,n.BX)(o.Text,{elementDescriptor:o.descriptors.organizationPreviewMainIdentifier,elementId:o.descriptors.organizationPreviewMainIdentifier.setId(g),variant:h||({xs:"subtitle",sm:"caption",md:"subtitle",lg:"h1"})[r],as:"span",truncate:!0,sx:m,title:t.name,children:[t.name," ",c]}),w&&(0,n.tZ)(o.Text,{elementDescriptor:o.descriptors.organizationPreviewSecondaryIdentifier,elementId:o.descriptors.organizationPreviewSecondaryIdentifier.setId(g),as:"span",localizationKey:w,truncate:!0})]})]})}},77691:function(e,t,r){r.d(t,{t:()=>d});var n=r(73312),o=r(64204),i=r(34174),a=r(51217);let l=e=>{let{sx:t,isActive:r,icon:i,children:a,...l}=e;return(0,n.BX)(o.Button,{size:"xs",variant:"outline",sx:e=>[{color:e.colors.$colorForeground,opacity:r?1:e.opacity.$inactive,padding:`${e.space.$0x5} ${e.space.$0x5}`},t],elementDescriptor:o.descriptors.paginationButton,...l,children:[i&&(0,n.tZ)(o.Icon,{size:"md",elementDescriptor:o.descriptors.paginationButtonIcon,icon:e.icon}),a]})},s=e=>{let{rowInfo:{startingRow:t,endingRow:r,allRowsCount:i}}=e;return(0,n.BX)(o.Text,{children:[(0,n.tZ)(o.Text,{as:"span",elementDescriptor:o.descriptors.paginationRowText,elementId:o.descriptors.paginationRowText?.setId("displaying"),sx:e=>({opacity:e.opacity.$inactive}),localizationKey:(0,o.localizationKeys)("paginationRowText__displaying"),colorScheme:"secondary"})," ",(0,n.tZ)(o.Text,{as:"span",elementDescriptor:o.descriptors.paginationRowText,elementId:o.descriptors.paginationRowText?.setId("rowsCount"),sx:e=>({fontWeight:e.fontWeights.$medium}),children:t===r&&[0,1].includes(t)?t:`${t} \u{2013} ${r}`})," ",(0,n.tZ)(o.Text,{as:"span",elementDescriptor:o.descriptors.paginationRowText,elementId:o.descriptors.paginationRowText?.setId("displaying"),sx:e=>({opacity:e.opacity.$inactive}),localizationKey:(0,o.localizationKeys)("paginationRowText__of")})," ",(0,n.tZ)(o.Text,{as:"span",elementDescriptor:o.descriptors.paginationRowText,elementId:o.descriptors.paginationRowText?.setId("allRowsCount"),children:i})]})},c=()=>(0,n.tZ)(o.Flex,{center:!0,children:(0,n.tZ)(o.Text,{colorScheme:"secondary",children:"..."})}),d=e=>{let{page:t,count:r,rowInfo:d,siblingCount:u=1,onChange:p}=e,{t:m}=(0,o.useLocalizations)();return(0,n.BX)(o.Flex,{justify:d?"between":"center",align:"center",sx:e=>({fontSize:e.fontSizes.$sm,"*":{fontSize:"inherit"},[a.mqu.sm]:{flexDirection:"column",gap:e.space.$2}}),children:[d&&(0,n.tZ)(s,{rowInfo:d}),(0,n.BX)(o.Flex,{gap:2,align:"center",sx:{display:"inline-flex"},children:[(0,n.tZ)(l,{isDisabled:t<=1,icon:i.W,"aria-label":m((0,o.localizationKeys)("paginationButton__previous")),onClick:()=>{p?.(t-1)}}),Array.from({length:r-1+1},(e,t)=>1+t).map(e=>Math.abs(t-e)<=u||e===r||1===e?(0,n.tZ)(l,{isActive:e===t,variant:"ghost",onClick:()=>{p?.(e)},children:e},e):Math.abs(t-e)===u+1?(0,n.tZ)(c,{},e):null),(0,n.tZ)(l,{isDisabled:t>=r||t<1,icon:i.TZ,"aria-label":m((0,o.localizationKeys)("paginationButton__next")),onClick:()=>{p?.(t+1)}})]})]})}},62915:function(e,t,r){r.d(t,{g:()=>i});var n=r(73312),o=r(97295);let i=e=>(0,n.tZ)(o.E,{elementId:"personalWorkspace",rounded:!1,...e})},78191:function(e,t,r){r.d(t,{h5:()=>a,nX:()=>l,ug:()=>o});let n=[["United States","us","1","(...) ...-....",100],["United Kingdom","gb","44",".... ......",100],["India","in","91",".....-.....",100],["Canada","ca","1","(...) ...-....",100],["Germany","de","49","... .......",100],["France","fr","33",". .. .. .. ..",100],["Russia","ru","7","... ...-..-..",100],["Afghanistan","af","93"],["\xc5land Islands","ax","358"],["Albania","al","355"],["Algeria","dz","213"],["American Samoa","as","1684"],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1264"],["Antigua and Barbuda","ag","1268"],["Argentina","ar","54"],["Armenia","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61","... ... ..."],["Austria","at","43"],["Azerbaijan","az","994"],["Bahamas","bs","1242"],["Bahrain","bh","973"],["Bangladesh","bd","880"],["Barbados","bb","1246"],["Belarus","by","375"],["Belgium","be","32","... .. .. .."],["Belize","bz","501"],["Benin","bj","229"],["Bermuda","bm","1441"],["Bhutan","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina","ba","387"],["Botswana","bw","267"],["Brazil","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1284"],["Brunei","bn","673"],["Bulgaria","bg","359"],["Burkina Faso","bf","226"],["Burundi","bi","257"],["Cambodia","kh","855"],["Cameroon","cm","237"],["Cape Verde","cv","238"],["Caribbean Netherlands","bq","599"],["Cayman Islands","ky","1345"],["Central African Republic","cf","236"],["Chad","td","235"],["Chile","cl","56"],["China","cn","86","...-....-...."],["Colombia","co","57"],["Comoros","km","269"],["Democratic Republic of the Congo","cd","243"],["Republic of the Congo","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506","....-...."],["C\xf4te d’Ivoire","ci","225"],["Croatia","hr","385"],["Cuba","cu","53"],["Cura\xe7ao","cw","599"],["Cyprus","cy","357"],["Czech Republic","cz","420"],["Denmark","dk","45",".. .. .. .."],["Djibouti","dj","253"],["Dominica","dm","1767"],["Dominican Republic","do","1"],["Ecuador","ec","593"],["Egypt","eg","20"],["El Salvador","sv","503","....-...."],["Equatorial Guinea","gq","240"],["Eritrea","er","291"],["Estonia","ee","372"],["Ethiopia","et","251"],["Falkland Islands","fk","500"],["Faroe Islands","fo","298"],["Fiji","fj","679"],["Finland","fi","358",".. ... .. .."],["French Guiana","gf","594"],["French Polynesia","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia","ge","995"],["Ghana","gh","233"],["Gibraltar","gi","350"],["Greece","gr","30","... ......."],["Greenland","gl","299"],["Grenada","gd","1473"],["Guadeloupe","gp","590"],["Guam","gu","1671"],["Guatemala","gt","502","....-...."],["Guinea","gn","224"],["Guinea-Bissau","gw","245"],["Guyana","gy","592"],["Haiti","ht","509","....-...."],["Honduras","hn","504"],["Hong Kong","hk","852",".... ...."],["Hungary","hu","36"],["Iceland","is","354","... ...."],["Indonesia","id","62"],["Iran","ir","98"],["Iraq","iq","964"],["Ireland","ie","353",".. ......."],["Israel","il","972"],["Italy","it","39","... ......"],["Jamaica","jm","1876"],["Japan","jp","81","... .. ...."],["Jordan","jo","962"],["Kazakhstan","kz","7","... ...-..-.."],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait","kw","965"],["Kyrgyzstan","kg","996"],["Laos","la","856"],["Latvia","lv","371"],["Lebanon","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya","ly","218"],["Liechtenstein","li","423"],["Lithuania","lt","370"],["Luxembourg","lu","352"],["Macau","mo","853"],["Madagascar","mg","261"],["Malawi","mw","265"],["Malaysia","my","60","..-....-...."],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania","mr","222"],["Mauritius","mu","230"],["Mayotte","yt","262"],["Mexico","mx","52"],["Micronesia","fm","691"],["Moldova","md","373"],["Monaco","mc","377"],["Mongolia","mn","976"],["Montenegro","me","382"],["Montserrat","ms","1664"],["Morocco","ma","212"],["Mozambique","mz","258"],["Myanmar","mm","95"],["Namibia","na","264"],["Nauru","nr","674"],["Nepal","np","977"],["Netherlands","nl","31",".. ........"],["New Caledonia","nc","687"],["New Zealand","nz","64","...-...-...."],["Nicaragua","ni","505"],["Niger","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea","kp","850"],["North Macedonia","mk","389"],["Northern Mariana Islands","mp","1670"],["Norway","no","47","... .. ..."],["Oman","om","968"],["Pakistan","pk","92","...-......."],["Palau","pw","680"],["Palestine","ps","970"],["Panama","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru","pe","51"],["Philippines","ph","63","... ...."],["Poland","pl","48","...-...-..."],["Portugal","pt","351"],["Puerto Rico","pr","1"],["Qatar","qa","974"],["R\xe9union","re","262"],["Romania","ro","40"],["Rwanda","rw","250"],["Saint Barth\xe9lemy","bl","590"],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869"],["Saint Lucia","lc","1758"],["Saint Martin","mf","590"],["Saint Pierre and Miquelon","pm","508"],["Saint Vincent and the Grenadines","vc","1784"],["Samoa","ws","685"],["San Marino","sm","378"],["S\xe3o Tom\xe9 and Pr\xedncipe","st","239"],["Saudi Arabia","sa","966"],["Senegal","sn","221"],["Serbia","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65","....-...."],["Sint Maarten","sx","1721"],["Slovakia","sk","421"],["Slovenia","si","386"],["Solomon Islands","sb","677"],["Somalia","so","252"],["South Africa","za","27"],["South Korea","kr","82"],["South Sudan","ss","211"],["Spain","es","34","... ... ..."],["Sri Lanka","lk","94"],["Sudan","sd","249"],["Suriname","sr","597"],["Eswatini","sz","268"],["Sweden","se","46",".. ... .. .."],["Switzerland","ch","41",".. ... .. .."],["Syria","sy","963"],["Taiwan","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1868"],["Tunisia","tn","216"],["Turkey","tr","90","... ... .. .."],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1649"],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1340"],["Uganda","ug","256"],["Ukraine","ua","380"],["United Arab Emirates","ae","971"],["Uruguay","uy","598"],["Uzbekistan","uz","998"],["Vanuatu","vu","678"],["Vatican City","va","39",".. .... ...."],["Venezuela","ve","58"],["Vietnam","vn","84"],["Wallis and Futuna","wf","681"],["Western Sahara","eh","212"],["Yemen","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"]],o={us:new Set(["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]),ca:new Set(["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"])},i=([e,t,r,n="",o=0])=>({name:e,iso:t,code:r,pattern:n,priority:o}),a=n.reduce((e,t)=>e.set(t[1],i(t)),new Map),l=n.reduce((e,t)=>{let r=t[2],n=i(t);return e.has(r)?e.get(r)?.push(n):e.set(r,[n]),e},new Map)},84045:function(e,t,r){r.d(t,{J:()=>i});var n=r(73312),o=r(67126);r(69144);let i=e=>{let{context:t,initialFocus:r,outsideElementsInert:i=!1,order:a=["reference","content"],nodeId:l,isOpen:s,portal:c=!0,root:d,children:u}=e;return c?(0,n.tZ)(o.mN,{id:l,children:(0,n.tZ)(o.ll,{root:d,children:s&&(0,n.tZ)(o.wD,{context:t,initialFocus:r,outsideElementsInert:i,order:a,children:(0,n.tZ)(n.HY,{children:u})})})}):(0,n.tZ)(o.mN,{id:l,children:s&&(0,n.tZ)(o.wD,{context:t,initialFocus:r,order:a,children:(0,n.tZ)(n.HY,{children:u})})})}},1151:function(e,t,r){r.d(t,{f:()=>d});var n=r(73312),o=r(69144),i=r(11576),a=r(64204),l=r(51217),s=r(25407),c=r(92418);let d={Root:o.forwardRef((e,t)=>{let{elementDescriptor:r,shouldEntryAnimate:o=!0,...i}=e;return(0,n.tZ)(a.Flow.Part,{part:"popover",children:(0,n.tZ)(c.Z.Root,{elementDescriptor:[a.descriptors.popoverBox,r],...i,ref:t,sx:[e=>({width:e.sizes.$94,maxWidth:`calc(100vw - ${e.sizes.$8})`,zIndex:e.zIndices.$modal,borderRadius:e.radii.$xl,outline:"none"}),e=>({animation:o?`${l.animations.dropdownSlideInScaleAndFade} ${e.transitionDuration.$fast}`:void 0})],children:e.children})})}),Content:e=>{let{sx:t,...r}=e;return(0,n.tZ)(a.Flex,{direction:"col",sx:[e=>({backgroundColor:e.colors.$colorBackground,overflow:"hidden",borderRadius:e.radii.$lg,zIndex:e.zIndices.$card,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,marginInline:"-1px",marginBlockStart:"-1px"}),t],...r,children:e.children})},Footer:e=>{let{sx:t,children:r,...o}=e,{branded:d}=(0,i.useEnvironment)().displayConfig,{privacyPageUrl:u,termsPageUrl:p,helpPageUrl:m}=(0,a.useAppearance)().parsedLayout;return(0,n.BX)(a.Col,{justify:"between",sx:[e=>({background:l.common.mergedColorsBackground(s.O9.setAlpha(e.colors.$colorBackground,1),e.colors.$neutralAlpha50),marginTop:`calc(${e.space.$2} * -1)`,paddingTop:e.space.$2,"&:empty":{padding:0,marginTop:0},">:not(:first-of-type)":{padding:`${e.space.$4} ${e.space.$8}`,borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100}}),t],...o,children:[r,(0,n.tZ)(c.Z.ClerkAndPagesTag,{outerSx:e=>({padding:`${e.space.$4} ${e.space.$8}`}),withFooterPages:!!(d||u||p||m),devModeNoticeSx:e=>({padding:e.space.$none}),withDevOverlay:!0})]})}}},37348:function(e,t,r){r.d(t,{h:()=>i});var n=r(69144),o=r(8315);let i=e=>{let t=n.useRef(document.createElement("div"));return n.useEffect(()=>(document.body.appendChild(t.current),()=>{document.body.removeChild(t.current)}),[]),(0,o.createPortal)(e.children,t.current)}},48774:function(e,t,r){r.d(t,{K:()=>a});var n=r(73312),o=r(64204),i=r(2672);let a=e=>{let{sx:t,children:r,icon:a,iconProps:l,showIconOnHover:s=!0,...c}=e,d=(0,i.useCardState)(),{sx:u,...p}=l||{};return(0,n.BX)(o.Button,{variant:"ghost",colorScheme:"neutral",focusRing:!1,block:!0,hoverAsFocus:!0,isDisabled:d.isLoading,sx:[e=>({justifyContent:"space-between",padding:`${e.space.$4} ${e.space.$5}`,borderRadius:0,...s?{":hover > svg":{visibility:"initial"}}:{}}),t],...c,children:[r,a&&(0,n.tZ)(o.Icon,{icon:a,sx:[e=>({color:e.colors.$colorMutedForeground,marginLeft:e.space.$2,visibility:s?"hidden":"initial"}),u],...p})]})}},23394:function(e,t,r){r.d(t,{P:()=>p});var n=r(73312),o=r(69144),i=r(64204),a=r(24676),l=r(51217),s=r(34174),c=r(92418),d=r(53412),u=r(56459);let p={Root:o.forwardRef((e,t)=>{let{sx:r,children:o,...a}=e,{toggle:p}=(0,u.useUnsafeModalContext)();return(0,n.BX)(c.Z.Root,{ref:t,sx:[e=>({width:e.sizes.$220,maxWidth:`calc(100vw - ${e.sizes.$8})`,display:"flex",flexDirection:"row",[l.mqu.md]:{display:"flex",flexDirection:"column"},overflow:"hidden",height:e.sizes.$176,position:"relative"}),r],...a,children:[p&&(0,n.tZ)(i.Box,{sx:e=>({[l.mqu.md]:{padding:`${e.space.$1x5} ${e.space.$2}`,top:e.space.$none,right:e.space.$none},zIndex:e.zIndices.$modal,position:"absolute",top:e.space.$2,right:e.space.$2}),children:(0,n.tZ)(d.h,{elementDescriptor:i.descriptors.modalCloseButton,variant:"ghost","aria-label":"Close modal",onClick:p,icon:(0,n.tZ)(i.Icon,{icon:s.x8,size:"sm"}),sx:e=>({color:e.colors.$colorMutedForeground,padding:e.space.$3})})}),o,(0,n.tZ)(c.Z.Footer,{isProfileFooter:!0,sx:{display:"none",[l.mqu.md]:{display:"flex"}}})]})}),Content:e=>{let{contentRef:t,children:r,scrollBoxId:s}=e,c=(0,a.useRouter)(),d=o.useRef(0);return o.useEffect(()=>{let e=e=>{let t=e.target;t.scrollTop&&(d.current=t.scrollTop)};return t?.current?.addEventListener("scroll",e),()=>t?.current?.removeEventListener("scroll",e)},[]),o.useLayoutEffect(()=>{d.current&&t?.current&&(t.current.scrollTop=d.current)},[c.currentPath]),(0,n.tZ)(i.Col,{elementDescriptor:i.descriptors.scrollBox,sx:e=>({backgroundColor:e.colors.$colorBackground,position:"relative",borderRadius:e.radii.$lg,width:"100%",overflow:"hidden",borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,marginBlock:"-1px",marginInlineEnd:"-1px",flex:1}),"data-clerk-profile-scroll-box-root":s,children:(0,n.tZ)(i.Col,{elementDescriptor:i.descriptors.pageScrollBox,sx:e=>({flex:"1",scrollbarGutter:"stable",paddingTop:e.space.$7,paddingBottom:e.space.$7,paddingLeft:e.space.$8,paddingRight:e.space.$6,[l.mqu.sm]:{padding:`${e.space.$8} ${e.space.$5}`},...l.common.maxHeightScroller(e)}),ref:t,children:r})})}}},18350:function(e,t,r){r.d(t,{G:()=>l});var n=r(73312),o=r(69144),i=r(64204),a=r(16735);let l=e=>{let t=(0,i.useAppearance)(),r=c(o.Children.toArray(e.children),e=>(0,n.tZ)(a.i,{},`divider${e}`));return(0,n.tZ)(s,{reverse:"bottom"===t.parsedLayout.socialButtonsPlacement,...e,children:r})},s=e=>{let{children:t,reverse:r}=e;return(0,n.tZ)(n.HY,{children:r?o.Children.toArray(t).reverse():t})},c=(e,t)=>e.reduce((r,n,o)=>o===e.length-1?[...r,n]:[...r,n,t(o)],[])},53929:function(e,t,r){r.d(t,{r:()=>i});var n=r(73312),o=r(64204);let i=e=>(0,n.tZ)(o.Col,{...e,sx:e=>({boxSizing:"border-box",width:"fit-content",color:e.colors.$colorForeground,fontFamily:e.fonts.$main,fontStyle:e.fontStyles.$normal})})},86990:function(e,t,r){r.d(t,{r:()=>a});var n=r(73312),o=r(64204),i=r(24676);let a=e=>{let{to:t,onClick:r,...a}=e,l=(0,i.useRouter)(),s=l.resolve(t||l.indexPath);return(0,n.tZ)(o.Link,{...a,onClick:e=>(e.preventDefault(),r&&!t)?r(e):l.navigate(s.href),href:s.href})}},19655:function(e,t,r){r.d(t,{zd:()=>p});var n=r(73312),o=r(69144),i=r(64204),a=r(34174),l=r(51217),s=r(36781),c=r(38246),d=r(15158);let u=(0,o.forwardRef)((e,t)=>{let{children:r,leftIcon:o=a.v3,id:l,sx:s,localizationKey:d,...u}=e;return(0,n.tZ)(c.$,{elementDescriptor:i.descriptors.profileSectionPrimaryButton,elementId:i.descriptors.profileSectionPrimaryButton.setId(l),variant:"ghost",sx:[e=>({textWrap:"nowrap",justifyContent:"start",height:e.sizes.$8}),s],textLocalizationKey:d,leftIcon:o,leftIconSx:e=>({width:e.sizes.$4,height:e.sizes.$4}),ref:t,...u,children:r})}),p={Root:e=>{let{title:t,centered:r=!0,children:a,id:s,sx:c,...d}=e,u=(0,o.useRef)(null),[p,h]=(0,o.useState)(0);return(0,o.useLayoutEffect)(()=>{let e=u.current;e&&h(e.clientHeight+e.clientTop||0)},[]),(0,n.BX)(i.Flex,{elementDescriptor:i.descriptors.profileSection,elementId:i.descriptors.profileSection.setId(s),sx:[e=>({flexDirection:"row-reverse",borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha100,paddingTop:e.space.$4,paddingBottom:e.space.$4,gap:e.space.$6,[l.mqu.lg]:{flexDirection:"column-reverse",gap:e.space.$2}}),c],...d,children:[(0,n.tZ)(i.Col,{elementDescriptor:i.descriptors.profileSectionContent,elementId:i.descriptors.profileSectionContent.setId(s),gap:2,ref:u,sx:{minWidth:0,width:"100%","+ *":{"--clerk-height":`${p}px`}},children:a}),(0,n.tZ)(i.Col,{elementDescriptor:i.descriptors.profileSectionHeader,elementId:i.descriptors.profileSectionHeader.setId(s),sx:e=>({padding:r?void 0:`${e.space.$1x5} 0`,gap:e.space.$1,width:e.space.$66,alignSelf:p?"self-start":r?"center":void 0,marginTop:r?"calc(var(--clerk-height)/2)":void 0,transform:p&&r?"translateY(-50%)":void 0,[l.mqu.lg]:{alignSelf:"self-start",marginTop:"unset",transform:"none",padding:0}}),children:(0,n.tZ)(m,{localizationKey:t,elementDescriptor:i.descriptors.profileSectionTitle,elementId:i.descriptors.profileSectionTitle.setId(s),textElementDescriptor:i.descriptors.profileSectionTitleText,textElementId:i.descriptors.profileSectionTitleText.setId(s)})})]})},ItemList:e=>{let{children:t,id:r,disableAnimation:o=!1,...a}=e,l=(0,n.tZ)(i.Col,{elementDescriptor:i.descriptors.profileSectionItemList,elementId:i.descriptors.profileSectionItemList.setId(r),sx:e=>({gap:e.space.$0x5}),...a,children:t});return o?l:(0,n.tZ)(s.f,{asChild:!0,children:l})},Item:e=>{let{children:t,id:r,sx:o,hoverable:a,...l}=e;return(0,n.tZ)(i.Flex,{elementDescriptor:i.descriptors.profileSectionItem,elementId:i.descriptors.profileSectionItem.setId(r),sx:[e=>({justifyContent:"space-between",width:"100%",alignItems:"center",padding:`${e.space.$1} ${e.space.$1} ${e.space.$1} ${e.space.$2x5}`,gap:e.space.$2,...a&&{borderRadius:e.radii.$lg,":hover":{backgroundColor:e.colors.$neutralAlpha50}}}),o],...l,children:t})},Button:e=>{let{children:t,id:r,sx:o,...a}=e;return(0,n.tZ)(i.Button,{elementDescriptor:i.descriptors.profileSectionPrimaryButton,elementId:i.descriptors.profileSectionPrimaryButton.setId(r),variant:"ghost",sx:[e=>({whiteSpace:"nowrap",justifyContent:"start",gap:e.space.$2,padding:`${e.space.$1x5} ${e.space.$3} ${e.space.$1x5} ${e.space.$2x5}`}),o],...a,children:t})},ArrowButton:u,ButtonGroup:e=>{let{children:t,id:r,...o}=e;return(0,n.tZ)(i.Flex,{elementDescriptor:i.descriptors.profileSectionButtonGroup,elementId:i.descriptors.profileSectionButtonGroup.setId(r),justify:"between",gap:2,...o,children:t})},ActionMenu:e=>{let{children:t,triggerLocalizationKey:r,id:o,triggerSx:l,onClick:s}=e;return(0,n.tZ)(i.Flex,{sx:{position:"relative"},children:(0,n.BX)(d.v2,{elementId:o,children:[(0,n.tZ)(d.bF,{children:(0,n.tZ)(u,{id:o,textLocalizationKey:r,sx:[e=>({justifyContent:"start",height:e.sizes.$8}),l],leftIcon:a.v3,leftIconSx:e=>({width:e.sizes.$4,height:e.sizes.$4}),onClick:s})}),(0,n.tZ)(d.qy,{asPortal:!1,sx:e=>({width:"100%",padding:e.space.$1}),children:t})]})})},ActionMenuItem:e=>{let{children:t,isLoading:r,localizationKey:a,sx:l,leftIcon:s,leftIconSx:c,...u}=e,p=(0,o.isValidElement)(s);return(0,n.BX)(d.sN,{sx:[e=>({padding:`${e.space.$1x5} ${e.space.$2}`}),l],isLoading:r,...u,children:[(r||s)&&(0,n.tZ)(i.Flex,{as:"span",sx:e=>({flex:`0 0 ${e.space.$4}`}),children:r?(0,n.tZ)(i.Spinner,{elementDescriptor:i.descriptors.spinner,size:"sm"}):!p&&s?(0,n.tZ)(i.Icon,{icon:s,sx:[e=>({color:e.colors.$neutralAlpha600,width:e.sizes.$5}),c]}):s}),(0,n.tZ)(i.Text,{localizationKey:a})]})}},m=e=>{let{textElementDescriptor:t,textElementId:r,localizationKey:o,...a}=e;return(0,n.tZ)(i.Flex,{...a,children:(0,n.tZ)(i.Text,{localizationKey:o,variant:"subtitle",elementDescriptor:t,elementId:r})})}},47291:function(e,t,r){r.d(t,{s:()=>d});var n=r(73312),o=r(67126),i=r(69144),a=r(64204);let l=(0,i.createContext)(null),s=i.forwardRef(({children:e,value:t,defaultValue:r,onChange:s,"aria-label":c,"aria-labelledby":d,size:u="md",fullWidth:p=!1,sx:m},h)=>{let[g,f]=(0,i.useState)(r),b=void 0!==t;return(0,n.tZ)(l.Provider,{value:{currentValue:b?t:g,onValueChange:e=>{b||f(e),s?.(e)},size:u,fullWidth:p},children:(0,n.tZ)(o.bU,{orientation:"horizontal",role:"radiogroup",loop:!1,render:(0,n.tZ)(a.Flex,{ref:h,elementDescriptor:a.descriptors.segmentedControlRoot,"aria-label":c,"aria-labelledby":d,sx:[e=>({backgroundColor:e.colors.$neutralAlpha50,borderRadius:e.radii.$md,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha100,isolation:"isolate"}),m]}),children:e})})});s.displayName="SegmentedControl.Root";let c=i.forwardRef(({text:e,value:t},r)=>{let{currentValue:s,onValueChange:c,size:d,fullWidth:u}=function(){let e=(0,i.useContext)(l);if(!e)throw Error("SegmentedControl.Button must be used within SegmentedControl.Root");return e}(),p=t===s;return(0,n.tZ)(o.A8,{render:o=>(0,n.tZ)(a.SimpleButton,{ref:r,...o,localizationKey:e,elementDescriptor:a.descriptors.segmentedControlButton,variant:"unstyled",role:"radio","aria-checked":p,onClick:()=>c(t),isActive:p,sx:e=>({position:"relative",width:u?"100%":"auto",backgroundColor:p?e.colors.$colorBackground:"transparent",color:p?e.colors.$colorForeground:e.colors.$colorMutedForeground,fontSize:"lg"===d?e.fontSizes.$md:e.fontSizes.$xs,minHeight:e.sizes.$6,boxShadow:p?e.shadows.$segmentedControl:"none",borderRadius:`calc(${e.radii.$md} - ${e.borderWidths.$normal})`,zIndex:1,":focus-visible":{zIndex:2}})})})});c.displayName="SegmentedControl.Button";let d={Root:s,Button:c}},3146:function(e,t,r){r.d(t,{Ph:()=>b,UN:()=>S,pp:()=>x});var n=r(73312),o=r(61869),i=r(69144),a=r(64204),l=r(65695),s=r(34174),c=r(51217),d=r(25407),u=r(2672),p=r(84045);let[m,h]=(0,o.uH)("SelectState"),g=(e,t)=>(0,n.tZ)(a.Flex,{sx:e=>({position:"relative",width:"100%",padding:`${e.space.$2} ${e.space.$4}`,margin:`0 ${e.space.$1}`,borderRadius:e.radii.$md,'&:hover, &[data-focused="true"]':{background:c.common.mutedBackground(e)},"&::before":{content:'""',position:"absolute",inset:`calc(${e.space.$0x5} * -1) calc(${e.space.$1} * -1)`}}),children:(0,n.tZ)(a.Text,{truncate:!0,children:e.label||e.value})}),f=e=>e.label||e.value,b=(0,u.withFloatingTree)(e=>{let{value:t,options:r,onChange:o,renderOption:a,noResultsMessage:s,comparator:c,placeholder:d="Select an option",searchPlaceholder:u,elementId:p,children:h,portal:b=!1,referenceElement:v=null,...y}=e,w=(0,l.Sv)({autoUpdate:!0,adjustToReferenceWidth:!!v,referenceElement:v}),C=w.toggle,$=i.useRef(null),_=(0,l.dw)({items:r,comparator:c||(()=>!0)}),k=i.useCallback(e=>{o?.(e),C()},[C,o]),P=(0,n.BX)(n.HY,{children:[(0,n.tZ)(x,{}),(0,n.tZ)(S,{})]});return(0,n.tZ)(m.Provider,{value:{value:{popoverCtx:w,searchInputCtx:_,selectedOption:r.find(e=>e.value===t)||null,noResultsMessage:s,focusedItemRef:$,value:t,renderOption:a||g,buttonRenderOption:a||f,placeholder:d,searchPlaceholder:u,comparator:c,select:k,onTriggerClick:C,elementId:p,portal:b}},...y,children:i.Children.count(h)?h:P})}),v=i.memo(i.forwardRef((e,t)=>{let{option:r,renderOption:o,isSelected:l,index:s,handleSelect:c,isFocused:d,elementId:u}=e;return(0,n.tZ)(a.Flex,{ref:t,sx:{userSelect:"none",cursor:"pointer"},onClick:()=>{c(r)},children:i.cloneElement(o(r,s,l),{elementDescriptor:a.descriptors.selectOption,elementId:a.descriptors.selectOption.setId(u),"data-selected":l,"data-focused":d})})})),y=e=>{let{sx:t,...r}=e;i.useEffect(()=>()=>e.onChange({target:{value:""}}),[]);let{elementId:o}=h();return(0,n.tZ)(a.Flex,{sx:e=>({padding:e.space.$0x5}),children:(0,n.tZ)(a.Input,{elementDescriptor:a.descriptors.selectSearchInput,elementId:a.descriptors.selectSearchInput.setId(o),focusRing:!1,variant:"unstyled",sx:[e=>({borderRadius:e.radii.$md,backgroundColor:e.colors.$neutralAlpha100,padding:e.space.$2}),t],...r})})},w=e=>{let{sx:t,...r}=e;return(0,n.tZ)(a.Text,{as:"div",sx:[e=>({width:"100%",padding:`${e.space.$1} ${e.space.$2} ${e.space.$2} ${e.space.$2}`}),t],...r})},x=e=>{let{containerSx:t,sx:r,...o}=e,{popoverCtx:l,searchInputCtx:s,value:u,renderOption:m,searchPlaceholder:g,comparator:f,focusedItemRef:b,noResultsMessage:x,select:S,onTriggerClick:C,elementId:$,portal:_}=h(),{filteredItems:k,searchInputProps:P}=s,[I,A]=(0,i.useState)(0),{isOpen:T,floating:R,styles:z,nodeId:Z,context:B}=l,D=i.useRef(null);return i.useEffect(()=>{if(!T)return void A(-1);b.current?.scrollIntoView?.({block:"nearest"})},[I,T]),i.useEffect(()=>A(0),[k.length]),i.useEffect(()=>{if(f||D?.current?.focus(),T){A(k.findIndex(e=>e.value===u)),b.current?.scrollIntoView?.({block:"nearest"});return}},[T]),(0,n.tZ)(p.J,{nodeId:Z,context:B,isOpen:T,portal:_||!1,order:["content"],children:(0,n.BX)(a.Flex,{elementDescriptor:a.descriptors.selectOptionsContainer,elementId:a.descriptors.selectOptionsContainer.setId($),ref:R,onKeyDown:e=>"ArrowUp"===e.key?(e.preventDefault(),T)?A((e=0)=>0===e?k.length-1:e-1):C():"ArrowDown"===e.key?(e.preventDefault(),T)?A((e=0)=>e===k.length-1?0:e+1):C():"Enter"===e.key&&I>=0?(e.preventDefault(),S(k[I])):void 0,direction:"col",justify:"start",sx:[e=>({backgroundColor:d.O9.makeSolid(e.colors.$colorBackground),borderRadius:e.radii.$lg,overflow:"hidden",animation:`${c.animations.dropdownSlideInScaleAndFade} ${e.transitionDuration.$slower} ${e.transitionTiming.$slowBezier}`,transformOrigin:"top center",boxShadow:e.shadows.$menuShadow,zIndex:e.zIndices.$dropdown}),r],style:{...z,left:z.left-1},children:[f&&(0,n.tZ)(y,{placeholder:g,...P}),(0,n.BX)(a.Flex,{ref:D,direction:"col",tabIndex:f?void 0:0,sx:[e=>({gap:e.space.$0x5,outline:"none",overflowY:"auto",maxHeight:"18vh",padding:`${e.space.$0x5} ${e.space.$0x5}`}),t],...o,children:[k.map((e,t)=>{let r=t===I,o=u===e.value;return(0,n.tZ)(v,{index:t,ref:r?b:void 0,option:e,renderOption:m,isSelected:o,isFocused:r,handleSelect:S,elementId:$},e.value)}),x&&0===k.length&&(0,n.tZ)(w,{children:x})]})]})})},S=e=>{let{sx:t,children:r,icon:o,iconSx:i,...l}=e,{popoverCtx:c,onTriggerClick:d,buttonRenderOption:u,selectedOption:p,placeholder:m,elementId:g}=h(),{reference:f}=c,b=r;return r||(b=p?u(p):(0,n.tZ)(a.Text,{as:"span",children:m})),(0,n.BX)(a.Button,{elementDescriptor:a.descriptors.selectButton,elementId:a.descriptors.selectButton.setId(g),ref:f,variant:"outline",textVariant:"buttonLarge",onClick:d,sx:[e=>({gap:e.space.$2,paddingLeft:e.space.$3x5,paddingRight:e.space.$3x5,alignItems:"center","> *":{pointerEvents:"none"}}),t],...l,children:[b,(0,n.tZ)(a.Icon,{elementDescriptor:a.descriptors.selectButtonIcon,elementId:a.descriptors.selectButtonIcon.setId(g),size:"md",icon:o||s._M,sx:i})]})}},874:function(e,t,r){r.d(t,{L:()=>f});var n=r(73312),o=r(90159),i=r(61869),a=r(69144),l=r(96231),s=r(64204),c=r(65695),d=r(87172),u=r(51217),p=r(57046),m=r(50097),h=r(2672),g=r(27338);let f=a.memo(e=>{let{oauthCallback:t,web3Callback:r,alternativePhoneCodeCallback:a,enableOAuthProviders:m=!0,enableWeb3Providers:f=!0,enableAlternativePhoneCodeProviders:y=!0,idleAfterDelay:w=!0,showLastAuthenticationStrategy:x=!1}=e,{web3Strategies:S,authenticatableOauthStrategies:C,strategyToDisplayData:$,alternativePhoneCodeChannels:_}=(0,c.vO)(),k=(0,d.o)(),P=(0,h.useCardState)(),I=(0,i.cL)(),{socialButtonsVariant:A}=(0,s.useAppearance)().parsedLayout,T=[...m?C:[],...f?S:[],...y?_:[]];if(!T.length)return null;let R=x?I.client?.lastAuthenticationStrategy:null,z=R?.startsWith("saml_")?R.replace("saml_","oauth_"):R,Z=z&&T.includes(z)?z:null,{strategyRows:B,lastAuthenticationStrategyPresent:D}=(0,g.f)([...T],5,Z),E=B.at(+!!D)?.length??0,F=D?T.length-1:T.length,L=!D&&2===T.length,M="blockButton"===A||"iconButton"!==A&&T.length<=2,O=async e=>{P.setLoading(e);try{e.startsWith("web3_")?await r(e):await t(e)}catch{await (0,p._)(1e3),P.setIdle()}w&&(await (0,p._)(5e3),P.setIdle())},U=M?v:b;return(0,n.tZ)(s.Flex,{direction:"col",gap:2,elementDescriptor:s.descriptors.socialButtonsRoot,children:B.map((e,t)=>(0,n.tZ)(s.Grid,{elementDescriptor:s.descriptors.socialButtons,gap:2,sx:r=>({justifyContent:"center",[u.mqu.sm]:{gridTemplateColumns:L?"repeat(1, minmax(0, 1fr))":void 0},gridTemplateColumns:T.length<1?"repeat(1, minmax(0, 1fr))":`repeat(${e.length}, ${0===t?"minmax(0, 1fr)":`minmax(0, calc((100% - (${E} - 1) * ${r.sizes.$2}) / ${E}))`})`}),children:e.map(t=>{let r=1===F||t===Z&&1===e.length,i=r?`Continue with ${$[t].name}`:$[t].name,c=r?(0,s.localizationKeys)("socialButtonsBlockButton",{provider:$[t].name}):(0,s.localizationKeys)("socialButtonsBlockButtonManyInView",{provider:$[t].name}),d=$[t].iconUrl?(0,n.tZ)(s.Image,{elementDescriptor:[s.descriptors.providerIcon,s.descriptors.socialButtonsProviderIcon],elementId:s.descriptors.socialButtonsProviderIcon.setId($[t].id),isLoading:P.loadingMetadata===t,isDisabled:P.isLoading,src:$[t].iconUrl,alt:`Sign in with ${$[t].name}`,sx:e=>({width:e.sizes.$4,height:"auto",maxWidth:"100%"})}):(0,n.tZ)(l.e_,{id:$[t].id,value:$[t].name,isLoading:P.loadingMetadata===t,isDisabled:P.isLoading});return(0,n.tZ)(U,{id:$[t].id,onClick:async()=>{(0,o.H)(t)?a(t):await O(t)},isLoading:P.loadingMetadata===t,isDisabled:P.isLoading,label:i,textLocalizationKey:c,icon:d,lastAuthenticationStrategy:t===Z&&k>1},t)})},e.join("-")))})}),b=(0,a.forwardRef)((e,t)=>{let{icon:r,label:o,id:i,textLocalizationKey:a,lastAuthenticationStrategy:l,...c}=e;return l?(0,n.tZ)(v,{...e,ref:t}):(0,n.tZ)(s.Button,{ref:t,elementDescriptor:s.descriptors.socialButtonsIconButton,elementId:s.descriptors.socialButtonsIconButton.setId(i),textVariant:"buttonLarge",variant:"outline",colorScheme:"neutral",hoverAsFocus:!0,sx:e=>({minHeight:e.sizes.$8,width:"100%"}),...c,children:r})}),v=(0,a.forwardRef)((e,t)=>{let{id:r,icon:o,isLoading:i,label:l,textLocalizationKey:c,lastAuthenticationStrategy:d,...u}=e,p=(0,a.isValidElement)(o);return(0,n.BX)(s.SimpleButton,{elementDescriptor:s.descriptors.socialButtonsBlockButton,elementId:s.descriptors.socialButtonsBlockButton.setId(r),variant:"outline",block:!0,isLoading:i,hoverAsFocus:!0,ref:t,...u,sx:t=>[{gap:t.space.$4,position:"relative",justifyContent:"flex-start"},e.sx],children:[d&&(0,n.tZ)(m.H,{overlay:!0}),(0,n.BX)(s.Flex,{justify:"center",align:"center",as:"span",gap:3,sx:{width:"100%",overflow:"hidden"},children:[(i||o)&&(0,n.tZ)(s.Flex,{as:"span",center:!0,sx:e=>({flex:`0 0 ${e.space.$4}`}),children:i?(0,n.tZ)(s.Spinner,{size:"sm",elementDescriptor:s.descriptors.spinner}):!p&&o?(0,n.tZ)(s.Icon,{icon:o,sx:[e=>({color:e.colors.$neutralAlpha600,width:e.sizes.$4,position:"absolute"})]}):o}),(0,n.tZ)(s.Text,{elementDescriptor:s.descriptors.socialButtonsBlockButtonText,elementId:s.descriptors.socialButtonsBlockButtonText.setId(r),as:"span",truncate:!0,variant:"buttonLarge",localizationKey:c,children:l})]})]})})},67263:function(e,t,r){r.d(t,{I:()=>c});var n=r(73312);r(69144);var o=r(64204),i=r(65695),a=r(17703),l=r(19460),s=r(92654);let c=e=>{let{text:t,title:r,subtitle:c,finishLabel:d,onFinish:u,contents:p,finishButtonProps:m,headerBadgeText:h,...g}=e,{navigateToFlowStart:f}=(0,i.zk)();return(0,n.BX)(o.Col,{...g,gap:4,children:[(0,n.BX)(s.h.Root,{badgeText:h,children:[r&&(0,n.tZ)(s.h.Title,{localizationKey:r,textVariant:c?void 0:"subtitle"}),c&&(0,n.tZ)(s.h.Subtitle,{localizationKey:c})]}),(0,n.tZ)(o.Col,{gap:4,children:Array.isArray(t)?t.map(e=>(0,n.tZ)(o.Text,{localizationKey:e,colorScheme:"secondary",sx:e=>({display:"inline",":not(:last-of-type)":{marginRight:e.sizes.$1}})},e.key)):(0,n.tZ)(o.Text,{localizationKey:t,colorScheme:"secondary"})}),p,(0,n.tZ)(l.K,{children:(0,n.tZ)(o.Button,{autoFocus:!0,localizationKey:d||(0,a.u1)("userProfile.formButtonPrimary__finish"),elementDescriptor:o.descriptors.formButtonPrimary,onClick:u||f,...m})})]})}},67322:function(e,t,r){r.d(t,{r:()=>l});var n=r(73312),o=r(69144),i=r(64204),a=r(51217);let l=(0,o.forwardRef)(({isChecked:e,defaultChecked:t,onChange:r,isDisabled:l=!1,label:s},c)=>{let[d,u]=(0,o.useState)(!!t),p=void 0!==e,m=p?e:d;return(0,n.BX)(i.Flex,{ref:c,elementDescriptor:i.descriptors.switchRoot,direction:"row",align:"center",as:"label",sx:e=>({isolation:"isolate",width:"fit-content","&:has(input:focus-visible) > input + span":{...a.common.focusRingStyles(e)}}),children:[(0,n.tZ)("input",{type:"checkbox",role:"switch",disabled:l,defaultChecked:t,checked:m,onChange:e=>{l||(p||u(e.target.checked),r?.(e.target.checked))},style:{...a.common.visuallyHidden()}}),(0,n.tZ)(i.Flex,{elementDescriptor:i.descriptors.switchIndicator,as:"span","data-checked":m,sx:e=>({width:e.sizes.$6,height:e.sizes.$4,alignItems:"center",position:"relative",backgroundColor:m?e.colors.$primary500:e.colors.$neutralAlpha150,borderRadius:999,transition:"background-color 0.2s",opacity:l?.6:1,cursor:l?"not-allowed":"pointer",outline:"none",boxSizing:"border-box",boxShadow:"0px 0px 0px 1px rgba(0, 0, 0, 0.06) inset"}),children:(0,n.tZ)(i.Flex,{as:"span",elementDescriptor:i.descriptors.switchThumb,sx:e=>({position:"absolute",left:e.sizes.$0x5,width:e.sizes.$3,height:e.sizes.$3,borderRadius:"50%",backgroundColor:e.colors.$colorBackground,boxShadow:e.shadows.$switchControl,transform:`translateX(${m?e.sizes.$2:0})`,transition:"transform 0.2s",zIndex:1})})}),(0,n.tZ)(i.Text,{as:"span",variant:"caption",colorScheme:"secondary",localizationKey:s,sx:e=>({paddingInlineStart:e.sizes.$2,cursor:l?"not-allowed":"pointer",userSelect:"none"})})]})});l.displayName="Switch"},36148:function(e,t,r){r.d(t,{dr:()=>p,nP:()=>h,mQ:()=>u,OK:()=>m,x4:()=>g});var n=r(73312),o=r(61869),i=r(69144),a=r(64204);function l(e){return i.Children.toArray(e).filter(e=>i.isValidElement(e))}let[s,c]=(0,o.uH)("TabsContext"),d=e=>{let t=i.useMemo(()=>({value:e.value}),[e.value.selectedIndex,e.value.setFocusedIndex]);return(0,n.tZ)(s.Provider,{value:t,children:e.children})},u=e=>{let{value:t,onChange:r,defaultIndex:o=0,children:a}=e,[l,s]=i.useState(o),[c,u]=i.useState(-1),p=i.useCallback(e=>{r?r(e):s(e)},[r]);return(0,n.tZ)(d,{value:{selectedIndex:void 0!==t?t:l,setSelectedIndex:p,focusedIndex:c,setFocusedIndex:u},children:a})},p=e=>{let{children:t,sx:r,...o}=e,{setSelectedIndex:s,selectedIndex:d,setFocusedIndex:u}=c(),p=0,h=l(t).map(e=>{let t=i.cloneElement(e,{tabIndex:e.type===m?p:void 0});return p++,t});return(0,n.tZ)(a.Flex,{elementDescriptor:a.descriptors.tabListContainer,onKeyDown:e=>{let t=h.filter(e=>!e.props?.isDisabled&&e.type===m).map(e=>e.props.tabIndex),r=t.length,n=t.indexOf(d);if("ArrowLeft"===e.key){let e=0===n?t[r-1]:t[n-1];return u(e),s(e)}if("ArrowRight"===e.key){let e=r-1===n?t[0]:t[n+1];return u(e),s(e)}},role:"tablist",sx:[e=>({borderBottomStyle:e.borderStyles.$solid,borderBottomWidth:e.borderWidths.$normal,borderColor:e.colors.$borderAlpha100}),r],...o,children:h})},m=e=>{let{t}=(0,a.useLocalizations)(),{children:r,sx:o,tabIndex:l,isDisabled:s,localizationKey:d,...u}=e;if(void 0===l)throw Error("Tab component must be a direct child of TabList.");let{setSelectedIndex:p,selectedIndex:m,focusedIndex:h,setFocusedIndex:g}=c(),f=i.useRef(null),b=l===m,v=l===h;return i.useEffect(()=>{s&&0===l&&p(l+1)},[]),i.useEffect(()=>{f.current&&v&&f.current.focus()},[v]),(0,n.BX)(a.Button,{elementDescriptor:a.descriptors.tabButton,onClick:()=>{p(l),g(-1)},isDisabled:s,tabIndex:b?0:-1,variant:"ghost","aria-selected":b,id:`cl-tab-${l}`,"aria-controls":`cl-tabpanel-${l}`,role:"tab",ref:f,sx:[e=>({background:e.colors.$transparent,color:b?e.colors.$primary500:e.colors.$neutralAlpha700,gap:e.space.$1x5,fontWeight:e.fontWeights.$medium,borderBottomWidth:b?e.borderWidths.$normal:0,borderBottomStyle:e.borderStyles.$solid,borderBottomColor:e.colors.$primary500,marginBottom:b?"-1px":0,borderRadius:0,padding:`${e.space.$2x5} ${e.space.$0x25}`,width:"fit-content","&:hover, :focus":{backgroundColor:e.colors.$transparent,boxShadow:"none"}}),o],...u,children:[t(d),r]})},h=e=>{let{children:t}=e,r=l(t).map((e,t)=>i.cloneElement(e,{tabIndex:t}));return(0,n.tZ)(n.HY,{children:r})},g=e=>{let{tabIndex:t,sx:r,children:o,...i}=e;if(void 0===t)throw Error("TabPanel component must be a direct child of TabPanels.");let{selectedIndex:l}=c();return t!==l?null:(0,n.tZ)(a.Flex,{elementDescriptor:a.descriptors.tabPanel,id:`cl-tabpanel-${t}`,role:"tabpanel",tabIndex:0,"aria-labelledby":`cl-tab-${t}`,sx:[{outline:0},r],...i,children:o})}},96443:function(e,t,r){r.d(t,{E:()=>c});var n=r(73312),o=r(69144),i=r(64204),a=r(34174),l=r(51217);let s=e=>e.trim(),c=e=>{let{t}=(0,i.useLocalizations)(),{sx:r,placeholder:a,validate:c=()=>!0,value:u,onChange:p,autoFocus:m,validateUnsubmittedEmail:h=()=>null,...g}=e,f=u.split(",").map(s).filter(Boolean),b=new Set(f),v=o.useRef(!0),y=o.useRef(null),[w,x]=o.useState(""),S=e=>{p({target:{value:e.join(",")}}),$(),h("")},C=e=>{let t=(Array.isArray(e)?[...e]:[e]).map(s).filter(Boolean).filter(c).filter(e=>!b.has(e));t.length&&(S([...f,...t]),x(""),$())},$=()=>{y.current?.focus()};return(0,n.BX)(i.Flex,{elementDescriptor:i.descriptors.tagInputContainer,align:"start",gap:2,wrap:"wrap",onClick:$,onFocus:$,sx:[e=>({maxWidth:"100%",padding:`${e.space.$1x5} ${e.space.$2}`,backgroundColor:e.colors.$colorInput,color:e.colors.$colorInputForeground,minHeight:e.sizes.$20,maxHeight:e.sizes.$60,overflowY:"auto",cursor:"text",justifyItems:"center",...l.common.borderVariants(e,{hoverStyles:!0}).normal}),r],...g,children:[f.map(e=>(0,n.tZ)(d,{onRemoveClick:()=>{S(f.filter(t=>t!==e))},children:e},e)),(0,n.tZ)(i.Input,{ref:y,value:w,type:"email","data-testid":"tag-input",placeholder:f.length?void 0:t(a),onKeyDown:e=>{let{key:t}=e;(","===t||" "===t||"Enter"===t)&&w.length?(e.preventDefault(),C(w)):"Backspace"===t&&!w.length&&f.length&&v.current&&(e.preventDefault(),S(f.slice(0,-1))),v.current=!1},onKeyUp:()=>{v.current=!0},onChange:e=>{x(e.target.value),h(e.target.value)},onPaste:e=>{e.preventDefault(),C((e.clipboardData.getData("text")||"").split(/,| |\n|\t/).filter(Boolean).map(e=>e.trim()))},onBlur:e=>{e.preventDefault(),C(w)},focusRing:!1,autoFocus:m,variant:"unstyled",sx:e=>({flexGrow:1,borderWidth:0,width:"initial",padding:0,lineHeight:e.space.$5,paddingLeft:e.space.$1,"::placeholder":{color:e.colors.$colorMutedForeground},boxShadow:"none",":hover":{boxShadow:"none"}})})]})},d=e=>{let{onRemoveClick:t,children:r,...o}=e;return(0,n.BX)(i.Flex,{elementDescriptor:i.descriptors.tagPillContainer,onClick:t,gap:1,center:!0,...o,sx:e=>({padding:`${e.space.$0x5} ${e.space.$1x5}`,borderRadius:e.radii.$sm,color:e.colors.$primary500,backgroundColor:e.colors.$neutralAlpha50,boxShadow:e.shadows.$badge,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha100,display:"inline-flex",marginRight:"1px",cursor:"pointer",":hover":{backgroundColor:e.colors.$neutralAlpha100},":hover svg":{color:e.colors.$danger500},overflow:"hidden"}),children:[(0,n.tZ)(i.Text,{truncate:!0,variant:"buttonSmall",children:r}),(0,n.tZ)(i.Icon,{elementDescriptor:i.descriptors.tagPillIcon,size:"md",icon:a.v3,sx:e=>({color:e.colors.$colorMutedForeground,transform:"translateY(0px) rotate(45deg)"})})]})}},33009:function(e,t,r){r.d(t,{a:()=>l});var n=r(73312),o=r(64204),i=r(34174),a=r(15158);let l=e=>{let{actions:t,elementId:r,variant:l}=e,s="bordered"===l;return(0,n.BX)(a.v2,{elementId:r,children:[(0,n.tZ)(a.bF,{arialLabel:e=>`${e?"Close":"Open"} menu`,children:(0,n.tZ)(o.Button,{sx:e=>s?{width:e.sizes.$6,height:e.sizes.$6}:{padding:e.space.$0x5,boxSizing:"content-box",opacity:e.opacity.$inactive,":hover,:focus-visible":{opacity:1}},variant:s?"bordered":"ghost",colorScheme:s?"secondary":"neutral",elementDescriptor:[o.descriptors.menuButton,s?o.descriptors.menuButtonEllipsisBordered:o.descriptors.menuButtonEllipsis],children:(0,n.tZ)(o.Icon,{icon:i.g4,sx:e=>s?{width:e.sizes.$4,height:e.sizes.$4,opacity:e.opacity.$inactive}:{width:"auto",height:e.sizes.$5}})})}),(0,n.tZ)(a.qy,{children:t.map((e,t)=>(0,n.tZ)(a.sN,{destructive:e.isDestructive,onClick:e.onClick,isDisabled:e.isDisabled,localizationKey:e.label},t))})]})}},85679:function(e,t,r){r.d(t,{u:()=>l});var n=r(73312),o=r(61869),i=r(69144),a=r(64204);let l=e=>{let{t}=(0,a.useLocalizations)(),{onClick:r,throttleTimeInSec:l=30,startDisabled:s,children:c,localizationKey:d,showCounter:u=!0,...p}=e,[m,h]=i.useState(0),g=i.useRef(void 0);(0,o.Gw)(()=>{s&&f()},[]),(0,i.useEffect)(()=>()=>clearInterval(g.current),[]);let f=()=>{h(l),g.current=window.setInterval(()=>{h(e=>(1===e&&clearInterval(g.current),e-1))},1e3)};return(0,n.BX)(a.Button,{variant:"link",...p,textVariant:"buttonSmall",isDisabled:m>0||e.isDisabled,onClick:e=>{m||(r?.(e),f())},children:[t(d)||c,m&&u?` (${m})`:""]})}},19732:function(e,t,r){r.d(t,{u:()=>p});var n=r(73312),o=r(67126),i=r(16089),a=r(13986),l=r(69144),s=r(64204),c=r(65695);let d=l.createContext(null),u=()=>{let e=l.useContext(d);if(null==e)throw Error("Tooltip components must be wrapped in <Tooltip />");return e},p={Root:function({children:e,...t}){let r=function({initialOpen:e=!1,placement:t="top",open:r,onOpenChange:n}={}){let[d,u]=l.useState(e),p=r??d,m=n??u,h=(0,c.Tb)(),{animations:g}=(0,s.useAppearance)().parsedLayout,f=(0,o.YF)({placement:t,open:p,onOpenChange:m,whileElementsMounted:i.Me,middleware:[(0,a.cv)(6),(0,a.RR)({crossAxis:t.includes("-"),fallbackAxisSideDirection:"start",padding:6}),(0,a.uY)({padding:6})]}),b=f.context,v=(0,o.XI)(b,{move:!1,enabled:null==r}),y=(0,o.KK)(b,{enabled:null==r}),w=(0,o.bQ)(b),x=(0,o.qs)(b,{role:"tooltip"}),{isMounted:S,styles:C}=(0,o.Y_)(b,{duration:200*!!(!h&&!0===g),initial:({side:e})=>({opacity:0,transform:"top"===e?"translateY(4px)":"translateY(-4px)"}),open:{opacity:1,transform:"translate(0)"},close:({side:e})=>({opacity:0,transform:"top"===e?"translateY(4px)":"translateY(-4px)"})}),$=(0,o.NI)([v,y,w,x]);return l.useMemo(()=>({open:p,setOpen:m,isMounted:S,...$,...f,transitionStyles:C}),[p,m,$,f,S,C])}(t);return(0,n.tZ)(d.Provider,{value:r,children:e})},Trigger:l.forwardRef(function({children:e,sx:t,...r},i){let a=u(),c=e.ref,d=(0,o.qq)([a.refs.setReference,i,c]);return l.isValidElement(e)?e.props.isDisabled||e.props.disabled?(0,n.tZ)(s.Span,{ref:d,...a.getReferenceProps({...r}),"data-state":a.open?"open":"closed",sx:[{width:"fit-content",display:"inline-block",cursor:"not-allowed",outline:"none"},t],tabIndex:0,children:e}):l.cloneElement(e,a.getReferenceProps({ref:d,...r,...e.props,"data-state":a.open?"open":"closed"})):null}),Content:l.forwardRef(function({style:e,text:t,sx:r,...i},a){let l=u(),c=(0,o.qq)([l.refs.setFloating,a]);return l.isMounted?(0,n.tZ)(o.ll,{children:(0,n.tZ)(s.Box,{ref:c,elementDescriptor:s.descriptors.tooltip,style:{...l.floatingStyles,...e},...l.getFloatingProps(i),children:(0,n.tZ)(s.Box,{elementDescriptor:s.descriptors.tooltipContent,style:l.transitionStyles,sx:[e=>({paddingBlock:e.space.$1,paddingInline:e.space.$1x5,borderRadius:e.radii.$md,backgroundColor:e.colors.$black,color:e.colors.$white,maxWidth:e.sizes.$60}),r],children:(0,n.tZ)(s.Text,{elementDescriptor:s.descriptors.tooltipText,localizationKey:t,variant:"body",colorScheme:"inherit"})})})}):null})}},5472:function(e,t,r){r.d(t,{Y:()=>a});var n=r(73312),o=r(95878),i=r(29629);let a=e=>{let{name:t,firstName:r,lastName:a,avatarUrl:l,imageUrl:s,...c}=e,d=(0,o.Pp)({name:t,firstName:r,lastName:a}),u=(0,o.Qm)({name:t,firstName:r,lastName:a});return(0,n.tZ)(i.q,{title:d,initials:u,imageUrl:l||s,...c})}},97295:function(e,t,r){r.d(t,{E:()=>l});var n=r(73312);r(69144);var o=r(95878),i=r(64204),a=r(5472);let l=e=>{let{user:t,externalAccount:r,samlAccount:l,size:s="md",showAvatar:c=!0,icon:d,iconSx:u,rounded:p=!0,imageUrl:m,badge:h,elementId:g,sx:f,title:b,subtitle:v,avatarSx:y,mainIdentifierSx:w,mainIdentifierVariant:x,subtitleProps:S,...C}=e,{t:$}=(0,i.useLocalizations)(),_=(0,o.Pp)({...t})||(0,o.Pp)({...r})||(0,o.Pp)({...l}),k=(0,o.xC)({...t})||r?.accountIdentifier?.()||l?.emailAddress,P=$(b),I=m||t?.imageUrl||r?.imageUrl,A=e=>({xs:e.sizes.$5,sm:e.sizes.$8,md:e.sizes.$9,lg:e.sizes.$12})[s],T=P||_||k;return(0,n.BX)(i.Flex,{elementDescriptor:i.descriptors.userPreview,elementId:i.descriptors.userPreview.setId(g),align:"center",as:"span",sx:[e=>({minWidth:"0px",width:"fit-content",gap:e.space.$4,minHeight:I&&!c?A(e):void 0}),f],...C,children:[I&&c?(0,n.BX)(i.Flex,{elementDescriptor:i.descriptors.userPreviewAvatarContainer,elementId:i.descriptors.userPreviewAvatarContainer.setId(g),justify:"center",as:"span",sx:{position:"relative"},children:[(0,n.tZ)(a.Y,{boxElementDescriptor:i.descriptors.userPreviewAvatarBox,imageElementDescriptor:i.descriptors.userPreviewAvatarImage,...t,...r,...l,name:_,avatarUrl:I,size:A,sx:y,rounded:p}),d&&(0,n.tZ)(i.Flex,{elementDescriptor:i.descriptors.userPreviewAvatarIcon,sx:[{position:"absolute",left:0,bottom:0},u],as:"span",children:d})]}):null,(0,n.BX)(i.Flex,{elementDescriptor:i.descriptors.userPreviewTextContainer,elementId:i.descriptors.userPreviewTextContainer.setId(g),direction:"col",justify:"center",as:"span",sx:{minWidth:"0px",textAlign:"left"},children:[(0,n.BX)(i.Text,{elementDescriptor:i.descriptors.userPreviewMainIdentifier,elementId:i.descriptors.userPreviewMainIdentifier.setId(g),variant:x||({xs:"subtitle",sm:"caption",md:"subtitle",lg:"h1"})[s],as:"span",sx:[e=>({display:"flex",gap:e.sizes.$1,alignItems:"center"}),w],children:[T&&(0,n.tZ)(i.Text,{elementDescriptor:i.descriptors.userPreviewMainIdentifierText,elementId:i.descriptors.userPreviewMainIdentifierText.setId(g),as:"span",truncate:!0,sx:{fontWeight:"inherit"},children:T}),h]}),(v||_&&k)&&(0,n.tZ)(i.Text,{elementDescriptor:i.descriptors.userPreviewSecondaryIdentifier,elementId:i.descriptors.userPreviewSecondaryIdentifier.setId(g),truncate:!0,as:"span",localizationKey:v||k,colorScheme:"secondary",...S})]})]})}},23465:function(e,t,r){r.d(t,{A:()=>p,U:()=>u});var n=r(73312);r(69144);var o=r(64204),i=r(92418),a=r(12667),l=r(2672),s=r(70431),c=r(92654),d=r(384);let u=e=>(0,n.BX)(i.Z.Root,{children:[(0,n.tZ)(i.Z.Content,{children:(0,n.tZ)(p,{...e})}),(0,n.tZ)(i.Z.Footer,{})]}),p=e=>{let{showAlternativeMethods:t=!0,cardNotice:r,children:u}=e,p=(0,l.useCardState)(),m=(0,a.e3)({onCodeEntryFinished:(t,r,n)=>{e.onCodeEntryFinishedAction(t,r,n)},onResendCodeClicked:e.onResendCodeClicked});return(0,n.BX)(n.HY,{children:[(0,n.BX)(c.h.Root,{badgeText:e.badgeText,children:[(0,n.tZ)(c.h.Title,{localizationKey:e.cardTitle}),(0,n.tZ)(c.h.Subtitle,{localizationKey:e.cardSubtitle}),(0,n.tZ)(d.m,{identifier:e.safeIdentifier,avatarUrl:e.profileImageUrl,onClick:e.onIdentityPreviewEditClicked?e.onIdentityPreviewEditClicked:void 0})]}),(0,n.tZ)(i.Z.Alert,{children:p.error}),u,(0,n.BX)(o.Col,{elementDescriptor:o.descriptors.main,gap:8,children:[(0,n.tZ)(s.l.OTPInput,{...m,label:e.inputLabel,resendButton:e.resendButton}),r&&(0,n.tZ)(o.Alert,{colorScheme:"warning",children:(0,n.tZ)(o.Text,{colorScheme:"warning",localizationKey:r,variant:"caption"})}),(0,n.BX)(o.Col,{gap:3,children:[(0,n.tZ)(o.Button,{elementDescriptor:o.descriptors.formButtonPrimary,block:!0,hasArrow:!0,isLoading:m.isLoading,localizationKey:(0,o.localizationKeys)("formButtonPrimary"),onClick:m.onFakeContinue}),e.onBackLinkClicked&&(0,n.tZ)(o.Button,{elementDescriptor:o.descriptors.formButtonReset,block:!0,variant:"ghost",localizationKey:e.backLinkLabel,onClick:e.onBackLinkClicked}),t&&e.onShowAlternativeMethodsClicked&&(0,n.tZ)(i.Z.Action,{elementId:"alternativeMethods",children:(0,n.tZ)(i.Z.ActionLink,{localizationKey:e.alternativeMethodsLabel??(0,o.localizationKeys)("footerActionLink__useAnotherMethod"),onClick:e.onShowAlternativeMethodsClicked})})]})]})]})}},65495:function(e,t,r){r.d(t,{J:()=>u,V:()=>p});var n=r(73312);r(69144);var o=r(64204),i=r(24676),a=r(92418),l=r(2672),s=r(92654),c=r(384),d=r(85679);let u=e=>{let{navigate:t}=(0,i.useRouter)(),r=(0,l.useCardState)();return(0,n.tZ)(o.Flow.Part,{part:"emailLinkVerify",children:(0,n.BX)(a.Z.Root,{children:[(0,n.BX)(a.Z.Content,{children:[(0,n.BX)(s.h.Root,{showLogo:!0,children:[(0,n.tZ)(s.h.Title,{localizationKey:e.cardTitle}),(0,n.BX)(p,{formSubtitle:e.formSubtitle,resendButton:e.resendButton,onResendCodeClicked:e.onResendCodeClicked,children:[" ",(0,n.tZ)(c.m,{identifier:e.safeIdentifier,avatarUrl:e.profileImageUrl,onClick:()=>t("../")})]})]}),(0,n.tZ)(a.Z.Alert,{children:r.error}),e.cardNotice&&(0,n.tZ)(o.Alert,{colorScheme:"warning",children:(0,n.tZ)(o.Text,{colorScheme:"warning",localizationKey:e.cardNotice,variant:"caption"})}),(0,n.tZ)(a.Z.Action,{elementId:"alternativeMethods",children:e.onShowAlternativeMethodsClicked&&(0,n.tZ)(a.Z.ActionLink,{localizationKey:(0,o.localizationKeys)("footerActionLink__useAnotherMethod"),onClick:e.onShowAlternativeMethodsClicked})})]}),(0,n.tZ)(a.Z.Footer,{})]})})},p=e=>{let t=(0,l.useCardState)();return(0,n.BX)(o.Col,{elementDescriptor:o.descriptors.form,gap:1,children:[(0,n.BX)(o.Col,{elementDescriptor:o.descriptors.formHeader,gap:1,children:[!!e.formSubtitle&&(0,n.tZ)(o.Text,{localizationKey:e.formSubtitle,elementDescriptor:o.descriptors.formHeaderSubtitle,colorScheme:"secondary"}),e.children]}),(0,n.tZ)(d.u,{localizationKey:e.resendButton,elementDescriptor:o.descriptors.formResendCodeLink,onClick:e.onResendCodeClicked,startDisabled:!0,isDisabled:t.isLoading,throttleTimeInSec:60,sx:e=>({marginTop:e.space.$4,width:"100%"})})]})}},22382:function(e,t,r){r.r(t),r.d(t,{Web3SolanaWalletButtons:()=>x});var n=r(73312),o=r(58874),i=r(39755),a=r(65965),l=r(24765),s=r(9441),c=r(69144),d=r(64204),u=r(51217);let p=e=>{let{value:t,id:r,...o}=e;return(0,n.tZ)(d.Box,{as:"span",elementDescriptor:[d.descriptors.walletIcon,d.descriptors.web3SolanaWalletButtonsWalletInitialIcon],elementId:d.descriptors.web3SolanaWalletButtonsWalletInitialIcon.setId(r),sx:e=>({...u.common.centeredFlex("inline-flex"),width:e.space.$4,height:e.space.$4,borderRadius:e.radii.$sm,color:e.colors.$colorPrimaryForeground,backgroundColor:e.colors.$primary500}),...o,children:(0,n.tZ)(d.Text,{as:"span",variant:"buttonSmall",sx:{...u.common.centeredFlex("inline-flex"),width:"100%"},children:t[0].toUpperCase()})})};var m=r(92418),h=r(2672),g=r(3422),f=r(27338),b=r(57046);let v=({web3AuthCallback:e})=>{let t=(0,h.useCardState)(),{wallets:r}=(0,i.O)(),{t:a}=(0,d.useLocalizations)(),l=c.useMemo(()=>r.filter(e=>e.readyState===o.i1.Installed).map(e=>({name:e.adapter.name,icon:e.adapter.icon})),[r]),{strategyRows:s}=(0,f.f)(l,5,void 0),v=s.at(0)?.length??0,x=2===l.length,S=l.length<=2?w:y;return 0===l.length?(0,n.tZ)(m.Z.Alert,{children:(0,n.tZ)(g._,{text:a((0,d.localizationKeys)("web3SolanaWalletButtons.noneAvailable",{solanaWalletsLink:"https://solana.com/solana-wallets"})),isExternal:!0,sx:e=>({textDecoration:"underline",textUnderlineOffset:e.space.$1,color:"inherit"})})}):(0,n.tZ)(d.Flex,{direction:"col",gap:2,elementDescriptor:d.descriptors.web3SolanaWalletButtonsRoot,children:s.map((o,i)=>(0,n.tZ)(d.Grid,{elementDescriptor:d.descriptors.web3SolanaWalletButtons,gap:2,sx:e=>({justifyContent:"center",[u.mqu.sm]:{gridTemplateColumns:x?"repeat(1, minmax(0, 1fr))":void 0},gridTemplateColumns:r.length<1?"repeat(1, minmax(0, 1fr))":`repeat(${o.length}, ${0===i?"minmax(0, 1fr)":`minmax(0, calc((100% - (${v} - 1) * ${e.sizes.$2}) / ${v}))`})`}),children:o.map(r=>{let o,i=1===l.length?(0,d.localizationKeys)("web3SolanaWalletButtons.continue",{walletName:r.name}):r.name,s=r.icon?(0,n.tZ)(d.Image,{elementDescriptor:[d.descriptors.walletIcon,d.descriptors.web3SolanaWalletButtonsWalletInitialIcon],isDisabled:t.isLoading,isLoading:t.loadingMetadata===r.name,src:r.icon,alt:a((0,d.localizationKeys)("web3SolanaWalletButtons.connect",{walletName:r.name})),sx:e=>({width:e.sizes.$4,height:"auto",maxWidth:"100%"})}):(0,n.tZ)(p,{value:r.name,isDisabled:t.isLoading,id:r.name});return(0,n.tZ)(S,{id:r.name,onClick:(o=r.name,async()=>{t.setLoading(o);try{await e({walletName:o})}catch{await (0,b._)(1e3)}finally{t.setIdle()}}),isLoading:t.loadingMetadata===r.name,isDisabled:t.isLoading,label:a(i),icon:s},r.name)})},o.map(e=>e.name).join("-")))})},y=(0,c.forwardRef)((e,t)=>{let{icon:r,label:o,id:i,...a}=e;return(0,n.tZ)(d.Button,{ref:t,"aria-label":o,textVariant:"buttonLarge",variant:"outline",colorScheme:"neutral",hoverAsFocus:!0,sx:e=>({minHeight:e.sizes.$8,width:"100%"}),...a,children:r})}),w=(0,c.forwardRef)((e,t)=>{let{id:r,icon:o,isLoading:i,label:a,...l}=e,s=(0,c.isValidElement)(o);return(0,n.tZ)(d.SimpleButton,{variant:"outline",block:!0,isLoading:i,hoverAsFocus:!0,ref:t,...l,sx:t=>[{gap:t.space.$4,position:"relative",justifyContent:"flex-start"},e.sx],children:(0,n.BX)(d.Flex,{justify:"center",align:"center",as:"span",gap:3,sx:{width:"100%",overflow:"hidden"},children:[(i||o)&&(0,n.tZ)(d.Flex,{as:"span",center:!0,sx:e=>({flex:`0 0 ${e.space.$4}`}),children:i?(0,n.tZ)(d.Spinner,{size:"sm",elementDescriptor:d.descriptors.spinner}):!s&&o?(0,n.tZ)(d.Icon,{icon:o,sx:[e=>({color:e.colors.$neutralAlpha600,width:e.sizes.$4,position:"absolute"})]}):o}),(0,n.tZ)(d.Text,{as:"span",truncate:!0,variant:"buttonLarge",children:a})]})})}),x=e=>{let t=s.W6,r=(0,c.useMemo)(()=>[],[t]);return(0,n.tZ)(a.U,{endpoint:t,children:(0,n.tZ)(l.n,{wallets:r,onError:e=>{console.error(e)},children:(0,n.tZ)(v,{web3AuthCallback:e.web3AuthCallback})})})}},2672:function(e,t,r){r.r(t),r.d(t,{CardStateProvider:()=>u,FlowMetadataProvider:()=>f,useCardState:()=>p,useFlowMetadata:()=>g,withCardStateProvider:()=>m,withFloatingTree:()=>b});var n=r(73312),o=r(61869),i=r(67126),a=r(69144),l=r(24676),s=r(64204);let[c,d]=(0,o.uH)("CardState"),u=e=>{let{translateError:t}=(0,s.useLocalizations)(),r=(0,l.useRouter)(),[o,i]=a.useState(()=>({status:"idle",metadata:void 0,error:t(window?.Clerk?.__internal_last_error||void 0)}));a.useEffect(()=>{let e=window?.Clerk?.__internal_last_error;e&&i(r=>({...r,error:t(e)}))},[t,i,r.currentPath]);let d=a.useMemo(()=>({value:{state:o,setState:i}}),[o,i]);return(0,n.tZ)(c.Provider,{value:d,children:e.children})},p=()=>{let{state:e,setState:t}=d(),{translateError:r}=(0,s.useLocalizations)(),n=e=>t(t=>({...t,status:"idle",metadata:e})),o=e=>t(t=>({...t,status:"loading",metadata:e})),i=async(e,t)=>(o(t),("function"==typeof e?e():e).then(e=>e).finally(()=>n(t)));return{setIdle:n,setError:e=>t(t=>({...t,error:r(e)})),setLoading:o,runAsync:i,loadingMetadata:"loading"===e.status?e.metadata:void 0,error:e.error?e.error:void 0,isLoading:"loading"===e.status,isIdle:"idle"===e.status,state:e}},m=e=>t=>(0,n.tZ)(u,{children:(0,n.tZ)(e,{...t})}),[h,g]=(0,o.uH)("FlowMetadata"),f=e=>{let{flow:t,part:r}=e,o=a.useMemo(()=>({value:e}),[t,r]);return(0,n.tZ)(h.Provider,{value:o,children:e.children})},b=e=>t=>null==(0,i.Zm)()?(0,n.tZ)(i.RB,{children:(0,n.tZ)(e,{...t})}):(0,n.tZ)(e,{...t})},27338:function(e,t,r){r.d(t,{f:()=>function e(t,r,n){if(n&&t.includes(n)){let o=t.filter(e=>e!==n);return 0===o.length?{strategyRows:[[n]],lastAuthenticationStrategyPresent:!0}:{strategyRows:[[n],...e(o,r,null).strategyRows],lastAuthenticationStrategyPresent:!0}}if(t.length<=r)return{strategyRows:[t],lastAuthenticationStrategyPresent:!1};let o=Math.ceil(t.length/r),i=Math.ceil(t.length/o),a=Array.from({length:o},()=>[]),l=0;for(let e of t)a[l].push(e),a[l].length===i&&l++;return{strategyRows:a,lastAuthenticationStrategyPresent:!1}}})},77711:function(e,t,r){r.d(t,{C:()=>a});var n=r(73312),o=r(69144),i=r(64204);let a=e=>(0,o.forwardRef)((t,r)=>{let{parsedLayout:o}=(0,i.useAppearance)();return(0,n.tZ)(e,{...t,ref:r,sx:[o.shimmer?{":hover":{"--cl-shimmer-hover-transform":"skew(-45deg) translateX(600%)","--cl-shimmer-hover-after-transform":"skewX(45deg) translateX(-150%)"}}:{},t.sx]})})},56279:function(e,t,r){r.d(t,{cS:()=>n,$4:()=>T});let n=e=>{let t={};for(let r in e)for(let n in t[r]={},e[r])t[r]["$"+n]=e[r][n];return Object.freeze(t)},o=Object.freeze({solid:"solid",dashed:"dashed"}),i=Object.freeze({normal:"1px",heavy:"2px"});var a=r(25407),l=r(87135),s=r(68849);let c=Object.freeze({whiteAlpha25:"hsla(0, 0%, 100%, 0.02)",whiteAlpha50:"hsla(0, 0%, 100%, 0.03)",whiteAlpha100:"hsla(0, 0%, 100%, 0.07)",whiteAlpha150:"hsla(0, 0%, 100%, 0.11)",whiteAlpha200:"hsla(0, 0%, 100%, 0.15)",whiteAlpha300:"hsla(0, 0%, 100%, 0.28)",whiteAlpha400:"hsla(0, 0%, 100%, 0.41)",whiteAlpha500:"hsla(0, 0%, 100%, 0.53)",whiteAlpha600:"hsla(0, 0%, 100%, 0.62)",whiteAlpha700:"hsla(0, 0%, 100%, 0.73)",whiteAlpha750:"hsla(0, 0%, 100%, 0.78)",whiteAlpha800:"hsla(0, 0%, 100%, 0.81)",whiteAlpha850:"hsla(0, 0%, 100%, 0.84)",whiteAlpha900:"hsla(0, 0%, 100%, 0.87)",whiteAlpha950:"hsla(0, 0%, 100%, 0.92)"}),d=(0,s.SU)("color-neutral","#000000"),u=(0,l.rh)((0,s.SU)("color-danger","#EF4444"),"danger"),p=(0,l.rh)((0,s.SU)("color-primary","#2F3037"),"primary"),m=(0,l.rh)((0,s.SU)("color-success","#22C543"),"success"),h=(0,l.rh)((0,s.SU)("color-warning","#F36B16"),"warning"),g=(0,l.jV)((0,s.SU)("color-danger","#EF4444"),"dangerAlpha"),f=(0,l.jV)(d,"neutralAlpha"),b=(0,l.jV)((0,s.SU)("color-primary","#2F3037"),"primaryAlpha"),v=(0,l.jV)((0,s.SU)("color-success","#22C543"),"successAlpha"),y=(0,l.jV)((0,s.SU)("color-warning","#F36B16"),"warningAlpha"),w=(0,l.jV)((0,s.SU)("color-border",d),"borderAlpha"),x=(0,s.SU)("color-foreground","#212126"),S=(0,s.SU)("color-muted-foreground",a.O9.makeTransparent(x,.35)||"#747686"),C=Object.freeze({avatarBorder:f.neutralAlpha200,avatarBackground:f.neutralAlpha400,colorModalBackdrop:a.O9.makeTransparent((0,s.SU)("color-modal-backdrop",d),.27)||f.neutralAlpha700,colorBackground:(0,s.SU)("color-background","white"),colorInput:(0,s.SU)("color-input","white"),colorForeground:x,colorMutedForeground:S,colorMuted:void 0,colorRing:a.O9.makeTransparent((0,s.SU)("color-ring",d),.85)||f.neutralAlpha200,colorInputForeground:(0,s.SU)("color-input-foreground","#131316"),colorPrimaryForeground:(0,s.SU)("color-primary-foreground","white"),colorShimmer:(0,s.SU)("color-shimmer","rgba(255, 255, 255, 0.36)"),transparent:"transparent",white:"white",black:"black",...f,...c,...p,primaryHover:a.O9.adjustForLightness(p.primary500),...b,...u,...g,...h,...y,...m,...v,...w}),$=Object.freeze({sm:"24%",disabled:"50%",inactive:"62%"});var _=r(11867),k=r(82635),P=r(73003),I=r(96289);let A=Object.freeze({card:"10",navbar:"100",fab:"9000",modal:"10000",dropdown:"11000"}),T=n(Object.freeze({colors:C,fonts:I.Rq,fontStyles:I.g6,fontSizes:I.CH,fontWeights:I.vC,letterSpacings:I.le,lineHeights:I.tO,radii:k.pD,sizes:k.J7,space:k.Dh,shadows:_.q,transitionProperty:P.n_,transitionTiming:P.$$,transitionDuration:P.nV,transitionDurationValues:P.bf,opacity:$,borderStyles:o,borderWidths:i,zIndices:A}))},11867:function(e,t,r){r.d(t,{on:()=>l,q:()=>s,rx:()=>a});var n=r(28097),o=r(99065),i=r(68849);let a=e=>(t,r)=>o.d.modernColor()?e(t,r):`rgba(0, 0, 0, ${r})`,l=(e="#000000",t=a((e,t)=>(0,n.Mw)((0,i.SU)("color-shadow",e),100*t)))=>({menuShadow:`0px 5px 15px 0px ${t(e,.08)}, 0px 15px 35px -5px ${t(e,.2)}`,fabShadow:`0px 12px 24px ${t(e,.32)}`,buttonShadow:`0px 1px 1px 0px ${t("#FFFFFF",.07)} inset, 0px 2px 3px 0px ${t(e,.2)}, 0px 1px 1px 0px ${t(e,.24)}`,cardBoxShadow:`0px 5px 15px 0px ${t(e,.08)}, 0px 15px 35px -5px ${t(e,.2)}`,cardContentShadow:`0px 0px 2px 0px ${t(e,.08)}, 0px 1px 2px 0px ${t(e,.06)}`,actionCardShadow:`0px 1px 4px 0px ${t(e,.12)}, 0px 4px 8px 0px ${t(e,.12)}`,outlineButtonShadow:`0px 2px 3px -1px ${t(e,.08)}, 0px 1px 0px 0px ${t(e,.02)}`,input:"0px 0px 1px 0px {{color}}",focusRing:"0px 0px 0px 4px {{color}}",badge:`0px 2px 0px -1px ${t(e,.04)}`,tableBodyShadow:`0px 0px 2px 0px ${t(e,.08)}, 0px 1px 2px 0px ${t(e,.12)}, 0px 0px 0px 1px ${t(e,.06)}`,segmentedControl:`0px 1px 2px 0px ${t(e,.08)}`,switchControl:`0px 2px 2px -1px ${t(e,.06)}, 0px 0px 0px 1px ${t(e,.06)}, 0px 4px 4px -2px ${t(e,.06)}`}),s=Object.freeze(l())},82635:function(e,t,r){r.d(t,{Dh:()=>c,J7:()=>d,Mx:()=>h,pD:()=>m,u2:()=>u});var n=r(68849);let o=Object.freeze({none:"0",xxs:"0.5px",px:"1px"}),i=Object.freeze({"0x25":{rem:"0.0625rem",multiplier:.25},"0x5":{rem:"0.125rem",multiplier:.5},1:{rem:"0.25rem",multiplier:1},"1x5":{rem:"0.375rem",multiplier:1.5},2:{rem:"0.5rem",multiplier:2},"2x5":{rem:"0.625rem",multiplier:2.5},3:{rem:"0.75rem",multiplier:3},"3x25":{rem:"0.8125rem",multiplier:3.25},"3x5":{rem:"0.875rem",multiplier:3.5},4:{rem:"1rem",multiplier:4},"4x25":{rem:"1.0625rem",multiplier:4.25},"4x5":{rem:"1.125rem",multiplier:4.5},5:{rem:"1.25rem",multiplier:5},"5x5":{rem:"1.375rem",multiplier:5.5},6:{rem:"1.5rem",multiplier:6},7:{rem:"1.75rem",multiplier:7},"7x5":{rem:"1.875rem",multiplier:7.5},8:{rem:"2rem",multiplier:8},"8x5":{rem:"2.125rem",multiplier:8.5},"8x75":{rem:"2.1875rem",multiplier:8.75},9:{rem:"2.25rem",multiplier:9},10:{rem:"2.5rem",multiplier:10},12:{rem:"3rem",multiplier:12},13:{rem:"3.5rem",multiplier:13},16:{rem:"4rem",multiplier:16},17:{rem:"4.25rem",multiplier:17},20:{rem:"5rem",multiplier:20},24:{rem:"6rem",multiplier:24},28:{rem:"7rem",multiplier:28},32:{rem:"8rem",multiplier:32},36:{rem:"9rem",multiplier:36},40:{rem:"10rem",multiplier:40},44:{rem:"11rem",multiplier:44},48:{rem:"12rem",multiplier:48},52:{rem:"13rem",multiplier:52},56:{rem:"14rem",multiplier:56},57:{rem:"14.25rem",multiplier:57},60:{rem:"15rem",multiplier:60},66:{rem:"16.5rem",multiplier:66},94:{rem:"23.5rem",multiplier:94},100:{rem:"25rem",multiplier:100},108:{rem:"27rem",multiplier:108},120:{rem:"30rem",multiplier:120},140:{rem:"35rem",multiplier:140},160:{rem:"40rem",multiplier:160},176:{rem:"44rem",multiplier:176},220:{rem:"55rem",multiplier:220}}),a=(0,n.SU)("spacing","1rem"),l=Object.freeze({"0x25":i["0x25"].rem,"0x5":i["0x5"].rem,1:i["1"].rem,"1x5":i["1x5"].rem,2:i["2"].rem,"2x5":i["2x5"].rem,3:i["3"].rem,"3x25":i["3x25"].rem,"3x5":i["3x5"].rem,4:i["4"].rem,"4x25":i["4x25"].rem,"4x5":i["4x5"].rem,5:i["5"].rem,"5x5":i["5x5"].rem,6:i["6"].rem,7:i["7"].rem,"7x5":i["7x5"].rem,8:i["8"].rem,"8x5":i["8x5"].rem,"8x75":i["8x75"].rem,9:i["9"].rem,10:i["10"].rem,12:i["12"].rem,13:i["13"].rem,16:i["16"].rem,17:i["17"].rem,20:i["20"].rem,24:i["24"].rem,28:i["28"].rem,32:i["32"].rem,36:i["36"].rem,40:i["40"].rem,44:i["44"].rem,48:i["48"].rem,52:i["52"].rem,56:i["56"].rem,57:i["57"].rem,60:i["60"].rem,66:i["66"].rem,94:i["94"].rem,100:i["100"].rem,108:i["108"].rem,120:i["120"].rem,140:i["140"].rem,160:i["160"].rem,176:i["176"].rem,220:i["220"].rem}),s=Object.freeze(Object.fromEntries(Object.entries(i).map(([e,{multiplier:t}])=>[e,4===t?a:`calc(${a} * ${.25*t})`]))),c=Object.freeze({...o,...s}),d=Object.freeze({...o,...l}),u=Object.freeze({sm:"2 / 3",md:"1",lg:"4 / 3",xl:"2"}),p=(0,n.SU)("border-radius","0.375rem"),m=Object.freeze({none:"0px",circle:"50%",avatar:(0,n.SU)("border-radius-avatar",p),sm:(0,n.SU)("border-radius-sm",`calc(${p} * ${u.sm})`),md:(0,n.SU)("border-radius-md",p),lg:(0,n.SU)("border-radius-lg",`calc(${p} * ${u.lg})`),xl:(0,n.SU)("border-radius-xl",`calc(${p} * ${u.xl})`),halfHeight:"99999px"}),h=Object.keys(i)},73003:function(e,t,r){r.d(t,{$$:()=>a,bf:()=>n,nV:()=>o,n_:()=>i});let n=Object.freeze({slowest:600,slower:280,slow:200,fast:120,focusRing:200,controls:100,textField:450,drawer:500}),o=Object.freeze(Object.fromEntries(Object.entries(n).map(([e,t])=>[e,`${t}ms`]))),i=Object.freeze({common:"background-color,background,border-color,color,fill,stroke,opacity,box-shadow,transform"}),a=Object.freeze({common:"ease",easeOut:"ease-out",bezier:"cubic-bezier(0.32, 0.72, 0, 1)",slowBezier:"cubic-bezier(0.16, 1, 0.3, 1)"})},96289:function(e,t,r){r.d(t,{CH:()=>c,Rq:()=>u,g6:()=>d,le:()=>a,q0:()=>l,tO:()=>i,vC:()=>o});var n=r(68849);let o=Object.freeze({normal:(0,n.SU)("font-weight-normal",(0,n.SU)("font-weight","400")),medium:(0,n.SU)("font-weight-medium","500"),semibold:(0,n.SU)("font-weight-semibold","600"),bold:(0,n.SU)("font-weight-bold","700")}),i=Object.freeze({normal:"normal",extraSmall:"calc(16 / 12)",small:"calc(18 / 13)",medium:"calc(24 / 17)",large:"calc(16 / 11)"}),a=Object.freeze({normal:"normal"}),l=Object.freeze({xs:"11 / 13",sm:"12 / 13",md:"1",lg:"17 / 13",xl:"24 / 13"}),s=(0,n.SU)("font-size","0.8125rem"),c=Object.freeze({xs:(0,n.SU)("font-size-xs",`calc(${s} * ${l.xs})`),sm:(0,n.SU)("font-size-sm",`calc(${s} * ${l.sm})`),md:(0,n.SU)("font-size-md",s),lg:(0,n.SU)("font-size-lg",`calc(${s} * ${l.lg})`),xl:(0,n.SU)("font-size-xl",`calc(${s} * ${l.xl})`)}),d=Object.freeze({normal:"normal"}),u=Object.freeze({main:(0,n.SU)("font-family","inherit"),buttons:(0,n.SU)("font-family-buttons",(0,n.SU)("font-family","inherit"))})},65695:function(e,t,r){r.d(t,{_6:()=>n._,gm:()=>d,Tb:()=>k,vO:()=>p.v,Nr:()=>s,VP:()=>l,dw:()=>I,YD:()=>g.Y,zk:()=>v,E2:()=>u.E,eq:()=>m,Sv:()=>C,p5:()=>y.p,ib:()=>h.i,_m:()=>f,Pr:()=>P.P});var n=r(91139),o=r(40472),i=r.n(o),a=r(69144);function l(e,t={}){let[r,n]=(0,a.useState)(!1),{timeout:o=1500,...s}="number"==typeof t?{timeout:t}:t,c=(0,a.useCallback)(()=>{n(i()(e,s))},[e,s]);return(0,a.useEffect)(()=>{let e=null;return r&&(e=window.setTimeout(()=>{n(!1)},o)),()=>{e&&window.clearTimeout(e)}},[o,r]),{value:e,onCopy:c,hasCopied:r}}function s(e,t){let[r,n]=(0,a.useState)(e),[o,i]=(0,a.useState)(void 0);return(0,a.useEffect)(()=>(o&&(clearTimeout(o),i(void 0)),i(setTimeout(()=>{n(e),i(void 0)},t||500)),()=>{o&&(clearTimeout(o),i(void 0))}),[JSON.stringify(e),t]),r}function c(e){let t=e.dir;return"rtl"===t?"rtl":"ltr"===t?"ltr":"auto"!==t&&t||"rtl"!==window.getComputedStyle(e).direction?"ltr":"rtl"}function d(e){return"undefined"==typeof window?"ltr":e?c(e):c(document.documentElement)}var u=r(14814),p=r(47342);function m(e){let{startEnterpriseSSOLinkFlow:t,cancelEnterpriseSSOLinkFlow:r}=a.useMemo(()=>e.createEnterpriseSSOLinkFlow(),[e]);return a.useEffect(()=>r,[]),{startEnterpriseSSOLinkFlow:t,cancelEnterpriseSSOLinkFlow:r}}var h=r(97432),g=r(11606);let f=e=>{let[t,r]=function(e){let[t,r]=a.useState(e),n=a.useRef(!0);return a.useEffect(()=>()=>{n.current=!1},[]),[t,a.useCallback(e=>{n.current&&r(e)},[])]}({status:"idle",metadata:void 0,...e});return{status:t.status,setIdle:e=>r({status:"idle",metadata:e}),setError:e=>r({status:"error",metadata:e}),setLoading:e=>r({status:"loading",metadata:e}),loadingMetadata:"loading"===t.status?t.metadata:void 0,isLoading:"loading"===t.status,isIdle:"idle"===t.status}};var b=r(24676);let v=()=>{let e=(0,b.useRouter)();return{navigateToFlowStart:async()=>{let t=e.indexPath;return t!==e.currentPath?e.navigate(t):e.urlStateParam?.path?e.navigate("/"+e.basePath+e.urlStateParam?.startPath):void 0}}};var y=r(49067);r(93824);var w=r(67126),x=r(16089),S=r(13986);let C=(e={})=>{let{bubbles:t=!1,shoudFlip:r=!0,outsidePress:n,adjustToReferenceWidth:o=!1,referenceElement:i,canCloseModal:l}=e,[s,c]=a.useState(e.defaultOpen||!1),d=(0,w.jV)(),{update:u,refs:p,strategy:m,x:h,y:g,context:f}=(0,w.YF)({open:s,onOpenChange:c,elements:{reference:i?.current},nodeId:d,whileElementsMounted:!1===e.autoUpdate?void 0:x.Me,placement:e.placement||"bottom-start",middleware:[(0,S.cv)(e.offset||6),r&&(0,S.RR)(),(0,S.uY)(),(0,S.dp)({apply({elements:e}){if(o){let t=e.reference;e.floating.style.width=t?`${t?.offsetWidth}px`:""}}})]});(0,w.bQ)(f,{enabled:!1!==l,bubbles:t,outsidePress:n}),(0,a.useEffect)(()=>{e.defaultOpen&&u()},[]);let b=a.useCallback(()=>c(e=>!e),[c]),v=a.useCallback(()=>c(!0),[c]),y=a.useCallback(()=>c(!1),[c]);return{reference:p.setReference,floating:p.setFloating,toggle:b,open:v,nodeId:d,close:y,isOpen:s,styles:{position:m,top:g??0,left:h??0},context:f}},$="(prefers-reduced-motion: no-preference)",_=()=>"undefined"==typeof window||!window.matchMedia($).matches;function k(){let[e,t]=(0,a.useState)(_);return(0,a.useEffect)(()=>{let e=window.matchMedia($);t(!window.matchMedia($).matches);let r=e=>{t(!e.matches)};return"addEventListener"in e?e.addEventListener("change",r):e.addListener(r),()=>"addEventListener"in e?e.removeEventListener("change",r):e.removeListener(r)},[]),e}var P=r(32505);let I=e=>{let{items:t,comparator:r,searchTermForItem:n}=e,[o,i]=a.useState(""),l=a.useMemo(()=>t.reduce((e,t)=>(e.set(t,n?.(t)),e),new Map),[t]),s=a.useMemo(()=>o?t.filter(e=>r(o,e,l.get(e))):t,[t,o]);return{searchInputProps:{onChange:e=>i(e.target.value||""),value:o},filteredItems:s}};r(87172)},91752:function(e,t,r){r.d(t,{l:()=>l});var n=r(20645),o=r(95518),i=r(90577),a=r(47342);function l({filterOutFactor:e,supportedFirstFactors:t}){let{strategies:r}=(0,a.v)(),l=t||[],s=l.filter(t=>t.strategy!==e?.strategy&&!(0,o.Vh)(t.strategy)).length+r.length>0,c=l.filter(t=>!t.strategy.startsWith("oauth_")&&t.strategy!==e?.strategy).filter(e=>(0,o.xT)(e)).filter(e=>"passkey"!==e.strategy||(0,n.iW)()).sort(i.U6);return{hasAnyStrategy:s,hasFirstParty:!!c,firstPartyFactors:c}}},70143:function(e,t,r){r.d(t,{n:()=>a});var n=r(69144),o=r(11576),i=r(64204);function a(){let{displayConfig:e,isDevelopmentOrStaging:t}=(0,o.useEnvironment)(),r=t(),{unsafe_disableDevelopmentModeWarnings:a=!1}=(0,i.useAppearance)().parsedLayout,l=r&&a;return{showDevModeNotice:(0,n.useMemo)(()=>!l&&e.showDevModeWarning,[l,e])}}},14814:function(e,t,r){r.d(t,{E:()=>o});var n=r(69144);function o(e){let{startEmailLinkFlow:t,cancelEmailLinkFlow:r}=n.useMemo(()=>e.createEmailLinkFlow(),[e]);return n.useEffect(()=>r,[]),{startEmailLinkFlow:t,cancelEmailLinkFlow:r}}},47342:function(e,t,r){r.d(t,{v:()=>h});var n=r(90159),o=r(78690);let i=[{provider:"google",strategy:"oauth_google",name:"Google",docsUrl:"https://clerk.com/docs/authentication/social-connections/google"},{provider:"discord",strategy:"oauth_discord",name:"Discord",docsUrl:"https://clerk.com/docs/authentication/social-connections/discord"},{provider:"facebook",strategy:"oauth_facebook",name:"Facebook",docsUrl:"https://clerk.com/docs/authentication/social-connections/facebook"},{provider:"twitch",strategy:"oauth_twitch",name:"Twitch",docsUrl:"https://clerk.com/docs/authentication/social-connections/twitch"},{provider:"twitter",strategy:"oauth_twitter",name:"Twitter",docsUrl:"https://clerk.com/docs/authentication/social-connections/twitter"},{provider:"microsoft",strategy:"oauth_microsoft",name:"Microsoft",docsUrl:"https://clerk.com/docs/authentication/social-connections/microsoft"},{provider:"tiktok",strategy:"oauth_tiktok",name:"TikTok",docsUrl:"https://clerk.com/docs/authentication/social-connections/tiktok"},{provider:"linkedin",strategy:"oauth_linkedin",name:"LinkedIn",docsUrl:"https://clerk.com/docs/authentication/social-connections/linkedin"},{provider:"linkedin_oidc",strategy:"oauth_linkedin_oidc",name:"LinkedIn",docsUrl:"https://clerk.com/docs/authentication/social-connections/linkedin-oidc"},{provider:"github",strategy:"oauth_github",name:"GitHub",docsUrl:"https://clerk.com/docs/authentication/social-connections/github"},{provider:"gitlab",strategy:"oauth_gitlab",name:"GitLab",docsUrl:"https://clerk.com/docs/authentication/social-connections/gitlab"},{provider:"dropbox",strategy:"oauth_dropbox",name:"Dropbox",docsUrl:"https://clerk.com/docs/authentication/social-connections/dropbox"},{provider:"atlassian",strategy:"oauth_atlassian",name:"Atlassian",docsUrl:"https://clerk.com/docs/authentication/social-connections/atlassian"},{provider:"bitbucket",strategy:"oauth_bitbucket",name:"Bitbucket",docsUrl:"https://clerk.com/docs/authentication/social-connections/bitbucket"},{provider:"hubspot",strategy:"oauth_hubspot",name:"HubSpot",docsUrl:"https://clerk.com/docs/authentication/social-connections/hubspot"},{provider:"notion",strategy:"oauth_notion",name:"Notion",docsUrl:"https://clerk.com/docs/authentication/social-connections/notion"},{provider:"apple",strategy:"oauth_apple",name:"Apple",docsUrl:"https://clerk.com/docs/authentication/social-connections/apple"},{provider:"line",strategy:"oauth_line",name:"LINE",docsUrl:"https://clerk.com/docs/authentication/social-connections/line"},{provider:"instagram",strategy:"oauth_instagram",name:"Instagram",docsUrl:"https://clerk.com/docs/authentication/social-connections/instagram"},{provider:"coinbase",strategy:"oauth_coinbase",name:"Coinbase",docsUrl:"https://clerk.com/docs/authentication/social-connections/coinbase"},{provider:"spotify",strategy:"oauth_spotify",name:"Spotify",docsUrl:"https://clerk.com/docs/authentication/social-connections/spotify"},{provider:"xero",strategy:"oauth_xero",name:"Xero",docsUrl:"https://clerk.com/docs/authentication/social-connections/xero"},{provider:"box",strategy:"oauth_box",name:"Box",docsUrl:"https://clerk.com/docs/authentication/social-connections/box"},{provider:"slack",strategy:"oauth_slack",name:"Slack",docsUrl:"https://clerk.com/docs/authentication/social-connections/slack"},{provider:"linear",strategy:"oauth_linear",name:"Linear",docsUrl:"https://clerk.com/docs/authentication/social-connections/linear"},{provider:"x",strategy:"oauth_x",name:"X / Twitter",docsUrl:"https://clerk.com/docs/authentication/social-connections/x-twitter-v2"},{provider:"enstall",strategy:"oauth_enstall",name:"Enstall",docsUrl:"https://clerk.com/docs/authentication/social-connections/enstall"},{provider:"huggingface",strategy:"oauth_huggingface",name:"Hugging Face",docsUrl:"https://clerk.com/docs/authentication/social-connections/huggingface"},{provider:"vercel",strategy:"oauth_vercel",name:"Vercel",docsUrl:"https://clerk.com/docs/authentication/social-connections/vercel"}],a=[{provider:"metamask",strategy:"web3_metamask_signature",name:"MetaMask"},{provider:"base",strategy:"web3_base_signature",name:"Base"},{provider:"coinbase_wallet",strategy:"web3_coinbase_wallet_signature",name:"Coinbase Wallet"},{provider:"okx_wallet",strategy:"web3_okx_wallet_signature",name:"OKX Wallet"},{provider:"solana",strategy:"web3_solana_signature",name:"Solana"}];var l=r(75747),s=r(12041);let c=i.map(e=>e.strategy),d=a.map(e=>e.strategy),u=n.v.map(e=>e.channel),p=(0,s.s)([...[...i,...a].map(e=>[e.provider,{strategy:e.strategy,name:e.name,iconUrl:(0,o.WY)(e.provider)}]),...[...n.v].map(e=>[e.channel,{strategy:e.channel,name:e.name,iconUrl:(0,o.WY)(e.channel)}])]),m=(0,s.s)([...[...i,...a].map(e=>[e.strategy,{id:e.provider,name:e.name,iconUrl:(0,o.WY)(e.provider)}]),...[...n.v].map(e=>[e.channel,{id:e.channel,name:e.name,iconUrl:(0,o.WY)(e.channel)}])]),h=()=>{let{socialProviderStrategies:e,web3FirstFactors:t,authenticatableSocialStrategies:r,social:n,alternativePhoneCodeChannels:o}=(0,l.O)().userSettings,i=e.filter(e=>c.includes(e)),a=e.filter(e=>!c.includes(e)&&e.startsWith("oauth_custom_")),s=r.filter(e=>c.includes(e)),h=r.filter(e=>!c.includes(e)&&e.startsWith("oauth_custom_")),g=Object.keys(n).filter(e=>e.startsWith("oauth_custom_")),f=e.filter(e=>!c.includes(e)||e.startsWith("oauth_custom_"));g.forEach(e=>{p[e.replace("oauth_","")]={strategy:e,name:n[e].name,iconUrl:n[e].logo_url||""}}),f.forEach(e=>{let t=e.replace("oauth_","");m[e]={id:t,iconUrl:n[e].logo_url||"",name:n[e].name}});let b=[...s,...h];b.sort((e,t)=>{let r=e.replace(/^oauth_custom_|^oauth_/,""),n=t.replace(/^oauth_custom_|^oauth_/,"");return r.localeCompare(n)});let v=t.filter(e=>d.includes(e)),y=o.filter(e=>u.includes(e));return{strategies:[...i,...v,...a,...y],web3Strategies:v,alternativePhoneCodeChannels:y,authenticatableOauthStrategies:b,strategyToDisplayData:m,providerToDisplayData:p}}},97432:function(e,t,r){r.d(t,{i:()=>s});var n=r(69144);let o=new Map,i=new Set,a=e=>"string"==typeof e?e:JSON.stringify(e),l=(e,t=a)=>{let r=t(e),l=(0,n.useCallback)(()=>o.get(r),[r]),s=(0,n.useCallback)(e=>{o.set(r,"function"==typeof e?e(l()):e),i.forEach(e=>e())},[r]),c=(0,n.useCallback)(()=>{s({isLoading:!1,isValidating:!1,data:null,error:null,cachedAt:void 0})},[s]);return{getCache:l,setCache:s,subscribeCache:(0,n.useCallback)(e=>(i.add(e),()=>i.delete(e)),[]),clearCache:c}},s=(e,t,r,o)=>{let i={resourceId:o,params:t},{subscribeCache:s,getCache:c,setCache:d,clearCache:u}=l(i),{subscribeCache:p,getCache:m,setCache:h}=l({...i,rv:!0}),g=r?.staleTime??12e4,f=r?.throttleTime||0,b=(0,n.useRef)(e);if(f<0)throw Error("ClerkJS: A negative value for `throttleTime` is not allowed ");let v=(0,n.useSyncExternalStore)(s,c),y=(0,n.useSyncExternalStore)(p,m),w=(0,n.useCallback)(()=>{d(e=>({...e,cachedAt:0})),h(e=>({isLoading:!1,isValidating:!1,error:null,data:(e?.data||0)+1}))},[d,h]);return(0,n.useEffect)(()=>{b.current=e;let n=!b.current,o=void 0===c()?.cachedAt||Date.now()-(c()?.cachedAt||0)>=g,i=c()?.isValidating??!1;if(n||!o||i)return;let a=performance.now();d({data:c()?.data??null,isLoading:!c()?.data,isValidating:!0,error:null}),b.current(t).then(e=>{if(void 0!==e){let t=Array.isArray(e)?e:"object"==typeof e?{...e}:e;setTimeout(()=>{d({data:t,isLoading:!1,isValidating:!1,error:null,cachedAt:Date.now()}),r?.onSuccess?.(t)},f-(performance.now()-a))}}).catch(e=>{d({data:c()?.data??null,isLoading:!1,isValidating:!1,error:e,cachedAt:Date.now()}),e&&r?.onError?.(e)})},[a(t),d,c,y]),{...v,setCache:d,invalidate:u,revalidate:w}}},93266:function(e,t,r){r.d(t,{q:()=>u,e:()=>d});var n=r(61869),o=r(96231),i=r(17703),a=r(65059);let l={basic_member:(0,a.u)("membershipRole__basicMember"),guest_member:(0,a.u)("membershipRole__guestMember"),admin:(0,a.u)("membershipRole__admin")};var s=r(97432);let c={pageSize:20},d=(e=!0)=>{let{organization:t}=(0,n.o8)(),r=(0,o.N2)({permission:"org:sys_memberships:manage"}),i=(0,o.N2)({permission:"org:sys_memberships:read"}),a=e&&!!t?.id&&(r||i),{data:l,isLoading:d}=(0,s.i)(a?({pageSize:e,initialPage:r})=>t.getRoles({pageSize:e,initialPage:r}):void 0,{...c,orgId:t?.id});return{isLoading:d,hasRoleSetMigration:!!l?.has_role_set_migration,options:l?.data?.map(e=>({value:e.key,label:e.name}))}},u=()=>{let{t:e}=(0,i.zJ)();return{localizeCustomRole:t=>e((e=>{if(e)return(0,a.u)(`roles.${e}`)})(t))||e((e=>{if(e)return l[e]})(t))}}},11606:function(e,t,r){r.d(t,{Y:()=>o});var n=r(69144);let o=e=>{let[t,r]=(0,n.useState)(!1),o=(0,n.useRef)(null),i=Array.isArray(e.threshold)?e.threshold:[e.threshold||0],a=(0,n.useRef)();return a.current=e.onChange,{inView:t,ref:(0,n.useCallback)(t=>{if(!t){o.current&&o.current.disconnect();return}o.current=new IntersectionObserver(e=>{e.forEach(e=>{let t=e.isIntersecting&&i.some(t=>e.intersectionRatio>=t);r(t),a.current&&a.current(t,e)})},{root:e.root,rootMargin:e.rootMargin,threshold:i}),o.current.observe(t)},[])}}},54264:function(e,t,r){r.d(t,{j:()=>o});var n=r(61869);let o=e=>{let t=(0,n.cL)().client.signedInSessions;return{signedInSessions:t,otherSessions:t.filter(t=>t.user?.id!==e.user?.id)}}},76028:function(e,t,r){r.d(t,{H:()=>a});var n=r(61869),o=r(57484),i=r(11606);let a=()=>{let{userMemberships:e,userInvitations:t,userSuggestions:r}=(0,n.eW)(o.AO),{ref:a}=(0,i.Y)({threshold:0,onChange:n=>{n&&(e.hasNextPage?e.fetchNext?.():t.hasNextPage?t.fetchNext?.():r.fetchNext?.())}});return{userMemberships:e,userInvitations:t,userSuggestions:r,ref:a}}},49067:function(e,t,r){r.d(t,{i:()=>s,p:()=>c});var n=r(92823),o=r(69144),i=r(90033),a=r(17703),l=r(93824);let s=(e,t)=>{let{t:r,locale:s}=(0,a.zJ)(),{onValidationError:c=n.ZT,onValidationSuccess:d=n.ZT,onValidationWarning:u=n.ZT,onValidationInfo:p=n.ZT,onValidationComplexity:m}=t||{},h=(0,o.useCallback)(t=>{if(Object.values(t?.complexity||{}).length>0){let n=(0,l.e)({config:e,t:r,failedValidations:t.complexity,locale:s});return t.complexity?.min_length?p(n):c(n)}return t?.strength?.state==="fail"?c(t.strength.keys.map(e=>r((0,a.u1)(e))).join(" ")):t?.strength?.state==="pass"?u(t.strength.keys.map(e=>r((0,a.u1)(e))).join(" ")):d()},[t,r,s]);return{validatePassword:(0,o.useMemo)(()=>(0,i.z)(e,{onValidation:h,onValidationComplexity:m}),[h])}},c=({passwordField:e,confirmPasswordField:t})=>{let{t:r}=(0,a.zJ)(),n=(0,o.useCallback)(t=>e.value===t,[e.value]),i=(0,o.useMemo)(()=>n(t.value),[n,t.value]);return{setConfirmPasswordFeedback:(0,o.useCallback)(e=>{n(e)?t.setSuccess(r((0,a.u1)("formFieldError__matchingPasswords"))):t.setError(r((0,a.u1)("formFieldError__notMatchingPasswords")))},[t.setError,t.setSuccess,r,n]),isPasswordMatch:i}}},93824:function(e,t,r){r.d(t,{e:()=>a}),r(69144);var n=r(17703),o=r(86842);let i={max_length:["unstable__errors.passwordComplexity.maximumLength","length"],min_length:["unstable__errors.passwordComplexity.minimumLength","length"],require_numbers:"unstable__errors.passwordComplexity.requireNumbers",require_lowercase:"unstable__errors.passwordComplexity.requireLowercase",require_uppercase:"unstable__errors.passwordComplexity.requireUppercase",require_special_char:"unstable__errors.passwordComplexity.requireSpecialCharacter"},a=({config:e,failedValidations:t,locale:r,t:a})=>{if(!t||0===Object.keys(t).length)return"";let l=t?.min_length||!1,s=Object.entries(t).filter(e=>!l||"min_length"===e[0]).filter(([,e])=>!!e).map(([t])=>{let r=i[t];if(Array.isArray(r)){let[o,i]=r;return a((0,n.u1)(o,{[i]:e[t]}))}return a((0,n.u1)(r))}),c=(0,o.z$)(s,r);return(0,o.$M)(`${a((0,n.u1)("unstable__errors.passwordComplexity.sentencePrefix"))} ${c}`)}},4511:function(e,t,r){r.d(t,{z:()=>i});var n=r(11576),o=r(65695);function i(){let{organizationSettings:e}=(0,n.useEnvironment)(),t=e.forceOrganizationSelection;(0,o.ib)(t?()=>Promise.all([r.e("344"),r.e("1192"),r.e("9573"),r.e("9607"),r.e("7067"),r.e("8877")]).then(r.bind(r,51618)):void 0,"preloadComponent",{staleTime:1/0})}},32505:function(e,t,r){r.d(t,{P:()=>i});let n=0,o=()=>{};function i(){return{enableScrollLock:()=>{1==++n&&(o=function(){let e=/iP(hone|ad|od)|iOS/.test(function(){let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform}()),t=document.body.style,r=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",n=window.innerWidth-document.documentElement.clientWidth,o=t.left?parseFloat(t.left):window.scrollX,i=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",n&&(t[r]=`${n}px`),e){let e=window.visualViewport?.offsetLeft||0,r=window.visualViewport?.offsetTop||0;Object.assign(t,{position:"fixed",top:`${-(i-Math.floor(r))}px`,left:`${-(o-Math.floor(e))}px`,right:"0"})}return()=>{Object.assign(t,{overflow:"",[r]:""}),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(o,i))}}())},disableScrollLock:()=>{0==--n&&o()}}}},44875:function(e,t,r){r.d(t,{E:()=>l});var n=r(61869),o=r(69144),i=r(11576),a=r(24676);let l=(e=2e3)=>{let{queryString:t}=(0,a.useRouter)(),{setActive:r}=(0,n.cL)(),{afterSignInUrl:l}=(0,i.useSignInContext)();(0,o.useEffect)(()=>{let n,o=new URLSearchParams(t).get("createdSessionId");return o&&(n=setTimeout(()=>{r({session:o,redirectUrl:l})},e)),()=>{n&&clearTimeout(n)}},[r,l,t])}},93234:function(e,t,r){r.d(t,{H:()=>l});var n=r(61869),o=r(69144),i=r(63872),a=r(11576);function l(){let e=(0,n.cL)(),{supportEmail:t}=(0,a.useOptions)(),{displayConfig:r}=(0,a.useEnvironment)(),{supportEmail:l}=r;return o.useMemo(()=>t||l||(0,i.aR)({localPart:"support",frontendApi:e.frontendApi}),[e.frontendApi,t,l])}},93746:function(e,t,r){r.d(t,{x:()=>i});var n=r(69144),o=r(24676);let i=(e,t=0)=>{let r=(0,o.useRouter)(),i=()=>{let n=r.queryParams.tab,o=Object.entries(e).find(([e,t])=>t===n)?.[0];return o?parseInt(o,10):t},[a,l]=(0,n.useState)(i());return(0,n.useEffect)(()=>{let e=i();e!==a&&l(e)},[r.queryParams.tab]),{selectedTab:a,handleTabChange:t=>{l(t);let n=r.currentPath;r.navigate(n,{searchParams:new URLSearchParams({tab:e[t]||""})})}}}},87172:function(e,t,r){r.d(t,{o:()=>i});var n=r(75747),o=r(47342);let i=()=>{let{userSettings:e}=(0,n.O)(),{authenticatableOauthStrategies:t,web3Strategies:r,alternativePhoneCodeChannels:i}=(0,o.v)(),a=e.enabledFirstFactorIdentifiers.filter(e=>"passkey"!==e).length,l=t.length,s=r.length;return a+l+s+i.length}},34174:function(e,t,r){r.d(t,{Nn:()=>tR,gO:()=>eH,Q:()=>rg,GT:()=>ty,x8:()=>tt,qy:()=>rc,bA:()=>t_,lv:()=>t9,tc:()=>ti,I$:()=>tZ,uU:()=>e9,Nj:()=>eW,Yt:()=>tW,v3:()=>t1,ds:()=>t4,aB:()=>tc,cN:()=>tU,gq:()=>ru,hc:()=>eU,iU:()=>eG,Kh:()=>t5,LZ:()=>eF,fU:()=>e1,EK:()=>tn,mm:()=>ez,Y4:()=>eB,ET:()=>tG,eu:()=>tu,Ic:()=>eM,Jr:()=>eQ,kh:()=>tF,p8:()=>eD,n5:()=>rm,_M:()=>e5,jC:()=>e4,cp:()=>tY,nR:()=>rn,oX:()=>ri,ou:()=>tQ,TU:()=>e7,Qi:()=>tg,Fh:()=>tm,CK:()=>tl,v2:()=>tH,bR:()=>tx,ij:()=>tK,SV:()=>tC,uR:()=>t7,N6:()=>tP,LG:()=>tM,z6:()=>rt,IG:()=>tA,UW:()=>tb,xP:()=>tD,g4:()=>rl,TZ:()=>eY,W:()=>eK});var n,o,i,a,l,s,c,d,u,p,m,h,g,f,b,v,y,w,x,S,C,$,_,k,P,I,A,T,R,z,Z,B,D,E,F,L,M,O,U,j,W,N,H,V,K,X,Y,q,G,J,Q,ee,et,er,en,eo,ei,ea,el,es,ec,ed,eu,ep,em,eh,eg,ef,eb,ev,ey,ew,ex,eS,eC,e$,e_,ek,eP,eI,eA,eT=r(69144);function eR(){return(eR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let ez=e=>eT.createElement("svg",eR({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 24"},e),n||(n=eT.createElement("circle",{cx:18,cy:12,r:11.5,fillOpacity:.1,strokeOpacity:.4,stroke:"currentColor",strokeDasharray:"2 2"})),o||(o=eT.createElement("path",{d:"M18.75 7.75a.75.75 0 1 0-1.5 0v3.5h-3.5a.75.75 0 1 0 0 1.5h3.5v3.5a.75.75 0 1 0 1.5 0v-3.5h3.5a.75.75 0 1 0 0-1.5h-3.5v-3.5Z"})));function eZ(){return(eZ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let eB=e=>eT.createElement("svg",eZ({xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},e),i||(i=eT.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 12H4m6 6-6-6 6-6"}))),eD=e=>eT.createElement("svg",e,a||(a=eT.createElement("path",{fill:"currentColor",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"m7.25 5-3.5-2.25v4.5L7.25 5Z"})));function eE(){return(eE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let eF=e=>eT.createElement("svg",eE({xmlns:"http://www.w3.org/2000/svg",fill:"none",stroke:"currentColor",viewBox:"0 0 20 20"},e),l||(l=eT.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3.3 10h13.4m-5-5 5 5-5 5"})));function eL(){return(eL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let eM=e=>eT.createElement("svg",eL({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),s||(s=eT.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 7.5 7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"})));function eO(){return(eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let eU=e=>eT.createElement("svg",eO({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),c||(c=eT.createElement("path",{d:"M7 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"})),d||(d=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 2c-1.105 0-2 .895-2 2v8c0 1.105.895 2 2 2h8c1.105 0 2-.895 2-2V4c0-1.105-.895-2-2-2H4Zm3 9a3.002 3.002 0 0 0 2.906-2.25H12a.75.75 0 0 0 0-1.5H9.906A3.002 3.002 0 0 0 4 8c0 .941.438 1.785 1.117 2.336A2.985 2.985 0 0 0 7 11Z"})));function ej(){return(ej=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let eW=e=>eT.createElement("svg",ej({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 12"},e),u||(u=eT.createElement("path",{fill:"currentColor",d:"M2 0a2 2 0 0 0-2 2v1h16V2a2 2 0 0 0-2-2H2Z"})),p||(p=eT.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M16 5H0v5c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V5ZM2 9c0-.6.4-1 1-1h1a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm5-1a1 1 0 1 0 0 2h1a1 1 0 1 0 0-2H7Z",clipRule:"evenodd"})));function eN(){return(eN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let eH=e=>eT.createElement("svg",eN({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},e),m||(m=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.996 16.178A13.439 13.439 0 0 0 10.5 24c0 7.456 6.044 13.5 13.5 13.5 2.916 0 5.615-.924 7.822-2.496L12.996 16.178Zm3.182-3.182 18.826 18.826A13.439 13.439 0 0 0 37.5 24c0-7.456-6.044-13.5-13.5-13.5-2.916 0-5.615.924-7.822 2.496Zm20.55 23.731A17.944 17.944 0 0 0 42 24c0-9.941-8.059-18-18-18S6 14.059 6 24s8.059 18 18 18c4.97 0 9.468-2.014 12.725-5.27l.003-.002v-.001Z",fill:"currentColor"})));function eV(){return(eV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let eK=e=>eT.createElement("svg",eV({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),h||(h=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.55 4.24a.75.75 0 0 1-.04 1.06L6.604 7.998l2.655 2.45a.744.744 0 0 1 .021.022l.25.25a.75.75 0 1 1-1.06 1.06l-.24-.24-3.239-2.989a.75.75 0 0 1-.001-1.1l3.5-3.25a.75.75 0 0 1 1.06.039Z"})));function eX(){return(eX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let eY=e=>eT.createElement("svg",eX({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),g||(g=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.45 11.76a.75.75 0 0 1 .04-1.06l2.906-2.698-2.655-2.45a.756.756 0 0 1-.021-.022l-.25-.25a.75.75 0 0 1 1.06-1.06l.24.24 3.239 2.989a.75.75 0 0 1 .001 1.1l-3.5 3.25a.75.75 0 0 1-1.06-.039Z"})));function eq(){return(eq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let eG=e=>eT.createElement("svg",eq({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),f||(f=eT.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.4 4v6.4a1.6 1.6 0 0 1-1.6 1.6h-4l-4 3.2V12H3.2a1.6 1.6 0 0 1-1.6-1.6V4a1.6 1.6 0 0 1 1.6-1.6h9.6A1.6 1.6 0 0 1 14.4 4ZM5.6 6.4H4V8h1.6V6.4Zm1.6 0h1.6V8H7.2V6.4Zm4.8 0h-1.6V8H12V6.4Z",clipRule:"evenodd"})));function eJ(){return(eJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let eQ=e=>eT.createElement("svg",eJ({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10"},e),b||(b=eT.createElement("path",{d:"m1 6 3 3 5-8",stroke:"currentColor",strokeWidth:1.25,strokeLinecap:"round",strokeLinejoin:"round"})));function e0(){return(e0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let e1=e=>eT.createElement("svg",e0({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 20 20"},e),v||(v=eT.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.7-9.3a1 1 0 0 0-1.4-1.4L9 10.58l-1.3-1.3a1 1 0 0 0-1.4 1.42l2 2a1 1 0 0 0 1.4 0l4-4Z",clipRule:"evenodd"})));function e2(){return(e2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let e5=e=>eT.createElement("svg",e2({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),y||(y=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.24 6.2a.75.75 0 0 1 1.06.04l2.698 2.906 2.45-2.655a.744.744 0 0 1 .022-.021l.25-.25a.75.75 0 1 1 1.06 1.06l-.24.24-2.989 3.239a.75.75 0 0 1-1.1.001L4.2 7.26A.75.75 0 0 1 4.24 6.2Z"})));function e6(){return(e6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let e4=e=>eT.createElement("svg",e6({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),w||(w=eT.createElement("path",{d:"M5.53 9.22a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l3-3a.75.75 0 1 0-1.06-1.06L8 11.69 5.53 9.22ZM5.53 6.78a.75.75 0 0 1-1.06-1.06l3-3a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1-1.06 1.06L8 4.31 5.53 6.78Z"})));function e3(){return(e3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let e7=e=>eT.createElement("svg",e3({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 12 16"},e),x||(x=eT.createElement("path",{fill:"currentColor",d:"M4 1c0-.6.4-1 1-1h2a1 1 0 0 1 0 2H5a1 1 0 0 1-1-1Z"})),S||(S=eT.createElement("path",{fill:"currentColor",d:"M2 1a2 2 0 0 0-2 2v11c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2 3 3 0 0 1-3 3H5a3 3 0 0 1-3-3Z"})));function e8(){return(e8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let e9=e=>eT.createElement("svg",e8({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 12"},e),C||(C=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.129.33A.75.75 0 0 1 3.75 0h4.5a.75.75 0 0 1 .707.5h.293A2.75 2.75 0 0 1 12 3.25v6A2.75 2.75 0 0 1 9.25 12h-6.5A2.75 2.75 0 0 1 0 9.25v-6A2.75 2.75 0 0 1 2.75.5h.293a.75.75 0 0 1 .086-.17ZM3.442 2H2.75c-.69 0-1.25.56-1.25 1.25v6c0 .69.56 1.25 1.25 1.25h6.5c.69 0 1.25-.56 1.25-1.25v-6C10.5 2.56 9.94 2 9.25 2h-.692l-.147.368a2.596 2.596 0 0 1-4.822 0L3.442 2Zm3.7-.5H4.858l.124.31a1.096 1.096 0 0 0 2.036 0l.124-.31Z",fill:"currentColor"})));function te(){return(te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tt=e=>eT.createElement("svg",te({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 10"},e),$||($=eT.createElement("path",{d:"M1.791.722a.756.756 0 0 0-1.07 1.07L3.932 5 .72 8.209a.756.756 0 1 0 1.07 1.07L5 6.068l3.209 3.21a.756.756 0 0 0 1.07-1.07L6.068 5l3.21-3.209a.756.756 0 1 0-1.07-1.07L5 3.932 1.791.72Z",fill:"currentColor"})));function tr(){return(tr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tn=e=>eT.createElement("svg",tr({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 12 8"},e),_||(_=eT.createElement("path",{d:"M7.22 6.47a.75.75 0 0 0 1.06 1.06l3-3a.75.75 0 0 0 0-1.06l-3-3a.75.75 0 0 0-1.06 1.06L9.69 4 7.22 6.47ZM4.78 6.47a.75.75 0 0 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 0 1 1.06 1.06L2.31 4l2.47 2.47Z",fill:"currentColor"})));function to(){return(to=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let ti=e=>eT.createElement("svg",to({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),k||(k=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.559 2.536A.667.667 0 0 1 7.212 2h1.574a.667.667 0 0 1 .653.536l.22 1.101c.466.178.9.429 1.287.744l1.065-.36a.667.667 0 0 1 .79.298l.787 1.362a.666.666 0 0 1-.136.834l-.845.742c.079.492.079.994 0 1.486l.845.742a.666.666 0 0 1 .137.833l-.787 1.363a.667.667 0 0 1-.791.298l-1.065-.36c-.386.315-.82.566-1.286.744l-.22 1.101a.666.666 0 0 1-.654.536H7.212a.666.666 0 0 1-.653-.536l-.22-1.101a4.664 4.664 0 0 1-1.287-.744l-1.065.36a.666.666 0 0 1-.79-.298L2.41 10.32a.667.667 0 0 1 .136-.834l.845-.743a4.7 4.7 0 0 1 0-1.485l-.845-.742a.667.667 0 0 1-.137-.833l.787-1.363a.667.667 0 0 1 .791-.298l1.065.36c.387-.315.821-.566 1.287-.744l.22-1.101ZM7.999 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z"})));function ta(){return(ta=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tl=e=>eT.createElement("svg",ta({viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),P||(P=eT.createElement("path",{d:"M7.94 10.23v2.078a.687.687 0 0 1-.682.692h-5.91a.676.676 0 0 1-.482-.203.698.698 0 0 1-.2-.49V4.463c0-.383.306-.693.682-.693h1.137c.304 0 .609.026.909.077m4.545 6.385h2.046c.376 0 .682-.31.682-.693v-3c0-2.744-1.966-5.022-4.546-5.462A5.41 5.41 0 0 0 5.212 1H4.076a.687.687 0 0 0-.682.692v2.154m4.545 6.385H4.076a.677.677 0 0 1-.482-.203.698.698 0 0 1-.2-.49V3.846m7.273 4.077V6.77c0-.55-.216-1.079-.6-1.468a2.03 2.03 0 0 0-1.446-.609h-.909a.677.677 0 0 1-.482-.202.698.698 0 0 1-.2-.49v-.923a2.105 2.105 0 0 0-.599-1.469A2.043 2.043 0 0 0 4.985 1h-.682",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})));function ts(){return(ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tc=e=>eT.createElement("svg",ts({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16"},e),I||(I=eT.createElement("path",{d:"M1.5 5a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2h-13Z"})),A||(A=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.5 6.5h13V11a2 2 0 0 1-2 2h-9a2 2 0 0 1-2-2V6.5ZM3.7 9a.2.2 0 0 0-.2.2v1.6c0 .11.09.2.2.2h2.6a.2.2 0 0 0 .2-.2V9.2a.2.2 0 0 0-.2-.2H3.7Z"})));function td(){return(td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tu=e=>eT.createElement("svg",td({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},e),T||(T=eT.createElement("path",{d:"M2.91 1.452c0-.58.077-.83.23-1.079C3.33.166 3.6 0 4.212 0h23.617c.536 0 .765.124.957.332.191.207.268.498.268 1.12v17.013c0 .58-.077.83-.192.996a1.06 1.06 0 0 1-.37.338.968.968 0 0 1-.472.118H3.905c-.306 0-.612-.125-.765-.415-.153-.166-.23-.415-.23-1.037V1.452Z",fill:"#000"})),R||(R=eT.createElement("path",{d:"M3.445 19.334h25.072c.115 0 .23-.083.306-.166.077-.083.077-.207.077-.58V1.45c0-.498-.038-.83-.23-.995-.191-.208-.383-.29-.842-.29H4.211c-.498 0-.766.124-.957.331-.153.166-.192.415-.192.954v17.137c0 .374 0 .498.077.581.077.083.191.166.306.166Z",fill:"#575757"})),z||(z=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.999.912a.109.109 0 0 0 .117.006.119.119 0 0 0 .045-.046.132.132 0 0 0 0-.128.119.119 0 0 0-.045-.046.108.108 0 0 0-.117.006.109.109 0 0 0-.118-.006.12.12 0 0 0-.044.046.132.132 0 0 0 0 .128.12.12 0 0 0 .044.046.108.108 0 0 0 .118-.006Z",fill:"#000",stroke:"#000",strokeWidth:.3})),Z||(Z=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 19.5v-.207h32v.207s-.727.25-1.531.332c-.536.042-1.416.166-3.407.166H5.091c-1.723 0-3.177-.124-3.828-.207C.613 19.708 0 19.5 0 19.5Z",fill:"#444"})),B||(B=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.941 1.328h24.115v16.349H3.941V1.328Z",fill:"#000"})));function tp(){return(tp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tm=e=>eT.createElement("svg",tp({xmlns:"http://www.w3.org/2000/svg",viewBox:"670.6 72.3 84 76"},e),D||(D=eT.createElement("path",{fill:"var(--cl-chassis-screen, #6D6D6D)",fillRule:"evenodd",d:"M712.5 107.2v-.6h.1l.2.1v7.2a.1.1 0 0 1-.2.2l-.1-.3v-6.6Z",clipRule:"evenodd"})),E||(E=eT.createElement("path",{fill:"var(--cl-chassis-back, #6D6D6D)",fillRule:"evenodd",d:"M697.4 100v-.7h-.2a.1.1 0 0 0-.1.2v4.4s0 .2.2.2V100Z",clipRule:"evenodd"})),F||(F=eT.createElement("path",{fill:"var(--cl-chassis-screen, #6D6D6D)",fillRule:"evenodd",d:"M697.4 94v-.7h-.2a.1.1 0 0 0-.1.2v4.4s0 .2.2.2V94Z",clipRule:"evenodd"})),L||(L=eT.createElement("path",{fill:"var(--cl-chassis-back, #363636)",d:"M722.7 78.6c3.6 0 5.5 2.1 5.5 5.7v52.4c0 3.4-2.3 5.3-5.8 5.3H703c-3.8 0-5.8-2.4-5.7-5.4V84.3c0-3.6 2-5.7 5.6-5.7h19.8Z"})),M||(M=eT.createElement("path",{fill:"var(--cl-chassis-screen, #363636)",stroke:"var(--cl-chassis-bottom, black)",strokeWidth:.5,d:"M722.3 79.2c3.7 0 5.4 1.8 5.4 5.4v52c0 3.2-2.2 5-5.5 5h-19c-3.2 0-5.4-2-5.4-5v-52c0-3.6 1.8-5.4 5.5-5.4h19Z"})),O||(O=eT.createElement("path",{fill:"var(--cl-screen, black)",fillRule:"evenodd",d:"M704.9 80.3c.2 0 .3.1.3.4v.2c0 .9.8 1.7 1.6 1.7h11.8c1 0 1.7-.8 1.7-1.7v-.2c0-.3.1-.4.3-.4h3c1.6 0 3 1.7 3 3.3V137c0 1.7-1.5 3.3-3.4 3.3h-21c-2.1 0-3.3-1.3-3.3-3.2V83.6c0-1.6 1.3-3.3 2.9-3.3h3Z",clipRule:"evenodd"})),U||(U=eT.createElement("path",{fillRule:"evenodd",d:"M715.3 81.2a.3.3 0 0 0-.2-.4.3.3 0 1 0-.2.6.3.3 0 0 0 .4-.2Zm-5.1-.2c0 .2 0 .3.2.3h2.9a.3.3 0 0 0 .2-.3.3.3 0 0 0-.2-.2h-2.9a.3.3 0 0 0-.2.2Z",clipRule:"evenodd"})));function th(){return(th=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tg=e=>eT.createElement("svg",th({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),j||(j=eT.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16ZM5 7H3v2h2V7Zm8 0h-2v2h2V7ZM7 7h2v2H7V7Z",clipRule:"evenodd"})));function tf(){return(tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tb=e=>eT.createElement("svg",tf({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 14 14"},e),W||(W=eT.createElement("path",{d:"M1 10v1.5A1.5 1.5 0 0 0 2.5 13h9a1.5 1.5 0 0 0 1.5-1.5V10m-3-3-3 3m0 0L4 7m3 3V1",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})));function tv(){return(tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let ty=e=>eT.createElement("svg",tv({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),N||(N=eT.createElement("path",{d:"M2.75 2.75A1.75 1.75 0 0 0 1 4.5v1.016l6.51 3.693a1.094 1.094 0 0 0 .98 0L15 5.517V4.5a1.75 1.75 0 0 0-1.75-1.75H2.75Z",fill:"#42434D"})),H||(H=eT.createElement("path",{d:"m15 6.984-5.924 3.4a2.406 2.406 0 0 1-2.152 0L1 6.983V11.5a1.75 1.75 0 0 0 1.75 1.75h10.5A1.75 1.75 0 0 0 15 11.5V6.984Z",fill:"#42434D"})));function tw(){return(tw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tx=e=>eT.createElement("svg",tw({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},e),V||(V=eT.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.4 7A6.4 6.4 0 1 1 .6 7a6.4 6.4 0 0 1 12.8 0Zm-5.6 3.2a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0ZM7 3a.8.8 0 0 0-.8.8V7a.8.8 0 0 0 1.6 0V3.8A.8.8 0 0 0 7 3Z",clipRule:"evenodd"})));function tS(){return(tS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tC=e=>eT.createElement("svg",tS({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),K||(K=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.866 3.012a.988.988 0 0 0-1.732 0L2.13 12.004c-.372.67.106 1.496.866 1.496h10.01c.76 0 1.238-.827.866-1.496L8.866 3.012Zm-1.66 5.74a.798.798 0 0 0 1.593 0l.14-2.254a.94.94 0 1 0-1.875 0l.141 2.253Zm.046 2.498a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"})));function t$(){return(t$=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let t_=e=>eT.createElement("svg",t$({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),X||(X=eT.createElement("path",{d:"M8 9.607c.421 0 .825-.17 1.123-.47a1.617 1.617 0 0 0 0-2.273 1.578 1.578 0 0 0-2.246 0 1.617 1.617 0 0 0 0 2.272c.298.302.702.471 1.123.471Z"})),Y||(Y=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.07 8.38a1.073 1.073 0 0 1 0-.763 6.42 6.42 0 0 1 2.334-2.99A6.302 6.302 0 0 1 8 3.5c2.704 0 5.014 1.71 5.93 4.12.094.246.093.518 0 .763a6.418 6.418 0 0 1-2.334 2.99A6.301 6.301 0 0 1 8 12.5c-2.704 0-5.013-1.71-5.93-4.12ZM10.54 8c0 .682-.267 1.336-.743 1.818A2.526 2.526 0 0 1 8 10.571c-.674 0-1.32-.27-1.796-.753A2.587 2.587 0 0 1 5.459 8c0-.682.268-1.336.745-1.818A2.525 2.525 0 0 1 8 5.429c.674 0 1.32.27 1.797.753.476.482.744 1.136.744 1.818Z"})));function tk(){return(tk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tP=e=>eT.createElement("svg",tk({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),q||(q=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.732 3.126a.48.48 0 0 0-.662.011.465.465 0 0 0-.012.651l9.211 9.063a.477.477 0 0 0 .527.115.479.479 0 0 0 .263-.26.46.46 0 0 0-.117-.518l-1.108-1.09A6.278 6.278 0 0 0 13.93 8.36a1.016 1.016 0 0 0 0-.74 6.27 6.27 0 0 0-2.333-2.909A6.428 6.428 0 0 0 8 3.613a6.407 6.407 0 0 0-3.014.747L3.732 3.126Zm2.84 2.794.694.682a1.61 1.61 0 0 1 1.858.28A1.54 1.54 0 0 1 9.41 8.71l.693.683a2.47 2.47 0 0 0-.304-3.174 2.573 2.573 0 0 0-3.226-.3Z"})),G||(G=eT.createElement("path",{d:"m8.476 10.445 1.602 1.576a6.437 6.437 0 0 1-2.077.342c-2.705 0-5.014-1.662-5.931-4.006a1.016 1.016 0 0 1 0-.741c.31-.79.78-1.51 1.382-2.115l2.052 2.02c-.078.4-.054.813.067 1.203.122.39.34.744.632 1.033a2.58 2.58 0 0 0 2.272.688Z"})));function tI(){return(tI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tA=e=>eT.createElement("svg",tI({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 48 48"},e),J||(J=eT.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:3.6,d:"M11.127 39.944c.442-.987.847-1.989 1.218-3.01M30.3 43.801c.723-1.89 1.197-4.02 1.725-5.962M16.165 5.997a20.528 20.528 0 0 1 9.432-1.77 20.308 20.308 0 0 1 9.176 2.687c2.764 1.602 5.042 3.83 6.622 6.472C42.974 16.03 43.802 19 43.8 22.022c0 3.94-.335 7.807-.98 11.58l-2.02 10.2M4.2 30.985a35.346 35.346 0 0 0 1.15-8.963c0-3.875 1.336-7.463 3.605-10.386m15.62 10.383c.008 7.484-1.62 14.893-4.775 21.782m-5.056-17.4c.144-1.442.218-2.902.218-4.38 0-2.362 1.013-4.628 2.815-6.299 1.803-1.67 4.248-2.609 6.797-2.609 2.55 0 4.995.939 6.797 2.61 1.803 1.67 2.816 3.936 2.816 6.298 0 1.084-.028 2.161-.087 3.232l-.687 4.186"})));function tT(){return(tT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tR=e=>eT.createElement("svg",tT({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),Q||(Q=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.204 3.01A2 2 0 0 1 14 5v6a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.796-1.99L4 3h8l.204.01ZM4 7a.5.5 0 0 0-.5.5V8h1.396c.672 0 1.28.396 1.552 1.009.598 1.344 2.506 1.344 3.104 0A1.699 1.699 0 0 1 11.104 8H12.5v-.5A.5.5 0 0 0 12 7H4Zm0-2.5a.5.5 0 0 0-.5.5v.564c.096-.024.195-.043.296-.053L4 5.5h8l.204.01c.101.011.2.03.296.054V5a.5.5 0 0 0-.5-.5H4Z",fill:"currentColor"})));function tz(){return(tz=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tZ=e=>eT.createElement("svg",tz({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),ee||(ee=eT.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M14.4 8A6.4 6.4 0 1 1 1.6 8a6.4 6.4 0 0 1 12.8 0ZM8.8 4.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0ZM7.2 7.2a.8.8 0 1 0 0 1.6v2.4a.8.8 0 0 0 .8.8h.8a.8.8 0 0 0 0-1.6V8a.8.8 0 0 0-.8-.8h-.8Z",clipRule:"evenodd"})));function tB(){return(tB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tD=e=>eT.createElement("svg",tB({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),et||(et=eT.createElement("path",{fill:"currentColor",d:"M10.068 3.668a1.6 1.6 0 0 1 2.263 2.263l-2.4 2.4a1.6 1.6 0 0 1-2.263 0 .8.8 0 1 0-1.131 1.131 3.2 3.2 0 0 0 4.525 0l2.4-2.4a3.2 3.2 0 1 0-4.525-4.525l-1.2 1.2a.8.8 0 1 0 1.131 1.131l1.2-1.2Z"})),er||(er=eT.createElement("path",{fill:"currentColor",d:"M6.068 7.668a1.6 1.6 0 0 1 2.263 0 .8.8 0 1 0 1.131-1.131 3.2 3.2 0 0 0-4.525 0l-2.4 2.4a3.2 3.2 0 0 0 4.525 4.525l1.2-1.2a.8.8 0 0 0-1.131-1.131l-1.2 1.2a1.6 1.6 0 0 1-2.263-2.263l2.4-2.4Z"})));function tE(){return(tE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tF=e=>eT.createElement("svg",tE({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),en||(en=eT.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M4 7.2V5.6a4 4 0 1 1 8 0v1.6a1.6 1.6 0 0 1 1.6 1.6v4a1.6 1.6 0 0 1-1.6 1.6H4a1.6 1.6 0 0 1-1.6-1.6v-4A1.6 1.6 0 0 1 4 7.2Zm6.4-1.6v1.6H5.6V5.6a2.4 2.4 0 0 1 4.8 0Z",clipRule:"evenodd"})));function tL(){return(tL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tM=e=>eT.createElement("svg",tL({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),eo||(eo=eT.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M8 3.5c-.2 0-.398.013-.59.038a.75.75 0 0 1-.196-1.487 6.05 6.05 0 0 1 1.572 0 .75.75 0 0 1-.195 1.487A4.55 4.55 0 0 0 8 3.5Zm-2.385-.238a.75.75 0 0 1-.186 1.044c-.287.2-.55.434-.783.694a.75.75 0 1 1-1.118-1 6.03 6.03 0 0 1 1.043-.924.75.75 0 0 1 1.044.186Zm4.77 0a.75.75 0 0 1 1.044-.186c.383.267.733.577 1.043.924a.75.75 0 1 1-1.118 1 4.528 4.528 0 0 0-.783-.694.75.75 0 0 1-.186-1.044ZM8 6.5a1 1 0 0 0-1 1V8h2v-.5a1 1 0 0 0-1-1ZM10.5 8v-.5a2.5 2.5 0 0 0-5 0V8h-.75a.75.75 0 0 0-.75.75v3.5c0 .966.783 1.75 1.75 1.75h4.5A1.75 1.75 0 0 0 12 12.25v-3.5a.75.75 0 0 0-.75-.75h-.75Zm0 1.5h-5v2.75c0 .138.112.25.25.25h4.5a.25.25 0 0 0 .25-.25V9.5ZM3.181 5.781a.75.75 0 0 1 .505.933 4.477 4.477 0 0 0-.166.857.75.75 0 1 1-1.493-.142c.037-.393.112-.775.222-1.143a.75.75 0 0 1 .932-.505Zm9.638 0a.75.75 0 0 1 .932.505c.11.368.185.75.222 1.143a.75.75 0 0 1-1.493.142 4.478 4.478 0 0 0-.166-.857.75.75 0 0 1 .505-.933Z",clipRule:"evenodd"})));function tO(){return(tO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tU=e=>eT.createElement("svg",tO({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 14"},e),ei||(ei=eT.createElement("ellipse",{cx:7.889,cy:7,rx:2.187,ry:2.188,fill:"currentColor"})),ea||(ea=eT.createElement("path",{d:"M11.83 12.18a.415.415 0 0 1-.05.64A6.967 6.967 0 0 1 7.888 14a6.967 6.967 0 0 1-3.891-1.18.415.415 0 0 1-.051-.64l1.598-1.6a.473.473 0 0 1 .55-.074 3.92 3.92 0 0 0 1.794.431 3.92 3.92 0 0 0 1.792-.43.473.473 0 0 1 .551.074l1.599 1.598Z",fill:"currentColor"})),el||(el=eT.createElement("path",{opacity:.5,d:"M11.78 1.18a.415.415 0 0 1 .05.64l-1.598 1.6a.473.473 0 0 1-.55.073 3.937 3.937 0 0 0-5.3 5.3.473.473 0 0 1-.074.55L2.71 10.942a.415.415 0 0 1-.641-.051 7 7 0 0 1 9.71-9.71Z",fill:"currentColor"})),es||(es=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23.748 1.422c0-.06.05-.11.11-.11h1.64c.06 0 .11.05.11.11v11.156a.11.11 0 0 1-.11.11h-1.64a.11.11 0 0 1-.11-.11V1.422Zm-2.315 8.9a.112.112 0 0 0-.15.004 2.88 2.88 0 0 1-.884.569c-.36.148-.747.222-1.137.219-.33.01-.658-.047-.965-.166a2.422 2.422 0 0 1-.817-.527c-.424-.432-.668-1.05-.668-1.785 0-1.473.98-2.48 2.45-2.48.394-.005.785.074 1.144.234.325.144.617.35.86.607.04.044.11.049.155.01l1.108-.959a.107.107 0 0 0 .01-.152c-.832-.93-2.138-1.412-3.379-1.412-2.499 0-4.27 1.686-4.27 4.166 0 1.227.44 2.26 1.182 2.99.743.728 1.801 1.157 3.022 1.157 1.53 0 2.763-.587 3.485-1.34a.107.107 0 0 0-.009-.155l-1.137-.98Zm13.212-1.14a.108.108 0 0 1-.107.096H28.79a.106.106 0 0 0-.104.132c.286 1.06 1.138 1.701 2.302 1.701a2.59 2.59 0 0 0 1.136-.236 2.55 2.55 0 0 0 .862-.645.08.08 0 0 1 .112-.01l1.155 1.006c.044.039.05.105.013.15-.698.823-1.828 1.42-3.38 1.42-2.386 0-4.185-1.651-4.185-4.162 0-1.232.424-2.264 1.13-2.994.373-.375.82-.67 1.314-.87a3.968 3.968 0 0 1 1.557-.285c2.419 0 3.983 1.701 3.983 4.05a6.737 6.737 0 0 1-.04.647Zm-5.924-1.524a.104.104 0 0 0 .103.133h3.821c.07 0 .123-.066.103-.134-.26-.901-.921-1.503-1.947-1.503a2.13 2.13 0 0 0-.88.16 2.1 2.1 0 0 0-.733.507 2.242 2.242 0 0 0-.467.837Zm11.651-3.172c.061-.001.11.048.11.109v1.837a.11.11 0 0 1-.117.109 7.17 7.17 0 0 0-.455-.024c-1.43 0-2.27 1.007-2.27 2.329v3.732a.11.11 0 0 1-.11.11h-1.64a.11.11 0 0 1-.11-.11v-7.87c0-.06.049-.109.11-.109h1.64c.06 0 .11.05.11.11v1.104a.011.011 0 0 0 .02.007c.64-.857 1.587-1.333 2.587-1.333l.125-.001Zm4.444 4.81a.035.035 0 0 1 .056.006l2.075 3.334a.11.11 0 0 0 .093.052h1.865a.11.11 0 0 0 .093-.168L46.152 7.93a.11.11 0 0 1 .012-.131l2.742-3.026a.11.11 0 0 0-.081-.183h-1.946a.11.11 0 0 0-.08.036l-3.173 3.458a.11.11 0 0 1-.19-.074V1.422a.11.11 0 0 0-.11-.11h-1.64a.11.11 0 0 0-.11.11v11.156c0 .06.05.11.11.11h1.64a.11.11 0 0 0 .11-.11v-1.755a.11.11 0 0 1 .03-.075l1.35-1.452Z",fill:"currentColor"})));function tj(){return(tj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tW=e=>eT.createElement("svg",tj({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 14 14"},e),ec||(ec=eT.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.4 2.2a3.2 3.2 0 1 0 0 6.4 3.2 3.2 0 0 0 0-6.4ZM.6 5.4a4.8 4.8 0 1 1 8.7 2.8l3.9 3.8a.8.8 0 0 1-1.2 1.2L8.2 9.3A4.8 4.8 0 0 1 .6 5.4Z",clipRule:"evenodd"})));function tN(){return(tN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tH=e=>eT.createElement("svg",tN({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),ed||(ed=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 3.75A.75.75 0 0 1 2.75 3h10.5a.75.75 0 1 1 0 1.5H2.75A.75.75 0 0 1 2 3.75ZM2 8a.75.75 0 0 1 .75-.75h10.5a.75.75 0 1 1 0 1.5H2.75A.75.75 0 0 1 2 8Zm0 4.25a.75.75 0 0 1 .75-.75h10.5a.75.75 0 1 1 0 1.5H2.75a.75.75 0 0 1-.75-.75Z"})));function tV(){return(tV=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tK=e=>eT.createElement("svg",tV({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),eu||(eu=eT.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M5.6 1.6A1.6 1.6 0 0 0 4 3.2v9.6a1.6 1.6 0 0 0 1.6 1.6h4.8a1.6 1.6 0 0 0 1.6-1.6V3.2a1.6 1.6 0 0 0-1.6-1.6H5.6ZM8 12.8a.8.8 0 1 0 0-1.6.8.8 0 0 0 0 1.6Z",clipRule:"evenodd"})));function tX(){return(tX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tY=e=>eT.createElement("svg",tX({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),ep||(ep=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.875 13.688V2.312h-.219a.656.656 0 1 1 0-1.312h10.688a.656.656 0 0 1 0 1.313h-.219v11.374h.219a.656.656 0 1 1 0 1.313h-2.942a.656.656 0 0 1-.656-.656v-2.188a.656.656 0 0 0-.656-.656H6.902a.656.656 0 0 0-.656.656v2.188A.656.656 0 0 1 5.59 15H2.656a.656.656 0 1 1 0-1.313h.219Zm2.496-9.626a.438.438 0 0 1 .438-.437h.875a.437.437 0 0 1 .437.438v.875a.437.437 0 0 1-.437.437h-.875a.437.437 0 0 1-.438-.438v-.875Zm.438 3.063a.437.437 0 0 0-.438.438v.875a.438.438 0 0 0 .438.437h.875a.437.437 0 0 0 .437-.438v-.874a.437.437 0 0 0-.437-.438h-.875ZM8.87 4.062a.438.438 0 0 1 .438-.437h.875a.438.438 0 0 1 .437.438v.875a.438.438 0 0 1-.437.437h-.875a.437.437 0 0 1-.438-.438v-.875Zm.438 3.063a.437.437 0 0 0-.438.438v.875a.438.438 0 0 0 .438.437h.875a.438.438 0 0 0 .437-.438v-.874a.438.438 0 0 0-.437-.438h-.875Z"})));function tq(){return(tq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tG=e=>eT.createElement("svg",tq({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 16"},e),em||(em=eT.createElement("path",{d:"M13.598 5.108c-.418.419-.628.628-.847.669-.22.04-.364-.104-.652-.392l-.984-.984c-.288-.288-.432-.432-.392-.652.04-.22.25-.428.669-.847l.226-.227c.419-.418.628-.628.848-.668.22-.04.364.103.652.392l.983.983c.289.288.433.432.392.652-.04.22-.25.429-.668.848l-.227.226ZM4.66 13.688l-1.206.223c-.5.092-.75.138-.876.011-.127-.126-.08-.376.011-.876l.223-1.206c.04-.217.06-.325.118-.43.058-.105.15-.196.33-.377l5.554-5.554c.419-.418.628-.628.848-.668.22-.04.364.103.652.392l.983.983c.289.288.433.432.392.652-.04.22-.25.429-.668.848l-5.554 5.553c-.181.182-.272.273-.377.331-.105.058-.213.078-.43.118ZM9.25 12.5a.75.75 0 0 0 0 1.5h4.5a.75.75 0 0 0 0-1.5h-4.5Z",fill:"currentColor"})));function tJ(){return(tJ=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let tQ=e=>eT.createElement("svg",tJ({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),eh||(eh=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2 3.75C2 2.784 2.784 2 3.75 2h5.5c.698 0 1.3.409 1.582 1h1.418c.966 0 1.75.784 1.75 1.75v6.5A1.75 1.75 0 0 1 12.25 13h-1.418c-.281.591-.884 1-1.582 1h-5.5A1.75 1.75 0 0 1 2 12.25v-8.5Zm9 7.75h1.25a.25.25 0 0 0 .25-.25v-6.5a.25.25 0 0 0-.25-.25H11v7Zm-7.25-8a.25.25 0 0 0-.25.25v8.5c0 .138.112.25.25.25h5.5a.25.25 0 0 0 .25-.25v-8.5a.25.25 0 0 0-.25-.25h-5.5ZM5 7.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5A.75.75 0 0 1 5 7.25Zm0 3a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75Z",fill:"currentColor"})));function t0(){return(t0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let t1=e=>eT.createElement("svg",t0({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),eg||(eg=eT.createElement("path",{d:"M8.75 3.75a.75.75 0 0 0-1.5 0v3.5h-3.5a.75.75 0 1 0 0 1.5h3.5v3.5a.75.75 0 0 0 1.5 0v-3.5h3.5a.75.75 0 0 0 0-1.5h-3.5v-3.5Z"})));function t2(){return(t2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let t5=e=>eT.createElement("svg",t2({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 13 14"},e),ef||(ef=eT.createElement("path",{d:"M3.107 8.126c-.147.018-.294.038-.44.059m.44-.06c2.142-.27 4.31-.27 6.453 0m-6.453 0-.233 2.567M9.56 8.126c.147.018.293.038.44.059m-.44-.06.232 2.567.14 1.553a.697.697 0 0 1-.407.696.684.684 0 0 1-.277.059H3.419a.69.69 0 0 1-.684-.755l.14-1.553m0 0h-.667a1.37 1.37 0 0 1-.972-.405 1.39 1.39 0 0 1-.403-.98V5.435c0-.665.47-1.24 1.123-1.338.389-.059.778-.11 1.169-.152m6.666 6.748h.667a1.367 1.367 0 0 0 .972-.405 1.386 1.386 0 0 0 .403-.98V5.435c0-.665-.469-1.24-1.122-1.338-.389-.059-.779-.11-1.17-.152m0 0a29.456 29.456 0 0 0-6.416 0m6.417 0V1.692A.69.69 0 0 0 8.854 1H3.813a.69.69 0 0 0-.688.692v2.252M10 6.077h.005v.005H10v-.005Zm-1.833 0h.005v.005h-.005v-.005Z",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})));function t6(){return(t6=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let t4=e=>eT.createElement("svg",t6({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),eb||(eb=eT.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M6 7.6v-.8a2 2 0 0 1 4 0v.8a.8.8 0 0 1 .8.8v2a.8.8 0 0 1-.8.8H6a.8.8 0 0 1-.8-.8v-2a.8.8 0 0 1 .8-.8Zm3.2-.8v.8H6.8v-.8a1.2 1.2 0 0 1 2.4 0Z",clipRule:"evenodd"})),ev||(ev=eT.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M13.07 2.9a7.2 7.2 0 1 0 .02 10.19s.42-.47 0-.89-.88 0-.88 0a5.95 5.95 0 1 1-.02-8.42l-1.04 1.04c-.25.24-.16.44.18.44h2.5c.63 0 .63 0 .63-.63v-2.5c0-.34-.2-.43-.44-.18l-.95.94Z",clipRule:"evenodd"})));function t3(){return(t3=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let t7=e=>eT.createElement("svg",t3({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 16 16"},e),ey||(ey=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 3.5a4.502 4.502 0 0 0-4.418 3.642.75.75 0 1 1-1.473-.284A6.002 6.002 0 0 1 8 2c1.72 0 3.204.956 4.2 1.81.105.09.205.178.3.266V2.75a.75.75 0 0 1 1.5 0v3.259a.75.75 0 0 1-.75.75H9.991a.75.75 0 1 1 0-1.5h1.577a9.62 9.62 0 0 0-.344-.31C10.32 4.173 9.18 3.5 8 3.5Zm5.392 4.764a.75.75 0 0 1 .594.878A6.002 6.002 0 0 1 8.096 14c-1.72 0-3.205-.956-4.201-1.81-.104-.09-.204-.178-.3-.266v1.326a.75.75 0 0 1-1.5 0V9.991a.75.75 0 0 1 .75-.75h3.259a.75.75 0 0 1 0 1.5H4.527c.108.103.223.207.344.31.904.776 2.044 1.449 3.224 1.449a4.502 4.502 0 0 0 4.419-3.642.75.75 0 0 1 .878-.594Z",fill:"currentColor"})));function t8(){return(t8=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let t9=e=>eT.createElement("svg",t8({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),ew||(ew=eT.createElement("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M2.6 2.604A2.045 2.045 0 0 1 4.052 2h3.417c.544 0 1.066.217 1.45.604.385.387.601.911.601 1.458v.69c0 .413-.334.75-.746.75a.748.748 0 0 1-.745-.75v-.69a.564.564 0 0 0-.56-.562H4.051a.558.558 0 0 0-.56.563v7.875a.564.564 0 0 0 .56.562h3.417a.558.558 0 0 0 .56-.563v-.671c0-.415.333-.75.745-.75s.746.335.746.75v.671c0 .548-.216 1.072-.6 1.459a2.045 2.045 0 0 1-1.45.604H4.05a2.045 2.045 0 0 1-1.45-.604A2.068 2.068 0 0 1 2 11.937V4.064c0-.548.216-1.072.6-1.459Zm8.386 3.116a.743.743 0 0 1 1.055 0l1.74 1.75a.753.753 0 0 1 0 1.06l-1.74 1.75a.743.743 0 0 1-1.055 0 .753.753 0 0 1 0-1.06l.467-.47H5.858A.748.748 0 0 1 5.112 8c0-.414.334-.75.746-.75h5.595l-.467-.47a.753.753 0 0 1 0-1.06Z"})));function re(){return(re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let rt=e=>eT.createElement("svg",re({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 17 16"},e),ex||(ex=eT.createElement("path",{d:"M12.25 11.66h0M8.5 13.25h0M3.25 8h0M4.75 4.33h0M4.75 11.66h0M8.5 2.75v0M13.75 8h0M12.25 4.33h0M13.75 8c0-2.9-2.35-5.25-5.25-5.25",stroke:"#747686",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})));function rr(){return(rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let rn=e=>eT.createElement("svg",rr({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),eS||(eS=eT.createElement("path",{d:"M9.53 4.47a.75.75 0 0 0-1.06 1.06l1.72 1.72H4a.75.75 0 0 0 0 1.5h6.19l-1.72 1.72a.75.75 0 1 0 1.06 1.06l3-3a.75.75 0 0 0 0-1.06l-3-3Z"})));function ro(){return(ro=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let ri=e=>eT.createElement("svg",ro({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 18 20"},e),eC||(eC=eT.createElement("path",{d:"M6.6 4a1.2 1.2 0 0 0 0 2.4h6.7l-1.55 1.55a1.2 1.2 0 0 0 1.7 1.7l3.6-3.6a1.2 1.2 0 0 0 0-1.7l-3.6-3.6a1.2 1.2 0 1 0-1.7 1.7L13.3 4H6.6Zm4.8 12a1.2 1.2 0 1 0 0-2.4H4.7l1.55-1.55a1.2 1.2 0 1 0-1.7-1.7l-3.6 3.6a1.2 1.2 0 0 0 0 1.7l3.6 3.6a1.2 1.2 0 1 0 1.7-1.7L4.7 16h6.7Z"})));function ra(){return(ra=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let rl=e=>eT.createElement("svg",ra({fill:"none",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},e),e$||(e$=eT.createElement("g",{stroke:"currentColor",strokeWidth:2,strokeLinecap:"round"},eT.createElement("path",{d:"M10.01 10H10M4.01 10H4M16.01 10H16"}))));function rs(){return(rs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let rc=e=>eT.createElement("svg",rs({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),e_||(e_=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.748 2.91a.48.48 0 0 1 .124.083c.088.082.14.193.126.31v4.054a7.58 7.58 0 0 1-1.227 4.147c-.99 1.52-3.778 3.038-4.563 3.445a.45.45 0 0 1-.416 0c-.785-.407-3.576-1.925-4.565-3.445A7.61 7.61 0 0 1 2 7.357V3.303a.43.43 0 0 1 .14-.31.484.484 0 0 1 .334-.13h.027c2.162 0 4.132-.655 5.148-1.714A.485.485 0 0 1 8.004 1c.137 0 .266.054.355.149 1.016 1.056 2.99 1.714 5.148 1.714h.027c.076 0 .149.016.214.046Zm-2.695 3.097a.75.75 0 0 0-1.106-1.014c-.9.983-1.363 1.624-2.013 2.787-.218.39-.442.876-.626 1.305l-1.242-1.43a.75.75 0 0 0-1.132.982l2.042 2.354a.75.75 0 0 0 1.269-.227v-.003l.005-.011.018-.046a22.354 22.354 0 0 1 .305-.762c.199-.474.447-1.03.67-1.43.594-1.062.988-1.608 1.81-2.505Z"})));function rd(){return(rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let ru=e=>eT.createElement("svg",rd({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ek||(ek=eT.createElement("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-7-5-5m0 0L7 8m5-5v12"})));function rp(){return(rp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let rm=e=>eT.createElement("svg",rp({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 16 16"},e),eP||(eP=eT.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-2.585 2.894c.154.25.107.568-.083.792A5.675 5.675 0 0 1 8 13.688a5.675 5.675 0 0 1-4.332-2.002c-.19-.224-.237-.543-.083-.792.087-.14.189-.271.306-.392.46-.469 1.087-.986 1.703-1.102.514-.097.899.056 1.298.214.331.132.673.267 1.108.267.435 0 .777-.135 1.108-.267.4-.158.784-.31 1.298-.214.616.116 1.243.633 1.703 1.102.117.12.22.252.306.392ZM8 8.919c1.329 0 2.406-1.559 2.406-2.888a2.406 2.406 0 1 0-4.812 0C5.594 7.361 6.67 8.92 8 8.92Z"})));function rh(){return(rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}let rg=e=>eT.createElement("svg",rh({fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},e),eI||(eI=eT.createElement("path",{d:"M9.167 5.035c0 1.503-1.22 3.266-2.723 3.266S3.722 6.538 3.722 5.035a2.722 2.722 0 0 1 5.445 0ZM1 12.736c0-.797.12-1.804.796-2.643.562-.698 1.23-1.116 1.926-1.247 1.066-.2 1.638.544 2.722.544 1.085 0 1.657-.745 2.723-.544.697.13 1.364.55 1.926 1.247.676.84.796 1.846.796 2.643a.95.95 0 0 1-.95.951H1.95A.95.95 0 0 1 1 12.736Z"})),eA||(eA=eT.createElement("path",{d:"M8.982 7.712c-.088.111-.182.22-.282.324a2.698 2.698 0 0 1 1.21.232c1.336-.247 2.368-1.85 2.368-3.233a2.722 2.722 0 0 0-3.5-2.61 3.491 3.491 0 0 1 1.166 2.61c0 .945-.375 1.927-.962 2.677ZM12.382 13.688c.18-.274.285-.6.285-.952 0-.942-.152-2.21-1.019-3.187-.21-.239-.377-.371-.598-.555.37-.138.75-.238 1.228-.148.697.13 1.364.55 1.926 1.247.676.84.796 1.846.796 2.643a.95.95 0 0 1-.95.951h-1.668Z"})))},88742:function(e,t,r){r.r(t),r.d(t,{MountedCheckoutDrawer:()=>l});var n=r(73312),o=r(61869),i=r(7508),a=r(56556);function l({appearance:e,checkoutDrawer:t,onOpenChange:r}){let{user:l}=(0,o.aF)();return t.props?(0,n.tZ)(a.Ni,{globalAppearance:e,appearanceKey:"checkout",componentAppearance:t.props.appearance||{},flowName:"checkout",open:t.open,onOpenChange:r,componentName:"Checkout",portalId:t.props?.portalId,portalRoot:t.props?.portalRoot,children:t.props&&(0,n.tZ)(i.hZ,{planId:t.props.planId,planPeriod:t.props.planPeriod,for:t.props.for,onSubscriptionComplete:t.props.onSubscriptionComplete,portalRoot:t.props.portalRoot,appearance:t.props.appearance,newSubscriptionRedirectUrl:t.props.newSubscriptionRedirectUrl})},l?.id):null}},78902:function(e,t,r){r.r(t),r.d(t,{MountedPlanDetailDrawer:()=>l});var n=r(73312),o=r(61869),i=r(7508),a=r(56556);function l({appearance:e,planDetailsDrawer:t,onOpenChange:r}){let{user:l}=(0,o.aF)();return t.props?(0,n.tZ)(a.Ni,{globalAppearance:e,appearanceKey:"planDetails",componentAppearance:t.props.appearance||{},flowName:"planDetails",open:t.open,onOpenChange:r,componentName:"PlanDetails",portalId:t.props.portalId,portalRoot:t.props.portalRoot,children:(0,n.tZ)(i.KO,{...t.props})},l?.id):null}},4725:function(e,t,r){r.r(t),r.d(t,{MountedSubscriptionDetailDrawer:()=>l});var n=r(73312),o=r(61869),i=r(51367),a=r(56556);function l({appearance:e,subscriptionDetailsDrawer:t,onOpenChange:r}){let{user:l}=(0,o.aF)();return t.props?(0,n.tZ)(a.Ni,{globalAppearance:e,appearanceKey:"subscriptionDetails",componentAppearance:t.props.appearance||{},flowName:"subscriptionDetails",open:t.open,onOpenChange:r,componentName:"SubscriptionDetails",portalId:t.props.portalId,portalRoot:t.props.portalRoot,children:(0,n.tZ)(i.SubscriptionDetails,{...t.props})},l?.id):null}},5681:function(e,t,r){r.r(t),r.d(t,{createRoot:()=>n.createRoot}),r(11576);var n=r(39068)},17703:function(e,t,r){let n,o;r.d(t,{u1:()=>f.u,W5:()=>w,zJ:()=>x});var i=r(73312),a=r(41024),l=r(69144),s=r(11576),c=r(61869),d=r(30474);let u={titleize:r(72642).MI,timeString:(e,t)=>{try{return new Intl.DateTimeFormat(t||"en-US",{timeStyle:"short"}).format((0,d.P9)(e))}catch(e){return console.warn(e),""}},weekday:(e,t,r)=>{try{return new Intl.DateTimeFormat(t||"en-US",{weekday:r||"long"}).format((0,d.P9)(e))}catch(e){return console.warn(e),""}},numeric:(e,t)=>{try{return new Intl.DateTimeFormat(t||"en-US").format((0,d.P9)(e))}catch(e){return console.warn(e),""}},link:(e,t)=>`[${t}](${e})`,shortDate:(e,t)=>{let r=(0,d.P9)(e);try{return new Intl.DateTimeFormat(t||"en-US",{month:"short",day:"numeric",...r.getFullYear()!==new Date().getFullYear()?{year:"numeric"}:{}}).format((0,d.P9)(e))}catch(e){return console.warn(e),""}},longDate:(e,t)=>{try{return new Intl.DateTimeFormat(t||"en-US",{month:"long",day:"numeric",year:"numeric"}).format((0,d.P9)(e))}catch(e){return console.warn(e),""}}},p=()=>{let{applicationName:e}=(0,s.useEnvironment)().displayConfig,{client:t,user:r}=(0,c.cL)(),{signIn:n}=t||{};return{applicationName:e,"signIn.identifier":n?.identifier||"","user.username":r?.username||"","user.firstName":r?.firstName||"","user.lastName":r?.lastName||"","user.primaryEmailAddress":r?.primaryEmailAddress?.emailAddress||"","user.primaryPhoneNumber":r?.primaryPhoneNumber?.phoneNumber||""}},m=e=>Object.prototype.hasOwnProperty.call(u,e),h=e=>{let t=e.split(/[(,)]/g).map(e=>e.trim()).filter(e=>!!e);if(1===t.length){let[e]=t;return{modifierName:e,params:[]}}{let[e,...r]=t;return{modifierName:e,params:r.map(e=>e.replace(/['"]+/g,""))}}},g={locale:"en-US",apiKeys:{action__add:"Add new key",action__search:"Search keys",copySecret:{formButtonPrimary__copyAndClose:"Copy & Close",formHint:"For security reasons, we won't allow you to view it again later.",formTitle:'Copy your "{{name}}" API Key now'},createdAndExpirationStatus__expiresOn:"Created {{ createdDate | shortDate('en-US') }} • Expires {{ expiresDate | longDate('en-US') }}",createdAndExpirationStatus__never:"Created {{ createdDate | shortDate('en-US') }} • Never expires",detailsTitle__emptyRow:"No API keys found",formButtonPrimary__add:"Create key",formFieldCaption__expiration__expiresOn:"Expiring {{ date }}",formFieldCaption__expiration__never:"This key will never expire",formFieldOption__expiration__180d:"180 Days",formFieldOption__expiration__1d:"1 Day",formFieldOption__expiration__1y:"1 Year",formFieldOption__expiration__30d:"30 Days",formFieldOption__expiration__60d:"60 Days",formFieldOption__expiration__7d:"7 Days",formFieldOption__expiration__90d:"90 Days",formFieldOption__expiration__never:"Never",formHint:"Provide a name to generate a new key. You’ll be able to revoke it anytime.",formTitle:"Add new API key",lastUsed__days:"{{days}}d ago",lastUsed__hours:"{{hours}}h ago",lastUsed__minutes:"{{minutes}}m ago",lastUsed__months:"{{months}}mo ago",lastUsed__seconds:"{{seconds}}s ago",lastUsed__years:"{{years}}y ago",menuAction__revoke:"Revoke key",revokeConfirmation:{confirmationText:"Revoke",formButtonPrimary__revoke:"Revoke key",formHint:"Are you sure you want to delete this Secret key?",formTitle:'Revoke "{{apiKeyName}}" secret key?'}},backButton:"Back",badge__activePlan:"Active",badge__canceledEndsAt:"Canceled • Ends {{ date | shortDate('en-US') }}",badge__currentPlan:"Current plan",badge__default:"Default",badge__endsAt:"Ends {{ date | shortDate('en-US') }}",badge__expired:"Expired",badge__freeTrial:"Free trial",badge__otherImpersonatorDevice:"Other impersonator device",badge__pastDueAt:"Past due {{ date | shortDate('en-US') }}",badge__pastDuePlan:"Past due",badge__primary:"Primary",badge__renewsAt:"Renews {{ date | shortDate('en-US') }}",badge__requiresAction:"Requires action",badge__startsAt:"Starts {{ date | shortDate('en-US') }}",badge__thisDevice:"This device",badge__trialEndsAt:"Trial ends {{ date | shortDate('en-US') }}",badge__unverified:"Unverified",badge__upcomingPlan:"Upcoming",badge__userDevice:"User device",badge__you:"You",billing:{addPaymentMethod__label:"Add payment method",alwaysFree:"Always free",annually:"Annually",availableFeatures:"Available features",billedAnnually:"Billed annually",billedMonthlyOnly:"Only billed monthly",cancelFreeTrial:"Cancel free trial",cancelFreeTrialAccessUntil:"Your trial will stay active until {{ date | longDate('en-US') }}. After that, you'll lose access to trial features. You won't be charged.",cancelFreeTrialTitle:"Cancel free trial for {{plan}} plan?",cancelSubscription:"Cancel subscription",cancelSubscriptionAccessUntil:"You can keep using '{{plan}}' features until {{ date | longDate('en-US') }}, after which you will no longer have access.",cancelSubscriptionNoCharge:"You will not be charged for this subscription.",cancelSubscriptionPastDue:"Your subscription will end immediately and you will lose access to all plan features. You will be asked to pay the past due amount on your next subscription.",cancelSubscriptionTitle:"Cancel {{plan}} Subscription?",cannotSubscribeMonthly:"You cannot subscribe to this plan by paying monthly. To subscribe to this plan, you need to choose to pay annually.",cannotSubscribeUnrecoverable:"You cannot subscribe to this plan. Your existing subscription is more expensive than this plan.",checkout:{description__paymentSuccessful:"Your payment was successful.",description__subscriptionSuccessful:"Your new subscription is all set.",downgradeNotice:"You will keep your current subscription and its features until the end of the billing cycle, then you will be switched to this subscription.",emailForm:{subtitle:"Before you can complete your purchase you must add an email address where receipts will be sent.",title:"Add an email address"},lineItems:{title__freeTrialEndsAt:"Trial ends on",title__paymentMethod:"Payment method",title__statementId:"Statement ID",title__subscriptionBegins:"Subscription begins",title__totalPaid:"Total paid"},pastDueNotice:"Your previous subscription was past due, with no payment.",perMonth:"per month",title:"Checkout",title__paymentSuccessful:"Payment was successful!",title__subscriptionSuccessful:"Success!",title__trialSuccess:"Trial successfully started!",totalDueAfterTrial:"Total Due after trial ends in {{days}} days"},credit:"Credit",prorationCredit:"Prorated credit",accountCredit:"Account credit",creditRemainder:"Credit for the remainder of your current subscription.",payerCreditRemainder:"Credit from account balance.",defaultFreePlanActive:"You're currently on the Free plan",free:"Free",getStarted:"Get started",keepFreeTrial:"Keep free trial",keepSubscription:"Keep subscription",manage:"Manage",manageSubscription:"Manage subscription",month:"Month",monthly:"Monthly",pastDue:"Past due",pay:"Pay {{amount}}",paymentMethod:{applePayDescription:{annual:"Annual payment",monthly:"Monthly payment"},dev:{anyNumbers:"Any numbers",cardNumber:"Card number",cvcZip:"CVC, ZIP",developmentMode:"Development mode",expirationDate:"Expiration date",testCardInfo:"Test card information"}},paymentMethods__label:"Payment Methods",popular:"Popular",pricingTable:{billingCycle:"Billing cycle",included:"Included"},reSubscribe:"Resubscribe",seeAllFeatures:"See all features",startFreeTrial:"Start free trial",startFreeTrial__days:"Start {{days}}-day free trial",subscribe:"Subscribe",subscriptionDetails:{beginsOn:"Begins on",currentBillingCycle:"Current billing cycle",endsOn:"Ends on",firstPaymentAmount:"First payment amount",firstPaymentOn:"First payment on",nextPaymentAmount:"Next payment amount",nextPaymentOn:"Next payment on",pastDueAt:"Past due on",renewsAt:"Renews at",subscribedOn:"Subscribed on",title:"Subscription",trialEndsOn:"Trial ends on",trialStartedOn:"Trial started on"},subtotal:"Subtotal",switchPlan:"Switch to this plan",switchToAnnual:"Switch to annual",switchToAnnualWithAnnualPrice:"Switch to annual {{currency}}{{price}} / year",switchToMonthly:"Switch to monthly",switchToMonthlyWithPrice:"Switch to monthly {{currency}}{{price}} / month",totalDue:"Total due",totalDueToday:"Total Due Today",viewFeatures:"View features",viewPayment:"View payment",year:"Year"},createOrganization:{formButtonSubmit:"Create organization",invitePage:{formButtonReset:"Skip"},title:"Create organization"},dates:{lastDay:"Yesterday at {{ date | timeString('en-US') }}",next6Days:"{{ date | weekday('en-US','long') }} at {{ date | timeString('en-US') }}",nextDay:"Tomorrow at {{ date | timeString('en-US') }}",numeric:"{{ date | numeric('en-US') }}",previous6Days:"Last {{ date | weekday('en-US','long') }} at {{ date | timeString('en-US') }}",sameDay:"Today at {{ date | timeString('en-US') }}"},dividerText:"or",footerActionLink__alternativePhoneCodeProvider:"Send code via SMS instead",footerActionLink__useAnotherMethod:"Use another method",footerPageLink__help:"Help",footerPageLink__privacy:"Privacy",footerPageLink__terms:"Terms",formButtonPrimary:"Continue",formButtonPrimary__verify:"Verify",formFieldAction__forgotPassword:"Forgot password?",formFieldError__matchingPasswords:"Passwords match.",formFieldError__notMatchingPasswords:"Passwords don't match.",formFieldError__verificationLinkExpired:"The verification link expired. Please request a new link.",formFieldHintText__optional:"Optional",formFieldHintText__slug:"A slug is a human-readable ID that must be unique. It’s often used in URLs.",formFieldInputPlaceholder__apiKeyDescription:"Explain why you’re generating this key",formFieldInputPlaceholder__apiKeyExpirationDate:"Select date",formFieldInputPlaceholder__apiKeyName:"Enter your secret key name",formFieldInputPlaceholder__backupCode:"Enter backup code",formFieldInputPlaceholder__confirmDeletionUserAccount:"Delete account",formFieldInputPlaceholder__emailAddress:"Enter your email address",formFieldInputPlaceholder__emailAddress_username:"Enter email or username",formFieldInputPlaceholder__emailAddresses:"example@email.com, example2@email.com",formFieldInputPlaceholder__firstName:"First name",formFieldInputPlaceholder__lastName:"Last name",formFieldInputPlaceholder__organizationDomain:"example.com",formFieldInputPlaceholder__organizationDomainEmailAddress:"you@example.com",formFieldInputPlaceholder__organizationName:"Organization name",formFieldInputPlaceholder__organizationSlug:"my-org",formFieldInputPlaceholder__password:"Enter your password",formFieldInputPlaceholder__phoneNumber:"Enter your phone number",formFieldInputPlaceholder__username:void 0,formFieldInput__emailAddress_format:"Example format: name@example.com",formFieldLabel__apiKey:"API key",formFieldLabel__apiKeyDescription:"Description",formFieldLabel__apiKeyExpiration:"Expiration",formFieldLabel__apiKeyName:"Secret key name",formFieldLabel__automaticInvitations:"Enable automatic invitations for this domain",formFieldLabel__backupCode:"Backup code",formFieldLabel__confirmDeletion:"Confirmation",formFieldLabel__confirmPassword:"Confirm password",formFieldLabel__currentPassword:"Current password",formFieldLabel__emailAddress:"Email address",formFieldLabel__emailAddress_username:"Email address or username",formFieldLabel__emailAddresses:"Email addresses",formFieldLabel__firstName:"First name",formFieldLabel__lastName:"Last name",formFieldLabel__newPassword:"New password",formFieldLabel__organizationDomain:"Domain",formFieldLabel__organizationDomainDeletePending:"Delete pending invitations and suggestions",formFieldLabel__organizationDomainEmailAddress:"Verification email address",formFieldLabel__organizationDomainEmailAddressDescription:"Enter an email address under this domain to receive a code and verify this domain.",formFieldLabel__organizationName:"Name",formFieldLabel__organizationSlug:"Slug",formFieldLabel__passkeyName:"Name of passkey",formFieldLabel__password:"Password",formFieldLabel__phoneNumber:"Phone number",formFieldLabel__role:"Role",formFieldLabel__signOutOfOtherSessions:"Sign out of all other devices",formFieldLabel__username:"Username",impersonationFab:{action__signOut:"Sign out",title:"Signed in as {{identifier}}"},lastAuthenticationStrategy:"Last used",maintenanceMode:"We are currently undergoing maintenance, but don't worry, it shouldn't take more than a few minutes.",membershipRole__admin:"Admin",membershipRole__basicMember:"Member",membershipRole__guestMember:"Guest",organizationList:{action__createOrganization:"Create organization",action__invitationAccept:"Join",action__suggestionsAccept:"Request to join",createOrganization:"Create Organization",invitationAcceptedLabel:"Joined",subtitle:"to continue to {{applicationName}}",suggestionsAcceptedLabel:"Pending approval",title:"Choose an account",titleWithoutPersonal:"Choose an organization"},organizationProfile:{apiKeysPage:{title:"API keys"},badge__automaticInvitation:"Automatic invitations",badge__automaticSuggestion:"Automatic suggestions",badge__manualInvitation:"No automatic enrollment",badge__unverified:"Unverified",billingPage:{paymentHistorySection:{empty:"No payment history",notFound:"Payment attempt not found",tableHeader__amount:"Amount",tableHeader__date:"Date",tableHeader__status:"Status"},paymentMethodsSection:{actionLabel__default:"Make default",actionLabel__remove:"Remove",add:"Add new payment method",addSubtitle:"Add a new payment method to your account.",cancelButton:"Cancel",formButtonPrimary__add:"Add Payment Method",formButtonPrimary__pay:"Pay {{amount}}",payWithTestCardButton:"Pay with test card",removeMethod:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to use this payment method and any recurring subscriptions dependent on it will no longer work.",successMessage:"{{paymentMethod}} has been removed from your account.",title:"Remove payment method"},title:"Payment methods"},start:{headerTitle__payments:"Payments",headerTitle__plans:"Plans",headerTitle__statements:"Statements",headerTitle__subscriptions:"Subscription"},statementsSection:{empty:"No statements to display",itemCaption__paidForPlan:"Paid for {{plan}} {{period}} plan",itemCaption__proratedCredit:"Prorated credit for partial usage of previous subscription",itemCaption__payerCredit:"Credit from account balance",itemCaption__subscribedAndPaidForPlan:"Subscribed and paid for {{plan}} {{period}} plan",notFound:"Statement not found",tableHeader__amount:"Amount",tableHeader__date:"Date",title:"Statements",totalPaid:"Total paid"},subscriptionsListSection:{actionLabel__manageSubscription:"Manage",actionLabel__newSubscription:"Subscribe to a plan",actionLabel__switchPlan:"Switch plans",tableHeader__edit:"Edit",tableHeader__plan:"Plan",tableHeader__startDate:"Start date",title:"Subscription"},subscriptionsSection:{actionLabel__default:"Manage"},switchPlansSection:{title:"Switch plans"},title:"Billing"},createDomainPage:{subtitle:"Add the domain to verify. Users with email addresses at this domain can join the organization automatically or request to join.",title:"Add domain"},invitePage:{detailsTitle__inviteFailed:"The invitations could not be sent. There are already pending invitations for the following email addresses: {{email_addresses}}.",formButtonPrimary__continue:"Send invitations",selectDropdown__role:"Select role",subtitle:"Enter or paste one or more email addresses, separated by spaces or commas.",successMessage:"Invitations successfully sent",title:"Invite new members"},membersPage:{action__invite:"Invite",action__search:"Search",activeMembersTab:{menuAction__remove:"Remove member",tableHeader__actions:"Actions",tableHeader__joined:"Joined",tableHeader__role:"Role",tableHeader__user:"User"},detailsTitle__emptyRow:"No members to display",invitationsTab:{autoInvitations:{headerSubtitle:"Invite users by connecting an email domain with your organization. Anyone who signs up with a matching email domain will be able to join the organization anytime.",headerTitle:"Automatic invitations",primaryButton:"Manage verified domains"},table__emptyRow:"No invitations to display"},invitedMembersTab:{menuAction__revoke:"Revoke invitation",tableHeader__invited:"Invited"},requestsTab:{autoSuggestions:{headerSubtitle:"Users who sign up with a matching email domain, will be able to see a suggestion to request to join your organization.",headerTitle:"Automatic suggestions",primaryButton:"Manage verified domains"},menuAction__approve:"Approve",menuAction__reject:"Reject",tableHeader__requested:"Requested access",table__emptyRow:"No requests to display"},alerts:{roleSetMigrationInProgress:{title:"Roles are temporarily locked",subtitle:"We are updating the available roles. Once that's done, you'll be able to update roles again."}},start:{headerTitle__invitations:"Invitations",headerTitle__members:"Members",headerTitle__requests:"Requests"}},navbar:{apiKeys:"API keys",billing:"Billing",description:"Manage your organization.",general:"General",members:"Members",title:"Organization"},plansPage:{alerts:{noPermissionsToManageBilling:"You do not have permissions to manage billing for this organization."},title:"Plans"},profilePage:{dangerSection:{deleteOrganization:{actionDescription:'Type "{{organizationName}}" below to continue.',messageLine1:"Are you sure you want to delete this organization?",messageLine2:"This action is permanent and irreversible.",successMessage:"You have deleted the organization.",title:"Delete organization"},leaveOrganization:{actionDescription:'Type "{{organizationName}}" below to continue.',messageLine1:"Are you sure you want to leave this organization? You will lose access to this organization and its applications.",messageLine2:"This action is permanent and irreversible.",successMessage:"You have left the organization.",title:"Leave organization"},title:"Danger"},domainSection:{menuAction__manage:"Manage",menuAction__remove:"Delete",menuAction__verify:"Verify",primaryButton:"Add domain",subtitle:"Allow users to join the organization automatically or request to join based on a verified email domain.",title:"Verified domains"},successMessage:"The organization has been updated.",title:"Update profile"},removeDomainPage:{messageLine1:"The email domain {{domain}} will be removed.",messageLine2:"Users won’t be able to join the organization automatically after this.",successMessage:"{{domain}} has been removed.",title:"Remove domain"},start:{headerTitle__general:"General",headerTitle__members:"Members",profileSection:{primaryButton:"Update profile",title:"Organization Profile",uploadAction__title:"Logo"}},verifiedDomainPage:{dangerTab:{calloutInfoLabel:"Removing this domain will affect invited users.",removeDomainActionLabel__remove:"Remove domain",removeDomainSubtitle:"Remove this domain from your verified domains",removeDomainTitle:"Remove domain"},enrollmentTab:{automaticInvitationOption__description:"Users are automatically invited to join the organization when they sign-up and can join anytime.",automaticInvitationOption__label:"Automatic invitations",automaticSuggestionOption__description:"Users receive a suggestion to request to join, but must be approved by an admin before they are able to join the organization.",automaticSuggestionOption__label:"Automatic suggestions",calloutInfoLabel:"Changing the enrollment mode will only affect new users.",calloutInvitationCountLabel:"Pending invitations sent to users: {{count}}",calloutSuggestionCountLabel:"Pending suggestions sent to users: {{count}}",manualInvitationOption__description:"Users can only be invited manually to the organization.",manualInvitationOption__label:"No automatic enrollment",subtitle:"Choose how users from this domain can join the organization."},start:{headerTitle__danger:"Danger",headerTitle__enrollment:"Enrollment options"},subtitle:"The domain {{domain}} is now verified. Continue by selecting enrollment mode.",title:"Update {{domain}}"},verifyDomainPage:{formSubtitle:"Enter the verification code sent to your email address",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"The domain {{domainName}} needs to be verified via email.",subtitleVerificationCodeScreen:"A verification code was sent to {{emailAddress}}. Enter the code to continue.",title:"Verify domain"}},organizationSwitcher:{action__closeOrganizationSwitcher:"Close organization switcher",action__createOrganization:"Create organization",action__invitationAccept:"Join",action__manageOrganization:"Manage",action__openOrganizationSwitcher:"Open organization switcher",action__suggestionsAccept:"Request to join",notSelected:"No organization selected",personalWorkspace:"Personal account",suggestionsAcceptedLabel:"Pending approval"},paginationButton__next:"Next",paginationButton__previous:"Previous",paginationRowText__displaying:"Displaying",paginationRowText__of:"of",reverification:{alternativeMethods:{actionLink:"Get help",actionText:"Don’t have any of these?",blockButton__backupCode:"Use a backup code",blockButton__emailCode:"Email code to {{identifier}}",blockButton__passkey:"Use your passkey",blockButton__password:"Continue with your password",blockButton__phoneCode:"Send SMS code to {{identifier}}",blockButton__totp:"Use your authenticator app",getHelp:{blockButton__emailSupport:"Email support",content:"If you have trouble verifying your account, email us and we will work with you to restore access as soon as possible.",title:"Get help"},subtitle:"Facing issues? You can use any of these methods for verification.",title:"Use another method"},backupCodeMfa:{subtitle:"Enter the backup code you received when setting up two-step authentication",title:"Enter a backup code"},emailCode:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the code sent to your email to continue",title:"Verification required"},noAvailableMethods:{message:"Cannot proceed with verification. No suitable authentication factor is configured",subtitle:"An error occurred",title:"Cannot verify your account"},passkey:{blockButton__passkey:"Use your passkey",subtitle:"Using your passkey confirms your identity. Your device may ask for your fingerprint, face, or screen lock.",title:"Use your passkey"},password:{actionLink:"Use another method",subtitle:"Enter your current password to continue",title:"Verification required"},phoneCode:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the code sent to your phone to continue",title:"Verification required"},phoneCodeMfa:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the code sent to your phone to continue",title:"Verification required"},totpMfa:{formTitle:"Verification code",subtitle:"Enter the code generated by your authenticator app to continue",title:"Verification required"}},signIn:{accountSwitcher:{action__addAccount:"Add account",action__signOutAll:"Sign out of all accounts",subtitle:"Select the account with which you wish to continue.",title:"Choose an account"},alternativeMethods:{actionLink:"Get help",actionText:"Don’t have any of these?",blockButton__backupCode:"Use a backup code",blockButton__emailCode:"Email code to {{identifier}}",blockButton__emailLink:"Email link to {{identifier}}",blockButton__passkey:"Sign in with your passkey",blockButton__password:"Sign in with your password",blockButton__phoneCode:"Send SMS code to {{identifier}}",blockButton__totp:"Use your authenticator app",getHelp:{blockButton__emailSupport:"Email support",content:"If you have trouble signing into your account, email us and we will work with you to restore access as soon as possible.",title:"Get help"},subtitle:"Facing issues? You can use any of these methods to sign in.",title:"Use another method"},alternativePhoneCodeProvider:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your {{provider}}"},backupCodeMfa:{subtitle:"Your backup code is the one you got when setting up two-step authentication.",title:"Enter a backup code"},emailCode:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your email"},emailCodeMfa:{formTitle:"Check your email",resendButton:"Didn't receive a code? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your email"},emailLink:{clientMismatch:{subtitle:"To continue, open the verification link on the device and browser from which you initiated the sign-in",title:"Verification link is invalid for this device"},expired:{subtitle:"Return to the original tab to continue.",title:"This verification link has expired"},failed:{subtitle:"Return to the original tab to continue.",title:"This verification link is invalid"},formSubtitle:"Use the verification link sent to your email",formTitle:"Verification link",loading:{subtitle:"You will be redirected soon",title:"Signing in..."},resendButton:"Didn't receive a link? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your email",unusedTab:{title:"You may close this tab"},verified:{subtitle:"You will be redirected soon",title:"Successfully signed in"},verifiedSwitchTab:{subtitle:"Return to original tab to continue",subtitleNewTab:"Return to the newly opened tab to continue",titleNewTab:"Signed in on other tab"}},emailLinkMfa:{formSubtitle:"Use the verification link sent to your email",resendButton:"Didn't receive a link? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your email"},enterpriseConnections:{subtitle:"Select the enterprise account with which you wish to continue.",title:"Choose your enterprise account"},forgotPassword:{formTitle:"Reset password code",resendButton:"Didn't receive a code? Resend",subtitle:"to reset your password",subtitle_email:"First, enter the code sent to your email address",subtitle_phone:"First, enter the code sent to your phone",title:"Reset password"},forgotPasswordAlternativeMethods:{blockButton__resetPassword:"Reset your password",label__alternativeMethods:"Or, sign in with another method",title:"Forgot Password?"},newDeviceVerificationNotice:"You're signing in from a new device. We're asking for verification to keep your account secure.",noAvailableMethods:{message:"Cannot proceed with sign in. There's no available authentication factor.",subtitle:"An error occurred",title:"Cannot sign in"},passkey:{subtitle:"Using your passkey confirms it's you. Your device may ask for your fingerprint, face or screen lock.",title:"Use your passkey"},password:{actionLink:"Use another method",subtitle:"Enter the password associated with your account",title:"Enter your password"},passwordCompromised:{title:"Password compromised"},passwordPwned:{title:"Password compromised"},passwordUntrusted:{title:"Password untrusted"},phoneCode:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"to continue to {{applicationName}}",title:"Check your phone"},phoneCodeMfa:{formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"To continue, please enter the verification code sent to your phone",title:"Check your phone"},resetPassword:{formButtonPrimary:"Reset Password",requiredMessage:"For security reasons, it is required to reset your password.",successMessage:"Your password was successfully changed. Signing you in, please wait a moment.",title:"Set new password"},resetPasswordMfa:{detailsLabel:"We need to verify your identity before resetting your password."},start:{actionLink:"Sign up",actionLink__join_waitlist:"Join waitlist",actionLink__use_email:"Use email",actionLink__use_email_username:"Use email or username",actionLink__use_passkey:"Use passkey instead",actionLink__use_phone:"Use phone",actionLink__use_username:"Use username",actionText:"Don’t have an account?",actionText__join_waitlist:"Want early access?",alternativePhoneCodeProvider:{actionLink:"Use another method",label:"{{provider}} phone number",subtitle:"Enter your phone number to get a verification code on {{provider}}.",title:"Sign in to {{applicationName}} with {{provider}}"},subtitle:"Welcome back! Please sign in to continue",subtitleCombined:void 0,title:"Sign in to {{applicationName}}",titleCombined:"Continue to {{applicationName}}"},totpMfa:{formTitle:"Verification code",subtitle:"To continue, please enter the verification code generated by your authenticator app",title:"Two-step verification"},web3Solana:{subtitle:"Select a wallet below to sign in",title:"Sign in with Solana"}},signInEnterPasswordTitle:"Enter your password",signUp:{alternativePhoneCodeProvider:{resendButton:"Didn't receive a code? Resend",subtitle:"Enter the verification code sent to your {{provider}}",title:"Verify your {{provider}}"},continue:{actionLink:"Sign in",actionText:"Already have an account?",subtitle:"Please fill in the remaining details to continue.",title:"Fill in missing fields"},emailCode:{formSubtitle:"Enter the verification code sent to your email address",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the verification code sent to your email",title:"Verify your email"},emailLink:{clientMismatch:{subtitle:"To continue, open the verification link on the device and browser from which you initiated the sign-up",title:"Verification link is invalid for this device"},formSubtitle:"Use the verification link sent to your email address",formTitle:"Verification link",loading:{title:"Signing up..."},resendButton:"Didn't receive a link? Resend",subtitle:"to continue to {{applicationName}}",title:"Verify your email",verified:{title:"Successfully signed up"},verifiedSwitchTab:{subtitle:"Return to the newly opened tab to continue",subtitleNewTab:"Return to previous tab to continue",title:"Successfully verified email"}},enterpriseConnections:{subtitle:"Select the enterprise account with which you wish to continue.",title:"Choose your enterprise account"},legalConsent:{checkbox:{label__onlyPrivacyPolicy:'I agree to the {{ privacyPolicyLink || link("Privacy Policy") }}',label__onlyTermsOfService:'I agree to the {{ termsOfServiceLink || link("Terms of Service") }}',label__termsOfServiceAndPrivacyPolicy:'I agree to the {{ termsOfServiceLink || link("Terms of Service") }} and {{ privacyPolicyLink || link("Privacy Policy") }}'},continue:{subtitle:"Please read and accept the terms to continue",title:"Legal consent"}},phoneCode:{formSubtitle:"Enter the verification code sent to your phone number",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the verification code sent to your phone",title:"Verify your phone"},restrictedAccess:{actionLink:"Sign in",actionText:"Already have an account?",blockButton__emailSupport:"Email support",blockButton__joinWaitlist:"Join waitlist",subtitle:"Sign ups are currently disabled. If you believe you should have access, please contact support.",subtitleWaitlist:"Sign ups are currently disabled. To be the first to know when we launch, join the waitlist.",title:"Access restricted"},start:{actionLink:"Sign in",actionLink__use_email:"Use email instead",actionLink__use_phone:"Use phone instead",actionText:"Already have an account?",alternativePhoneCodeProvider:{actionLink:"Use another method",label:"{{provider}} phone number",subtitle:"Enter your phone number to get a verification code on {{provider}}.",title:"Sign up to {{applicationName}} with {{provider}}"},subtitle:"Welcome! Please fill in the details to get started.",subtitleCombined:"Welcome! Please fill in the details to get started.",title:"Create your account",titleCombined:"Create your account"},web3Solana:{subtitle:"Select a wallet below to sign up",title:"Sign up with Solana"}},socialButtonsBlockButton:"Continue with {{provider|titleize}}",socialButtonsBlockButtonManyInView:"{{provider|titleize}}",taskChooseOrganization:{chooseOrganization:{action__createOrganization:"Create new organization",action__invitationAccept:"Join",action__suggestionsAccept:"Request to join",subtitle:"Join an existing organization or create a new one",subtitle__createOrganizationDisabled:"Join an existing organization",suggestionsAcceptedLabel:"Pending approval",title:"Choose an organization"},createOrganization:{formButtonReset:"Cancel",formButtonSubmit:"Continue",formFieldInputPlaceholder__name:"My Organization",formFieldInputPlaceholder__slug:"my-organization",formFieldLabel__name:"Name",formFieldLabel__slug:"Slug",subtitle:"Enter your organization details to continue",title:"Setup your organization"},organizationCreationDisabled:{title:"You must belong to an organization",subtitle:"Contact your organization admin for an invitation."},signOut:{actionLink:"Sign out",actionText:"Signed in as {{identifier}}"},alerts:{organizationAlreadyExists:"An organization already exists for the detected company name ({{organizationName}}) and {{organizationDomain}}. Join by invitation."}},taskResetPassword:{formButtonPrimary:"Reset Password",signOut:{actionLink:"Sign out",actionText:"Signed in as {{identifier}}"},subtitle:"Your account requires a new password before you can continue",title:"Reset your password"},taskSetupMfa:{badge:"Two-step verification setup",signOut:{actionLink:"Sign out",actionText:"Signed in as {{identifier}}"},smsCode:{addPhone:{formButtonPrimary:"Continue",infoText:"A text message containing a verification code will be sent to this phone number. Message and data rates may apply."},addPhoneNumber:"Add phone number",cancel:"Cancel",subtitle:"Choose phone number you want to use for SMS code two-step verification",success:{finishButton:"Continue",message1:"Two-step verification is now enabled. When signing in, you will need to enter a verification code sent to this phone number as an additional step.",message2:"Save these backup codes and store them somewhere safe. If you lose access to your authentication device, you can use backup codes to sign in.",title:"SMS code verification enabled"},title:"Add SMS code verification",verifyPhone:{formButtonPrimary:"Continue",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",subtitle:"Enter the verification code sent to",title:"Verify your phone number"}},start:{methodSelection:{phoneCode:"SMS code",totp:"Authenticator application"},subtitle:"Choose which method you prefer to protect your account with an extra layer of security",title:"Set up two-step verification"},totpCode:{addAuthenticatorApp:{buttonAbleToScan__nonPrimary:"Scan QR code instead",buttonUnableToScan__nonPrimary:"Can't scan QR code?",formButtonPrimary:"Continue",formButtonReset:"Cancel",infoText__ableToScan:"Set up a new sign-in method in your authenticator app and scan the following QR code to link it to your account.",infoText__unableToScan:"Set up a new sign-in method in your authenticator and enter the Key provided below.",inputLabel__unableToScan1:"Make sure Time-based or One-time passwords is enabled, then finish linking your account."},success:{finishButton:"Continue",message1:"Two-step verification is now enabled. When signing in, you will need to enter a verification code from this authenticator as an additional step.",message2:"Save these backup codes and store them somewhere safe. If you lose access to your authentication device, you can use backup codes to sign in.",title:"Authenticator application verification enabled"},title:"Add authenticator application",verifyTotp:{formButtonPrimary:"Continue",formButtonReset:"Cancel",formTitle:"Verification code",subtitle:"Enter verification code generated by your authenticator",title:"Add authenticator application"}}},unstable__errors:{already_a_member_in_organization:"{{email}} is already a member of the organization.",avatar_file_size_exceeded:"File size exceeds the maximum limit of 10MB. Please choose a smaller file.",avatar_file_type_invalid:"File type not supported. Please upload a JPG, PNG, GIF, or WEBP image.",captcha_invalid:void 0,captcha_unavailable:"Sign up unsuccessful due to failed bot validation. Please refresh the page to try again or reach out to support for more assistance.",form_code_incorrect:void 0,form_email_address_blocked:void 0,form_identifier_exists__email_address:void 0,form_identifier_exists__phone_number:void 0,form_identifier_exists__username:void 0,form_identifier_not_found:void 0,form_new_password_matches_current:"New password cannot be the same as the current password.",form_param_format_invalid:void 0,form_param_format_invalid__email_address:void 0,form_param_format_invalid__phone_number:void 0,form_param_max_length_exceeded__first_name:void 0,form_param_max_length_exceeded__last_name:void 0,form_param_max_length_exceeded__name:void 0,form_param_nil:void 0,form_param_type_invalid:void 0,form_param_type_invalid__email_address:void 0,form_param_type_invalid__phone_number:void 0,form_param_value_invalid:void 0,form_password_incorrect:void 0,form_password_or_identifier_incorrect:void 0,form_password_length_too_short:"Your password is too short. It must be at least 8 characters long.",form_password_not_strong_enough:"Your password is not strong enough.",form_password_pwned:"This password has been found as part of a breach and can not be used, please try another password instead.",form_password_pwned__sign_in:"This password has been found as part of a breach and can not be used, please reset your password.",form_password_size_in_bytes_exceeded:void 0,form_password_untrusted__sign_in:"Your password appears to have been compromised or it's no longer trusted and cannot be used. Please use another method to continue.",form_password_validation_failed:void 0,form_username_invalid_character:void 0,form_username_invalid_length:"Your username must be between {{min_length}} and {{max_length}} characters long.",form_username_needs_non_number_char:"Your username must contain at least one non-numeric character.",identification_deletion_failed:void 0,not_allowed_access:void 0,organization_domain_blocked:void 0,organization_domain_common:void 0,organization_domain_exists_for_enterprise_connection:void 0,organization_membership_quota_exceeded:void 0,organization_minimum_permissions_needed:void 0,organization_not_found_or_unauthorized:"You are no longer a member of this organization. Please choose or create another one.",organization_not_found_or_unauthorized_with_create_organization_disabled:"You are no longer a member of this organization. Please choose another one.",passkey_already_exists:"A passkey is already registered with this device.",passkey_not_supported:"Passkeys are not supported on this device.",passkey_pa_not_supported:"Registration requires a platform authenticator but the device does not support it.",passkey_registration_cancelled:"Passkey registration was cancelled or timed out.",passkey_retrieval_cancelled:"Passkey verification was cancelled or timed out.",passwordComplexity:{maximumLength:"less than {{length}} characters",minimumLength:"{{length}} or more characters",requireLowercase:"a lowercase letter",requireNumbers:"a number",requireSpecialCharacter:"a special character",requireUppercase:"an uppercase letter",sentencePrefix:"Your password must contain"},phone_number_exists:void 0,session_exists:void 0,web3_missing_identifier:"A Web3 Wallet extension cannot be found. Please install one to continue.",web3_signature_request_rejected:"You have rejected the signature request. Please try again to continue.",web3_solana_signature_generation_failed:"An error occurred while generating the signature. Please try again to continue.",zxcvbn:{couldBeStronger:"Your password works, but could be stronger. Try adding more characters.",goodPassword:"Your password meets all the necessary requirements.",notEnough:"Your password is not strong enough.",suggestions:{allUppercase:"Capitalize some, but not all letters.",anotherWord:"Add more words that are less common.",associatedYears:"Avoid years that are associated with you.",capitalization:"Capitalize more than the first letter.",dates:"Avoid dates and years that are associated with you.",l33t:"Avoid predictable letter substitutions like '@' for 'a'.",longerKeyboardPattern:"Use longer keyboard patterns and change typing direction multiple times.",noNeed:"You can create strong passwords without using symbols, numbers, or uppercase letters.",pwned:"If you use this password elsewhere, you should change it.",recentYears:"Avoid recent years.",repeated:"Avoid repeated words and characters.",reverseWords:"Avoid reversed spellings of common words.",sequences:"Avoid common character sequences.",useWords:"Use multiple words, but avoid common phrases."},warnings:{common:"This is a commonly used password.",commonNames:"Common names and surnames are easy to guess.",dates:"Dates are easy to guess.",extendedRepeat:'Repeated character patterns like "abcabcabc" are easy to guess.',keyPattern:"Short keyboard patterns are easy to guess.",namesByThemselves:"Single names or surnames are easy to guess.",pwned:"Your password was exposed by a data breach on the Internet.",recentYears:"Recent years are easy to guess.",sequences:'Common character sequences like "abc" are easy to guess.',similarToCommon:"This is similar to a commonly used password.",simpleRepeat:'Repeated characters like "aaa" are easy to guess.',straightRow:"Straight rows of keys on your keyboard are easy to guess.",topHundred:"This is a frequently used password.",topTen:"This is a heavily used password.",userInputs:"There should not be any personal or page related data.",wordByItself:"Single words are easy to guess."}}},userButton:{action__addAccount:"Add account",action__closeUserMenu:"Close user menu",action__manageAccount:"Manage account",action__openUserMenu:"Open user menu",action__signOut:"Sign out",action__signOutAll:"Sign out of all accounts"},userProfile:{apiKeysPage:{title:"API keys"},backupCodePage:{actionLabel__copied:"Copied!",actionLabel__copy:"Copy all",actionLabel__download:"Download .txt",actionLabel__print:"Print",infoText1:"Backup codes will be enabled for this account.",infoText2:"Keep the backup codes secret and store them securely. You may regenerate backup codes if you suspect they have been compromised.",subtitle__codelist:"Store them securely and keep them secret.",successMessage:"Backup codes are now enabled. You can use one of these to sign in to your account, if you lose access to your authentication device. Each code can only be used once.",successSubtitle:"You can use one of these to sign in to your account, if you lose access to your authentication device.",title:"Add backup code verification",title__codelist:"Backup codes"},billingPage:{paymentHistorySection:{empty:"No payment history",notFound:"Payment attempt not found",tableHeader__amount:"Amount",tableHeader__date:"Date",tableHeader__status:"Status"},paymentMethodsSection:{actionLabel__default:"Make default",actionLabel__remove:"Remove",add:"Add new payment method",addSubtitle:"Add a new payment method to your account.",cancelButton:"Cancel",formButtonPrimary__add:"Add Payment Method",formButtonPrimary__pay:"Pay {{amount}}",payWithTestCardButton:"Pay with test card",removeMethod:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to use this payment source and any recurring subscriptions dependent on it will no longer work.",successMessage:"{{paymentMethod}} has been removed from your account.",title:"Remove payment method"},title:"Payment methods"},start:{headerTitle__payments:"Payments",headerTitle__plans:"Plans",headerTitle__statements:"Statements",headerTitle__subscriptions:"Subscription"},statementsSection:{empty:"No statements to display",itemCaption__paidForPlan:"Paid for {{plan}} {{period}} plan",itemCaption__proratedCredit:"Prorated credit for partial usage of previous subscription",itemCaption__payerCredit:"Credit from account balance",itemCaption__subscribedAndPaidForPlan:"Subscribed and paid for {{plan}} {{period}} plan",notFound:"Statement not found",tableHeader__amount:"Amount",tableHeader__date:"Date",title:"Statements",totalPaid:"Total paid"},subscriptionsListSection:{actionLabel__manageSubscription:"Manage",actionLabel__newSubscription:"Subscribe to a plan",actionLabel__switchPlan:"Switch plans",tableHeader__edit:"Edit",tableHeader__plan:"Plan",tableHeader__startDate:"Start date",title:"Subscription"},subscriptionsSection:{actionLabel__default:"Manage"},switchPlansSection:{title:"Switch plans"},title:"Billing"},connectedAccountPage:{formHint:"Select a provider to connect your account.",formHint__noAccounts:"There are no available external account providers.",removeResource:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to use this connected account and any dependent features will no longer work.",successMessage:"{{connectedAccount}} has been removed from your account.",title:"Remove connected account"},socialButtonsBlockButton:"{{provider|titleize}}",successMessage:"The provider has been added to your account",title:"Add connected account"},deletePage:{actionDescription:'Type "Delete account" below to continue.',confirm:"Delete account",messageLine1:"Are you sure you want to delete your account? Some associated data may be retained. To request full data deletion, please contact support.",messageLine2:"This action is permanent and irreversible.",title:"Delete account"},emailAddressPage:{emailCode:{formHint:"An email containing a verification code will be sent to this email address.",formSubtitle:"Enter the verification code sent to {{identifier}}",formTitle:"Verification code",resendButton:"Didn't receive a code? Resend",successMessage:"The email {{identifier}} has been added to your account."},emailLink:{formHint:"An email containing a verification link will be sent to this email address.",formSubtitle:"Click on the verification link in the email sent to {{identifier}}",formTitle:"Verification link",resendButton:"Didn't receive a link? Resend",successMessage:"The email {{identifier}} has been added to your account."},enterpriseSSOLink:{formButton:"Click to sign-in",formSubtitle:"Complete the sign-in with {{identifier}}"},formHint:"You'll need to verify this email address before it can be added to your account.",removeResource:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to sign in using this email address.",successMessage:"{{emailAddress}} has been removed from your account.",title:"Remove email address"},title:"Add email address",verifyTitle:"Verify email address"},formButtonPrimary__add:"Add",formButtonPrimary__continue:"Continue",formButtonPrimary__finish:"Finish",formButtonPrimary__remove:"Remove",formButtonPrimary__save:"Save",formButtonReset:"Cancel",mfaPage:{formHint:"Select a method to add.",title:"Add two-step verification"},mfaPhoneCodePage:{backButton:"Use existing number",primaryButton__addPhoneNumber:"Add phone number",removeResource:{messageLine1:"{{identifier}} will be no longer receiving verification codes when signing in.",messageLine2:"Your account may not be as secure. Are you sure you want to continue?",successMessage:"SMS code two-step verification has been removed for {{mfaPhoneCode}}",title:"Remove two-step verification"},subtitle__availablePhoneNumbers:"Select an existing phone number to register for SMS code two-step verification or add a new one.",subtitle__unavailablePhoneNumbers:"There are no available phone numbers to register for SMS code two-step verification, please add a new one.",successMessage1:"When signing in, you will need to enter a verification code sent to this phone number as an additional step.",successMessage2:"Save these backup codes and store them somewhere safe. If you lose access to your authentication device, you can use backup codes to sign in.",successTitle:"SMS code verification enabled",title:"Add SMS code verification"},mfaTOTPPage:{authenticatorApp:{buttonAbleToScan__nonPrimary:"Scan QR code instead",buttonUnableToScan__nonPrimary:"Can’t scan QR code?",infoText__ableToScan:"Set up a new sign-in method in your authenticator app and scan the following QR code to link it to your account.",infoText__unableToScan:"Set up a new sign-in method in your authenticator and enter the Key provided below.",inputLabel__unableToScan1:"Make sure Time-based or One-time passwords is enabled, then finish linking your account.",inputLabel__unableToScan2:"Alternatively, if your authenticator supports TOTP URIs, you can also copy the full URI."},removeResource:{messageLine1:"Verification codes from this authenticator will no longer be required when signing in.",messageLine2:"Your account may not be as secure. Are you sure you want to continue?",successMessage:"Two-step verification via authenticator application has been removed.",title:"Remove two-step verification"},successMessage:"Two-step verification is now enabled. When signing in, you will need to enter a verification code from this authenticator as an additional step.",title:"Add authenticator application",verifySubtitle:"Enter verification code generated by your authenticator",verifyTitle:"Verification code"},mobileButton__menu:"Menu",navbar:{account:"Profile",apiKeys:"API keys",billing:"Billing",description:"Manage your account info.",security:"Security",title:"Account"},passkeyScreen:{removeResource:{messageLine1:"{{name}} will be removed from this account.",title:"Remove passkey"},subtitle__rename:"You can change the passkey name to make it easier to find.",title__rename:"Rename Passkey"},passwordPage:{checkboxInfoText__signOutOfOtherSessions:"It is recommended to sign out of all other devices which may have used your old password.",readonly:"Your password can currently not be edited because you can sign in only via the enterprise connection.",successMessage__set:"Your password has been set.",successMessage__signOutOfOtherSessions:"All other devices have been signed out.",successMessage__update:"Your password has been updated.",title__set:"Set password",title__update:"Update password"},phoneNumberPage:{infoText:"A text message containing a verification code will be sent to this phone number. Message and data rates may apply.",removeResource:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to sign in using this phone number.",successMessage:"{{phoneNumber}} has been removed from your account.",title:"Remove phone number"},successMessage:"{{identifier}} has been added to your account.",title:"Add phone number",verifySubtitle:"Enter the verification code sent to {{identifier}}",verifyTitle:"Verify phone number"},plansPage:{title:"Plans"},profilePage:{fileDropAreaHint:"Recommended size 1:1, up to 10MB.",imageFormDestructiveActionSubtitle:"Remove",imageFormSubtitle:"Upload",imageFormTitle:"Profile image",readonly:"Your profile information has been provided by the enterprise connection and cannot be edited.",successMessage:"Your profile has been updated.",title:"Update profile"},start:{activeDevicesSection:{destructiveAction:"Sign out of device",title:"Active devices"},connectedAccountsSection:{actionLabel__connectionFailed:"Reconnect",actionLabel__reauthorize:"Authorize now",destructiveActionTitle:"Remove",primaryButton:"Connect account",subtitle__disconnected:"This account has been disconnected.",subtitle__reauthorize:"The required scopes have been updated, and you may be experiencing limited functionality. Please re-authorize this application to avoid any issues",title:"Connected accounts"},dangerSection:{deleteAccountButton:"Delete account",title:"Delete account"},emailAddressesSection:{destructiveAction:"Remove email",detailsAction__nonPrimary:"Set as primary",detailsAction__primary:"Complete verification",detailsAction__unverified:"Verify",primaryButton:"Add email address",title:"Email addresses"},enterpriseAccountsSection:{title:"Enterprise accounts"},headerTitle__account:"Profile details",headerTitle__security:"Security",mfaSection:{backupCodes:{actionLabel__regenerate:"Regenerate",headerTitle:"Backup codes",subtitle__regenerate:"Get a fresh set of secure backup codes. Prior backup codes will be deleted and cannot be used.",title__regenerate:"Regenerate backup codes"},phoneCode:{actionLabel__setDefault:"Set as default",destructiveActionLabel:"Remove"},primaryButton:"Add two-step verification",title:"Two-step verification",totp:{destructiveActionTitle:"Remove",headerTitle:"Authenticator application"}},passkeysSection:{menuAction__destructive:"Remove",menuAction__rename:"Rename",primaryButton:"Add a passkey",title:"Passkeys"},passwordSection:{primaryButton__setPassword:"Set password",primaryButton__updatePassword:"Update password",title:"Password"},phoneNumbersSection:{destructiveAction:"Remove phone number",detailsAction__nonPrimary:"Set as primary",detailsAction__primary:"Complete verification",detailsAction__unverified:"Verify phone number",primaryButton:"Add phone number",title:"Phone numbers"},profileSection:{primaryButton:"Update profile",title:"Profile"},usernameSection:{primaryButton__setUsername:"Set username",primaryButton__updateUsername:"Update username",title:"Username"},web3WalletsSection:{destructiveAction:"Remove wallet",detailsAction__nonPrimary:"Set as primary",primaryButton:"Connect wallet",title:"Web3 wallets",web3SelectSolanaWalletScreen:{subtitle:"Select a Solana wallet to connect to your account.",title:"Add a Solana wallet"}}},usernamePage:{successMessage:"Your username has been updated.",title__set:"Set username",title__update:"Update username"},web3WalletPage:{removeResource:{messageLine1:"{{identifier}} will be removed from this account.",messageLine2:"You will no longer be able to sign in using this web3 wallet.",successMessage:"{{web3Wallet}} has been removed from your account.",title:"Remove web3 wallet"},subtitle__availableWallets:"Select a web3 wallet to connect to your account.",subtitle__unavailableWallets:"There are no available web3 wallets.",successMessage:"The wallet has been added to your account.",title:"Add web3 wallet",web3WalletButtonsBlockButton:"{{provider|titleize}}"}},waitlist:{start:{actionLink:"Sign in",actionText:"Already have access?",formButton:"Join the waitlist",subtitle:"Enter your email address and we’ll let you know when your spot is ready",title:"Join the waitlist"},success:{message:"You will be redirected soon...",subtitle:"We’ll be in touch when your spot is ready",title:"Thanks for joining the waitlist!"}},web3SolanaWalletButtons:{connect:"Connect with {{walletName}}",continue:"Continue with {{walletName}}",noneAvailable:'No Solana Web3 wallets detected. Please install a Web3 supported {{ solanaWalletsLink || link("wallet extension") }}.'}};var f=r(65059),b=r(92823),v=r(54662);let y=()=>{let{localization:e}=(0,s.useOptions)();var t=e||{};if(!n||o&&o!==t&&!(0,v.J)(t,o)){o=t;let e={};(0,b.EB)(g,e),(0,b.EB)(t,e),n=e}return n},w=e=>{let t=l.forwardRef((t,r)=>{let n=y(),{localizationKey:o,...a}=t,l=p();return o?"string"==typeof o?(0,i.tZ)(e,{...a,ref:r,children:o}):(0,i.tZ)(e,{...a,ref:r,"data-localization-key":S(o),children:C(o,n,l)||a.children}):(0,i.tZ)(e,{...a,ref:r})}),r=e.displayName||e.name||"Component";return t.displayName=`Localizable${r}`.replace("_",""),t},x=()=>{let{localization:e}=(0,s.useOptions)(),t=y(),r=p(),n=e=>e&&"string"!=typeof e?C(e,t,r):e||"";return{t:n,translateError:e=>{if(!e||"string"==typeof e)return n(e);if((0,a.uX)(e))return n((0,f.u)(`unstable__errors.${e.code}`))||e.message;let{code:t,message:r,longMessage:o,meta:i}=e||{},{paramName:l=""}=i||{};return t?n((0,f.u)(`unstable__errors.${t}__${l}`))||n((0,f.u)(`unstable__errors.${t}`))||o||r:""},locale:e?.locale||g?.locale}},S=e=>e.key,C=(e,t,r)=>{let n,o,i,a=((e,t)=>{let r=(t||"").split("."),n=e;for(let e=0;e<r.length;e++)if(void 0===(n=n[r[e]]))return;return n})(t,e.key),l=e.params,s={...r,...l};var c=a||"";if(!c)return"";let{normalisedString:d,expressions:p}=((e,t)=>{let r=(e.match(/{{.+?}}/g)||[]).map(e=>e.replace(/[{}]/g,"")).map(e=>e.split("|").map(e=>e.trim())).filter(e=>e[0]in t).map(([e,...t])=>({token:e,modifiers:t.map(e=>h(e)).filter(e=>m(e.modifierName))})),n=e;return r.forEach(({token:e})=>{n=n.replace(/{{.+?}}/,`_++${e}++_`)}),{expressions:r,normalisedString:n}})(c,s);return n=d,o=p,i=s,o.forEach(({token:e,modifiers:t})=>{let r=t.reduce((e,t)=>{try{return u[t.modifierName](e,...t.params)}catch(e){return console.warn(e),""}},i[e]);n=n.replace(`_++${e}++_`,r)}),n}},65059:function(e,t,r){r.d(t,{u:()=>n});let n=(e,...t)=>({key:e,params:t[0]})},64750:function(e,t,r){r.r(t),r.d(t,{Portal:()=>u,VirtualBodyRootPortal:()=>p});var n=r(73312),o=r(69144),i=r(8315),a=r(80753),l=r(24152),s=r(22073),c=r(11576),d=r(24676);function u({props:e,component:t,componentName:r,node:u}){let p={...e,...(0,s.L)({routing:e?.routing,path:e?.path})},m=(0,n.tZ)(c.ComponentContextProvider,{componentName:r,props:p,children:(0,n.tZ)(o.Suspense,{fallback:"",children:o.createElement(t,p)})});return p?.routing==="path"?(p?.path||(0,l.yI)(r),i.createPortal((0,n.tZ)(d.PathRouter,{preservedParams:a.Yt,basePath:p.path,children:m}),u)):i.createPortal((0,n.tZ)(d.HashRouter,{preservedParams:a.Yt,children:m}),u)}class p extends o.PureComponent{elRef=document.createElement("div");componentDidMount(){document.body.appendChild(this.elRef)}componentWillUnmount(){document.body.removeChild(this.elRef)}render(){let{props:e,startPath:t,component:r,componentName:a}=this.props;return i.createPortal((0,n.tZ)(d.VirtualRouter,{startPath:t,children:(0,n.tZ)(c.ComponentContextProvider,{componentName:a,props:e??{},children:(0,n.tZ)(o.Suspense,{fallback:"",children:o.createElement(r,e)})})}),this.elRef)}}},80734:function(e,t,r){r.d(t,{X2:()=>d,YV:()=>s,aS:()=>c});var n=r(73312),o=r(61869),i=r(69144),a=r(36788);let[l,,s]=(0,o.uH)("FormFieldContext"),c=e=>{let{id:t,isRequired:r=!1,isDisabled:o=!1,setError:s,setSuccess:c,setWarning:d,setHasPassedComplexity:u,setInfo:p,clearFeedback:m,children:h,feedbackType:g,feedback:f,isFocused:b,...v}=e,y=`${t}-field`,{debounced:w}=(0,a.V2)({feedback:f,feedbackType:g,isFocused:b}),x="error"===w.feedbackType,S=w.feedback?"error"===w.feedbackType?`error-${t}`:`${t}-${w.feedbackType}-feedback`:"",C=i.useMemo(()=>({isRequired:r,isDisabled:o,hasError:x,id:y,fieldId:t,feedbackMessageId:S,setError:s,setSuccess:c,setWarning:d,setInfo:p,clearFeedback:m,setHasPassedComplexity:u,feedbackType:g,feedback:f,isFocused:b}),[r,x,y,t,S,o,s,c,d,p,m,u,g,f,b]);return(0,n.tZ)(l.Provider,{value:{value:{...C,...v,debouncedFeedback:w}},children:e.children})},d=(e,t)=>{let{radioOptions:r,validatePassword:n,hasPassedComplexity:o,isFocused:i,feedback:a,feedbackType:l,setHasPassedComplexity:s,setWarning:c,setSuccess:d,setError:u,setInfo:p,feedbackMessageId:m,fieldId:h,label:g,clearFeedback:f,infoText:b,debouncedFeedback:v,ignorePasswordManager:y,transformer:w,...x}=e;return t?.forEach(t=>{x[t]=e[t]}),x}},30215:function(e,t,r){r.d(t,{zx:()=>T,X6:()=>Q,xu:()=>s,Dt:()=>B,I0:()=>ec,Cc:()=>ey,hr:()=>eM,Ee:()=>en,Dr:()=>ew,Zh:()=>N,lX:()=>V,zM:()=>w,rj:()=>q,l0:()=>D,Ct:()=>$,Th:()=>eL,rU:()=>eg,Tr:()=>eO,Xc:()=>W,NA:()=>ed,II:()=>el,JO:()=>er,p3:()=>eR,Dd:()=>Z,JX:()=>m,$j:()=>ek,v0:()=>es,jo:()=>U,bZ:()=>f,iA:()=>eT,Hr:()=>eW,kC:()=>p,Td:()=>eB,Dl:()=>z,ZD:()=>K,gx:()=>eu,xv:()=>M,rF:()=>R});var n=r(73312),o=r(51217),i=r(69144);let a=e=>{let{hasError:t,isDisabled:r,isLoading:n,isOpen:o,isActive:i,...a}=e;return{"data-error":t||void 0,"data-disabled":r||void 0,"data-loading":n||void 0,"data-open":o||void 0,"data-active":i||void 0,...a}},{applyVariants:l}=(0,o.createVariants)(()=>({base:{boxSizing:"border-box"},variants:{}})),s=i.forwardRef((e,t)=>{let{as:r="div",...o}=e;return(0,n.tZ)(r,{...a(o),css:l(e),ref:t})}),c=(e,t)=>navigator?.userAgent?.match(/(iphone|ipad).+(os).*(\s13_).+safari/i)?{'& > *:not([hidden]):not([style*="visibility: hidden"]) + *:not([hidden]):not([style*="visibility: hidden"])':{marginLeft:"row"===t?e:void 0,marginTop:"col"===t?e:void 0}}:{gap:e},{applyVariants:d,filterProps:u}=(0,o.createVariants)((e,t)=>{let r="col"===t.flexDirection||"colReverse"===t.flexDirection||"col"===t.direction||"colReverse"===t.direction?"col":"row";return{base:{display:"flex"},variants:{direction:{row:{flexDirection:"row"},col:{flexDirection:"column"},rowReverse:{flexDirection:"row-reverse"},columnReverse:{flexDirection:"column-reverse"}},align:{start:{alignItems:"flex-start"},center:{alignItems:"center"},end:{alignItems:"flex-end"},stretch:{alignItems:"stretch"},baseline:{alignItems:"baseline"}},justify:{start:{justifyContent:"flex-start"},center:{justifyContent:"center"},end:{justifyContent:"flex-end"},between:{justifyContent:"space-between"}},wrap:{noWrap:{flexWrap:"nowrap"},wrap:{flexWrap:"wrap"},wrapReverse:{flexWrap:"wrap-reverse"}},gap:{1:c(e.space.$1,r),2:c(e.space.$2,r),3:c(e.space.$3,r),4:c(e.space.$4,r),5:c(e.space.$5,r),6:c(e.space.$6,r),7:c(e.space.$7,r),8:c(e.space.$8,r),9:c(e.space.$9,r)},center:{true:{justifyContent:"center",alignItems:"center"}}},defaultVariants:{direction:"row",align:"stretch",justify:"start",wrap:"noWrap"}}}),p=i.forwardRef((e,t)=>(0,n.tZ)(s,{...u(e),css:d(e),ref:t})),m=i.forwardRef((e,t)=>(0,n.tZ)(p,{...e,direction:"col",ref:t})),{applyVariants:h,filterProps:g}=(0,o.createVariants)(e=>({base:{padding:`${e.space.$3} ${e.space.$4}`,backgroundColor:e.colors.$neutralAlpha50,...o.common.borderVariants(e,{hoverStyles:!1}).normal},variants:{colorScheme:{danger:{color:e.colors.$danger500,backgroundColor:e.colors.$dangerAlpha50,...o.common.borderVariants(e,{hasError:!0}).normal},info:{color:e.colors.$neutralAlpha150,background:e.colors.$neutralAlpha50},warning:{backgroundColor:e.colors.$warningAlpha100,...o.common.borderVariants(e,{hasWarning:!0,hoverStyles:!1}).normal}}},defaultVariants:{colorScheme:"warning"}})),f=e=>(0,n.tZ)(p,{align:"center",justify:"start",...g(e),css:h(e),children:e.children});var b=r(34174);let{applyVariants:v,filterProps:y}=(0,o.createVariants)(e=>({base:{marginRight:e.space.$2x5,width:e.sizes.$4,height:e.sizes.$4},variants:{colorScheme:{danger:{color:e.colors.$danger500},warning:{color:e.colors.$warning500},success:{color:e.colors.$success500},primary:{color:e.colors.$primary500},info:{color:e.colors.$colorMutedForeground}}}})),w=e=>{let{variant:t,...r}=e,o={warning:b.SV,danger:b.SV,primary:b.I$,info:b.I$}[t];return(0,n.tZ)(o,{...y(r),css:v(e)})},x=(0,o.createCssVariables)("accent","bg","borderColor"),{applyVariants:S,filterProps:C}=(0,o.createVariants)(e=>({base:{color:x.accent,flexShrink:0,backgroundColor:x.bg,boxShadow:e.shadows.$badge,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:x.borderColor,borderRadius:e.radii.$sm,padding:`${e.space.$0x25} ${e.space.$1x5}`,display:"inline-flex",marginRight:"1px"},variants:{textVariant:{...o.common.textVariants(e)},colorScheme:{primary:{[x.accent]:e.colors.$borderAlpha600,[x.bg]:e.colors.$borderAlpha50,[x.borderColor]:e.colors.$borderAlpha150},secondary:{[x.accent]:e.colors.$colorPrimaryForeground,[x.bg]:e.colors.$primary500,[x.borderColor]:e.colors.$primary500},danger:{[x.accent]:e.colors.$danger500,[x.bg]:e.colors.$dangerAlpha50,[x.borderColor]:e.colors.$dangerAlpha300},success:{[x.accent]:e.colors.$success500,[x.bg]:e.colors.$successAlpha50,[x.borderColor]:e.colors.$successAlpha300},warning:{[x.accent]:e.colors.$warning500,[x.bg]:e.colors.$warningAlpha50,[x.borderColor]:e.colors.$warningAlpha300}}},defaultVariants:{colorScheme:"primary",textVariant:"caption"}})),$=e=>(0,n.tZ)(p,{...C(e),center:!0,as:"span",css:S(e),"data-color":e.colorScheme||"primary"});var _=r(64204);let k=(0,o.createCssVariables)("accent","accentHover","accentContrast","alpha","border"),{applyVariants:P,filterProps:I}=(0,o.createVariants)((e,t)=>({base:{margin:0,padding:0,borderWidth:0,outline:0,userSelect:"none",cursor:"pointer",backgroundColor:"unset",color:"currentColor",borderRadius:e.radii.$md,position:"relative",isolation:"isolate",...o.common.centeredFlex("inline-flex"),...o.common.disabled(e),transitionProperty:e.transitionProperty.$common,transitionDuration:e.transitionDuration.$controls},variants:{textVariant:o.common.textVariants(e),size:{iconLg:{width:e.sizes.$13},xs:{padding:`${e.space.$1} ${e.space.$3}`},sm:{padding:`${e.space.$1x5} ${e.space.$3}`},md:{padding:`${e.space.$2x5} ${e.space.$5}`}},colorScheme:{primary:{[k.accent]:e.colors.$primary500,[k.accentHover]:e.colors.$primaryHover,[k.border]:e.colors.$primary500,[k.accentContrast]:e.colors.$colorPrimaryForeground,[k.alpha]:e.colors.$neutralAlpha50},secondary:{[k.accent]:e.colors.$colorBackground,[k.accentHover]:`color-mix(in srgb, ${k.accent}, ${e.colors.$neutralAlpha50})`,[k.border]:e.colors.$primary500,[k.accentContrast]:e.colors.$colorForeground,[k.alpha]:e.colors.$neutralAlpha50},neutral:{[k.accent]:e.colors.$neutralAlpha600,[k.accentHover]:e.colors.$neutralAlpha700,[k.border]:e.colors.$neutralAlpha200,[k.accentContrast]:e.colors.$white,[k.alpha]:e.colors.$neutralAlpha50},danger:{[k.accent]:e.colors.$danger500,[k.accentHover]:e.colors.$danger600,[k.accentContrast]:e.colors.$white,[k.border]:e.colors.$danger500,[k.alpha]:e.colors.$dangerAlpha50}},variant:{solid:{backgroundColor:k.accent,color:k.accentContrast,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:k.accent,"&:hover":{backgroundColor:k.accentHover},"&:focus":t.hoverAsFocus?{backgroundColor:k.accentHover}:void 0},outline:{borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,color:e.colors.$neutralAlpha600,"&:hover":{backgroundColor:e.colors.$neutralAlpha50},"&:focus":t.hoverAsFocus?{backgroundColor:e.colors.$neutralAlpha50,borderColor:e.colors.$borderAlpha300}:void 0},bordered:{borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,color:k.accentContrast,backgroundColor:k.accent,"&:hover":{backgroundColor:k.accentHover},"&:focus":t.hoverAsFocus?{backgroundColor:k.accentHover,borderColor:e.colors.$borderAlpha300}:void 0},ghost:{color:k.accent,"&:hover":{backgroundColor:k.alpha,color:k.accentHover},"&:focus":t.hoverAsFocus?{backgroundColor:k.alpha,color:k.accentHover}:void 0},link:{minHeight:"fit-content",height:"fit-content",width:"fit-content",textTransform:"none",padding:0,color:e.colors.$primary500,"&:hover":{textDecoration:"underline"},"&:focus":t.hoverAsFocus?{textDecoration:"underline"}:void 0},linkDanger:{minHeight:"fit-content",height:"fit-content",width:"fit-content",textTransform:"none",padding:0,color:e.colors.$danger500,"&:hover":{textDecoration:"underline"},"&:focus":t.hoverAsFocus?{textDecoration:"underline"}:void 0},unstyled:{},roundWrapper:{padding:0,margin:0,height:"unset",width:"unset",minHeight:"unset"}},block:{true:{width:"100%"}},focusRing:{true:{...o.common.focusRing(e)}}},defaultVariants:{textVariant:"buttonLarge",variant:"solid",colorScheme:"primary",size:"sm",focusRing:!0}})),A=({children:e})=>(0,n.BX)(p,{align:"center",as:"span",children:[e,(0,n.tZ)(_.Icon,{elementDescriptor:_.descriptors.buttonArrowIcon,icon:b.p8,sx:e=>({marginLeft:e.space.$2,width:e.sizes.$2x5,height:e.sizes.$2x5,opacity:e.opacity.$inactive})})]}),T=i.forwardRef((e,t)=>{let r={...e,isDisabled:e.isDisabled||e.isLoading},{isLoading:o,isDisabled:i,hoverAsFocus:l,loadingText:s,children:c,hasArrow:d,onClick:u,...m}=I(r);return(0,n.BX)("button",{...a(m),type:void 0,onClick:e=>("submit"!==m.type&&e.preventDefault(),u?.(e)),disabled:i,css:P(r),"data-variant":e.variant||"solid","data-color":e.colorScheme||"primary",ref:t,children:[o&&(0,n.BX)(p,{as:"span",gap:2,center:!0,css:{position:"relative"},children:[(0,n.tZ)(_.Spinner,{"aria-label":s||"Loading",elementDescriptor:_.descriptors.spinner,sx:{position:s?void 0:"absolute"}}),s||(0,n.tZ)("span",{style:{display:"inline-flex",visibility:"hidden"},children:c})]}),!o&&(d?(0,n.tZ)(A,{children:c}):c)]})}),R=i.forwardRef((e,t)=>{let r={...e,isDisabled:e.isDisabled||e.isLoading},{loadingText:o,isDisabled:i,hoverAsFocus:l,children:s,onClick:c,...d}=I(r);return(0,n.tZ)("button",{...a(d),type:void 0,onClick:e=>("submit"!==d.type&&e.preventDefault(),c?.(e)),css:P(r),disabled:i,"data-variant":e.variant||"solid","data-color":e.colorScheme||"primary",ref:t,children:s})}),z=i.forwardRef((e,t)=>(0,n.tZ)(s,{as:"dl",css:{margin:0},...e,ref:t})),Z=i.forwardRef((e,t)=>(0,n.tZ)(s,{as:"dd",css:{margin:0},...e,ref:t})),B=i.forwardRef((e,t)=>(0,n.tZ)(s,{as:"dt",css:{margin:0},...e,ref:t})),D=i.forwardRef((e,t)=>(0,n.tZ)(p,{direction:"col",as:"form",...e,ref:t}));var E=r(80734);let{applyVariants:F,filterProps:L}=(0,o.createVariants)(e=>({base:{boxSizing:"border-box",margin:0,fontSize:"inherit",...o.common.disabled(e)},variants:{variant:o.common.textVariants(e),colorScheme:{body:{color:e.colors.$colorForeground},onPrimaryBg:{color:e.colors.$colorPrimaryForeground},danger:{color:e.colors.$danger500},success:{color:e.colors.$success500},warning:{color:e.colors.$warning500},secondary:{color:e.colors.$colorMutedForeground},inherit:{color:"inherit"}},truncate:{true:{textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}},defaultVariants:{variant:"body",colorScheme:"inherit"}})),M=i.forwardRef((e,t)=>{let{as:r="p",...o}=e;return(0,n.tZ)(r,{...a(L(o)),"data-variant":e.variant||"body","data-color":e.colorScheme||"inherit",css:F(e),ref:t})}),{applyVariants:O}=(0,o.createVariants)(e=>({base:{marginTop:e.sizes.$1x5,animation:`${o.animations.textInSmall} ${e.transitionDuration.$fast}`,display:"flex",gap:e.sizes.$1,position:"absolute",top:"0",textAlign:"left"},variants:{}})),U=(0,i.forwardRef)((e,t)=>{let{hasError:r}=(0,E.YV)()||{};if(!r&&!e.children)return null;let{children:o,...i}=e;return(0,n.BX)(M,{ref:t,colorScheme:"danger",...i,css:O(e),children:[(0,n.tZ)(_.Icon,{colorScheme:"danger",icon:b.bR}),o]})}),{applyVariants:j}=(0,o.createVariants)(e=>({base:{marginTop:e.sizes.$1x5,animation:`${o.animations.textInSmall} ${e.transitionDuration.$fast}`,display:"flex",gap:e.sizes.$1,position:"absolute",top:"0",textAlign:"left"},variants:{}})),W=(0,i.forwardRef)((e,t)=>{let{children:r,...o}=e;return(0,n.BX)(M,{ref:t,colorScheme:"secondary",...o,css:j(e),children:[(0,n.tZ)(_.Icon,{colorScheme:"success",icon:b.fU}),r]})}),N=(0,i.forwardRef)((e,t)=>{let{hasError:r}=(0,E.YV)()||{};return r||e.children?(0,n.tZ)(M,{ref:t,colorScheme:"secondary",...e,css:j(e)}):null}),{applyVariants:H}=(0,o.createVariants)(e=>({base:{color:e.colors.$colorForeground,...o.common.textVariants(e).subtitle,...o.common.disabled(e)},variants:{}})),V=e=>{let{id:t}=(0,E.YV)(),{isRequired:r,htmlFor:o,...i}=e;return(0,n.tZ)("label",{...a(i),htmlFor:o??t,css:H(e),children:e.children})},K=(0,i.forwardRef)((e,t)=>{let{children:r,...o}=e;return(0,n.BX)(M,{ref:t,colorScheme:"secondary",...o,css:j(e),children:[(0,n.tZ)(_.Icon,{colorScheme:"warning",icon:b.bR}),r]})}),{applyVariants:X,filterProps:Y}=(0,o.createVariants)(e=>({base:{display:"grid"},variants:{align:{start:{alignItems:"flex-start"},center:{alignItems:"center"},end:{alignItems:"flex-end"},stretch:{alignItems:"stretch"},baseline:{alignItems:"baseline"}},justify:{start:{justifyContent:"flex-start"},center:{justifyContent:"center"},end:{justifyContent:"flex-end"},between:{justifyContent:"space-between"},around:{justifyContent:"space-around"},stretch:{justifyContent:"stretch"}},columns:{1:{gridTemplateColumns:"1fr"},2:{gridTemplateColumns:"repeat(2, 1fr)"},3:{gridTemplateColumns:"repeat(3, 1fr)"},4:{gridTemplateColumns:"repeat(4, 1fr)"},6:{gridTemplateColumns:"repeat(6, 1fr)"}},gap:{1:{gap:e.space.$1},2:{gap:e.space.$2},3:{gap:e.space.$3},4:{gap:e.space.$4},5:{gap:e.space.$5},6:{gap:e.space.$6},7:{gap:e.space.$7},8:{gap:e.space.$8},9:{gap:e.space.$9}}},defaultVariants:{align:"stretch",justify:"stretch",wrap:"noWrap"}})),q=i.forwardRef((e,t)=>(0,n.tZ)(s,{...Y(e),css:X(e),ref:t})),{applyVariants:G,filterProps:J}=(0,o.createVariants)(e=>({base:{boxSizing:"border-box",color:`${e.colors.$colorForeground}`,margin:0},variants:{textVariant:{...o.common.textVariants(e)}},defaultVariants:{as:"h1",textVariant:"h1"}})),Q=e=>{let{as:t="h1",...r}=e;return(0,n.tZ)(t,{...J(r),css:G(e)})},{applyVariants:ee,filterProps:et}=(0,o.createVariants)(e=>({base:{flexShrink:0},variants:{size:{xs:{width:e.sizes.$2x5,height:e.sizes.$2x5},sm:{width:e.sizes.$3,height:e.sizes.$3},md:{width:e.sizes.$4,height:e.sizes.$4},lg:{width:e.sizes.$5,height:e.sizes.$5}},colorScheme:{success:{color:e.colors.$success500},danger:{color:e.colors.$danger500},warning:{color:e.colors.$warning500},neutral:{color:e.colors.$neutralAlpha400}}},defaultVariants:{size:"md"}})),er=e=>{let{icon:t,...r}=e;return(0,n.tZ)(t,{...et(r),css:ee(e)})},en=i.forwardRef((e,t)=>(0,n.tZ)("img",{crossOrigin:"anonymous",...a(e),ref:t}));var eo=r(17703);let{applyVariants:ei,filterProps:ea}=(0,o.createVariants)((e,t)=>({base:{boxSizing:"border-box",margin:0,padding:`${e.space.$1x5} ${e.space.$3}`,backgroundColor:e.colors.$colorInput,color:e.colors.$colorInputForeground,outline:"transparent solid 2px",outlineOffset:"2px",maxHeight:e.sizes.$9,width:"checkbox"===t.type?e.sizes.$4:"100%",aspectRatio:"checkbox"===t.type?"1/1":"unset",accentColor:e.colors.$primary500,...o.common.textVariants(e).body,...o.common.disabled(e),[o.mqu.ios]:{fontSize:e.fontSizes.$lg,'&:not([type="checkbox"]):not([type="radio"])':{WebkitAppearance:"none"}},":autofill":{animationName:"onAutoFillStart"},"::placeholder":{color:e.colors.$colorMutedForeground}},variants:{variant:{default:{...o.common.borderVariants(e,t).normal},unstyled:{borderWidth:0,boxShadow:"unset",backgroundColor:"transparent"}}},defaultVariants:{variant:"default"}})),el=i.forwardRef((e,t)=>{var r;let o=(0,E.YV)()||{},{t:a}=(0,eo.zJ)(),{feedbackMessageId:l,ignorePasswordManager:s,feedbackType:c,...d}=(0,E.X2)(o,["feedbackMessageId","ignorePasswordManager","feedbackType"]),u=ea({...e,hasError:e.hasError||d.hasError}),{onChange:p}=(r=u.onChange,{onChange:function(e){e.persist(),"function"==typeof r&&r(e)},ref:i.useRef(null)}),{isDisabled:m,hasError:h,focusRing:g,isRequired:f,type:b,...v}=u,y=m||d.isDisabled,w=f||d.isRequired,x=h||d.hasError,S="email"===b?{type:"text",pattern:"^.*@[a-zA-Z0-9\\-]+\\.[a-zA-Z0-9\\-\\.]+$",inputMode:"email",title:a((0,eo.u1)("formFieldInput__emailAddress_format"))}:{type:b||"text"};return(0,n.tZ)("input",{...v,...S,...s?{"data-1p-ignore":!0}:void 0,ref:t,onChange:p,disabled:m,required:w,id:e.id||d.id,"aria-invalid":x,"aria-describedby":l||void 0,"aria-required":w,"aria-disabled":y,"data-feedback":c,"data-variant":e.variant||"default",css:ei(e)})}),es=i.forwardRef((e,t)=>{let r=(0,E.YV)()||{},{feedbackType:o}=(0,E.X2)(r,["feedbackType","data-active"]),{isDisabled:i,hasError:a,focusRing:l,isRequired:s,...c}=ea({...e,hasError:e.hasError});return(0,n.tZ)("div",{...c,ref:t,id:e.id,"aria-invalid":a,"data-feedback":o,"data-variant":e.variant||"default","data-focus-within":l,css:ei(e)})}),ec=i.forwardRef((e,t)=>(0,n.tZ)(el,{...e,type:"checkbox",ref:t})),ed=i.forwardRef((e,t)=>(0,n.tZ)(el,{...e,type:"radio",ref:t})),eu=i.forwardRef((e,t)=>{let{isDisabled:r,hasError:o,focusRing:i,isRequired:a,...l}=e,s=r||e.isDisabled,c=a||e.isRequired,d=o||e.hasError;return(0,n.tZ)("textarea",{...l,ref:t,disabled:s,required:c,"aria-invalid":d,"aria-required":c,css:ei(e)})});var ep=r(12244);let{applyVariants:em,filterProps:eh}=(0,o.createVariants)(e=>({base:{boxSizing:"border-box",display:"inline-flex",alignItems:"center",margin:0,cursor:"pointer",...o.common.disabled(e),textDecoration:"none","&:hover":{textDecoration:"underline"}},variants:{variant:o.common.textVariants(e),colorScheme:{primary:{color:e.colors.$primary500,"&:hover":{color:e.colors.$primary400},"&:active":{color:e.colors.$primary600}},danger:{color:e.colors.$danger500,"&:hover":{color:e.colors.$danger400},"&:active":{color:e.colors.$danger600}},neutral:{color:e.colors.$colorMutedForeground},inherit:{color:"inherit"}},focusRing:{true:{"&:focus":{outline:"none",...o.common.focusRing(e)}}}},defaultVariants:{colorScheme:"primary",variant:"body",focusRing:!1}})),eg=e=>{let{isExternal:t,children:r,href:o,onClick:i,...l}=e,s=(0,ep.vt)(o),c=i?e=>{s||e.preventDefault(),i(e)}:void 0;return(0,n.tZ)("a",{...a(eh(l)),onClick:c,href:s||"",target:s&&t?"_blank":void 0,rel:s&&t?"noopener noreferrer":void 0,css:em(e),children:r})},ef=(0,o.createCssVariables)("accent","bg","borderColor"),{applyVariants:eb,filterProps:ev}=(0,o.createVariants)(e=>({base:{color:ef.accent,background:ef.bg,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderRadius:e.radii.$lg,borderColor:ef.borderColor,height:e.space.$4,minWidth:e.space.$5,padding:`${e.space.$0x5} ${e.space.$1}`,display:"inline-flex"},variants:{textVariant:{...o.common.textVariants(e)},colorScheme:{primary:{[ef.accent]:e.colors.$colorPrimaryForeground,[ef.bg]:`linear-gradient(180deg, ${e.colors.$whiteAlpha300} 0%, ${e.colors.$transparent} 100%), ${e.colors.$primary500}`,borderWidth:0},outline:{[ef.accent]:e.colors.$neutralAlpha600,[ef.bg]:"transparent",[ef.borderColor]:e.colors.$borderAlpha150}}},defaultVariants:{colorScheme:"primary",textVariant:"caption"}})),ey=e=>(0,n.tZ)(p,{...ev(e),center:!0,as:"span",css:[eb(e),{lineHeight:0}]}),ew=i.forwardRef((e,t)=>(0,n.tZ)("span",{...e,ref:t})),{size:ex,thickness:eS,speed:eC}=(0,o.createCssVariables)("speed","size","thickness"),{applyVariants:e$,filterProps:e_}=(0,o.createVariants)(e=>({base:{display:"inline-block",borderRadius:"99999px",borderTop:`${eS} solid currentColor`,borderRight:`${eS} solid currentColor`,borderBottomWidth:eS,borderLeftWidth:eS,borderBottomStyle:"solid",borderLeftStyle:"solid",borderBottomColor:e.colors.$transparent,borderLeftColor:e.colors.$transparent,opacity:1,animation:`${o.animations.spinning} ${eC} linear 0s infinite normal none running`,width:[ex],height:[ex],minWidth:[ex],minHeight:[ex]},variants:{colorScheme:{primary:{borderTopColor:e.colors.$primary500,borderRightColor:e.colors.$primary500,opacity:1},neutral:{borderTopColor:e.colors.$borderAlpha700,borderRightColor:e.colors.$borderAlpha700,opacity:1}},thickness:{sm:{[eS]:e.sizes.$0x5},md:{[eS]:e.sizes.$1}},size:{xs:{[ex]:e.sizes.$3},sm:{[ex]:e.sizes.$4},md:{[ex]:e.sizes.$5},lg:{[ex]:e.sizes.$6},xl:{[ex]:e.sizes.$8}},speed:{slow:{[eC]:"600ms"},normal:{[eC]:"400ms"}}},defaultVariants:{speed:"normal",thickness:"sm",size:"sm"}})),ek=e=>(0,n.tZ)("span",{...e_(e),css:e$(e),"aria-busy":!0,"aria-live":"polite"});var eP=r(67504);let{applyVariants:eI,filterProps:eA}=(0,o.createVariants)(e=>({base:{borderSpacing:"0",borderCollapse:"separate",borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:e.colors.$borderAlpha150,borderRadius:e.radii.$lg,width:"100%",">:not([hidden])~:not([hidden])":{borderBottomWidth:"0px",borderTopWidth:"1px",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:"0px",borderColor:e.colors.$borderAlpha150},"td:not(:first-of-type)":{paddingLeft:e.space.$2},"th:not(:first-of-type)":{paddingLeft:e.space.$2},"tr > td":{borderTopWidth:e.borderWidths.$normal,borderTopStyle:e.borderStyles.$solid,borderTopColor:e.colors.$borderAlpha150,paddingBottom:e.space.$2,paddingTop:e.space.$2,paddingLeft:e.space.$4,paddingRight:e.space.$4},"tbody > :not([hidden])~:not([hidden])":{borderBottomWidth:"0px",borderTopWidth:"1px",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:"0px",borderColor:e.colors.$borderAlpha150},"tr:hover td:first-of-type":{borderBottomLeftRadius:e.radii.$lg},"tr:hover td:last-of-type":{borderBottomRightRadius:e.radii.$lg},"tr > th:first-of-type":{paddingLeft:e.space.$5},"thead::after":{content:'""',display:"block"}},variants:{tableHeadVisuallyHidden:{true:{thead:{...eP.y.visuallyHidden()},"tr:first-of-type td":{borderTop:"none"}}}}})),eT=i.forwardRef((e,t)=>(0,n.tZ)(s,{as:"table",...eA(e),css:eI(e),ref:t})),eR=i.forwardRef((e,t)=>(0,n.tZ)(s,{as:"tbody",...e,ref:t})),{applyVariants:ez,filterProps:eZ}=(0,o.createVariants)(e=>({base:{fontSize:e.fontSizes.$xs,fontWeight:e.fontWeights.$normal,color:e.colors.$colorForeground},variants:{}})),eB=i.forwardRef((e,t)=>(0,n.tZ)(s,{as:"td",...eZ(e),css:ez(e),ref:t}));var eD=r(25407);let{applyVariants:eE,filterProps:eF}=(0,o.createVariants)(e=>({base:{textAlign:"left",fontSize:e.fontSizes.$sm,fontWeight:e.fontWeights.$normal,color:eD.O9.setAlpha(e.colors.$colorForeground,.62),padding:`${e.space.$2} ${e.space.$4}`},variants:{}})),eL=i.forwardRef((e,t)=>(0,n.tZ)(s,{as:"th",...eF(e),css:eE(e),ref:t})),eM=i.forwardRef((e,t)=>(0,n.tZ)(s,{as:"thead",...e,ref:t})),eO=i.forwardRef((e,t)=>(0,n.tZ)(s,{as:"tr",...e,ref:t})),{applyVariants:eU,filterProps:ej}=(0,o.createVariants)(e=>({base:{border:"none",height:e.space.$px,backgroundColor:e.colors.$neutralAlpha100},variants:{}})),eW=i.forwardRef((e,t)=>(0,n.tZ)(s,{as:"hr",...ej(e),css:eU(e),ref:t}))},85117:function(e,t,r){r.d(t,{X:()=>o,t:()=>i});var n=r(69144);let o=n.createContext(null);o.displayName="RouteContext";let i=()=>{let e=n.useContext(o);if(!e)throw Error("useRouter called while Router is null");return e}},24676:function(e,t,r){r.r(t),r.d(t,{VirtualRouter:()=>P,Route:()=>g,RouteContext:()=>n.X,HashRouter:()=>$,hashRouterBase:()=>C,PathRouter:()=>_,VIRTUAL_ROUTER_BASE_PATH:()=>k,Switch:()=>I,useRouter:()=>n.t});var n=r(85117),o=r(73312),i=r(69144),a=r(63872),l=r(61869),s=r(8315);let c=(e,t,r,n)=>{let o=e;r&&(o=t,n||(o+="/"+r)),o.startsWith("//")&&(o=o.substr(1));let i=t+(r?"/"+r:"");return i.startsWith("//")&&(i=i.substr(1)),[o,i]};function d(e,t){let r=[];return function(e,t,r={}){let{decode:n=e=>e}=r;return function(r){let o=e.exec(r);if(!o)return!1;let{0:i,index:a}=o,l=Object.create(null);for(let e=1;e<o.length;e++){if(void 0===o[e])continue;let r=t[e-1];"*"===r.modifier||"+"===r.modifier?l[r.name]=o[e].split(r.prefix+r.suffix).map(e=>n(e,r)):l[r.name]=n(o[e],r)}return{path:i,index:a,params:l}}}(function e(t,r,n){if(t instanceof RegExp){if(!r)return t;let e=t.source.match(/\((?!\?)/g);if(e)for(let t=0;t<e.length;t++)r.push({name:t,prefix:"",suffix:"",modifier:"",pattern:""});return t}if(Array.isArray(t)){let o=t.map(t=>e(t,r,n).source);return RegExp(`(?:${o.join("|")})`,p(n))}return function(e,t,r={}){let{strict:n=!1,start:o=!0,end:i=!0,encode:a=e=>e}=r,l=`[${u(r.endsWith||"")}]|$`,s=`[${u(r.delimiter||"/#?")}]`,c=o?"^":"";for(let r of e)if("string"==typeof r)c+=u(a(r));else{let e=u(a(r.prefix)),n=u(a(r.suffix));if(r.pattern)if(t&&t.push(r),e||n)if("+"===r.modifier||"*"===r.modifier){let t="*"===r.modifier?"?":"";c+=`(?:${e}((?:${r.pattern})(?:${n}${e}(?:${r.pattern}))*)${n})${t}`}else c+=`(?:${e}(${r.pattern})${n})${r.modifier}`;else c+=`(${r.pattern})${r.modifier}`;else c+=`(?:${e}${n})${r.modifier}`}if(i)n||(c+=`${s}?`),c+=r.endsWith?`(?=${l})`:"$";else{let t=e[e.length-1],r="string"==typeof t?s.indexOf(t[t.length-1])>-1:void 0===t;n||(c+=`(?:${s}(?=${l}))?`),r||(c+=`(?=${s}|${l})`)}return new RegExp(c,p(r))}(function(e,t={}){let r=function(e){let t=[],r=0;for(;r<e.length;){let n=e[r];if("*"===n||"+"===n||"?"===n){t.push({type:"MODIFIER",index:r,value:e[r++]});continue}if("\\"===n){t.push({type:"ESCAPED_CHAR",index:r++,value:e[r++]});continue}if("{"===n){t.push({type:"OPEN",index:r,value:e[r++]});continue}if("}"===n){t.push({type:"CLOSE",index:r,value:e[r++]});continue}if(":"===n){let n="",o=r+1;for(;o<e.length;){let t=e.charCodeAt(o);if(t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||95===t){n+=e[o++];continue}break}if(!n)throw TypeError(`Missing parameter name at ${r}`);t.push({type:"NAME",index:r,value:n}),r=o;continue}if("("===n){let n=1,o="",i=r+1;if("?"===e[i])throw TypeError(`Pattern cannot start with "?" at ${i}`);for(;i<e.length;){if("\\"===e[i]){o+=e[i++]+e[i++];continue}if(")"===e[i]){if(0==--n){i++;break}}else if("("===e[i]&&(n++,"?"!==e[i+1]))throw TypeError(`Capturing groups are not allowed at ${i}`);o+=e[i++]}if(n)throw TypeError(`Unbalanced pattern at ${r}`);if(!o)throw TypeError(`Missing pattern at ${r}`);t.push({type:"PATTERN",index:r,value:o}),r=i;continue}t.push({type:"CHAR",index:r,value:e[r++]})}return t.push({type:"END",index:r,value:""}),t}(e),{prefixes:n="./"}=t,o=`[^${u(t.delimiter||"/#?")}]+?`,i=[],a=0,l=0,s="",c=e=>{if(l<r.length&&r[l].type===e)return r[l++].value},d=e=>{let t=c(e);if(void 0!==t)return t;let{type:n,index:o}=r[l];throw TypeError(`Unexpected ${n} at ${o}, expected ${e}`)},p=()=>{let e,t="";for(;e=c("CHAR")||c("ESCAPED_CHAR");)t+=e;return t};for(;l<r.length;){let e=c("CHAR"),t=c("NAME"),r=c("PATTERN");if(t||r){let l=e||"";-1===n.indexOf(l)&&(s+=l,l=""),s&&(i.push(s),s=""),i.push({name:t||a++,prefix:l,suffix:"",pattern:r||o,modifier:c("MODIFIER")||""});continue}let l=e||c("ESCAPED_CHAR");if(l){s+=l;continue}if(s&&(i.push(s),s=""),c("OPEN")){let e=p(),t=c("NAME")||"",r=c("PATTERN")||"",n=p();d("CLOSE"),i.push({name:t||(r?a++:""),pattern:t&&!r?o:r,prefix:e,suffix:n,modifier:c("MODIFIER")||""});continue}d("END")}return i}(t,n),r,n)}(e,r,t),r,t)}function u(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function p(e){return e&&e.sensitive?"":"i"}var m=r(65695);let h=({canActivate:e,children:t})=>{let{navigateToFlowStart:r}=(0,m.zk)(),n=(0,l.cL)();return(i.useEffect(()=>{e(n)||r()}),e(n))?(0,o.tZ)(o.HY,{children:t}):null};function g(e){let t=(0,n.t)();if(!e.children)return null;if(!e.index&&!e.path)return(0,o.tZ)(o.HY,{children:e.children});if(!t.matches(e.path,e.index))return null;let[r,i]=c(t.indexPath,t.fullPath,e.path,e.index),l=(e,{searchParams:t}={})=>{let r=new URL(e,window.location.origin+i+"/");return t&&(r.search=t.toString()),r.pathname=(0,a.Os)(r.pathname),r},s=(e,n)=>{let[o,l]=c(r,i,e,n),s=(0,a.Os)(t.currentPath),u=e&&d(l+"/:foo*")(s)||n&&d(o)(s)||n&&d(l)(s)||!1;return!1!==u&&u.params},u=t.getMatchData(e.path,e.index)||{},p={};for(let[e,t]of Object.entries(u))p[e]=t;let m=(e.flowStart?(0,a.hb)(t.fullPath).replace("/"+t.basePath,""):t.flowStartPath)||t.startPath;return(0,o.tZ)(n.X.Provider,{value:{basePath:t.basePath,startPath:t.startPath,flowStartPath:m,indexPath:r,fullPath:i,currentPath:t.currentPath,queryParams:t.queryParams,queryString:t.queryString,baseNavigate:t.baseNavigate,getMatchData:s,matches:(e,t)=>!!s(e,t),resolve:l,navigate:(e,{searchParams:r}={})=>{let n=l(e,{searchParams:r});return t.baseNavigate(n)},refresh:t.refresh,params:p,urlStateParam:t.urlStateParam},children:e.canActivate?(0,o.tZ)(h,{canActivate:e.canActivate,children:e.children}):e.children})}let f=e=>"pushstate"!==e&&"replacestate"!==e,b={popstate:"traverse",pushstate:"push",replacestate:"replace"},v=new Set,y=new Set,w=null,x=null,S=({basePath:e,startPath:t,getPath:r,getQueryString:u,internalNavigate:p,refreshEvents:m,preservedParams:h,urlStateParam:S,children:C})=>{let{navigate:$}=(0,l.cL)(),[_,k]=i.useState({path:r(),queryString:u()}),P=_.path,I=_.queryString,A=(0,a.vl)(_.queryString),T=(e,t)=>{let[r,n]=c("","",e,t),o=(0,a.Os)(P),i=e&&d(n+"/:foo*")(o)||t&&d(r)(o)||t&&d(n)(o)||!1;return!1!==i&&i.params},R=i.useCallback(()=>{let e=r(),t=u();(e!==P||t!==I)&&k({path:e,queryString:t})},[P,I,r,u]),z=i.useRef(!1),Z=i.useCallback(()=>{if(z.current)return;let t=r();(!e||t.startsWith("/"+e))&&R()},[e,r,R]),B=i.useRef(Z);B.current=Z,i.useEffect(()=>{if(!m)return;let e=()=>B.current(),t=m.filter(f),r=m.map(e=>b[e]).filter(e=>!!e);if("undefined"!=typeof window&&"navigation"in window&&"function"==typeof window.navigation?.addEventListener){let n=window.navigation,o=new Set(r),i=t=>{o.has(t.navigationType)&&Promise.resolve().then(e)};n.addEventListener("currententrychange",i);let a=t.filter(e=>!b[e]);return a.forEach(t=>window.addEventListener(t,e)),()=>{n.removeEventListener("currententrychange",i),a.forEach(t=>window.removeEventListener(t,e))}}return m.includes("pushstate")&&(!function(){if(w)return;let e=history.pushState.bind(history);w=e,history.pushState=(...t)=>{e(...t),v.forEach(e=>e())}}(),v.add(e)),m.includes("replacestate")&&(!function(){if(x)return;let e=history.replaceState.bind(history);x=e,history.replaceState=(...t)=>{e(...t),y.forEach(e=>e())}}(),y.add(e)),t.forEach(t=>window.addEventListener(t,e)),()=>{v.delete(e),y.delete(e),t.forEach(t=>window.removeEventListener(t,e))}},[m]);let D=async t=>{if(!t)return;let r=t.origin!==window.location.origin;if(!t.pathname.startsWith("/"+e)||r){let e=await $(t.href);return R(),e}if(h){let e=(0,a.vl)(t.search);h.forEach(t=>{!e[t]&&A[t]&&(e[t]=A[t])}),t.search=(0,a.f0)(e)}z.current=!0;try{let e=await p(t,{metadata:{navigationType:"internal"}});return(0,s.flushSync)(()=>{k({path:t.pathname,queryString:t.search})}),e}finally{z.current=!1}};return(0,o.tZ)(n.X.Provider,{value:{basePath:e,startPath:t,flowStartPath:t,fullPath:"",indexPath:"",currentPath:P,queryString:I,queryParams:A,getMatchData:T.bind(void 0),matches:((e,t)=>!!T(e,t)).bind(void 0),baseNavigate:D.bind(void 0),navigate:async()=>{},resolve:(e=>new URL(e,window.location.origin)).bind(void 0),refresh:R.bind(void 0),params:{},urlStateParam:S},children:(0,o.tZ)(g,{path:e,children:C})})},C="CLERK-ROUTER/HASH",$=({preservedParams:e,children:t})=>{let r=async e=>{if(e)return window.location.hash=(0,a.M)(e).substring(1+C.length),Promise.resolve()},n=()=>new URL((0,a.eT)(window.location.hash)?window.location.origin+window.location.hash.substring(1):window.location.origin);return(0,o.tZ)(S,{getPath:()=>"/"===n().pathname?"/"+C:"/"+C+n().pathname,basePath:C,startPath:"",getQueryString:()=>n().search,internalNavigate:r,refreshEvents:["popstate","hashchange"],preservedParams:e,children:t})},_=({basePath:e,preservedParams:t,children:r})=>{let{navigate:n}=(0,l.cL)(),[s,c]=i.useState(!1);if(!n)throw Error("Clerk: Missing navigate option.");let d=(e,t)=>{if(e)return n((0,a.M)(e),t)};return(i.useEffect(()=>{(async()=>{if((0,a.eT)(window.location.hash)){let e=(0,a.z9)(new URL(window.location.href));await d(e.href,{replace:!0}),c(!0)}})()},[c,n,window.location.hash]),(0,a.eT)(window.location.hash)&&!s)?null:(0,o.tZ)(S,{basePath:e.substring(1),startPath:"",getPath:()=>window.location.pathname,getQueryString:()=>window.location.search,internalNavigate:d,refreshEvents:["pushstate","replacestate","popstate"],preservedParams:t,children:r})},k="CLERK-ROUTER/VIRTUAL",P=({startPath:e,preservedParams:t,onExternalNavigate:r,children:n})=>{let{__internal_addNavigationListener:a}=(0,l.cL)(),[s,c]=i.useState(new URL("/"+k+e,window.location.origin)),{urlStateParam:d,removeQueryParam:u}=(0,m._6)();return(0,i.useEffect)(()=>{let e=()=>{};return r&&(e=a(r)),()=>{e()}},[]),d.componentName&&u(),(0,o.tZ)(S,{getPath:()=>s.pathname,basePath:k,startPath:e,getQueryString:()=>s.search,internalNavigate:e=>{e&&c(e)},preservedParams:t,urlStateParam:d,children:n})};function I({children:e}){let t=(0,n.t)(),r=null;return i.Children.forEach(e,e=>{if(r||!(e&&i.isValidElement(e)&&"object"==typeof e&&e.type===g))return;let{index:n,path:o}=e.props;(!n&&!o||t.matches(o,n))&&(r=e)}),(0,o.tZ)(o.HY,{children:r})}},26560:function(e,t,r){r.r(t),r.d(t,{StyleCacheProvider:()=>s});var n=r(73312),o=r(11025),i=r(63223),a=r(69144);let l=document.querySelector("style#cl-style-insertion-point"),s=e=>{let t=(0,a.useMemo)(()=>{let t=(0,o.Z)({key:"cl-internal",prepend:!e.cssLayerName&&!l,insertionPoint:l||void 0,nonce:e.nonce});if(e.cssLayerName){let r=t.insert.bind(t);t.insert=(t,n,o,i)=>{if(n&&"string"==typeof n.styles&&!n.styles.startsWith("@layer")){let a={...n};return a.styles=`@layer ${e.cssLayerName} {${n.styles}}`,r(t,a,o,i)}return r(t,n,o,i)}}return t},[e.nonce,e.cssLayerName]);return(0,n.tZ)(i.C,{value:t,children:e.children})}},67504:function(e,t,r){r.d(t,{y:()=>s});var n=r(25407),o=r(68849);let i=e=>({"&::-moz-focus-inner":{border:"0"},WebkitTapHighlightColor:"transparent",boxShadow:e.shadows.$focusRing.replace("{{color}}",e.colors.$colorRing),transitionProperty:e.transitionProperty.$common,transitionTimingFunction:e.transitionTiming.$common,transitionDuration:e.transitionDuration.$focusRing}),a=e=>({"::-webkit-scrollbar":{background:"transparent",width:"8px",height:"8px"},"::-webkit-scrollbar-thumb":{background:e.colors.$neutralAlpha500},"::-webkit-scrollbar-track":{background:"transparent"}}),l=(e,t)=>`linear-gradient(${t},${t}), linear-gradient(${e}, ${e})`,s={textVariants:e=>{let t={fontFamily:"inherit",letterSpacing:e.letterSpacings.$normal},r={...t,fontWeight:e.fontWeights.$semibold,fontSize:e.fontSizes.$xl,lineHeight:e.lineHeights.$extraSmall},n={...t,fontWeight:e.fontWeights.$bold,fontSize:e.fontSizes.$lg,lineHeight:e.lineHeights.$medium},o={...t,fontWeight:e.fontWeights.$bold,fontSize:e.fontSizes.$md,lineHeight:e.lineHeights.$small},i={...t,fontWeight:e.fontWeights.$medium,fontSize:e.fontSizes.$md,lineHeight:e.lineHeights.$small},a={...t,fontWeight:e.fontWeights.$normal,fontSize:e.fontSizes.$md,lineHeight:e.lineHeights.$small},l={...t,fontWeight:e.fontWeights.$medium,fontSize:e.fontSizes.$xs,lineHeight:e.lineHeights.$large};return{h1:r,h2:n,h3:o,subtitle:i,body:a,caption:l,buttonLarge:{...t,fontWeight:e.fontWeights.$medium,fontSize:e.fontSizes.$md,lineHeight:e.lineHeights.$small,fontFamily:e.fonts.$buttons},buttonSmall:{...t,fontWeight:e.fontWeights.$medium,fontSize:e.fontSizes.$sm,lineHeight:e.lineHeights.$extraSmall,fontFamily:e.fonts.$buttons}}},borderVariants:(e,t)=>{let r=t?.hasError?e.colors.$dangerAlpha500:e.colors.$borderAlpha300,n=e.shadows.$input.replace("{{color}}",t?.hasError?e.colors.$dangerAlpha200:e.colors.$borderAlpha150),o=t?.hoverStyles===!1?{}:{"&:hover":{WebkitTapHighlightColor:"transparent",borderColor:r,boxShadow:n}},i=t?.focusRing===!1?{}:{"&:focus":{borderColor:r,WebkitTapHighlightColor:"transparent",boxShadow:[n,e.shadows.$focusRing.replace("{{color}}",!t?.hasError?e.colors.$borderAlpha150:e.colors.$dangerAlpha200)].toString()}},a=t?.hasError?e.colors.$dangerAlpha500:t?.hasWarning?e.colors.$warningAlpha300:e.colors.$borderAlpha150,l=t?.hasError?e.colors.$borderAlpha150:t?.hasWarning?e.colors.$warningAlpha50:e.colors.$borderAlpha100;return{normal:{borderRadius:e.radii.$md,borderWidth:e.borderWidths.$normal,borderStyle:e.borderStyles.$solid,borderColor:a,boxShadow:e.shadows.$input.replace("{{color}}",l),transitionProperty:e.transitionProperty.$common,transitionTimingFunction:e.transitionTiming.$common,transitionDuration:e.transitionDuration.$focusRing,...o,...i}}},focusRingStyles:i,focusRing:e=>({"&:focus":{...i(e)}}),disabled:e=>({"&:disabled,&[data-disabled]":{cursor:"not-allowed",pointerEvents:"none",opacity:e.opacity.$disabled}}),borderColor:(e,t)=>({borderColor:t?.hasError?e.colors.$dangerAlpha500:e.colors.$borderAlpha150}),centeredFlex:(e="flex")=>({display:e,justifyContent:"center",alignItems:"center"}),maxHeightScroller:e=>({height:"100%",overflowY:"auto",...a(e)}),mutedBackground:e=>{let t=e.colors.$colorMuted||l(n.O9.setAlpha(e.colors.$colorBackground,1),e.colors.$neutralAlpha50);return(0,o.SU)("color-muted",t)},unstyledScrollbar:a,mergedColorsBackground:l,visuallyHidden:()=>({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"})}},51217:function(e,t,r){r.r(t),r.d(t,{createVariants:()=>s,InternalThemeProvider:()=>a,animations:()=>R,createCssVariables:()=>b,common:()=>v.y,mqu:()=>Z});var n=r(73312),o=r(63223);r(69144);var i=r(64204);let a=e=>{let{parsedInternalTheme:t}=(0,i.useAppearance)();return(0,n.tZ)(o.a,{theme:t,children:e.children})};var l=r(92823);let s=e=>{let t=(()=>{let e=new Proxy({},{get:(t,r)=>r===Symbol.toPrimitive?()=>"":r in Object.getPrototypeOf("")?e=>Object.getPrototypeOf("")[r].call("",e):r===Symbol.toPrimitive?()=>"":e});return e})(),r=Object.keys(e(t,t).variants||{});return{applyVariants:(t={})=>r=>{let{base:n,variants:o={},compoundVariants:i=[],defaultVariants:a={}}=e(r,t),l=h(o,t,a),s={};return d(s,n),u(s,l,o),p(s,l,i),m(s),s},filterProps:e=>c(e,r)}},c=(e,t)=>{let r={...e};for(let e of t)delete r[e];return r},d=(e,t)=>{t&&"object"==typeof t&&Object.assign(e,t)},u=(e,t,r)=>{for(let n in t)(0,l.EB)(r[n][t[n]],e)},p=(e,t,r)=>{for(let n of r)g(n,t)&&(0,l.EB)(n.styles,e)},m=e=>{for(let t in e)t.startsWith("var(")&&(e[t.slice(4,-1)]=e[t],delete e[t])},h=(e,t,r)=>{let n={};for(let o in e)o in t?n[o]=t[o]:o in r&&(n[o]=r[o]);return n},g=({condition:e},t)=>{for(let r in e)if(e[r]!==t[r])return!1;return!0};var f=r(12041);let b=(...e)=>(0,f.s)(e.map(e=>[e,`var(--${e})`]));var v=r(67504),y=r(65909);let w=(0,y.F4)`
|
|
15
|
+
0% { transform: rotate(0deg); }
|
|
16
|
+
100% { transform: rotate(360deg); }`,x=(0,y.F4)`
|
|
17
|
+
0% {
|
|
18
|
+
opacity: 0;
|
|
19
|
+
transform: scaleY(1) translateY(-6px);
|
|
20
|
+
}
|
|
21
|
+
100% {
|
|
22
|
+
opacity: 1;
|
|
23
|
+
transform: scaleY(1) translateY(0px);
|
|
24
|
+
}
|
|
25
|
+
`,S=(0,y.F4)`
|
|
26
|
+
0% {
|
|
27
|
+
opacity: 0;
|
|
28
|
+
transform: translateY(0.5rem);
|
|
29
|
+
}
|
|
30
|
+
100% {
|
|
31
|
+
opacity: 1;
|
|
32
|
+
transform: translateY(0);
|
|
33
|
+
}
|
|
34
|
+
`,C=(0,y.F4)`
|
|
35
|
+
0% { opacity: 0; }
|
|
36
|
+
100% { opacity: 1; }
|
|
37
|
+
`,$=(0,y.F4)`
|
|
38
|
+
0% { opacity: 1; }
|
|
39
|
+
100% { opacity: 0; }
|
|
40
|
+
`,_=(0,y.F4)`
|
|
41
|
+
0% {
|
|
42
|
+
opacity: 0;
|
|
43
|
+
transform: translateY(-5px);
|
|
44
|
+
max-height: 0;
|
|
45
|
+
}
|
|
46
|
+
100% {
|
|
47
|
+
opacity: 1;
|
|
48
|
+
transform: translateY(0px);
|
|
49
|
+
max-height: 6rem;
|
|
50
|
+
}
|
|
51
|
+
`,k=(0,y.F4)`
|
|
52
|
+
0% {
|
|
53
|
+
opacity: 0;
|
|
54
|
+
transform: translateY(-5px);
|
|
55
|
+
max-height: 0;
|
|
56
|
+
}
|
|
57
|
+
50% {
|
|
58
|
+
opacity: 0;
|
|
59
|
+
transform: translateY(-5px);
|
|
60
|
+
max-height: 0;
|
|
61
|
+
}
|
|
62
|
+
100% {
|
|
63
|
+
opacity: 1;
|
|
64
|
+
transform: translateY(0px);
|
|
65
|
+
max-height: 6rem;
|
|
66
|
+
}
|
|
67
|
+
`,P=(0,y.F4)`
|
|
68
|
+
0% {
|
|
69
|
+
opacity: 0;
|
|
70
|
+
transform: translateY(5px) scale(.5);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
50% {
|
|
74
|
+
opacity: 1;
|
|
75
|
+
transform: translateY(0px) scale(1.2);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
100% {
|
|
79
|
+
opacity: 1;
|
|
80
|
+
transform: translateY(0px) scale(1);
|
|
81
|
+
}
|
|
82
|
+
`,I=(0,y.F4)`
|
|
83
|
+
0% {
|
|
84
|
+
opacity:1;
|
|
85
|
+
transform: translateY(0px);
|
|
86
|
+
max-height: 6rem;
|
|
87
|
+
visibility: visible;
|
|
88
|
+
}
|
|
89
|
+
100% {
|
|
90
|
+
opacity: 0;
|
|
91
|
+
transform: translateY(5px);
|
|
92
|
+
max-height: 0;
|
|
93
|
+
visibility: visible;
|
|
94
|
+
}
|
|
95
|
+
`,A=(0,y.F4)`
|
|
96
|
+
0% {opacity: 0;max-height: 0;}
|
|
97
|
+
100% {opacity: 1;max-height: 3rem;}
|
|
98
|
+
`,T=(0,y.F4)`
|
|
99
|
+
0% {opacity: 0;max-height: 0;}
|
|
100
|
+
100% {opacity: 1;max-height: 8rem;}
|
|
101
|
+
`,R={spinning:w,dropdownSlideInScaleAndFade:x,modalSlideAndFade:S,fadeIn:C,fadeOut:$,textInSmall:A,textInBig:T,blockBigIn:(0,y.F4)`
|
|
102
|
+
0% {opacity: 0;max-height: 0;}
|
|
103
|
+
99% {opacity: 1;max-height: 10rem;}
|
|
104
|
+
100% {opacity: 1;max-height: unset;}
|
|
105
|
+
`,expandIn:e=>(0,y.F4)`
|
|
106
|
+
0% {opacity: 0;max-height: 0;}
|
|
107
|
+
99% {opacity: 1;max-height: ${e};}
|
|
108
|
+
100% {opacity: 1;max-height: unset;}
|
|
109
|
+
`,navbarSlideIn:(0,y.F4)`
|
|
110
|
+
0% {opacity: 0; transform: translateX(-100%);}
|
|
111
|
+
100% {opacity: 1; transform: translateX(0);}
|
|
112
|
+
`,inAnimation:_,inDelayAnimation:k,outAnimation:I,notificationAnimation:P},z=Object.freeze({xs:"21em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"}),Z={ios:"@supports (-webkit-touch-callout: none)",...(0,f.s)(Object.entries(z).map(([e,t])=>[e,`@media (max-width: ${t})`]))}},87256:function(e,t,r){r.d(t,{q:()=>i});var n=r(73312),o=r(69144);let i=({mount:e,unmount:t,...r})=>{let i=(0,o.useRef)(null);return(0,o.useEffect)(()=>{let r;return i.current&&(r=i.current,e(i.current)),()=>{t(r)}},[i.current]),(0,n.tZ)("div",{ref:i,...r})}},90884:function(e,t,r){r.d(t,{Nl:()=>l,S5:()=>a,Tj:()=>m,Yb:()=>i,ZZ:()=>s,_v:()=>n,er:()=>u,fG:()=>o,kN:()=>p,tl:()=>c,vF:()=>d});let n=[25,50,100,150,200,300,400,500,600,700,750,800,850,900,950],o=["400","300","200","150","100","50","25"],i=["600","700","750","800","850","900","950"],a=[...o,"500",...i],l={TARGET_LIGHT:97,TARGET_DARK:12,LIGHT_STEPS:7,DARK_STEPS:7},s={25:2,50:3,100:7,150:11,200:15,300:28,400:41,500:53,600:62,700:73,750:78,800:81,850:84,900:87,950:92},c=Object.values(s).map(e=>e/100).sort(),d={25:{mixColor:"white",percentage:85},50:{mixColor:"white",percentage:80},100:{mixColor:"white",percentage:68},150:{mixColor:"white",percentage:55},200:{mixColor:"white",percentage:40},300:{mixColor:"white",percentage:26},400:{mixColor:"white",percentage:16},500:{mixColor:null,percentage:0},600:{mixColor:"black",percentage:12},700:{mixColor:"black",percentage:22},750:{mixColor:"black",percentage:30},800:{mixColor:"black",percentage:44},850:{mixColor:"black",percentage:55},900:{mixColor:"black",percentage:65},950:{mixColor:"black",percentage:75}},u={400:1,300:2,200:3,150:4,100:5,50:6,25:7,600:1,700:2,750:3,800:4,850:5,900:6,950:7},p={rgb:{min:0,max:255},alpha:{min:0,max:1},hue:{min:0,max:360},percentage:{min:0,max:100}},m={MAX_LIGHTNESS_MIX:95,MIN_ALPHA_PERCENTAGE:5,MAX_LIGHTNESS_ADJUSTMENT:30,MIN_LIGHTNESS_FLOOR:95,LIGHTNESS_MULTIPLIER:2,MIX_MULTIPLIER:4}},25407:function(e,t,r){r.d(t,{O9:()=>l});var n=r(99065),o=r(27691),i=r(90884),a=r(28097);let l={changeHslaLightness:o.O.changeHslaLightness,setHslaAlpha:o.O.setHslaAlpha,toHslaColor:e=>{if(e)return n.d.modernColor()?e:o.O.toHslaColor(e)},toHslaString:e=>{if(e)return n.d.modernColor()&&"string"==typeof e?e:o.O.toHslaString(e)},lighten:(e,t=0)=>n.d.modernColor()?((e,t=0)=>{if(e){if(n.d.relativeColorSyntax())return(0,a.Pu)(e,"h","s",`calc(l + ${100*t}%)`);if(n.d.colorMix()){let r=Math.min(100*t,i.Tj.MAX_LIGHTNESS_MIX);return(0,a.C1)(e,"white",r)}return e}})(e,t):o.O.lighten(e,t),makeTransparent:(e,t=0)=>n.d.modernColor()?((e,t=0)=>{if(e&&""!==e.toString()){if(n.d.colorMix()){let r=Math.max((1-t)*100,i.Tj.MIN_ALPHA_PERCENTAGE);return(0,a.Mw)(e,r)}return e}})(e,t):o.O.makeTransparent(e,t),makeSolid:e=>n.d.modernColor()?(e=>{if(e)return n.d.relativeColorSyntax()?(0,a.Pu)(e,"h","s","l","1"):n.d.colorMix()?`color-mix(in srgb, ${e}, ${e} 100%)`:e})(e):o.O.makeSolid(e),setAlpha:(e,t)=>n.d.modernColor()?((e,t)=>{let r=Math.min(Math.max(t,i.kN.alpha.min),i.kN.alpha.max);if(n.d.relativeColorSyntax())return(0,a.Pu)(e,"h","s","l",r.toString());if(n.d.colorMix()){let t=100*r;return(0,a.Mw)(e,t)}return e})(e,t):o.O.setAlpha(e,t),adjustForLightness:(e,t=5)=>n.d.modernColor()?((e,t=5)=>{if(e){if(n.d.colorMix()){let r=Math.min(t*i.Tj.MIX_MULTIPLIER,i.Tj.MAX_LIGHTNESS_ADJUSTMENT);return(0,a.C1)(e,"white",r)}return e}})(e,t):o.O.adjustForLightness(e,t)}},27691:function(e,t,r){r.d(t,{O:()=>w});var n=r(68849);let o=/^#([a-f0-9]{3,4})$/i,i=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,a=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,l=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,c=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/,d={black:[0,0,0,1],blue:[0,0,255,1],red:[255,0,0,1],green:[0,128,0,1],grey:[128,128,128,1],gray:[128,128,128,1],white:[255,255,255,1],yellow:[255,255,0,1],transparent:[0,0,0,0]},u=(e,t,r)=>Math.min(Math.max(t,e),r),p=function(e){if(!e)return null;let t=e.match(c);return t?m(t):null},m=e=>{let t=parseFloat(e[4]),r=(parseFloat(e[1])%360+360)%360,n=u(parseFloat(e[2]),0,100);return[r,n,u(parseFloat(e[3]),0,100),u(isNaN(t)?1:t,0,1)]},h=e=>{let t,r=e[0]/255,n=e[1]/255,o=e[2]/255,i=e[3]??1,a=Math.min(r,n,o),l=Math.max(r,n,o),s=l-a;l===a?t=0:r===l?t=(n-o)/s:n===l?t=2+(o-r)/s:o===l&&(t=4+(r-n)/s),(t=Math.min(60*t,360))<0&&(t+=360);let c=(a+l)/2;return{h:Math.floor(t),s:Math.floor(100*(l===a?0:c<=.5?s/(l+a):s/(2-l-a))),l:Math.floor(100*c),a:i}},g=({h:e,s:t,l:r,a:n})=>`hsla(${e}, ${t}%, ${r}%, ${n??1})`,f=e=>{let{model:t,value:r}=(e=>{let t,r=(0,n.aY)(e)||e,c=r.substr(0,3).toLowerCase();if(!(t="hsl"===c?{model:"hsl",value:(e=>{if(!e)return null;let t=e.match(s);return t?m(t):null})(r)}:"hwb"===c?{model:"hwb",value:p(r)}:{model:"rgb",value:(e=>{let t,r,n;if(!e)return null;let s=[0,0,0,1];if(t=e.match(i)){for(r=0,n=t[2],t=t[1];r<3;r++){let e=2*r;s[r]=parseInt(t.slice(e,e+2),16)}n&&(s[3]=parseInt(n,16)/255)}else if(t=e.match(o)){for(r=0,n=(t=t[1])[3];r<3;r++)s[r]=parseInt(t[r]+t[r],16);n&&(s[3]=parseInt(n+n,16)/255)}else if(t=e.match(a)){for(r=0;r<3;r++)s[r]=parseInt(t[r+1],0);t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else if(t=e.match(l)){for(r=0;r<3;r++)s[r]=Math.round(2.55*parseFloat(t[r+1]));t[4]&&(t[5]?s[3]=.01*parseFloat(t[4]):s[3]=parseFloat(t[4]))}else if(e in d)return d[e];else return null;for(r=0;r<3;r++)s[r]=u(s[r],0,255);return s[3]=u(s[3],0,1),s})(r)})||!t.value)throw Error(`Clerk: "${r}" cannot be used as a color within 'variables'. You can pass one of:
|
|
113
|
+
- any valid hsl or hsla color
|
|
114
|
+
- any valid rgb or rgba color
|
|
115
|
+
- any valid hex color
|
|
116
|
+
- any valid hwb color
|
|
117
|
+
- ${Object.keys(d).join(", ")}
|
|
118
|
+
`);return t})(e);switch(t){case"hsl":return{h:r[0],s:r[1],l:r[2],a:r[3]??1};case"hwb":return h((e=>{let t,r,n,o,i=e[0]/360,a=e[1]/100,l=e[2]/100,s=e[3]??1,c=a+l;c>1&&(a/=c,l/=c);let d=Math.floor(6*i),u=1-l;t=6*i-d,(1&d)!=0&&(t=1-t);let p=a+t*(u-a);switch(d){default:case 6:case 0:r=u,n=p,o=a;break;case 1:r=p,n=u,o=a;break;case 2:r=a,n=u,o=p;break;case 3:r=a,n=p,o=u;break;case 4:r=p,n=a,o=u;break;case 5:r=u,n=a,o=p}return[255*r,255*n,255*o,s]})(r));case"rgb":return h(r)}},b=e=>"string"==typeof e?g(f(e)):g(e),v=(e,t)=>({...e,l:e.l+t}),y=(e,t)=>({...e,a:t}),w={toHslaColor:f,toHslaString:b,adjustForLightness:(e,t=5)=>{if(!e)return;let r=w.toHslaColor(e);return r?(100===r.l?r.l=95:r.l=Math.min(r.l+2*t,100),w.toHslaString(r)):e},changeHslaLightness:v,setHslaAlpha:y,lighten:(e,t=0)=>{if(!e)return;let r=f(e);return b(v(r,r.l*t))},makeTransparent:(e,t=0)=>{let r;if(!e||""===e.toString())return;let n=f(e);return b((r=(n.a??1)*t,{...n,a:n.a?n.a-r:void 0}))},makeSolid:e=>{if(e)return b({...f(e),a:1})},setAlpha:(e,t)=>e.toString()?b(y(f(e),t)):e}},87135:function(e,t,r){r.d(t,{jV:()=>d,rh:()=>u});var n=r(99065),o=r(90884),i=r(27691),a=r(28097);function l(e){if(!e)return null;if("string"==typeof e)return{baseColor:e};if(e["500"])return{baseColor:e["500"],userScale:e};if("object"==typeof e&&o.S5.some(t=>e[t])&&!e["500"])throw Error("You need to provide at least the 500 shade");return null}function s(e,t){return t?{...e,...t}:e}function c(e,t){var r=function(e){let t={};for(let[r,n]of Object.entries(e))n&&void 0!==n&&(t[r]=n);return t}(e);let n={};for(let[e,o]of Object.entries(r))void 0!==o&&(n[t+e]=o);return n}let d=(e,t)=>{if(e)return c(function(e){let t=l(e);if(!t)return(0,a.o2)();let{baseColor:r,userScale:c}=t;return s(n.d.modernColor()?function(e){let t=(0,a.o2)();return o._v.forEach(r=>{t[r]=(0,a.E_)(e,r)}),t}(r):function(e){let t=(0,a.o2)(),r=i.O.toHslaColor(e),n=i.O.setHslaAlpha(r,0);return o._v.forEach((e,r)=>{let a=o.tl[r]??1,l=i.O.setHslaAlpha(n,a);t[e]=i.O.toHslaString(l)}),t}(r),c)}(e),t)},u=(e,t)=>{if(e)return c(function(e){let t=l(e);if(!t)return(0,a.o2)();let{baseColor:r,userScale:c}=t;return s(n.d.modernColor()?function(e){let t=(0,a.o2)();return o._v.forEach(r=>{t[r]=(0,a.tN)(e,r)}),t}(r):function(e){let t=(0,a.o2)(),r=i.O.toHslaColor(e);t["500"]=i.O.toHslaString(r);let n=(o.Nl.TARGET_LIGHT-r.l)/o.fG.length,l=(r.l-o.Nl.TARGET_DARK)/o.Yb.length;return o.fG.forEach((e,o)=>{let a=i.O.changeHslaLightness(r,(o+1)*n);t[e]=i.O.toHslaString(a)}),o.Yb.forEach((e,n)=>{let o=i.O.changeHslaLightness(r,-((n+1)*l*1));t[e]=i.O.toHslaString(o)}),t}(r),c)}(e),t)}},28097:function(e,t,r){r.d(t,{C1:()=>l,E_:()=>d,Mw:()=>c,Pu:()=>s,o2:()=>a,tN:()=>u});var n=r(99065),o=r(90884);let i=Object.freeze(o.S5.reduce((e,t)=>(e[t]=void 0,e),{})),a=()=>({...i});function l(e,t,r){return`color-mix(in srgb, ${e}, ${t} ${r}%)`}function s(e,t,r,n,o){return`hsl(from ${e} ${t} ${r} ${n}${o?` / ${o}`:""})`}function c(e,t){return`color-mix(in srgb, transparent, ${e} ${t}%)`}function d(e,t){return c(e,o.ZZ[t])}function u(e,t){if(500===t)return e;if(n.d.relativeColorSyntax()){if(500===t)return e;let r=o.er[t];if(!r)return e;let{TARGET_LIGHT:n,TARGET_DARK:i,LIGHT_STEPS:a,DARK_STEPS:l}=o.Nl;return t<500?s(e,"h","s",`calc(l + (${r} * ((${n} - l) / ${a})))`):s(e,"h","s",`calc(l - (${r} * ((l - ${i}) / ${l})))`)}if(n.d.colorMix()){if(500===t)return e;let r=o.vF[t];return r.mixColor?l(e,r.mixColor,r.percentage):e}return e}},7259:function(e,t,r){r.d(t,{q:()=>n});let n=e=>e.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-")},99065:function(e,t,r){let n,o,i;r.d(t,{d:()=>a});let a={relativeColorSyntax:()=>{if(void 0!==n)return n;try{n=CSS.supports("color: hsl(from white h s l)")}catch{n=!1}return n},colorMix:()=>{if(void 0!==o)return o;try{o=CSS.supports("color: color-mix(in srgb, white, black)")}catch{o=!1}return o},modernColor(){if(void 0!==i)return i;try{i=this.relativeColorSyntax()||this.colorMix()}catch{i=!1}return i}}},68849:function(e,t,r){function n(e){if(!e||"string"!=typeof e)return!1;let t=e.trim();if(!t.startsWith("var(")||!t.endsWith(")"))return!1;let r=t.slice(4,-1).trim();if(!r.startsWith("--"))return!1;let n=r.indexOf(","),o=-1===n?r:r.slice(0,n).trim();return/^--[a-zA-Z0-9-_]+$/.test(o)}function o(e,t,r){let n=document.createElement("div");n.style.setProperty(t,r),e.appendChild(n);let o=window.getComputedStyle(n).getPropertyValue(t);return e.removeChild(n),o.trim()}function i(e,t,r="white"){let n=o(e,"color",t),a=o(e,"color",r),l=document.createElement("canvas");l.width=1,l.height=1;let s=l.getContext("2d");if(!s)return n;s.fillStyle=a,s.fillRect(0,0,1,1),s.fillStyle=n,s.fillRect(0,0,1,1);let{data:c}=s.getImageData(0,0,1,1);return`#${c[0].toString(16).padStart(2,"0")}${c[1].toString(16).padStart(2,"0")}${c[2].toString(16).padStart(2,"0")}`}r.d(t,{Aj:()=>i,SU:()=>a,aY:()=>function e(t,r){let o;if(!n(t))return null;let i=t.trim().slice(4,-1).trim(),a=i.indexOf(","),l=null;-1===a?o=i:(o=i.slice(0,a).trim(),l=i.slice(a+1).trim());let s=function(e,t){let r,n;if("undefined"==typeof window||"undefined"==typeof getComputedStyle)return null;r=e.startsWith("var(")&&e.endsWith(")")?e.slice(4,-1).trim():e.startsWith("--")?e:`--${e}`;try{if(t)n=t;else{if("undefined"==typeof document||!document.documentElement)return null;n=document.documentElement}}catch{return null}try{return getComputedStyle(n).getPropertyValue(r).trim()||null}catch{return null}}(o,r);return s?s:l?n(l)?e(l,r):l:null},uj:()=>o});let a=(e,t)=>`var(--clerk-${e}, ${t})`},88870:function(e,t,r){r.d(t,{S3:()=>a});var n=r(41024),o=r(72642);let i=e=>e[0],a=(e,t,r)=>{if(!(0,n.sZ)(e))throw e;return(0,n.ZC)(e)?l(e,t,r):(0,n.kD)(e)?s(e,t,r):(!(0,n.uX)(e)||"reverification_cancelled"!==e.code)&&(0,n.uX)(e)?c(e,t,r):void 0},l=(e,t,r)=>r?.(e.message),s=(e,t,r)=>{if(!(0,n.kD)(e))return;let{fieldErrors:a,globalErrors:l}=(e.errors||[]).reduce((e,t)=>(t.meta?.paramName?e.fieldErrors.push(t):e.globalErrors.push(t),e),{fieldErrors:[],globalErrors:[]});if(a&&!(a.length<1)&&t.forEach(e=>{let t=e?.buildErrorMessage;t||(t=i);let r=a.filter(t=>t.meta?.paramName===e.id||(0,o.TD)(t.meta?.paramName)===e.id),n=t(r);r.length&&n?e.setError(n):e.clearFeedback()}),r){r(void 0);let e=l[0];e&&r(e)}},c=(e,t,r)=>{(0,n.uX)(e)&&r&&(r(void 0),e&&r(e))}},90577:function(e,t,r){r.d(t,{Q0:()=>u,U6:()=>p,b8:()=>d,sZ:()=>c});let n=e=>e.reduce((e,t,r)=>(e[t]=r,e),{}),o=n(["passkey","password","email_link","email_code","phone_code"]),i=n(["email_link","email_code","phone_code","passkey","password"]),a=n(["email_link","email_code","phone_code","passkey","password"]),l=n(["totp","phone_code","backup_code"]),s=e=>(t,r)=>{let n=e[t.strategy],o=e[r.strategy];return void 0===n||void 0===o?0:n-o},c=s(o),d=s(i),u=s(l),p=s(a)},39082:function(e,t,r){r.d(t,{p:()=>n});function n(e,t="long",r="en-US"){let o={month:"short"===t?"short":"long",..."monthyear"!==t&&{day:"numeric"},..."short"!==t&&{year:"numeric"}};return new Intl.DateTimeFormat(r,o).format(e)}},44271:function(e,t,r){r.d(t,{H:()=>i,S:()=>o});var n=r(98690);let o=e=>e&&e.includes("**"),i=e=>!e||e.includes("@")||o(e)||e.match(/[a-zA-Z]/)?e:(0,n.L_)(e)},12041:function(e,t,r){r.d(t,{s:()=>n});let n=e=>[...e].reduce((e,[t,r])=>(e[t]=r,e),{})},2432:function(e,t,r){r.d(t,{N:()=>n});function n(e,t){if(t&&"mounted"!==e)return t?.target?.closest("[data-clerk-profile-scroll-box-root]")}},53997:function(e,t,r){r.d(t,{Q:()=>i});var n=r(30474),o=r(17703);let i=e=>{let t=(0,n.lY)({date:e||new Date,relativeTo:new Date});if(!t)return"";switch(t.relativeDateCase){case"previous6Days":return(0,o.u1)("dates.previous6Days",{date:t.date});case"lastDay":return(0,o.u1)("dates.lastDay",{date:t.date});case"sameDay":return(0,o.u1)("dates.sameDay",{date:t.date});case"nextDay":return(0,o.u1)("dates.nextDay",{date:t.date});case"next6Days":return(0,o.u1)("dates.next6Days",{date:t.date});default:return(0,o.u1)("dates.numeric",{date:t.date})}}},68545:function(e,t,r){function n(e){return"ListFormat"in Intl&&function(e){if(!e)return!1;let t=Array.isArray(e)?e:[e];return Intl.ListFormat.supportedLocalesOf(t).length===t.length}(e)}function o(e,t){return"NumberFormat"in Intl&&function(e){if(!e)return!1;try{return Intl.NumberFormat.supportedLocalesOf(e).length>0}catch{return!1}}(t)?new Intl.NumberFormat(t,{notation:"compact"}).format(e):e.toString()}r.d(t,{$p:()=>o,k_:()=>n})},53621:function(e,t,r){r.d(t,{s:()=>o});let n=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i,o=()=>"undefined"!=typeof window&&void 0!==window.document&&!!(window.matchMedia("only screen and (max-width: 760px)").matches||n.test(navigator.userAgent)||"ontouchstart"in document.documentElement&&navigator.userAgent.match(/Mobi/))},85390:function(e,t,r){r.d(t,{Oy:()=>n,kZ:()=>i,mG:()=>o});let n=e=>e.defaultSecondFactor?-1:1;function o(e){let t=[];return Object.entries(e).forEach(([,e])=>{e?.used_for_second_factor&&e.second_factors&&t.push(...e.second_factors)}),t}function i(e,t){let r=o(e);return t.totpEnabled&&(r=r.filter(e=>"totp"!==e)),(t.backupCodeEnabled||!t.twoFactorEnabled)&&(r=r.filter(e=>"backup_code"!==e)),r}},96565:function(e,t,r){r.d(t,{t:()=>i});var n=r(63872),o=r(24148);function i(){return(0,n.yL)()||o.Y.some(e=>window.location.hostname.endsWith(e))}},86842:function(e,t,r){r.d(t,{$M:()=>a,GM:()=>i,z$:()=>l});var n=r(65059),o=r(68545);let i=(e,t)=>{if(!t)return e[0].longMessage;let{t:r,locale:o,passwordSettings:i}=t;if(e?.[0]?.code==="form_password_size_in_bytes_exceeded"||e?.[0]?.code==="form_password_pwned"||e?.[0]?.code==="form_new_password_matches_current")return`${r((0,n.u)(`unstable__errors.${e?.[0]?.code}`))||e?.[0]?.message}`;if(e?.[0]?.code==="form_password_not_strong_enough"){let t=e[0].meta?.zxcvbn?.suggestions?.map(e=>r((0,n.u)(`unstable__errors.zxcvbn.suggestions.${e.code}`))).join(" ");return`${r((0,n.u)("unstable__errors.zxcvbn.notEnough"))} ${t}`}let s=e.filter(e=>"form_password_length_too_short"===e.code),c=l((s.length?s:e).map(e=>{let t={form_password_length_too_long:["unstable__errors.passwordComplexity.maximumLength","length",i.max_length],form_password_length_too_short:["unstable__errors.passwordComplexity.minimumLength","length",i.min_length],form_password_no_uppercase:"unstable__errors.passwordComplexity.requireUppercase",form_password_no_lowercase:"unstable__errors.passwordComplexity.requireLowercase",form_password_no_number:"unstable__errors.passwordComplexity.requireNumbers",form_password_no_special_char:"unstable__errors.passwordComplexity.requireSpecialCharacter"}[e.code];if(Array.isArray(t)){let[e,o,i]=t;return r((0,n.u)(e,{[o]:i}))}return r((0,n.u)(t))}),o);return a(`${r((0,n.u)("unstable__errors.passwordComplexity.sentencePrefix"))} ${c}`)},a=e=>e?e.endsWith(".")?e:`${e}.`:"",l=(e,t)=>(0,o.k_)(t)?new Intl.ListFormat(t,{style:"long",type:"conjunction"}).format(e):e.join(", ")},98690:function(e,t,r){r.d(t,{L_:()=>d,Z_:()=>p,jR:()=>m,un:()=>a,uz:()=>i,y3:()=>c,yy:()=>l});var n=r(78191);let o={};function i(e,t="us"){if(o[e=e||t])return o[e];let r=String.fromCodePoint(...[...e.toUpperCase()].map(e=>e.codePointAt(0)+127397));return o[e]=r,r}function a(e,t,r){var n;if(!e||!t)return e;let o=[...l(e)].slice(0,15-((n=(n=r)||"1").includes("+")?n:"+"+n).length);if(o.length<=3)return o.join("");let i="";for(let e=0;o.length>0;e++)e>t.length-1?i+=o.shift():i+="."===t[e]?o.shift():t[e];return i}function l(e){return(e||"").replace(/[^\d]/g,"")}function s(e,t){if(!e||!n.h5.get(e)||!t)return!1;let r=t[0],o=t.substring(1,4);return r===n.h5.get(e)?.code&&t.length-1===((n.h5.get(e)?.pattern||"").match(/\./g)||[]).length&&n.ug[e].has(o)}function c(e){let t=l(e),r=function(e,t="us"){let r=l(e);return!r||r.length<4?t:r.startsWith("1")&&s("us",r)?"us":r.startsWith("1")&&s("ca",r)?"ca":p(r).country.iso}(t),o=n.h5.get(r)?.pattern||"",i=n.h5.get(r)?.code||"",c=t.slice(i.length),d=`+${i} ${a(c,o,i)}`;return{iso:r,pattern:o,code:i,number:c,formattedNumberWithCode:d}}function d(e){let t=c(e);return`+${t.code} ${a(t.number,t.pattern,t.code)}`}let u=(e,t)=>t.priority-e.priority;function p(e){let t=l(e),r=[];for(let e of[4,3,2,1]){let o=t.substring(0,e),i=n.nX.get(o)||[];i.length&&r.push(...i)}let o=n.h5.get("us"),i=r.sort(u)[0]||o;return{number:t.slice(i?.code.length||0),country:i}}function m(e,t){if(!t)return null;let{country:r}=p(e);return t[r.iso.toUpperCase()]||null}},57046:function(e,t,r){r.d(t,{_:()=>n});let n=e=>new Promise(t=>setTimeout(t,e))},92156:function(e,t,r){r.d(t,{S:()=>o});var n=r(17703);function o(e){let t=new Date,r=new Date(e);if(isNaN(r.getTime()))return"";let o=Math.floor((t.getTime()-r.getTime())/1e3);if(o<60)return(0,n.u1)("apiKeys.lastUsed__seconds",{seconds:o});let i=Math.floor(o/60);if(i<60)return(0,n.u1)("apiKeys.lastUsed__minutes",{minutes:i});let a=Math.floor(i/60);if(a<24)return(0,n.u1)("apiKeys.lastUsed__hours",{hours:a});let l=Math.floor(a/24);if(l<30)return(0,n.u1)("apiKeys.lastUsed__days",{days:l});let s=Math.floor(l/30);if(s<12)return(0,n.u1)("apiKeys.lastUsed__months",{months:s});let c=Math.floor(s/12);return(0,n.u1)("apiKeys.lastUsed__years",{years:c})}},55913:function(e,t,r){r.d(t,{L:()=>n});function n(e,t=20,r=5){if(!e||e.length<=t)return e;if(t<=r+3)return"..."+e.slice(-r);let o=Array.from(e);return o.length<=t?e:o.slice(0,t-r-3).join("")+"..."+o.slice(-r).join("")}},36788:function(e,t,r){r.d(t,{V2:()=>d,Yp:()=>s,ni:()=>c});var n=r(69144),o=r(65695),i=r(17703);let a=e=>e.trim(),l=(e,t)=>{let r=e;for(let e=0;e<t.length;e++)r=t[e](r);return r},s=(e,t,r)=>{let o=r||{type:"text",label:"",isRequired:!1,placeholder:"",options:[],defaultChecked:!1},s=[];o.transformer&&s.push(o.transformer),"email"===o.type&&s.push(a);let{translateError:c,t:d}=(0,i.zJ)(),[u,p]=(0,n.useState)(l(t,s)),[m,h]=(0,n.useState)(!1),[g,f]=(0,n.useState)(o?.defaultChecked||!1),[b,v]=(0,n.useState)(!1),[y,w]=(0,n.useState)({message:"",type:"info"}),x=e=>{w({message:c(e),type:"error"})},{defaultChecked:S,validatePassword:C,buildErrorMessage:$,..._}=o,k={id:e,name:e,value:u,checked:g,setSuccess:e=>{w({message:e,type:"success"})},setError:x,onChange:e=>o?.type==="checkbox"?f(e.target.checked):p(l(e.target.value||"",s)),onBlur:()=>{h(!1)},onFocus:()=>{h(!0)},setWarning:e=>{w({message:c(e),type:"warning"})},feedback:y.message||d(o.infoText),feedbackType:y.type,setInfo:e=>{w({message:e,type:"info"})},clearFeedback:()=>{w({message:"",type:"info"})},hasPassedComplexity:b,setHasPassedComplexity:v,validatePassword:"password"===o.type?o.validatePassword:void 0,isFocused:m,..._};return{props:k,...k,buildErrorMessage:$,setError:x,setValue:e=>p(e||""),setChecked:e=>f(e)}},c=e=>{let t={};return e.forEach(e=>{t[e.id]="checkbox"!==e.type?e.value:e.checked}),t},d=e=>{let{feedback:t="",delayInMs:r=100,feedbackType:n="info",isFocused:i=!1}=e||{},a=!i&&["info","warning"].includes(n);return{debounced:(0,o.Nr)({feedback:a?"":t,feedbackType:a?"info":n},r)}}},36127:function(e,t,r){r.d(t,{f:()=>a});var n=r(17703);let o="form_username_invalid_length",i="form_username_needs_non_number_char",a=(e,t)=>{let{t:r,usernameSettings:a}=t,l=e[0];return t?l?.code===o?r((0,n.u1)(`unstable__errors.${o}`,{min_length:a.min_length,max_length:a.max_length})):l?.code===i?r((0,n.u1)(`unstable__errors.${i}`)):l:l}},19955:function(e,t,r){r.d(t,{H:()=>i});var n=r(41024),o=r(88870);let i=(e,t)=>{if((0,n.kD)(e)&&e.errors?.[0]?.meta?.paramName==="identifier"&&e.errors?.[0]?.code==="form_param_nil"){let e=new n.w$("A Web3 Wallet extension cannot be found. Please install one to continue.",{code:"web3_missing_identifier"});return(0,o.S3)(e,[],t)}return(0,o.S3)(e,[],t)}},22073:function(e,t,r){r.d(t,{L:()=>o});var n=r(24152);let o=({routing:e,path:t})=>t&&!e?{routing:"path",path:t}:"path"!==e&&t?(0,n.PQ)(e):{routing:e,path:t}},25758:function(e,t,r){r.d(t,{g:()=>i});var n=r(57629),o=r(24152);async function i(){if(!window.google)try{await (0,n.v)("https://accounts.google.com/gsi/client",{defer:!0})}catch{(0,o.FI)("Google Identity Services")}return window.google}},90159:function(e,t,r){r.d(t,{H:()=>o,v:()=>n});let n=[{channel:"whatsapp",name:"WhatsApp"}],o=e=>e&&n.find(t=>t.channel===e)||null},61869:function(e,t,r){r.d(t,{eW:()=>V,lQ:()=>el,hA:()=>P,Fv:()=>ed,aF:()=>G,bj:()=>eu,LB:()=>h,Tt:()=>$,B3:()=>C,Wh:()=>eO,IK:()=>er,Xn:()=>en,I7:()=>J,qO:()=>ec,SE:()=>w,o8:()=>W,b5:()=>b,kP:()=>Y,f0:()=>T,pe:()=>eE,Y7:()=>eL,St:()=>y,vm:()=>N,Gw:()=>K,TR:()=>eo,RY:()=>x,uH:()=>g,Ju:()=>ei,sX:()=>S,u3:()=>M,cL:()=>O,mP:()=>A,WZ:()=>ee,z4:()=>es});let n="reverification-error";var o=r(75044),i=r(82662),a=r(44989);r(45945);var l=r(26369),s=r(69144),c=r(7901),d=r(31019),u=r(38957),p=r(54662),m=r(80267);function h(e,t){if(!e)throw"string"==typeof t?Error(t):Error(`${t.displayName} not found`)}let g=(e,t)=>{let{assertCtxFn:r=h}=t||{},n=s.createContext(void 0);return n.displayName=e,[n,()=>{let t=s.useContext(n);return r(t,`${e} not found`),t.value},()=>{let e=s.useContext(n);return e?e.value:{}}]};function f({swrConfig:e,children:t}){return s.createElement(c.J$,{value:e},t)}let[b,v]=g("ClerkInstanceContext"),[y,w]=g("UserContext"),[x,S]=g("ClientContext"),[C,$]=g("SessionContext");s.createContext({});let[_,k]=g("CheckoutContext"),P=({children:e,...t})=>s.createElement(_.Provider,{value:{value:t}},e),[I,A]=g("OrganizationContext"),T=({children:e,organization:t,swrConfig:r})=>s.createElement(f,{swrConfig:r},s.createElement(I.Provider,{value:{value:{organization:t}}},e));function R(e){if(!s.useContext(b)){if("function"==typeof e)return void e();throw Error(`${e} can only be used within the <ClerkProvider /> component.
|
|
119
|
+
|
|
120
|
+
Possible fixes:
|
|
121
|
+
1. Ensure that the <ClerkProvider /> is correctly wrapping your application where this component is used.
|
|
122
|
+
2. Check for multiple versions of the \`@clerk/shared\` package in your project. Use a tool like \`npm ls @clerk/shared\` to identify multiple versions, and update your dependencies to only rely on one.
|
|
123
|
+
|
|
124
|
+
Learn more: https://clerk.com/docs/components/clerk-provider`.trim())}}function z(e){return{queryKey:[e.stablePrefix,e.authenticated,e.tracked,e.untracked],invalidationKey:[e.stablePrefix,e.authenticated,e.tracked],stableKey:e.stablePrefix,authenticated:e.authenticated}}function Z(e){let{queryKey:t}=e;return{type:t[0],...t[2],...t[3].args}}let B=(e,t)=>{let r="boolean"==typeof e&&e,n=(0,s.useRef)(r?t.initialPage:e?.initialPage??t.initialPage),o=(0,s.useRef)(r?t.pageSize:e?.pageSize??t.pageSize),i={};for(let n of Object.keys(t))i[n]=r?t[n]:e?.[n]??t[n];return{...i,initialPage:n.current,pageSize:o.current}};function D(e,t){let r=new Set(Object.keys(t)),n={};for(let t of Object.keys(e))r.has(t)||(n[t]=e[t]);return n}let E={dedupingInterval:6e4,focusThrottleInterval:12e4},F={...E,revalidateFirstPage:!1},L=e=>{let{fetcher:t,config:r,keys:n}=e,[o,i]=(0,s.useState)(r.initialPage??1),a=(0,s.useRef)(r.initialPage??1),l=(0,s.useRef)(r.pageSize??10),d=r.enabled??!0,p="cache"===r.__experimental_mode,m=r.infinite??!1,h=r.keepPreviousData??!1,g=r.isSignedIn,f={...Z(n),initialPage:o,pageSize:l.current},b=function(e){let t=(0,s.useRef)(e),r=(0,s.useRef)(null);return t.current!==e&&(r.current=t.current,t.current=e),r.current}(g),v=!m&&d&&(!!p||!!t),{data:y,isValidating:w,isLoading:x,error:S,mutate:C}=(0,c.ZP)("boolean"==typeof g?!0===b&&!1===g||g&&v?f:null:v?f:null,!p&&t?e=>!1===g||!1===v?null:t(D(e,{type:n.queryKey[0],...n.queryKey[2]})):null,{keepPreviousData:h,...E}),{data:$,isLoading:_,isValidating:k,error:P,size:I,setSize:A,mutate:T}=(0,u.ZP)(e=>m&&d&&!1!==g?{...Z(n),initialPage:a.current+e,pageSize:l.current}:null,e=>{let r=D(e,{type:n.queryKey[0],...n.queryKey[2]});return t?.(r)},F),R=(0,s.useMemo)(()=>m?I:o,[m,I,o]),z=(0,s.useCallback)(e=>m?void A(e):i(e),[A,m]),B=(0,s.useMemo)(()=>m?$?.map(e=>e?.data).flat()??[]:y?.data??[],[m,y,$]),L=(0,s.useMemo)(()=>m?$?.[$?.length-1]?.total_count||0:y?.total_count??0,[m,y,$]),M=m?_:x,O=m?k:w,U=(m?P:S)??null,j=(0,s.useCallback)(()=>{z(e=>Math.max(0,e+1))},[z]),W=(0,s.useCallback)(()=>{z(e=>Math.max(0,e-1))},[z]),N=(a.current-1)*l.current;return{data:B,count:L,error:U,isLoading:M,isFetching:O,isError:!!U,page:R,pageCount:Math.ceil((L-N)/l.current),fetchPage:z,fetchNext:j,fetchPrevious:W,hasNextPage:L-N*l.current>R*l.current,hasPreviousPage:(R-1)*l.current>N*l.current,revalidate:m?()=>T():()=>C(),setData:m?e=>T(e,{revalidate:!1}):e=>C(e,{revalidate:!1})}};function M(e){R("useAPIKeys");let t=B(e,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1,subject:"",query:"",enabled:!0}),r=v();r.telemetry?.record((0,l.J6)("useAPIKeys"));let n={initialPage:t.initialPage,pageSize:t.pageSize,...t.subject?{subject:t.subject}:{},...t.query?{query:t.query}:{}},o=(t.enabled??!0)&&r.loaded,i=L({fetcher:r.apiKeys?.getAll?e=>r.apiKeys.getAll({...e,subject:t.subject}):void 0,config:{keepPreviousData:t.keepPreviousData,infinite:t.infinite,enabled:o,isSignedIn:!!r.user,initialPage:t.initialPage,pageSize:t.pageSize},keys:z({stablePrefix:"apiKeys",authenticated:!!r.user,tracked:{subject:t.subject},untracked:{args:n}})}),{mutate:a}=(0,d.kY)(),c=(0,s.useCallback)(()=>a(e=>!!e&&"object"==typeof e&&"type"in e&&"apiKeys"===e.type&&"subject"in e&&e.subject===t.subject),[a,t.subject]);return{...i,revalidate:c}}let O=()=>(R("useClerk"),v());function U(e){let t=O(),r=(0,s.useRef)(!1);(0,s.useEffect)(()=>{r.current||(r.current=!0,t.__internal_attemptToEnableEnvironmentSetting?.({for:"organizations",caller:e}))},[t,e])}let j={data:void 0,count:void 0,error:void 0,isLoading:!1,isFetching:!1,isError:!1,page:void 0,pageCount:void 0,fetchPage:void 0,fetchNext:void 0,fetchPrevious:void 0,hasNextPage:!1,hasPreviousPage:!1,revalidate:void 0,setData:void 0};function W(e){var t,r;let{domains:n,membershipRequests:o,memberships:i,invitations:a}=e||{};R("useOrganization"),U("useOrganization");let{organization:s}=A(),c=$(),d=B(n,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1,enrollmentMode:void 0}),u=B(o,{initialPage:1,pageSize:10,status:"pending",keepPreviousData:!1,infinite:!1}),p=B(i,{initialPage:1,pageSize:10,role:void 0,keepPreviousData:!1,infinite:!1,query:void 0}),m=B(a,{initialPage:1,pageSize:10,status:["pending"],keepPreviousData:!1,infinite:!1}),h=v();h.telemetry?.record((0,l.J6)("useOrganization"));let g=void 0===n?void 0:{initialPage:d.initialPage,pageSize:d.pageSize,enrollmentMode:d.enrollmentMode},f=void 0===o?void 0:{initialPage:u.initialPage,pageSize:u.pageSize,status:u.status},b=void 0===i?void 0:{initialPage:p.initialPage,pageSize:p.pageSize,role:p.role,query:p.query},y=void 0===a?void 0:{initialPage:m.initialPage,pageSize:m.pageSize,status:m.status},w=L({fetcher:s?.getDomains,config:{keepPreviousData:d.keepPreviousData,infinite:d.infinite,enabled:!!g,isSignedIn:!!s,initialPage:d.initialPage,pageSize:d.pageSize},keys:z({stablePrefix:"domains",authenticated:!!s,tracked:{organizationId:s?.id},untracked:{args:g}})}),x=L({fetcher:s?.getMembershipRequests,config:{keepPreviousData:u.keepPreviousData,infinite:u.infinite,enabled:!!f,isSignedIn:!!s,initialPage:u.initialPage,pageSize:u.pageSize},keys:z({stablePrefix:"membershipRequests",authenticated:!!s,tracked:{organizationId:s?.id},untracked:{args:f}})}),S=L({fetcher:s?.getMemberships,config:{keepPreviousData:p.keepPreviousData,infinite:p.infinite,enabled:!!b,isSignedIn:!!s,initialPage:p.initialPage,pageSize:p.pageSize},keys:z({stablePrefix:"memberships",authenticated:!!s,tracked:{organizationId:s?.id},untracked:{args:b}})}),C=L({fetcher:s?.getInvitations,config:{keepPreviousData:m.keepPreviousData,infinite:m.infinite,enabled:!!y,isSignedIn:!!s,initialPage:m.initialPage,pageSize:m.pageSize},keys:z({stablePrefix:"invitations",authenticated:!!s,tracked:{organizationId:s?.id},untracked:{args:y}})});return void 0===s?{isLoaded:!1,organization:void 0,membership:void 0,domains:j,membershipRequests:j,memberships:j,invitations:j}:null===s?{isLoaded:!0,organization:null,membership:null,domains:null,membershipRequests:null,memberships:null,invitations:null}:!h.loaded&&s?{isLoaded:!0,organization:s,membership:void 0,domains:j,membershipRequests:j,memberships:j,invitations:j}:{isLoaded:h.loaded,organization:s,membership:(t=c.user.organizationMemberships,r=s.id,t.find(e=>e.organization.id===r)),domains:w,membershipRequests:x,memberships:S,invitations:C}}function N(e={}){let{keepPreviousData:t=!0,enabled:r=!0}=e,n=v(),o=w(),i=n.__unstable__environment?.organizationSettings?.organizationCreationDefaults?.enabled??!1;n.telemetry?.record((0,l.J6)("useOrganizationCreationDefaults"));let{queryKey:a}=function(e){let{userId:t}=e;return(0,s.useMemo)(()=>z({stablePrefix:"organizationCreationDefaults",authenticated:!!t,tracked:{userId:t??null},untracked:{args:{}}}),[t])}({userId:o?.id??null}),d=(0,c.ZP)(o&&r&&i&&n.loaded?a:null,()=>{if(!o)throw Error("User is required to fetch organization creation defaults");return o.getOrganizationCreationDefaults()},{dedupingInterval:6e4,keepPreviousData:t});return{data:d.data,error:d.error??null,isLoading:d.isLoading,isFetching:d.isValidating}}let H={data:void 0,count:void 0,error:void 0,isLoading:!1,isFetching:!1,isError:!1,page:void 0,pageCount:void 0,fetchPage:void 0,fetchNext:void 0,fetchPrevious:void 0,hasNextPage:!1,hasPreviousPage:!1,revalidate:void 0,setData:void 0};function V(e){let{userMemberships:t,userInvitations:r,userSuggestions:n}=e||{};R("useOrganizationList"),U("useOrganizationList");let o=B(t,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1}),i=B(r,{initialPage:1,pageSize:10,status:"pending",keepPreviousData:!1,infinite:!1}),a=B(n,{initialPage:1,pageSize:10,status:"pending",keepPreviousData:!1,infinite:!1}),s=v(),c=w();s.telemetry?.record((0,l.J6)("useOrganizationList"));let d=void 0===t?void 0:{initialPage:o.initialPage,pageSize:o.pageSize},u=void 0===r?void 0:{initialPage:i.initialPage,pageSize:i.pageSize,status:i.status},p=void 0===n?void 0:{initialPage:a.initialPage,pageSize:a.pageSize,status:a.status},m=!!(s.loaded&&c),h=L({fetcher:c?.getOrganizationMemberships,config:{keepPreviousData:o.keepPreviousData,infinite:o.infinite,enabled:!!d,isSignedIn:!!c,initialPage:o.initialPage,pageSize:o.pageSize},keys:z({stablePrefix:"userMemberships",authenticated:!!c,tracked:{userId:c?.id},untracked:{args:d}})}),g=L({fetcher:c?.getOrganizationInvitations,config:{keepPreviousData:i.keepPreviousData,infinite:i.infinite,enabled:!!u,isSignedIn:!!c,initialPage:i.initialPage,pageSize:i.pageSize},keys:z({stablePrefix:"userInvitations",authenticated:!!c,tracked:{userId:c?.id},untracked:{args:u}})}),f=L({fetcher:c?.getOrganizationSuggestions,config:{keepPreviousData:a.keepPreviousData,infinite:a.infinite,enabled:!!p,isSignedIn:!!c,initialPage:a.initialPage,pageSize:a.pageSize},keys:z({stablePrefix:"userSuggestions",authenticated:!!c,tracked:{userId:c?.id},untracked:{args:p}})});return m?{isLoaded:m,setActive:s.setActive,createOrganization:s.createOrganization,userMemberships:h,userInvitations:g,userSuggestions:f}:{isLoaded:!1,createOrganization:void 0,setActive:void 0,userMemberships:H,userInvitations:H,userSuggestions:H}}let K="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,X="useSession",Y=()=>{R(X);let e=$(),t=v();return(t.telemetry?.record((0,l.J6)(X)),void 0===e)?{isLoaded:!1,isSignedIn:void 0,session:void 0}:null===e?{isLoaded:!0,isSignedIn:!1,session:null}:{isLoaded:!0,isSignedIn:t.isSignedIn,session:e}},q="useUser";function G(){R(q);let e=w();return(v().telemetry?.record((0,l.J6)(q)),void 0===e)?{isLoaded:!1,isSignedIn:void 0,user:void 0}:null===e?{isLoaded:!0,isSignedIn:!1,user:null}:{isLoaded:!0,isSignedIn:!0,user:e}}let J=(e,t)=>s.useMemo(e,(e=>{let t=s.useRef(e);return(0,p.J)(e,t.current)||(t.current=e),s.useMemo(()=>t.current,[t.current])})(t));async function Q(e){try{let t=await e;if(t instanceof Response)return t.json();return t}catch(e){if((0,i.kD)(e)&&e.errors.find(({code:e})=>"session_reverification_required"===e))return{clerk_error:{type:"forbidden",reason:n,metadata:{reverification:void 0}}};throw e}}let ee=(e,t)=>{let{__internal_openReverification:r,telemetry:c}=O(),d=(0,s.useRef)(e),u=(0,s.useRef)(t);return c?.record((0,l.J6)("useReverification",{onNeedsReverification:!!t?.onNeedsReverification})),K(()=>{d.current=e,u.current=t}),(0,s.useCallback)((...e)=>{var t;return(t={openUIComponent:r,telemetry:c,...u.current},function(e){return async(...r)=>{let l,s=await Q(e(...r));if((l=s)&&"object"==typeof l&&"clerk_error"in l&&l.clerk_error?.type==="forbidden"&&l.clerk_error?.reason===n){let n=(0,a.W)(),l=(0,o.Pm)(s.clerk_error.metadata?.reverification),c=l?l().level:void 0,d=()=>{n.reject(new i.w$("User cancelled attempted verification",{code:"reverification_cancelled"}))},u=()=>{n.resolve(!0)};void 0===t.onNeedsReverification?t.openUIComponent?.({level:c,afterVerification:u,afterVerificationCancelled:d}):t.onNeedsReverification({cancel:d,complete:u,level:c}),await n.promise,s=await Q(e(...r))}return s}})(d.current)(...e)},[r,c])};function et({hookName:e,resourceType:t,useFetcher:r,options:n}){return function(o){let{for:i,enabled:a,...s}=o||{},c=i||"user";R(e);let d=r(c),u=B(s,{initialPage:1,pageSize:10,keepPreviousData:!1,infinite:!1,__experimental_mode:void 0}),p=v(),m=w(),{organization:h}=A();p.telemetry?.record((0,l.J6)(e));let g="organization"===c,f=function(e){let t=v(),r=e?.enabled??!0,n=t.__unstable__environment,o=w(),{organization:i}=A(),a=e?.for==="organization",l=a?n?.commerceSettings.billing.organization.enabled:n?.commerceSettings.billing.user.enabled,s=!(e?.authenticated??!0)||(!a||!!i?.id)&&!!o?.id;return l&&r&&t.loaded&&s}({for:c,enabled:a,authenticated:!n?.unauthenticated}),b=void 0===s?void 0:{initialPage:u.initialPage,pageSize:u.pageSize,...n?.unauthenticated?{}:g?{orgId:h?.id}:{}},y=!!b&&p.loaded&&!!f;return L({fetcher:d,config:{keepPreviousData:u.keepPreviousData,infinite:u.infinite,enabled:y,...n?.unauthenticated?{}:{isSignedIn:null!==m},__experimental_mode:u.__experimental_mode,initialPage:u.initialPage,pageSize:u.pageSize},keys:z({stablePrefix:t,authenticated:!n?.unauthenticated,tracked:n?.unauthenticated?{for:c}:{userId:m?.id,...g?{_orgId:h?.id}:{}},untracked:{args:b}})})}}let er=et({hookName:"useStatements",resourceType:"billing-statements",useFetcher:()=>{let e=v();if(e.loaded)return e.billing.getStatements}}),en=et({hookName:"usePaymentAttempts",resourceType:"billing-payment-attempts",useFetcher:()=>{let e=v();if(e.loaded)return e.billing.getPaymentAttempts}}),eo=et({hookName:"usePaymentMethods",resourceType:"billing-payment-methods",useFetcher:e=>{let{organization:t}=A(),r=w();return"organization"===e?t?.getPaymentMethods:r?.getPaymentMethods}}),ei=et({hookName:"usePlans",resourceType:"billing-plans",useFetcher:e=>{let t=v();if(t.loaded)return r=>t.billing.getPlans({...r,for:e})},options:{unauthenticated:!0}}),ea="useSubscription";function el(e){R(ea);let t=v(),r=w(),{organization:n}=A(),o=t.__unstable__environment;t.telemetry?.record((0,l.J6)(ea));let i=e?.for==="organization"?o?.commerceSettings.billing.organization.enabled:o?.commerceSettings.billing.user.enabled,a=(e?.enabled??!0)&&i,{queryKey:d}=function(e){let{userId:t,orgId:r,for:n}=e;return(0,s.useMemo)(()=>{let e="organization"===n?r:void 0;return z({stablePrefix:"billing-subscription",authenticated:!0,tracked:{userId:t,orgId:e},untracked:{args:{orgId:e}}})},[t,r,n])}({userId:r?.id,orgId:n?.id,for:e?.for}),u=(0,c.ZP)(a?{queryKey:d}:null,({queryKey:e})=>{let r=e[3].args;return e[2].userId?t.billing.getSubscription(r):null},{dedupingInterval:6e4,keepPreviousData:e?.keepPreviousData}),p=(0,s.useCallback)(()=>{u.mutate()},[u]);return{data:u.data,error:u.error,isLoading:u.isLoading,isFetching:u.isValidating,revalidate:p}}let es=e=>{let t=k(),{for:r,planId:n,planPeriod:o}=e||t,i=O(),{organization:a}=A(),{isLoaded:l,user:c}=G();if(!l)throw Error("Clerk: Ensure that `useCheckout` is inside a component wrapped with `<ClerkLoaded />`.");if(!c)throw Error("Clerk: Ensure that `useCheckout` is inside a component wrapped with `<SignedIn />`.");if("organization"===r&&!a)throw Error("Clerk: Ensure your flow checks for an active organization. Retrieve `orgId` from `useAuth()` and confirm it is defined. For SSR, see: https://clerk.com/docs/reference/backend/types/auth-object#how-to-access-the-auth-object");let d=(0,s.useMemo)(()=>i.__experimental_checkout({planId:n,planPeriod:o,for:r}),[c.id,a?.id,n,o,r]),u=(0,s.useSyncExternalStore)(e=>d.subscribe(e),()=>d.getState(),()=>d.getState());return{checkout:{...(0,s.useMemo)(()=>{if(!u.checkout)return{id:null,externalClientSecret:null,externalGatewayId:null,totals:null,isImmediatePlanChange:null,planPeriod:null,plan:null,paymentMethod:null,freeTrialEndsAt:null,payer:null,needsPaymentMethod:null,planPeriodStart:null};let{reload:e,confirm:t,pathRoot:r,...n}=u.checkout;return n},[u.checkout]),getState:d.getState,start:d.start,confirm:d.confirm,clear:d.clear,finalize:d.finalize,isStarting:u.isStarting,isConfirming:u.isConfirming,error:u.error,status:u.status,fetchStatus:u.fetchStatus}}};function ec(e={}){let{statementId:t=null,enabled:r=!0,keepPreviousData:n=!1,for:o="user"}=e,i=v(),a=w(),{organization:l}=A(),d="organization"===o?l?.id??null:null,{queryKey:u}=function(e){let{statementId:t,userId:r,orgId:n,for:o}=e;return(0,s.useMemo)(()=>z({stablePrefix:"billing-statement",authenticated:!0,tracked:{statementId:t,forType:o,userId:r,orgId:n},untracked:{args:{id:t??void 0,orgId:n??void 0}}}),[t,o,r,n])}({statementId:t,userId:a?.id??null,orgId:d,for:o}),p=(0,c.ZP)(t&&r&&("organization"!==o||d)?u:null,()=>{if(!t)throw Error("statementId is required to fetch a statement");return i.billing.getStatement({id:t,orgId:d??void 0})},{dedupingInterval:6e4,keepPreviousData:n});return{data:p.data,error:p.error??null,isLoading:p.isLoading,isFetching:p.isValidating}}function ed(e={}){let{planId:t,initialPlan:r=null,enabled:n=!0,keepPreviousData:o=!0}=e,i=v(),a=t??r?.id??null,{queryKey:l}=function(e){let{planId:t}=e;return(0,s.useMemo)(()=>z({stablePrefix:"billing-plan",authenticated:!1,tracked:{planId:t??null},untracked:{args:{id:t??void 0}}}),[t])}({planId:a}),d=(0,c.ZP)(a&&n?l:null,()=>{if(!a)throw Error("planId is required to fetch plan details");return i.billing.getPlan({id:a})},{dedupingInterval:6e4,keepPreviousData:o,fallbackData:r??void 0});return{data:d.data,error:d.error??null,isLoading:d.isLoading,isFetching:d.isValidating}}function eu(e){let{paymentAttemptId:t,enabled:r=!0,keepPreviousData:n=!1,for:o="user"}=e,i=v(),a=w(),{organization:l}=A(),d="organization"===o?l?.id??null:null,{queryKey:u}=function(e){let{paymentAttemptId:t,userId:r,orgId:n,for:o}=e;return(0,s.useMemo)(()=>z({stablePrefix:"billing-payment-attempt",authenticated:!0,tracked:{paymentAttemptId:t,forType:o,userId:r,orgId:n},untracked:{args:{id:t??void 0,orgId:n??void 0}}}),[t,o,r,n])}({paymentAttemptId:t,userId:a?.id??null,orgId:d,for:o}),p=(0,c.ZP)(t&&r&&("organization"!==o||d)?{queryKey:u}:null,({queryKey:e})=>{let t=e[3].args;return i.billing.getPaymentAttempt(t)},{dedupingInterval:6e4,keepPreviousData:n});return{data:p.data,error:p.error??null,isLoading:p.isLoading,isFetching:p.isValidating}}let ep=e=>{let t=(0,s.useRef)(e);return(0,s.useEffect)(()=>{t.current=e},[e]),t.current},em=(e,t,r)=>{let n=!!r,o=(0,s.useRef)(r);(0,s.useEffect)(()=>{o.current=r},[r]),(0,s.useEffect)(()=>{if(!n||!e)return()=>{};let r=(...e)=>{o.current&&o.current(...e)};return e.on(t,r),()=>{e.off(t,r)}},[n,t,e,o])},eh=s.createContext(null);eh.displayName="ElementsContext";let eg=(e,t)=>{if(!e)throw Error(`Could not find Elements context; You need to wrap the part of your app that ${t} in an <Elements> provider.`);return e},ef=({stripe:e,options:t,children:r})=>{let n=s.useMemo(()=>ey(e),[e]),[o,i]=s.useState(()=>({stripe:"sync"===n.tag?n.stripe:null,elements:"sync"===n.tag?n.stripe.elements(t):null}));s.useEffect(()=>{let e=!0,r=e=>{i(r=>r.stripe?r:{stripe:e,elements:e.elements(t)})};return"async"!==n.tag||o.stripe?"sync"!==n.tag||o.stripe||r(n.stripe):n.stripePromise.then(t=>{t&&e&&r(t)}),()=>{e=!1}},[n,o,t]);let a=ep(e);s.useEffect(()=>{null!==a&&a!==e&&console.warn("Unsupported prop change on Elements: You cannot change the `stripe` prop after setting it.")},[a,e]);let l=ep(t);return s.useEffect(()=>{if(!o.elements)return;let e=eC(t,l,["clientSecret","fonts"]);e&&o.elements.update(e)},[t,l,o.elements]),s.createElement(eh.Provider,{value:o},r)},eb="Invalid prop `stripe` supplied to `Elements`. We recommend using the `loadStripe` utility from `@stripe/stripe-js`. See https://stripe.com/docs/stripe-js/react#elements-props-stripe for details.",ev=(e,t=eb)=>{if(null===e||eS(e))return e;throw Error(t)},ey=(e,t=eb)=>{if(ex(e))return{tag:"async",stripePromise:Promise.resolve(e).then(e=>ev(e,t))};let r=ev(e,t);return null===r?{tag:"empty"}:{tag:"sync",stripe:r}},ew=e=>null!==e&&"object"==typeof e,ex=e=>ew(e)&&"function"==typeof e.then,eS=e=>ew(e)&&"function"==typeof e.elements&&"function"==typeof e.createToken&&"function"==typeof e.createPaymentMethod&&"function"==typeof e.confirmCardPayment,eC=(e,t,r)=>ew(e)?Object.keys(e).reduce((n,o)=>{let i=!ew(t)||!e_(e[o],t[o]);return r.includes(o)?(i&&console.warn(`Unsupported prop change: options.${o} is not a mutable property.`),n):i?{...n||{},[o]:e[o]}:n},null):null,e$="[object Object]",e_=(e,t)=>{if(!ew(e)||!ew(t))return e===t;let r=Array.isArray(e);if(r!==Array.isArray(t))return!1;let n=Object.prototype.toString.call(e)===e$;if(n!==(Object.prototype.toString.call(t)===e$))return!1;if(!n&&!r)return e===t;let o=Object.keys(e),i=Object.keys(t);if(o.length!==i.length)return!1;let a={};for(let e=0;e<o.length;e+=1)a[o[e]]=!0;for(let e=0;e<i.length;e+=1)a[i[e]]=!0;let l=Object.keys(a);return l.length===o.length&&l.every(r=>e_(e[r],t[r]))},ek=e=>eg(s.useContext(eh),e),eP=((e,t)=>{let r=`${e.charAt(0).toUpperCase()+e.slice(1)}Element`,n=t?e=>{ek(`mounts <${r}>`);let{id:t,className:n}=e;return s.createElement("div",{id:t,className:n})}:({id:t,className:n,fallback:o,options:i={},onBlur:a,onFocus:l,onReady:c,onChange:d,onEscape:u,onClick:p,onLoadError:m,onLoaderStart:h,onNetworksChange:g,onConfirm:f,onCancel:b,onShippingAddressChange:v,onShippingRateChange:y})=>{let w,x=ek(`mounts <${r}>`),S="elements"in x?x.elements:null,[C,$]=s.useState(null),_=s.useRef(null),k=s.useRef(null),[P,I]=(0,s.useState)(!1);em(C,"blur",a),em(C,"focus",l),em(C,"escape",u),em(C,"click",p),em(C,"loaderror",m),em(C,"loaderstart",h),em(C,"networkschange",g),em(C,"confirm",f),em(C,"cancel",b),em(C,"shippingaddresschange",v),em(C,"shippingratechange",y),em(C,"change",d),c&&(w=()=>{I(!0),c(C)}),em(C,"ready",w),s.useLayoutEffect(()=>{if(null===_.current&&null!==k.current&&S){let t=null;S&&(t=S.create(e,i)),_.current=t,$(t),t&&t.mount(k.current)}},[S,i]);let A=ep(i);return s.useEffect(()=>{if(!_.current)return;let e=eC(i,A,["paymentRequest"]);e&&"update"in _.current&&_.current.update(e)},[i,A]),s.useLayoutEffect(()=>()=>{if(_.current&&"function"==typeof _.current.destroy)try{_.current.destroy(),_.current=null}catch{}},[]),s.createElement(s.Fragment,null,!P&&o,s.createElement("div",{id:t,style:{height:P?"unset":"0px",visibility:P?"visible":"hidden"},className:n,ref:k}))};return n.displayName=r,n.__elementType=e,n})("payment","undefined"==typeof window),eI=()=>O().__unstable__environment,[eA,eT]=g("PaymentElementContext"),[eR,ez]=g("StripeUtilsContext"),eZ=({children:e})=>{let t=(()=>{let{stripe:e}=ek("calls useStripe()");return e})(),r=(()=>{let{elements:e}=eg(s.useContext(eh),"calls useElements()");return e})();return s.createElement(eR.Provider,{value:{value:{stripe:t,elements:r}}},e)},eB=({children:e})=>s.createElement(eR.Provider,{value:{value:{}}},e),eD=({children:e,...t})=>{let r=((e="user")=>{let t=function(){let e=O();return(0,c.ZP)("clerk-stripe-sdk",async()=>({loadStripe:await e.__internal_loadStripeJs()}),{keepPreviousData:!0,revalidateOnFocus:!1,dedupingInterval:1/0}).data??null}(),r=eI(),{initializedPaymentMethod:n,initializePaymentMethod:o}=function(e){let{for:t="user"}=e??{},{organization:r}=A(),n=w(),o="organization"===t?r:n,{data:i,trigger:a}=(0,m.Z)(o?.id?{key:"billing-payment-method-initialize",resourceId:o.id,for:t}:null,()=>o?.initializePaymentMethod({gateway:"stripe"}));return(0,s.useEffect)(()=>{o?.id&&a().catch(()=>{})},[o?.id,a]),{initializedPaymentMethod:i,initializePaymentMethod:a}}({for:e}),i=r?.commerceSettings.billing.stripePublishableKey??void 0;return{stripe:function(e){let{stripeClerkLibs:t,externalGatewayId:r,stripePublishableKey:n}=e;return(0,c.ZP)(t&&r&&n?{key:"stripe-sdk",externalGatewayId:r,stripePublishableKey:n}:null,({stripePublishableKey:e,externalGatewayId:r})=>t?.loadStripe(e,{stripeAccount:r}),{keepPreviousData:!0,revalidateOnFocus:!1,dedupingInterval:6e4}).data}({stripeClerkLibs:t,externalGatewayId:n?.externalGatewayId,stripePublishableKey:i}),initializePaymentMethod:o,externalClientSecret:n?.externalClientSecret,paymentMethodOrder:n?.paymentMethodOrder}})(t.for),[n,o]=(0,s.useState)(!1);return s.createElement(eA.Provider,{value:{value:{...t,...r,setIsPaymentElementReady:o,isPaymentElementReady:n}}},e)},eE=({children:e,...t})=>s.createElement(eD,t,s.createElement(eF,null,e)),eF=e=>{let{stripe:t,externalClientSecret:r,stripeAppearance:n}=eT(),o=(()=>{let e=O(),t="en";try{t=e.__internal_getOption("localization")?.locale||"en"}catch{}return t.split("-")[0]})();return t&&r?s.createElement(ef,{key:r,stripe:t,options:{loader:"never",clientSecret:r,appearance:{variables:n},locale:o}},s.createElement(eZ,null,e.children)):s.createElement(eB,null,e.children)},eL=({fallback:e})=>{let{setIsPaymentElementReady:t,paymentMethodOrder:r,checkout:n,stripe:o,externalClientSecret:i,paymentDescription:a,for:l}=eT(),c=eI(),d=(0,s.useMemo)(()=>{if(n&&n.totals&&n.plan)return{recurringPaymentRequest:{paymentDescription:a||"",managementURL:"organization"===l?c?.displayConfig.organizationProfileUrl||"":c?.displayConfig.userProfileUrl||"",regularBilling:{amount:n.totals.totalDueNow?.amount||n.totals.grandTotal.amount,label:n.plan.name,recurringPaymentIntervalUnit:"annual"===n.planPeriod?"year":"month"}}}},[n,a,l,c]),u=(0,s.useMemo)(()=>({layout:{type:"tabs",defaultCollapsed:!1},paymentMethodOrder:r,applePay:d}),[d,r]),p=(0,s.useCallback)(()=>{t(!0)},[t]);return o&&i?s.createElement(eP,{fallback:e,onReady:p,options:u}):s.createElement(s.Fragment,null,e)},eM=()=>{throw Error("Clerk: Unable to submit, Stripe libraries are not yet loaded. Be sure to check `isFormReady` before calling `submit`.")},eO=()=>{let{isPaymentElementReady:e,initializePaymentMethod:t}=eT(),{stripe:r,elements:n}=ez(),{externalClientSecret:o}=eT(),i=(0,s.useCallback)(async()=>{if(!r||!n)return eM();let{setupIntent:e,error:t}=await r.confirmSetup({elements:n,confirmParams:{return_url:window.location.href},redirect:"if_required"});return t?{data:null,error:{gateway:"stripe",error:{code:t.code,message:t.message,type:t.type}}}:{data:{gateway:"stripe",paymentToken:e.payment_method},error:null}},[r,n]),a=(0,s.useCallback)(async()=>{if(!r||!n)return eM();await t()},[r,n,t]),l=!!(r&&o);return l?{submit:i,reset:a,isFormReady:e,provider:{name:"stripe"},isProviderReady:l}:{submit:eM,reset:eM,isFormReady:!1,provider:void 0,isProviderReady:!1}}}}]);
|