1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/funnel-analytics-DnuCiyv3.js","assets/client-Dy2P3he-.js","assets/vendor-supabase-D2XPrbcR.js","assets/vendor-pdf-DHUBMtDJ.js","assets/vendor-query-DUki8u-D.js","assets/vendor-react-DHU755GE.js","assets/error-reporter-EYiXaqJQ.js","assets/breadcrumbs-CN3GC8vy.js","assets/vendor-charts-DsctC1NR.js","assets/vendor-icons-D7GmeyGG.js","assets/useTheme-DEq4C3Xf.js","assets/vendor-motion-DoyUfQ58.js","assets/ClaimCommunicationsDialog-BrG_bf6Q.js","assets/sheet-DDAHMz7p.js","assets/ClaimParticipants-5UppR27k.js","assets/formatDistanceToNowStrict-B0_ltmaX.js","assets/en-US-BqCXNUOZ.js","assets/getRoundingMethod-Cs3-IipQ.js","assets/claim-constants-F6TZxwZ5.js","assets/ClaimConversation-BhWEhiRg.js","assets/textarea-Pc8lpgfp.js","assets/select-BJ2LQ1BA.js","assets/index-BdQq_4o_.js","assets/index-BFcYZw7s.js","assets/popover-DAwJgSl1.js","assets/ChatWidget-7K5DhckU.js","assets/AssistantMessage-B0q8kbMO.js","assets/index-BlblC0h4.js","assets/index-BiEdK6ON.js","assets/label-CQkxHeEJ.js","assets/support-topics-DknvPXTo.js","assets/useUserRole-Ctm8NATz.js","assets/useOrgPartnerContact-BtRqYP5a.js","assets/OrgPartnerSupportPanel-BdVMRdb9.js","assets/card-B_TKe1rC.js","assets/support-attachments-B-hICUlF.js","assets/AnnouncementBanner-WWTEg0Wf.js","assets/SocialProofStrip-YV3Gt_-T.js","assets/HowItWorks-BT5OLHp3.js","assets/EligibilityChecker-BOPCo22B.js","assets/ComparisonTable-C26O9hfH.js","assets/WhySell-BJPVcCIp.js","assets/CaseResults-CNQ4u9fj.js","assets/RefundEstimator-DMKaaHNK.js","assets/WhatWeDo-DV2Od3_m.js","assets/RegulatoryCompliance-BPV3ab-o.js","assets/accordion-CaRQoKh5.js","assets/index-DP9v6o89.js","assets/FAQ-D-Pm05NQ.js","assets/BottomCTA-B-xXI72u.js","assets/AdvanceFundingCallout-Bi-hujg-.js","assets/Footer-DuWDF-ft.js","assets/Apply-C-7KGezA.js","assets/validated-inputs-CtufBPv8.js","assets/checkbox-eIxR81FC.js","assets/separator-BGBKlkSh.js","assets/recovery-bucket-icons-DKrdpOEg.js","assets/useEmbedAutoResize-BkxQJcEV.js","assets/access-gates-DpSIZSfD.js","assets/PartnerUpdateMay2026-z1bQ-6Av.js","assets/PartnerUpdateMay15-BKMG_TMi.js","assets/ieepa-crm-mockup-1-D-hdHLlA.js","assets/ieepa-crm-mockup-2-Cwu0HV1V.js","assets/IeepaCrmBigPromo-DD0qNYGW.js","assets/Pages-zEVyGkuj.js","assets/switch-D3dXx0E2.js","assets/table-BpuyeSw8.js","assets/ApplyFunding-zLJZibF9.js","assets/radio-group-CRWAIIDJ.js","assets/progress-CJLwRXFJ.js","assets/signup-sync-H-JFpf6w.js","assets/AdvanceFunding-C3Rv4f8F.js","assets/LandingDisclaimer-CdButeEM.js","assets/FundingApplicationSubmitted-j741DWAr.js","assets/FundingApplications-DBlJaYP3.js","assets/likely-test-claim-CZAM8Ife.js","assets/test-claim-detector-C7yWOzH7.js","assets/format-D9x0XWGR.js","assets/formatDistanceToNow-CD_R0YjW.js","assets/differenceInCalendarMonths-BSRE4gQg.js","assets/endOfMonth-B_n1vX73.js","assets/FundingApplicationDetail-B37kZdCF.js","assets/tabs-DO2x6V1p.js","assets/Login-CJTk2Mxv.js","assets/ReferredByBadge-D3maQRUg.js","assets/useRateLimit-BKKXoKPn.js","assets/AlreadySignedInNotice-CZ0o6lTI.js","assets/useScrollIntoView-DhXCcsel.js","assets/InlineGateNotice-qNPQUSzC.js","assets/ResetPassword-BfYRhQeS.js","assets/PublicAgreementSign-rUwEsxcm.js","assets/AgreementViewer-BacWGjDw.js","assets/scroll-area-C5uKDqac.js","assets/SignaturePad-Ca2_wxMG.js","assets/PreSignProfileForm-CVmnfkJR.js","assets/address-autocomplete-CLLI86tu.js","assets/vendor-forms-C2StuR4q.js","assets/agreement-tokens-HSUqObXi.js","assets/agreement-pdf-B8dWl2Jr.js","assets/PublicInvoice-Bootg_yZ.js","assets/invoice-meta-B-EEgjod.js","assets/Account-Cu68OoJ4.js","assets/avatar-BhvQFhpz.js","assets/useResolvedAffiliate-DQZqFi-p.js","assets/BrokerSlugEditDialog-BoZE4Ni2.js","assets/alert-dialog-COU3YwVl.js","assets/Results-CZ2CX7Pn.js","assets/SubPageHero-DVyESExU.js","assets/ResourcesHub-hsr4Euva.js","assets/useArticles-t_hnnu-g.js","assets/CategoryPage-Bd0Xi-n3.js","assets/CategoryNav-Dyr0rcXL.js","assets/ArticlePage-Cp--IM-u.js","assets/GeoLanding-DKmSldXe.js","assets/ServicePageLayout-DI_0aGYU.js","assets/PillarBacklink-C53QPTIt.js","assets/RelatedPages-CH8ufwpG.js","assets/PlatformPage-BcI7C3fM.js","assets/Unsubscribe-Cshm38N1.js","assets/RaffleLive-CdXgKijt.js","assets/ForImporters-Lm0hYNQD.js","assets/ForBrokers-I4cVdH2j.js","assets/IndustriesPage-BEeGWdtJ.js","assets/HowItWorksPage-BUB3eeab.js","assets/FAQPage-BFx_DlXI.js","assets/IEEPARefunds-BPqd55ZJ.js","assets/DutyDrawback-D9-BuV0e.js","assets/FreeAssessment-D25EZBhq.js","assets/CBPProtest-DHIQmCSo.js","assets/Eligibility-Cm_51ddr.js","assets/TariffRefundProcess-DBsNhQ2k.js","assets/TariffRefundPillar-foSfOZs7.js","assets/PillarPageLayout-C0_9aVkl.js","assets/TariffRecovery-CPxQISaP.js","assets/CustomsDutyRefund-Blupo1TV.js","assets/ImportDutyRecovery-Ctsq5UlW.js","assets/ToolsHub-BMfqndwu.js","assets/RefundCalculatorPage-DIrz4svY.js","assets/EligibilityCheckerPage-CuKb_lUV.js","assets/ACEAnalyzerPage-BZkcPKq5.js","assets/useTariffPrograms-zn46sdOS.js","assets/IndustryDetail-CPPdQOYz.js","assets/CaseStudiesHub-xn6rjy1z.js","assets/CaseStudyDetail-CSMYB16k.js","assets/HTSCodePage-COBYuBHV.js","assets/TermsOfService-Buw1GF1M.js","assets/LegalPageLayout-Bc6ibFCF.js","assets/PrivacyPolicy-DpXWa6B2.js","assets/Disclaimer-SsZ1s4i3.js","assets/CookiePolicy-CxCV-3l2.js","assets/AcceptableUsePolicy-D4RN_df2.js","assets/ReferralPartnerTerms-BrlnEtzo.js","assets/ESignConsent-DKtR-C8N.js","assets/DataProcessing-5otk3D_0.js","assets/PartnerWhitePaper-DXrveDfU.js","assets/AnchorApiDocs-68QBkbVW.js","assets/exampleClaimPayload-BkW6p3FP.js","assets/TechDocDetail-DVFEChbP.js","assets/useRefHref-zWmNwkFR.js","assets/tech-docs-O0lg-J2w.js","assets/TechReference-4FJGMViz.js","assets/PublicDocsLeftNav-CT0WlENr.js","assets/partner-resources-BC-2_oOe.js","assets/lp-importer-hero-CrIRkVjk.js","assets/lp-importer-warehouse-BNpPY9GS.js","assets/lp-funding-hero-Bj3ln-83.js","assets/lp-funding-approved-B2UqTWpA.js","assets/lp-flyer-platform-hero-DPSuxR6K.js","assets/lp-hero-brokers-DboJrs6A.js","assets/lp-broker-team-DXRtsyJH.js","assets/lp-broker-flyer-hero-Bo8Y4SJS.js","assets/lp-hero-partners-D0wGL8Fn.js","assets/lp-flyer-why-hero-v2-DebAkmA6.js","assets/ace-portal-setup-thumbnail.png.asset-BwhVTgwE.js","assets/DocsLiveSearch-asL1eYcN.js","assets/AdminLayout-BlzWewdC.js","assets/PortalBottomNav-Bnqk7brX.js","assets/MyTicketsHub-B683XPpG.js","assets/TicketAttachmentList-CMXYR3M3.js","assets/NotificationBell-D45jPaCY.js","assets/notification-link-DWJUF_h2.js","assets/SandboxBanner-DvRW5SF7.js","assets/Dashboard-CnnB8HWQ.js","assets/LeadProgramHealthWidget-GWXrNDi5.js","assets/Leads-BXte8NRB.js","assets/SyncedTopScrollbar-JfL0pt5Z.js","assets/claim-buckets-Cl_CKEqx.js","assets/searchable-select-DG_xrA70.js","assets/command-CBhwoYW6.js","assets/crm-vocab-DnrV6RXz.js","assets/calendar-BbCNGX3_.js","assets/isSameDay-BWv5-M0E.js","assets/subDays-BK6vuqdz.js","assets/startOfMonth-D3_3nocY.js","assets/addMonths-Dw7XJecM.js","assets/funding-stages-UQVxNn-_.js","assets/EmptyState-BpYqLMah.js","assets/anchor-source-of-truth-CjWj8hjg.js","assets/lead-est-recovery-DzLSo3WB.js","assets/IorStatusBadge-C_jp2Po1.js","assets/ScoringReferenceDialog-B3JhqTiy.js","assets/_ui-iJdf2_Jv.js","assets/engagement-fee-B8pLhZIF.js","assets/ClaimProgressMeter-DJ1VpGgr.js","assets/CrmMasterDialog-CJ4gjN9w.js","assets/useCrmMutations-CTTMxhps.js","assets/quo-deeplink-CB_LA5H-.js","assets/StatusBadge-BvY96cm0.js","assets/ViewPartnerDialog-CTVmy7Wg.js","assets/async-partner-select-D7bPdIxE.js","assets/CommissionTreeView-Cgs93f7s.js","assets/useCommissionSettings-DzLA0olu.js","assets/CommissionWaterfallCard-DAdmpulL.js","assets/commission-simulator-BnG1RJMf.js","assets/AgreementRowActions-BcX7NCD4.js","assets/stored-agreement-pdf-CVgd7AlI.js","assets/agreement-filename-9SsE_bIj.js","assets/stored-partner-agreement-pdf--8-5SUD8.js","assets/parseISO-CIZr9Bmv.js","assets/comp-display-COSnfmiM.js","assets/alert-DrXqJ_mR.js","assets/tra-house-D-y556jm.js","assets/slider-yFQijcgx.js","assets/date-picker-DXAtzP_K.js","assets/usePartnerRates-gt02cpVw.js","assets/friendly-password-Chc-6VHn.js","assets/LeadSourceCell-alR3Qu2s.js","assets/org-badge-CS0i4_0U.js","assets/LeadCrmMegaCell-BXXqu
16_w.js","assets/useLeadCrmSummary-D5Voli55.js","assets/TestClaimBadge-jKoFjITi.js","assets/ClaimOriginBadge-D-vYd3eR.js","assets/AceAccessStalledBanner-CCvhv7Ab.js","assets/Clients-JDWvugvs.js","assets/RowActionsMenu-C4dUUzwJ.js","assets/UpgradeClientToPartnerDialog-HyPRWNch.js","assets/InviteLinkShareDialog-L2har21q.js","assets/InviteChannelToggles-CSkPXIZI.js","assets/structured-address-fields-CWR_O6e3.js","assets/countries-states-D7bqWgLh.js","assets/edge-function-helpers-kyDtlOR2.js","assets/LeadDetail-B6Ir8s-d.js","assets/AgreementCardTile-BGJqjejQ.js","assets/AgreementSignDialog-BYllgCNq.js","assets/IdentityWaiverToggle-CqEE9Ob9.js","assets/collapsible-BMB_LUcl.js","assets/useAnchorClaim-CuWUzBDb.js","assets/CrmList-C8r9KrRR.js","assets/PaginationToolbar-DHFtabo0.js","assets/CrmSubNav-DV7jUxDQ.js","assets/chunked-in-CCvlGUWb.js","assets/CrmClaimDetail-By05-1cT.js","assets/CrmDashboard-BONS6xcs.js","assets/CrmTasks-BfmH6w7B.js","assets/CrmSettings-e0Nc5TYE.js","assets/CrmReports-CyeMgOG2.js","assets/RelationshipsLayout-Cd8Lu9xW.js","assets/rel-hub-oYy-v-4-.js","assets/RelationshipsDashboard-DNxIYgQ5.js","assets/RelationshipsList-DbC05pig.js","assets/useDebouncedValue-D_6HdT2F.js","assets/RelationshipsTasks-CW46MFxu.js","assets/RelationshipsCalendar-n_XenhGx.js","assets/RelationshipsCleanup-C06BrBo9.js","assets/RelationshipDetail-ub4H3oB8.js","assets/OrphanClaims-a6FWIdjW.js","assets/PaymentReconciliation-C9pX7Cju.js","assets/StatCard-CyOb2IEq.js","assets/anchor-doc-grouping-CO1E2bA6.js","assets/LeadBreakdownPanel--Q-yutTP.js","assets/Pipeline-DlX_cS64.js","assets/dnd.esm-DU89LPzB.js","assets/Users-I62t64q2.js","assets/Stats-IpDmJnRf.js","assets/Affiliates-C-YZ0IfO.js","assets/status-badge-Xiw32WcS.js","assets/log-pool-invite-activity-B02SDUa5.js","assets/AdminPartnerAgreementsBulk-CdoQuHzk.js","assets/IssueEnterpriseAgreementDialog-D1iT3qIL.js","assets/agreement-omissions-BAmRlV9r.js","assets/email-triggers-Bp6XbLok.js","assets/fetchAllRows-lH2dCizp.js","assets/PartnerAccess-DHeG73oj.js","assets/Brokers-C4MBNDal.js","assets/broker-resolution-nX8F8SfX.js","assets/BrokerDetailDialog-De8O2XD7.js","assets/Commissions-DoNVVrHG.js","assets/send-sms-m5BFzF4a.js","assets/CommissionSimulator-D1bUUXF9.js","assets/LeadWaterfallInspector-Cq6BkoQ8.js","assets/org-tier-waterfall-C0671BaK.js","assets/AttributionRequests-CVwxOWny.js","assets/CompOverrides-CB-1OKtA.js","assets/PaymentAccounts-DifWgkuU.js","assets/HouseRevenue-DgX59IPP.js","assets/AnchorKPIs-DndCjIFu.js","assets/xlsx-B6sNpj_1.js","assets/AnchorStatusMapping-CB7e1mF6.js","assets/Settings-BOwRCPZu.js","assets/RichTextEditor-Du6cWVsA.js","assets/vendor-tiptap-B1Sqlcl_.js","assets/AuditLog-Bz3TF3fc.js","assets/ActivityDashboard-CWlkHhVg.js","assets/Documentation-BBqG8WgX.js","assets/Resources-C5WATJYN.js","assets/Deadlines-DMBqhBlv.js","assets/EmailDashboard-Bfz5KhiU.js","assets/EmailQueue-2gYE3tmW.js","assets/ReputationDashboard-Dfv6MGE4.js","assets/PartnerCampaigns-BDnhvlSC.js","assets/PartnerCampaignDetail-Bz5Hm3IS.js","assets/RecipientsPreviewDialog-Da9H9i7y.js","assets/PartnerSmsCampaignDetail-eYbv0Xpz.js","assets/SmsDashboard-DWVfYVDB.js","assets/DataModeTools-B0xGDt_B.js","assets/EmailTemplatePreview-BNWV1AT5.js","assets/RPA-Clm4NtNE.js","assets/DataQuality-BQCg2OmM.js","assets/Intelligence-CbPPHjlf.js","assets/InfrastructureHealth-B6cm0IGZ.js","assets/AIAssistant-D21WCYbA.js","assets/AdminSEO-BEb3cMp3.js","assets/RedirectMonitor-CGNaecks.js","assets/MarketIntelligence-DneMC4kn.js","assets/isWithinInterval-B6E88Zwz.js","assets/IEEPALeadEngine-D9jCYv8h.js","assets/useCollapsibleCard-dXZd30WH.js","assets/ImportInfoCredentials-2CK05GU-.js","assets/ImportInfoSessions-BqBZ1ux_.js","assets/LeadProgramLayout-B3lvMzsA.js","assets/LeadProgramPerformance-C1PlXQgg.js","assets/AssignmentDialog-DW42d48Z.js","assets/LeadProgramParticipants-BpUozZn6.js","assets/LeadProgramOptIns-7Hb21d5s.js","assets/lead-program-optin-normalize-DW3eBJHG.js","assets/LeadProgramOptIn-C3kWdsoM.js","assets/useShowsLeadProgramOptIn-Dk8jQbfT.js","assets/LeadProgramAssignedLeads-BPj0_rzh.js","assets/LeadProgramTiers-D-p_VYM3.js","assets/LeadProgramBatches-DHw3zJdQ.js","assets/LeadProgramAuditLog-9dd1zlK3.js","assets/LeadProgramAccountability-DVvxEtIV.js","assets/LeadProgramReports-G9pr4yO1.js","assets/LeadProgramSettings-CLpwzC6o.js","assets/SupportTickets-CfM0O4Vq.js","assets/ManualOutreach-B3w-wvd1.js","assets/PartnerProcessing-CbwDe8ap.js","assets/useRealtimeSubscription-DwbK_xjR.js","assets/PartnerIntegrations-CpoAWu2L.js","assets/Organizations-CpzHP9U4.js","assets/HslColorPicker-Df2N0_oi.js","assets/OrgMembersManagementPanel-BgUoaySl.js","assets/Initials-BSnDcYdo.js","assets/csv-export-button-DAvomt8E.js","assets/OrgPerformance-kBoOTMA_.js","assets/useOrgPerformance-sDo7jtac.js","assets/OrgPerformanceDetail-C3KB98ef.js","assets/WhitelabelHealth-C_RLDRW1.js","assets/DomainStatus-BMj_TrPK.js","assets/DomainReferralAttributions-DYdUZF0q.js","assets/PreAttribution-CIEVCX0M.js","assets/index-DNI4s8Cg.js","assets/pre-attribution-tags-BcUtZslt.js","assets/AdminIdentity-7SJc-3Rn.js","assets/MarketingMaterials-cs5qmRc5.js","assets/ReviewRafflePanel-BhcgN3xE.js","assets/useMarketingKit-B6D6f0dG.js","assets/partner-playbook-CREXJCjE.js","assets/browser-CjSdxGTc.js","assets/landing-pages-CYuje9LP.js","assets/deck-qr-destination-DubjKlXQ.js","assets/RunDrawer-CTeoB5Mb.js","assets/VideoStudioPage-WLxAv5Li.js","assets/safe-query-CEZsPDYL.js","assets/PrintCenter-BjWkHG0N.js","assets/print-pricing-CZlV9oaB.js","assets/AdminThumbnails-9MT-glFR.js","assets/thumbnail-capture-Ct1viSG9.js","assets/html2canvas.esm-CBrSDip1.js","assets/ReviewRaffleAdmin-DWKN5Ky2.js","assets/LoginLockouts-Bf5wGbgo.js","assets/PoolInviteActivity-CgOx9bDv.js","assets/ImportInfoPipeline-CU2C1G-s.js","assets/ContactCoverage-Cb4NqBVC.js","assets/EnrichmentV2-CdB8R4zv.js","assets/SlideDecks-Cs6lR4P8.js","assets/useDeck-MU-soLQW.js","assets/SlideDeckEditor-
1B_HbPeJr.js","assets/deck-styles-C6R3HOwo.js","assets/deck-styles-Dy0FZoHD.css","assets/DeckViewer-Hqn0N489.js","assets/useFlyerPartnerCtx-BgRhPE5O.js","assets/DeckControl-Cts1vQ9v.js","assets/DiscoveryCalls-DSQPm8Cy.js","assets/QualificationReasons-Dt6F4IfP.js","assets/discovery-call-zXwXKfsa.js","assets/discovery-call-reasons-CmbNMtO9.js","assets/DiscoveryCallDetailDialog-alZDgcYN.js","assets/HowItWorksDialog-CHpanRGB.js","assets/DiscoveryCallDecisionDialog-B7irvTMf.js","assets/DiscoveryCallReview-CGYz4Bfk.js","assets/DiscoveryCallSettings-Dd3jONJn.js","assets/CalendlyMonitor-Bpgg03op.js","assets/CalendlyReconciliation-CHjmKOcA.js","assets/PartnerDiscoveryCalls-BFi0jDCs.js","assets/toggle-group-CTs9b0-2.js","assets/PartnerDiscoveryCallNew-Bypc6QCW.js","assets/PartnerDiscoveryCallDetail-BhYJbaR5.js","assets/CalendlyInline-BoRgNEi3.js","assets/CorporateDiscoveryCalls-C7X81nTj.js","assets/CorporateDiscoveryCallSettings-CxU79hmp.js","assets/PublicDiscoveryCallBooking-V0wbCjy1.js","assets/AffiliateLayout-Cz9zKODz.js","assets/PartnerAgreementGate-BRztBbhe.js","assets/partner-tour-CvBNc5sR.js","assets/partner-tour-Cul1dMBv.css","assets/usePrintEligibility-DG07Khzi.js","assets/AffiliateTeam-Bj3wn8jq.js","assets/PartnerPreAttribution-CCnRbO37.js","assets/AffiliateMembers-C2TQUBaL.js","assets/PartnerOverridesPage-D-wGo3v7.js","assets/useOrgPoolEligibility-DrEClzJH.js","assets/PartnerPoolGrants-COXyLc8K.js","assets/PartnerDocuments-DmOgnxza.js","assets/AcceptTeamInvite-CsQ5uHt0.js","assets/invite-token-D69TIH_A.js","assets/AffiliateDashboard-B3sx6nh5.js","assets/EarningsChart-Do_QU2aF.js","assets/OrgEnterpriseTools-B4pmdWrF.js","assets/network-tree-loader-DrvCM40l.js","assets/useCurrentPlan-04ahmHRm.js","assets/ieepa-plans-BSg9BnLL.js","assets/PreviewLeadsDialog-aFn0I0wM.js","assets/partner-updates-CcUfZNQt.js","assets/OnboardPartnerDialog-6a5pSjDz.js","assets/PoolDefaultOfferDialog-BBMU6-Rk.js","assets/UniversalReferralLink-DHRjhsqD.js","assets/PartnerQuickStart-CR7hmSVv.js","assets/help-dot-map-Cb0TjwIk.js","assets/useHelpContext-BylalqWm.js","assets/partner-content-CN149Le7.js","assets/useEducation-BxSaI9u7.js","assets/AffiliateAnalytics-B8sATp-u.js","assets/LockedPreview-B37EEdVO.js","assets/AffiliateLeads-Q6nOy_zw.js","assets/StatusReferenceGuide-IDu-KSK9.js","assets/ClientPipelineWidgets-wVrJ9Fzt.js","assets/AffiliateLeadDetail-BR9D0DLs.js","assets/EntityEmailTimeline-CdMtIujJ.js","assets/MessageButton-DSF4ghnf.js","assets/AffiliateMarketing-BxFCu2EN.js","assets/FlyerImporters-6kHV3lsr.js","assets/FlyerSections-fkshS6pA.js","assets/lp-hero-importers-CfZ-cJ_N.js","assets/FlyerBrokers-BfHZnGCv.js","assets/FlyerPartners-oXXF47-s.js","assets/FlyerAdvanceFunding-DgkrDcOz.js","assets/lp-hero-funding-BYc7n4UM.js","assets/FlyerWhyTra-BSYSvXoc.js","assets/FlyerProcessFlyer-DLcWEzMv.js","assets/FlyerPlatform-Cm2R6aQD.js","assets/FlyerAlreadyFiled-CIPMbtLm.js","assets/DeckThumb-BHDyaMPr.js","assets/PartnerDecks-B9OM7POy.js","assets/PartnerDeckViewer-DIrkqNQD.js","assets/Affiliate
1Commissions-Bho3Le_a.js","assets/AffiliatePaymentSettings-CyXq1yY3.js","assets/BrokerPaymentSettings-BLjoTCQO.js","assets/AffiliateExport-ByQt_3TB.js","assets/AffiliateAdvanced-isaEjY6a.js","assets/ExportIntegrations-DoqKlrEX.js","assets/PartnerHelp-Cd-p1XH3.js","assets/PortalHelpShell-CyjixLbR.js","assets/PartnerSalesTraining-CWTuvwuf.js","assets/SalesTrainingShell-CYdzN2Li.js","assets/SalesTrainingPublic-CgDeSpTz.js","assets/BrokerHelp-Y9jJ-fFC.js","assets/useBrokerWhitelabel-Du7bYLN_.js","assets/AffiliateUpdatesAndWebinars-vObrT4jB.js","assets/PartnerUpdateArticle-BUzPcYik.js","assets/AffiliateRegister-jcQYPksk.js","assets/GuidesHub-Djso_nOa.js","assets/resource-events-DHnrmCgT.js","assets/GuideDetail-Dy0ZOTOF.js","assets/Glossary-BVlne_xK.js","assets/PrintStorefront-JYz6NWWz.js","assets/PrintProductDetail-Cs2kxGgS.js","assets/PrintCartContext-D-7vzqxE.js","assets/PrintOrders-C6KVeAeL.js","assets/react-stripe.esm-BqMgPl07.js","assets/PrintOrderDetail-B4vUdDU2.js","assets/PrintCart-BIYpQHZ-.js","assets/PrintCenterLayout-Dkey8Wgx.js","assets/RefRedirect-Dr5esMdK.js","assets/RefHub-BFLMiZyb.js","assets/useReferrerPublicCard-BOB3xOV5.js","assets/ImportersLanding-DTqeEVJg.js","assets/LandingShell-BxR9dbx5.js","assets/LandingTestimonialScroller-Bhf7B7Gb.js","assets/BrokersLanding-E01znOwC.js","assets/PartnersLanding-DDMONF3Y.js","assets/AlreadyFiledLanding-CH5y0D5w.js","assets/FlyerPhase3Recovery-DV01JVLD.js","assets/phase3-different-path-BgJ8Z_LG.js","assets/Phase3RecoveryLanding-nmlmBLqJ.js","assets/WhitelabelOverview-Ia0HDkkq.js","assets/AdvanceFundingLanding-C977wzIG.js","assets/EnterpriseIntake-BY5PEilY.js","assets/EnterpriseStepWizard-qiQHrv7o.js","assets/EnterpriseSales-D0fbUiYD.js","assets/enterprise-includes-Dw4fcZtF.js","assets/EnterpriseCheckout-B-qvcx-L.js","assets/EnterpriseCheckoutSuccess-BflC97_3.js","assets/BookADemo-B8lcuvD9.js","assets/PublicBookDemo-Bmmp3QxI.js","assets/PublicBookDemoVip-CsrwS875.js","assets/Contact-ClYqnyUB.js","assets/ScheduledMeetings-HCWHF6pt.js","assets/ShortLinkRedirect-eHgYivVf.js","assets/OutreachMessage-BMGCfgZc.js","assets/AffiliateNetwork-2386UCrY.js","assets/PartnerNetworkTreeView-D26w7JVL.js","assets/OrgDashboard-DN0YaA3H.js","assets/OrgReferredClients-Co63cr0l.js","assets/EducationHub-CXKvl_X8.js","assets/EducationAiTutor-ChYZqwMg.js","assets/LessonCard-ByGKuRji.js","assets/MobileTrainingNav-Dj9c9MAT.js","assets/ModuleOverview-Dp5R9JZ3.js","assets/LessonReader-mcbf3Ga_.js","assets/BlockRenderer-C8kdKMLq.js","assets/Certificates-2XKvvwqI.js","assets/EducationAdmin-oyNSnzKe.js","assets/PartnersHelpIndex-W_g3F3mh.js","assets/PartnersHelpLesson-CN_e4KJN.js","assets/PartnerCrmHub-B6Cz2VR6.js","assets/useIeepaPlanEconomics-DsYijxZE.js","assets/PartnerCrmUpgrade-DF7_yeBa.js","assets/PartnerCrmCheckout-nlAsBFul.js","assets/PartnerCrmSuccess-CacY4Nb_.js","assets/PartnerCrmCompany-DB53XHTy.js","assets/IeepaCrmSalesPage-Bwdqj-Dw.js","assets/useCountUp-Dw6xmAa8.js","assets/AdminProductsLayout-BZT01XhB.js","assets/ProductsOverview-C99WE1O7.js","assets/ProductsCatalog-DfUuwgUd.js","assets/ProductsTransactions-Db-lX0Yx.js","assets/pagination-BgSAOCL3.js","assets/ProductsSubscribers-C_mT7u6y.js","assets/ProductsStripeSettings-FZe0jqTC.js","assets/ProductsWebhookLog-CiBPaNjh.js","assets/ProductsIeepaFunnel-DmUtnLXW.js","assets/ClientLogin-DfghAt-r.js","assets/ClientLayout-C4gV8__j.js","assets/ClientDashboard-C25RACxH.js","assets/InviteBrokerBanner-COd9BYDM.js","assets/ClientClaims-Bd6zs7fZ.js","assets/ClientDocuments-vPVPqsWn.js","assets/DocumentVersionHistory-DXRYEjCr.js","assets/ClaimDetail-DCTEozDE.js","assets/ClaimOriginSummaryCard-BglI_J2g.js","assets/ClaimSubmitted-D9eOTLzg.js","assets/ClaimMessages-BevsxjqE.js","assets/ClientNotifications-onIfLamc.js","assets/MessageCenter-DDd7-VZD.js","assets/AdminMessageCommandCenter-vwocfc6d.js","assets/ClientHelpCenter-BGsQDDYl.js","assets/ClientFunding-DHIq7ztM.js","assets/ClientFundingApplication-D4ltprho.js","assets/AcceptInvite-BF3baE9X.js","assets/ClaimHandoff-DzHtW7yc.js","assets/MagicLinkLanding-DulKNEaL.js","assets/Agreements-C8vrim6f.js","assets/PartnerAgreements-8BEgu6nj.js","assets/BrokerLayout-DFy6txPD.js","assets/BrokerLogin-zMwwN9uh.js","assets/BrokerRegister-DGirlYIe.js","assets/BrokerSlugRedirect-DTpTU0ac.js","assets/BrokerDashboard-Dwl_F9-b.js","assets/BrokerClients-DUVxDO39.js","assets/BrokerClientsList-BRENaQqF.js","assets/useBrokerRealtimeClient-DVBBK6p9.js","assets/BrokerClaims-DPyB71-I.js","assets/BrokerClaimDetail-CCGr2Kne.js","assets/BrokerCommissions-B8g4Mw9a.js","assets/BrokerInviteClient-DQs7mPn8.js","assets/BrokerACEUpload-DrIB-6uJ.js","assets/BrokerEligibilityChecker-w8vAi45U.js","assets/BrokerAcceptInvite-DKuRGqxl.js","assets/BrokerWhitelabel-CI1hDO0U.js","assets/BrokerBulkImport-CUoHNZfc.js","assets/BrokerAssistedApply-DsuolU8V.js","assets/BrokerExport-CJOIsIi4.js","assets/FundingLogin-2o1rNb6K.js","assets/FundingRegister-Bkpl6YDf.js","assets/FundingAcceptInvite-Cot2KDRE.js","assets/FundingLayout-DfeNpV_J.js","assets/FundingDashboard-C0-FN8TW.js","assets/PremiumCard-C0G82RW2.js","assets/SectionHeader-D_79bmR4.js","assets/CapitalFlowChart-DDxnDtI6.js","assets/FundingMarketplace-DFOg7feY.js","assets/useFunder-Dn629JsS.js","assets/ClaimDiligenceDialog-C02jP31v.js","assets/FundingDiscover-DcSIDT_5.js","assets/FundingOffers-COq1r77t.js","assets/FundingPortfolio-DOwinIIl.js","assets/DealDetailDialog-DjdLwj2G.js","assets/FundingActiveDeals-BWR2t3Jj.js","assets/FundingSettings-BllNLzBH.js","assets/FundingHowItWorks-BWhmqgse.js","assets/FundingGlossary-4j5RTSu5.js","assets/FundingRequirements-DIuBwxMg.
1js","assets/Funders-BH0BY0cY.js","assets/FundingOversight-CHzjA_mw.js","assets/FundingSettlements-DvuJoUX9.js","assets/FundingRouter-DViwzoUB.js","assets/FundingAnalytics-DLpXH4vM.js","assets/Onboard-qCgoX314.js","assets/ExternalRedirect-DyCuG8wq.js"])))=>i.map(i=>d[i]); 2var Cp=Object.defineProperty;var Ip=(e,t,n)=>t in e?Cp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Et=(e,t,n)=>Ip(e,typeof t!="symbol"?t+"":t,n);import{_ as g}from"./vendor-pdf-DHUBMtDJ.js";import{j as r,u as vo,Q as Np,a as Op,M as kp,b as Dp}from"./vendor-query-DUki8u-D.js";import{r as c,g as sa,a as M,b as bc,d as aa,R as wc,u as Kt,N as F,e as Ec,L as ge,f as jc,B as Lp,h as Mp,i as u}from"./vendor-react-DHU755GE.js";import{r as qt}from"./error-reporter-EYiXaqJQ.js";import{c as Tc}from"./vendor-charts-DsctC1NR.js";import{X as ia,C as $p,a as Fp,L as yo,b as Vp,T as Bp,H as Up,R as zp,U as br,c as Ac,d as Hp,e as jt,f as Wp,S as qp,F as bo,g as Rc,B as so,h as mn,i as ao,j as Ht,k as Gp,G as io,l as Yp,m as Kp,n as Is,P as Xp,o as Jp,p as Pc,q as Wr,r as Wo,M as Zp,s as Sc,E as ai,t as ii,u as Qp,v as em,w as tm,x as Cc,y as rm,z as nm,A as om,D as sm,I as am,J as im,K as lm,N as Ic,O as Nc,Z as cm,Q as dm,V as um,W as fm,Y as Oc,_ as kc,$ as Dc,a0 as la,a1 as pm,a2 as mm,a3 as hm,a4 as gm,a5 as _m}from"./vendor-icons-D7GmeyGG.js";import{supabase as z}from"./client-Dy2P3he-.js";import{useTheme as Nr}from"./useTheme-DEq4C3Xf.js";import{m as He}from"./vendor-motion-DoyUfQ58.js";const Tn="__chunk_reload__";function _(e){return c.lazy(async()=>{try{const t=await e();try{sessionStorage.removeItem(Tn)}catch{}return t}catch{try{await new Promise(o=>setTimeout(o,450));const n=await e();try{sessionStorage.removeItem(Tn)}catch{}return n}catch(n){let o=!0;try{o=sessionStorage.getItem(Tn)==="1",o||sessionStorage.setItem(Tn,"1")}catch{}if(!o)return window.location.reload(),new Promise(()=>{});throw n}}})}var xm=typeof Element<"u",vm=typeof Map=="function",ym=typeof Set=="function",bm=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function Wn(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,o,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!Wn(e[o],t[o]))return!1;return!0}var a;if(vm&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(a=e.entries();!(o=a.next()).done;)if(!t.has(o.value[0]))return!1;for(a=e.entries();!(o=a.next()).done;)if(!Wn(o.value[1],t.get(o.value[0])))return!1;return!0}if(ym&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(a=e.entries();!(o=a.next()).done;)if(!t.has(o.value[0]))return!1;return!0}if(bm&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(e[o]!==t[o])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;if(xm&&e instanceof Element)return!1;for(o=n;o--!==0;)if(!((s[o]==="_owner"||s[o]==="__v"||s[o]==="__o")&&e.$$typeof)&&!Wn(e[s[o]],t[s[o]]))return!1;return!0}return e!==e&&t!==t}var wm=function(t,n){try{return Wn(t,n)}catch(o){if((o.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw o}};const Em=sa(wm);var jm=function(e,t,n,o,s,a,l,i){if(!e){var d;if(t===void 0)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,o,s,a,l,i],m=0;d=new Error(t.replace(/%s/g,function(){return f[m++]})),d.name="Invariant Violation"}throw d.framesToPop=1,d}},Tm=jm;const li=sa(Tm);var Am=function(t,n,o,s){var a=o?o.call(s,t,n):void 0;if(a!==void 0)return!!a;if(t===n)return!0;
2if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var l=Object.keys(t),i=Object.keys(n);if(l.length!==i.length)return!1;for(var d=Object.prototype.hasOwnProperty.bind(n),f=0;f<l.length;f++){var m=l[f];if(!d(m))return!1;var h=t[m],v=n[m];if(a=o?o.call(s,h,v,m):void 0,a===!1||a===void 0&&h!==v)return!1}return!0};const Rm=sa(Am);var Lc=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(Lc||{}),qo={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},ci=Object.values(Lc),wo={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},Mc=Object.entries(wo).reduce((e,[t,n])=>(e[n]=t,e),{}),ht="data-rh",wr={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},Er=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const o=e[n];if(Object.prototype.hasOwnProperty.call(o,t))return o[t]}return null},Pm=e=>{let t=Er(e,"title");const n=Er(e,wr.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const o=Er(e,wr.DEFAULT_TITLE);return t||o||void 0},Sm=e=>
2Er(e,wr.ON_CHANGE_CLIENT_STATE)||(()=>{}),Go=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,o)=>({...n,...o}),{}),Cm=(e,t)=>t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,o)=>{if(!n.length){const s=Object.keys(o);for(let a=0;a<s.length;a+=1){const i=s[a].toLowerCase();if(e.indexOf(i)!==-1&&o[i])return n.concat(o)}}return n},[]),Im=e=>console&&typeof console.warn=="function"&&console.warn(e),qr=(e,t,n)=>{const o={};return n.filter(s=>Array.isArray(s[e])?!0:(typeof s[e]<"u"&&Im(`Helmet: ${e} should be of type "Array". Instead found type "${typeof s[e]}"`),!1)).map(s=>s[e]).reverse().reduce((s,a)=>{const l={};a.filter(d=>{let f;const m=Object.keys(d);for(let v=0;v<m.length;v+=1){const p=m[v],b=p.toLowerCase();t.indexOf(b)!==-1&&!(f==="rel"&&d[f].toLowerCase()==="canonical")&&!(b==="rel"&&d[b].toLowerCase()==="stylesheet")&&(f=b),t.indexOf(p)!==-1&&(p==="innerHTML"||p==="cssText"||p==="itemprop")&&(f=p)}if(!f||!d[f])return!1;const h=d[f].toLowerCase();return o[f]||(o[f]={}),l[f]||(l[f]={}),o[f][h]?!1:(l[f][h]=!0,!0)}).reverse().forEach(d=>s.push(d));const i=Object.keys(l);for(let d=0;d<i.length;d+=1){const f=i[d],m={...o[f],...l[f]};o[f]=m}return s},[]).reverse()},Nm=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},Om=e=>({baseTag:Cm(["href"],e),bodyAttributes:Go("bodyAttributes",e),defer:Er(e,wr.DEFER),encode:Er(e,wr.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Go("htmlAttributes",e),linkTags:qr("link",["rel","href"],e),metaTags:qr("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:qr("noscript",["innerHTML"],e),onChangeClientState:Sm(e),scriptTags:qr("script",["src","innerHTML"],e),styleTags:qr("style",["cssText"],e),title:Pm(e),titleAttributes:Go("titleAttributes",e),prioritizeSeoTags:Nm(e,wr.PRIORITIZE_SEO_TAGS)}),$c=e=>Array.isArray(e)?e.join(""):e,km=(e,t)=>{const n=Object.keys(e);for(let o=0;o<n.length;o+=1)if(t[n[o]]&&t[n[o]].includes(e[n[o]]))return!0;return!1},Yo=(e,t)=>Array.isArray(e)?e.reduce((n,o)=>(km(o,t)?n.priority.push(o):n.default.push(o),n),{priority:[],default:[]}):{default:e,priority:[]},di=(e,t)=>({...e,[t]:void 0}),Dm=["noscript","script","style"],Ns=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),Fc=e=>Object.keys(e).reduce((t,n)=>{const o=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${o}`:o},""),Lm=(e,t,n,o)=>{const s=Fc(n),a=$c(t);return s?`<${e} ${ht}="true" ${s}>${Ns(a,o)}</${e}>`:`<${e} ${ht}="true">${Ns(a,o)}</${e}>`},Mm=(e,t,n=!0)=>t.reduce((o,s)=>{const a=s,l=Object.keys(a).filter(f=>!(f==="innerHTML"||f==="cssText")).reduce((f,m)=>{const h=typeof a[m]>"u"?m:`${m}="${Ns(a[m],n)}"`;return f?`${f} ${h}`:h},""),i=a.innerHTML||a.cssText||"",d=Dm.indexOf(e)===-1;return`${o}<${e} ${ht}="true" ${l}${d?"/>":`>${i}</${e}>`}`},""),Vc=(e,t={})=>Object.keys(e).reduce((n,o)=>{const s=wo[o];return n[s||o]=e[o],n},t),$m=(e,t,n)=>{const o={key:t,[ht]:!0},s=Vc(n,o);return[M.createElement("title",s,t)]},qn=(e,t)=>t.map((n,o)=>{const s={key:o,[ht]:!0};return Object.keys(n).forEach(a=>{const i=wo[a]||a;if(i==="innerHTML"||i==="cssText"){const d=n.innerHTML||n.cssText;s.dangerouslySetInnerHTML={__html:d}}else s[i]=n[a]}),M.createElement(e,s)}),lt=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>$m(e,t.title,t.titleAttributes),toString:()=>Lm(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>Vc(t),toString:()=>Fc(t)};default:return{toComponent:()=>qn(e,t),toString:()=>Mm(e,t,n)}}},Fm=({metaTags:e,linkTags:t,scriptTags:n,encode:o})=>{const s=Yo(e,qo.meta),a=Yo(t,qo.link),l=Yo(n,qo.script);return{priorityMethods:{toComponent:()=>[...qn("meta",s.priority),...qn("link",a.priority),...qn("script",l.priority)],toString:()=>`${lt("meta",s.priority,o)} ${lt("link",a.priority,o)} ${lt("script",l.priority,o)}`},metaTags:s.default,linkTags:a.default,scriptTags:l.default}},Vm=e=>{const{baseTag:t,bodyAttributes:n,encode:o=!0,htmlAttributes:s,noscriptTags:a,styleTags:l,title:i="",titleAttributes:d,prioritizeSeoTags:f}=e;let{linkTags:m,metaTags:h,scriptTags:v}=e,p={toComponent:()=>[],toString:()=>""};return f&&({priorityMethods:p,linkTags:m,metaTags:h,scriptTags:v}=Fm(e)),{priority:p,base:lt("base",t,o),bodyAttributes:lt("bodyAttributes",n,o),htmlAttributes:lt("htmlAttributes",s,o),link:lt("link",m,o),meta:lt("meta",h,o),noscript:lt("noscript",a,o),script:lt("script",v,o),style:lt("style",l,o),title:lt("title",{title:i,titleAttributes:d},o)}},Os=Vm,An=[],ca=!!(typeof window<"u"&&window.document&&window.document.createElement),ks=class{constructor(e,t){Et(this,"instances",[]);Et(this,"canUseDOM",ca);Et(this,"context");Et(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?An:this.instances,add:e=>{(this.canUseDOM?An:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?An:this.instances).indexOf(e);(this.canUseDOM?An:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Os({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Bm=parseInt(M.version.split(".")[0],10),Ds=Bm>=19,Um={},Bc=M.createContext(Um),ar,Uc=(ar=class extends c.Component{constructor(n){super(n);Et(this,"helmetData");Ds?this.helmetData=null:this.helmetData=new ks(this.props.context||{},ar.canUseDOM)}render(){return Ds?M.createElement(M.Fragment,null,this.props.children):M.createElement(Bc.Provider,{value:this.helmetData.value},this.props.children)}},Et(ar,"canUseDOM",ca),ar),fr=(e,t)=>{const n=document.head||document.querySelector("head"),o=n.querySelectorAll(`${e}[${ht}]`),s=[].slice.call(o),a=[];let l;return t&&t.length&&t.forEach(i=>
2{const d=document.createElement(e);for(const f in i)if(Object.prototype.hasOwnProperty.call(i,f))if(f==="innerHTML")d.innerHTML=i.innerHTML;else if(f==="cssText"){const m=i.cssText;d.appendChild(document.createTextNode(m))}else{const m=f,h=typeof i[m]>"u"?"":i[m];d.setAttribute(f,h)}d.setAttribute(ht,"true"),s.some((f,m)=>(l=m,d.isEqualNode(f)))?s.splice(l,1):a.push(d)}),s.forEach(i=>{var d;return(d=i.parentNode)==null?void 0:d.removeChild(i)}),a.forEach(i=>n.appendChild(i)),{oldTags:s,newTags:a}},Ls=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const o=n.getAttribute(ht),s=o?o.split(","):[],a=[...s],l=Object.keys(t);for(const i of l){const d=t[i]||"";n.getAttribute(i)!==d&&n.setAttribute(i,d),s.indexOf(i)===-1&&s.push(i);const f=a.indexOf(i);f!==-1&&a.splice(f,1)}for(let i=a.length-1;i>=0;i-=1)n.removeAttribute(a[i]);s.length===a.length?n.removeAttribute(ht):n.getAttribute(ht)!==l.join(",")&&n.setAttribute(ht,l.join(","))},zm=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=$c(e)),Ls("title",t)},ui=(e,t)=>{const{baseTag:n,bodyAttributes:o,htmlAttributes:s,linkTags:a,metaTags:l,noscriptTags:i,onChangeClientState:d,scriptTags:f,styleTags:m,title:h,titleAttributes:v}=e;Ls("body",o),Ls("html",s),zm(h,v);const p={baseTag:fr("base",n),linkTags:fr("link",a),metaTags:fr("meta",l),noscriptTags:fr("noscript",i),scriptTags:fr("script",f),styleTags:fr("style",m)},b={},x={};Object.keys(p).forEach(y=>{const{newTags:E,oldTags:A}=p[y];E.length&&(b[y]=E),A.length&&(x[y]=p[y].oldTags)}),t&&t(),d(e,b,x)},Gr=null,Hm=e=>{Gr&&cancelAnimationFrame(Gr),e.defer?Gr=requestAnimationFrame(()=>{ui(e,()=>{Gr=null})}):(ui(e),Gr=null)},Wm=Hm,fi=class extends c.Component{constructor(){super(...arguments);Et(this,"rendered",!1)}shouldComponentUpdate(t){return!Rm(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:n}=this.props.context;let o=null;const s=Om(t.get().map(a=>{const{context:l,...i}=a.props;return i}));Uc.canUseDOM?Wm(s):Os&&(o=Os(s)),n(o)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Gn=[],pi=e=>{const t={};for(const n of Object.keys(e))t[Mc[n]||n]=e[n];return t},rr=e=>{const t={};for(const n of Object.keys(e)){const o=wo[n];t[o||n]=e[n]}return t},mi=(e,t)=>{if(!ca)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const o="data-rh-managed",s=n.getAttribute(o),a=s?s.split(","):[],l=Object.keys(t);for(const i of a)l.includes(i)||n.removeAttribute(i);for(const i of l){const d=t[i];d==null||d===!1?n.removeAttribute(i):d===!0?n.setAttribute(i,""):n.setAttribute(i,String(d))}l.length>0?n.setAttribute(o,l.join(",")):n.removeAttribute(o)},Ko=()=>{const e={},t={};for(const n of Gn){const{htmlAttributes:o,bodyAttributes:s}=n.props;o&&Object.assign(e,pi(o)),s&&Object.assign(t,pi(s))}mi("html",e),mi("body",t)},qm=class extends c.Component{componentDidMount(){Gn.push(this),Ko()}componentDidUpdate(){Ko()}componentWillUnmount(){const e=Gn.indexOf(this);e!==-1&&Gn.splice(e,1),Ko()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return M.createElement("title",rr(t),e)}renderBase(){const{base:e}=this.props;return e?M.createElement("base",rr(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>M.createElement("meta",{key:n,...rr(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>M.createElement("link",{key:n,...rr(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:o,...s}=t,a=rr(s);return o&&(a.dangerouslySetInnerHTML={__html:o}),M.createElement("script",{key:n,...a})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:o,...s}=t,a=rr(s);return o&&(a.dangerouslySetInnerHTML={__html:o}),M.createElement("style",{key:n,...a})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:o,...s}=t,a=rr(s);return o&&(a.dangerouslySetInnerHTML={__html:o}),M.createElement("noscript",{key:n,...a})})}render(){return M.createElement(M.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},Cs,zc=(Cs=class extends c.Component{shouldComponentUpdate(e){return!Em(di(this.props,"helmetData"),di(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,o){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,o)}]}}mapObjectTypeChildren(e,t,n,o){switch(e.type){case"title":return{...t,[e.type]:o,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(o=>{n={...n,[o]:e[o]}}),n}
2warnOnInvalidChildren(e,t){return li(ci.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${ci.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),li(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return M.Children.forEach(e,o=>{if(!o||!o.props)return;const{children:s,...a}=o.props,l=Object.keys(a).reduce((d,f)=>(d[Mc[f]||f]=a[f],d),{});let{type:i}=o;switch(typeof i=="symbol"?i=i.toString():this.warnOnInvalidChildren(o,s),i){case"Symbol(react.fragment)":t=this.mapChildrenToProps(s,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(o,n,l,s);break;default:t=this.mapObjectTypeChildren(o,t,l,s);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:o}=t;if(e&&(n=this.mapChildrenToProps(e,n)),o&&!(o instanceof ks)){const s=o;o=new ks(s.context,!0),delete n.helmetData}return Ds?M.createElement(qm,{...n}):o?M.createElement(fi,{...n,context:o.value}):M.createElement(Bc.Consumer,null,s=>M.createElement(fi,{...n,context:s}))}},Et(Cs,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),Cs),hi=["light","dark"],Gm="(prefers-color-scheme: dark)",Ym=c.createContext(void 0),Km={setTheme:e=>{},themes:[]},Xm=()=>{var e;return(e=c.useContext(Ym))!=null?e:Km};c.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:o,enableColorScheme:s,defaultTheme:a,value:l,attrs:i,nonce:d})=>{let f=a==="system",m=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${i.map(b=>`'${b}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,h=s?hi.includes(a)&&a?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${a}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",v=(b,x=!1,y=!0)=>{let E=l?l[b]:b,A=x?b+"|| ''":`'${E}'`,R="";return s&&y&&!x&&hi.includes(b)&&(R+=`d.style.colorScheme = '${b}';`),n==="class"?x||E?R+=`c.add(${A})`:R+="null":E&&(R+=`d[s](n,${A})`),R},p=e?`!function(){${m}${v(e)}}()`:o?`!function(){try{${m}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${f})){var t='${Gm}',m=window.matchMedia(t);if(m.media!==t||m.matches){${v("dark")}}else{${v("light")}}}else if(e){${l?`var x=${JSON.stringify(l)};`:""}${v(l?"x[e]":"e",!0)}}${f?"":"else{"+v(a,!1,!1)+"}"}${h}}catch(e){}}()`:`!function(){try{${m}var e=localStorage.getItem('${t}');if(e){${l?`var x=${JSON.stringify(l)};`:""}${v(l?"x[e]":"e",!0)}}else{${v(a,!1,!1)};}${h}}catch(t){}}();`;return c.createElement("script",{nonce:d,dangerouslySetInnerHTML:{__html:p}})});var Jm=e=>{switch(e){case"success":return eh;case"info":return rh;case"warning":return th;case"error":return nh;default:return null}},Zm=Array(12).fill(0),Qm=({visible:e,className:t})=>M.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},M.createElement("div",{className:"sonner-spinner"},Zm.map((n,o)=>M.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${o}`})))),eh=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),th=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),rh=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),nh=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},M.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),oh=M.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},M.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),M.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),sh=()=>
2{let[e,t]=M.useState(document.hidden);return M.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Ms=1,ah=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...o}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Ms++,a=this.toasts.find(i=>i.id===s),l=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),a?this.toasts=this.toasts.map(i=>i.id===s?(this.publish({...i,...e,id:s,title:n}),{...i,...e,id:s,dismissible:l,title:n}):i):this.addToast({title:n,...o,dismissible:l,id:s}),s},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>
2this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let o=e instanceof Promise?e:e(),s=n!==void 0,a,l=o.then(async d=>{if(a=["resolve",d],M.isValidElement(d))s=!1,this.create({id:n,type:"default",message:d});else if(lh(d)&&!d.ok){s=!1;let f=typeof t.error=="function"?await t.error(`HTTP error! status: ${d.status}`):t.error,m=typeof t.description=="function"?await t.description(`HTTP error! status: ${d.status}`):t.description;this.create({id:n,type:"error",message:f,description:m})}else if(t.success!==void 0){s=!1;let f=typeof t.success=="function"?await t.success(d):t.success,m=typeof t.description=="function"?await t.description(d):t.description;this.create({id:n,type:"success",message:f,description:m})}}).catch(async d=>{if(a=["reject",d],t.error!==void 0){s=!1;let f=typeof t.error=="function"?await t.error(d):t.error,m=typeof t.description=="function"?await t.description(d):t.description;this.create({id:n,type:"error",message:f,description:m})}}).finally(()=>{var d;s&&(this.dismiss(n),n=void 0),(d=t.finally)==null||d.call(t)}),i=()=>new Promise((d,f)=>l.then(()=>a[0]==="reject"?f(a[1]):d(a[1])).catch(f));return typeof n!="string"&&typeof n!="number"?{unwrap:i}:Object.assign(n,{unwrap:i})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Ms++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Je=new ah,ih=(e,t)=>{let n=(t==null?void 0:t.id)||Ms++;return Je.addToast({title:e,...t,id:n}),n},lh=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",ch=ih,dh=()=>Je.toasts,uh=()=>Je.getActiveToasts(),rS=Object.assign(ch,{success:Je.success,info:Je.info,warning:Je.warning,error:Je.error,custom:Je.custom,message:Je.message,promise:Je.promise,dismiss:Je.dismiss,loading:Je.loading},{getHistory:dh,getToasts:uh});function fh(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",t==="top"&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}fh(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;
2left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}
2:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);
2--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} 3`);function Rn(e){return e.label!==void 0}var ph=3,mh="32px",hh="16px",gi=4e3,gh=356,_h=14,xh=20,vh=200;function mt(...e){return e.filter(Boolean).join(" ")}function yh(e){let[t,n]=e.split("-"),o=[];return t&&o.push(t),n&&o.push(n),o}var bh=e=>{var t,n,o,s,a,l,i,d,f,m,h;let{invert:v,toast:p,unstyled:b,interacting:x,setHeights:y,visibleToasts:E,heights:A,index:R,toasts:T,expanded:j,removeToast:S,defaultRichColors:P,closeButton:C,style:D,cancelButtonStyle:O,actionButtonStyle:$,className:I="",descriptionClassName:H="",duration:k,position:K,gap:W,loadingIcon:B,expandByDefault:U,classNames:N,icons:J,closeButtonAriaLabel:Z="Close toast",pauseWhenPageIsHidden:ee}
3=e,[G,ae]=M.useState(null),[te,fe]=M.useState(null),[re,ye]=M.useState(!1),[_e,me]=M.useState(!1),[Ae,Re]=M.useState(!1),[V,ce]=M.useState(!1),[he,Ce]=M.useState(!1),[Ie,se]=M.useState(0),[pe,Oe]=M.useState(0),yt=M.useRef(p.duration||k||gi),Mt=M.useRef(null),Qe=M.useRef(null),Mr=R===0,Qt=R+1<=E,Ne=p.type,Le=p.dismissible!==!1,$r=p.className||"",En=p.descriptionClassName||"",er=M.useMemo(()=>A.findIndex(oe=>oe.toastId===p.id)||0,[A,p.id]),Fr=M.useMemo(()=>{var oe;return(oe=p.closeButton)!=null?oe:C},[p.closeButton,C]),Vr=M.useMemo(()=>p.duration||k||gi,[p.duration,k]),$t=M.useRef(0),ut=M.useRef(0),et=M.useRef(0),tt=M.useRef(null),[Br,Ur]=K.split("-"),jn=M.useMemo(()=>A.reduce((oe,ne,de)=>de>=er?oe:oe+ne.height,0),[A,er]),ur=sh(),zr=p.invert||v,Hr=Ne==="loading";ut.current=M.useMemo(()=>er*W+jn,[er,jn]),M.useEffect(()=>{yt.current=Vr},[Vr]),M.useEffect(()=>{ye(!0)},[]),M.useEffect(()=>{let oe=Qe.current;if(oe){let ne=oe.getBoundingClientRect().height;return Oe(ne),y(de=>[{toastId:p.id,height:ne,position:p.position},...de]),()=>y(de=>de.filter(rt=>rt.toastId!==p.id))}},[y,p.id]),M.useLayoutEffect(()=>{if(!re)return;let oe=Qe.current,ne=oe.style.height;oe.style.height="auto";let de=oe.getBoundingClientRect().height;oe.style.height=ne,Oe(de),y(rt=>rt.find(Ge=>Ge.toastId===p.id)?rt.map(Ge=>Ge.toastId===p.id?{...Ge,height:de}:Ge):[{toastId:p.id,height:de,position:p.position},...rt])},[re,p.title,p.description,y,p.id]);let qe=M.useCallback(()=>{me(!0),se(ut.current),y(oe=>oe.filter(ne=>ne.toastId!==p.id)),setTimeout(()=>{S(p)},vh)},[p,S,y,ut]);M.useEffect(()=>{if(p.promise&&Ne==="loading"||p.duration===1/0||p.type==="loading")return;let oe;return j||x||ee&&ur?(()=>{if(et.current<$t.current){let ne=new Date().getTime()-$t.current;yt.current=yt.current-ne}et.current=new Date().getTime()})():yt.current!==1/0&&($t.current=new Date().getTime(),oe=setTimeout(()=>{var ne;(ne=p.onAutoClose)==null||ne.call(p,p),qe()},yt.current)),()=>clearTimeout(oe)},[j,x,p,Ne,ee,ur,qe]),M.useEffect(()=>{p.delete&&qe()},[qe,p.delete]);function Bo(){var oe,ne,de;return J!=null&&J.loading?M.createElement("div",{className:mt(N==null?void 0:N.loader,(oe=p==null?void 0:p.classNames)==null?void 0:oe.loader,"sonner-loader"),"data-visible":Ne==="loading"},J.loading):B?M.createElement("div",{className:mt(N==null?void 0:N.loader,(ne=p==null?void 0:p.classNames)==null?void 0:ne.loader,"sonner-loader"),"data-visible":Ne==="loading"},B):M.createElement(Qm,{className:mt(N==null?void 0:N.loader,(de=p==null?void 0:p.classNames)==null?void 0:de.loader),visible:Ne==="loading"})}return M.createElement("li",{tabIndex:0,ref:Qe,className:mt(I,$r,N==null?void 0:N.toast,(t=p==null?void 0:p.classNames)==null?void 0:t.toast,N==null?void 0:N.default,N==null?void 0:N[Ne],(n=p==null?void 0:p.classNames)==null?void 0:n[Ne]),"data-sonner-toast":"","data-rich-colors":(o=p.richColors)!=null?o:P,"data-styled":!(p.jsx||p.unstyled||b),"data-mounted":re,"data-
3promise":!!p.promise,"data-swiped":he,"data-removed":_e,"data-visible":Qt,"data-y-position":Br,"data-x-position":Ur,"data-index":R,"data-front":Mr,"data-swiping":Ae,"data-dismissible":Le,"data-type":Ne,"data-invert":zr,"data-swipe-out":V,"data-swipe-direction":te,"data-expanded":!!(j||U&&re),style:{"--index":R,"--toasts-before":R,"--z-index":T.length-R,"--offset":`${_e?Ie:ut.current}px`,"--initial-height":U?"auto":`${pe}px`,...D,...p.style},onDragEnd:()=>{Re(!1),ae(null),tt.current=null},onPointerDown:oe=>{Hr||!Le||(Mt.current=new Date,se(ut.current),oe.target.setPointerCapture(oe.pointerId),oe.target.tagName!=="BUTTON"&&(Re(!0),tt.current={x:oe.clientX,y:oe.clientY}))},onPointerUp:()=>{var oe,ne,de,rt;if(V||!Le)return;tt.current=null;let Ge=Number(((oe=Qe.current)==null?void 0:oe.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),st=Number(((ne=Qe.current)==null?void 0:ne.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),bt=new Date().getTime()-((de=Mt.current)==null?void 0:de.getTime()),Ye=G==="x"?Ge:st,wt=Math.abs(Ye)/bt;if(Math.abs(Ye)>=xh||wt>.11){se(ut.current),(rt=p.onDismiss)==null||rt.call(p,p),fe(G==="x"?Ge>0?"right":"left":st>0?"down":"up"),qe(),ce(!0),Ce(!1);return}Re(!1),ae(null)},onPointerMove:oe=>{var ne,de,rt,Ge;if(!tt.current||!Le||((ne=window.getSelection())==null?void 0:ne.toString().length)>0)return;let st=oe.clientY-tt.current.y,bt=oe.clientX-tt.current.x,Ye=(de=e.swipeDirections)!=null?de:yh(K);!G&&(Math.abs(bt)>1||Math.abs(st)>1)&&ae(Math.abs(bt)>Math.abs(st)?"x":"y");let wt={x:0,y:0};G==="y"?(Ye.includes("top")||Ye.includes("bottom"))&&(Ye.includes("top")&&st<0||Ye.includes("bottom")&&st>0)&&(wt.y=st):G==="x"&&(Ye.includes("left")||Ye.includes("right"))&&(Ye.includes("left")&&bt<0||Ye.includes("right")&&bt>0)&&(wt.x=bt),(Math.abs(wt.x)>0||Math.abs(wt.y)>0)&&Ce(!0),(rt=Qe.current)==null||rt.style.setProperty("--swipe-amount-x",`${wt.x}px`),(Ge=Qe.current)==null||Ge.style.setProperty("--swipe-amount-y",`${wt.y}px`)}},Fr&&!p.jsx?M.createElement("button",{"aria-label":Z,"data-disabled":Hr,"data-close-button":!0,onClick:Hr||!Le?()=>{}:()=>{var oe;qe(),(oe=p.onDismiss)==null||oe.call(p,p)},className:mt(N==null?void 0:N.closeButton,(s=p==null?void 0:p.classNames)==null?void 0:s.closeButton)},(a=J==null?void 0:J.close)!=null?a:oh):null,p.jsx||c.isValidElement(p.title)?p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title:M.createElement(M.Fragment,null,Ne||p.icon||p.promise?M.createElement("div",{"data-icon":"",className:mt(N==null?void 0:N.icon,(l=p==null?void 0:p.classNames)==null?void 0:l.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||Bo():null,p.type!=="loading"?p.icon||(J==null?void 0:J[Ne])||Jm(Ne):null):null,M.createElement("div",{"data-content":"",className:mt(N==null?void 0:N.content,(i=p==null?void 0:p.classNames)==null?void 0:i.content)},M.createElement("div",{"data-title":"",className:mt(N==null?void 0:N.title,(d=p==null?void 0:p.classNames)==null?void 0:d.title)},typeof p.title=="function"?p.title():p.title),p.description?M.createElement("div",{"data-description":"",className:mt(H,En,N==null?void 0:N.description,(f=p==null?void 0:p.classNames)==null?void 0:f.description)},typeof p.description=="function"?p.description():p.description):null),c.isValidElement(p.cancel)?p.cancel:p.cancel&&Rn(p.cancel)?M.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||O,onClick:oe=>{var ne,de;Rn(p.cancel)&&Le&&((de=(ne=p.cancel).onClick)==null||de.call(ne,oe),qe())},className:mt(N==null?void 0:N.cancelButton,(m=p==null?void 0:p.classNames)==null?void 0:m.cancelButton)},p.cancel.label):null,c.isValidElement(p.action)?p.action:p.action&&Rn(p.action)?M.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||$,onClick:oe=>{var ne,de;Rn(p.action)&&((de=(ne=p.action).onClick)==null||de.call(ne,oe),!oe.defaultPrevented&&qe())},className:mt(N==null?void 0:N.actionButton,(h=p==null?void 0:p.classNames)==null?void 0:h.actionButton)},p.action.label):null))};function _i(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function wh(e,t){let n={};return[e,t].forEach((o,s)=>{let a=s===1,l=a?"--mobile-offset":"--offset",i=a?hh:mh;function d(f){["top","right","bottom","left"].forEach(m=>{n[`${l}-${m}`]=typeof f=="number"?`${f}px`:f})}
3typeof o=="number"||typeof o=="string"?d(o):typeof o=="object"?["top","right","bottom","left"].forEach(f=>{o[f]===void 0?n[`${l}-${f}`]=i:n[`${l}-${f}`]=typeof o[f]=="number"?`${o[f]}px`:o[f]}):d(i)}),n}var Eh=c.forwardRef(function(e,t){let{invert:n,position:o="bottom-right",hotkey:s=["altKey","KeyT"],expand:a,closeButton:l,className:i,offset:d,mobileOffset:f,theme:m="light",richColors:h,duration:v,style:p,visibleToasts:b=ph,toastOptions:x,dir:y=_i(),gap:E=_h,loadingIcon:A,icons:R,containerAriaLabel:T="Notifications",pauseWhenPageIsHidden:j}=e,[S,P]=M.useState([]),C=M.useMemo(()=>Array.from(new Set([o].concat(S.filter(ee=>ee.position).map(ee=>ee.position)))),[S,o]),[D,O]=M.useState([]),[$,I]=M.useState(!1),[H,k]=M.useState(!1),[K,W]=M.useState(m!=="system"?m:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=M.useRef(null),U=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=M.useRef(null),J=M.useRef(!1),Z=M.useCallback(ee=>{P(G=>{var ae;return(ae=G.find(te=>te.id===ee.id))!=null&&ae.delete||Je.dismiss(ee.id),G.filter(({id:te})=>te!==ee.id)})},[]);return M.useEffect(()=>Je.subscribe(ee=>{if(ee.dismiss){P(G=>G.map(ae=>ae.id===ee.id?{...ae,delete:!0}:ae));return}setTimeout(()=>{bc.flushSync(()=>{P(G=>{let ae=G.findIndex(te=>te.id===ee.id);return ae!==-1?[...G.slice(0,ae),{...G[ae],...ee},...G.slice(ae+1)]:[ee,...G]})})})}),[]),M.useEffect(()=>{if(m!=="system"){W(m);return}if(m==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?W("dark"):W("light")),typeof window>"u")return;let ee=window.matchMedia("(prefers-color-scheme: dark)");try{ee.addEventListener("change",({matches:G})=>{W(G?"dark":"light")})}catch{ee.addListener(({matches:ae})=>{try{W(ae?"dark":"light")}catch(te){console.error(te)}})}},[m]),M.useEffect(()=>{S.length<=1&&I(!1)},[S]),M.useEffect(()=>{let ee=G=>{var ae,te;s.every(fe=>G[fe]||G.code===fe)&&(I(!0),(ae=B.current)==null||ae.focus()),G.code==="Escape"&&(document.activeElement===B.current||(te=B.current)!=null&&te.contains(document.activeElement))&&I(!1)};return document.addEventListener("keydown",ee),()=>document.removeEventListener("keydown",ee)},[s]),M.useEffect(()=>{if(B.current)return()=>{N.current&&(N.current.focus({preventScroll:!0}),N.current=null,J.current=!1)}},[B.current]),M.createElement("section",{ref:t,"aria-label":`${T} ${U}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},C.map((ee,G)=>{var ae;let[te,fe]=ee.split("-");return S.length?M.createElement("ol",{key:ee,dir:y==="auto"?_i():y,tabIndex:-1,ref:B,className:i,"data-sonner-toaster":!0,"data-theme":K,"data-y-position":te,"data-lifted":$&&S.length>1&&!a,"data-x-position":fe,style:{"--front-toast-height":`${((ae=D[0])==null?void 0:ae.height)||0}px`,"--width":`${gh}px`,"--gap":`${E}px`,...p,...wh(d,f)},onBlur:re=>{J.current&&!re.currentTarget.contains(re.relatedTarget)&&(J.current=!1,N.current&&(N.current.focus({preventScroll:!0}),N.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||J.current||(J.current=!0,N.current=re.relatedTarget)},onMouseEnter:()=>I(!0),onMouseMove:()=>I(!0),onMouseLeave:()=>{H||I(!1)},onDragEnd:()=>I(!1),onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||k(!0)},onPointerUp:()=>k(!1)},S.filter(re=>!re.position&&G===0||re.position===ee).map((re,ye)=>{var _e,me;return M.createElement(bh,{key:re.id,icons:R,index:ye,toast:re,defaultRichColors:h,duration:(_e=x==null?void 0:x.duration)!=null?_e:v,className:x==null?void 0:x.className,descriptionClassName:x==null?void 0:x.descriptionClassName,invert:n,visibleToasts:b,closeButton:(me=x==null?void 0:x.closeButton)!=null?me:l,interacting:H,position:ee,style:x==null?void 0:x.style,unstyled:x==null?void 0:x.unstyled,classNames:x==null?void 0:x.classNames,cancelButtonStyle:x==null?void 0:x.cancelButtonStyle,actionButtonStyle:x==null?void 0:x.actionButtonStyle,removeToast:Z,toasts:S.filter(Ae=>Ae.position==re.position),heights:D.filter(Ae=>Ae.position==re.position),setHeights:O,expandByDefault:a,gap:E,loadingIcon:A,expanded:$,pauseWhenPageIsHidden:j,swipeDirections:e.swipeDirections})})):null}))});const Xo=768;function jh(){const[e,t]=c.useState(void 0);return c.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Xo-1}px)`),o=()=>{t(window.innerWidth<Xo)};return n.addEventListener("change",o),t(window.innerWidth<Xo),()=>n.removeEventListener("change",o)},[]),!!e}const Th=({...e})=>{const{theme:t="system"}=Xm(),n=jh();return r.jsx(Eh,{theme:t,className:"toaster group",position:n?"top-center":"top-right",closeButton:!0,toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground",error:"group-[.toaster]:!bg-destructive group-[.toaster]:!text-destructive-foreground group-[.toaster]:!border-destructive/50"}},...e})},Ah=1,Rh=1e6;let Jo=0;function Ph(){return Jo=(Jo+1)%Number.MAX_SAFE_INTEGER,Jo.toString()}const Zo=new Map,xi=e=>{if(Zo.has(e))return;const t=setTimeout(()=>{Zo.delete(e),on({type:"REMOVE_TOAST",toastId:e})},Rh);Zo.set(e,t)},Sh=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Ah)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;
3return n?xi(n):e.toasts.forEach(o=>{xi(o.id)}),{...e,toasts:e.toasts.map(o=>o.id===n||n===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},Yn=[];let Kn={toasts:[]};function on(e){Kn=Sh(Kn,e),Yn.forEach(t=>{t(Kn)})}function Ch({...e}){const t=Ph(),n=s=>on({type:"UPDATE_TOAST",toast:{...s,id:t}}),o=()=>on({type:"DISMISS_TOAST",toastId:t});return on({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:s=>{s||o()}}}),{id:t,dismiss:o,update:n}}function Eo(){const[e,t]=c.useState(Kn);return c.useEffect(()=>(Yn.push(t),()=>{const n=Yn.indexOf(t);n>-1&&Yn.splice(n,1)}),[e]),{...e,toast:Ch,dismiss:n=>on({type:"DISMISS_TOAST",toastId:n})}}function X(e,t,{checkForDefaultPrevented:n=!0}={}){return function(s){if(e==null||e(s),n===!1||!s.defaultPrevented)return t==null?void 0:t(s)}}function vi(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function jo(...e){return t=>{let n=!1;const o=e.map(s=>{const a=vi(s,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let s=0;s<o.length;s++){const a=o[s];typeof a=="function"?a():vi(e[s],null)}}}}function Te(...e){return c.useCallback(jo(...e),e)}function Ih(e,t){const n=c.createContext(t),o=a=>{const{children:l,...i}=a,d=c.useMemo(()=>i,Object.values(i));return r.jsx(n.Provider,{value:d,children:l})};o.displayName=e+"Provider";function s(a){const l=c.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[o,s]}function Xt(e,t=[]){let n=[];function o(a,l){const i=c.createContext(l),d=n.length;n=[...n,l];const f=h=>{var E;const{scope:v,children:p,...b}=h,x=((E=v==null?void 0:v[e])==null?void 0:E[d])||i,y=c.useMemo(()=>b,Object.values(b));return r.jsx(x.Provider,{value:y,children:p})};f.displayName=a+"Provider";function m(h,v){var x;const p=((x=v==null?void 0:v[e])==null?void 0:x[d])||i,b=c.useContext(p);if(b)return b;if(l!==void 0)return l;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[f,m]}const s=()=>{const a=n.map(l=>c.createContext(l));return function(i){const d=(i==null?void 0:i[e])||a;return c.useMemo(()=>({[`__scope${e}`]:{...i,[e]:d}}),[i,d])}};return s.scopeName=e,[o,Nh(s,...t)]}function Nh(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const o=e.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(a){const l=o.reduce((i,{useScope:d,scopeName:f})=>{const h=d(a)[`__scope${f}`];return{...i,...h}},{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function Pr(e){const t=kh(e),n=c.forwardRef((o,s)=>{const{children:a,...l}=o,i=c.Children.toArray(a),d=i.find(Lh);if(d){const f=d.props.children,m=i.map(h=>h===d?c.Children.count(f)>1?c.Children.only(null):c.isValidElement(f)?f.props.children:null:h);return r.jsx(t,{...l,ref:s,children:c.isValidElement(f)?c.cloneElement(f,void 0,m):null})}return r.jsx(t,{...l,ref:s,children:a})});return n.displayName=`${e}.Slot`,n}var Oh=Pr("Slot");function kh(e){const t=c.forwardRef((n,o)=>{const{children:s,...a}=n;if(c.isValidElement(s)){const l=$h(s),i=Mh(a,s.props);return s.type!==c.Fragment&&(i.ref=o?jo(o,l):l),c.cloneElement(s,i)}return c.Children.count(s)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Hc=Symbol("radix.slottable");function Dh(e){const t=({children:n})=>r.jsx(r.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Hc,t}function Lh(e){return c.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Hc}function Mh(e,t){const n={...t};for(const o in t){const s=e[o],a=t[o];/^on[A-Z]/.test(o)?s&&a?n[o]=(...i)=>{const d=a(...i);return s(...i),d}:s&&(n[o]=s):o==="style"?n[o]={...s,...a}:o==="className"&&(n[o]=[s,a].filter(Boolean).join(" "))}return{...e,...n}}function $h(e){var o,s;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function da(e){const t=e+"CollectionProvider",[n,o]=Xt(t),[s,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=x=>{const{scope:y,children:E}=x,A=M.useRef(null),R=M.useRef(new Map).current;return r.jsx(s,{scope:y,itemMap:R,collectionRef:A,children:E})};l.displayName=t;const i=e+"CollectionSlot",d=Pr(i),f=M.forwardRef((x,y)=>{const{scope:E,children:A}=x,R=a(i,E),T=Te(y,R.collectionRef);return r.jsx(d,{ref:T,children:A})});f.displayName=i;const m=e+"CollectionItemSlot",h="data-radix-collection-item",v=Pr(m),p=M.forwardRef((x,y)=>{const{scope:E,children:A,...R}=x,T=M.useRef(null),j=Te(y,T),S=a(m,E);return M.useEffect(()=>(S.itemMap.set(T,{ref:T,...R}),()=>void S.itemMap.delete(T))),r.jsx(v,{[h]:"",ref:j,children:A})});p.displayName=m;function b(x){const y=a(e+"CollectionConsumer",x);return M.useCallback(()=>{const A=y.collectionRef.current;if(!A)return[];const R=Array.from(A.querySelectorAll(`[${h}]`));return Array.from(y.itemMap.values()).sort((S,P)=>R.indexOf(S.ref.current)-R.indexOf(P.ref.current))},[y.collectionRef,y.itemMap])}return[{Provider:l,Slot:f,ItemSlot:p},b,o]}var Fh=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xe=Fh.reduce((e,t)=>
vendor: 8,605 bytes, line 3
3{const n=Pr(`Primitive.${t}`),o=c.forwardRef((s,a)=>{const{asChild:l,...i}=s,d=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),r.jsx(d,{...i,ref:a})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function ua(e,t){e&&aa.flushSync(()=>e.dispatchEvent(t))}function Ze(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...n)=>{var o;return(o=t.current)==null?void 0:o.call(t,...n)},[])}function Vh(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e);c.useEffect(()=>{const o=s=>{s.key==="Escape"&&n(s)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[n,t])}var Bh="DismissableLayer",$s="dismissableLayer.update",Uh="dismissableLayer.pointerDownOutside",zh="dismissableLayer.focusOutside",yi,Wc=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hn=c.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:i,...d}=e,f=c.useContext(Wc),[m,h]=c.useState(null),v=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,p]=c.useState({}),b=Te(t,P=>h(P)),x=Array.from(f.layers),[y]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),E=x.indexOf(y),A=m?x.indexOf(m):-1,R=f.layersWithOutsidePointerEventsDisabled.size>0,T=A>=E,j=Wh(P=>{const C=P.target,D=[...f.branches].some(O=>O.contains(C));!T||D||(s==null||s(P),l==null||l(P),P.defaultPrevented||i==null||i())},v),S=qh(P=>{const C=P.target;[...f.branches].some(O=>O.contains(C))||(a==null||a(P),l==null||l(P),P.defaultPrevented||i==null||i())},v);return Vh(P=>{A===f.layers.size-1&&(o==null||o(P),!P.defaultPrevented&&i&&(P.preventDefault(),i()))},v),c.useEffect(()=>{if(m)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(yi=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(m)),f.layers.add(m),bi(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(v.body.style.pointerEvents=yi)}},[m,v,n,f]),c.useEffect(()=>()=>{m&&(f.layers.delete(m),f.layersWithOutsidePointerEventsDisabled.delete(m),bi())},[m,f]),c.useEffect(()=>{const P=()=>p({});return document.addEventListener($s,P),()=>document.removeEventListener($s,P)},[]),r.jsx(xe.div,{...d,ref:b,style:{pointerEvents:R?T?"auto":"none":void 0,...e.style},onFocusCapture:X(e.onFocusCapture,S.onFocusCapture),onBlurCapture:X(e.onBlurCapture,S.onBlurCapture),onPointerDownCapture:X(e.onPointerDownCapture,j.onPointerDownCapture)})});hn.displayName=Bh;var Hh="DismissableLayerBranch",qc=c.forwardRef((e,t)=>{const n=c.useContext(Wc),o=c.useRef(null),s=Te(t,o);return c.useEffect(()=>{const a=o.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),r.jsx(xe.div,{...e,ref:s})});qc.displayName=Hh;function Wh(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e),o=c.useRef(!1),s=c.useRef(()=>{});return c.useEffect(()=>{const a=i=>{if(i.target&&!o.current){let d=function(){Gc(Uh,n,f,{discrete:!0})};const f={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",s.current),s.current=d,t.addEventListener("click",s.current,{once:!0})):d()}else t.removeEventListener("click",s.current);o.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",a),t.removeEventListener("click",s.current)}},[t,n]),{onPointerDownCapture:()=>o.current=!0}}function qh(e,t=globalThis==null?void 0:globalThis.document){const n=Ze(e),o=c.useRef(!1);return c.useEffect(()=>{const s=a=>{a.target&&!o.current&&Gc(zh,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",s),()=>t.removeEventListener("focusin",s)},[t,n]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function bi(){const e=new CustomEvent($s);document.dispatchEvent(e)}function Gc(e,t,n,{discrete:o}){const s=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),o?ua(s,a):s.dispatchEvent(a)}var Gh=hn,Yh=qc,kt=globalThis!=null&&globalThis.document?c.useLayoutEffect:()=>{},Kh="Portal",To=c.forwardRef((e,t)=>{var i;const{container:n,...o}=e,[s,a]=c.useState(!1);kt(()=>a(!0),[]);const l=n||s&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return l?bc.createPortal(r.jsx(xe.div,{...o,ref:t}),l):null});To.displayName=Kh;function Xh(e,t){return c.useReducer((n,o)=>t[n][o]??n,e)}var Pt=e=>{const{present:t,children:n}=e,o=Jh(t),s=typeof n=="function"?n({present:o.isPresent}):c.Children.only(n),a=Te(o.ref,Zh(s));return typeof n=="function"||o.isPresent?c.cloneElement(s,{ref:a}):null};Pt.displayName="Presence";function Jh(e){const[t,n]=c.useState(),o=c.useRef(null),s=c.useRef(e),a=c.useRef("none"),l=e?"mounted":"unmounted",[i,d]=Xh(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const f=Pn(o.current);a.current=i==="mounted"?f:"none"},[i]),kt(()=>{const f=o.current,m=s.current;if(m!==e){const v=a.current,p=Pn(f);e?d("MOUNT"):p==="none"||(f==null?void 0:f.display)==="none"?d("UNMOUNT"):d(m&&v!==p?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,d]),kt(()=>{if(t){let f;const m=t.ownerDocument.defaultView??window,h=p=>{const x=Pn(o.current).includes(p.animationName);if(p.target===t&&x&&(d("ANIMATION_END"),!s.current)){const y=t.style.animationFillMode;t.style.animationFillMode="forwards",f=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=y)})}},v=p=>{p.target===t&&(a.current=Pn(o.current))};return t.addEventListener("animationstart",v),t.addEventListener("animationcancel",h),t.addEventListener("animationend",h),()=>{m.clearTimeout(f),t.removeEventListener("animationstart",v),t.removeEventListener("animationcancel",h),t.removeEventListener("animationend",h)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:c.useCallback(f=>{o.current=f?getComputedStyle(f):null,n(f)},[])}}function Pn(e){return(e==null?void 0:e.animationName)||"none"}function Zh(e){var o,s;let t=(o=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(s=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:s.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Qh=wc[" useInsertionEffect ".trim().toString()]||kt;function Or({prop:e,defaultProp:t,onChange:n=()=>{},caller:o}){const[s,a,l]=eg({defaultProp:t,onChange:n}),i=e!==void 0,d=i?e:s;{const m=c.useRef(e!==void 0);c.useEffect(()=>{const h=m.current;h!==i&&console.warn(`${o} is changing from ${h?"controlled":"uncontrolled"} to ${i?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=i},[i,o])}const f=c.useCallback(m=>{var h;if(i){const v=tg(m)?m(e):m;v!==e&&((h=l.current)==null||h.call(l,v))}else a(m)},[i,e,a,l]);return[d,f]}function eg({defaultProp:e,onChange:t}){const[n,o]=c.useState(e),s=c.useRef(n),a=c.useRef(t);return Qh(()=>{a.current=t},[t]),c.useEffect(()=>{var l;s.current!==n&&((l=a.current)==null||l.call(a,n),s.current=n)},[n,s]),[n,o,a]}function tg(e){return typeof e=="function"}var rg=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),ng="VisuallyHidden",Ao=c.forwardRef((e,t)=>r.jsx(xe.span,{...e,ref:t,style:{...rg,...e.style}}));Ao.displayName=ng;var og=Ao,fa="ToastProvider",[pa,sg,ag]=da("Toast"),[Yc,nS]=Xt("Toast",[ag]),[ig,Ro]=Yc(fa),Kc=e=>{const{__scopeToast:t,label:n="Notification",duration:o=5e3,swipeDirection:s="right",swipeThreshold:a=50,children:l}=e,[i,d]=c.useState(null),[f,m]=c.useState(0),h=c.useRef(!1),v=c.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${fa}\`. Expected non-empty \`string\`.`),r.jsx(pa.Provider,{scope:t,children:r.jsx(ig,{scope:t,label:n,duration:o,swipeDirection:s,swipeThreshold:a,toastCount:f,viewport:i,onViewportChange:d,onToastAdd:c.useCallback(()=>m(p=>p+1),[]),onToastRemove:c.useCallback(()=>m(p=>p-1),[]),isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:v,children:l})})};Kc.displayName=fa;var Xc="ToastViewport",lg=["F8"],Fs="toast.viewportPause",Vs="toast.viewportResume",Jc=c.forwardRef((e,t)=>
3{const{__scopeToast:n,hotkey:o=lg,label:s="Notifications ({hotkey})",...a}=e,l=Ro(Xc,n),i=sg(n),d=c.useRef(null),f=c.useRef(null),m=c.useRef(null),h=c.useRef(null),v=Te(t,h,l.onViewportChange),p=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),b=l.toastCount>0;c.useEffect(()=>{const y=E=>{var R;o.length!==0&&o.every(T=>E[T]||E.code===T)&&((R=h.current)==null||R.focus())};return document.addEventListener("keydown",y),()=>document.removeEventListener("keydown",y)},[o]),c.useEffect(()=>{const y=d.current,E=h.current;if(b&&y&&E){const A=()=>{if(!l.isClosePausedRef.current){const S=new CustomEvent(Fs);E.dispatchEvent(S),l.isClosePausedRef.current=!0}},R=()=>{if(l.isClosePausedRef.current){const S=new CustomEvent(Vs);E.dispatchEvent(S),l.isClosePausedRef.current=!1}},T=S=>{!y.contains(S.relatedTarget)&&R()},j=()=>{y.contains(document.activeElement)||R()};return y.addEventListener("focusin",A),y.addEventListener("focusout",T),y.addEventListener("pointermove",A),y.addEventListener("pointerleave",j),window.addEventListener("blur",A),window.addEventListener("focus",R),()=>{y.removeEventListener("focusin",A),y.removeEventListener("focusout",T),y.removeEventListener("pointermove",A),y.removeEventListener("pointerleave",j),window.removeEventListener("blur",A),window.removeEventListener("focus",R)}}},[b,l.isClosePausedRef]);const x=c.useCallback(({tabbingDirection:y})=>{const A=i().map(R=>{const T=R.ref.current,j=[T,...bg(T)];return y==="forwards"?j:j.reverse()});return(y==="forwards"?A.reverse():A).flat()},[i]);return c.useEffect(()=>{const y=h.current;if(y){const E=A=>{var j,S,P;const R=A.altKey||A.ctrlKey||A.metaKey;if(A.key==="Tab"&&!R){const C=document.activeElement,D=A.shiftKey;if(A.target===y&&D){(j=f.current)==null||j.focus();return}const I=x({tabbingDirection:D?"backwards":"forwards"}),H=I.findIndex(k=>k===C);Qo(I.slice(H+1))?A.preventDefault():D?(S=f.current)==null||S.focus():(P=m.current)==null||P.focus()}};return y.addEventListener("keydown",E),()=>y.removeEventListener("keydown",E)}},[i,x]),r.jsxs(Yh,{ref:d,role:"region","aria-label":s.replace("{hotkey}",p),tabIndex:-1,style:{pointerEvents:b?void 0:"none"},children:[b&&r.jsx(Bs,{ref:f,onFocusFromOutsideViewport:()=>{const y=x({tabbingDirection:"forwards"});Qo(y)}}),r.jsx(pa.Slot,{scope:n,children:r.jsx(xe.ol,{tabIndex:-1,...a,ref:v})}),b&&r.jsx(Bs,{ref:m,onFocusFromOutsideViewport:()=>{const y=x({tabbingDirection:"backwards"});Qo(y)}})]})});Jc.displayName=Xc;var Zc="ToastFocusProxy",Bs=c.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:o,...s}=e,a=Ro(Zc,n);return r.jsx(Ao,{"aria-hidden":!0,tabIndex:0,...s,ref:t,style:{position:"fixed"},onFocus:l=>{var f;const i=l.relatedTarget;!((f=a.viewport)!=null&&f.contains(i))&&o()}})});Bs.displayName=Zc;var gn="Toast",cg="toast.swipeStart",dg="toast.swipeMove",ug="toast.swipeCancel",fg="toast.swipeEnd",Qc=c.forwardRef((e,t)=>{const{forceMount:n,open:o,defaultOpen:s,onOpenChange:a,...l}=e,[i,d]=Or({prop:o,defaultProp:s??!0,onChange:a,caller:gn});return r.jsx(Pt,{present:n||i,children:r.jsx(hg,{open:i,...l,ref:t,onClose:()=>d(!1),onPause:Ze(e.onPause),onResume:Ze(e.onResume),onSwipeStart:X(e.onSwipeStart,f=>{f.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:X(e.onSwipeMove,f=>{const{x:m,y:h}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","move"),f.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${m}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${h}px`)}),onSwipeCancel:X(e.onSwipeCancel,f=>{f.currentTarget.setAttribute("data-swipe","cancel"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:X(e.onSwipeEnd,f=>{const{x:m,y:h}=f.detail.delta;f.currentTarget.setAttribute("data-swipe","end"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),f.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),f.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${m}px`),f.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${h}px`),d(!1)})})})});Qc.displayName=gn;var[pg,mg]=Yc(gn,{onClose(){}}),hg=c.forwardRef((e,t)=>
3{const{__scopeToast:n,type:o="foreground",duration:s,open:a,onClose:l,onEscapeKeyDown:i,onPause:d,onResume:f,onSwipeStart:m,onSwipeMove:h,onSwipeCancel:v,onSwipeEnd:p,...b}=e,x=Ro(gn,n),[y,E]=c.useState(null),A=Te(t,k=>E(k)),R=c.useRef(null),T=c.useRef(null),j=s||x.duration,S=c.useRef(0),P=c.useRef(j),C=c.useRef(0),{onToastAdd:D,onToastRemove:O}=x,$=Ze(()=>{var K;(y==null?void 0:y.contains(document.activeElement))&&((K=x.viewport)==null||K.focus()),l()}),I=c.useCallback(k=>{!k||k===1/0||(window.clearTimeout(C.current),S.current=new Date().getTime(),C.current=window.setTimeout($,k))},[$]);c.useEffect(()=>{const k=x.viewport;if(k){const K=()=>{I(P.current),f==null||f()},W=()=>{const B=new Date().getTime()-S.current;P.current=P.current-B,window.clearTimeout(C.current),d==null||d()};return k.addEventListener(Fs,W),k.addEventListener(Vs,K),()=>{k.removeEventListener(Fs,W),k.removeEventListener(Vs,K)}}},[x.viewport,j,d,f,I]),c.useEffect(()=>{a&&!x.isClosePausedRef.current&&I(j)},[a,j,x.isClosePausedRef,I]),c.useEffect(()=>(D(),()=>O()),[D,O]);const H=c.useMemo(()=>y?ad(y):null,[y]);return x.viewport?r.jsxs(r.Fragment,{children:[H&&r.jsx(gg,{__scopeToast:n,role:"status","aria-live":o==="foreground"?"assertive":"polite","aria-atomic":!0,children:H}),r.jsx(pg,{scope:n,onClose:$,children:aa.createPortal(r.jsx(pa.ItemSlot,{scope:n,children:r.jsx(Gh,{asChild:!0,onEscapeKeyDown:X(i,()=>{x.isFocusedToastEscapeKeyDownRef.current||$(),x.isFocusedToastEscapeKeyDownRef.current=!1}),children:r.jsx(xe.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":a?"open":"closed","data-swipe-direction":x.swipeDirection,...b,ref:A,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:X(e.onKeyDown,k=>{k.key==="Escape"&&(i==null||i(k.nativeEvent),k.nativeEvent.defaultPrevented||(x.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:X(e.onPointerDown,k=>{k.button===0&&(R.current={x:k.clientX,y:k.clientY})}),onPointerMove:X(e.onPointerMove,k=>{if(!R.current)return;const K=k.clientX-R.current.x,W=k.clientY-R.current.y,B=!!T.current,U=["left","right"].includes(x.swipeDirection),N=["left","up"].includes(x.swipeDirection)?Math.min:Math.max,J=U?N(0,K):0,Z=U?0:N(0,W),ee=k.pointerType==="touch"?10:2,G={x:J,y:Z},ae={originalEvent:k,delta:G};B?(T.current=G,Sn(dg,h,ae,{discrete:!1})):wi(G,x.swipeDirection,ee)?(T.current=G,Sn(cg,m,ae,{discrete:!1}),k.target.setPointerCapture(k.pointerId)):(Math.abs(K)>ee||Math.abs(W)>ee)&&(R.current=null)}),onPointerUp:X(e.onPointerUp,k=>{const K=T.current,W=k.target;if(W.hasPointerCapture(k.pointerId)&&W.releasePointerCapture(k.pointerId),T.current=null,R.current=null,K){const B=k.currentTarget,U={originalEvent:k,delta:K};wi(K,x.swipeDirection,x.swipeThreshold)?Sn(fg,p,U,{discrete:!0}):Sn(ug,v,U,{discrete:!0}),B.addEventListener("click",N=>N.preventDefault(),{once:!0})}})})})}),x.viewport)})]}):null}),gg=e=>{const{__scopeToast:t,children:n,...o}=e,s=Ro(gn,t),[a,l]=c.useState(!1),[i,d]=c.useState(!1);return vg(()=>l(!0)),c.useEffect(()=>{const f=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(f)},[]),i?null:r.jsx(To,{asChild:!0,children:r.jsx(Ao,{...o,children:a&&r.jsxs(r.Fragment,{children:[s.label," ",n]})})})},_g="ToastTitle",ed=c.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return r.jsx(xe.div,{...o,ref:t})});ed.displayName=_g;var xg="ToastDescription",td=c.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e;return r.jsx(xe.div,{...o,ref:t})});td.displayName=xg;var rd="ToastAction",nd=c.forwardRef((e,t)=>{const{altText:n,...o}=e;return n.trim()?r.jsx(sd,{altText:n,asChild:!0,children:r.jsx(ma,{...o,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${rd}\`. Expected non-empty \`string\`.`),null)});nd.displayName=rd;var od="ToastClose",ma=c.forwardRef((e,t)=>{const{__scopeToast:n,...o}=e,s=mg(od,n);return r.jsx(sd,{asChild:!0,children:r.jsx(xe.button,{type:"button",...o,ref:t,onClick:X(e.onClick,s.onClose)})})});ma.displayName=od;var sd=c.forwardRef((e,t)=>{const{__scopeToast:n,altText:o,...s}=e;return r.jsx(xe.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...s,ref:t})});function ad(e){const t=[];
3return Array.from(e.childNodes).forEach(o=>{if(o.nodeType===o.TEXT_NODE&&o.textContent&&t.push(o.textContent),yg(o)){const s=o.ariaHidden||o.hidden||o.style.display==="none",a=o.dataset.radixToastAnnounceExclude==="";if(!s)if(a){const l=o.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...ad(o))}}),t}function Sn(e,t,n,{discrete:o}){const s=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&s.addEventListener(e,t,{once:!0}),o?ua(s,a):s.dispatchEvent(a)}var wi=(e,t,n=0)=>{const o=Math.abs(e.x),s=Math.abs(e.y),a=o>s;return t==="left"||t==="right"?a&&o>n:!a&&s>n};function vg(e=()=>{}){const t=Ze(e);kt(()=>{let n=0,o=0;return n=window.requestAnimationFrame(()=>o=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(o)}},[t])}function yg(e){return e.nodeType===e.ELEMENT_NODE}function bg(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Qo(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var wg=Kc,id=Jc,ld=Qc,cd=ed,dd=td,ud=nd,fd=ma;const Ei=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ji=Tc,ha=(e,t)=>n=>{var o;if((t==null?void 0:t.variants)==null)return ji(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:s,defaultVariants:a}=t,l=Object.keys(s).map(f=>{const m=n==null?void 0:n[f],h=a==null?void 0:a[f];if(m===null)return null;const v=Ei(m)||Ei(h);return s[f][v]}),i=n&&Object.entries(n).reduce((f,m)=>{let[h,v]=m;return v===void 0||(f[h]=v),f},{}),d=t==null||(o=t.compoundVariants)===null||o===void 0?void 0:o.reduce((f,m)=>{let{class:h,className:v,...p}=m;return Object.entries(p).every(b=>{let[x,y]=b;return Array.isArray(y)?y.includes({...a,...i}[x]):{...a,...i}[x]===y})?[...f,h,v]:f},[]);return ji(e,l,d,n==null?void 0:n.class,n==null?void 0:n.className)},ga="-",Eg=e=>{const t=Tg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:l=>{const i=l.split(ga);return i[0]===""&&i.length!==1&&i.shift(),pd(i,t)||jg(l)},getConflictingClassGroupIds:(l,i)=>{const d=n[l]||[];return i&&o[l]?[...d,...o[l]]:d}}},pd=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],o=t.nextPart.get(n),s=o?pd(e.slice(1),o):void 0;if(s)return s;if(t.validators.length===0)return;const a=e.join(ga);return(l=t.validators.find(({validator:i})=>i(a)))==null?void 0:l.classGroupId},Ti=/^\[(.+)\]$/,jg=e=>{if(Ti.test(e)){const t=Ti.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},Tg=e=>{const{theme:t,prefix:n}=e,o={nextPart:new Map,validators:[]};return Rg(Object.entries(e.classGroups),n).forEach(([a,l])=>{Us(l,o,a,t)}),o},Us=(e,t,n,o)=>{e.forEach(s=>{if(typeof s=="string"){const a=s===""?t:Ai(t,s);a.classGroupId=n;return}if(typeof s=="function"){if(Ag(s)){Us(s(o),t,n,o);return}t.validators.push({validator:s,classGroupId:n});return}Object.entries(s).forEach(([a,l])=>{Us(l,Ai(t,a),n,o)})})},Ai=(e,t)=>{let n=e;return t.split(ga).forEach(o=>{n.nextPart.has(o)||n.nextPart.set(o,{nextPart:new Map,validators:[]}),n=n.nextPart.get(o)}),n},Ag=e=>e.isThemeGetter,Rg=(e,t)=>
vendor: 4,593 bytes, line 3
3t?e.map(([n,o])=>{const s=o.map(a=>typeof a=="string"?t+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([l,i])=>[t+l,i])):a);return[n,s]}):e,Pg=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,o=new Map;const s=(a,l)=>{n.set(a,l),t++,t>e&&(t=0,o=n,n=new Map)};return{get(a){let l=n.get(a);if(l!==void 0)return l;if((l=o.get(a))!==void 0)return s(a,l),l},set(a,l){n.has(a)?n.set(a,l):s(a,l)}}},md="!",Sg=e=>{const{separator:t,experimentalParseClassName:n}=e,o=t.length===1,s=t[0],a=t.length,l=i=>{const d=[];let f=0,m=0,h;for(let y=0;y<i.length;y++){let E=i[y];if(f===0){if(E===s&&(o||i.slice(y,y+a)===t)){d.push(i.slice(m,y)),m=y+a;continue}if(E==="/"){h=y;continue}}E==="["?f++:E==="]"&&f--}const v=d.length===0?i:i.substring(m),p=v.startsWith(md),b=p?v.substring(1):v,x=h&&h>m?h-m:void 0;return{modifiers:d,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:x}};return n?i=>n({className:i,parseClassName:l}):l},Cg=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(o=>{o[0]==="["?(t.push(...n.sort(),o),n=[]):n.push(o)}),t.push(...n.sort()),t},Ig=e=>({cache:Pg(e.cacheSize),parseClassName:Sg(e),...Eg(e)}),Ng=/\s+/,Og=(e,t)=>{const{parseClassName:n,getClassGroupId:o,getConflictingClassGroupIds:s}=t,a=[],l=e.trim().split(Ng);let i="";for(let d=l.length-1;d>=0;d-=1){const f=l[d],{modifiers:m,hasImportantModifier:h,baseClassName:v,maybePostfixModifierPosition:p}=n(f);let b=!!p,x=o(b?v.substring(0,p):v);if(!x){if(!b){i=f+(i.length>0?" "+i:i);continue}if(x=o(v),!x){i=f+(i.length>0?" "+i:i);continue}b=!1}const y=Cg(m).join(":"),E=h?y+md:y,A=E+x;if(a.includes(A))continue;a.push(A);const R=s(x,b);for(let T=0;T<R.length;++T){const j=R[T];a.push(E+j)}i=f+(i.length>0?" "+i:i)}return i};function kg(){let e=0,t,n,o="";for(;e<arguments.length;)(t=arguments[e++])&&(n=hd(t))&&(o&&(o+=" "),o+=n);return o}const hd=e=>{if(typeof e=="string")return e;let t,n="";for(let o=0;o<e.length;o++)e[o]&&(t=hd(e[o]))&&(n&&(n+=" "),n+=t);return n};function Dg(e,...t){let n,o,s,a=l;function l(d){const f=t.reduce((m,h)=>h(m),e());return n=Ig(f),o=n.cache.get,s=n.cache.set,a=i,i(d)}function i(d){const f=o(d);if(f)return f;const m=Og(d,n);return s(d,m),m}return function(){return a(kg.apply(null,arguments))}}const be=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},gd=/^\[(?:([a-z-]+):)?(.+)\]$/i,Lg=/^\d+\/\d+$/,Mg=new Set(["px","full","screen"]),$g=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Fg=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vg=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Bg=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ug=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,It=e=>jr(e)||Mg.has(e)||Lg.test(e),Ft=e=>kr(e,"length",Xg),jr=e=>!!e&&!Number.isNaN(Number(e)),es=e=>kr(e,"number",jr),Yr=e=>!!e&&Number.isInteger(Number(e)),zg=e=>e.endsWith("%")&&jr(e.slice(0,-1)),ie=e=>gd.test(e),Vt=e=>$g.test(e),Hg=new Set(["length","size","percentage"]),Wg=e=>kr(e,Hg,_d),qg=e=>kr(e,"position",_d),Gg=new Set(["image","url"]),Yg=e=>kr(e,Gg,Zg),Kg=e=>kr(e,"",Jg),Kr=()=>!0,kr=(e,t,n)=>{const o=gd.exec(e);return o?o[1]?typeof t=="string"?o[1]===t:t.has(o[1]):n(o[2]):!1},Xg=e=>Fg.test(e)&&!Vg.test(e),_d=()=>!1,Jg=e=>Bg.test(e),Zg=e=>Ug.test(e),Qg=()=>{const e=be("colors"),t=be("spacing"),n=be("blur"),o=be("brightness"),s=be("borderColor"),a=be("borderRadius"),l=be("borderSpacing"),i=be("borderWidth"),d=be("contrast"),f=be("grayscale"),m=be("hueRotate"),h=be("invert"),v=be("gap"),p=be("gradientColorStops"),b=be("gradientColorStopPositions"),x=be("inset"),y=be("margin"),E=be("opacity"),A=be("padding"),R=be("saturate"),T=be("scale"),j=be("sepia"),S=be("skew"),P=be("space"),C=be("translate"),D=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",ie,t],I=()=>[ie,t],H=()=>["",It,Ft],k=()=>["auto",jr,ie],K=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],B=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],U=()=>["start","end","center","between","around","evenly","stretch"],N=()=>["","0",ie],J=()=>["auto","avoid","all","avoid-page","page","left","right","column"],Z=()=>[jr,ie];return{cacheSize:500,separator:":",theme:{colors:[Kr],spacing:[It,Ft],blur:["none","",Vt,ie],brightness:Z(),borderColor:[e],borderRadius:["n
3one","","full",Vt,ie],borderSpacing:I(),borderWidth:H(),contrast:Z(),grayscale:N(),hueRotate:Z(),invert:N(),gap:I(),gradientColorStops:[e],gradientColorStopPositions:[zg,Ft],inset:$(),margin:$(),opacity:Z(),padding:I(),saturate:Z(),scale:Z(),sepia:N(),skew:Z(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",ie]}],container:["container"],columns:[{columns:[Vt]}],"break-after":[{"break-after":J()}],"break-before":[{"break-before":J()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...K(),ie]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[x]}],"inset-x":[{"inset-x":[x]}],"inset-y":[{"inset-y":[x]}],start:[{start:[x]}],end:[{end:[x]}],top:[{top:[x]}],right:[{right:[x]}],bottom:[{bottom:[x]}],left:[{left:[x]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Yr,ie]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ie]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",Yr,ie]}],"grid-cols":[{"grid-cols":[Kr]}],"col-start-end":[{col:["auto",{span:["full",Yr,ie]},ie]}],"col-start":[{"col-start":k()}],"col-end":[{"col-end":k()}],"grid-rows":[{"grid-rows":[Kr]}],"row-start-end":[{row:["auto",{span:[Yr,ie]},ie]}],"row-start":[{"row-start":k()}],"row-end":[{"row-end":k()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ie]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ie]}],gap:[{gap:[v]}],"gap-x":[{"gap-x":[v]}],"gap-y":[{"gap-y":[v]}],"justify-content":[{justify:["normal",...U()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...U(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...U(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[A]}],px:[{px:[A]}],py:[{py:[A]}],ps:[{ps:[A]}],pe:[{pe:[A]}],pt:[{pt:[A]}],pr:[{pr:[A]}],pb:[{pb:[A]}],pl:[{pl:[A]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[P]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[P]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ie,t]}],"min-w":[{"min-w":[ie,t,"min","max","fit"]}],"max-w":[{"max-w":[ie,t,"none","full","min","max","fit","prose",{screen:[Vt]},Vt]}],h:[{h:[ie,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ie,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ie,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Vt,Ft]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",es]}],"font-family":[{font:[Kr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ie]}],"line-clamp":[{"line-clamp":["none",jr,es]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",It,ie]}],"list-image":[{"list-image":["none",ie]}],"list-style-type":[{list:["none","disc","decimal",ie]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[E]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[E]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",It,Ft]}],"underline-offset":[{"underline-offset":["auto",It,ie]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ie]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ie]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[E]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...K(),qg]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Wg]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Yg]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[b]}
vendor: 5,180 bytes, line 3
3],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[i]}],"border-w-x":[{"border-x":[i]}],"border-w-y":[{"border-y":[i]}],"border-w-s":[{"border-s":[i]}],"border-w-e":[{"border-e":[i]}],"border-w-t":[{"border-t":[i]}],"border-w-r":[{"border-r":[i]}],"border-w-b":[{"border-b":[i]}],"border-w-l":[{"border-l":[i]}],"border-opacity":[{"border-opacity":[E]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[i]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[i]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[E]}],"divide-style":[{divide:W()}],"border-color":[{border:[s]}],"border-color-x":[{"border-x":[s]}],"border-color-y":[{"border-y":[s]}],"border-color-s":[{"border-s":[s]}],"border-color-e":[{"border-e":[s]}],"border-color-t":[{"border-t":[s]}],"border-color-r":[{"border-r":[s]}],"border-color-b":[{"border-b":[s]}],"border-color-l":[{"border-l":[s]}],"divide-color":[{divide:[s]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[It,ie]}],"outline-w":[{outline:[It,Ft]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[E]}],"ring-offset-w":[{"ring-offset":[It,Ft]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Vt,Kg]}],"shadow-color":[{shadow:[Kr]}],opacity:[{opacity:[E]}],"mix-blend":[{"mix-blend":[...B(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":B()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[o]}],contrast:[{contrast:[d]}],"drop-shadow":[{"drop-shadow":["","none",Vt,ie]}],grayscale:[{grayscale:[f]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[h]}],saturate:[{saturate:[R]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[o]}],"backdrop-contrast":[{"backdrop-contrast":[d]}],"backdrop-grayscale":[{"backdrop-grayscale":[f]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[E]}],"backdrop-saturate":[{"backdrop-saturate":[R]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ie]}],duration:[{duration:Z()}],ease:[{ease:["linear","in","out","in-out",ie]}],delay:[{delay:Z()}],animate:[{animate:["none","spin","ping","pulse","bounce",ie]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[T]}],"scale-x":[{"scale-x":[T]}],"scale-y":[{"scale-y":[T]}],rotate:[{rotate:[Yr,ie]}],"translate-x":[{"translate-x":[C]}],"translate-y":[{"translate-y":[C]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ie]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ie]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
3],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ie]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[It,Ft,es]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},e_=Dg(Qg);function ve(...e){return e_(Tc(e))}const xd=/[\s\u00a0\u200B-\u200D\uFEFF]+/g;function oS(e){return e?String(e).replace(xd,"").trim().toLowerCase():""}function t_(e){if(!e)return"";const t=String(e).replace(xd,"").trim(),n=t.replace(/\D/g,"");return n?t.startsWith("+")?`+${n}`:n:t}function sS(e){const t=t_(e);if(!t)return"";const n=t.replace(/\D/g,"");return n.length===10?`(${n.slice(0,3)}) ${n.slice(3,6)}-${n.slice(6)}`:n.length===11&&n.startsWith("1")?`+1 (${n.slice(1,4)}) ${n.slice(4,7)}-${n.slice(7)}`:t}function aS(e,t){const n=typeof e=="string"?parseFloat(e.replace(/[^0-9.-]/g,""))||0:Number(e)||0;return t!=null&&t.compact?Math.abs(n)>=1e6?`$${(n/1e6).toFixed(1)}M`:Math.abs(n)>=1e3?`$${(n/1e3).toFixed(0)}K`:`$${n.toFixed(0)}`:new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:(t==null?void 0:t.decimals)??0,maximumFractionDigits:(t==null?void 0:t.decimals)??0}).format(n)}const r_=wg,vd=c.forwardRef(({className:e,...t},n)=>r.jsx(id,{ref:n,className:ve("fixed top-16 right-0 z-[100] flex max-h-screen w-full flex-col p-4 md:max-w-[420px]",e),...t}));vd.displayName=id.displayName;const n_=ha("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-lg border p-4 pr-10 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full backdrop-blur-md",{variants:{variant:{default:"border bg-background text-foreground shadow-lg",destructive:"destructive group border-destructive/20 bg-destructive/[0.06] text-foreground shadow-lg"}},defaultVariants:{variant:"default"}}),yd=c.forwardRef(({className:e,variant:t,...n},o)=>r.jsx(ld,{ref:o,className:ve(n_({variant:t}),e),...n}));
3yd.displayName=ld.displayName;const o_=c.forwardRef(({className:e,...t},n)=>r.jsx(ud,{ref:n,className:ve("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-destructive/30 hover:bg-secondary group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...t}));o_.displayName=ud.displayName;const bd=c.forwardRef(({className:e,...t},n)=>r.jsx(fd,{ref:n,className:ve("absolute right-3 top-3 rounded-md p-1 text-foreground/60 opacity-100 transition-opacity hover:text-foreground focus:outline-none focus:ring-2 group-[.destructive]:text-destructive group-[.destructive]:hover:text-destructive group-[.destructive]:focus:ring-destructive",e),"toast-close":"",...t,children:r.jsx(ia,{className:"h-4 w-4"})}));bd.displayName=fd.displayName;const wd=c.forwardRef(({className:e,...t},n)=>r.jsx(cd,{ref:n,className:ve("text-sm font-semibold leading-tight",e),...t}));wd.displayName=cd.displayName;const Ed=c.forwardRef(({className:e,...t},n)=>r.jsx(dd,{ref:n,className:ve("text-sm opacity-90 leading-snug",e),...t}));Ed.displayName=dd.displayName;function s_(){const{toasts:e}=Eo();return r.jsxs(r_,{children:[e.map(function({id:t,title:n,description:o,action:s,variant:a,...l}){const i=a==="destructive";return r.jsxs(yd,{variant:a,...l,children:[r.jsxs("div",{className:"flex items-center gap-3 min-w-0",children:[i?r.jsx("div",{className:"shrink-0 w-8 h-8 rounded-lg bg-destructive/15 flex items-center justify-center",children:r.jsx($p,{className:"h-[18px] w-[18px] text-destructive"})}):r.jsx("div",{className:"shrink-0 w-8 h-8 rounded-lg bg-success/15 flex items-center justify-center",children:r.jsx(Fp,{className:"h-[18px] w-[18px] text-success"})}),r.jsxs("div",{className:"grid gap-0.5 min-w-0",children:[n&&r.jsx(wd,{children:n}),o&&r.jsx(Ed,{children:o})]})]}),s,r.jsx(bd,{})]},t)}),r.jsx(vd,{})]})}var a_=wc[" useId ".trim().toString()]||(()=>{}),i_=0;function Ot(e){const[t,n]=c.useState(a_());return kt(()=>{e||n(o=>o??String(i_++))},[e]),e||(t?`radix-${t}`:"")}const l_=["top","right","bottom","left"],Gt=Math.min,nt=Math.max,lo=Math.round,Cn=Math.floor,At=e=>({x:e,y:e}),c_={left:"right",right:"left",bottom:"top",top:"bottom"},d_={start:"end",end:"start"};function zs(e,t,n){return nt(e,Gt(t,n))}function Dt(e,t){return typeof e=="function"?e(t):e}function Lt(e){return e.split("-")[0]}function Dr(e){return e.split("-")[1]}function _a(e){return e==="x"?"y":"x"}function xa(e){return e==="y"?"height":"width"}const u_=new Set(["top","bottom"]);function Tt(e){return u_.has(Lt(e))?"y":"x"}function va(e){return _a(Tt(e))}function f_(e,t,n){n===void 0&&(n=!1);const o=Dr(e),s=va(e),a=xa(s);let l=s==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(l=co(l)),[l,co(l)]}function p_(e){const t=co(e);return[Hs(e),t,Hs(t)]}function Hs(e){return e.replace(/start|end/g,t=>d_[t])}const Ri=["left","right"],Pi=["right","left"],m_=["top","bottom"],h_=["bottom","top"];function g_(e,t,n){switch(e){case"top":case"bottom":return n?t?Pi:Ri:t?Ri:Pi;case"left":case"right":return t?m_:h_;default:return[]}}function __(e,t,n,o){const s=Dr(e);let a=g_(Lt(e),n==="start",o);return s&&(a=a.map(l=>l+"-"+s),t&&(a=a.concat(a.map(Hs)))),a}function co(e){return e.replace(/left|right|bottom|top/g,t=>c_[t])}function x_(e){return{top:0,right:0,bottom:0,left:0,...e}}function jd(e){return typeof e!="number"?x_(e):{top:e,right:e,bottom:e,left:e}}function uo(e){const{x:t,y:n,width:o,height:s}=e;return{width:o,height:s,top:n,left:t,right:t+o,bottom:n+s,x:t,y:n}}function Si(e,t,n){let{reference:o,floating:s}=e;const a=Tt(t),l=va(t),i=xa(l),d=Lt(t),f=a==="y",m=o.x+o.width/2-s.width/2,h=o.y+o.height/2-s.height/2,v=o[i]/2-s[i]/2;let p;switch(d){case"top":p={x:m,y:o.y-s.height};break;case"bottom":p={x:m,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:h};break;case"left":p={x:o.x-s.width,y:h};break;default:p={x:o.x,y:o.y}}switch(Dr(t)){case"start":p[l]-=v*(n&&f?-1:1);break;case"end":p[l]+=v*(n&&f?-1:1);break}return p}const v_=async(e,t,n)=>{const{placement:o="bottom",strategy:s="absolute",middleware:a=[],platform:l}
vendor: 9,778 bytes, line 3
3=n,i=a.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:s}),{x:m,y:h}=Si(f,o,d),v=o,p={},b=0;for(let x=0;x<i.length;x++){const{name:y,fn:E}=i[x],{x:A,y:R,data:T,reset:j}=await E({x:m,y:h,initialPlacement:o,placement:v,strategy:s,middlewareData:p,rects:f,platform:l,elements:{reference:e,floating:t}});m=A??m,h=R??h,p={...p,[y]:{...p[y],...T}},j&&b<=50&&(b++,typeof j=="object"&&(j.placement&&(v=j.placement),j.rects&&(f=j.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:s}):j.rects),{x:m,y:h}=Si(f,v,d)),x=-1)}return{x:m,y:h,placement:v,strategy:s,middlewareData:p}};async function an(e,t){var n;t===void 0&&(t={});const{x:o,y:s,platform:a,rects:l,elements:i,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:h="floating",altBoundary:v=!1,padding:p=0}=Dt(t,e),b=jd(p),y=i[v?h==="floating"?"reference":"floating":h],E=uo(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(y)))==null||n?y:y.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(i.floating)),boundary:f,rootBoundary:m,strategy:d})),A=h==="floating"?{x:o,y:s,width:l.floating.width,height:l.floating.height}:l.reference,R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(i.floating)),T=await(a.isElement==null?void 0:a.isElement(R))?await(a.getScale==null?void 0:a.getScale(R))||{x:1,y:1}:{x:1,y:1},j=uo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:A,offsetParent:R,strategy:d}):A);return{top:(E.top-j.top+b.top)/T.y,bottom:(j.bottom-E.bottom+b.bottom)/T.y,left:(E.left-j.left+b.left)/T.x,right:(j.right-E.right+b.right)/T.x}}const y_=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:s,rects:a,platform:l,elements:i,middlewareData:d}=t,{element:f,padding:m=0}=Dt(e,t)||{};if(f==null)return{};const h=jd(m),v={x:n,y:o},p=va(s),b=xa(p),x=await l.getDimensions(f),y=p==="y",E=y?"top":"left",A=y?"bottom":"right",R=y?"clientHeight":"clientWidth",T=a.reference[b]+a.reference[p]-v[p]-a.floating[b],j=v[p]-a.reference[p],S=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let P=S?S[R]:0;(!P||!await(l.isElement==null?void 0:l.isElement(S)))&&(P=i.floating[R]||a.floating[b]);const C=T/2-j/2,D=P/2-x[b]/2-1,O=Gt(h[E],D),$=Gt(h[A],D),I=O,H=P-x[b]-$,k=P/2-x[b]/2+C,K=zs(I,k,H),W=!d.arrow&&Dr(s)!=null&&k!==K&&a.reference[b]/2-(k<I?O:$)-x[b]/2<0,B=W?k<I?k-I:k-H:0;return{[p]:v[p]+B,data:{[p]:K,centerOffset:k-K-B,...W&&{alignmentOffset:B}},reset:W}}}),b_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:s,middlewareData:a,rects:l,initialPlacement:i,platform:d,elements:f}=t,{mainAxis:m=!0,crossAxis:h=!0,fallbackPlacements:v,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...y}=Dt(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const E=Lt(s),A=Tt(i),R=Lt(i)===i,T=await(d.isRTL==null?void 0:d.isRTL(f.floating)),j=v||(R||!x?[co(i)]:p_(i)),S=b!=="none";!v&&S&&j.push(...__(i,x,b,T));const P=[i,...j],C=await an(t,y),D=[];let O=((o=a.flip)==null?void 0:o.overflows)||[];if(m&&D.push(C[E]),h){const k=f_(s,l,T);D.push(C[k[0]],C[k[1]])}if(O=[...O,{placement:s,overflows:D}],!D.every(k=>k<=0)){var $,I;const k=((($=a.flip)==null?void 0:$.index)||0)+1,K=P[k];if(K&&(!(h==="alignment"?A!==Tt(K):!1)||O.every(U=>U.overflows[0]>0&&Tt(U.placement)===A)))return{data:{index:k,overflows:O},reset:{placement:K}};let W=(I=O.filter(B=>B.overflows[0]<=0).sort((B,U)=>B.overflows[1]-U.overflows[1])[0])==null?void 0:I.placement;if(!W)switch(p){case"bestFit":{var H;const B=(H=O.filter(U=>{if(S){const N=Tt(U.placement);return N===A||N==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(N=>N>0).reduce((N,J)=>N+J,0)]).sort((U,N)=>U[1]-N[1])[0])==null?void 0:H[0];B&&(W=B);break}case"initialPlacement":W=i;break}if(s!==W)return{reset:{placement:W}}}return{}}}};function Ci(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ii(e){return l_.some(t=>e[t]>=0)}const w_=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:o="referenceHidden",...s}=Dt(e,t);switch(o){case"referenceHidden":{const a=await an(t,{...s,elementContext:"reference"}),l=Ci(a,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:Ii(l)}}}case"escaped":{const a=await an(t,{...s,altBoundary:!0}),l=Ci(a,n.floating);return{data:{escapedOffsets:l,escaped:Ii(l)}}}default:return{}}}}},Td=new Set(["left","top"]);async function E_(e,t){const{placement:n,platform:o,elements:s}=e,a=await(o.isRTL==null?void 0:o.isRTL(s.floating)),l=Lt(n),i=Dr(n),d=Tt(n)==="y",f=Td.has(l)?-1:1,m=a&&d?-1:1,h=Dt(t,e);let{mainAxis:v,crossAxis:p,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return i&&typeof b=="number"&&(p=i==="end"?b*-1:b),d?{x:p*m,y:v*f}:{x:v*f,y:p*m}}const j_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:s,y:a,placement:l,middlewareData:i}=t,d=await E_(t,e);return l===((n=i.offset)==null?void 0:n.placement)&&(o=i.arrow)!=null&&o.alignmentOffset?{}:{x:s+d.x,y:a+d.y,data:{...d,placement:l}}}}},T_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:s}=t,{mainAxis:a=!0,crossAxis:l=!1,limiter:i={fn:y=>{let{x:E,y:A}=y;return{x:E,y:A}}},...d}=Dt(e,t),f={x:n,y:o},m=await an(t,d),h=Tt(Lt(s)),v=_a(h);let p=f[v],b=f[h];if(a){const y=v==="y"?"top":"left",E=v==="y"?"bottom":"right",A=p+m[y],R=p-m[E];p=zs(A,p,R)}if(l){const y=h==="y"?"top":"left",E=h==="y"?"bottom":"right",A=b+m[y],R=b-m[E];b=zs(A,b,R)}const x=i.fn({...t,[v]:p,[h]:b});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[v]:a,[h]:l}}}}}},A_=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:s,rects:a,middlewareData:l}=t,{offset:i=0,mainAxis:d=!0,crossAxis:f=!0}=Dt(e,t),m={x:n,y:o},h=Tt(s),v=_a(h);let p=m[v],b=m[h];const x=Dt(i,t),y=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(d){const R=v==="y"?"height":"width",T=a.reference[v]-a.floating[R]+y.mainAxis,j=a.reference[v]+a.reference[R]-y.mainAxis;p<T?p=T:p>j&&(p=j)}if(f){var E,A;const R=v==="y"?"width":"height",T=Td.has(Lt(s)),j=a.reference[h]-a.floating[R]+(T&&((E=l.offset)==null?void 0:E[h])||0)+(T?0:y.crossAxis),S=a.reference[h]+a.reference[R]+(T?0:((A=l.offset)==null?void 0:A[h])||0)-(T?y.crossAxis:0);b<j?b=j:b>S&&(b=S)}return{[v]:p,[h]:b}}}},R_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:s,rects:a,platform:l,elements:i}=t,{apply:d=()=>{},...f}=Dt(e,t),m=await an(t,f),h=Lt(s),v=Dr(s),p=Tt(s)==="y",{width:b,height:x}=a.floating;let y,E;h==="top"||h==="bottom"?(y=h,E=v===(await(l.isRTL==null?void 0:l.isRTL(i.floating))?"start":"end")?"left":"right"):(E=h,y=v==="end"?"top":"bottom");const A=x-m.top-m.bottom,R=b-m.left-m.right,T=Gt(x-m[y],A),j=Gt(b-m[E],R),S=!t.middlewareData.shift;let P=T,C=j;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(C=R),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(P=A),S&&!v){const O=nt(m.left,0),$=nt(m.right,0),I=nt(m.top,0),H=nt(m.bottom,0);p?C=b-2*(O!==0||$!==0?O+$:nt(m.left,m.right)):P=x-2*(I!==0||H!==0?I+H:nt(m.top,m.bottom))}await d({...t,availableWidth:C,availableHeight:P});const D=await l.getDimensions(i.floating);return b!==D.width||x!==D.height?{reset:{rects:!0}}:{}}}};function Po(){return typeof window<"u"}function Lr(e){return Ad(e)?(e.nodeName||"").toLowerCase():"#document"}function ot(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function St(e){var t;return(t=(Ad(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ad(e){return Po()?e instanceof Node||e instanceof ot(e).Node:!1}function gt(e){return Po()?e instanceof Element||e instanceof ot(e).Element:!1}function Rt(e){return Po()?e instanceof HTMLElement||e instanceof ot(e).HTMLElement:!1}function Ni(e){return!Po()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ot(e).ShadowRoot}const P_=new Set(["inline","contents"]);function _n(e){const{overflow:t,overflowX:n,overflowY:o,display:s}=_t(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!P_.has(s)}const S_=new Set(["table","td","th"]);function C_(e){return S_.has(Lr(e))}const I_=[":popover-open",":modal"];function So(e){return I_.some(t=>{try{return e.matches(t)}catch{return!1}})}const N_=["transform","translate","scale","rotate","perspective"],O_=["transform","translate","scale","rotate","perspective","filter"],k_=["paint","layout","strict","content"];function ya(e){const t=ba(),n=gt(e)?_t(e):e;return N_.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||O_.some(o=>(n.willChange||"").includes(o))||k_.some(o=>(n.contain||"").includes(o))}function D_(e){let t=Yt(e);for(;Rt(t)&&!Sr(t);){if(ya(t))return t;if(So(t))return null;t=Yt(t)}return null}function ba(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const L_=new Set(["html","body","#document"]);function Sr(e){return L_.has(Lr(e))}function _t(e){return ot(e).getComputedStyle(e)}function Co(e){return gt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Yt(e){if(Lr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ni(e)&&e.host||St(e);return Ni(t)?t.host:t}function Rd(e){const t=Yt(e);return Sr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Rt(t)&&_n(t)?t:Rd(t)}
vendor: 4,130 bytes, line 3
3function ln(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const s=Rd(e),a=s===((o=e.ownerDocument)==null?void 0:o.body),l=ot(s);if(a){const i=Ws(l);return t.concat(l,l.visualViewport||[],_n(s)?s:[],i&&n?ln(i):[])}return t.concat(s,ln(s,[],n))}function Ws(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Pd(e){const t=_t(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const s=Rt(e),a=s?e.offsetWidth:n,l=s?e.offsetHeight:o,i=lo(n)!==a||lo(o)!==l;return i&&(n=a,o=l),{width:n,height:o,$:i}}function wa(e){return gt(e)?e:e.contextElement}function Tr(e){const t=wa(e);if(!Rt(t))return At(1);const n=t.getBoundingClientRect(),{width:o,height:s,$:a}=Pd(t);let l=(a?lo(n.width):n.width)/o,i=(a?lo(n.height):n.height)/s;return(!l||!Number.isFinite(l))&&(l=1),(!i||!Number.isFinite(i))&&(i=1),{x:l,y:i}}const M_=At(0);function Sd(e){const t=ot(e);return!ba()||!t.visualViewport?M_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function $_(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ot(e)?!1:t}function lr(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),a=wa(e);let l=At(1);t&&(o?gt(o)&&(l=Tr(o)):l=Tr(e));const i=$_(a,n,o)?Sd(a):At(0);let d=(s.left+i.x)/l.x,f=(s.top+i.y)/l.y,m=s.width/l.x,h=s.height/l.y;if(a){const v=ot(a),p=o&>(o)?ot(o):o;let b=v,x=Ws(b);for(;x&&o&&p!==b;){const y=Tr(x),E=x.getBoundingClientRect(),A=_t(x),R=E.left+(x.clientLeft+parseFloat(A.paddingLeft))*y.x,T=E.top+(x.clientTop+parseFloat(A.paddingTop))*y.y;d*=y.x,f*=y.y,m*=y.x,h*=y.y,d+=R,f+=T,b=ot(x),x=Ws(b)}}return uo({width:m,height:h,x:d,y:f})}function Ea(e,t){const n=Co(e).scrollLeft;return t?t.left+n:lr(St(e)).left+n}function Cd(e,t,n){n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=o.left+t.scrollLeft-(n?0:Ea(e,o)),a=o.top+t.scrollTop;return{x:s,y:a}}function F_(e){let{elements:t,rect:n,offsetParent:o,strategy:s}=e;const a=s==="fixed",l=St(o),i=t?So(t.floating):!1;if(o===l||i&&a)return n;let d={scrollLeft:0,scrollTop:0},f=At(1);const m=At(0),h=Rt(o);if((h||!h&&!a)&&((Lr(o)!=="body"||_n(l))&&(d=Co(o)),Rt(o))){const p=lr(o);f=Tr(o),m.x=p.x+o.clientLeft,m.y=p.y+o.clientTop}const v=l&&!h&&!a?Cd(l,d,!0):At(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+m.x+v.x,y:n.y*f.y-d.scrollTop*f.y+m.y+v.y}}function V_(e){return Array.from(e.getClientRects())}function B_(e){const t=St(e),n=Co(e),o=e.ownerDocument.body,s=nt(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=nt(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+Ea(e);const i=-n.scrollTop;return _t(o).direction==="rtl"&&(l+=nt(t.clientWidth,o.clientWidth)-s),{width:s,height:a,x:l,y:i}}function U_(e,t){const n=ot(e),o=St(e),s=n.visualViewport;let a=o.clientWidth,l=o.clientHeight,i=0,d=0;if(s){a=s.width,l=s.height;const f=ba();(!f||f&&t==="fixed")&&(i=s.offsetLeft,d=s.offsetTop)}return{width:a,height:l,x:i,y:d}}const z_=new Set(["absolute","fixed"]);function H_(e,t){const n=lr(e,!0,t==="fixed"),o=n.top+e.clientTop,s=n.left+e.clientLeft,a=Rt(e)?Tr(e):At(1),l=e.clientWidth*a.x,i=e.clientHeight*a.y,d=s*a.x,f=o*a.y;return{width:l,height:i,x:d,y:f}}function Oi(e,t,n){let o;if(t==="viewport")o=U_(e,n);else if(t==="document")o=B_(St(e));else if(gt(t))o=H_(t,n);else{const s=Sd(e);o={x:t.x-s.x,y:t.y-s.y,width:t.width,height:t.height}}return uo(o)}function Id(e,t){const n=Yt(e);return n===t||!gt(n)||Sr(n)?!1:_t(n).position==="fixed"||Id(n,t)}function W_(e,t){const n=t.get(e);if(n)return n;let o=ln(e,[],!1).filter(i=>gt(i)&&Lr(i)!=="body"),s=null;const a=_t(e).position==="fixed";let l=a?Yt(e):e;for(;gt(l)&&!Sr(l);){const i=_t(l),d=ya(l);!d&&i.position==="fixed"&&(s=null),(a?!d&&!s:!d&&i.position==="static"&&!!s&&z_.has(s.position)||_n(l)&&!d&&Id(e,l))?o=o.filter(m=>m!==l):s=i,l=Yt(l)}return t.set(e,o),o}function q_(e){let{element:t,boundary:n,rootBoundary:o,strategy:s}=e;const l=[...n==="clippingAncestors"?So(t)?[]:W_(t,this._c):[].concat(n),o],i=l[0],d=l.reduce((f,m)=>{const h=Oi(t,m,s);return f.top=nt(h.top,f.top),f.right=Gt(h.right,f.right),f.bottom=Gt(h.bottom,f.bottom),f.left=nt(h.left,f.left),f}
vendor: 9,934 bytes, line 3
3,Oi(t,i,s));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function G_(e){const{width:t,height:n}=Pd(e);return{width:t,height:n}}function Y_(e,t,n){const o=Rt(t),s=St(t),a=n==="fixed",l=lr(e,!0,a,t);let i={scrollLeft:0,scrollTop:0};const d=At(0);function f(){d.x=Ea(s)}if(o||!o&&!a)if((Lr(t)!=="body"||_n(s))&&(i=Co(t)),o){const p=lr(t,!0,a,t);d.x=p.x+t.clientLeft,d.y=p.y+t.clientTop}else s&&f();a&&!o&&s&&f();const m=s&&!o&&!a?Cd(s,i):At(0),h=l.left+i.scrollLeft-d.x-m.x,v=l.top+i.scrollTop-d.y-m.y;return{x:h,y:v,width:l.width,height:l.height}}function ts(e){return _t(e).position==="static"}function ki(e,t){if(!Rt(e)||_t(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return St(e)===n&&(n=n.ownerDocument.body),n}function Nd(e,t){const n=ot(e);if(So(e))return n;if(!Rt(e)){let s=Yt(e);for(;s&&!Sr(s);){if(gt(s)&&!ts(s))return s;s=Yt(s)}return n}let o=ki(e,t);for(;o&&C_(o)&&ts(o);)o=ki(o,t);return o&&Sr(o)&&ts(o)&&!ya(o)?n:o||D_(e)||n}const K_=async function(e){const t=this.getOffsetParent||Nd,n=this.getDimensions,o=await n(e.floating);return{reference:Y_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function X_(e){return _t(e).direction==="rtl"}const J_={convertOffsetParentRelativeRectToViewportRelativeRect:F_,getDocumentElement:St,getClippingRect:q_,getOffsetParent:Nd,getElementRects:K_,getClientRects:V_,getDimensions:G_,getScale:Tr,isElement:gt,isRTL:X_};function Od(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Z_(e,t){let n=null,o;const s=St(e);function a(){var i;clearTimeout(o),(i=n)==null||i.disconnect(),n=null}function l(i,d){i===void 0&&(i=!1),d===void 0&&(d=1),a();const f=e.getBoundingClientRect(),{left:m,top:h,width:v,height:p}=f;if(i||t(),!v||!p)return;const b=Cn(h),x=Cn(s.clientWidth-(m+v)),y=Cn(s.clientHeight-(h+p)),E=Cn(m),R={rootMargin:-b+"px "+-x+"px "+-y+"px "+-E+"px",threshold:nt(0,Gt(1,d))||1};let T=!0;function j(S){const P=S[0].intersectionRatio;if(P!==d){if(!T)return l();P?l(!1,P):o=setTimeout(()=>{l(!1,1e-7)},1e3)}P===1&&!Od(f,e.getBoundingClientRect())&&l(),T=!1}try{n=new IntersectionObserver(j,{...R,root:s.ownerDocument})}catch{n=new IntersectionObserver(j,R)}n.observe(e)}return l(!0),a}function Q_(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:d=!1}=o,f=wa(e),m=s||a?[...f?ln(f):[],...ln(t)]:[];m.forEach(E=>{s&&E.addEventListener("scroll",n,{passive:!0}),a&&E.addEventListener("resize",n)});const h=f&&i?Z_(f,n):null;let v=-1,p=null;l&&(p=new ResizeObserver(E=>{let[A]=E;A&&A.target===f&&p&&(p.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var R;(R=p)==null||R.observe(t)})),n()}),f&&!d&&p.observe(f),p.observe(t));let b,x=d?lr(e):null;d&&y();function y(){const E=lr(e);x&&!Od(x,E)&&n(),x=E,b=requestAnimationFrame(y)}return n(),()=>{var E;m.forEach(A=>{s&&A.removeEventListener("scroll",n),a&&A.removeEventListener("resize",n)}),h==null||h(),(E=p)==null||E.disconnect(),p=null,d&&cancelAnimationFrame(b)}}const ex=j_,tx=T_,rx=b_,nx=R_,ox=w_,Di=y_,sx=A_,ax=(e,t,n)=>{const o=new Map,s={platform:J_,...n},a={...s.platform,_c:o};return v_(e,t,{...s,platform:a})};var ix=typeof document<"u",lx=function(){},Xn=ix?c.useLayoutEffect:lx;function fo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,o,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;o--!==0;)if(!fo(e[o],t[o]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(t,s[o]))return!1;for(o=n;o--!==0;){const a=s[o];if(!(a==="_owner"&&e.$$typeof)&&!fo(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function kd(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Li(e,t){const n=kd(e);return Math.round(t*n)/n}function rs(e){const t=c.useRef(e);return Xn(()=>{t.current=e}),t}function cx(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:s,elements:{reference:a,floating:l}={},transform:i=!0,whileElementsMounted:d,open:f}=e,[m,h]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,p]=c.useState(o);fo(v,o)||p(o);const[b,x]=c.useState(null),[y,E]=c.useState(null),A=c.useCallback(U=>{U!==S.current&&(S.current=U,x(U))},[]),R=c.useCallback(U=>{U!==P.current&&(P.current=U,E(U))},[]),T=a||b,j=l||y,S=c.useRef(null),P=c.useRef(null),C=c.useRef(m),D=d!=null,O=rs(d),$=rs(s),I=rs(f),H=c.useCallback(()=>{if(!S.current||!P.current)return;const U={placement:t,strategy:n,middleware:v};$.current&&(U.platform=$.current),ax(S.current,P.current,U).then(N=>{const J={...N,isPositioned:I.current!==!1};k.current&&!fo(C.current,J)&&(C.current=J,aa.flushSync(()=>{h(J)}))})},[v,t,n,$,I]);Xn(()=>{f===!1&&C.current.isPositioned&&(C.current.isPositioned=!1,h(U=>({...U,isPositioned:!1})))},[f]);const k=c.useRef(!1);Xn(()=>(k.current=!0,()=>{k.current=!1}),[]),Xn(()=>{if(T&&(S.current=T),j&&(P.current=j),T&&j){if(O.current)return O.current(T,j,H);H()}},[T,j,H,O,D]);const K=c.useMemo(()=>({reference:S,floating:P,setReference:A,setFloating:R}),[A,R]),W=c.useMemo(()=>({reference:T,floating:j}),[T,j]),B=c.useMemo(()=>{const U={position:n,left:0,top:0};if(!W.floating)return U;const N=Li(W.floating,m.x),J=Li(W.floating,m.y);return i?{...U,transform:"translate("+N+"px, "+J+"px)",...kd(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:N,top:J}},[n,i,W.floating,m.x,m.y]);return c.useMemo(()=>({...m,update:H,refs:K,elements:W,floatingStyles:B}),[m,H,K,W,B])}const dx=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:s}=typeof e=="function"?e(n):e;return o&&t(o)?o.current!=null?Di({element:o.current,padding:s}).fn(n):{}:o?Di({element:o,padding:s}).fn(n):{}}}},ux=(e,t)=>({...ex(e),options:[e,t]}),fx=(e,t)=>({...tx(e),options:[e,t]}),px=(e,t)=>({...sx(e),options:[e,t]}),mx=(e,t)=>({...rx(e),options:[e,t]}),hx=(e,t)=>({...nx(e),options:[e,t]}),gx=(e,t)=>({...ox(e),options:[e,t]}),_x=(e,t)=>({...dx(e),options:[e,t]});var xx="Arrow",Dd=c.forwardRef((e,t)=>{const{children:n,width:o=10,height:s=5,...a}=e;return r.jsx(xe.svg,{...a,ref:t,width:o,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:r.jsx("polygon",{points:"0,0 30,0 15,10"})})});Dd.displayName=xx;var vx=Dd;function yx(e){const[t,n]=c.useState(void 0);return kt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const o=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let l,i;if("borderBoxSize"in a){const d=a.borderBoxSize,f=Array.isArray(d)?d[0]:d;l=f.inlineSize,i=f.blockSize}else l=e.offsetWidth,i=e.offsetHeight;n({width:l,height:i})});return o.observe(e,{box:"border-box"}),()=>o.unobserve(e)}else n(void 0)},[e]),t}var ja="Popper",[Ld,Io]=Xt(ja),[bx,Md]=Ld(ja),$d=e=>{const{__scopePopper:t,children:n}=e,[o,s]=c.useState(null);return r.jsx(bx,{scope:t,anchor:o,onAnchorChange:s,children:n})};$d.displayName=ja;var Fd="PopperAnchor",Vd=c.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:o,...s}=e,a=Md(Fd,n),l=c.useRef(null),i=Te(t,l);return c.useEffect(()=>{a.onAnchorChange((o==null?void 0:o.current)||l.current)}),o?null:r.jsx(xe.div,{...s,ref:i})});Vd.displayName=Fd;var Ta="PopperContent",[wx,Ex]=Ld(Ta),Bd=c.forwardRef((e,t)=>{var re,ye,_e,me,Ae,Re;const{__scopePopper:n,side:o="bottom",sideOffset:s=0,align:a="center",alignOffset:l=0,arrowPadding:i=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:m=0,sticky:h="partial",hideWhenDetached:v=!1,updatePositionStrategy:p="optimized",onPlaced:b,...x}=e,y=Md(Ta,n),[E,A]=c.useState(null),R=Te(t,V=>A(V)),[T,j]=c.useState(null),S=yx(T),P=(S==null?void 0:S.width)??0,C=(S==null?void 0:S.height)??0,D=o+(a!=="center"?"-"+a:""),O=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},$=Array.isArray(f)?f:[f],I=$.length>0,H={padding:O,boundary:$.filter(Tx),altBoundary:I},{refs:k,floatingStyles:K,placement:W,isPositioned:B,middlewareData:U}=cx({strategy:"fixed",placement:D,whileElementsMounted:(...V)=>Q_(...V,{animationFrame:p==="always"}),elements:{reference:y.anchor},middleware:[ux({mainAxis:s+C,alignmentAxis:l}),d&&fx({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?px():void 0,...H}),d&&mx({...H}),hx({...H,apply:({elements:V,rects:ce,availableWidth:he,availableHeight:Ce})=>{const{width:Ie,height:se}=ce.reference,pe=V.floating.style;pe.setProperty("--radix-popper-available-width",`${he}px`),pe.setProperty("--radix-popper-available-height",`${Ce}px`),pe.setProperty("--radix-popper-anchor-width",`${Ie}px`),pe.setProperty("--radix-popper-anchor-height",`${se}px`)}}),T&&_x({element:T,padding:i}),Ax({arrowWidth:P,arrowHeight:C}),v&&gx({strategy:"referenceHidden",...H})]}),[N,J]=Hd(W),Z=Ze(b);kt(()=>{B&&(Z==null||Z())},[B,Z]);const ee=(re=U.arrow)==null?void 0:re.x,G=(ye=U.arrow)==null?void 0:ye.y,ae=((_e=U.arrow)==null?void 0:_e.centerOffset)!==0,[te,fe]=c.useState();return kt(()=>{E&&fe(window.getComputedStyle(E).zIndex)},[E]),r.jsx("div",{ref:k.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:B?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(me=U.transformOrigin)==null?void 0:me.x,(Ae=U.transformOrigin)==null?void 0:Ae.y].join(" "),...((Re=U.hide)==null?void 0:Re.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:r.jsx(wx,{scope:n,placedSide:N,onArrowChange:j,arrowX:ee,arrowY:G,shouldHideArrow:ae,children:r.jsx(xe.div,{"data-side":N,"data-align":J,...x,ref:R,style:{...x.style,animation:B?void 0:"none"}})})})});Bd.displayName=Ta;var Ud="PopperArrow",jx={top:"bottom",right:"left",bottom:"top",left:"r
3ight"},zd=c.forwardRef(function(t,n){const{__scopePopper:o,...s}=t,a=Ex(Ud,o),l=jx[a.placedSide];return r.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:r.jsx(vx,{...s,ref:n,style:{...s.style,display:"block"}})})});zd.displayName=Ud;function Tx(e){return e!==null}var Ax=e=>({name:"transformOrigin",options:e,fn(t){var y,E,A;const{placement:n,rects:o,middlewareData:s}=t,l=((y=s.arrow)==null?void 0:y.centerOffset)!==0,i=l?0:e.arrowWidth,d=l?0:e.arrowHeight,[f,m]=Hd(n),h={start:"0%",center:"50%",end:"100%"}[m],v=(((E=s.arrow)==null?void 0:E.x)??0)+i/2,p=(((A=s.arrow)==null?void 0:A.y)??0)+d/2;let b="",x="";return f==="bottom"?(b=l?h:`${v}px`,x=`${-d}px`):f==="top"?(b=l?h:`${v}px`,x=`${o.floating.height+d}px`):f==="right"?(b=`${-d}px`,x=l?h:`${p}px`):f==="left"&&(b=`${o.floating.width+d}px`,x=l?h:`${p}px`),{data:{x:b,y:x}}}});function Hd(e){const[t,n="center"]=e.split("-");return[t,n]}var Aa=$d,Wd=Vd,qd=Bd,Gd=zd,[No,iS]=Xt("Tooltip",[Io]),Oo=Io(),Yd="TooltipProvider",Rx=700,qs="tooltip.open",[Px,Ra]=No(Yd),Kd=e=>{const{__scopeTooltip:t,delayDuration:n=Rx,skipDelayDuration:o=300,disableHoverableContent:s=!1,children:a}=e,l=c.useRef(!0),i=c.useRef(!1),d=c.useRef(0);return c.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),r.jsx(Px,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:c.useCallback(()=>{window.clearTimeout(d.current),l.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>l.current=!0,o)},[o]),isPointerInTransitRef:i,onPointerInTransitChange:c.useCallback(f=>{i.current=f},[]),disableHoverableContent:s,children:a})};Kd.displayName=Yd;var cn="Tooltip",[Sx,ko]=No(cn),Xd=e=>{const{__scopeTooltip:t,children:n,open:o,defaultOpen:s,onOpenChange:a,disableHoverableContent:l,delayDuration:i}=e,d=Ra(cn,e.__scopeTooltip),f=Oo(t),[m,h]=c.useState(null),v=Ot(),p=c.useRef(0),b=l??d.disableHoverableContent,x=i??d.delayDuration,y=c.useRef(!1),[E,A]=Or({prop:o,defaultProp:s??!1,onChange:P=>{P?(d.onOpen(),document.dispatchEvent(new CustomEvent(qs))):d.onClose(),a==null||a(P)},caller:cn}),R=c.useMemo(()=>E?y.current?"delayed-open":"instant-open":"closed",[E]),T=c.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y.current=!1,A(!0)},[A]),j=c.useCallback(()=>{window.clearTimeout(p.current),p.current=0,A(!1)},[A]),S=c.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{y.current=!0,A(!0),p.current=0},x)},[x,A]);return c.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),r.jsx(Aa,{...f,children:r.jsx(Sx,{scope:t,contentId:v,open:E,stateAttribute:R,trigger:m,onTriggerChange:h,onTriggerEnter:c.useCallback(()=>{d.isOpenDelayedRef.current?S():T()},[d.isOpenDelayedRef,S,T]),onTriggerLeave:c.useCallback(()=>{b?j():(window.clearTimeout(p.current),p.current=0)},[j,b]),onOpen:T,onClose:j,disableHoverableContent:b,children:n})})};Xd.displayName=cn;var Gs="TooltipTrigger",Jd=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,s=ko(Gs,n),a=Ra(Gs,n),l=Oo(n),i=c.useRef(null),d=Te(t,i,s.onTriggerChange),f=c.useRef(!1),m=c.useRef(!1),h=c.useCallback(()=>f.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),r.jsx(Wd,{asChild:!0,...l,children:r.jsx(xe.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...o,ref:d,onPointerMove:X(e.onPointerMove,v=>{v.pointerType!=="touch"&&!m.current&&!a.isPointerInTransitRef.current&&(s.onTriggerEnter(),m.current=!0)}),onPointerLeave:X(e.onPointerLeave,()=>{s.onTriggerLeave(),m.current=!1}),onPointerDown:X(e.onPointerDown,()=>{s.open&&s.onClose(),f.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:X(e.onFocus,()=>{f.current||s.onOpen()}),onBlur:X(e.onBlur,s.onClose),onClick:X(e.onClick,s.onClose)})})});Jd.displayName=Gs;var Cx="TooltipPortal",[lS,Ix]=No(Cx,{forceMount:void 0}),Cr="TooltipContent",Zd=c.forwardRef((e,t)=>
vendor: 4,656 bytes, line 3
3{const n=Ix(Cr,e.__scopeTooltip),{forceMount:o=n.forceMount,side:s="top",...a}=e,l=ko(Cr,e.__scopeTooltip);return r.jsx(Pt,{present:o||l.open,children:l.disableHoverableContent?r.jsx(Qd,{side:s,...a,ref:t}):r.jsx(Nx,{side:s,...a,ref:t})})}),Nx=c.forwardRef((e,t)=>{const n=ko(Cr,e.__scopeTooltip),o=Ra(Cr,e.__scopeTooltip),s=c.useRef(null),a=Te(t,s),[l,i]=c.useState(null),{trigger:d,onClose:f}=n,m=s.current,{onPointerInTransitChange:h}=o,v=c.useCallback(()=>{i(null),h(!1)},[h]),p=c.useCallback((b,x)=>{const y=b.currentTarget,E={x:b.clientX,y:b.clientY},A=Mx(E,y.getBoundingClientRect()),R=$x(E,A),T=Fx(x.getBoundingClientRect()),j=Bx([...R,...T]);i(j),h(!0)},[h]);return c.useEffect(()=>()=>v(),[v]),c.useEffect(()=>{if(d&&m){const b=y=>p(y,m),x=y=>p(y,d);return d.addEventListener("pointerleave",b),m.addEventListener("pointerleave",x),()=>{d.removeEventListener("pointerleave",b),m.removeEventListener("pointerleave",x)}}},[d,m,p,v]),c.useEffect(()=>{if(l){const b=x=>{const y=x.target,E={x:x.clientX,y:x.clientY},A=(d==null?void 0:d.contains(y))||(m==null?void 0:m.contains(y)),R=!Vx(E,l);A?v():R&&(v(),f())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[d,m,l,f,v]),r.jsx(Qd,{...e,ref:a})}),[Ox,kx]=No(cn,{isInside:!1}),Dx=Dh("TooltipContent"),Qd=c.forwardRef((e,t)=>{const{__scopeTooltip:n,children:o,"aria-label":s,onEscapeKeyDown:a,onPointerDownOutside:l,...i}=e,d=ko(Cr,n),f=Oo(n),{onClose:m}=d;return c.useEffect(()=>(document.addEventListener(qs,m),()=>document.removeEventListener(qs,m)),[m]),c.useEffect(()=>{if(d.trigger){const h=v=>{const p=v.target;p!=null&&p.contains(d.trigger)&&m()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[d.trigger,m]),r.jsx(hn,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:h=>h.preventDefault(),onDismiss:m,children:r.jsxs(qd,{"data-state":d.stateAttribute,...f,...i,ref:t,style:{...i.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[r.jsx(Dx,{children:o}),r.jsx(Ox,{scope:n,isInside:!0,children:r.jsx(og,{id:d.contentId,role:"tooltip",children:s||o})})]})})});Zd.displayName=Cr;var eu="TooltipArrow",Lx=c.forwardRef((e,t)=>{const{__scopeTooltip:n,...o}=e,s=Oo(n);return kx(eu,n).isInside?null:r.jsx(Gd,{...s,...o,ref:t})});Lx.displayName=eu;function Mx(e,t){const n=Math.abs(t.top-e.y),o=Math.abs(t.bottom-e.y),s=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,o,s,a)){case a:return"left";case s:return"right";case n:return"top";case o:return"bottom";default:throw new Error("unreachable")}}function $x(e,t,n=5){const o=[];switch(t){case"top":o.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":o.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":o.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":o.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return o}function Fx(e){const{top:t,right:n,bottom:o,left:s}=e;return[{x:s,y:t},{x:n,y:t},{x:n,y:o},{x:s,y:o}]}function Vx(e,t){const{x:n,y:o}=e;let s=!1;for(let a=0,l=t.length-1;a<t.length;l=a++){const i=t[a],d=t[l],f=i.x,m=i.y,h=d.x,v=d.y;m>o!=v>o&&n<(h-f)*(o-m)/(v-m)+f&&(s=!s)}return s}function Bx(e){const t=e.slice();return t.sort((n,o)=>n.x<o.x?-1:n.x>o.x?1:n.y<o.y?-1:n.y>o.y?1:0),Ux(t)}function Ux(e){if(e.length<=1)return e.slice();const t=[];for(let o=0;o<e.length;o++){const s=e[o];for(;t.length>=2;){const a=t[t.length-1],l=t[t.length-2];if((a.x-l.x)*(s.y-l.y)>=(a.y-l.y)*(s.x-l.x))t.pop();else break}t.push(s)}t.pop();const n=[];for(let o=e.length-1;o>=0;o--){const s=e[o];for(;n.length>=2;){const a=n[n.length-1],l=n[n.length-2];if((a.x-l.x)*(s.y-l.y)>=(a.y-l.y)*(s.x-l.x))n.pop();else break}n.push(s)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var zx=Kd,Hx=Xd,Wx=Jd,tu=Zd;const qx=zx,cS=Hx,dS=Wx,Gx=c.forwardRef(({className:e,sideOffset:t=4,...n},o)=>r.jsx(tu,{ref:o,sideOffset:t,className:ve("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
3de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));Gx.displayName=tu.displayName;const po="impersonating_as",Yx=25e3,Kx=[2e3,6e3,12e3];function Ys(){try{localStorage.removeItem(po)}catch{}try{sessionStorage.removeItem(po)}catch{}}function Mi(){try{const e=sessionStorage.getItem(po)||localStorage.getItem(po);return e?JSON.parse(e):null}catch{return null}}function Xx(e){const t=String((e==null?void 0:e.message)||e||"").toLowerCase();return t.includes("missing sub claim")||t.includes("bad_jwt")||t.includes("invalid jwt")||t.includes("jwt expired")||t.includes("refresh token not found")||t.includes("invalid refresh token")||t.includes("session_not_found")}function Jx(e){const t=String((e==null?void 0:e.message)||e||"").toLowerCase();return t.includes("refresh token not found")||t.includes("invalid refresh token")||t.includes("session_not_found")}async function Zx(e,t){try{await Promise.race([z.auth.signOut({scope:"local"}),new Promise(n=>setTimeout(n,600))])}catch{}try{for(const n of[window.localStorage,window.sessionStorage])for(let o=n.length-1;o>=0;o--){const s=n.key(o);s&&/^sb-[^-]+-(auth-token|code-verifier|provider-token|refresh-token)/.test(s)&&n.removeItem(s)}}catch{}Ys(),qt(new Error(`Auth session reset: ${e}`),{source:"frontend",component:"useAuth.forceLocalSessionReset",severity:"warning",details:t})}const ru=c.createContext({user:null,session:null,loading:!0,rolesLoading:!1,rolesError:null,isAdmin:!1,isCaseManager:!1,isAffiliate:!1,isAffiliateStaff:!1,isBroker:!1,isFunder:!1,roles:[],refreshRoles:async()=>{}}),Qx=({children:e})=>{const[t,n]=c.useState(null),[o,s]=c.useState(null),[a,l]=c.useState(!0),[i,d]=c.useState(!1),[f,m]=c.useState(null),[h,v]=c.useState([]),p=c.useRef(0),b=c.useRef(null),x=()=>{b.current!==null&&typeof window<"u"&&(window.clearTimeout(b.current),b.current=null)},y=()=>{s(null),n(null),v([]),d(!1),m(null),l(!1)},E=async(T,j=0)=>{const S=++p.current;x(),d(!0),m(null);const P=Mi(),C=typeof(P==null?void 0:P.target_role)=="string"?P.target_role:null;try{const D=await Promise.race([z.from("user_roles").select("role").eq("user_id",T),new Promise((I,H)=>setTimeout(()=>H(new Error("Timed out fetching user roles")),Yx))]);if(S!==p.current)return;const{data:O,error:$}=D;if($)throw $;v((O==null?void 0:O.map(I=>I.role))??[]),m(null),console.info("[useAuth] Roles resolved",{userId:T,roleCount:(O==null?void 0:O.length)??0,impersonationTargetRole:C,impersonationTab:!!P})}catch(D){if(S!==p.current)return;console.warn("[useAuth] Failed to fetch roles",D);const O=D instanceof Error?D.message:"Unable to load account access.",$=Xx(D),I=Kx[j];if($){if(!Jx(D)&&j===0){let H=!1;try{const{data:k,error:K}=await z.auth.refreshSession();H=!!(k!=null&&k.session)&&!K}catch{H=!1}if(H){if(S!==p.current)return;E(T,j+1);return}}await Zx("role_fetch_auth_session_broken",{userId:T,attempt:j,errorMessage:O,impersonationTargetRole:C}),S===p.current&&(p.current+=1,y());return}v(C?[C]:[]),m(O),I||qt(D,{source:"frontend",component:"useAuth.fetchRoles",severity:"warning",details:{userId:T,attempt:j,willRetry:!1,retryDelayMs:null,impersonationTargetRole:C,impersonationTab:!!P}}),I&&typeof window<"u"&&(b.current=window.setTimeout(()=>{S===p.current&&E(T,j+1)},I))}finally{S===p.current&&d(!1)}},A=async()=>{if(!t){x(),p.current+=1,v([]),d(!1),m(null);return}await E(t.id)};c.useEffect(()=>{let T=!0;z.auth.getSession().then(({data:{session:P}})=>{T&&(s(P),n((P==null?void 0:P.user)??null),l(!1),P!=null&&P.user?E(P.user.id):(x(),p.current+=1,v([]),d(!1),m(null)))}).catch(P=>{console.warn("[useAuth] Failed to restore session",P),T&&(x(),p.current+=1,y(),Ys(),qt(P,{source:"frontend",component:"useAuth.getSession",severity:"warning"}))});const j={current:null},{data:{subscription:S}}=z.auth.onAuthStateChange((P,C)=>{var $;if(!T)return;const D=(($=C==null?void 0:C.user)==null?void 0:$.id)??null;if(D===j.current&&(P==="TOKEN_REFRESHED"||P==="USER_UPDATED"||P==="SIGNED_IN"||P==="INITIAL_SESSION")){s(I=>(I==null?void 0:I.access_token)===(C==null?void 0:C.access_token)?I:C);return}j.current=D,s(C),n((C==null?void 0:C.user)??null),l(!1),console.info("[useAuth] Auth state change",{event:P,hasSession:!!C,userId:D,impersonationTab:!!Mi()}),C!=null&&C.user?(E(C.user.id),g(()=>import("./funnel-analytics-DnuCiyv3.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])).then(I=>I.linkSessionToUser(C.user.id)).catch(()=>{})):(x(),p.current+=1,v([]),d(!1),m(null),Ys())});return()=>{T=!1,x(),S.unsubscribe()}},[]);const R=c.useMemo(()=>({user:t,session:o,loading:a,rolesLoading:i,rolesError:f,isAdmin:h.includes("admin"),isCaseManager:h.includes("case_manager"),isAffiliate:h.includes("affiliate")||h.includes("affiliate_staff"),isAffiliateStaff:h.includes("affiliate_staff"),isBroker:h.includes("broker"),isFunder:h.includes("funder"),roles:h,refreshRoles:A}),[t,o,a,i,f,h]);return r.jsx(ru.Provider,{value:R,children:e})},xt=()=>c.useContext(ru),ev=_(()=>g(()=>import("./ClaimCommunicationsDialog-BrG_bf6Q.js"),__vite__mapDeps([12,4,5,13,9,1,2,14,15,16,17,18,19,20,21,22,23,24,3,6,7,8,10,11]))),nu=c.createContext(null);function tv({children:e}){const{user:t,roles:n}=xt(),[o,s]=c.useState(null),[a,l]=c.useState({}),[i,d]=c.useState(0),[f,m]=c.useState(0),h=c.useRef(!1),v=c.useRef(0),p=c.useRef(null),b=15e3,x=c.useCallback(async()=>
3{if(!(!t||h.current)){h.current=!0,v.current=Date.now();try{const{data:j,error:S}=await z.from("notifications").select("id, type, read, entity_type, entity_id").eq("user_id",t.id).eq("read",!1).limit(500);if(S)return;const P=j||[];d(P.length);const C={};let D=0;for(const O of P)(O.type==="new_message"||O.type==="message")&&D++,O.entity_type==="claim"&&O.entity_id&&(O.type==="new_message"||O.type==="message")&&(C[O.entity_id]=(C[O.entity_id]||0)+1);l(C),m(D)}finally{h.current=!1}}},[t]),y=c.useCallback(async()=>{const j=Date.now()-v.current;if(j>=b){await x();return}p.current||(p.current=setTimeout(()=>{p.current=null,x()},b-j))},[x]);c.useEffect(()=>{if(!t){l({}),d(0),m(0);return}x();const j=z.channel(`msg-unread-${t.id}`).on("postgres_changes",{event:"*",schema:"public",table:"notifications",filter:`user_id=eq.${t.id}`},()=>void y()).subscribe();return()=>{p.current&&(clearTimeout(p.current),p.current=null),z.removeChannel(j)}},[t,x,y]);const E=c.useCallback(j=>{s(j)},[]),A=c.useCallback(()=>s(null),[]),R=c.useMemo(()=>({openClaimChat:E,closeClaimChat:A,unreadByLead:a,unreadNotifications:i,unreadMessages:f,refresh:y}),[E,A,a,i,f,y]),T=c.useMemo(()=>n!=null&&n.includes("admin")?"admin":n!=null&&n.includes("case_manager")?"case_manager":n!=null&&n.includes("affiliate")?"partner":n!=null&&n.includes("broker")?"broker":n!=null&&n.includes("funder")?"funder":(n!=null&&n.includes("client"),"client"),[n]);return r.jsxs(nu.Provider,{value:R,children:[e,o&&r.jsx(c.Suspense,{fallback:null,children:r.jsx(ev,{open:!!o,onOpenChange:j=>{j||A()},leadId:o.leadId,viewerRole:o.viewerRole||T,initialCompanyName:o.companyName||null,initialCaseNumber:o.caseNumber||null})})]})}function rv(){const e=c.useContext(nu);return e||{openClaimChat:()=>{},closeClaimChat:()=>{},unreadByLead:{},unreadNotifications:0,unreadMessages:0,refresh:async()=>{}}}function uS(e){const{unreadByLead:t,unreadMessages:n}=rv();return e?t[e]||0:n}const q=e=>e?e.trim().length>0:!1,ou=e=>{var s,a,l;const t=((s=[e.hero_bg_color].find(q))==null?void 0:s.trim())||"224 55% 14%",n=((a=[e.hero_gradient_via_color,e.nav_bg_color,e.hero_bg_color].find(q))==null?void 0:a.trim())||t,o=((l=[e.hero_gradient_to_color,e.primary_color,e.nav_bg_color,e.hero_gradient_via_color,e.hero_bg_color].find(q))==null?void 0:l.trim())||n;return{from:t,via:n,to:o}},su=(e,t="to bottom")=>{const{from:n,via:o,to:s}=ou(e);return`linear-gradient(${t}, hsl(${n}) 0%, hsl(${o}) 50%, hsl(${s}) 100%)`},nv=e=>{var s,a,l;const t=((s=[e.section_overlay_from_color].find(q))==null?void 0:s.trim())||"222 50% 8%",n=((a=[e.section_overlay_via_color,e.section_overlay_from_color].find(q))==null?void 0:a.trim())||"222 45% 12%",o=((l=[e.section_overlay_to_color,e.section_overlay_via_color,e.section_overlay_from_color].find(q))==null?void 0:l.trim())||"222 40% 16%";return{from:t,via:n,to:o}},fS=(e,t="to bottom")=>{const{from:n,via:o,to:s}=nv(e);return`linear-gradient(${t}, hsl(${n} / 0.97) 0%, hsl(${o} / 0.94) 50%, hsl(${s} / 0.90) 100%)`},$i="accent_color, accent_foreground_color, active, address_line1, address_line2, agreement_omit_section_f_a, agreement_omit_section_f_e, agreement_omit_section_h, agreement_section_f_a_limited, allow_applications, allow_broker_signup, allow_client_signup, allow_partner_signup, applications_disabled_message, applications_disabled_mode, auth_hero_accent_color, auth_hero_fg_color, booking_calendar_url, broker_signup_disabled_message, broker_signup_disabled_mode, city, client_signup_disabled_message, client_signup_disabled_mode, company_name, company_short_name, copyright_text, corporate_affiliate_id, country, created_at, data_source, default_engagement_fee_pct, email_from_address, email_from_name, email_sender_verified_at, email_sending_mode, favicon_url, features_ieepa_crm_enabled, footer_badge_bg_color, footer_badge_border_color, footer_badge_fg_color, footer_badge_icon_bg_color, footer_badge_icon_color, footer_bg_from, footer_bg_image_url, footer_bg_overlay_opacity, footer_bg_to, footer_contact_card_bg_color, footer_contact_card_border_color, footer_contact_card_hover_bg_color, footer_contact_icon_bg_color, footer_contact_icon_border_color, footer_contact_icon_color, footer_contact_label_color, footer_disclaimer, footer_divider_color, footer_fg_color, footer_heading_color, footer_legal_text_color, footer_link_color, footer_link_hover_color, footer_logo_choice, footer_logo_url, footer_max_width_px, footer_muted_fg_color, footer_use_hero_bg, gold_color, gold_foreground_color, header_logo_scrolled_choice, header_logo_transparent_choice, header_max_width_px, hero_accent_color, hero_bg_color, hero_card_icon_bg_color, hero_card_icon_border_color, hero_card_icon_color, hero_fg_color, hero_gradient_to_color, hero_gradient_via_color, hero_muted_fg_color, hero_underline_color, hiring_manager_ui_enabled, hm_overrides_enabled, id, internal_icon_url, internal_identifier, internal_logo_url, is_default, login_dropdown_tile_hover_bg_color, login_dropdown_tile_hover_fg_color, login_dropdown_tile_icon_bg_color, login_dropdown_tile_icon_border_color, login_dropdown_tile_icon_color, logo_dark_url, logo_light_url, logo_margin_bottom_scrolled_px, logo_margin_bottom_transparent_px, logo_margin_top_scrolled_px, logo_margin_top_transparent_px, logo_min_width_footer_px, logo_min_width_header_px, marketing_hero_eyebrow, marketing_hero_headline, marketing_hero_subheadline, marketing_primary_cta_label, nav_bg_color, nav_fg_color, nav_fg_color_scrolled, nav_muted_fg_color, nav_muted_fg_color_scrolled, og_image_url, partner_signup_disabled_message, partner_signup_disabled_mode, partner_signup_referral_only, primary_color, primary_contact_email, primary_contact_name, primary_contact_phone, primary_email, primary_foreground_color, primary_phone, secondary_color, secondary_contact_email, secondary_contact_name, secondary_contact_phone, secondary_foreground_color, section_heading_color, section_overlay_card_bg_color, section_overlay_card_border_color, section_overlay_card_hover_bg_color, section_overlay_fg_color, section_overlay_from_color, section_overlay_muted_fg_color, section_overlay_to_color, section_overlay_via_color, section_pretitle_color, show_powered_by, slug, social_facebook, social_linkedin, social_twitter, state, support_email, tagline, tenant_revision, trustbar_badge_bg_color, trustbar_badge_border_color, trustbar_badge_fg_color, trustbar_bg_color, trustbar_bg_via_color, trustbar_bg_to_color, trustbar_icon_color, updated_at, use_booking_link_for_phone, use_tra_branding, website_url, zip_code",au={id:"",slug:"tariff-refund-agency",internal_identifier:null,is_default:!0,company_name:"TRA Solutions, LLC",company_
3short_name:"Tariff Refund Agency",tagline:"Helping U.S. importers recover overpaid tariff duties.",logo_light_url:"",logo_dark_url:"",favicon_url:"",primary_email:"[email protected]",support_email:"[email protected]",primary_phone:"(800) 727-7433",website_url:"https://tariffrefundagency.com",address_line1:"",address_line2:"",city:"Miami",state:"Florida",zip_code:"",country:"United States",primary_color:"224 66% 33%",secondary_color:"220 16% 92%",accent_color:"220 14% 92%",gold_color:"43 90% 55%",hero_bg_color:"224 55% 14%",hero_gradient_via_color:"224 60% 22%",hero_gradient_to_color:"224 66% 33%",nav_bg_color:"224 60% 22%",footer_bg_from:"222 38% 10%",footer_bg_to:"222 42% 7%",social_linkedin:"",social_twitter:"",social_facebook:"",footer_disclaimer:"Tariff Refund Agency is not CBP, U.S. Customs, or a government agency. We do not provide legal advice. Refund eligibility, amounts, and timing depend on individual circumstances. Past results do not guarantee future outcomes.",copyright_text:"",show_powered_by:!1,email_from_name:"",email_from_address:"",active:!0,allow_client_signup:!0,client_signup_disabled_mode:"coming_soon",client_signup_disabled_message:null,allow_partner_signup:!0,partner_signup_disabled_mode:"coming_soon",partner_signup_disabled_message:null,partner_signup_referral_only:!1,allow_broker_signup:!0,broker_signup_disabled_mode:"coming_soon",broker_signup_disabled_message:null,allow_applications:!0,applications_disabled_mode:"coming_soon",applications_disabled_message:null},iu=c.createContext({tenant:au,loading:!0,ready:!1,publicHostReady:!1,isDefault:!0,isWhitelabel:!1,isTraBranded:!0,refetch:()=>{}}),ov="tra_tenant_v3:",sv=5*60*1e3,Pa=e=>ov+e,pr=new Map;function In(e){try{const t=localStorage.getItem(Pa(e));if(!t)return null;const n=JSON.parse(t);if(n!=null&&n.data)return n}catch{}return null}function av(e,t){try{localStorage.setItem(Pa(e),JSON.stringify({data:t,timestamp:Date.now()}))}catch{}}const iv=["--primary","--primary-foreground","--secondary","--secondary-foreground","--accent","--accent-foreground","--gold","--gold-foreground","--navy","--navy-darkest","--navy-deep","--tenant-hero-bg","--tenant-hero-via","--tenant-hero-to","--tenant-hero-fg","--tenant-hero-muted-fg","--tenant-nav-bg","--tenant-nav-fg","--tenant-nav-muted-fg","--tenant-footer-from","--tenant-footer-to","--tenant-footer-fg","--tenant-footer-muted-fg","--tenant-hero-accent","--tenant-section-pretitle","--tenant-section-heading","--tenant-auth-hero-fg","--tenant-auth-hero-accent","--tenant-trustbar-bg","--tenant-trustbar-badge-bg","--tenant-trustbar-badge-border","--tenant-trustbar-badge-fg","--tenant-trustbar-icon","--tenant-hero-card-icon-bg","--tenant-hero-card-icon-border","--tenant-hero-card-icon","--tenant-login-tile-hover-bg","--tenant-login-tile-hover-fg","--tenant-login-tile-icon-bg","--tenant-login-tile-icon-border","--tenant-login-tile-icon","--tenant-footer-heading","--tenant-footer-link","--tenant-footer-link-hover","--tenant-footer-divider","--tenant-footer-badge-bg","--tenant-footer-badge-border","--tenant-footer-badge-fg","--tenant-footer-badge-icon-bg","--tenant-footer-badge-icon","--tenant-footer-card-bg","--tenant-footer-card-border","--tenant-footer-card-hover-bg","--tenant-footer-card-icon-bg","--tenant-footer-card-icon-border","--tenant-footer-card-icon","--tenant-footer-card-label","--tenant-footer-legal","--tenant-section-overlay-from","--tenant-section-overlay-via","--tenant-section-overlay-to","--tenant-section-overlay-fg","--tenant-section-overlay-muted-fg","--tenant-section-overlay-card-bg","--tenant-section-overlay-card-border","--tenant-section-overlay-card-hover-bg"];function ns(e){const t=document.documentElement;if(e.is_default||e.use_tra_branding){iv.forEach(a=>t.style.removeProperty(a));return}q(e.primary_color)&&t.style.setProperty("--primary",e.primary_color),q(e.secondary_color)&&t.style.setProperty("--secondary",e.secondary_color),q(e.accent_color)&&t.style.setProperty("--accent",e.accent_color),q(e.gold_color)&&t.style.setProperty("--gold",e.gold_color);const{from:n,via:o,to:s}=ou(e);n&&(t.style.setProperty("--navy-darkest",n),t.style.setProperty("--tenant-hero-bg",n)),o&&(t.style.setProperty("--navy-deep",o),t.style.setProperty("--tenant-hero-via",o)),s&&(t.style.setProperty("--navy",s),t.style.setProperty("--tenant-hero-to",s)),q(e.nav_bg_color)&&t.style.setProperty("--tenant-nav-bg",e.nav_bg_color),q(e.footer_bg_from)&&t.style.setProperty("--tenant-footer-from",e.footer_bg_from),q(e.footer_bg_to)&&t.style.setProperty("--tenant-footer-to",e.footer_bg_to),q(e.primary_foreground_color)&&t.style.setProperty("--primary-foreground",e.primary_foreground_color),q(e.secondary_foreground_color)&&t.style.setProperty("--secondary-foreground",e.secondary_foreground_color),q(e.accent_foreground_color)&&t.style.setProperty("--accent-foreground",e.accent_foreground_color),q(e.gold_foreground_color)&&t.style.setProperty("--gold-foreground",e.gold_foreground_color),q(e.hero_fg_color)&&t.style.setProperty("--tenant-hero-fg",e.hero_fg_color),q(e.hero_muted_fg_color)&&t.style.setProperty("--tenant-hero-muted-fg",e.hero_muted_fg_color),q(e.nav_fg_color)&&t.style.setProperty("--tenant-nav-fg",e.nav_fg_color),q(e.nav_muted_fg_color)&&t.style.setProperty("--tenant-nav-muted-fg",e.nav_muted_fg_color),q(e.footer_fg_color)&&t.style.setProperty("--tenant-footer-fg",e.footer_fg_color),q(e.footer_muted_fg_color)&&t.style.setProperty("--tenant-footer-muted-fg",e.footer_muted_fg_color),q(e.hero_accent_color)&&t.style.setProperty("--tenant-hero-accent",e.hero_accent_color),q(e.section_pretitle_color)&&t.style.setProperty("--tenant-section-pretitle",e.section_pretitle_color),q(e.section_heading_color)&&t.style.setProperty("--tenant-section-heading",e.section_heading_color),q(e.auth_hero_fg_color)&&t.style.setProperty("--tenant-auth-hero-fg",e.auth_hero_fg_color),q(e.auth_hero_accent_color)&&t.style.setProperty("--tenant-auth-hero-accent",e.auth_hero_accent_color),q(e.trustbar_bg_color)&&t.style.setProperty("--tenant-trustbar-bg",e.trustbar_bg_color),q(e.trustbar_badge_bg_color)&&t.style.setProperty("--tenant-trustbar-badge-bg",e.trustbar_badge_bg_color),q(e.trustbar_badge_border_color)&&t.style.setProperty("--tenant-trustbar-badge-border",e.trustbar_badge_border_color),q(e.trustbar_badge_fg_color)&&t.style.setProperty("--tenant-trustbar-badge-fg",e.trustbar_badge_fg_color),q(e.trustbar_icon_color)&&t.style.setProperty("--tenant-trustbar-icon",e.trustbar_icon_color),q(e.hero_card_icon_bg_color)&&t.style.setProperty("--tenant-hero-card-icon-bg",e.hero_card_icon_bg_color),q(e.hero_card_icon_border_color)&&t.style.setProperty("--tenant-hero-card-icon-border",e.hero_card_icon_border_color),q(e.hero_card_icon_color)&&t.style.setProperty("--tenant-hero-card-icon",e.hero_card_icon_color),q(e.login_dropdown_tile_hover_bg_color)&&t.style.setProperty("--tenant-login-tile-hover-bg",e.login_dropdown_tile_hover_bg_color),q(e.login_dropdown_tile_hover_fg_color)&&t.style.setProperty("--tenant-login-tile-hover-fg",e.login_dropdown_tile_hover_fg_color),q(e.login_dropdown_tile_icon_bg_color)&&t.style.setProperty("--tenant-login-tile-icon-bg",e.login_dropdown_tile_icon_bg_color),q(e.login_dropdown_tile_icon_border_color)&&t.style.setProperty("--tenant-login-tile-icon-border",e.login_dropdown_tile_icon_border_color),q(e.login_dropdown_tile_icon_color)&&t.style.setProperty("--tenant-login-tile-icon",e.login_dropdown_tile_icon_color),q(e.footer_heading_color)&&t.style.setProperty("--tenant-footer-heading",e.footer_heading_color),q(e.footer_link_color)&&t.style.setProperty("--tenant-footer-link",e.footer_link_color),q(e.footer_link_hover_color)&&t.style.setProperty("--tenant-footer-link-hover",e.footer_link_hover_color),q(e.footer_divider_color)&&t.style.setProperty("--tenant-footer-divider",e.footer_divider_color),q(e.footer_badge_bg_color)&&t.style.setProperty("--tenant-footer-badge-bg",e.footer_badge_bg_color),q(e.footer_badge_border_color)&&t.style.setProperty("--tenant-footer-badge-border",e.footer_badge_border_color),q(e.footer_badge_fg_color)&&t.style.setProperty("--tenant-footer-badge-fg",e.footer_badge_fg_color),q(e.footer_badge_icon_bg_color)&&t.style.setProperty("--tenant-footer-badge-icon-bg",e.footer_badge_icon_bg_color),q(e.footer_badge_icon_color)&&t.style.setProperty("--tenant-footer-badge-icon",e.footer_badge_icon_color),q(e.footer_contact_card_bg_color)&&t.style.setProperty("--tenant-footer-card-bg",e.footer_contact_card_bg_color),q(e.footer_contact_card_border_color)&&t.style.setProperty("--tenant-footer-card-border",e.footer_contact_card_border_color),q(e.footer_contact_card_hover_bg_color)&&t.style.setProperty("--tenant-footer-card-hover-bg",e.footer_contact_card_hover_bg_color),q(e.footer_contact_icon_bg_color)&&t.style.setProperty("--tenant-footer-card-icon-bg",e.footer_contact_icon_bg_color),q(e.footer_contact_icon_border_color)&&t.style.setProperty("--tenant-footer-card-icon-border",e.footer_contact_icon_border_color),q(e.footer_contact_icon_color)&&t.style.setProperty("--tenant-footer-card-icon",e.footer_contact_icon_color),q(e.footer_contact_label_color)&&t.style.setProperty("--tenant-footer-card-label",e.footer_contact_label_color),q(e.footer_legal_text_color)&&t.style.setProperty("--tenant-footer-legal",e.footer_legal_text_color),q(e.section_overlay_from_color)&&t.style.setProperty("--tenant-section-overlay-from",e.section_overlay_from_color),q(e.section_overlay_via_color)&&t.style.setProperty("--tenant-section-overlay-via",e.section_overlay_via_color),q(e.section_overlay_to_color)&&t.style.setProperty("--tenant-section-overlay-to",e.section_overlay_to_color),q(e.section_overlay_fg_color)&&t.style.setProperty("--tenant-section-overlay-fg",e.section_overlay_fg_color),q(e.section_overlay_muted_fg_color)&&t.style.setProperty("--tenant-section-overlay-muted-fg",e.section_overlay_muted_fg_color),q(e.section_overlay_card_bg_color)&&t.style.setProperty("--tenant-section-overlay-card-bg",e.section_overlay_card_bg_color),q(e.section_overlay_card_border_color)&&t.style.setProperty("--tenant-section-overlay-card-border",e.section_overlay_card_border_color),q(e.section_overlay_card_hover_bg_color)&&t.style.setProperty("--tenant-section-overlay-card-hover-bg",e.section_overlay_card_hover_bg_color)}function os(e){if(e.favicon_url){let t=document.querySelector("link[rel='icon']");t||(t=document.createElement("link"),t.rel="icon",document.head.appendChild(t)),t.href=e.favicon_url}}const lv=({children:e})=>{const t=typeof window<"u"?window.location.hostname:"",[n,o]=c.useState(()=>{const p=In(t);return p!=null&&p.data?p.data:au}),[s,a]=c.useState(()=>{var p;return!!((p=In(t))!=null&&p.data)}),[l,i]=c.useState(!0),[d,f]=c.useState(!1),m=async()=>{try{const p=window.location.hostname,b=typeof window<"u"?new URLSearchParams(window.location.search):null,y=(b==null?void 0:b.get("thumb_org"))||""||(()=>{try{return localStorage.getItem("tra_admin_tenant_override")||""}catch{return""}})(),E=In(p);if(!y&&(E!=null&&E.data)&&Date.now()-E.timestamp<sv){o(E.data),ns(E.data),os(E.data);try{window.__TENANT_ID__=E.data.id}catch{}return}let A=null;if(y){const R=`org:${y}`;pr.has(R)||pr.set(R,Promise.resolve(z.from("organizations").select($i).eq("id",y).maybeSingle()).then(({data:T})=>T)),A=await pr.get(R)}if(!A){const R=`host:${p}`;pr.has(R)||pr.set(R,Promise.resolve(z.rpc("resolve_tenant_by_host",{_host:p})).then(({data:T,error:j})=>!j&&Array.isArray(T)&&T.length>0?T[0]:null)),A=await pr.get(R)}if(A){let R=A;const T=!!(R.logo_light_url||R.logo_dark_url||R.favicon_url);if(R.use_tra_branding&&!R.is_default&&!T)try{const{data:P}=await z.from("organizations").select($i).eq("is_default",!0).eq("active",!0).limit(1).maybeSingle();if(P){const C=P;
3R={...R,company_name:C.company_name,company_short_name:C.company_short_name,tagline:C.tagline,logo_light_url:C.logo_light_url,logo_dark_url:C.logo_dark_url,favicon_url:C.favicon_url,primary_email:C.primary_email,support_email:C.support_email,primary_phone:C.primary_phone,website_url:C.website_url,address_line1:C.address_line1,address_line2:C.address_line2,city:C.city,state:C.state,zip_code:C.zip_code,country:C.country,social_linkedin:C.social_linkedin,social_twitter:C.social_twitter,social_facebook:C.social_facebook,footer_disclaimer:C.footer_disclaimer,copyright_text:C.copyright_text,email_from_name:C.email_from_name,email_from_address:C.email_from_address}}}catch(P){console.warn("use_tra_branding passthrough failed:",P)}const j=In(p),S=(j==null?void 0:j.data)&&j.data.tenant_revision!=null&&A.tenant_revision!=null&&j.data.tenant_revision!==A.tenant_revision;o(R),ns(R),os(R),av(p,R);try{window.__TENANT_ID__=R.id}catch{}if(S)try{window.dispatchEvent(new CustomEvent("tra-tenant-updated",{detail:{reason:"revision"}}))}catch{}}}catch(p){console.error("Failed to resolve tenant:",p)}finally{a(!0),i(!1)}};c.useEffect(()=>{m()},[]),c.useEffect(()=>{const p=()=>{try{const b=window.location.hostname;localStorage.removeItem(Pa(b))}catch{}m()};return window.addEventListener("tra-tenant-updated",p),()=>window.removeEventListener("tra-tenant-updated",p)},[]);const{user:h}=xt();c.useEffect(()=>{if(!n.id)return;ns(n),os(n),f(!1);let p=!1;return(async()=>{var E;const{setTenantPublicHost:b}=await g(async()=>{const{setTenantPublicHost:A}=await Promise.resolve().then(()=>My);return{setTenantPublicHost:A}},void 0),x=async A=>{var R,T,j,S;try{const{data:P}=await z.from("organization_domains").select("domain, is_primary, verified").eq("organization_id",A).order("verified",{ascending:!1}).order("is_primary",{ascending:!1}).order("created_at",{ascending:!0}).limit(5),C=((R=P==null?void 0:P.find(D=>D.verified&&D.is_primary))==null?void 0:R.domain)??((T=P==null?void 0:P.find(D=>D.verified))==null?void 0:T.domain)??((j=P==null?void 0:P.find(D=>D.is_primary))==null?void 0:j.domain)??((S=P==null?void 0:P[0])==null?void 0:S.domain);return C?`https://${C.replace(/^https?:\/\//,"").replace(/\/.*$/,"")}`:null}catch{return null}};if(await(async()=>{if(n.is_default){b(null);return}if(n.use_tra_branding){try{b(window.location.origin)}catch{b(null)}return}const A=n.id?await x(n.id):null;p||b(A||n.website_url)})(),!p){if(!(h!=null&&h.id)){f(!0);return}try{const{data:A}=await z.from("affiliates").select("organization_id, is_corporate, created_at").eq("user_id",h.id).order("is_corporate",{ascending:!1}).order("created_at",{ascending:!1}).limit(1),R=(E=A==null?void 0:A[0])==null?void 0:E.organization_id;if(p||!R)return;const T=await x(R);if(p||!T)return;b(T)}catch{}finally{p||f(!0)}}})(),()=>{p=!0}},[n,h==null?void 0:h.id]);const v=c.useMemo(()=>({tenant:n,loading:l,ready:s,publicHostReady:d,isDefault:n.is_default,isWhitelabel:!n.is_default,isTraBranded:n.is_default||!!n.use_tra_branding,refetch:m}),[n,l,s,d]);return r.jsx(iu.Provider,{value:v,children:e})},cv=({children:e})=>{const{ready:t}=Be();return t?r.jsx(r.Fragment,{children:e}):r.jsxs("div",{style:{position:"fixed",inset:0,background:"hsl(var(--background, 0 0% 100%))",display:"flex",alignItems:"center",justifyContent:"center",zIndex:9999},children:[r.jsx("div",{style:{width:28,height:28,border:"2px solid hsl(var(--muted-foreground, 220 9% 46%) / 0.25)",borderTopColor:"hsl(var(--muted-foreground, 220 9% 46%))",borderRadius:"50%",animation:"tra-spin 0.8s linear infinite"}}),r.jsx("style",{children:"@keyframes tra-spin { to { transform: rotate(360deg); } }"})]})},Be=()=>c.useContext(iu),pS=()=>{const{tenant:e,loading:t,refetch:n}=Be();return{profile:{...e,id:e.id,company_name:e.company_name,company_short_name:e.company_short_name,tagline:e.tagline,logo_light_url:e.logo_light_url,logo_dark_url:e.logo_dark_url,favicon_url:e.favicon_url,primary_email:e.primary_email,support_email:e.support_email,primary_phone:e.primary_phone,fax:"",website_url:e.website_url,address_line1:e.address_line1,address_line2:e.address_line2,city:e.city,state:e.state,zip_code:e.zip_code,country:e.country,ein:"",duns_number:"",license_number:"",jurisdiction_state:e.state||"Florida",arbitration_venue:e.city?`${e.city}, ${e.state}
3`:"Miami-Dade County, Florida",social_linkedin:e.social_linkedin,social_twitter:e.social_twitter,social_facebook:e.social_facebook,social_instagram:"",footer_disclaimer:e.footer_disclaimer,copyright_text:e.copyright_text},loading:t,refetch:n}};var ss="focusScope.autoFocusOnMount",as="focusScope.autoFocusOnUnmount",Fi={bubbles:!1,cancelable:!0},dv="FocusScope",Sa=c.forwardRef((e,t)=>{const{loop:n=!1,trapped:o=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...l}=e,[i,d]=c.useState(null),f=Ze(s),m=Ze(a),h=c.useRef(null),v=Te(t,x=>d(x)),p=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let x=function(R){if(p.paused||!i)return;const T=R.target;i.contains(T)?h.current=T:Bt(h.current,{select:!0})},y=function(R){if(p.paused||!i)return;const T=R.relatedTarget;T!==null&&(i.contains(T)||Bt(h.current,{select:!0}))},E=function(R){if(document.activeElement===document.body)for(const j of R)j.removedNodes.length>0&&Bt(i)};document.addEventListener("focusin",x),document.addEventListener("focusout",y);const A=new MutationObserver(E);return i&&A.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",x),document.removeEventListener("focusout",y),A.disconnect()}}},[o,i,p.paused]),c.useEffect(()=>{if(i){Bi.add(p);const x=document.activeElement;if(!i.contains(x)){const E=new CustomEvent(ss,Fi);i.addEventListener(ss,f),i.dispatchEvent(E),E.defaultPrevented||(uv(gv(lu(i)),{select:!0}),document.activeElement===x&&Bt(i))}return()=>{i.removeEventListener(ss,f),setTimeout(()=>{const E=new CustomEvent(as,Fi);i.addEventListener(as,m),i.dispatchEvent(E),E.defaultPrevented||Bt(x??document.body,{select:!0}),i.removeEventListener(as,m),Bi.remove(p)},0)}}},[i,f,m,p]);const b=c.useCallback(x=>{if(!n&&!o||p.paused)return;const y=x.key==="Tab"&&!x.altKey&&!x.ctrlKey&&!x.metaKey,E=document.activeElement;if(y&&E){const A=x.currentTarget,[R,T]=fv(A);
vendor: 4,375 bytes, line 3
3R&&T?!x.shiftKey&&E===T?(x.preventDefault(),n&&Bt(R,{select:!0})):x.shiftKey&&E===R&&(x.preventDefault(),n&&Bt(T,{select:!0})):E===A&&x.preventDefault()}},[n,o,p.paused]);return r.jsx(xe.div,{tabIndex:-1,...l,ref:v,onKeyDown:b})});Sa.displayName=dv;function uv(e,{select:t=!1}={}){const n=document.activeElement;for(const o of e)if(Bt(o,{select:t}),document.activeElement!==n)return}function fv(e){const t=lu(e),n=Vi(t,e),o=Vi(t.reverse(),e);return[n,o]}function lu(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const s=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||s?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Vi(e,t){for(const n of e)if(!pv(n,{upTo:t}))return n}function pv(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function mv(e){return e instanceof HTMLInputElement&&"select"in e}function Bt(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&mv(e)&&t&&e.select()}}var Bi=hv();function hv(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Ui(e,t),e.unshift(t)},remove(t){var n;e=Ui(e,t),(n=e[0])==null||n.resume()}}}function Ui(e,t){const n=[...e],o=n.indexOf(t);return o!==-1&&n.splice(o,1),n}function gv(e){return e.filter(t=>t.tagName!=="A")}var is=0;function cu(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??zi()),document.body.insertAdjacentElement("beforeend",e[1]??zi()),is++,()=>{is===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),is--}},[])}function zi(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Wt=function(){return Wt=Object.assign||function(t){for(var n,o=1,s=arguments.length;o<s;o++){n=arguments[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},Wt.apply(this,arguments)};function _v(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(n[o[s]]=e[o[s]]);return n}function xv(e,t,n){if(n||arguments.length===2)for(var o=0,s=t.length,a;o<s;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}var Jn="right-scroll-bar-position",Zn="width-before-scroll-bar",vv="with-scroll-bars-hidden",yv="--removed-body-scroll-bar-size";function ls(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function bv(e,t){var n=c.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(o){var s=n.value;s!==o&&(n.value=o,n.callback(o,s))}}}})[0];return n.callback=t,n.facade}var wv=typeof window<"u"?c.useLayoutEffect:c.useEffect,Hi=new WeakMap;function Ev(e,t){var n=bv(null,function(o){return e.forEach(function(s){return ls(s,o)})});return wv(function(){var o=Hi.get(n);if(o){var s=new Set(o),a=new Set(e),l=n.current;s.forEach(function(i){a.has(i)||ls(i,null)}),a.forEach(function(i){s.has(i)||ls(i,l)})}Hi.set(n,e)},[e]),n}var mo=function(){return mo=Object.assign||function(t){for(var n,o=1,s=arguments.length;o<s;o++){n=arguments[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},mo.apply(this,arguments)};function jv(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(n[o[s]]=e[o[s]]);return n}function Tv(e){return e}function Av(e,t){t===void 0&&(t=Tv);var n=[],o=!1,s={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e}
vendor: 6,864 bytes, lines 3-43
3,useMedium:function(a){var l=t(a,o);return n.push(l),function(){n=n.filter(function(i){return i!==l})}},assignSyncMedium:function(a){for(o=!0;n.length;){var l=n;n=[],l.forEach(a)}n={push:function(i){return a(i)},filter:function(){return n}}},assignMedium:function(a){o=!0;var l=[];if(n.length){var i=n;n=[],i.forEach(a),l=n}var d=function(){var m=l;l=[],m.forEach(a)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(m){l.push(m),f()},filter:function(m){return l=l.filter(m),n}}}};return s}function Rv(e){e===void 0&&(e={});var t=Av(null);return t.options=mo({async:!0,ssr:!1},e),t}var du=function(e){var t=e.sideCar,n=jv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return c.createElement(o,mo({},n))};du.isSideCarExport=!0;function Pv(e,t){return e.useMedium(t),du}var uu=Rv(),cs=function(){},Do=c.forwardRef(function(e,t){var n=c.useRef(null),o=c.useState({onScrollCapture:cs,onWheelCapture:cs,onTouchMoveCapture:cs}),s=o[0],a=o[1],l=e.forwardProps,i=e.children,d=e.className,f=e.removeScrollBar,m=e.enabled,h=e.shards,v=e.sideCar,p=e.noRelative,b=e.noIsolation,x=e.inert,y=e.allowPinchZoom,E=e.as,A=E===void 0?"div":E,R=e.gapMode,T=_v(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=v,S=Ev([n,t]),P=Wt(Wt({},T),s);return c.createElement(c.Fragment,null,m&&c.createElement(j,{sideCar:uu,removeScrollBar:f,shards:h,noRelative:p,noIsolation:b,inert:x,setCallbacks:a,allowPinchZoom:!!y,lockRef:n,gapMode:R}),l?c.cloneElement(c.Children.only(i),Wt(Wt({},P),{ref:S})):c.createElement(A,Wt({},P,{className:d,ref:S}),i))});Do.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Do.classNames={fullWidth:Zn,zeroRight:Jn};var Sv=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Cv(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Sv();return t&&e.setAttribute("nonce",t),e}function Iv(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Nv(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Ov=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Cv())&&(Iv(t,n),Nv(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},kv=function(){var e=Ov();return function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},fu=function(){var e=kv(),t=function(n){var o=n.styles,s=n.dynamic;return e(o,s),null};return t},Dv={left:0,top:0,right:0,gap:0},ds=function(e){return parseInt(e||"",10)||0},Lv=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[ds(n),ds(o),ds(s)]},Mv=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Dv;var t=Lv(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-n+t[2]-t[0])}},$v=fu(),Ar="data-scroll-locked",Fv=function(e,t,n,o){var s=e.left,a=e.top,l=e.right,i=e.gap;return n===void 0&&(n="margin"),` 4 .`.concat(vv,` { 5 overflow: hidden `).concat(o,`; 6 padding-right: `).concat(i,"px ").concat(o,`; 7 } 8 body[`).concat(Ar,`] { 9 overflow: hidden `).concat(o,`; 10 overscroll-behavior: contain; 11 `).concat([t&&"position: relative ".concat(o,";"),n==="margin"&&` 12 padding-left: `.concat(s,`px; 13 padding-top: `).concat(a,`px; 14 padding-right: `).concat(l,`px; 15 margin-left:0; 16 margin-top:0; 17 margin-right: `).concat(i,"px ").concat(o,`; 18 `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(o,";")].filter(Boolean).join(""),` 19 } 20 21 .`).concat(Jn,` { 22 right: `).concat(i,"px ").concat(o,`; 23 } 24 25 .`).concat(Zn,` { 26 margin-right: `).concat(i,"px ").concat(o,`; 27 } 28 29 .`).concat(Jn," .").concat(Jn,` { 30 right: 0 `).concat(o,`; 31 } 32 33 .`).concat(Zn," .").concat(Zn,` { 34 margin-right: 0 `).concat(o,`; 35 } 36 37 body[`).concat(Ar,`] { 38 `).concat(yv,": ").concat(i,`px; 39 } 40`)},Wi=function(){var e=parseInt(document.body.getAttribute(Ar)||"0",10);return isFinite(e)?e:0},Vv=function(){c.useEffect(function(){return document.body.setAttribute(Ar,(Wi()+1).toString()),function(){var e=Wi()-1;e<=0?document.body.removeAttribute(Ar):document.body.setAttribute(Ar,e.toString())}},[])},Bv=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,s=o===void 0?"margin":o;Vv();var a=c.useMemo(function(){return Mv(s)},[s]);return c.createElement($v,{styles:Fv(a,!t,s,n?"":"!important")})},Ks=!1;if(typeof window<"u")try{var Nn=Object.defineProperty({},"passive",{get:function(){return Ks=!0,!0}});window.addEventListener("test",Nn,Nn),window.removeEventListener("test",Nn,Nn)}catch{Ks=!1}var mr=Ks?{passive:!1}:!1,Uv=function(e){return e.tagName==="TEXTAREA"},pu=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!Uv(e)&&n[t]==="visible")},zv=function(e){return pu(e,"overflowY")},Hv=function(e){return pu(e,"overflowX")},qi=function(e,t){var n=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=mu(e,o);if(s){var a=hu(e,o),l=a[1],i=a[2];if(l>i)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},Wv=function(e){var t=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[t,n,o]},qv=function(e){var t=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[t,n,o]},mu=function(e,t){return e==="v"?zv(t):Hv(t)},hu=function(e,t){return e==="v"?Wv(t):qv(t)},Gv=function(e,t){return e==="h"&&t==="rtl"?-1:1},Yv=function(e,t,n,o,s){var a=Gv(e,window.getComputedStyle(t).direction),l=a*o,i=n.target,d=t.contains(i),f=!1,m=l>0,h=0,v=0;do{if(!i)break;var p=hu(e,i),b=p[0],x=p[1],y=p[2],E=x-y-a*b;(b||E)&&mu(e,i)&&(h+=E,v+=b);var A=i.parentNode;i=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!d&&i!==document.body||d&&(t.contains(i)||t===i));return(m&&(Math.abs(h)<1||!s)||!m&&(Math.abs(v)<1||!s))&&(f=!0),f},On=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gi=function(e){return[e.deltaX,e.deltaY]},Yi=function(e){return e&&"current"in e?e.current:e},Kv=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Xv=function(e){return` 41 .block-interactivity-`.concat(e,` {pointer-events: none;} 42 .allow-interactivity-`).concat(e,` {pointer-events: all;} 43`)},Jv=0,hr=[];function Zv(e){var t=c.useRef([]),n=c.useRef([0,0]),o=c.useRef(),s=c.useState(Jv++)[0],a=c.useState(fu)[0],l=c.useRef(e);c.useEffect(function(){l.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));
vendor: 4,629 bytes, line 43
43var x=xv([e.lockRef.current],(e.shards||[]).map(Yi),!0).filter(Boolean);return x.forEach(function(y){return y.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),x.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var i=c.useCallback(function(x,y){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!l.current.allowPinchZoom;var E=On(x),A=n.current,R="deltaX"in x?x.deltaX:A[0]-E[0],T="deltaY"in x?x.deltaY:A[1]-E[1],j,S=x.target,P=Math.abs(R)>Math.abs(T)?"h":"v";if("touches"in x&&P==="h"&&S.type==="range")return!1;var C=qi(P,S);if(!C)return!0;if(C?j=P:(j=P==="v"?"h":"v",C=qi(P,S)),!C)return!1;if(!o.current&&"changedTouches"in x&&(R||T)&&(o.current=j),!j)return!0;var D=o.current||j;return Yv(D,y,x,D==="h"?R:T,!0)},[]),d=c.useCallback(function(x){var y=x;if(!(!hr.length||hr[hr.length-1]!==a)){var E="deltaY"in y?Gi(y):On(y),A=t.current.filter(function(j){return j.name===y.type&&(j.target===y.target||y.target===j.shadowParent)&&Kv(j.delta,E)})[0];if(A&&A.should){y.cancelable&&y.preventDefault();return}if(!A){var R=(l.current.shards||[]).map(Yi).filter(Boolean).filter(function(j){return j.contains(y.target)}),T=R.length>0?i(y,R[0]):!l.current.noIsolation;T&&y.cancelable&&y.preventDefault()}}},[]),f=c.useCallback(function(x,y,E,A){var R={name:x,delta:y,target:E,should:A,shadowParent:Qv(E)};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(T){return T!==R})},1)},[]),m=c.useCallback(function(x){n.current=On(x),o.current=void 0},[]),h=c.useCallback(function(x){f(x.type,Gi(x),x.target,i(x,e.lockRef.current))},[]),v=c.useCallback(function(x){f(x.type,On(x),x.target,i(x,e.lockRef.current))},[]);c.useEffect(function(){return hr.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:v}),document.addEventListener("wheel",d,mr),document.addEventListener("touchmove",d,mr),document.addEventListener("touchstart",m,mr),function(){hr=hr.filter(function(x){return x!==a}),document.removeEventListener("wheel",d,mr),document.removeEventListener("touchmove",d,mr),document.removeEventListener("touchstart",m,mr)}},[]);var p=e.removeScrollBar,b=e.inert;return c.createElement(c.Fragment,null,b?c.createElement(a,{styles:Xv(s)}):null,p?c.createElement(Bv,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Qv(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const ey=Pv(uu,Zv);var Ca=c.forwardRef(function(e,t){return c.createElement(Do,Wt({},e,{ref:t,sideCar:ey}))});Ca.classNames=Do.classNames;var ty=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},gr=new WeakMap,kn=new WeakMap,Dn={},us=0,gu=function(e){return e&&(e.host||gu(e.parentNode))},ry=function(e,t){return t.map(function(n){if(e.contains(n))return n;var o=gu(n);return o&&e.contains(o)?o:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},ny=function(e,t,n,o){var s=ry(t,Array.isArray(e)?e:[e]);Dn[n]||(Dn[n]=new WeakMap);var a=Dn[n],l=[],i=new Set,d=new Set(s),f=function(h){!h||i.has(h)||(i.add(h),f(h.parentNode))};s.forEach(f);var m=function(h){!h||d.has(h)||Array.prototype.forEach.call(h.children,function(v){if(i.has(v))m(v);else try{var p=v.getAttribute(o),b=p!==null&&p!=="false",x=(gr.get(v)||0)+1,y=(a.get(v)||0)+1;gr.set(v,x),a.set(v,y),l.push(v),x===1&&b&&kn.set(v,!0),y===1&&v.setAttribute(n,"true"),b||v.setAttribute(o,"true")}catch(E){console.error("aria-hidden: cannot operate on ",v,E)}})};return m(t),i.clear(),us++,function(){l.forEach(function(h){var v=gr.get(h)-1,p=a.get(h)-1;gr.set(h,v),a.set(h,p),v||(kn.has(h)||h.removeAttribute(o),kn.delete(h)),p||h.removeAttribute(n)}),us--,us||(gr=new WeakMap,gr=new WeakMap,kn=new WeakMap,Dn={})}},_u=function(e,t,n){n===void 0&&(n="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),s=ty(e);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live]"))),ny(o,s,n,"aria-hidden")):function(){return null}},Lo="Dialog",[xu,mS]=Xt(Lo),[oy,vt]=xu(Lo),vu=e=>{const{__scopeDialog:t,children:n,open:o,defaultOpen:s,onOpenChange:a,modal:l=!0}=e,i=c.useRef(null),d=c.useRef(null),[f,m]=Or({prop:o,defaultProp:s??!1,onChange:a,caller:Lo});return r.jsx(oy,{scope:t,triggerRef:i,contentRef:d,contentId:Ot(),titleId:Ot(),descriptionId:Ot(),open:f,onOpenChange:m,onOpenToggle:c.useCallback(()=>m(h=>!h),[m]),modal:l,children:n})};vu.displayName=Lo;var yu="DialogTrigger",bu=c.forwardRef((e,t)=>
vendor: 4,610 bytes, lines 43-47
43{const{__scopeDialog:n,...o}=e,s=vt(yu,n),a=Te(t,s.triggerRef);return r.jsx(xe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Oa(s.open),...o,ref:a,onClick:X(e.onClick,s.onOpenToggle)})});bu.displayName=yu;var Ia="DialogPortal",[sy,wu]=xu(Ia,{forceMount:void 0}),Eu=e=>{const{__scopeDialog:t,forceMount:n,children:o,container:s}=e,a=vt(Ia,t);return r.jsx(sy,{scope:t,forceMount:n,children:c.Children.map(o,l=>r.jsx(Pt,{present:n||a.open,children:r.jsx(To,{asChild:!0,container:s,children:l})}))})};Eu.displayName=Ia;var ho="DialogOverlay",ju=c.forwardRef((e,t)=>{const n=wu(ho,e.__scopeDialog),{forceMount:o=n.forceMount,...s}=e,a=vt(ho,e.__scopeDialog);return a.modal?r.jsx(Pt,{present:o||a.open,children:r.jsx(iy,{...s,ref:t})}):null});ju.displayName=ho;var ay=Pr("DialogOverlay.RemoveScroll"),iy=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,s=vt(ho,n);return r.jsx(Ca,{as:ay,allowPinchZoom:!0,shards:[s.contentRef],children:r.jsx(xe.div,{"data-state":Oa(s.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),cr="DialogContent",Tu=c.forwardRef((e,t)=>{const n=wu(cr,e.__scopeDialog),{forceMount:o=n.forceMount,...s}=e,a=vt(cr,e.__scopeDialog);return r.jsx(Pt,{present:o||a.open,children:a.modal?r.jsx(ly,{...s,ref:t}):r.jsx(cy,{...s,ref:t})})});Tu.displayName=cr;var ly=c.forwardRef((e,t)=>{const n=vt(cr,e.__scopeDialog),o=c.useRef(null),s=Te(t,n.contentRef,o);return c.useEffect(()=>{const a=o.current;if(a)return _u(a)},[]),r.jsx(Au,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:X(e.onCloseAutoFocus,a=>{var l;a.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:X(e.onPointerDownOutside,a=>{const l=a.detail.originalEvent,i=l.button===0&&l.ctrlKey===!0;(l.button===2||i)&&a.preventDefault()}),onFocusOutside:X(e.onFocusOutside,a=>a.preventDefault())})}),cy=c.forwardRef((e,t)=>{const n=vt(cr,e.__scopeDialog),o=c.useRef(!1),s=c.useRef(!1);return r.jsx(Au,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:a=>{var l,i;(l=e.onCloseAutoFocus)==null||l.call(e,a),a.defaultPrevented||(o.current||(i=n.triggerRef.current)==null||i.focus(),a.preventDefault()),o.current=!1,s.current=!1},onInteractOutside:a=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,a),a.defaultPrevented||(o.current=!0,a.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const l=a.target;((f=n.triggerRef.current)==null?void 0:f.contains(l))&&a.preventDefault(),a.detail.originalEvent.type==="focusin"&&s.current&&a.preventDefault()}})}),Au=c.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:a,...l}=e,i=vt(cr,n),d=c.useRef(null),f=Te(t,d);return cu(),r.jsxs(r.Fragment,{children:[r.jsx(Sa,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:s,onUnmountAutoFocus:a,children:r.jsx(hn,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":Oa(i.open),...l,ref:f,onDismiss:()=>i.onOpenChange(!1)})}),r.jsxs(r.Fragment,{children:[r.jsx(dy,{titleId:i.titleId}),r.jsx(fy,{contentRef:d,descriptionId:i.descriptionId})]})]})}),Na="DialogTitle",Ru=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,s=vt(Na,n);return r.jsx(xe.h2,{id:s.titleId,...o,ref:t})});Ru.displayName=Na;var Pu="DialogDescription",Su=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,s=vt(Pu,n);return r.jsx(xe.p,{id:s.descriptionId,...o,ref:t})});Su.displayName=Pu;var Cu="DialogClose",Iu=c.forwardRef((e,t)=>{const{__scopeDialog:n,...o}=e,s=vt(Cu,n);return r.jsx(xe.button,{type:"button",...o,ref:t,onClick:X(e.onClick,()=>s.onOpenChange(!1))})});Iu.displayName=Cu;function Oa(e){return e?"open":"closed"}var Nu="DialogTitleWarning",[hS,Ou]=Ih(Nu,{contentName:cr,titleName:Na,docsSlug:"dialog"}),dy=({titleId:e})=>{const t=Ou(Nu),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users. 44 45If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component. 46 47For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},uy="DialogDescriptionWarning",fy=({contentRef:e,descriptionId:t})=>{const o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ou(uy).contentName}}.`;return c.useEffect(()=>{var a;const s=(a=e.current)==null?void 0:a.getAttribute("aria-describedby");t&&s&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},py=vu,my=bu,hy=Eu,ku=ju,Du=Tu,Lu=Ru,Mu=Su,gy=Iu;
47const $u=py,gS=my,_y=hy,Fu=c.forwardRef(({className:e,...t},n)=>r.jsx(ku,{ref:n,className:ve("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));Fu.displayName=ku.displayName;const ka=c.forwardRef(({className:e,children:t,hideCloseButton:n,...o},s)=>r.jsxs(_y,{children:[r.jsx(Fu,{}),r.jsxs(Du,{ref:s,className:ve("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-lg max-h-[calc(100dvh-2rem)] overflow-y-auto overscroll-contain [-webkit-overflow-scrolling:touch] [touch-action:pan-y]",e),...o,children:[t,!n&&r.jsxs(gy,{className:"absolute right-4 top-4 roun
47ded-full bg-background/70 backdrop-blur-sm text-foreground/90 opacity-100 ring-offset-background transition-all hover:bg-background hover:text-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none shadow-sm p-1.5 z-50",children:[r.jsx(ia,{className:"h-4 w-4"}),r.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));ka.displayName=Du.displayName;const Da=({className:e,...t})=>r.jsx("div",{className:ve("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});Da.displayName="DialogHeader";const xy=({className:e,...t})=>r.jsx("div",{className:ve("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xy.displayName="DialogFooter";const La=c.forwardRef(({className:e,...t},n)=>r.jsx(Lu,{ref:n,className:ve("text-lg font-semibold leading-none tracking-tight",e),...t}));La.displayName=Lu.displayName;const Ma=c.forwardRef(({className:e,...t},n)=>r.jsx(Mu,{ref:n,className:ve("text-sm text-muted-foreground",e),...t}));Ma.displayName=Mu.displayName;const Vu=c.createContext({hasBookingUrl:!1,preferBooking:!1,bookingUrl:"",open:()=>{}}),vy=({children:e})=>{const{tenant:t}=Be(),[n,o]=c.useState(!1),s=(t==null?void 0:t.booking_calendar_url)||"",a=!!(t!=null&&t.use_booking_link_for_phone)&&!!s,l=!!s,i=c.useCallback(()=>{s&&o(!0)},[s]),d=c.useMemo(()=>({hasBookingUrl:l,preferBooking:a,bookingUrl:s,open:i}),[l,a,s,i]);return r.jsxs(Vu.Provider,{value:d,children:[e,r.jsx($u,{open:n,onOpenChange:o,children:r.jsxs(ka,{className:"max-w-3xl p-0 overflow-hidden",children:[r.jsxs(Da,{className:"px-6 pt-5 pb-3 border-b border-border",children:[r.jsxs(La,{className:"text-lg",children:["Book a Call with ",t.company_short_name||"us"]}),r.jsx(Ma,{children:"Pick a time that works â we'll confirm by email."})]}),r.jsx("div",{className:"bg-background",children:s?r.jsx("iframe",{title:"Book a call",src:s,className:"w-full",style:{height:"72vh",border:"none"},allow:"camera; microphone; fullscreen; clipboard-read; clipboard-write"}):null})]})})]})},_S=()=>c.useContext(Vu);let nr=null,Ut=null,Qn=null;const ir=new Map,eo=new Map;async function yy(){if(typeof window>"u")return;const[e,t]=await Promise.all([z.from("seo_page_overrides").select("*"),z.from("seo_category_defaults").select("*")]);nr=e.data||[],Ut=t.data||[]}async function by(e){if(typeof window>"u")return null;if(ir.has(e))return ir.get(e)??null;const{data:t}=await z.from("seo_page_overrides").select("id,path,title,description,og_title,og_description,og_image,canonical_url,no_index").eq("path",e).maybeSingle(),n=t??null;return ir.set(e,n),n}function xS(){nr=null,Ut=null,Qn=null,ir.clear(),eo.clear()}function wy(e){const t=e&&ir.has(e)?ir.get(e):void 0,[n,o]=c.useState(t?[t]:nr||[]),[s,a]=c.useState(Ut||[]),[l,i]=c.useState(e?t===void 0:!nr);return c.useEffect(()=>{if(e){const d=ir.get(e);if(d!==void 0){o(d?[d]:[]),a(Ut||[]),i(!1);return}eo.has(e)||eo.set(e,by(e)),eo.get(e).then(m=>{o(m?[m]:[]),a(Ut||[]),i(!1)});return}if(nr&&Ut){o(nr),a(Ut),i(!1);return}Qn||(Qn=yy()),Qn.then(()=>{o(nr||[]),a(Ut||[]),i(!1)})},[e]),{overrides:n,categoryDefaults:s,loading:l}}function Ey(e,t){return e.find(n=>n.path===t)}const Ki="https://tariffrefundagency.com";let sn=null;const Ln=new Map;function jy(e){if(!e){sn=null;return}try{const t=new URL(e);sn=`${t.protocol}//${t.host}`}catch{sn=null}}function $e(){if(sn)return sn;if(typeof window>"u")return Ki;const{hostname:e,origin:t}=window.location;return e.includes("lovable.app")||e.includes("lovable.dev")||e.includes("lovableproject.com")||e.includes("lovable.host")||e==="localhost"||e==="127.0.0.1"?Ki:t}function Ty(e){const t=(e||"").trim();return t?`${$e()}/ref/${t}`:`${$e()}/`}function Ay(e,t){const n=(e||"").trim(),o=Xs(t)??$e();return n?`${o}/ref/${n}`:`${o}/`}function Ry(e){const t=(e||"").trim();return t?`${$e()}/ref/${t}?signup=1`:`${$e()}/login?tab=signup`}function Jt(e,t=10){const n=(e||"").trim();return n?n.replace(/-/g,"").slice(0,Math.max(8,t)):""}function Py(e,t={}){const n=t.short===!1?e:Jt(e);return`${$e()}/partner/signup/${encodeURIComponent(n)}`}function Sy(e,t){const n=`${$e()}/partner/signup?rl=${encodeURIComponent(e)}`;return t?`${n}&ref=${encodeURIComponent(t)}`:n}function Cy(e,t,n={}){const o=e?n.short===!1?e:Jt(e):"",s=`${$e()}/brokers/signup${o?`/${encodeURIComponent(o)}`:""}`;return t?`${s}?ref=${encodeURIComponent(t)}`:s}function Iy(e,t,n={}){const o=n.short===!0?Jt(e):e,s=`${$e()}/apply/invite/${encodeURIComponent(o)}`;return t?`${s}?ref=${encodeURIComponent(t)}`:s}function Bu(e,t={}){const n=t.short===!1?e:Jt(e);return`${$e()}/apply/broker/${encodeURIComponent(n)}`}function Ny(e){const t=(e||"").trim().toLowerCase();return t?`${$e()}/b/${encodeURIComponent(t)}`:`${$e()}/`}function Uu(e,t={}){const n=t.short===!1?e:Jt(e);return`${$e()}/client/claim-handoff?token=${encodeURIComponent(n)}`}function Xs(e){const t=(e||"").trim();if(!t)return null;try{const n=t.startsWith("http://")||t.startsWith("https://")?new URL(t):new URL(`https://${t}`);return`${n.protocol}//${n.host}`}catch{return null}}async function Oy(e){var n,o,s,a;const t=(e||"").trim();if(!t)return null;if(Ln.has(t))return Ln.get(t)??null;try{const[{data:l},{data:i}]=await Promise.all([z.from("organization_domains").select("domain, is_primary, verified, created_at").eq("organization_id",t).order("verified",{ascending:!1}).order("is_primary",{ascending:!1}).order("created_at",{ascending:!0}).limit(10),z.from("organizations").select("website_url").eq("id",t).maybeSingle()]),d=((n=l==null?void 0:l.find(m=>m.verified&&m.is_primary))==null?void 0:n.domain)??((o=l==null?void 0:l.find(m=>m.verified))==null?void 0:o.domain)??((s=l==null?void 0:l.find(m=>m.is_primary))==null?void 0:s.domain)??((a=l==null?void 0:l[0])==null?void 0:a.domain)??null,f=Xs(d)??Xs(i==null?void 0:i.website_url)??null;return Ln.set(t,f),f}catch{return Ln.set(t,null),null}}function ky(e){return e.lead_id?Uu(e.invite_token):Bu(e.invite_token)}function Dy(e,t={}){const n=t.short===!1?e:Jt(e);return`${$e()}/funding/signup/${encodeURIComponent(n)}`}function Ly(e,t={}){const n=t.short===!1?e:Jt(e);return`${$e()}/partner/team/accept/${encodeURIComponent(n)}`}const My=Object.freeze(Object.defineProperty({__proto__:null,buildAffiliateTeamInviteUrl:Ly,buildBrokerClientInviteApplyUrl:Bu,buildBrokerHandoffUrl:Uu,buildBrokerInviteLink:ky,buildBrokerSignupUrl:Cy,buildBrokerSlugApplyUrl:Ny,buildClientInviteApplyUrl:Iy,buildCompPlanRateLinkUrl:Sy,buildFundingInviteUrl:Dy,buildPartnerInviteUrl:Py,buildPartnerSignupUrl:Ry,buildReferralUrl:Ty,buildReferralUrlForHost:Ay,publicHost:$e,resolveOrganizationPublicHost:Oy,setTenantPublicHost:jy,shortInviteHash:Jt},Symbol.toStringTag,{value:"Module"})),xn=()=>{const{tenant:e,isDefault:t}
47=Be(),n=e.company_short_name||"Tariff Refund Agency",o=e.company_name||"TRA Solutions, LLC",s=$e()||e.website_url||"https://tariffrefundagency.com",a=e.primary_email||"[email protected]",l=e.support_email||a,i=(l.split("@")[1]||a.split("@")[1]||s.replace(/^https?:\/\/(www\.)?/,"").replace(/\/.*$/,"")||"tariffrefundagency.com").toLowerCase(),d=f=>`${f}@${i}`;return{short:n,legal:o,website:s,isDefault:t,phone:e.primary_phone||"",email:a,supportEmail:l,domain:i,emails:{legal:d("legal"),privacy:d("privacy"),support:l,security:d("security"),partners:d("partners"),info:a},url:f=>`${s.replace(/\/$/,"")}${f.startsWith("/")?f:"/"+f}`,disclaimer:e.footer_disclaimer||`${n} is not CBP, U.S. Customs, or a government agency. We do not provide legal advice. Refund eligibility, amounts, and timing depend on individual circumstances. Past results do not guarantee future outcomes.`,fill:f=>f.split("{company_short_name}").join(n).split("{company_name}").join(o).split("{website_url}").join(s).split("{primary_email}").join(e.primary_email||"").split("{primary_phone}").join(e.primary_phone||"")}},zu="Tariff Refund Agency",Hu="https://tariffrefundagency.com";function $y(){var t;const{tenant:e}=Be();return e.website_url?e.website_url.replace(/\/$/,""):typeof window<"u"&&((t=window.location)!=null&&t.origin)?window.location.origin:Hu}const Fy=({title:e,description:t,canonicalUrl:n,ogTitle:o,ogDescription:s,ogImage:a,ogType:l="website",article:i,schema:d,noIndex:f,breadcrumbs:m})=>{var W;const v=Kt().pathname,{overrides:p}=wy(v),b=xn(),{tenant:x}=Be(),y=b.short||zu,E=$y(),A=x.og_image_url||`${E}/og-default.png`,R=(x==null?void 0:x.is_default)===!0,T=Ey(p,v),j=(T==null?void 0:T.title)||e,S=(T==null?void 0:T.description)||t,P=(T==null?void 0:T.og_title)||o||j,C=(T==null?void 0:T.og_description)||s||S,D=(T==null?void 0:T.no_index)||f||!R||!1,O=T!=null&&T.canonical_url||n?((T==null?void 0:T.canonical_url)||n||"").startsWith("http")?(T==null?void 0:T.canonical_url)||n:`${E}${(T==null?void 0:T.canonical_url)||n}`:`${E}${v}`;let $=(T==null?void 0:T.og_image)||a||x.og_image_url||A;$&&!$.startsWith("http")&&($=`${E}${$}`);const I=j===y?j:`${j} | ${y}`,H=d?Array.isArray(d)?d:[d]:[],k=m!=null&&m.length?{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:m.map((B,U)=>({"@type":"ListItem",position:U+1,name:B.name,item:B.url}))}:null,K=[...H,...k?[k]:[]];return r.jsxs(zc,{children:[r.jsx("title",{children:I}),r.jsx("meta",{name:"description",content:S}),r.jsx("meta",{name:"robots",content:D?"noindex, follow":"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"}),O&&r.jsx("link",{rel:"canonical",href:O}),r.jsx("meta",{property:"og:title",content:P}),r.jsx("meta",{property:"og:description",content:C}),r.jsx("meta",{property:"og:type",content:i?"article":l}),r.jsx("meta",{property:"og:url",content:O||`${E}${v}`}),r.jsx("meta",{property:"og:image",content:$}),r.jsx("meta",{property:"og:site_name",content:y}),r.jsx("meta",{property:"og:locale",content:"en_US"}),(i==null?void 0:i.publishedTime)&&r.jsx("meta",{property:"article:published_time",content:i.publishedTime}),(i==null?void 0:i.modifiedTime)&&r.jsx("meta",{property:"article:modified_time",content:i.modifiedTime}),(i==null?void 0:i.section)&&r.jsx("meta",{property:"article:section",content:i.section}),(W=i==null?void 0:i.tags)==null?void 0:W.map((B,U)=>r.jsx("meta",{property:"article:tag",content:B},U)),r.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),r.jsx("meta",{name:"twitter:title",content:P}),r.jsx("meta",{name:"twitter:description",content:C}),r.jsx("meta",{name:"twitter:image",content:$}),K.map((B,U)=>r.jsx("script",{type:"application/ld+json",children:JSON.stringify(B)},U))]})},Vy=()=>{const e=xn(),{tenant:t}=Be(),n=e.short||zu,o=(t.website_url||Hu).replace(/\/$/,""),s=t.tagline||`${n} helps U.S. importers recover overpaid tariff duties through refund filing and advance funding programs.`,a=t.favicon_url||`${o}/favicon.png`;return r.jsxs(zc,{children:[r.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"Organization",name:n,url:o,logo:a,description:s,contactPoint:{"@type":"ContactPoint",telephone:e.phone||"",contactType:"customer service",email:e.email||""}})}),r.jsx("script",{type:"application/ld+json",children:JSON.stringify({"@context":"https://schema.org","@type":"WebSite",name:n,url:o,description:s,potentialAction:{"@type":"SearchAction",target:`${o}/resources?q={search_term_string}`,"query-input":"required name=search_term_string"}})})]})},By=["organization","analytics","clients","commissions","payment_settings","network","marketing","education","advanced","team_members"],fs=new Map,Mn=new Map,Xi=5*60*1e3;async function Uy(e){var f,m,h;const[t,n]=await Promise.all([z.from("affiliates").select("id, is_corporate, created_at").eq("user_id",e).order("is_corporate",{ascending:!1}).order("created_at",{ascending:!1}).limit(1),z.from("affiliate_team_members").select("affiliate_id, permissions").eq("user_id",e).eq("status","active").order("created_at",{ascending:!1}).limit(1)]),o=((m=(f=t.data)==null?void 0:f[0])==null?void 0:m.id)??null,s=((h=n.data)==null?void 0:h[0])??null,a=(s==null?void 0:s.affiliate_id)??null,l=!!o,i=!o&&!!a,d=new Set(l?By:(s==null?void 0:s.permissions)??[]);return{isOwner:l,isStaff:i,affiliateId:o??a,permissions:d,fetchedAt:Date.now()}}function zy(){const{user:e,loading:t}=xt(),[n,o]=c.useState(()=>{if(e!=null&&e.id){const s=fs.get(e.id);if(s&&Date.now()-s.fetchedAt<Xi)return{loading:!1,isOwner:s.isOwner,isStaff:s.isStaff,affiliateId:s.affiliateId,permissions:s.permissions,can:a=>s.isOwner||s.permissions.has(a)}}return{loading:!0,isOwner:!1,isStaff:!1,affiliateId:null,permissions:new Set,can:()=>!1}});return c.useEffect(()=>{if(t)return;if(!e){o({loading:!1,isOwner:!1,isStaff:!1,affiliateId:null,permissions:new Set,can:()=>!1});return}const s=fs.get(e.id);if(s&&Date.now()-s.fetchedAt<Xi){o({loading:!1,isOwner:s.isOwner,isStaff:s.isStaff,affiliateId:s.affiliateId,permissions:s.permissions,can:i=>s.isOwner||s.permissions.has(i)});return}let a=!1,l=Mn.get(e.id);return l||(l=Uy(e.id),Mn.set(e.id,l)),l.then(i=>{fs.set(e.id,i),Mn.delete(e.id),!a&&o({loading:!1,isOwner:i.isOwner,isStaff:i.isStaff,affiliateId:i.affiliateId,permissions:i.permissions,can:d=>i.isOwner||i.permissions.has(d)})}).catch(()=>{Mn.delete(e.id),!a&&o({loading:!1,isOwner:!1,isStaff:!1,affiliateId:null,permissions:new Set,can:()=>!1})}),()=>{a=!0}},[e,t]),n}function vS(e){const t={"Invalid login credentials":"Incorrect email or password. Please try again.","Email not confirmed":"Please check your email and click the confirmation link before signing in.","User already registered":"An account with this email already exists. Try signing in instead.","Password should be at least 6 characters":"Password must be at least 6 characters.","Signup requires a valid password":"Please enter a valid password (at least 6 characters).","Email rate limit exceeded":"Too many attempts. Please wait a few minutes and try again.","For security purposes, you can only request this after":"Please wait a moment before trying again."};for(const[n,o]of Object.entries(t))if(e.includes(n))return o;return e.includes("rate limit")?"Too many attempts. Please wait a few minutes.":e}function yS(e){let t=0;return e.length>=6&&t++,e.length>=8&&t++,/[A-Z]/.test(e)&&t++,/[0-9]/.test(e)&&t++,/[^A-Za-z0-9]/.test(e)&&t++,t<=1?{score:20,label:"Weak",color:"bg-destructive"}:t===2?{score:40,label:"Fair",color:"bg-orange-500"}:t===3?{score:60,label:"Good",color:"bg-gold"}:t===4?{score:80,label:"Strong",color:"bg-success"}:{score:100,label:"Very Strong",color:"bg-success"}}function Hy(e,t){return t&&t.startsWith("/")&&!t.startsWith("//")?t:e.includes("admin")?"/command":e.includes("broker")?"/brokers":e.includes("affiliate")||e.includes("affiliate_staff")?"/partner":e.includes("funder")?"/funding/marketplace":"/client"}const Wy=ha("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),je=c.forwardRef(({className:e,variant:t,size:n,asChild:o=!1,...s},a)=>{const l=o?Oh:"button";return r.jsx(l,{className:ve(Wy({variant:t,size:n,className:e})),ref:a,...s})});
47je.displayName="Button";const qy={client:"/client/login",broker:"/brokers/login",admin:"/login",affiliate:"/login",funder:"/funding/login"},Gy=()=>{try{const e=sessionStorage.getItem("impersonating_as")||localStorage.getItem("impersonating_as");if(!e)return null;const t=JSON.parse(e);return t!=null&&t.target_role?String(t.target_role):null}catch{return null}},Yy=()=>{try{for(let e=0;e<localStorage.length;e++){const t=localStorage.key(e);if(t&&/^sb-[^-]+-auth-token$/.test(t)&&localStorage.getItem(t))return!0}}catch{}return!1},ue=({children:e,requiredRole:t,requireAffiliateOwner:n,requireAffiliatePermission:o})=>{const{user:s,loading:a,rolesLoading:l,rolesError:i,isAdmin:d,isAffiliate:f,isBroker:m,isFunder:h,roles:v,refreshRoles:p}=xt(),b=Kt(),x=zy(),y=v.includes("case_manager"),[E,A]=c.useState(()=>!s&&Yy());if(c.useEffect(()=>{if(!E)return;if(s){A(!1);return}let O=!1;return(async()=>{try{const{data:$}=await z.auth.getSession();$!=null&&$.session||await z.auth.refreshSession()}catch{}O||window.setTimeout(()=>{O||A(!1)},250)})(),()=>{O=!0}},[E,s]),a||E||s&&l||o&&x.loading)return r.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:r.jsx(yo,{className:"h-8 w-8 animate-spin text-muted-foreground"})});if(!s){const O=qy[t]||"/login";return r.jsx(F,{to:O,replace:!0,state:{from:b.pathname+b.search}})}if(i&&v.length===0)return r.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background px-4",children:r.jsxs("div",{className:"max-w-sm w-full text-center space-y-4",children:[r.jsx("div",{className:"mx-auto w-12 h-12 rounded-full bg-muted flex items-center justify-center",children:r.jsx(Vp,{className:"h-5 w-5 text-muted-foreground"})}),r.jsxs("div",{className:"space-y-1.5",children:[r.jsx("h1",{className:"text-base font-semibold text-foreground",children:"We couldn't load your account access"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"You're still signed in â this is usually a brief connection issue. Try again."})]}),r.jsx(je,{className:"w-full",onClick:()=>void p(),children:"Try again"})]})});const T=Gy()===t,j=v.includes("affiliate_staff"),S=v.includes("client"),C=["admin","broker","affiliate","affiliate_staff","funder","client"].some(O=>v.includes(O))?Hy(v):"/",D=()=>{const O=C&&!b.pathname.startsWith(C)?C:"/";return r.jsx(F,{to:O,replace:!0})};return t==="client"&&!S&&!d&&!T||t==="admin"&&!d&&!y&&!T||t==="affiliate"&&!f&&!d&&!j&&!T||t==="broker"&&!m&&!d&&!T||t==="funder"&&!h&&!d&&!T?D():n&&!x.loading&&x.isStaff&&!d?r.jsx(F,{to:"/partner",replace:!0}):o&&!x.loading&&x.isStaff&&!x.can(o)&&!d?r.jsx(F,{to:"/partner",replace:!0}):r.jsx(r.Fragment,{children:e})},Wu="ref_slug",qu="tra_ref_slug",Ky=60*60*24*365,$a=e=>{let t=(e||"").trim();if(!t)return"";if(/[/?=]/.test(t)){t=t.replace(/[?#].*$/,"");const n=t.match(/\/(?:ref|r)\/([^/]+)/i);t=n?n[1]:t.split("/").filter(Boolean).pop()||""}return t.trim().toLowerCase().replace(/[^a-z0-9-]/g,"")},Xy=()=>{if(typeof window>"u")return"";const e=window.location.hostname;if(!e||e==="localhost"||/^\d+\.\d+\.\d+\.\d+$/.test(e))return"";const t=e.split(".");return t.length<2?"":`; domain=.${t.slice(-2).join(".")}`},Gu=e=>{if(!(typeof document>"u"||!e))try{document.cookie=`${qu}=${encodeURIComponent(e)}; max-age=${Ky}; path=/; SameSite=Lax${Xy()}`}catch{}},Yu=()=>{if(typeof document>"u")return"";try{const e=document.cookie.match(new RegExp(`(?:^|;\\s*)${qu}=([^;]+)`));return e?$a(decodeURIComponent(e[1])):""}catch{return""}},Ir=()=>{try{const e=$a(localStorage.getItem(Wu));if(e)return e}catch{}return Yu()},dn=e=>{const t=$a(e);if(t){try{localStorage.setItem(Wu,t)}catch{}Gu(t)}},Fa=()=>
47{if(typeof window>"u")return;const e=new URLSearchParams(window.location.search),t=e.get("ref");t&&dn(t);const n={};if(["utm_source","utm_medium","utm_campaign","utm_content","utm_term"].forEach(o=>{const s=e.get(o);s&&(n[o]=s)}),Object.keys(n).length)try{const o=JSON.parse(sessionStorage.getItem("utm_data")||"{}");sessionStorage.setItem("utm_data",JSON.stringify({...o,...n}))}catch{sessionStorage.setItem("utm_data",JSON.stringify(n))}},Ku=(e,t)=>{const n=t??Ir();if(!n||/[?&]ref=/.test(e))return e;if(/^[a-z]+:\/\//i.test(e)&&typeof window<"u")try{if(new URL(e).origin!==window.location.origin)return e}catch{return e}const o=e.includes("?")?"&":"?";return`${e}${o}ref=${n}`},Jy=Object.freeze(Object.defineProperty({__proto__:null,captureFromLocation:Fa,persistRef:dn,readPersistedRef:Ir,readRefCookie:Yu,withRef:Ku,writeRefCookie:Gu},Symbol.toStringTag,{value:"Module"})),Ji="tra_pv_dedupe",Zy=5e3,Zi="tra_pa_session",Qy=["/partner","/affiliate","/admin","/command","/broker","/client","/funder","/funding","/account","/login","/logout","/auth","/onboarding","/impersonate"];function eb(e){return Qy.some(t=>e===t||e.startsWith(t+"/"))}function tb(){var e;try{let t=sessionStorage.getItem(Zi);return t||(t=((e=crypto==null?void 0:crypto.randomUUID)==null?void 0:e.call(crypto))??`s_${Date.now()}_${Math.random().toString(36).slice(2)}`,sessionStorage.setItem(Zi,t)),t}catch{return`s_${Date.now()}`}}function rb(){if(typeof window>"u")return{};const e=new URLSearchParams(window.location.search);return{utm_source:e.get("utm_source"),utm_medium:e.get("utm_medium"),utm_campaign:e.get("utm_campaign"),utm_term:e.get("utm_term"),utm_content:e.get("utm_content")}}async function nb(e){if(typeof window>"u")return;const t=(e.slug||Ir()||"").toLowerCase();if(!t)return;const n=e.path||window.location.pathname;if(e.type==="page_view"&&eb(n))return;if(e.type==="page_view")try{const l=sessionStorage.getItem(Ji),i=Date.now();if(l){const[d,f]=l.split("|");if(d===n&&i-Number(f)<Zy)return}sessionStorage.setItem(Ji,`${n}|${i}`)}catch{}const o=rb(),s=tb(),a={event_type:e.type,slug:t,path:n,dest:e.dest??null,lead_id:e.leadId??null,prev_status:e.prevStatus??null,new_status:e.newStatus??null,user_agent:navigator.userAgent||null,referrer:document.referrer||null,session_id:s,utm_source:o.utm_source,utm_medium:o.utm_medium,utm_campaign:o.utm_campaign,utm_term:o.utm_term,utm_content:o.utm_content,meta:e.meta??null};try{const{error:l}=await z.functions.invoke("partner-track",{body:a});if(!l)return}catch{}try{const{data:l}=await z.from("affiliates").select("id").or(`slug.eq.${t},secondary_slug.eq.${t}`).maybeSingle();await z.from("partner_analytics_events").insert({...a,affiliate_id:(l==null?void 0:l.id)??null})}catch{}}function bS(e,t){const n=i=>{if(i==null)return"";const d=String(i);return/[",\n]/.test(d)?`"${d.replace(/"/g,'""')}"`:d},o=t.map(i=>i.map(n).join(",")).join(` 48`),s=new Blob([o],{type:"text/csv;charset=utf-8;"}),a=URL.createObjectURL(s),l=document.createElement("a");l.href=a,l.download=e,document.body.appendChild(l),l.click(),document.body.removeChild(l),URL.revokeObjectURL(a)}const ob=()=>{const{pathname:e,search:t}=Kt();return c.useEffect(()=>{window.scrollTo({top:0,behavior:"smooth"})},[e]),c.useEffect(()=>{Fa()},[e,t]),c.useEffect(()=>{const o=(new URLSearchParams(t).get("ref")||"").trim().toLowerCase();o&&nb({type:"page_view",path:e,slug:o})},[e,t]),null};/*! @license DOMPurify 3.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.1/LICENSE */const{entries:Xu,setPrototypeOf:Qi,isFrozen:sb,getPrototypeOf:ab,getOwnPropertyDescriptor:ib}=Object;let{freeze:We,seal:dt,create:vr}=Object,{apply:Js,construct:Zs}=typeof Reflect<"u"&&Reflect;We||(We=function(t){return t});dt||(dt=function(t){return t});Js||(Js=function(t,n){for(var o=arguments.length,s=new Array(o>2?o-2:0),a=2;a<o;a++)s[a-2]=arguments[a];return t.apply(n,s)});Zs||(Zs=function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return new t(...o)});const Xr=Se(Array.prototype.forEach),lb=Se(Array.prototype.lastIndexOf),el=Se(Array.prototype.pop),Jr
vendor: 5,356 bytes, line 48
48=Se(Array.prototype.push),cb=Se(Array.prototype.splice),ze=Array.isArray,rn=Se(String.prototype.toLowerCase),ps=Se(String.prototype.toString),tl=Se(String.prototype.match),_r=Se(String.prototype.replace),rl=Se(String.prototype.indexOf),db=Se(String.prototype.trim),ub=Se(Number.prototype.toString),fb=Se(Boolean.prototype.toString),nl=typeof BigInt>"u"?null:Se(BigInt.prototype.toString),ol=typeof Symbol>"u"?null:Se(Symbol.prototype.toString),Ee=Se(Object.prototype.hasOwnProperty),Zr=Se(Object.prototype.toString),Me=Se(RegExp.prototype.test),$n=pb(TypeError);function Se(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,o=new Array(n>1?n-1:0),s=1;s<n;s++)o[s-1]=arguments[s];return Js(e,t,o)}}function pb(e){return function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Zs(e,n)}}function le(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:rn;if(Qi&&Qi(e,null),!ze(t))return e;let o=t.length;for(;o--;){let s=t[o];if(typeof s=="string"){const a=n(s);a!==s&&(sb(t)||(t[o]=a),s=a)}e[s]=!0}return e}function mb(e){for(let t=0;t<e.length;t++)Ee(e,t)||(e[t]=null);return e}function Xe(e){const t=vr(null);for(const[n,o]of Xu(e))Ee(e,n)&&(ze(o)?t[n]=mb(o):o&&typeof o=="object"&&o.constructor===Object?t[n]=Xe(o):t[n]=o);return t}function hb(e){switch(typeof e){case"string":return e;case"number":return ub(e);case"boolean":return fb(e);case"bigint":return nl?nl(e):"0";case"symbol":return ol?ol(e):"Symbol()";case"undefined":return Zr(e);case"function":case"object":{if(e===null)return Zr(e);const t=e,n=yr(t,"toString");if(typeof n=="function"){const o=n(t);return typeof o=="string"?o:Zr(o)}return Zr(e)}default:return Zr(e)}}function yr(e,t){for(;e!==null;){const o=ib(e,t);if(o){if(o.get)return Se(o.get);if(typeof o.value=="function")return Se(o.value)}e=ab(e)}function n(){return null}return n}function gb(e){try{return Me(e,""),!0}catch{return!1}}const sl=We(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ms=We(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),hs=We(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),_b=We(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),gs=We(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),xb=We(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),al=We(["#text"]),il=We(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
48spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),_s=We(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ll=We(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Fn=We(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vb=dt(/\{\{[\w\W]*|[\w\W]*\}\}/gm),yb=dt(/<%[\w\W]*|[\w\W]*%>/gm),bb=dt(/\$\{[\w\W]*/gm),wb=dt(/^data-[\-\w.\u00B7-\uFFFF]+$/),Eb=dt(/^aria-[\-\w]+$/),Ju=dt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),jb=dt(/^(?:\w+script|data):/i),Tb=dt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Zu=dt(/^html$/i),Ab=dt(/^[a-z][.\w]*(-[.\w]+)+$/i);var cl=Object.freeze({__proto__:null,ARIA_ATTR:Eb,ATTR_WHITESPACE:Tb,CUSTOM_ELEMENT:Ab,DATA_ATTR:wb,DOCTYPE_NAME:Zu,ERB_EXPR:yb,IS_ALLOWED_URI:Ju,IS_SCRIPT_OR_DATA:jb,MUSTACHE_EXPR:vb,TMPLIT_EXPR:bb});const Qr={element:1,text:3,progressingInstruction:7,comment:8,document:9},Rb=function(){return typeof window>"u"?null:window},Pb=function(t,n){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let o=null;
vendor: 4,670 bytes, line 48
48const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(o=n.getAttribute(s));const a="dompurify"+(o?"#"+o:"");try{return t.createPolicy(a,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+a+" could not be created."),null}},dl=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Qu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Rb();const t=Q=>Qu(Q);if(t.version="3.4.1",t.removed=[],!e||!e.document||e.document.nodeType!==Qr.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e;const o=n,s=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:l,Node:i,Element:d,NodeFilter:f,NamedNodeMap:m=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:v,trustedTypes:p}=e,b=d.prototype,x=yr(b,"cloneNode"),y=yr(b,"remove"),E=yr(b,"nextSibling"),A=yr(b,"childNodes"),R=yr(b,"parentNode");if(typeof l=="function"){const Q=n.createElement("template");Q.content&&Q.content.ownerDocument&&(n=Q.content.ownerDocument)}let T,j="";const{implementation:S,createNodeIterator:P,createDocumentFragment:C,getElementsByTagName:D}=n,{importNode:O}=o;let $=dl();t.isSupported=typeof Xu=="function"&&typeof R=="function"&&S&&S.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:I,ERB_EXPR:H,TMPLIT_EXPR:k,DATA_ATTR:K,ARIA_ATTR:W,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:N}=cl;let{IS_ALLOWED_URI:J}=cl,Z=null;const ee=le({},[...sl,...ms,...hs,...gs,...al]);let G=null;const ae=le({},[...il,..._s,...ll,...Fn]);let te=Object.seal(vr(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),fe=null,re=null;const ye=Object.seal(vr(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let _e=!0,me=!0,Ae=!1,Re=!0,V=!1,ce=!0,he=!1,Ce=!1,Ie=!1,se=!1,pe=!1,Oe=!1,yt=!0,Mt=!1;const Qe="user-content-";let Mr=!0,Qt=!1,Ne={},Le=null;const $r=le({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let En=null;const er=le({},["audio","video","img","source","image","track"]);let Fr=null;const Vr=le({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),$t="http://www.w3.org/1998/Math/MathML",ut="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let tt=et,Br=!1,Ur=null;const jn=le({},[$t,ut,et],ps);let ur=le({},["mi","mo","mn","ms","mtext"]),zr=le({},["annotation-xml"]);const Hr=le({},["title","style","font","a","script"]);let qe=null;const Bo=["application/xhtml+xml","text/html"],oe="text/html";let ne=null,de=null;const rt=n.createElement("form"),Ge=function(w){return w instanceof RegExp||w instanceof Function},st=function(){let w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(de&&de===w)return;(!w||typeof w!="object")&&(w={}),w=Xe(w),qe=Bo.indexOf(w.PARSER_MEDIA_TYPE)===-1?oe:w.PARSER_MEDIA_TYPE,ne=qe==="application/xhtml+xml"?ps:rn,Z=Ee(w,"ALLOWED_TAGS")&&ze(w.ALLOWED_TAGS)?le({},w.ALLOWED_TAGS,ne):ee,G=Ee(w,"ALLOWED_ATTR")&&ze(w.ALLOWED_ATTR)?le({},w.ALLOWED_ATTR,ne):ae,Ur=Ee(w,"ALLOWED_NAMESPACES")&&ze(w.ALLOWED_NAMESPACES)?le({},w.ALLOWED_NAMESPACES,ps):jn,Fr=Ee(w,"ADD_URI_SAFE_ATTR")&&ze(w.ADD_URI_SAFE_ATTR)?le(Xe(Vr),w.ADD_URI_SAFE_ATTR,ne):Vr,En=Ee(w,"ADD_DATA_URI_TAGS")&&ze(w.ADD_DATA_URI_TAGS)?le(Xe(er),w.ADD_DATA_URI_TAGS,ne):er,Le=Ee(w,"FORBID_CONTENTS")&&ze(w.FORBID_CONTENTS)?le({},w.FORBID_CONTENTS,ne):$r,fe=Ee(w,"FORBID_TAGS")&&ze(w.FORBID_TAGS)?le({},w.FORBID_TAGS,ne):Xe({}),re=Ee(w,"FORBID_ATTR")&&ze(w.FORBID_ATTR)?le({},w.FORBID_ATTR,ne):Xe({}),Ne=Ee(w,"USE_PROFILES")?w.USE_PROFILES&&typeof w.USE_PROFILES=="object"?Xe(w.USE_PROFILES):w.USE_PROFILES:!1,_e=w.ALLOW_ARIA_ATTR!==!1,me=w.ALLOW_DATA_ATTR!==!1,Ae=w.ALLOW_UNKNOWN_PROTOCOLS||!1,Re=w.ALLOW_SELF_CLOSE_IN_ATTR!==!1,V=w.SAFE_FOR_TEMPLATES||!1,ce=w.SAFE_FOR_XML!==!1,he=w.WHOLE_DOCUMENT||!1,se=w.RETURN_DOM||!1,pe=w.RETURN_DOM_FRAGMENT||!1,Oe=w.RETURN_TRUSTED_TYPE||!1,Ie=w.FORCE_BODY||!1,yt=w.SANITIZE_DOM!==!1,Mt=w.SANITIZE_NAMED_PROPS||!1,Mr=w.KEEP_CONTENT!==!1,Qt=w.IN_PLACE||!1,J=gb(w.ALLOWED_URI_REGEXP)?w.ALLOWED_URI_REGEXP:Ju,tt=typeof w.NAMESPACE=="str
48ing"?w.NAMESPACE:et,ur=Ee(w,"MATHML_TEXT_INTEGRATION_POINTS")&&w.MATHML_TEXT_INTEGRATION_POINTS&&typeof w.MATHML_TEXT_INTEGRATION_POINTS=="object"?Xe(w.MATHML_TEXT_INTEGRATION_POINTS):le({},["mi","mo","mn","ms","mtext"]),zr=Ee(w,"HTML_INTEGRATION_POINTS")&&w.HTML_INTEGRATION_POINTS&&typeof w.HTML_INTEGRATION_POINTS=="object"?Xe(w.HTML_INTEGRATION_POINTS):le({},["annotation-xml"]);const L=Ee(w,"CUSTOM_ELEMENT_HANDLING")&&w.CUSTOM_ELEMENT_HANDLING&&typeof w.CUSTOM_ELEMENT_HANDLING=="object"?Xe(w.CUSTOM_ELEMENT_HANDLING):vr(null);if(te=vr(null),Ee(L,"tagNameCheck")&&Ge(L.tagNameCheck)&&(te.tagNameCheck=L.tagNameCheck),Ee(L,"attributeNameCheck")&&Ge(L.attributeNameCheck)&&(te.attributeNameCheck=L.attributeNameCheck),Ee(L,"allowCustomizedBuiltInElements")&&typeof L.allowCustomizedBuiltInElements=="boolean"&&(te.allowCustomizedBuiltInElements=L.allowCustomizedBuiltInElements),V&&(me=!1),pe&&(se=!0),Ne&&(Z=le({},al),G=vr(null),Ne.html===!0&&(le(Z,sl),le(G,il)),Ne.svg===!0&&(le(Z,ms),le(G,_s),le(G,Fn)),Ne.svgFilters===!0&&(le(Z,hs),le(G,_s),le(G,Fn)),Ne.mathMl===!0&&(le(Z,gs),le(G,ll),le(G,Fn))),ye.tagCheck=null,ye.attributeCheck=null,Ee(w,"ADD_TAGS")&&(typeof w.ADD_TAGS=="function"?ye.tagCheck=w.ADD_TAGS:ze(w.ADD_TAGS)&&(Z===ee&&(Z=Xe(Z)),le(Z,w.ADD_TAGS,ne))),Ee(w,"ADD_ATTR")&&(typeof w.ADD_ATTR=="function"?ye.attributeCheck=w.ADD_ATTR:ze(w.ADD_ATTR)&&(G===ae&&(G=Xe(G)),le(G,w.ADD_ATTR,ne))),Ee(w,"ADD_URI_SAFE_ATTR")&&ze(w.ADD_URI_SAFE_ATTR)&&le(Fr,w.ADD_URI_SAFE_ATTR,ne),Ee(w,"FORBID_CONTENTS")&&ze(w.FORBID_CONTENTS)&&(Le===$r&&(Le=Xe(Le)),le(Le,w.FORBID_CONTENTS,ne)),Ee(w,"ADD_FORBID_CONTENTS")&&ze(w.ADD_FORBID_CONTENTS)&&(Le===$r&&(Le=Xe(Le)),le(Le,w.ADD_FORBID_CONTENTS,ne)),Mr&&(Z["#text"]=!0),he&&le(Z,["html","head","body"]),Z.table&&(le(Z,["tbody"]),delete fe.tbody),w.TRUSTED_TYPES_POLICY){if(typeof w.TRUSTED_TYPES_POLICY.createHTML!="function")throw $n('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof w.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw $n('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');T=w.TRUSTED_TYPES_POLICY,j=T.createHTML("")}else T===void 0&&(T=Pb(p,s)),T!==null&&typeof j=="string"&&(j=T.createHTML(""));We&&We(w),de=w},bt=le({},[...ms,...hs,..._b]),Ye=le({},[...gs,...xb]),wt=function(w){let L=R(w);(!L||!L.tagName)&&(L={namespaceURI:tt,tagName:"template"});const Y=rn(w.tagName),we=rn(L.tagName);return Ur[w.namespaceURI]?w.namespaceURI===ut?L.namespaceURI===et?Y==="svg":L.namespaceURI===$t?Y==="svg"&&(we==="annotation-xml"||ur[we]):!!bt[Y]:w.namespaceURI===$t?L.namespaceURI===et?Y==="math":L.namespaceURI===ut?Y==="math"&&zr[we]:!!Ye[Y]:w.namespaceURI===et?L.namespaceURI===ut&&!zr[we]||L.namespaceURI===$t&&!ur[we]?!1:!Ye[Y]&&(Hr[Y]||!bt[Y]):!!(qe==="application/xhtml+xml"&&Ur[w.namespaceURI]):!1},ft=function(w){Jr(t.removed,{element:w});try{R(w).removeChild(w)}catch{y(w)}},tr=function(w,L){try{Jr(t.removed,{attribute:L.getAttributeNode(w),from:L})}catch{Jr(t.removed,{attribute:null,from:L})}if(L.removeAttribute(w),w==="is")if(se||pe)try{ft(L)}catch{}else try{L.setAttribute(w,"")}catch{}},Ja=function(w){let L=null,Y=null;if(Ie)w="<remove></remove>"+w;else{const Pe=tl(w,/^[\r\n\t ]+/);Y=Pe&&Pe[0]}qe==="application/xhtml+xml"&&tt===et&&(w='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+w+"</body></html>");const we=T?T.createHTML(w):w;if(tt===et)try{L=new v().parseFromString(we,qe)}catch{}if(!L||!L.documentElement){L=S.createDocument(tt,"template",null);try{L.documentElement.innerHTML=Br?j:we}catch{}}const Fe=L.body||L.documentElement;return w&&Y&&Fe.insertBefore(n.createTextNode(Y),Fe.childNodes[0]||null),tt===et?D.call(L,he?"html":"body")[0]:he?L.documentElement:Fe},Za=function(w){return P.call(w.ownerDocument||w,w,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null)},Uo=function(w){return w instanceof h&&(typeof w.nodeName!="string"||typeof w.textContent!="string"||typeof w.removeChild!="function"||!(w.attributes instanceof m)||typeof w.removeAttribute!="function"||typeof w.setAttribute!="function"||typeof w.namespaceURI!="string"||typeof w.insertBefore!="function"||typeof w.hasChildNodes!="function")},zo=function(w){return typeof i=="function"&&w instanceof i};function Ct(Q,w,L){Xr(Q,Y=>{Y.call(t,w,L,de)})}const Qa=function(w){let L=null;if(Ct($.beforeSanitizeElements,w,null),Uo(w))return ft(w),!0;const Y=ne(w.nodeName);if(Ct($.uponSanitizeElement,w,{tagName:Y,allowedTags:Z}),ce&&w.hasChildNodes()&&!zo(w.firstElementChild)&&Me(/<[/\w!]/g,w.innerHTML)&&Me(/<[/\w!]/g,w.textContent)||ce&&w.namespaceURI===et&&Y==="style"&&zo(w.firstElementChild)||w.nodeType===Qr.progressingInstruction||
48ce&&w.nodeType===Qr.comment&&Me(/<[/\w]/g,w.data))return ft(w),!0;if(fe[Y]||!(ye.tagCheck instanceof Function&&ye.tagCheck(Y))&&!Z[Y]){if(!fe[Y]&&ti(Y)&&(te.tagNameCheck instanceof RegExp&&Me(te.tagNameCheck,Y)||te.tagNameCheck instanceof Function&&te.tagNameCheck(Y)))return!1;if(Mr&&!Le[Y]){const we=R(w)||w.parentNode,Fe=A(w)||w.childNodes;if(Fe&&we){const Pe=Fe.length;for(let Ke=Pe-1;Ke>=0;--Ke){const at=x(Fe[Ke],!0);we.insertBefore(at,E(w))}}}return ft(w),!0}return w instanceof d&&!wt(w)||(Y==="noscript"||Y==="noembed"||Y==="noframes")&&Me(/<\/no(script|embed|frames)/i,w.innerHTML)?(ft(w),!0):(V&&w.nodeType===Qr.text&&(L=w.textContent,Xr([I,H,k],we=>{L=_r(L,we," ")}),w.textContent!==L&&(Jr(t.removed,{element:w.cloneNode()}),w.textContent=L)),Ct($.afterSanitizeElements,w,null),!1)},ei=function(w,L,Y){if(re[L]||yt&&(L==="id"||L==="name")&&(Y in n||Y in rt))return!1;if(!(me&&!re[L]&&Me(K,L))){if(!(_e&&Me(W,L))){if(!(ye.attributeCheck instanceof Function&&ye.attributeCheck(L,w))){if(!G[L]||re[L]){if(!(ti(w)&&(te.tagNameCheck instanceof RegExp&&Me(te.tagNameCheck,w)||te.tagNameCheck instanceof Function&&te.tagNameCheck(w))&&(te.attributeNameCheck instanceof RegExp&&Me(te.attributeNameCheck,L)||te.attributeNameCheck instanceof Function&&te.attributeNameCheck(L,w))||L==="is"&&te.allowCustomizedBuiltInElements&&(te.tagNameCheck instanceof RegExp&&Me(te.tagNameCheck,Y)||te.tagNameCheck instanceof Function&&te.tagNameCheck(Y))))return!1}else if(!Fr[L]){if(!Me(J,_r(Y,U,""))){if(!((L==="src"||L==="xlink:href"||L==="href")&&w!=="script"&&rl(Y,"data:")===0&&En[w])){if(!(Ae&&!Me(B,_r(Y,U,"")))){if(Y)return!1}}}}}}}return!0},Sp=le({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ti=function(w){return!Sp[rn(w)]&&Me(N,w)},ri=function(w){Ct($.beforeSanitizeAttributes,w,null);const{attributes:L}=w;if(!L||Uo(w))return;const Y={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:G,forceKeepAttr:void 0};let we=L.length;for(;we--;){const Fe=L[we],{name:Pe,namespaceURI:Ke,value:at}=Fe,pt=ne(Pe),Ho=at;let ke=Pe==="value"?Ho:db(Ho);if(Y.attrName=pt,Y.attrValue=ke,Y.keepAttr=!0,Y.forceKeepAttr=void 0,Ct($.uponSanitizeAttribute,w,Y),ke=Y.attrValue,Mt&&(pt==="id"||pt==="name")&&rl(ke,Qe)!==0&&(tr(Pe,w),ke=Qe+ke),ce&&Me(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,ke)){tr(Pe,w);continue}if(pt==="attributename"&&tl(ke,"href")){tr(Pe,w);continue}if(Y.forceKeepAttr)continue;if(!Y.keepAttr){tr(Pe,w);continue}if(!Re&&Me(/\/>/i,ke)){tr(Pe,w);continue}V&&Xr([I,H,k],si=>{ke=_r(ke,si," ")});const oi=ne(w.nodeName);if(!ei(oi,pt,ke)){tr(Pe,w);continue}if(T&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Ke)switch(p.getAttributeType(oi,pt)){case"TrustedHTML":{ke=T.createHTML(ke);break}case"TrustedScriptURL":{ke=T.createScriptURL(ke);break}}if(ke!==Ho)try{Ke?w.setAttributeNS(Ke,Pe,ke):w.setAttribute(Pe,ke),Uo(w)?ft(w):el(t.removed)}catch{tr(Pe,w)}}Ct($.afterSanitizeAttributes,w,null)},ni=function(w){let L=null;const Y=Za(w);for(Ct($.beforeSanitizeShadowDOM,w,null);L=Y.nextNode();)Ct($.uponSanitizeShadowNode,L,null),Qa(L),ri(L),L.content instanceof a&&ni(L.content);Ct($.afterSanitizeShadowDOM,w,null)};return t.sanitize=function(Q){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},L=null,Y=null,we=null,Fe=null;if(Br=!Q,Br&&(Q="<!-->"),typeof Q!="string"&&!zo(Q)&&(Q=hb(Q),typeof Q!="string"))throw $n("dirty is not a string, aborting");if(!t.isSupported)return Q;if(Ce||st(w),t.removed=[],typeof Q=="string"&&(Qt=!1),Qt){const at=Q.nodeName;if(typeof at=="string"){const pt=ne(at);if(!Z[pt]||fe[pt])throw $n("root node is forbidden and cannot be sanitized in-place")}}else if(Q instanceof i)L=Ja("<!---->"),Y=L.ownerDocument.importNode(Q,!0),Y.nodeType===Qr.element&&Y.nodeName==="BODY"||Y.nodeName==="HTML"?L=Y:L.appendChild(Y);else{if(!se&&!V&&!he&&Q.indexOf("<")===-1)return T&&Oe?T.createHTML(Q):Q;if(L=Ja(Q),!L)return se?null:Oe?j:""}L&&Ie&&ft(L.firstChild);const Pe=Za(Qt?Q:L);for(;we=Pe.nextNode();)Qa(we),ri(we),we.content instanceof a&&ni(we.content);if(Qt)return Q;if(se){if(V){L.normalize();let at=L.innerHTML;Xr([I,H,k],pt=>{at=_r(at,pt," ")}),L.innerHTML=at}if(pe)for(Fe=C.call(L.ownerDocument);L.firstChild;)Fe.appendChild(L.firstChild);else Fe=L;return(G.shadowroot||G.shadowrootmode)&&(Fe=O.call(o,Fe,!0)),Fe}let Ke=he?L.outerHTML:L.innerHTML;return he&&Z["!doctype"]&&L.ownerDocument&&L.ownerDocument.doctype&&L.ownerDocument.doctype.name&&Me(Zu,L.ownerDocument.doctype.name)&&(Ke="<!DOCTYPE "+L.ownerDocument.doctype.name+`> 49`+Ke),V&&Xr([I,H,k],at=>{Ke=_r(Ke,at," ")}),T&&Oe?T.createHTML(Ke):Ke},t.setConfig=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};st(Q),Ce=!0},t.clearConfig=function(){de=null,Ce=!1},t.isValidAttribute=function(Q,w,L){de||st({});const Y=ne(Q),we=ne(w);return ei(Y,we,L)},t.addHook=function(Q,w){typeof w=="function"&&Jr($[Q],w)},t.removeHook=function(Q,w){if(w!==void 0){const L=lb($[Q],w);return L===-1?void 0:cb($[Q],L,1)[0]}return el($[Q])},t.removeHooks=function(Q){$[Q]=[]},t.removeAllHooks=function(){$=dl()},t}var ef=Qu();const wS=Object.freeze(Object.defineProperty({__proto__:null,default:ef},Symbol.toStringTag,{value:"Module"})),xs=new Map,ul=new Set;async function Sb(e){const t=`direct:${e}`;if(!xs.has(t)){const n=`https://selwlvtrbqdilvzwrlcv.supabase.co/functions/v1/partner-pixels-resolve?slug=${encodeURIComponent(e)}`;xs.set(t,fetch(n,{headers:{apikey:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InNlbHdsdnRyYnFkaWx2endybGN2Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzMzOTE3OTUsImV4cCI6MjA4ODk2Nzc5NX0.rInQHp4LXIg__Xgqj7WYfbS2Sm36rP_fp--zSgYdJ9w"}}).then(o=>o.json()).then(o=>(o==null?void 0:o.tracking)??{}).catch(()=>({})))}return xs.get(t)}function vs(e,t,n={}){if(document.getElementById(e))return;const o=document.createElement("script");o.id=e,o.src=t,o.async=!0;for(const[s,a]of Object.entries(n))o.setAttribute(s,a);document.head.appendChild(o)}function Ve(e,t){if(document.getElementById(e))return;const n=document.createElement("script");n.id=e,n.text=t,document.head.appendChild(n)}function fl(e,t,n){if(!t||document.getElementById(e))return;const o=document.createElement("div");o.id=e,o.innerHTML=ef.sanitize(t,{ADD_TAGS:["script","noscript"],ADD_ATTR:["async","defer","src","type","crossorigin","integrity","data-domain","data-site"],FORCE_BODY:!0});const s=n==="head"?document.head:document.body;for(;o.firstChild;)s.appendChild(o.firstChild)}function Cb(e,t){const n=`${e}:${JSON.stringify(t)}`;if(ul.has(n))return;ul.add(n);
49const o=[t.google_ads_id,t.ga4_id].filter(Boolean);o.length&&(vs("tra-gtag-lib",`https://www.googletagmanager.com/gtag/js?id=${o[0]}`),Ve("tra-gtag-init",` 50 window.dataLayer = window.dataLayer || []; 51 function gtag(){dataLayer.push(arguments);} 52 gtag('js', new Date()); 53 ${o.map(s=>`gtag('config', '${s}');`).join(` 54`)} 55 `)),t.gtm_id&&Ve("tra-gtm",`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 56 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 57 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 58 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 59 })(window,document,'script','dataLayer','${t.gtm_id}');`),t.meta_pixel_id&&Ve("tra-fbq",`!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){ 60 n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; 61 n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; 62 t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document, 63 'script','https://connect.facebook.net/en_US/fbevents.js');fbq('init','${t.meta_pixel_id}'); 64 fbq('track','PageView');`),t.tiktok_pixel_id&&Ve("tra-ttq",`!function(w,d,t){w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[]; 65 ttq.methods=["page","track","identify","instances","debug","on","off","once","ready","alias","group","enableCookie","disableCookie"]; 66 ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}; 67 for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]); 68 ttq.instance=function(t){for(var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e}; 69 ttq.load=function(e,n){var i="https://analytics.tiktok.com/i18n/pixel/events.js",o=n&&n.partner; 70 ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=i,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{}; 71 var s=document.createElement("script");s.type="text/javascript",s.async=!0,s.src=i+"?sdkid="+e+"&lib=ttq"; 72 var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(s,a)}; 73 ttq.load('${t.tiktok_pixel_id}');ttq.page();}(window,document,'ttq');`),t.linkedin_partner_id&&Ve("tra-li",`_linkedin_partner_id="${t.linkedin_partner_id}"; 74 window._linkedin_data_partner_ids=window._linkedin_data_partner_ids||[]; 75 window._linkedin_data_partner_ids.push(_linkedin_partner_id); 76 (function(l){if(!l){window.lintrk=function(a,b){window.lintrk.q.push([a,b])};window.lintrk.q=[]} 77 var s=document.getElementsByTagName("script")[0];var b=document.createElement("script"); 78 b.type="text/javascript";b.async=true;b.src="https://snap.licdn.com/li.lms-analytics/insight.min.js"; 79 s.parentNode.insertBefore(b,s);})(window.lintrk);`),t.twitter_pixel_id&&Ve("tra-twq",`!function(e,t,n,s,u,a){e.twq||(s=e.twq=function(){s.exe?s.exe.apply(s,arguments):s.queue.push(arguments)}, 80 s.version='1.1',s.queue=[],u=t.createElement(n),u.async=!0,u.src='https://static.ads-twitter.com/uwt.js', 81 a=t.getElementsByTagName(n)[0],a.parentNode.insertBefore(u,a))}(window,document,'script'); 82 twq('config','${t.twitter_pixel_id}');`),t.pinterest_tag_id&&Ve("tra-pin",`!function(e){if(!window.pintrk){window.pintrk=function(){window.pintrk.queue.push(Array.prototype.slice.call(arguments))};var n=window.pintrk;n.queue=[],n.version="3.0";var t=document.createElement("script");t.async=!0,t.src=e;var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(t,r)}}("https://s.pinimg.com/ct/core.js"); 83 pintrk('load','${t.pinterest_tag_id}');pintrk('page');`),t.snapchat_pixel_id&&Ve("tra-snap",`(function(e,t,n){if(e.snaptr)return;var a=e.snaptr=function(){a.handleRequest?a.handleRequest.apply(a,arguments):a.queue.push(arguments)};a.queue=[];var s='script';r=t.createElement(s);r.async=!0;r.src=n;var u=t.getElementsByTagName(s)[0];u.parentNode.insertBefore(r,u);})(window,document,'https://sc-static.net/scevent.min.js'); 84 snaptr('init','${t.snapchat_pixel_id}');snaptr('track','PAGE_VIEW');`),t.reddit_pixel_id&&Ve("tra-rdt",`!function(w,d){if(!w.rdt){var p=w.rdt=function(){p.sendEvent?p.sendEvent.apply(p,arguments):p.callQueue.push(arguments)};p.callQueue=[];var t=d.createElement("script");t.src="https://www.redditstatic.com/ads/pixel.js",t.async=!0;var s=d.getElementsByTagName("script")[0];s.parentNode.insertBefore(t,s)}}(window,document); 85 rdt('init','${t.reddit_pixel_id}');rdt('track','PageVisit');`),t.quora_pixel_id&&Ve("tra-qp",`!function(q,e,v,n,t,s){if(q.qp)return;n=q.qp=function(){n.qp?n.qp.apply(n,arguments):n.queue.push(arguments)};n.queue=[];t=document.createElement(e);t.async=!0;t.src=v;s=document.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,document,'script','https://a.quora.com/qevents.js'); 86 qp('init','${t.quora_pixel_id}');qp('track','ViewContent');`),t.bing_uet_id&&Ve("tra-uet",`(function(w,d,t,r,u){var f,n,i;w[u]=w[u]||[],f=function(){var o={ti:"${t.bing_uet_id}"};o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad")},n=d.createElement(t),n.src=r,n.async=1,n.onload=n.onreadystatechange=function(){var s=this.readyState;s&&s!=="loaded"&&s!=="complete"||(f(),n.onload=n.onreadystatechange=null)},i=d.getElementsByTagName(t)[0],i.parentNode.insertBefore(n,i)})(window,document,"script","//bat.bing.com/bat.js","uetq");`),t.plausible_domain&&vs("tra-plausible","https://plausible.io/js/script.
86js",{"data-domain":t.plausible_domain}),t.fathom_site_id&&vs("tra-fathom","https://cdn.usefathom.com/script.js",{"data-site":t.fathom_site_id}),t.posthog_key&&Ve("tra-posthog",`!function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(".");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement("script")).type="text/javascript",p.async=!0,p.src=s.api_host+"/static/array.js",(r=t.getElementsByTagName("script")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a="posthog",u.people=u.people||[],u.toString=function(t){var e="posthog";return"posthog"!==a&&(e+="."+a),t||(e+=" (stub)"),e},u.people.toString=function(){return u.toString(1)+".people (stub)"},o="capture identify alias people.set people.set_once set_config register register_once unregister opt_out_capturing has_opted_out_capturing opt_in_capturing reset isFeatureEnabled onFeatureFlags getFeatureFlag getFeatureFlagPayload reloadFeatureFlags group updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures getActiveMatchingSurveys getSurveys onSessionId".split(" "),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]); 87 posthog.init('${t.posthog_key}',{api_host:'${t.posthog_host||"https://us.i.posthog.com"}'});`),t.mixpanel_token&&Ve("tra-mp",`(function(f,b){if(!b.__SV){var e,g,i,h;window.mixpanel=b;b._i=[];b.init=function(e,f,c){function g(a,d){var b=d.split(".");2==b.length&&(a=a[b[0]],d=b[1]);a[d]=function(){a.push([d].concat(Array.prototype.slice.call(arguments,0)))}}var a=b;"undefined"!==typeof c?a=b[c]=[]:c="mixpanel";a.people=a.people||[];a.toString=function(a){var d="mixpanel";"mixpanel"!==c&&(d+="."+c);a||(d+=" (stub)");return d};a.people.toString=function(){return a.toString(1)+".people (stub)"};i="disable time_event track track_pageview track_links track_forms register register_once alias unregister identify name_tag set_config reset people.set people.set_once people.unset people.increment people.append people.union people.track_charge people.clear_charges people.delete_user".split(" ");for(h=0;h<i.length;h++)g(a,i[h]);b._i.push([e,f,c])};b.__SV=1.2;e=f.createElement("script");e.type="text/javascript";e.async=!0;e.src="https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js";g=f.getElementsByTagName("script")[0];g.parentNode.insertBefore(e,g)}})(document,window.mixpanel||[]); 88 mixpanel.init('${t.mixpanel_token}');mixpanel.track('page_view');`),t.hotjar_site_id&&Ve("tra-hj",`(function(h,o,t,j,a,r){h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};h._hjSettings={hjid:${t.hotjar_site_id},hjsv:6};a=o.getElementsByTagName('head')[0];r=o.createElement('script');r.async=1;r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;a.appendChild(r);})(window,document,'https://static.hotjar.com/c/hotjar-',\`.js?sv=\`);`),t.clarity_id&&Ve("tra-clarity",`(function(c,l,a,r,i,t,y){c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y)})(window,document,"clarity","script","${t.clarity_id}");`),t.fullstory_org&&Ve("tra-fs",`window['_fs_host']='fullstory.com';window['_fs_script']='edge.fullstory.com/s/fs.js';window['_fs_org']='${t.fullstory_org}';window['_fs_namespace']='FS'; 89 (function(m,n,e,t,l,o,g,y){var s,f,a=function(h){g=m[e]=function(){g.q?g.q.push(h):g._api(h)};g.q=[];o=n.createElement(t);o.async=1;o.crossOrigin='anonymous';o.src='https://'+_fs_script;y=n.getElementsByTagName(t)[0];y.parentNode.insertBefore(o,y)};a({});})(window,document,window['_fs_namespace'],'script');`),t.custom_head&&fl("tra-custom-head",String(t.custom_head),"head"),t.custom_body_end&&fl("tra-custom-body-end",String(t.custom_body_end),"body-end")}function Ib({slug:e}){const[t,n]=c.useState(!1);return c.useEffect(()=>{const o=(e||"").trim().toLowerCase();o&&Sb(o).then(s=>{Cb(o,s),n(!0)})},[e]),null}function Mo(){const e=Kt();c.useEffect(()=>{Fa()},[e.pathname,e.search]);const t=c.useMemo(()=>
89{if(typeof window>"u")return"";const s=new URLSearchParams(window.location.search).get("ref")||"";return s?(dn(s),s.trim().toLowerCase().replace(/[^a-z0-9-]/g,"")):Ir()},[e.pathname,e.search]);return{slug:t,withRef:o=>Ku(o,t)}}const tf="tra_domain_ref_v1:",rf="tra_domain_ref_checked_v1:",Nb="tra_domain_broker_v1",Ob=24*60*60*1e3,ys=new Map;function kb(e){try{const t=localStorage.getItem(`${tf}${e}`);if(!t)return;const n=JSON.parse(t);return!n.timestamp||Date.now()-n.timestamp>Ob||n.attribution===void 0?void 0:n.attribution||null}catch{return}}function Db(e,t){try{localStorage.setItem(`${tf}${e}`,JSON.stringify({slug:(t==null?void 0:t.ref_slug)??null,attribution:t,timestamp:Date.now()}))}catch{}}function Lb(e){try{return sessionStorage.getItem(`${rf}${e}`)==="1"}catch{return!1}}function pl(e){try{sessionStorage.setItem(`${rf}${e}`,"1")}catch{}}function ml(e){if(e!=null&&e.broker_id)try{localStorage.setItem(Nb,JSON.stringify({broker_id:e.broker_id,broker_name:e.broker_name??null,broker_company:e.broker_company??null,host:typeof window<"u"?window.location.hostname:null}))}catch{}}function Mb(){c.useEffect(()=>{if(typeof window>"u")return;const e=window.location.hostname.toLowerCase().replace(/^www\./,"");if(!e||e==="localhost"||e.includes("lovable.app"))return;const t=!!Ir(),n=kb(e);if(n!==void 0){n!=null&&n.ref_slug&&!t&&dn(n.ref_slug),ml(n);return}if(Lb(e))return;let o=!1;return(async()=>{ys.has(e)||ys.set(e,Promise.resolve(z.rpc("get_domain_attribution",{_host:e})).then(({data:a})=>{const l=Array.isArray(a)?a[0]:a,i=l!=null&&l.ref_slug||l!=null&&l.broker_id?l:null;return Db(e,i),pl(e),i}).catch(()=>(pl(e),null)));const s=await ys.get(e);o||(s!=null&&s.ref_slug&&!Ir()&&dn(s.ref_slug),ml(s??null))})(),()=>{o=!0}},[])}function $b(){Mb();const{slug:e}=Mo();return r.jsx(Ib,{slug:e})}class Fb extends c.Component{constructor(){super(...arguments);Et(this,"state",{hasError:!1,error:null,errorInfo:null})}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,o){this.setState({errorInfo:o}),console.error("ErrorBoundary caught:",n,o),g(async()=>{const{reportError:s}=await import("./error-reporter-EYiXaqJQ.js").then(a=>a.e);return{reportError:s}},__vite__mapDeps([6,1,2,7])).then(({reportError:s})=>{var a;s(n,{component:"ErrorBoundary",severity:"critical",details:{component_stack:(a=o.componentStack)==null?void 0:a.slice(0,4e3)}})}).catch(()=>{})}render(){return this.state.hasError?this.props.fallback?this.props.fallback:r.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background px-4",children:r.jsxs("div",{className:"max-w-md text-center space-y-4",children:[r.jsx("div",{className:"w-16 h-16 rounded-full bg-destructive/10 flex items-center justify-center mx-auto",children:r.jsx(Bp,{className:"h-8 w-8 text-destructive"})}),r.jsx("h1",{className:"font-display font-semibold text-xl text-foreground",children:"Something went wrong"}),r.jsx("p",{className:"text-sm text-muted-foreground",children:"An unexpected error occurred. Please try refreshing the page. If the problem persists, contact support."}),this.state.error&&r.jsxs("details",{className:"text-left",children:[r.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:"Technical details"}),r.jsx("p",{className:"text-xs text-muted-foreground bg-muted rounded-lg p-3 font-mono break-all mt-2",children:this.state.error.message})]}),r.jsxs("div",{className:"flex gap-3 justify-center",children:[r.jsxs(je,{variant:"outline",onClick:()=>{this.setState({hasError:!1,error:null,errorInfo:null}),window.location.href="/"},className:"gap-2",children:[r.jsx(Up,{className:"h-4 w-4"})," Go Home"]}),r.jsxs(je,{onClick:()=>{this.setState({hasError:!1,error:null,errorInfo:null}),window.location.reload()},className:"bg-primary text-primary-foreground gap-2",children:[r.jsx(zp,{className:"h-4 w-4"})," Reload Page"]})]})]})}):this.props.children}}const hl={en:{"nav.dashboard":"Dashboard","nav.my_claims":"My Claims","nav.documents":"Documents","nav.notifications":"Notifications","nav.help":"Help & Support","nav.account":"My Account","nav.logout":"Logout","dashboard.welcome":"Welcome Back","dashboard.track_claims":"Track your tariff refund claims","dashboard.new_claim":"New Claim","dashboard.no_claims":"No Claims Yet","dashboard.submit_first":"Submit your first claim to check eligibility for a tariff refund.","dashboard.check_refund":"Check My Tariff Refund","dashboard.your_claims":"Your Claims","dashboard.active_claims":"Active Claims","dashboard.est_refund":"Est. Refund","dashboard.recovered":"Recovered","dashboard.completed":"Completed","dashboard.overall_progress":"Overall Progress","dashboard.refund_overview":"Refund Overview","action.continue_application":"Continue Application","action.sign_agreements":"Sign Agreements","action.upload_documents":"Upload Documents","action.submit_review":"Submit for Review","action.view_claims":"View Claims","status.submitted":"Submitted","status.in_review":"In Review","status.approved":"Approved","status.filed":"Filed with CBP","status.refund_received":"Refund Received","common.loading":"Loading...","common.save":"Save","common.cancel":"Cancel","common.search":"Search","common.export":"Export","common.download":"Download","common.view":"View","common.edit":"Edit","common.delete":"Delete","common.confirm":"Confirm","common.back":"Back","common.next":"Next","common.submit":"Submit","broker.consent_request":"Broker Acce
89ss Request","broker.approve":"Approve Access","broker.deny":"Deny Access","deadline.urgent":"URGENT","deadline.action_needed":"ACTION NEEDED","deadline.upcoming":"UPCOMING","help.title":"Help & Support","help.faq":"Frequently Asked Questions","help.contact":"Contact Support"},es:{"nav.dashboard":"Panel Principal","nav.my_claims":"Mis Reclamos","nav.documents":"Documentos","nav.notifications":"Notificaciones","nav.help":"Ayuda y Soporte","nav.account":"Mi Cuenta","nav.logout":"Cerrar Sesión","dashboard.welcome":"Bienvenido","dashboard.track_claims":"Rastrea tus reclamos de reembolso de aranceles","dashboard.new_claim":"Nuevo Reclamo","dashboard.no_claims":"Sin Reclamos Aún","dashboard.submit_first":"EnvÃa tu primer reclamo para verificar la elegibilidad para un reembolso de aranceles.","dashboard.check_refund":"Verificar Mi Reembolso","dashboard.your_claims":"Tus Reclamos","dashboard.active_claims":"Reclamos Activos","dashboard.est_refund":"Reembolso Est.","dashboard.recovered":"Recuperado","dashboard.completed":"Completado","dashboard.overall_progress":"Progreso General","dashboard.refund_overview":"Resumen de Reembolsos","action.continue_application":"Continuar Solicitud","action.sign_agreements":"Firmar Acuerdos","action.upload_documents":"Subir Documentos","action.submit_review":"Enviar para Revisión","action.view_claims":"Ver Reclamos","status.submitted":"Enviado","status.in_review":"En Revisión","status.approved":"Aprobado","status.filed":"Presentado ante CBP","status.refund_received":"Reembolso Recibido","common.loading":"Cargando...","common.save":"Guardar","common.cancel":"Cancelar","common.search":"Buscar","common.export":"Exportar","common.download":"Descargar","common.view":"Ver","common.edit":"Editar","common.delete":"Eliminar","common.confirm":"Confirmar","common.back":"Atrás","common.next":"Siguiente","common.submit":"Enviar","broker.consent_request":"Solicitud de Acceso del Agente","broker.approve":"Aprobar Acceso","broker.deny":"Denegar Acceso","deadline.urgent":"URGENTE","deadline.action_needed":"ACCIÃN REQUERIDA","deadline.upcoming":"PRÃXIMO","help.title":"Ayuda y Soporte","help.faq":"Preguntas Frecuentes","help.contact":"Contactar Soporte"}};function Vb(e){try{localStorage.setItem("tra_locale",e)}catch{}}function nf(){try{const e=localStorage.getItem("tra_locale");if(e==="en"||e==="es")return e}catch{}return"en"}function of(e,t){var s;const n=nf();let o=((s=hl[n])==null?void 0:s[e])||hl.en[e]||e;return t&&Object.entries(t).forEach(([a,l])=>{o=o.replace(new RegExp(`\\{${a}\\}`,"g"),l)}),o}const Bb=c.createContext({locale:"en",setLocale:()=>{},t:of}),Ub=({children:e})=>{const[t,n]=c.useState(nf),o=c.useCallback(s=>{n(s),Vb(s)},[]);return r.jsx(Bb.Provider,{value:{locale:t,setLocale:o,t:of},children:e})},zb=new Set(["SCRIPT","STYLE","NOSCRIPT","CODE","PRE","TEXTAREA","SVG","CANVAS","IFRAME"]),sf=["placeholder","title","aria-label","alt"],Hb=[/^[\s\d.,:;$%+\-()/\\|#*&@°'"â]+$/,/^[\d.,]+\s*%$/,/^[A-Z0-9-]{2,}$/,/^\S+@\S+\.\S+$/,/^(https?:\/\/|www\.|\/)\S*$/i,/^\+?\d[\d\s().-]{6,}$/],gl=e=>{const t=e.trim();return t.length<2||!/[A-Za-z]/.test(t)?!1:!Hb.some(n=>n.test(t))},_l=e=>{var n,o;let t=e.nodeType===Node.TEXT_NODE?e.parentElement:e;for(;t;){if(zb.has(t.tagName)||(n=t.hasAttribute)!=null&&n.call(t,"data-no-translate")||((o=t.getAttribute)==null?void 0:o.call(t,"translate"))==="no")return!0;t=t.parentElement}return!1},or=new WeakMap,to=new WeakMap,xl=new Map,$o=e=>{let t=xl.get(e);if(!t){t=new Map,xl.set(e,t);try{const n=sessionStorage.getItem(`tra_tx_${e}`);n&&Object.entries(JSON.parse(n)).forEach(([o,s])=>t.set(o,s))}catch{}}return t};let vl;const Wb=e=>{window.clearTimeout(vl),vl=window.setTimeout(()=>{try{const t=$o(e);sessionStorage.setItem(`tra_tx_${e}`,JSON.stringify(Object.fromEntries(t)))}catch{}},1200)},qb=e=>{var a,l;const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT,{acceptNode:i=>{const d=i.nodeValue??"";return!gl(or.get(i)??d)||_l(i)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT}});let o;for(;o=n.nextNode();){const i=o;or.has(i)||or.set(i,i.nodeValue??"");const d=or.get(i);t.push({source:d.trim(),apply:f=>{var v,p;const m=((v=d.match(/^\s*/))==null?void 0:v[0])??"",h=((p=d.match(/\s*$/))==null?void 0:p[0])??"";i.nodeValue=`${m}${f}${h}`}})}const s=[];e.nodeType===Node.ELEMENT_NODE&&s.push(e),s.push(...Array.from(((a=e.querySelectorAll)==null?void 0:a.call(e,"[placeholder],[title],[aria-label],[alt]"))??[]));
89for(const i of s)if(!_l(i))for(const d of sf){const f=(l=to.get(i))==null?void 0:l[d],m=i.getAttribute(d);if(f==null&&m==null)continue;const h=f??m;if(!gl(h))continue;const v=to.get(i)??{};v[d]=h,to.set(i,v),t.push({source:h.trim(),apply:p=>i.setAttribute(d,p)})}return t},Gb=e=>{var s;const t=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);let n;for(;n=t.nextNode();){const a=or.get(n);a!=null&&(n.nodeValue=a)}const o=[...e.nodeType===Node.ELEMENT_NODE?[e]:[],...Array.from(((s=e.querySelectorAll)==null?void 0:s.call(e,"*"))??[])];for(const a of o){const l=to.get(a);if(l)for(const[i,d]of Object.entries(l))d!=null&&a.setAttribute(i,d)}},yl=60,Yb=async(e,t,n)=>{const o=$o(e),s=t.filter(l=>!o.has(l));if(!s.length)return;const a=[];for(let l=0;l<s.length;l+=yl)a.push(s.slice(l,l+yl));await Promise.all(a.map(async l=>{try{const{data:i,error:d}=await z.functions.invoke("translate-batch",{body:{lang:e,strings:l}});if(d)throw d;const f=(i==null?void 0:i.translations)??{};Object.entries(f).forEach(([m,h])=>o.set(m,h)),l.forEach(m=>{o.has(m)||o.set(m,m)}),n==null||n()}catch(i){console.warn("[translate] batch failed",i)}})),Wb(e)};let Rr="en",sr=null,Qs=[],bl,ea=!1;const af=async e=>{if(Rr==="en")return;const t=Rr,n=e.flatMap(i=>i.isConnected?qb(i):[]);if(!n.length)return;const o=$o(t),s=Array.from(new Set(n.map(i=>i.source))),a=()=>{if(Rr===t)for(const i of n){const d=o.get(i.source);d&&d!==i.source&&i.apply(d)}};a();const l=s.filter(i=>!o.has(i));l.length&&(await Yb(t,l,a),a())},Kb=()=>{const e=Qs;Qs=[],e.length&&af(e)},wl=e=>{Qs.push(e),window.clearTimeout(bl),bl=window.setTimeout(Kb,120)},Xb=()=>{sr||(sr=new MutationObserver(e=>{var t;if(!(Rr==="en"||ea)){for(const n of e)if(n.type==="childList")n.addedNodes.forEach(o=>{(o.nodeType===Node.TEXT_NODE||o.nodeType===Node.ELEMENT_NODE)&&wl(o)});else if(n.type==="characterData"&&n.target.nodeType===Node.TEXT_NODE){const o=n.target,s=or.get(o),a=$o(Rr);(s==null||a.get(s.trim())!==((t=o.nodeValue)==null?void 0:t.trim()))&&(or.delete(o),wl(o))}}}),sr.observe(document.body,{childList:!0,subtree:!0,characterData:!0,attributeFilter:[...sf]}))},Jb=()=>{sr==null||sr.disconnect(),sr=null},Zb=async e=>{if(Rr=e,document.documentElement.lang=e,document.documentElement.dir=e==="ar"?"rtl":"ltr",e==="en"){Jb(),Gb(document.body);return}ea=!0;try{await af([document.body])}finally{ea=!1,Xb()}},ro=[{code:"en",native:"English",english:"English",flag:"ðºð¸"},{code:"es",native:"Español",english:"Spanish",flag:"ðªð¸"},{code:"fr",native:"Français",english:"French",flag:"ð«ð·"},{code:"de",native:"Deutsch",english:"German",flag:"ð©ðª"},{code:"pt",native:"Português",english:"Portuguese",flag:"ð§ð·"},{code:"it",native:"Italiano",english:"Italian",flag:"ð®ð¹"},{code:"zh",native:"䏿",english:"Chinese (Simplified)",flag:"ð¨ð³"},{code:"ja",native:"æ¥æ¬èª",english:"Japanese",flag:"ð¯ðµ"},{code:"ko",native:"íêµì´",english:"Korean",flag:"ð°ð·"},{code:"hi",native:"हिनà¥à¤¦à¥",english:"Hindi",flag:"ð®ð³"},{code:"ar",native:"Ø§ÙØ¹Ø±Ø¨ÙØ©",english:"Arabic",flag:"ð¸ð¦",rtl:!0}],Qb=ro.map(e=>e.code),no=e=>typeof e=="string"&&Qb.includes(e),lf="tra_lang",ta="tra_lang",cf=c.createContext({language:"en",setLanguage:()=>{},translating:!1}),ew=e=>{var t;try{return(t=document.cookie.split("; ").find(n=>n.startsWith(`${e}=`)))==null?void 0:t.split("=")[1]}catch{return}},El=e=>{try{document.cookie=`${lf}=${e}; path=/; max-age=${60*60*24*365}; SameSite=Lax`}catch{}},jl=()=>{const e=ew(lf);if(no(e))return e;try{const t=localStorage.getItem(ta);if(no(t))return t;const n=localStorage.getItem("tra_locale");if(no(n))return n}catch{}return"en"},tw=({children:e})=>{const[t,n]=c.useState(()=>jl()),[o,s]=c.useState(!1),a=c.useRef(null),l=c.useRef(!1),i=c.useCallback(async f=>{s(f!=="en");try{await Zb(f)}finally{s(!1)}},[]),d=c.useCallback(f=>{l.current=!0,n(f),El(f);try{localStorage.setItem(ta,f)}catch{}i(f);const m=a.current;m&&z.from("profiles").update({preferred_language:f}).eq("id",m)},[i]);return c.useEffect(()=>{t!=="en"&&i(t)},[]),c.useEffect(()=>{let f=!1;const m=async v=>{if(a.current=v,!v)return;const{data:p}=await z.from("profiles").select("preferred_language").eq("id",v).maybeSingle();if(f)return;const b=p==null?void 0:p.preferred_language,x=jl();if(l.current||x!=="en"){b!==x&&z.from("profiles").update({preferred_language:x}).eq("id",v);return}if(no(b)&&b!=="en"){n(b),El(b);try{localStorage.setItem(ta,b)}catch{}i(b)}};z.auth.getSession().then(({data:v})=>{var p,b;m(((b=(p=v.session)==null?void 0:p.user)==null?void 0:b.id)??null)});const{data:h}=z.auth.onAuthStateChange((v,p)=>{var x;const b=((x=p==null?void 0:p.user)==null?void 0:x.id)??null;b!==a.current&&m(b)});return()=>{f=!0,h.subscription.unsubscribe()}},[i]),r.jsx(cf.Provider,{value:{language:t,setLanguage:d,translating:o},children:e})},rw=()=>c.useContext(cf),Vn="impersonating_as",nw="tra_impersonation_tab";function Tl(e){return/^sb-[^-]+-(auth-token|code-verifier|provider-token|refresh-token)/.test(e)}
89async function df(){const e=(()=>{try{const n=sessionStorage.getItem(Vn)||localStorage.getItem(Vn),o=n?JSON.parse(n):null;return String((o==null?void 0:o.target_email)||"").toLowerCase()}catch{return""}})();try{sessionStorage.removeItem(Vn)}catch{}try{localStorage.removeItem(Vn)}catch{}try{sessionStorage.removeItem(nw)}catch{}try{await Promise.race([z.auth.signOut({scope:"local"}),new Promise(n=>setTimeout(n,600))])}catch{}(n=>{try{for(let o=n.length-1;o>=0;o--){const s=n.key(o);s&&Tl(s)&&n.removeItem(s)}}catch{}})(window.sessionStorage);try{if(e)for(let n=window.localStorage.length-1;n>=0;n--){const o=window.localStorage.key(n);if(!o||!Tl(o))continue;(window.localStorage.getItem(o)||"").toLowerCase().includes(e)&&window.localStorage.removeItem(o)}}catch{}try{window.close()}catch{}setTimeout(()=>{window.location.replace("/")},150)}const bs="impersonating_as",ow=()=>{const[e,t]=c.useState(null);if(c.useEffect(()=>{let o=!0;const s=async()=>{var p,b,x,y;let i=null;try{i=sessionStorage.getItem(bs)||localStorage.getItem(bs)}catch{}if(!i){o&&t(null);return}let d=null;try{d=JSON.parse(i)}catch{d=null}if(!d){o&&t(null);return}const{data:{session:f}}=await z.auth.getSession(),m=(b=(p=f==null?void 0:f.user)==null?void 0:p.email)==null?void 0:b.toLowerCase(),h=(x=d.target_email)==null?void 0:x.toLowerCase(),v=(y=d.original_admin_email)==null?void 0:y.toLowerCase();m&&h&&m===h&&m!==v?o&&t(d):o&&t(null)};s();const a=i=>{i.key===bs&&s()};window.addEventListener("storage",a);const{data:l}=z.auth.onAuthStateChange(()=>s());return()=>{o=!1,window.removeEventListener("storage",a),l.subscription.unsubscribe()}},[]),c.useEffect(()=>{const o="impersonating";return e?document.body.classList.add(o):document.body.classList.remove(o),()=>document.body.classList.remove(o)},[e]),!e)return null;const n=()=>{df()};return r.jsx("div",{className:"sticky top-0 z-40 bg-gold/95 text-navy border-b border-gold-foreground/20 shadow-sm",children:r.jsxs("div",{className:"max-w-screen-2xl mx-auto px-4 h-9 flex items-center justify-between gap-3 flex-wrap text-xs",children:[r.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[r.jsxs("span",{className:"relative flex h-2 w-2 shrink-0",children:[r.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-navy/60 opacity-75"}),r.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-navy"})]}),r.jsx(br,{className:"h-3.5 w-3.5 flex-shrink-0"}),r.jsxs("span",{className:"font-mono uppercase tracking-wider font-semibold truncate",children:["Impersonating ",r.jsx("span",{className:"font-bold",children:e.target_label}),r.jsxs("span",{className:"opacity-70 normal-case font-sans",children:[" · ",e.target_role]}),e.original_admin_email&&r.jsxs("span",{className:"opacity-60 ml-2 hidden sm:inline normal-case font-sans",children:["signed in by ",e.original_admin_email]})]})]}),r.jsxs(je,{size:"sm",variant:"outline",onClick:n,className:"gap-1.5 h-6 text-[11px] border-navy/30 bg-transparent text-navy hover:bg-navy/10 hover:text-navy",children:[r.jsx(Ac,{className:"h-3 w-3"}),"Exit"]})]})})},uf=()=>{const{tenant:e}=Be();return{ieepaCrmEnabled:!!e.features_ieepa_crm_enabled}};function sw(){const{user:e}=xt();return!!vo({queryKey:["is_corporate_affiliate",e==null?void 0:e.id],enabled:!!(e!=null&&e.id),queryFn:async()=>{var o;const{data:n}=await z.from("affiliates").select("is_corporate").eq("user_id",e.id).order("is_corporate",{ascending:!1}).limit(1);return!!((o=n==null?void 0:n[0])!=null&&o.is_corporate)}}).data}function ff(e){const t=uf();return e==="ieepa_crm"?t.ieepaCrmEnabled:!0}function aw(e){const{user:t,isAdmin:n,loading:o}=xt(),s=ff(e),a=vo({queryKey:["entitlement",e,t==null?void 0:t.id],enabled:!!(t!=null&&t.id)&&!n,queryFn:async()=>{const{data:i,error:d}=await z.rpc("has_active_product",{_user_id:t.id,_product_key:e});if(d)throw d;return!!i}}),l=n||!!a.data;return{entitled:s?l:n,rawEntitled:l,isAdmin:n,loading:o||a.isLoading,tenantEnabled:s}}function iw(e){return vo({queryKey:["product_settings",e],queryFn:async()=>{const{data:t,error:n}=await z.from("product_settings").select("*").eq("product_key",e).maybeSingle();if(n)throw n;return t}})}function lw(){const{user:e}=xt();return vo({queryKey:["partner_grants",e==null?void 0:e.id],enabled:!!(e!=null&&e.id),queryFn:async()=>{const{data:t,error:n}=await z.from("partner_grants").select("product_key, grant_type, expires_at, revoked_at").eq("user_id",e.id);if(n)throw n;const o=Date.now();return(t??[]).filter(s=>!s.revoked_at&&(!s.expires_at||new Date(s.expires_at).getTime()>o))}})}function cw(e,t){const{data:n}=lw();return(n??[]).some(o=>o.product_key===e&&o.grant_type===t)}function ES(e,t){const{isAdmin:n}=xt(),o=iw(e),s=cw(e,"promo_preview"),a=ff(e),l=sw(),i=o.data;return a?!i||!i.is_active?{visible:!1,settings:i}:l&&!n?{visible:!1,settings:i}:(t==="callout"?i.promo_callout_enabled:t==="dialog"?i.promo_dialog_enabled:i.sales_page_enabled)?i.admin_preview_only&&!n&&!s?{visible:!1,settings:i}:{visible:!0,settings:i}:{visible:!1,settings:i}:{visible:!1,settings:i}}function xr({children:e,redirect:t}){const{ieepaCrmEnabled:n}=uf(),{rawEntitled:o,loading:s}=aw("ieepa_crm");return s?null:n||o?r.jsx(r.Fragment,{children:e}):t?r.jsx(F,{to:t,replace:!0}):null}const dw="60294e44-4f02-4611-baeb-ea7039999419",jS="8b9f0ece-d211-4d1c-8b34-551de6ba4197",Bn={direct:20,upline:10,tertiary:5},Al=new Map;async function Rl(e){const t=Al.get(e);if(t)return t;const n=(async()=>{const{data:o,error:s}=await z.from("org_partner_tiers").select("slug, pool_offer_pct, is_default").eq("organization_id",e);s&&console.warn("[loadOrgTierMap] failed for org",e,s.message);const a={};let l=null;
89return(o||[]).forEach(i=>{const d=i.pool_offer_pct==null?null:Number(i.pool_offer_pct);i.slug&&d!=null&&(a[i.slug]=d),i.is_default&&d!=null&&(l=d)}),l!=null&&(a.__default__=l),a})();return Al.set(e,n),n}const Pl=new Map;async function uw(e){const t=Pl.get(e);if(t)return t;const n=(async()=>{const{data:o}=await z.from("org_partner_tiers").select("slug, label, pool_offer_pct, is_waterfall_rollup, sort_order").eq("organization_id",e).order("sort_order",{ascending:!0});return(o||[]).map(s=>({slug:s.slug,label:s.label,pct:Number(s.pool_offer_pct)||0,rollup:!!s.is_waterfall_rollup,sort_order:Number(s.sort_order)||0}))})();return Pl.set(e,n),n}function fw(e){if(!e)return null;const t=e.pool_pct!=null?Number(e.pool_pct):null;return Number.isFinite(t)?t:null}async function TS(e){try{const{data:t}=await z.from("affiliates").select("id, custom_direct_rate, custom_upline_rate, comp_plan_id, organization_id, pool_pct, comp_model, is_corporate, org_tier_slug").eq("user_id",e).order("is_corporate",{ascending:!1}).order("created_at",{ascending:!1}).limit(1),n=(t==null?void 0:t[0])??null;let o=0;if(n!=null&&n.id){const[{data:S},{data:P}]=await Promise.all([z.from("affiliate_tra_topups").select("topup_pct").eq("affiliate_id",n.id).is("revoked_at",null).maybeSingle(),z.from("affiliate_partner_overrides").select("override_pct").eq("recipient_affiliate_id",n.id).eq("is_topup",!0).is("revoked_at",null)]);S&&(o+=Number(S.topup_pct)||0),(P||[]).forEach(C=>{o+=Number(C.override_pct)||0})}let s=fw(n),a=0,l=null,i,d,f=[];if(n&&n.organization_id&&n.org_tier_slug&&!n.is_corporate){f=await uw(n.organization_id);const S=String(n.org_tier_slug).toLowerCase(),P=f.find(C=>C.slug===S);if(P&&(d=P.label),s==null){const C=await Rl(n.organization_id),D=C[S]??C.__default__;D!=null?s=Number(D):n&&n.org_tier_slug&&(console.warn("[resolvePartnerRates] org tier map empty for",n.organization_id,"slug=",S,"â check org_partner_tiers RLS."),s=0)}}else if(n&&s==null&&n.organization_id&&n.org_tier_slug){const S=await Rl(n.organization_id),P=String(n.org_tier_slug).toLowerCase(),C=S[P]??S.__default__;C!=null&&(s=Number(C))}if(n&&n.organization_id){const{data:S}=await z.from("comp_plans").select("direct_upline_bonus_pct, total_org_allocation_pct, plan_name").eq("organization_id",n.organization_id).eq("is_active",!0).maybeSingle();S&&(a=Number(S.direct_upline_bonus_pct)||0,l=S.total_org_allocation_pct!=null?Number(S.total_org_allocation_pct):null,i=S.plan_name||void 0)}const m=f.some(S=>S.rollup)||a>0;if(n&&s!=null){const S=Number(s);return m?{direct:S,upline:a,tertiary:0,pool_pct:S,comp_model:"org_tier_waterfall",tra_topup_pct:o||void 0,effective_total_pct:S+a+o,upline_bonus_pct:a||void 0,org_total_pct:l??void 0,plan_name:i,rank_label:d,rank_slug:n.org_tier_slug||void 0,waterfall_tiers:f.map(({slug:P,label:C,pct:D,rollup:O})=>({slug:P,label:C,pct:D,rollup:O}))}:{direct:S,upline:a,tertiary:0,pool_pct:S,comp_model:"pool",tra_topup_pct:o||void 0,effective_total_pct:S+o,upline_bonus_pct:a||void 0}}let h=null,v=null,p=null,b="standard",x=!1,y,E;const A=!!(n!=null&&n.is_corporate);if(n){const{data:S}=await z.from("affiliate_custom_invites").select("custom_direct_rate, custom_upline_rate, comp_plan_id").eq("accepted_by_affiliate_id",n.id).order("accepted_at",{ascending:!1}).limit(1).maybeSingle();let P=n.comp_plan_id??(S==null?void 0:S.comp_plan_id),C=null;if(!P&&n.organization_id){const{data:D}=await z.from("comp_plans").select("id, plan_name, total_org_allocation_pct, direct_rate_pct, tier_overrides").eq("organization_id",n.organization_id).eq("is_active",!0).maybeSingle();C=D,P=(D==null?void 0:D.id)??null}if(A&&P){const{data:D}=C?{data:C}:await z.from("comp_plans").select("plan_name, total_org_allocation_pct, direct_rate_pct, tier_overrides").eq("id",P).maybeSingle(),O=D;if(O&&O.total_org_allocation_pct!=null){const $=Number(O.total_org_allocation_pct),I=Number(O.direct_rate_pct??0),k=(Array.isArray(O.tier_overrides)?O.tier_overrides:[]).map(B=>Number((B==null?void 0:B.rate)??(B==null?void 0:B.rate_pct)??(B==null?void 0:B.upline_rate)??0)).filter(B=>Number.isFinite(B)),K=k.reduce((B,U)=>B+U,0),W=Math.max(0,$-I-K);return{direct:I+W,upline:k[0]??0,tertiary:k[1]??0,comp_model:"org_corporate",is_corporate:!0,tra_topup_pct:o||void 0,effective_total_pct:$+o,org_total_pct:$,org_direct_pct:I,org_tier_rates:k,corp_remainder_pct:W,plan_name:O.plan_name||void 0}}}if(S&&(S.custom_direct_rate!=null&&(h=Number(S.custom_direct_rate)),S.custom_upline_rate!=null&&(v=Number(S.custom_upline_rate))),h==null&&n.custom_direct_rate!=null&&(h=Number(n.custom_direct_rate)),v==null&&n.custom_upline_rate!=null&&(v=Number(n.custom_upline_rate)),x=v!=null,P){const{data:D}=C?{data:C}:await z.from("comp_plans").select("plan_name, direct_rate_pct, tier_overrides").eq("id",P).maybeSingle(),O=D;if(O){b="org_plan",E=O.plan_name||void 0,h==null&&O.direct_rate_pct!=null&&(h=Number(O.direct_rate_pct));const $=O.tier_overrides;Array.isArray($)&&(y=$.map(I=>Number((I==null?void 0:I.rate)??(I==null?void 0:I.rate_pct)??(I==null?void 0:I.upline_rate)??0)).filter(I=>Number.isFinite(I)),v==null&&y[0]!=null&&(v=y[0]),p==null&&y[1]!=null&&(p=y[1]))}}}const R=b==="org_plan",T=R&&(!y||y.length===0);if(!R&&(h==null||v==null)){const{data:S}=await z.from("commission_settings").select("setting_key, setting_value"),P={};
89(S||[]).forEach(C=>{P[C.setting_key]=C.setting_value}),h==null&&P.direct_referral_rate&&(h=Number(P.direct_referral_rate)),v==null&&P.upline_sponsor_rate&&(v=Number(P.upline_sponsor_rate)),p==null&&P.tertiary_referral_rate&&(p=Number(P.tertiary_referral_rate))}R&&(x||(v=(y==null?void 0:y[0])??0),p=(y==null?void 0:y[1])??0),p==null&&(p=T?0:v!=null?Math.round(v/2*100)/100:Bn.tertiary),T&&(v=0,p=0);const j=h??Bn.direct;return{direct:j,upline:R?v??0:v??Bn.upline,tertiary:p,comp_model:b,is_corporate:A,tra_topup_pct:o||void 0,effective_total_pct:j+o,...b==="org_plan"?{org_tier_rates:y??[]}:{},...b==="org_plan"&&E?{plan_name:E}:{}}}catch(t){return console.warn("[resolvePartnerRates] fallback to defaults:",t),{...Bn,comp_model:"standard"}}}function pw(e){const t=["zero","one","two","three","four","five","six","seven","eight","nine","ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"],n=["","","twenty","thirty","forty","fifty","sixty","seventy","eighty","ninety"],o=Math.round(e);if(o<0||o>100)return String(o);if(o===100)return"one hundred";if(o<20)return t[o];const s=Math.floor(o/10),a=o%10;return a===0?n[s]:`${n[s]}-${t[a]}`}function AS(e){return Number.isInteger(e)?`${pw(e)} percent (${e}%)`:`${e} percent (${e}%)`}function mw({className:e,...t}){return r.jsx("div",{className:ve("animate-pulse rounded-md bg-muted",e),...t})}function hw({children:e}){const{user:t,loading:n}=xt(),[o,s]=c.useState("loading");return c.useEffect(()=>{if(n)return;if(!t){s("deny");return}let a=!1;return(async()=>{const{data:l}=await z.rpc("has_role",{_user_id:t.id,_role:"admin"});if(a)return;if(l===!0){s("allow");return}const{data:i}=await z.from("affiliates").select("id, is_corporate, organization_id").eq("user_id",t.id).eq("is_corporate",!0).eq("organization_id",dw).maybeSingle();a||s(i?"allow":"deny")})(),()=>{a=!0}},[t,n]),n||o==="loading"?r.jsx("div",{className:"p-6",children:r.jsx(mw,{className:"h-32 w-full"})}):o==="deny"?r.jsx(F,{to:"/partner",replace:!0}):r.jsx(r.Fragment,{children:e})}const pf=({title:e,description:t,canonical:n,ogImage:o,noindex:s=!1,structuredData:a=[],breadcrumbs:l,article:i,ogType:d="website"})=>r.jsx(Fy,{title:e,description:t,canonicalUrl:n,ogImage:o,noIndex:s,schema:a.length>0?a:void 0,breadcrumbs:l,article:i?{publishedTime:i.publishedTime,modifiedTime:i.modifiedTime,section:i.section}:void 0,ogType:d});function gw(e){c.useEffect(()=>{if(typeof window>"u"||new URLSearchParams(window.location.search).get("thumb")!=="1")return;let n=!1;const o=()=>{n||document.documentElement.setAttribute("data-thumb-ready","1")};return(async()=>{var l;document.readyState!=="complete"&&await new Promise(i=>window.addEventListener("load",()=>i(),{once:!0}));try{await((l=document.fonts)==null?void 0:l.ready)}catch{}const a=Array.from(document.images);await Promise.all(a.map(i=>i.complete?Promise.resolve():new Promise(d=>{i.addEventListener("load",()=>d(),{once:!0}),i.addEventListener("error",()=>d(),{once:!0})}))),await new Promise(i=>setTimeout(i,250)),o()})(),()=>{n=!0}},[e])}const mf=c.createContext({mode:"live",setMode:()=>{},dataSourceFilter:"live"}),Sl="tra_admin_data_mode",RS=({children:e})=>{const[t,n]=c.useState(()=>{try{return localStorage.getItem(Sl)==="sandbox"?"sandbox":"live"}catch{return"live"}}),o=s=>{n(s);try{localStorage.setItem(Sl,s)}catch{}};return r.jsx(mf.Provider,{value:{mode:t,setMode:o,dataSourceFilter:t},children:e})},_w=()=>c.useContext(mf),un="tra:open-chat";function hf(e={}){typeof window>"u"||window.dispatchEvent(new CustomEvent(un,{detail:e}))}function PS(e){if(typeof window>"u")return()=>{};const t=n=>{const o=n.detail??{};e(o)};return window.addEventListener(un,t),()=>window.removeEventListener(un,t)}function SS(e=300,t={}){return new Promise(n=>{if(typeof window>"u")return n(!1);let o=!1;const s=()=>{o=!0};window.addEventListener("tra:chat-opened",s,{once:!0}),hf(t),setTimeout(()=>{window.removeEventListener("tra:chat-opened",s),n(o)},e)})}var xw=c.createContext(void 0);function gf(e){const t=c.useContext(xw);return e||t||"ltr"}var ws="rovingFocusGroup.onEntryFocus",vw={bubbles:!1,cancelable:!0},vn="RovingFocusGroup",[ra,_f,yw]=da(vn),[bw,xf]=Xt(vn,[yw]),[ww,Ew]=bw(vn),vf=c.forwardRef((e,t)=>
vendor: 17,659 bytes, line 89
89r.jsx(ra.Provider,{scope:e.__scopeRovingFocusGroup,children:r.jsx(ra.Slot,{scope:e.__scopeRovingFocusGroup,children:r.jsx(jw,{...e,ref:t})})}));vf.displayName=vn;var jw=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:o,loop:s=!1,dir:a,currentTabStopId:l,defaultCurrentTabStopId:i,onCurrentTabStopIdChange:d,onEntryFocus:f,preventScrollOnEntryFocus:m=!1,...h}=e,v=c.useRef(null),p=Te(t,v),b=gf(a),[x,y]=Or({prop:l,defaultProp:i??null,onChange:d,caller:vn}),[E,A]=c.useState(!1),R=Ze(f),T=_f(n),j=c.useRef(!1),[S,P]=c.useState(0);return c.useEffect(()=>{const C=v.current;if(C)return C.addEventListener(ws,R),()=>C.removeEventListener(ws,R)},[R]),r.jsx(ww,{scope:n,orientation:o,dir:b,loop:s,currentTabStopId:x,onItemFocus:c.useCallback(C=>y(C),[y]),onItemShiftTab:c.useCallback(()=>A(!0),[]),onFocusableItemAdd:c.useCallback(()=>P(C=>C+1),[]),onFocusableItemRemove:c.useCallback(()=>P(C=>C-1),[]),children:r.jsx(xe.div,{tabIndex:E||S===0?-1:0,"data-orientation":o,...h,ref:p,style:{outline:"none",...e.style},onMouseDown:X(e.onMouseDown,()=>{j.current=!0}),onFocus:X(e.onFocus,C=>{const D=!j.current;if(C.target===C.currentTarget&&D&&!E){const O=new CustomEvent(ws,vw);if(C.currentTarget.dispatchEvent(O),!O.defaultPrevented){const $=T().filter(W=>W.focusable),I=$.find(W=>W.active),H=$.find(W=>W.id===x),K=[I,H,...$].filter(Boolean).map(W=>W.ref.current);wf(K,m)}}j.current=!1}),onBlur:X(e.onBlur,()=>A(!1))})})}),yf="RovingFocusGroupItem",bf=c.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:o=!0,active:s=!1,tabStopId:a,children:l,...i}=e,d=Ot(),f=a||d,m=Ew(yf,n),h=m.currentTabStopId===f,v=_f(n),{onFocusableItemAdd:p,onFocusableItemRemove:b,currentTabStopId:x}=m;return c.useEffect(()=>{if(o)return p(),()=>b()},[o,p,b]),r.jsx(ra.ItemSlot,{scope:n,id:f,focusable:o,active:s,children:r.jsx(xe.span,{tabIndex:h?0:-1,"data-orientation":m.orientation,...i,ref:t,onMouseDown:X(e.onMouseDown,y=>{o?m.onItemFocus(f):y.preventDefault()}),onFocus:X(e.onFocus,()=>m.onItemFocus(f)),onKeyDown:X(e.onKeyDown,y=>{if(y.key==="Tab"&&y.shiftKey){m.onItemShiftTab();return}if(y.target!==y.currentTarget)return;const E=Rw(y,m.orientation,m.dir);if(E!==void 0){if(y.metaKey||y.ctrlKey||y.altKey||y.shiftKey)return;y.preventDefault();let R=v().filter(T=>T.focusable).map(T=>T.ref.current);if(E==="last")R.reverse();else if(E==="prev"||E==="next"){E==="prev"&&R.reverse();const T=R.indexOf(y.currentTarget);R=m.loop?Pw(R,T+1):R.slice(T+1)}setTimeout(()=>wf(R))}}),children:typeof l=="function"?l({isCurrentTabStop:h,hasTabStop:x!=null}):l})})});bf.displayName=yf;var Tw={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Aw(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Rw(e,t,n){const o=Aw(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(o))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(o)))return Tw[o]}function wf(e,t=!1){const n=document.activeElement;for(const o of e)if(o===n||(o.focus({preventScroll:t}),document.activeElement!==n))return}function Pw(e,t){return e.map((n,o)=>e[(t+o)%e.length])}var Sw=vf,Cw=bf,na=["Enter"," "],Iw=["ArrowDown","PageUp","Home"],Ef=["ArrowUp","PageDown","End"],Nw=[...Iw,...Ef],Ow={ltr:[...na,"ArrowRight"],rtl:[...na,"ArrowLeft"]},kw={ltr:["ArrowLeft"],rtl:["ArrowRight"]},yn="Menu",[fn,Dw,Lw]=da(yn),[dr,jf]=Xt(yn,[Lw,Io,xf]),bn=Io(),Tf=xf(),[Af,Zt]=dr(yn),[Mw,wn]=dr(yn),Rf=e=>{const{__scopeMenu:t,open:n=!1,children:o,dir:s,onOpenChange:a,modal:l=!0}=e,i=bn(t),[d,f]=c.useState(null),m=c.useRef(!1),h=Ze(a),v=gf(s);return c.useEffect(()=>{const p=()=>{m.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>m.current=!1;return document.addEventListener("keydown",p,{capture:!0}),()=>{document.removeEventListener("keydown",p,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),r.jsx(Aa,{...i,children:r.jsx(Af,{scope:t,open:n,onOpenChange:h,content:d,onContentChange:f,children:r.jsx(Mw,{scope:t,onClose:c.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:m,dir:v,modal:l,children:o})})})};Rf.displayName=yn;var $w="MenuAnchor",Va=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,s=bn(n);return r.jsx(Wd,{...s,...o,ref:t})});Va.displayName=$w;var Ba="MenuPortal",[Fw,Pf]=dr(Ba,{forceMount:void 0}),Sf=e=>{const{__scopeMenu:t,forceMount:n,children:o,container:s}=e,a=Zt(Ba,t);return r.jsx(Fw,{scope:t,forceMount:n,children:r.jsx(Pt,{present:n||a.open,children:r.jsx(To,{asChild:!0,container:s,children:o})})})};Sf.displayName=Ba;var ct="MenuContent",[Vw,Ua]=dr(ct),Cf=c.forwardRef((e,t)=>{const n=Pf(ct,e.__scopeMenu),{forceMount:o=n.forceMount,...s}=e,a=Zt(ct,e.__scopeMenu),l=wn(ct,e.__scopeMenu);return r.jsx(fn.Provider,{scope:e.__scopeMenu,children:r.jsx(Pt,{present:o||a.open,children:r.jsx(fn.Slot,{scope:e.__scopeMenu,children:l.modal?r.jsx(Bw,{...s,ref:t}):r.jsx(Uw,{...s,ref:t})})})})}),Bw=c.forwardRef((e,t)=>{const n=Zt(ct,e.__scopeMenu),o=c.useRef(null),s=Te(t,o);return c.useEffect(()=>{const a=o.current;if(a)return _u(a)},[]),r.jsx(za,{...e,ref:s,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:X(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Uw=c.forwardRef((e,t)=>{const n=Zt(ct,e.__scopeMenu);return r.jsx(za,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),zw=Pr("MenuContent.ScrollLock"),za=c.forwardRef((e,t)=>{const{__scopeMenu:n,loop:o=!1,trapFocus:s,onOpenAutoFocus:a,onCloseAutoFocus:l,disableOutsidePointerEvents:i,onEntryFocus:d,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:v,onDismiss:p,disableOutsideScroll:b,...x}=e,y=Zt(ct,n),E=wn(ct,n),A=bn(n),R=Tf(n),T=Dw(n),[j,S]=c.useState(null),P=c.useRef(null),C=Te(t,P,y.onContentChange),D=c.useRef(0),O=c.useRef(""),$=c.useRef(0),I=c.useRef(null),H=c.useRef("right"),k=c.useRef(0),K=b?Ca:c.Fragment,W=b?{as:zw,allowPinchZoom:!0}:void 0,B=N=>{var re,ye;const J=O.current+N,Z=T().filter(_e=>!_e.disabled),ee=document.activeElement,G=(re=Z.find(_e=>_e.ref.current===ee))==null?void 0:re.textValue,ae=Z.map(_e=>_e.textValue),te=t0(ae,J,G),fe=(ye=Z.find(_e=>_e.textValue===te))==null?void 0:ye.ref.current;(function _e(me){O.current=me,window.clearTimeout(D.current),me!==""&&(D.current=window.setTimeout(()=>_e(""),1e3))})(J),fe&&setTimeout(()=>fe.focus())};c.useEffect(()=>()=>window.clearTimeout(D.current),[]),cu();const U=c.useCallback(N=>{var Z,ee;return H.current===((Z=I.current)==null?void 0:Z.side)&&n0(N,(ee=I.current)==null?void 0:ee.area)},[]);return r.jsx(Vw,{scope:n,searchRef:O,onItemEnter:c.useCallback(N=>{U(N)&&N.preventDefault()},[U]),onItemLeave:c.useCallback(N=>{var J;U(N)||((J=P.current)==null||J.focus(),S(null))},[U]),onTriggerLeave:c.useCallback(N=>{U(N)&&N.preventDefault()},[U]),pointerGraceTimerRef:$,onPointerGraceIntentChange:c.useCallback(N=>{I.current=N},[]),children:r.jsx(K,{...W,children:r.jsx(Sa,{asChild:!0,trapped:s,onMountAutoFocus:X(a,N=>{var J;N.preventDefault(),(J=P.current)==null||J.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:r.jsx(hn,{asChild:!0,disableOutsidePointerEvents:i,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:v,onDismiss:p,children:r.jsx(Sw,{asChild:!0,...R,dir:E.dir,orientation:"vertical",loop:o,currentTabStopId:j,onCurrentTabStopIdChange:S,onEntryFocus:X(d,N=>{E.isUsingKeyboardRef.current||N.preventDefault()}),preventScrollOnEntryFocus:!0,children:r.jsx(qd,{role:"menu","aria-orientation":"vertical","data-state":Gf(y.open),"data-radix-menu-content":"",dir:E.dir,...A,...x,ref:C,style:{outline:"none",...x.style},onKeyDown:X(x.onKeyDown,N=>{const Z=N.target.closest("[data-radix-menu-content]")===N.currentTarget,ee=N.ctrlKey||N.altKey||N.metaKey,G=N.key.length===1;Z&&(N.key==="Tab"&&N.preventDefault(),!ee&&G&&B(N.key));const ae=P.current;if(N.target!==ae||!Nw.includes(N.key))return;N.preventDefault();const fe=T().filter(re=>!re.disabled).map(re=>re.ref.current);Ef.includes(N.key)&&fe.reverse(),Qw(fe)}),onBlur:X(e.onBlur,N=>{N.currentTarget.contains(N.target)||(window.clearTimeout(D.current),O.current="")}),onPointerMove:X(e.onPointerMove,pn(N=>{const J=N.target,Z=k.current!==N.clientX;if(N.currentTarget.contains(J)&&Z){const ee=N.clientX>k.current?"right":"left";H.current=ee,k.current=N.clientX}}))})})})})})})});Cf.displayName=ct;var Hw="MenuGroup",Ha=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.jsx(xe.div,{role:"group",...o,ref:t})});Ha.displayName=Hw;var Ww="MenuLabel",If=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.jsx(xe.div,{...o,ref:t})});If.displayName=Ww;var go="MenuItem",Cl="menu.itemSelect",Fo=c.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:o,...s}=e,a=c.useRef(null),l=wn(go,e.__scopeMenu),i=Ua(go,e.__scopeMenu),d=Te(t,a),f=c.useRef(!1),m=()=>{const h=a.current;if(!n&&h){const v=new CustomEvent(Cl,{bubbles:!0,cancelable:!0});h.addEventListener(Cl,p=>o==null?void 0:o(p),{once:!0}),ua(h,v),v.defaultPrevented?f.current=!1:l.onClose()}};return r.jsx(Nf,{...s,ref:d,disabled:n,onClick:X(e.onClick,m),onPointerDown:h=>{var v;(v=e.onPointerDown)==null||v.call(e,h),f.current=!0},onPointerUp:X(e.onPointerUp,h=>{var v;f.current||(v=h.currentTarget)==null||v.click()}),onKeyDown:X(e.onKeyDown,h=>{const v=i.searchRef.current!=="";n||v&&h.key===" "||na.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});Fo.displayName=go;var Nf=c.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:o=!1,textValue:s,...a}=e,l=Ua(go,n),i=Tf(n),d=c.useRef(null),f=Te(t,d),[m,h]=c.useState(!1),[v,p]=c.useState("");return c.useEffect(()=>{const b=d.current;b&&p((b.textContent??"").trim())},[a.children]),r.jsx(fn.ItemSlot,{scope:n,disabled:o,textValue:s??v,children:r.jsx(Cw,{asChild:!0,...i,focusable:!o,children:r.jsx(xe.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...a,ref:f,onPointerMove:X(e.onPointerMove,pn(b=>{o?l.onItemLeave(b):(l.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:X(e.onPointerLeave,pn(b=>l.onItemLeave(b))),onFocus:X(e.onFocus,()=>h(!0)),onBlur:X(e.onBlur,()=>h(!1))})})})}),qw="MenuCheckboxItem",Of=c.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:o,...s}=e;return r.jsx($f,{scope:e.__scopeMenu,checked:n,children:r.jsx(Fo,{role:"menuitemcheckbox","aria-checked":_o(n)?"mixed":n,...s,ref:t,"data-state":Ga(n),onSelect:X(s.onSelect,()=>o==null?void 0:o(_o(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Of.displayName=qw;var kf="MenuRadioGroup",[Gw,Yw]=dr(kf,{value:void 0,onValueChange:()=>{}}),Df=c.forwardRef((e,t)=>{const{value:n,onValueChange:o,...s}=e,a=Ze(o);return r.jsx(Gw,{scope:e.__scopeMenu,value:n,onValueChange:a,children:r.jsx(Ha,{...s,ref:t})})});Df.displayName=kf;var Lf="MenuRadioItem",Mf=c.forwardRef((e,t)=>{const{value:n,...o}=e,s=Yw(Lf,e.__scopeMenu),a=n===s.value;return r.jsx($f,{scope:e.__scopeMenu,checked:a,children:r.jsx(Fo,{role:"menuitemradio","aria-checked":a,...o,ref:t,"data-state":Ga(a),onSelect:X(o.onSelect,()=>{var l;return(l=s.onValueChange)==null?void 0:l.call(s,n)},{checkForDefaultPrevented:!1})})})});Mf.displayName=Lf;var Wa="MenuItemIndicator",[$f,Kw]=dr(Wa,{checked:!1}),Ff=c.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:o,...s}=e,a=Kw(Wa,n);return r.jsx(Pt,{present:o||_o(a.checked)||a.checked===!0,children:r.jsx(xe.span,{...s,ref:t,"data-state":Ga(a.checked)})})});Ff.displayName=Wa;var Xw="MenuSeparator",Vf=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e;return r.jsx(xe.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});Vf.displayName=Xw;var Jw="MenuArrow",Bf=c.forwardRef((e,t)=>{const{__scopeMenu:n,...o}=e,s=bn(n);return r.jsx(Gd,{...s,...o,ref:t})});Bf.displayName=Jw;var qa="MenuSub",[Zw,Uf]=dr(qa),zf=e=>{const{__scopeMenu:t,children:n,open:o=!1,onOpenChange:s}=e,a=Zt(qa,t),l=bn(t),[i,d]=c.useState(null),[f,m]=c.useState(null),h=Ze(s);return c.useEffect(()=>(a.open===!1&&h(!1),()=>h(!1)),[a.open,h]),r.jsx(Aa,{...l,children:r.jsx(Af,{scope:t,open:o,onOpenChange:h,content:f,onContentChange:m,children:r.jsx(Zw,{scope:t,contentId:Ot(),triggerId:Ot(),trigger:i,onTriggerChange:d,children:n})})})};zf.displayName=qa;var nn="MenuSubTrigger",Hf=c.forwardRef((e,t)=>{const n=Zt(nn,e.__scopeMenu),o=wn(nn,e.__scopeMenu),s=Uf(nn,e.__scopeMenu),a=Ua(nn,e.__scopeMenu),l=c.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:d}=a,f={__scopeMenu:e.__scopeMenu},m=c.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return c.useEffect(()=>m,[m]),c.useEffect(()=>{const h=i.current;return()=>{window.clearTimeout(h),d(null)}},[i,d]),r.jsx(Va,{asChild:!0,...f,children:r.jsx(Nf,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":s.contentId,"data-state":Gf(n.open),...e,ref:jo(t,s.onTriggerChange),onClick:h=>{var v;(v=e.onClick)==null||v.call(e,h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:X(e.onPointerMove,pn(h=>{a.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(a.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:X(e.onPointerLeave,pn(h=>{var p,b;m();const v=(p=n.content)==null?void 0:p.getBoundingClientRect();if(v){const x=(b=n.content)==null?void 0:b.dataset.side,y=x==="right",E=y?-5:5,A=v[y?"left":"right"],R=v[y?"right":"left"];a.onPointerGraceIntentChange({area:[{x:h.clientX+E,y:h.clientY},{x:A,y:v.top},{x:R,y:v.top},{x:R,y:v.bottom},{x:A,y:v.bottom}],side:x}),window.clearTimeout(i.current),i.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(h),h.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:X(e.onKeyDown,h=>{var p;const v=a.searchRef.current!=="";e.disabled||v&&h.key===" "||Ow[o.dir].includes(h.key)&&(n.onOpenChange(!0),(p=n.content)==null||p.focus(),h.preventDefault())})})})});Hf.displayName=nn;var Wf="MenuSubContent",qf=c.forwardRef((e,t)=>{const n=Pf(ct,e.__scopeMenu),{forceMount:o=n.forceMount,...s}=e,a=Zt(ct,e.__scopeMenu),l=wn(ct,e.__scopeMenu),i=Uf(Wf,e.__scopeMenu),d=c.useRef(null),f=Te(t,d);return r.jsx(fn.Provider,{scope:e.__scopeMenu,children:r.jsx(Pt,{present:o||a.open,children:r.jsx(fn.Slot,{scope:e.__scopeMenu,children:r.jsx(za,{id:i.contentId,"aria-labelledby":i.triggerId,...s,ref:f,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var h;l.isUsingKeyboardRef.current&&((h=d.current)==null||h.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:X(e.onFocusOutside,m=>{m.target!==i.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:X(e.onEscapeKeyDown,m=>{l.onClose(),m.preventDefault()}),onKeyDown:X(e.onKeyDown,m=>{var p;const h=m.currentTarget.contains(m.target),v=kw[l.dir].includes(m.key);h&&v&&(a.onOpenChange(!1),(p=i.trigger)==null||p.focus(),m.preventDefault())})})})})})});qf.displayName=Wf;function Gf(e){return e?"open":"closed"}function _o(e){return e==="indeterminate"}function Ga(e){return _o(e)?"indeterminate":e?"checked":"unchecked"}function Qw(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function e0(e,t){return e.map((n,o)=>e[(t+o)%e.length])}function t0(e,t,n){const s=t.length>1&&Array.from(t).every(f=>f===t[0])?t[0]:t,a=n?e.indexOf(n):-1;let l=e0(e,Math.max(a,0));s.length===1&&(l=l.filter(f=>f!==n));const d=l.find(f=>f.toLowerCase().startsWith(s.toLowerCase()));return d!==n?d:void 0}function r0(e,t){const{x:n,y:o}=e;let s=!1;for(let a=0,l=t.length-1;a<t.length;l=a++){const i=t[a],d=t[l],f=i.x,m=i.y,h=d.x,v=d.y;m>o!=v>o&&n<(h-f)*(o-m)/(v-m)+f&&(s=!s)}return s}function n0(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return r0(n,t)}function pn(e){return t=>t.pointerType==="mouse"?e(t):void 0}var o0=Rf,s0=Va,a0=Sf,i0=Cf,l0=Ha,c0=If,d0=Fo,u0=Of,f0=Df,p0=Mf,m0=Ff,h0=Vf,g0=Bf,_0=zf,x0=Hf,v0=qf,Vo="DropdownMenu",[y0,CS]=Xt(Vo,[jf]),Ue=jf(),[b0,Yf]=y0(Vo),Kf=e=>{const{__scopeDropdownMenu:t,children:n,dir:o,open:s,defaultOpen:a,onOpenChange:l,modal:i=!0}=e,d=Ue(t),f=c.useRef(null),[m,h]=Or({prop:s,defaultProp:a??!1,onChange:l,caller:Vo});return r.jsx(b0,{scope:t,triggerId:Ot(),triggerRef:f,contentId:Ot(),open:m,onOpenChange:h,onOpenToggle:c.useCallback(()=>h(v=>!v),[h]),modal:i,children:r.jsx(o0,{...d,open:m,onOpenChange:h,dir:o,modal:i,children:n})})};Kf.displayName=Vo;var Xf="DropdownMenuTrigger",Jf=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:o=!1,...s}=e,a=Yf(Xf,n),l=Ue(n);return r.jsx(s0,{asChild:!0,...l,children:r.jsx(xe.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...s,ref:jo(t,a.triggerRef),onPointerDown:X(e.onPointerDown,i=>{!o&&i.button===0&&i.ctrlKey===!1&&(a.onOpenToggle(),a.open||i.preventDefault())}),onKeyDown:X(e.onKeyDown,i=>{o||(["Enter"," "].includes(i.key)&&a.onOpenToggle(),i.key==="ArrowDown"&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(i.key)&&i.preventDefault())})})})});Jf.displayName=Xf;var w0="DropdownMenuPortal",Zf=e=>{const{__scopeDropdownMenu:t,...n}=e,o=Ue(t);return r.jsx(a0,{...o,...n})};Zf.displayName=w0;var Qf="DropdownMenuContent",ep=c.forwardRef((e,t)=>
89{const{__scopeDropdownMenu:n,...o}=e,s=Yf(Qf,n),a=Ue(n),l=c.useRef(!1);return r.jsx(i0,{id:s.contentId,"aria-labelledby":s.triggerId,...a,...o,ref:t,onCloseAutoFocus:X(e.onCloseAutoFocus,i=>{var d;l.current||(d=s.triggerRef.current)==null||d.focus(),l.current=!1,i.preventDefault()}),onInteractOutside:X(e.onInteractOutside,i=>{const d=i.detail.originalEvent,f=d.button===0&&d.ctrlKey===!0,m=d.button===2||f;(!s.modal||m)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ep.displayName=Qf;var E0="DropdownMenuGroup",j0=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,s=Ue(n);return r.jsx(l0,{...s,...o,ref:t})});j0.displayName=E0;var T0="DropdownMenuLabel",tp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,s=Ue(n);return r.jsx(c0,{...s,...o,ref:t})});tp.displayName=T0;var A0="DropdownMenuItem",rp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,s=Ue(n);return r.jsx(d0,{...s,...o,ref:t})});rp.displayName=A0;var R0="DropdownMenuCheckboxItem",np=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,s=Ue(n);return r.jsx(u0,{...s,...o,ref:t})});np.displayName=R0;var P0="DropdownMenuRadioGroup",S0=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,s=Ue(n);return r.jsx(f0,{...s,...o,ref:t})});S0.displayName=P0;var C0="DropdownMenuRadioItem",op=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,s=Ue(n);return r.jsx(p0,{...s,...o,ref:t})});op.displayName=C0;var I0="DropdownMenuItemIndicator",sp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,s=Ue(n);return r.jsx(m0,{...s,...o,ref:t})});sp.displayName=I0;var N0="DropdownMenuSeparator",ap=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,s=Ue(n);return r.jsx(h0,{...s,...o,ref:t})});ap.displayName=N0;var O0="DropdownMenuArrow",k0=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,s=Ue(n);return r.jsx(g0,{...s,...o,ref:t})});k0.displayName=O0;var D0=e=>{const{__scopeDropdownMenu:t,children:n,open:o,onOpenChange:s,defaultOpen:a}=e,l=Ue(t),[i,d]=Or({prop:o,defaultProp:a??!1,onChange:s,caller:"DropdownMenuSub"});return r.jsx(_0,{...l,open:i,onOpenChange:d,children:n})},L0="DropdownMenuSubTrigger",ip=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,s=Ue(n);return r.jsx(x0,{...s,...o,ref:t})});ip.displayName=L0;var M0="DropdownMenuSubContent",lp=c.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...o}=e,s=Ue(n);return r.jsx(v0,{...s,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});lp.displayName=M0;var $0=Kf,F0=Jf,cp=Zf,dp=ep,up=tp,fp=rp,pp=np,mp=op,hp=sp,gp=ap,V0=D0,_p=ip,xp=lp;const vp=$0,yp=F0,B0=cp,U0=V0,bp=c.forwardRef(({className:e,inset:t,children:n,...o},s)=>r.jsxs(_p,{ref:s,className:ve("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...o,children:[n,r.jsx(Hp,{className:"ml-auto h-4 w-4"})]}));bp.displayName=_p.displayName;const wp=c.forwardRef(({className:e,...t},n)=>r.jsx(xp,{ref:n,className:ve("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
89de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));wp.displayName=xp.displayName;const Ya=c.forwardRef(({className:e,sideOffset:t=4,...n},o)=>r.jsx(cp,{children:r.jsx(dp,{ref:o,sideOffset:t,className:ve("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n})}));Ya.displayName=dp.displayName;const De=c.forwardRef(({className:e,inset:t,...n},o)=>r.jsx(fp,{ref:o,className:ve("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-primary/10 focus:text-foreground",t&&"pl-8",e),...n}));De.displayName=fp.displayName;const z0=c.forwardRef(({className:e,children:t,checked:n,...o},s)=>r.jsxs(pp,{ref:s,className:ve("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:n,...o,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(hp,{children:r.jsx(jt,{className:"h-4 w-4"})})}),t]}));z0.displayName=pp.displayName;const H0=c.forwardRef(({className:e,children:t,...n},o)=>r.jsxs(mp,{ref:o,className:ve("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...n,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(hp,{children:r.jsx(Wp,{className:"h-2 w-2 fill-current"})})}),t]}));H0.displayName=mp.displayName;const Ka=c.forwardRef(({className:e,inset:t,...n},o)=>r.jsx(up,{ref:o,className:ve("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));Ka.displayName=up.displayName;const zt=c.forwardRef(({className:e,...t},n)=>r.jsx(gp,{ref:n,className:ve("-mx-1 my-1 h-px bg-muted",e),...t}));zt.displayName=gp.displayName;const W0={client:"/client",affiliate:"/partner",broker:"/brokers",funder:"/funding",admin:"/command"},Es="impersonating_as",q0=()=>{const[e,t]=c.useState(!1),{toast:n}=Eo();return{impersonate:async(a,l,i,d)=>{if(!a){n({title:"Cannot impersonate",description:"This account has no user_id (invite not yet accepted).",variant:"destructive"});return}t(!0);try{const{data:{session:f}}=await z.auth.getSession();if(!f)throw new Error("No active session â please sign in first.");const m=f.user.email,h=f.user.id,{data:v,error:p}=await z.functions.invoke("admin-impersonate",{body:{target_user_id:a,target_role:l,target_label:i,clean:!!(d!=null&&d.clean),target_origin:d!=null&&d.clean&&(d==null?void 0:d.targetOrigin)||void 0}});if(p)throw p;if(!(v!=null&&v.action_link))throw new Error((v==null?void 0:v.error)||"No action link returned");const b={target_user_id:a,target_role:l,target_label:i||v.target_label||"user",target_email:v.target_email,original_admin_id:h,original_admin_email:m,return_path:"/command",started_at:new Date().toISOString()};try{d!=null&&d.clean?localStorage.removeItem(Es):localStorage.setItem(Es,JSON.stringify(b))}catch{}const x=window.open(v.action_link,"_blank","noopener");n(x?{title:d!=null&&d.clean?"Real login opened":"Impersonation session opened",description:`Signed in as ${i||a} in a new tab.`}:{title:"Pop-up blocked",description:"Allow pop-ups for this site, then try Impersonate again.",variant:"destructive"})}catch(f){n({title:"Impersonation failed",description:(f==null?void 0:f.message)||"Could not start impersonation session.",variant:"destructive"})}finally{t(!1)}},exitImpersonation:async()=>{try{localStorage.removeItem(Es)}catch{}await z.auth.signOut(),window.close(),setTimeout(()=>{window.location.href="/"},200)},loading:e,ROLE_TO_PATH:W0}},Ep=c.forwardRef(({className:e,type:t,...n},o)=>r.jsx("input",{type:t,className:ve("flex h-10 w-full rounded-md border border-input bg-card px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:o,...n}));Ep.displayName="Input";const G0=ha("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}}),jp=c.forwardRef(({className:e,variant:t,...n},o)=>r.jsx("div",{ref:o,className:ve(G0({variant:t}),e),...n}));jp.displayName="Badge";const Y0=[{value:"any",label:"Any",icon:br},{value:"client",label:"Client",icon:bo},{value:"affiliate",label:"Partner",icon:Rc},{value:"broker",label:"Broker",icon:so},{value:"funder",label:"Funder",icon:mn},{value:"admin",label:"Admin",icon:ao}],Il={label:"This admin origin (default)",value:""};function K0({open:e,onOpenChange:t}){const[n,o]=c.useState(""),[s,a]=c.useState("any"),[l,i]=c.useState([]),[d,f]=c.useState(!1),[m,h]=c.useState(!1),[v,p]=c.useState([Il]);c.useEffect(()=>{e&&(async()=>{const{data:j}=await z.from("organization_domains").select("domain, organizations!inner(company_short_name, is_default)").order("domain",{ascending:!0});if(!j)return;const S=new Set,P=[Il];for(const C of j){const D=String(C.domain||"").toLowerCase().replace(/^www\./,"");if(!D||S.has(D))continue;S.add(D);
89const O=C.organizations,$=O!=null&&O.company_short_name?`${D} (${O.company_short_name})`:D;P.push({label:$,value:`https://${D}`})}p(P)})()},[e]);const[b,x]=c.useState(""),{impersonate:y,loading:E}=q0(),{toast:A}=Eo();c.useEffect(()=>{if(!e)return;const j=n.trim();if(!j&&s==="any"){i([]),h(!1);return}f(!0),h(!0);const S=setTimeout(async()=>{const{data:P,error:C}=await z.rpc("admin_search_users",{_q:j||null,_role_filter:s==="any"?null:s,_limit:25});C?(A({title:"Search failed",description:C.message,variant:"destructive"}),i([])):i(P||[]),f(!1)},250);return()=>clearTimeout(S)},[n,s,e,A]),c.useEffect(()=>{e||(o(""),a("any"),i([]),h(!1))},[e]);const R=async(j,S,P=!1)=>{t(!1),await y(j.user_id,S,j.full_name||j.email,{clean:P,targetOrigin:P&&b||void 0})},T=j=>{const S=[];return j.is_client&&S.push({role:"client",label:"Client"}),j.is_affiliate&&S.push({role:"affiliate",label:"Partner"}),j.is_broker&&S.push({role:"broker",label:"Broker"}),j.is_funder&&S.push({role:"funder",label:"Funder"}),j.roles.includes("admin")&&S.push({role:"admin",label:"Admin"}),S};return r.jsx($u,{open:e,onOpenChange:t,children:r.jsxs(ka,{className:"max-w-2xl",children:[r.jsxs(Da,{children:[r.jsxs(La,{className:"flex items-center gap-2",children:[r.jsx(br,{className:"h-5 w-5 text-primary"})," Impersonate User"]}),r.jsxs(Ma,{children:["Search any user by name, email, or ID. Pick a portal to open as them â your admin session stays signed in here. Use ",r.jsx("strong",{children:"Impersonate"})," for an audited session with the yellow banner, or ",r.jsx("strong",{children:"Real login"})," for a clean session with no banner (use sparingly â looks identical to the user signing in themselves)."]})]}),r.jsxs("div",{className:"space-y-3",children:[r.jsxs("div",{className:"relative",children:[r.jsx(qp,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),r.jsx(Ep,{placeholder:"Search name, email, or user IDâ¦",value:n,onChange:j=>o(j.target.value),className:"pl-9",autoFocus:!0})]}),r.jsx("div",{className:"flex flex-wrap gap-1.5",children:Y0.map(j=>{const S=j.icon,P=s===j.value;return r.jsxs(je,{size:"sm",variant:P?"default":"outline",onClick:()=>a(j.value),className:"h-7 text-xs gap-1.5",children:[r.jsx(S,{className:"h-3 w-3"})," ",j.label]},j.value)})}),r.jsxs("div",{className:"rounded-md border border-border bg-muted/30 p-2.5 space-y-1.5",children:[r.jsx("label",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground",children:"Real-login target domain"}),r.jsx("select",{value:b,onChange:j=>x(j.target.value),className:"w-full h-8 text-xs rounded-md border border-input bg-background px-2",children:v.map(j=>r.jsx("option",{value:j.value,children:j.label},j.value))}),r.jsxs("p",{className:"text-[10px] text-muted-foreground leading-snug",children:["Session is stored under the chosen domain's ",r.jsx("code",{children:"localStorage"})," (origin-scoped), so it persists when the user revisits that exact domain in a new tab. Only applies to ",r.jsx("strong",{children:"Real login"}),"."]})]}),r.jsxs("div",{className:"border rounded-md max-h-[420px] overflow-y-auto divide-y",children:[d&&r.jsxs("div",{className:"p-6 text-center text-sm text-muted-foreground flex items-center justify-center gap-2",children:[r.jsx(yo,{className:"h-4 w-4 animate-spin"})," Searchingâ¦"]}),!d&&m&&l.length===0&&r.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:"No users match."}),!d&&!m&&r.jsx("div",{className:"p-6 text-center text-sm text-muted-foreground",children:"Start typing to search the user directory."}),!d&&l.map(j=>{const S=T(j);return r.jsxs("div",{className:"p-3 hover:bg-accent/40",children:[r.jsxs("div",{className:"flex items-start justify-between gap-3",children:[r.jsxs("div",{className:"min-w-0",children:[r.jsx("div",{className:"font-medium text-sm truncate",children:j.full_name||"â"}),r.jsx("div",{className:"text-xs text-muted-foreground truncate",children:j.email}),r.jsx("div",{className:"text-[10px] font-mono text-muted-foreground/70 truncate mt-0.5",children:j.user_id})]}),r.jsx("div",{className:"flex flex-wrap gap-1 shrink-0",children:j.roles.map(P=>r.jsx(jp,{variant:"outline",className:"text-[10px] h-5",children:P},P))})]}),r.jsxs("div",{className:"flex flex-wrap gap-1.5 mt-2.5",children:[S.length===0&&r.jsx("span",{className:"text-[11px] text-muted-foreground italic",children:"No portals detected for this user."}),S.map(P=>r.jsxs("div",{className:"inline-flex rounded-md border border-border overflow-hidden",children:[r.jsxs(je,{size:"sm",variant:"secondary",className:"h-7 text-xs gap-1.5 rounded-none border-0",disabled:E,onClick:()=>R(j,P.role,!1),title:"Opens an audited session with the yellow Impersonating banner",children:["Impersonate as ",P.label]}),r.jsx(je,{size:"sm",variant:"outline",className:"h-7 text-[11px] px-2 rounded-none border-0 border-l border-border",disabled:E,onClick:()=>R(j,P.role,!0),title:"Opens a clean real-login session â no banner. Use sparingly.",children:"Real login"})]},P.role))]})]}
89,j.user_id)})]})]})]})})}function Nl(){if(!(typeof window>"u"))for(const e of[window.localStorage,window.sessionStorage])try{for(let t=e.length-1;t>=0;t--){const n=e.key(t);n&&/^sb-[^-]+-(auth-token|code-verifier|provider-token|refresh-token)/.test(n)&&e.removeItem(n)}}catch{}}function X0(e){const t=(e==null?void 0:e.message)??"";return/Invalid login credentials/i.test(t)||/Email not confirmed/i.test(t)||/User already registered/i.test(t)||/Refresh Token Not Found/i.test(t)||/JWT expired/i.test(t)}async function Nt(e,t){const n=await t();return n!=null&&n.error&&!X0(n.error)&&qt(n.error,{component:`auth.${e}`,severity:"warning",details:{sdk:"supabase.auth"}}),n}const J0={signInWithPassword:e=>Nt("signInWithPassword",()=>z.auth.signInWithPassword(e)),signUp:e=>Nt("signUp",()=>z.auth.signUp(e)),signOut:async()=>{const e=await Nt("signOut",()=>z.auth.signOut());if(!(e!=null&&e.error))return Nl(),e;const t=await Promise.race([Nt("signOut.local",()=>z.auth.signOut({scope:"local"})),new Promise(n=>setTimeout(()=>n({data:null,error:null}),600))]);return Nl(),qt(e.error,{component:"auth.signOut.recovered",severity:"warning",details:{usedLocalFallback:!0,fallbackHadError:!!(t!=null&&t.error)}}),e!=null&&e.error&&(t!=null&&t.error)?e:{data:null,error:null}},resetPasswordForEmail:(e,t)=>Nt("resetPasswordForEmail",()=>z.auth.resetPasswordForEmail(e,t)),updateUser:e=>Nt("updateUser",()=>z.auth.updateUser(e)),signInWithOtp:e=>Nt("signInWithOtp",()=>z.auth.signInWithOtp(e)),verifyOtp:e=>Nt("verifyOtp",()=>z.auth.verifyOtp(e)),signInWithOAuth:e=>Nt("signInWithOAuth",()=>z.auth.signInWithOAuth(e))},Ol="impersonating_as",kl=({forceTransparent:e,useTenantNavColor:t,scrolled:n})=>{const{user:o,loading:s,rolesLoading:a,rolesError:l,refreshRoles:i,isAdmin:d,isCaseManager:f,isAffiliate:m,isAffiliateStaff:h,isBroker:v,isFunder:p,roles:b}=xt(),x=Kt(),y=Ec(),{theme:E,setTheme:A}=Nr(),{mode:R,setMode:T}=_w(),{tenant:j}=Be(),{toast:S}=Eo(),[P,C]=c.useState([]),[D,O]=c.useState(()=>{try{return localStorage.getItem("tra_admin_tenant_override")||""}catch{return""}}),[$,I]=c.useState(!1),[H,k]=c.useState(!1),[K,W]=c.useState(null);c.useEffect(()=>{if(!o){k(!1),W(null);return}try{const se=sessionStorage.getItem(Ol)||localStorage.getItem(Ol);if(!se){k(!1),W(null);return}const pe=JSON.parse(se),Oe=String((pe==null?void 0:pe.target_email)||"").toLowerCase(),yt=String((pe==null?void 0:pe.original_admin_email)||"").toLowerCase(),Mt=String(o.email||"").toLowerCase(),Qe=!!Oe&&Mt===Oe&&Mt!==yt;k(Qe),W(Qe&&String((pe==null?void 0:pe.target_role)||"")||null)}catch{k(!1),W(null)}},[o]);const B=d&&!H,U=m||h||B||H&&(K==="affiliate"||K==="affiliate_staff"),N=v||B||H&&K==="broker",J=p||B||H&&K==="funder",Z=b.includes("client")||B||H&&K==="client";c.useEffect(()=>{B&&z.from("organizations").select("id, company_short_name, company_name, internal_identifier, is_default, favicon_url, internal_icon_url, internal_logo_url").eq("active",!0).eq("data_source",R).order("is_default",{ascending:!1}
89).order("company_short_name").then(({data:se})=>C(se||[]))},[B,R]);const ee=se=>{try{se?localStorage.setItem("tra_admin_tenant_override",se):localStorage.removeItem("tra_admin_tenant_override");const pe=window.location.hostname;localStorage.removeItem("tra_tenant_v3:"+pe)}catch{}O(se||""),window.location.reload()},G=x.pathname.startsWith("/command"),ae=x.pathname.startsWith("/partner"),te=x.pathname.startsWith("/client"),fe=x.pathname.startsWith("/brokers"),re=x.pathname.startsWith("/funding"),ye=G||ae||te||fe||re,_e=E==="gold"&&(j==null?void 0:j.is_default)&&!ye&&(x.pathname==="/"||x.pathname==="/apply"),me=e??_e,Ae=t&&!(j!=null&&j.is_default)&&(n?j==null?void 0:j.nav_fg_color_scrolled:j==null?void 0:j.nav_fg_color)||null,Re=!!Ae&&!me,V=Re?{color:`hsl(${Ae})`}:void 0,ce=Re?{borderColor:`hsl(${Ae} / 0.45)`,backgroundColor:`hsl(${Ae} / 0.12)`}:void 0,he=te?"/client/account":fe?"/brokers/account":ae?"/partner/account":re?"/funding/account":G?"/partner/account":"/account";if(!o)return r.jsx(ge,{to:"/client/login",children:r.jsxs(je,{variant:"outline",size:"sm",className:"gap-2",children:[r.jsx(Ht,{className:"h-4 w-4"})," Login"]})});if(s&&!o)return r.jsxs(je,{variant:"ghost",size:"sm",className:`rounded-full gap-2 px-2 sm:px-3 ${me?"hover:bg-white/20":"hover:bg-primary/10"}`,disabled:!0,children:[r.jsx("span",{className:`inline-flex h-8 w-8 items-center justify-center rounded-full border ${me?"border-white/60 bg-white/20":Re?"":"border-primary/35 bg-primary/12"}`,style:ce,children:r.jsx(Ht,{className:`h-4 w-4 ${me?"text-white":Re?"":"text-primary"}`,style:V})}),r.jsx("span",{className:`hidden sm:inline text-[13px] font-semibold ${me?"text-white":Re?"":"text-foreground"}`,style:V,children:"My Account"})]});const Ce=async()=>{await J0.signOut(),y("/")},Ie=async()=>{await i(),S({title:"Refreshing access",description:"Retrying your account access lookup."})};return r.jsxs(vp,{children:[r.jsx(yp,{asChild:!0,children:r.jsxs(je,{"data-testid":"my-account-trigger",variant:"ghost",size:"sm",className:`rounded-full gap-2 px-2 sm:px-3 ${me?"hover:bg-white/20":"hover:bg-primary/10"}`,children:[r.jsx("span",{className:`inline-flex h-8 w-8 items-center justify-center rounded-full border ${me?"border-white/60 bg-white/20":Re?"":"border-primary/35 bg-primary/12"}`,style:ce,children:r.jsx(Ht,{className:`h-4 w-4 ${me?"text-white":Re?"":"text-primary"}`,style:V})}),r.jsx("span",{className:`hidden sm:inline text-[13px] font-semibold ${me?"text-white":Re?"":"text-foreground"}`,style:V,children:"My Account"})]})}),r.jsxs(Ya,{"data-testid":"my-account-menu",align:"end",className:"w-56",children:[r.jsxs("div",{className:"px-3 py-2",children:[H&&r.jsxs("div",{className:"mb-1.5 inline-flex items-center gap-1.5 rounded-full bg-gold/15 text-gold px-2 py-0.5 text-[10px] font-mono uppercase tracking-wider",children:[r.jsx(br,{className:"h-3 w-3"})," Impersonating"]}),r.jsx("p",{className:"text-sm font-medium truncate",children:o.email}),a&&r.jsx("p",{className:"mt-1 text-xs text-muted-foreground",children:"Loading account accessâ¦"}),l&&!a&&r.jsxs("div",{className:"mt-2 rounded-md border border-border bg-muted/40 px-2 py-1.5",children:[r.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Account access is partially loaded."}),r.jsx("button",{type:"button",onClick:Ie,className:"mt-1 text-[11px] font-medium text-primary hover:underline",children:"Retry access lookup"})]})]}),r.jsx(zt,{}),r.jsx(De,{asChild:!0,children:r.jsxs(ge,{to:he,className:"cursor-pointer gap-2",children:[r.jsx(Gp,{className:"h-4 w-4"})," My Account"]})}),(()=>{const se="bg-gold/10 text-foreground font-semibold border-l-2 border-gold";return r.jsxs(r.Fragment,{children:[Z&&r.jsx(De,{asChild:!0,children:r.jsxs(ge,{to:"/client",className:`cursor-pointer gap-2 ${te?se:""}`,"aria-current":te?"page":void 0,children:[r.jsx(bo,{className:"h-4 w-4"})," My Claims",te&&r.jsx(jt,{className:"ml-auto h-3.5 w-3.5 text-gold"})]})}),N&&r.jsx(De,{asChild:!0,children:r.jsxs(ge,{to:"/brokers",className:`cursor-pointer gap-2 ${fe?se:""}`,"aria-current":fe?"page":void 0,children:[r.jsx(so,{className:"h-4 w-4"})," Broker Portal",fe&&r.jsx(jt,{className:"ml-auto h-3.5 w-3.5 text-gold"})]})}),U&&r.jsx(De,{asChild:!0,children:r.jsxs(ge,{to:"/partner",className:`curs
89or-pointer gap-2 ${ae?se:""}`,"aria-current":ae?"page":void 0,children:[r.jsx(Rc,{className:"h-4 w-4"})," Partner Dashboard",ae&&r.jsx(jt,{className:"ml-auto h-3.5 w-3.5 text-gold"})]})}),J&&r.jsx(De,{asChild:!0,children:r.jsxs(ge,{to:"/funding",className:`cursor-pointer gap-2 ${re?se:""}`,"aria-current":re?"page":void 0,children:[r.jsx(mn,{className:"h-4 w-4"})," Funding Portal",re&&r.jsx(jt,{className:"ml-auto h-3.5 w-3.5 text-gold"})]})}),(B||f)&&r.jsx(De,{asChild:!0,children:r.jsxs(ge,{to:"/command",className:`cursor-pointer gap-2 ${G?se:""}`,"aria-current":G?"page":void 0,children:[r.jsx(ao,{className:"h-4 w-4"})," Admin Dashboard",G&&r.jsx(jt,{className:"ml-auto h-3.5 w-3.5 text-gold"})]})})]})})(),ye&&r.jsx(De,{asChild:!0,children:r.jsxs(ge,{to:"/",className:"cursor-pointer gap-2",children:[r.jsx(io,{className:"h-4 w-4"})," Back to Site"]})}),B&&r.jsxs(r.Fragment,{children:[r.jsx(zt,{}),r.jsxs(De,{onClick:()=>I(!0),className:"cursor-pointer gap-2",children:[r.jsx(br,{className:"h-4 w-4"})," Impersonate Userâ¦"]}),re&&r.jsxs(De,{onClick:()=>T(R==="sandbox"?"live":"sandbox"),className:"cursor-pointer gap-2",children:[R==="sandbox"?r.jsx(Yp,{className:"h-4 w-4"}):r.jsx(Kp,{className:"h-4 w-4"}),"Switch to ",R==="sandbox"?"Live":"Sandbox"," Data"]}),r.jsxs(U0,{children:[r.jsxs(bp,{className:"gap-2",children:[r.jsx(Is,{className:"h-4 w-4"}),r.jsx("div",{className:"flex-1 min-w-0",children:r.jsx("div",{children:"Whitelabel"})})]}),r.jsx(B0,{children:r.jsxs(wp,{className:"w-64 max-h-80 overflow-y-auto",children:[r.jsx(Ka,{className:"text-[11px] uppercase tracking-wide text-muted-foreground",children:"Preview as tenant"}),r.jsxs(De,{onClick:()=>ee(null),className:"cursor-pointer gap-2",children:[r.jsx(io,{className:"h-3.5 w-3.5"}),r.jsx("span",{className:"flex-1",children:"Auto (by domain)"}),!D&&r.jsx(jt,{className:"h-3.5 w-3.5 text-primary"})]}),r.jsx(zt,{}),P.map(se=>{const pe=se.internal_icon_url||se.internal_logo_url||se.favicon_url;return r.jsxs(De,{onClick:()=>ee(se.id),className:"cursor-pointer gap-2",children:[pe?r.jsx("img",{src:pe,alt:"",className:"h-4 w-4 shrink-0 rounded-sm object-contain bg-white",onError:Oe=>{Oe.currentTarget.style.display="none"}}):r.jsx(Is,{className:"h-3.5 w-3.5 shrink-0"}),r.jsx("div",{className:"flex-1 min-w-0",children:r.jsxs("div",{className:"text-[13px] truncate",children:[se.company_short_name||se.company_name,se.is_default?r.jsx("span",{className:"ml-1 text-[10px] text-muted-foreground",children:"· default"}):null]})}),D===se.id&&r.jsx(jt,{className:"h-3.5 w-3.5 text-primary shrink-0"})]},se.id)}),P.length===0&&r.jsx("div",{className:"px-2 py-3 text-[12px] text-muted-foreground text-center",children:"No organizations"}),r.jsx(zt,{}),r.jsxs(De,{onClick:()=>A(E==="blue"?"gold":"blue"),className:"cursor-pointer gap-2",children:[r.jsx(Xp,{className:"h-3.5 w-3.5"}),"Switch to ",E==="blue"?"Gold":"Blue"," Theme",r.jsx("div",{className:`ml-auto w-3 h-3 rounded-full ${E==="blue"?"bg-gold":"bg-primary"}`})]})]})})]}),(j==null?void 0:j.id)&&r.jsx(De,{asChild:!0,children:r.jsxs(ge,{to:`/command/organizations?tab=organizations&edit=${j.id}`,className:"cursor-pointer gap-2",children:[r.jsx(Jp,{className:"h-4 w-4"}),r.jsx("span",{className:"flex-1 truncate",children:"Edit Whitelabel"})]})})]}),r.jsx(zt,{}),r.jsxs(De,{onClick:()=>hf({tab:"ticket"}),className:"cursor-pointer gap-2",children:[r.jsx(Pc,{className:"h-4 w-4"})," Help & Support"]}),r.jsx(zt,{}),H?r.jsxs(De,{onClick:()=>df(),className:"cursor-pointer gap-2 text-gold focus:text-gold",children:[r.jsx(br,{className:"h-4 w-4"})," Exit Impersonation"]}):r.jsxs(De,{onClick:Ce,className:"cursor-pointer gap-2 text-destructive focus:text-destructive",children:[r.jsx(Ac,{className:"h-4 w-4"})," Logout"]})]}),B&&r.jsx(K0,{open:$,onOpenChange:I})]})},Dl="/assets/tra-logo-dark-Dl-SyHGl.png",Ll="/assets/tra-logo-light-DiyW9P-6.png",Z0={sm:{emblem:"h-8",text:"text-[14px] font-semibold",agency:"text-[10.5px] tracking-[0.54em] mt-[2px]"},md:{emblem:"h-10",text:"text-[17px] font-semibold",agency:"text-[13px] tracking-[0.66em] mt-[3px]"},lg:{emblem:"h-12",text:"text-[21px] font-semibold",agency:"text-[16px] tracking-[0.66em] mt-[3px]"}},Q0={sm:"max-h-8",md:"max-h-10",lg:"max-h-12"},eE=({variant:e="light",size:t="md",className:n="",agencyColorClass:o,minWidthPx:s,useFooterLogo:a=!1,logoChoice:l})=>{const{tenant:i,isTraBranded:d}=Be(),f=Z0[t],m=e==="light",h=!!(i.logo_light_url||i.logo_dark_url||i.footer_logo_url);if(!d||h){const v=i.logo_light_url||Ll,p=i.logo_dark_url||Dl,b=i.footer_logo_url||v;let x;l==="footer"?x=b:l==="light"?x=v:l==="dark"?x=p:a?x=b:x=m?v:p;const y=s&&s>0?`${s}px`:void 0,E=y?"h-auto w-auto max-w-full object-contain":`h-auto w-auto max-w-full object-contain ${Q0[t]}`;return r.jsx("div",{className:`flex max-w-full min-w-0 items-center gap-2.5 ${n}
89`,children:r.jsx("img",{src:x,alt:i.company_short_name,className:E,style:y?{minWidth:y,width:y}:void 0})})}return r.jsx("div",{className:`flex items-center ${n}`,children:r.jsxs("div",{className:`relative ${f.emblem} w-auto shrink-0`,children:[r.jsx("img",{src:Ll,alt:"Tariff Refund Agency",className:`${f.emblem} w-auto object-contain transition-opacity duration-150 ${m?"opacity-100":"opacity-0"}`}),r.jsx("img",{src:Dl,alt:"","aria-hidden":"true",className:`${f.emblem} w-auto object-contain absolute inset-0 transition-opacity duration-150 ${m?"opacity-0":"opacity-100"}`})]})})},Ml=({light:e,className:t,showCode:n})=>{const{language:o,setLanguage:s,translating:a}=rw(),l=ro.find(i=>i.code===o)??ro[0];return r.jsxs(vp,{children:[r.jsx(yp,{asChild:!0,children:r.jsxs(je,{variant:"ghost",size:"sm","aria-label":`Change language â currently ${l.english}`,"data-no-translate":!0,className:ve("h-9 px-2 gap-1.5 shrink-0",e?"text-white hover:bg-white/10 hover:text-white":"text-foreground/80 hover:bg-accent hover:text-accent-foreground",t),children:[a?r.jsx(yo,{className:"h-4 w-4 animate-spin"}):r.jsx(io,{className:"h-4 w-4"}),n&&r.jsx("span",{className:"text-[12px] font-medium uppercase",children:l.code})]})}),r.jsxs(Ya,{align:"end","data-no-translate":!0,className:"z-[70] w-[210px] max-h-[70vh] overflow-y-auto bg-popover",children:[r.jsx(Ka,{className:"text-xs text-muted-foreground",children:"Language"}),r.jsx(zt,{}),ro.map(i=>r.jsxs(De,{onClick:()=>s(i.code),className:ve("gap-2 cursor-pointer py-2.5",o===i.code&&"font-semibold"),children:[r.jsx("span",{"aria-hidden":!0,className:"text-base leading-none",children:i.flag}),r.jsx("span",{className:"flex-1 truncate",children:i.native}),o===i.code&&r.jsx(jt,{className:"h-3.5 w-3.5 text-primary"})]},i.code))]})]})},$l=({Icon:e,label:t,desc:n,onClick:o,compact:s})=>{const{tenant:a,isTraBranded:l}=Be(),i=!l,d=i&&a.login_dropdown_tile_hover_bg_color,f=i&&a.login_dropdown_tile_hover_fg_color,m=i&&a.login_dropdown_tile_icon_bg_color,h=i&&a.login_dropdown_tile_icon_border_color,v=i&&a.login_dropdown_tile_icon_color,[p,b]=c.useState(!1),x={};d&&p&&(x.backgroundColor=`hsl(${a.login_dropdown_tile_hover_bg_color})`);const y={};f&&p&&(y.color=`hsl(${a.login_dropdown_tile_hover_fg_color})`);const E={};m&&(E.backgroundColor=`hsl(${a.login_dropdown_tile_icon_bg_color})`),h&&(E.borderColor=`hsl(${a.login_dropdown_tile_icon_border_color})`);const A={};v&&(A.color=`hsl(${a.login_dropdown_tile_icon_color})`);const R=!d,T=!m&&!h,j=!v,S=!f,P=s?"w-7 h-7":"w-8 h-8";return r.jsxs("button",{onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),onClick:o,style:x,className:`flex ${s?"items-center":"items-start"} gap-3 px-3 py-2.5 rounded-lg transition-colors group w-full text-left ${R?"hover:bg-primary/10":""}`,children:[r.jsx("div",{style:E,className:`${P} rounded-lg border flex items-center justify-center shrink-0 ${s?"":"mt-0.5"} transition-colors ${T?"bg-primary/8 border-primary/12 group-hover:bg-primary/15":""}`,children:r.jsx(e,{style:A,className:`h-3.5 w-3.5 ${j?"text-primary":""}`})}),r.jsxs("div",{children:[r.jsx("span",{style:y,className:`font-medium text-[13px] block transition-colors ${S?"text-foreground group-hover:text-primary":"text-foreground"}`,children:t}),r.jsx("span",{className:`${s?"text-[11px]":"text-[12px] mt-0.5"} text-muted-foreground block`,children:n})]})]})},Fl=[{label:"Tariff Refund",href:"/tariff-refund",desc:"Complete tariff refund guide",icon:ao},{label:"IEEPA Refunds",href:"/tariff-refund/ieepa",desc:"Recover duties from IEEPA orders",icon:ao},{label:"CBP Protest Filing",href:"/tariff-refund/cbp-protest",desc:"180-day protest process",icon:ii},{label:"Duty Drawback",href:"/duty-drawback-services",desc:"Refunds for re-exported goods",icon:Qp},{label:"Advance Funding",href:"/services/advance-funding",desc:"Already filed? Get funding before the refund arrives",icon:mn},{label:"Check My Tariff Refund",href:"/free-tariff-assessment",desc:"No-cost eligibility review",icon:ii}],Vl=[{label:"For Importers",href:"/importers",desc:"End-to-end tariff recovery",icon:Is},{label:"For Brokers",href:"/for-brokers",desc:"Tools & support for your clients",icon:em},{label:"Industries We Serve",href:"/industries",desc:"Recovery for every importer",icon:tm},{label:"Case Studies",href:"/case-studies",desc:"Real recovery success stories",icon:Cc}],Bl=[{label:"Resources & Guides",href:"/docs",desc:"TRA Resource & Due Diligence Center",icon:rm,external:!0},{label:"Resource Center",href:"/resources",desc:"Guides, news & analysis",icon:nm},{label:"Free Tools",href:"/tools",desc:"Calculators & analyzers",icon:om},{label:"Case Results",href:"/results",desc:"Track record & outcomes",icon:Cc},{label:"FAQ",href:"/faq",desc:"Answers to common questions",icon:sm}
89,{label:"Help & Support",href:"/client/help",desc:"Get assistance with your claim",icon:Pc},{label:"Contact Us",href:"/contact",desc:"Talk to our team",icon:am}],js={left:[{icon:Sc,label:"ACE Customs Audit Engine",desc:"AI-powered ACE CSV parsing, HTS 9903 filtering, and entry-level analysis in seconds",href:"/platform#ace-engine"},{icon:im,label:"Real-Time Claim Tracking",desc:"Per-entry status dashboard with liquidation dates, protest deadlines & refund estimates",href:"/platform#claim-tracking"},{icon:lm,label:"Automated Protest Filing",desc:"System-generated CBP Form 19 packages with deadline monitoring & auto-escalation",href:"/platform#protest-filing"},{icon:Ic,label:"Qualification Scoring",desc:"8-category scoring engine that instantly evaluates claim strength and recovery potential",href:"/platform#scoring"}],right:[{icon:Nc,label:"Enterprise Security",desc:"SOC 2 compliant, 256-bit encryption, role-based access control & complete audit trail",href:"/platform#security"},{icon:io,label:"Broker White-Label Portal",desc:"Custom-branded portals for customs brokers with full client management & commission tracking",href:"/platform#broker-portal"},{icon:cm,label:"Advance Funding Engine",desc:"Integrated advance funding workflow â get paid before your claim is finalized by CBP",href:"/platform#advance-funding"},{icon:dm,label:"CAPE-Ready Export",desc:"Generate CBP CAPE-formatted CSV files ready for submission the moment the portal opens",href:"/platform#cape-export"}],cta:[{icon:um,label:"ACE Report Auto-ETL",desc:"Upload once â we extract, classify, and map every entry automatically",href:"/platform#etl"},{icon:fm,label:"Proactive Alerts",desc:"Deadline warnings, status changes, and critical event notifications across email & in-app",href:"/platform#alerts"}]},tE=({forceScrolled:e=!1})=>{const[t,n]=c.useState(!1),[o,s]=c.useState(e),[a,l]=c.useState(null),i=c.useRef(),d=c.useRef(null),f=Ec(),m=Kt(),{user:h}=xt(),{isGold:v,theme:p,setTheme:b}=Nr(),{tenant:x,isTraBranded:y}=Be(),E=xn(),{withRef:A}=Mo(),R=!o&&!e&&y,T=!y&&!!x.nav_fg_color,j=R||!y&&!o&&!e&&!T,S=(()=>{const V=(x.hero_fg_color||"0 0% 100%").split(" "),ce=parseFloat(V[2]||"100");return isNaN(ce)?100:ce})(),P=v&&S<50;c.useEffect(()=>{if(e){s(!0);return}const V=()=>s(window.scrollY>20);return window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)},[e]),c.useEffect(()=>{const V=ce=>{d.current&&!d.current.contains(ce.target)&&l(null)};return document.addEventListener("mousedown",V),()=>document.removeEventListener("mousedown",V)},[]);const C=V=>{clearTimeout(i.current),l(V)},D=()=>{i.current=setTimeout(()=>l(null),200)},O=o?x.nav_fg_color_scrolled:x.nav_fg_color,$=o?x.nav_muted_fg_color_scrolled:x.nav_muted_fg_color,I=!R&&(O||$),H=I&&O?{color:`hsl(${O})`}:void 0,k=I&&$?{color:`hsl(${$})`}:void 0,K=I&&O?{borderColor:`hsl(${O} / 0.45)`,backgroundColor:`hsl(${O} / 0.12)`}:void 0,W=R?"text-white hover:text-white":I?"":"text-foreground hover:text-foreground",B=R?"text-white/85 hover:text-white":I?"":o?"text-foreground/70 hover:text-foreground":"text-foreground/80 hover:text-foreground",U=V=>V.some(ce=>ce==="/"?m.pathname==="/":m.pathname.startsWith(ce)),N=V=>{const ce=U(V);return{className:ce?W:B,style:ce?H:k}},J=R?"hover:bg-white/20":"hover:bg-primary/10",Z=y?R?"light":"dark":o||P?"dark":"light",ee="text-gold",G=x.logo_min_width_header_px??null,ae=null,te=x.header_max_width_px&&x.header_max_width_px>0?`${x.header_max_width_px}px`:void 0,fe=v?"bg-gold text-gold-foreground hover:bg-gold/90 shadow-lg shadow-gold/15":"bg-primary text-primary-foreground hover:bg-primary/90 shadow-lg shadow-primary/15",re=v?"text-gold":"text-primary",ye=v?"bg-gold/10 border-gold/15 group-hover:bg-gold/20":"bg-primary/8 border-primary/12 group-hover:bg-primary/15",_e=v?"group-hover:text-gold":"group-hover:text-primary",me="hover:bg-muted/60 hover:shadow-[0_0_0_1px_hsl(var(--border))]",Ae=(V,ce)=>r.jsx("div",{className:`absolute top-full left-1/2 -translate-x-1/2 mt-2 ${ce} bg-card border border-border rounded-xl shadow-xl shadow-black/8 p-1.5 animate-in fade-in slide-in-from-top-1 duration-150`,children:V.map(he=>{const Ce=!!he.external,Ie=Ce?A(he.href):he.href,se=r.jsxs(r.Fragment,{children:[r.jsx("div",{className:`w-8 h-8 rounded-lg border flex items-center justify-center shrink-0 mt-0.5 transition-colors ${ye}`,children:r.jsx(he.icon,{className:`h-3.5 w-3.5 ${re}`})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsxs("span",{className:`font-medium text-[13px] text-foreground ${_e} transition-colors inline-flex items-center gap-1.5`,children:[he.label,Ce&&r.jsx(ai,{className:"h-3 w-3 text-muted-foreground"})]}),r.jsx("span",{className:"text-[12px] text-muted-foreground mt-0.5 block",children:he.desc})]})]});return Ce?r.jsx("a",{href:Ie,target:"_blank",rel:"noopener",onClick:()=>l(null),className:`flex items-start gap-3 px-3 py-2.5 rounded-lg ${me} transition-colors group`,children:se},he.href):r.jsx(ge,{to:he.href,onClick:()=>l(null),className:`flex items-start gap-3 px-3 py-2.5 rounded-lg ${me} transition-colors group`,children:se},he.href)})}),Re=()=>r.jsxs("div",{className:"absolute top-full left-1/2 -translate-x-1/2 mt-2 w-[720px] bg-card border border-border rounded-xl shadow-2xl shadow-black/10 p-0 animate-in fade-in slide-in-from-top-1 duration-150 overflow-hidden",children:[r.jsx("div",{className:"px-6 pt-5 pb-4 border-b border-border bg-muted/30",children:r.jsxs("div",{className:"flex items-center justify-between",children:[r.jsxs("div",{children:[r.jsxs("h3",{className:"font-display font-semibold text-[15px] text-foreground",children:["The ",E.short," Platform"]}),r.jsx("p",{className:"text-[12px] text-muted-foreground mt-0.5",children:"End-to-end tariff refund recovery â from analysis to payout"})]}),r.jsx(ge,{to:"/platform",onClick:()=>
89l(null),children:r.jsx(je,{size:"sm",className:"h-7 px-4 rounded-lg text-[11px] font-semibold bg-primary text-primary-foreground hover:bg-primary/90",children:"View Full Platform â"})})]})}),r.jsxs("div",{className:"grid grid-cols-2 gap-0 divide-x divide-border",children:[r.jsxs("div",{className:"p-4 space-y-1",children:[r.jsx("p",{className:"text-[10px] font-semibold text-muted-foreground uppercase tracking-wider px-3 pb-1",children:"Intelligence & Automation"}),js.left.map(V=>r.jsxs(ge,{to:V.href,onClick:()=>l(null),className:`flex items-start gap-3 px-3 py-2.5 rounded-lg ${me} transition-colors group`,children:[r.jsx("div",{className:`w-8 h-8 rounded-lg border flex items-center justify-center shrink-0 mt-0.5 transition-colors ${ye}`,children:r.jsx(V.icon,{className:`h-3.5 w-3.5 ${re}`})}),r.jsxs("div",{children:[r.jsx("span",{className:`font-medium text-[13px] text-foreground ${_e} transition-colors block`,children:V.label}),r.jsx("span",{className:"text-[11px] text-muted-foreground mt-0.5 block leading-snug",children:V.desc})]})]},V.label))]}),r.jsxs("div",{className:"p-4 space-y-1",children:[r.jsx("p",{className:"text-[10px] font-semibold text-muted-foreground uppercase tracking-wider px-3 pb-1",children:"Infrastructure & Ecosystems"}),js.right.map(V=>r.jsxs(ge,{to:V.href,onClick:()=>l(null),className:`flex items-start gap-3 px-3 py-2.5 rounded-lg ${me} transition-colors group`,children:[r.jsx("div",{className:`w-8 h-8 rounded-lg border flex items-center justify-center shrink-0 mt-0.5 transition-colors ${ye}`,children:r.jsx(V.icon,{className:`h-3.5 w-3.5 ${re}`})}),r.jsxs("div",{children:[r.jsx("span",{className:`font-medium text-[13px] text-foreground ${_e} transition-colors block`,children:V.label}),r.jsx("span",{className:"text-[11px] text-muted-foreground mt-0.5 block leading-snug",children:V.desc})]})]},V.label))]})]}),r.jsxs("div",{className:"px-6 py-4 border-t border-border bg-muted/20 flex items-center justify-between",children:[r.jsx("div",{className:"flex gap-6",children:js.cta.map(V=>r.jsxs(ge,{to:V.href,onClick:()=>l(null),className:"flex items-center gap-2 group",children:[r.jsx(V.icon,{className:`h-3.5 w-3.5 ${re}`}),r.jsxs("div",{children:[r.jsx("span",{className:`text-[12px] font-medium text-foreground block ${_e} transition-colors`,children:V.label}),r.jsx("span",{className:"text-[10px] text-muted-foreground block",children:V.desc})]})]},V.label))}),r.jsx("div",{className:"flex items-center gap-2",children:r.jsx(ge,{to:A("/apply"),onClick:()=>l(null),children:r.jsx(je,{size:"sm",className:`${fe} font-semibold text-[12px] px-5 h-8 rounded-lg`,children:"Get Started â"})})})]})]});return r.jsxs("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${o?"bg-card/95 md:backdrop-blur-xl shadow-[0_1px_2px_0_rgb(0,0,0,0.04)] border-b border-border":"bg-transparent"}`,children:[(()=>{const V=o?x.logo_margin_top_scrolled_px:x.logo_margin_top_transparent_px,ce=o?x.logo_margin_bottom_scrolled_px:x.logo_margin_bottom_transparent_px,he=te?{maxWidth:te}:{};V!=null&&(he.paddingTop=`${V}px`),ce!=null&&(he.paddingBottom=`${ce}px`);const Ce=V!=null||ce!=null;return r.jsxs("div",{ref:d,className:`container mx-auto flex items-center justify-between px-4 lg:px-8 ${Ce?"min-h-16":"h-16"}`,style:he,children:[r.jsx(ge,{to:"/",className:"block",children:r.jsx(eE,{variant:Z,size:"md",agencyColorClass:ee,minWidthPx:G,logoChoice:ae})}),r.jsxs("nav",{className:"hidden lg:flex items-center gap-0.5 text-[14px] font-medium",children:[r.jsxs("div",{className:"relative",onMouseEnter:()=>C("platform"),onMouseLeave:D,children:[r.jsxs("button",{style:N(["/platform"]).style,className:`flex items-center gap-1 px-3.5 py-2 rounded-lg transition-all ${N(["/platform"]).className} ${J}`,children:["Our Platform",r.jsx(Wr,{className:`h-3 w-3 transition-transform duration-200 ${a==="platform"?"rotate-180":""}`})]}),a==="platform"&&Re()]}),r.jsxs("div",{className:"relative",onMouseEnter:()=>C("services"),onMouseLeave:D,children:[r.jsxs("button",{style:N(["/tariff-refund","/duty-drawback-services","/free-tariff-assessment","/services"]).style,className:`flex items-center gap-1 px-3.5 py-2 rounded-lg transition-all ${N(["/tariff-refund","/duty-drawback-services","/free-tariff-assessment","/services"]).className} ${J}`,children:["Services",r.jsx(Wr,{className:`h-3 w-3 transition-transform duration-200 ${a==="services"?"rotate-180":""}`})]}),a==="services"&&Ae(Fl,"w-[320px]")]}),r.jsxs("div",{className:"relative",onMouseEnter:()=>C("audiences"),onMouseLeave:D,children:[r.jsxs("button",{style:N(["/importers","/for-brokers","/industries","/case-studies"]).style,className:`flex items-center gap-1 px-3.5 py-2 rounded-lg transition-all ${N(["/importers","/for-brokers","/industries","/case-studies"]).className} ${J}`,children:["Who We Help",r.jsx(Wr,{className:`h-3 w-3 transition-transform duration-200 ${a==="audiences"?"rotate-180":""}`})]}),a==="audiences"&&Ae(Vl,"w-[280px]")]}),r.jsxs("div",{className:"relative",onMouseEnter:()=>C("resources"),onMouseLeave:D,children:[r.jsxs("button",{style:N(["/resources","/tools","/results","/faq","/cl
89ient/help","/contact"]).style,className:`flex items-center gap-1 px-3.5 py-2 rounded-lg transition-all ${N(["/resources","/tools","/results","/faq","/client/help","/contact"]).className} ${J}`,children:["Resources",r.jsx(Wr,{className:`h-3 w-3 transition-transform duration-200 ${a==="resources"?"rotate-180":""}`})]}),a==="resources"&&Ae(Bl,"w-[280px]")]}),r.jsx(ge,{to:"/how-it-works",style:N(["/how-it-works"]).style,className:`px-3.5 py-2 rounded-lg transition-all ${N(["/how-it-works"]).className} ${J}`,children:"How It Works"})]}),r.jsxs("div",{className:"hidden lg:flex items-center gap-2.5",children:[r.jsx(Ml,{light:j,showCode:!0}),r.jsx("div",{className:"relative",children:h?r.jsx(kl,{forceTransparent:j,useTenantNavColor:!0,scrolled:o||e}):r.jsxs(r.Fragment,{children:[r.jsxs("button",{type:"button",onClick:()=>l(Ie=>Ie==="login"?null:"login"),"aria-expanded":a==="login",style:N(["/client/login","/login","/brokers/login"]).style,className:`flex items-center gap-1.5 px-3.5 py-2 rounded-lg transition-all text-[13px] font-medium ${N(["/client/login","/login","/brokers/login"]).className} ${J}`,children:[r.jsx("div",{className:`w-6 h-6 rounded-full border flex items-center justify-center ${R?"border-white/55":I?"":"border-muted-foreground/30"}`,style:K,children:r.jsx(Ht,{className:"h-3.5 w-3.5"})}),"Login",r.jsx(Wr,{className:`h-3 w-3 transition-transform duration-200 ${a==="login"?"rotate-180":""}`})]}),a==="login"&&r.jsx("div",{className:"absolute top-full right-0 mt-1 w-[240px] bg-card border border-border rounded-xl shadow-xl shadow-black/8 p-1.5 animate-in fade-in slide-in-from-top-1 duration-150",children:[{Icon:Ht,label:"Client Login",desc:"View your claims & status",to:"/client/login"},{Icon:so,label:"Broker Login",desc:"Customs broker portal",to:"/brokers/login"},{Icon:Wo,label:"Partner Login",desc:"Referral partner dashboard",to:"/login"}].map(({Icon:Ie,label:se,desc:pe,to:Oe})=>r.jsx($l,{Icon:Ie,label:se,desc:pe,onClick:()=>{l(null),f(Oe)}},Oe))})]})}),r.jsx(ge,{to:A("/apply"),children:r.jsx(je,{className:`${fe} font-semibold px-6 h-9 text-[14px] rounded-lg`,children:"Check My Tariff Refund â"})})]}),r.jsxs("div",{className:"flex lg:hidden items-center gap-1",children:[r.jsx(Ml,{light:j,className:"h-8 px-1.5"}),h?r.jsx(kl,{forceTransparent:j,useTenantNavColor:!0,scrolled:o||e}):r.jsxs("div",{className:"relative",children:[r.jsx("button",{onClick:()=>l(Ie=>Ie==="mobile-login"?null:"mobile-login"),"aria-label":"Login",className:`p-2 rounded-lg transition-all ${j?"hover:bg-white/10":"hover:bg-primary/10"}`,children:r.jsx("div",{className:`w-7 h-7 rounded-full border flex items-center justify-center ${j?"border-white/55 bg-white/10":I?"":"border-muted-foreground/30"}`,style:K,children:r.jsx(Ht,{className:`h-4 w-4 ${j?"text-white":I?"":"text-foreground"}`,style:I?H:void 0})})}),a==="mobile-login"&&r.jsx("div",{className:"absolute top-full right-0 mt-2 w-[220px] bg-card border border-border rounded-xl shadow-xl shadow-black/8 p-1.5 animate-in fade-in slide-in-from-top-1 duration-150",children:[{Icon:Ht,label:"Client Login",desc:"View claims & status",to:"/client/login"},{Icon:so,label:"Broker Login",desc:"Customs broker portal",to:"/brokers/login"},{Icon:Wo,label:"Partner Login",desc:"Referral dashboard",to:"/login"}].map(({Icon:Ie,label:se,desc:pe,to:Oe})=>r.jsx($l,{Icon:Ie,label:se,desc:pe,compact:!0,onClick:()=>{l(null),f(Oe)}},Oe))})]}),r.jsx("button",{onClick:()=>n(!t),"aria-label":"Toggle menu",children:t?r.jsx(ia,{className:`h-5 w-5 ${j?"text-white":I?"":"text-foreground"}`,style:I?H:void 0}):r.jsx(Zp,{className:`h-5 w-5 ${j?"text-white":I?"":"text-foreground"}`,style:I?H:void 0})})]})]})})(),t&&r.jsxs("div",{className:"lg:hidden bg-background border-t border-border px-4 pb-8 shadow-xl animate-in slide-in-from-top-2 duration-150 max-h-[calc(100vh-4rem)] overflow-y-auto",children:[r.jsxs("div",{className:"flex gap-2.5 py-4",children:[r.jsx(ge,{to:A("/apply"),onClick:()=>n(!1),className:"flex-[3]",children:r.jsx(je,{className:`w-full ${fe} font-semibold h-11 text-[14px] rounded-lg`,children:"Check My Tariff Refund â"})}),r.jsx(ge,{to:"/how-it-works",onClick:()=>n(!1),className:"flex-[2]",children:r.jsx(je,{variant:"outline",className:"w-full font-semibold h-11 text-[14px] rounded-lg border-primary/30 text-primary hover:bg-primary/10",children:"How It Works"})})]}),r.jsx(ge,{to:"/services/advance-funding",onClick:()=>n(!1),className:"block mt-2",children:r.jsx("div",{className:"relative overflow-hidden rounded-xl border border-gold/40 bg-gradient-to-br from-gold/15 via-gold/8 to-transparent p-4",children:r.jsxs("div",{className:"flex items-start gap-3",children:[r.jsx("div",{className:"shrink-0 w-9 h-9 rounded-lg bg-gold/20 border border-gold/35 flex items-center justify-center",children:r.jsx(mn,{className:"h-4 w-4 text-gold"})}),r.jsxs("div",{className:"flex-1 min-w-0",children:[r.jsx("p",{className:"text-[10px] font-semibold tracking-[0.16em] uppercase text-gold mb-1",children:"Already Filed?"}),r.jsx("p",{className:"text-[13px] font-semibold text-foreground leading-snug mb-1",children:"Get advance funding now"}),r.jsx("p",{className:"text-[11px] text-muted-foreground leading-snug mb-2",children:"Don't wait 12â24 months for CBP. Access your refund in days."}),r.jsx("span",{className:"inline-flex items-center text-[12px] font-semibold text-gold",children:"Apply now â"})]})]})})}),r.jsx("div",{className:"border-t border-border py-3",children:r.jsxs(ge,{to:"/platform",onClick:()=>n(!1),className:"flex items-center gap-3 px-2 py-2.5 text-[14px] font-medium text-foreground hover:text-primary transition-colors",children:[r.jsx("div",{className:"w-7 h-7 rounded-lg bg-primary/8 border border-primary/12 flex items-center justify-center shrink-0",children:r.jsx(Sc,{className:"h-3.5 w-3.5 text-primary"})}),"Our Platform"]})}),r.jsxs("div",{className:"border-t border-border py-3",children:[r.jsx("p",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-[0.15em] px-2 py-2",children:"Services"}),Fl.map(V=>r.jsxs(ge,{to:V.href,onClick:()=>n(!1),className:"flex items-center gap-3 px-2 py-2.5 text-[14px] font-medium text-foreground hover:text-primary transition-colors",children:[r.jsx("div",{className:"w-7 h-7 rounded-lg bg-primary/8 border border-primary/12 flex items-center justify-center shrink-0",children:r.jsx(V.icon,{className:"h-3.5 w-3.5 text-primary"})}),V.label]},V.href))]}),r.jsxs("div",{className:"border-t border-border py-3",children:[r.jsx("p",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-[0.15em] px-2 py-2",children:"Who We Help"}),Vl.map(V=>r.jsxs(ge,{to:V.href,onClick:()=>n(!1),className:"flex items-center gap-3 px-2 py-2.5 text-[14px] font-medium text-foreground hover:text-primary transition-colors",children:[r.jsx("div",{className:"w-7 h-7 rounded-lg bg-primary/8 border border-primary/12 flex items-center justify-center shrink-0",children:r.jsx(V.icon,{className:"h-3.5 w-3.5 text-primary"})}),V.label]},V.href))]}),r.jsxs("div",{className:"border-t border-border py-3",children:[r.jsx("p",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-[0.15em] px-2 py-2",children:"Resources"}),Bl.map(V=>{const ce=!!V.external,he=ce?A(V.href):V.href,Ce=r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"w-7 h-7 rounded-lg bg-primary/8 border border-primary/12 flex items-center justify-center shrink-0",children:r.jsx(V.icon,{className:"h-3.5 w-3.5 text-primary"})}),r.jsxs("span",{className:"inline-flex items-center gap-1.5",children:[V.label,ce&&r.jsx(ai,{className:"h-3 w-3 text-muted-foreground"})]})]});return ce?r.jsx("a",{href:he,target:"_blank",rel:"noopener",onClick:()=>n(!1),className:"flex items-center gap-3 px-2 py-2.5 text-[14px] font-medium text-foreground hover:text-primary transition-colors",children:Ce},V.href):r.jsx(ge,{to:V.href,onClick:()=>n(!1),className:"flex items-center gap-3 px-2 py-2.5 text-[14px] font-medium text-foreground hover:text-primary transition-colors",children:Ce},V.href)})]}),!h&&r.jsxs("div",{className:"border-t border-border py-3",children:[r.jsx("p",{className:"text-[11px] font-semibold text-muted-foreground uppercase tracking-[0.15em] px-2 py-2",children:"Account"}),r.jsxs(ge,{to:"/client/login",onClick:()=>n(!1),className:"flex items-center gap-3 px-2 py-2.5 text-[14px] font-medium text-foreground hover:text-primary transition-colors",children:[r.jsx("div",{className:"w-7 h-7 rounded-lg bg-primary/8 border border-primary/12 flex items-center justify-center shrink-0",children:r.jsx(Ht,{className:"h-3.5 w-3.5 text-primary"})}),"Client Login"]}),r.jsxs(ge,{to:"/login",onClick:()=>n(!1),className:"flex items-center gap-3 px-2 py-2.5 text-[14px] font-medium text-foreground hover:text-primary transition-colors",children:[r.jsx("div",{className:"w-7 h-7 rounded-lg bg-primary/8 border border-primary/12 flex items-center justify-center shrink-0",children:r.jsx(Wo,{className:"h-3.5 w-3.5 text-primary"})}),"Partner Login"]})]})]})]})},xo="/assets/hero-port-B-43pKcb.webp",Tp="/assets/hero-port-Bcx98U0l.avif",Ap="/assets/news-logos-DWutzvuF.png",oo={trustpilot:{source:"trustpilot",rating:4.8,review_count:null,profile_url:"https://www.trustpilot.com/review/tariffrefund
89agency.com",last_scan_at:null},google:{source:"google",rating:5,review_count:null,profile_url:"https://share.google/uH5FHrLPGkYfndyYG",last_scan_at:null}},Rp="tra_public_review_stats_v2",rE=60*60*1e3,nE=7*24*60*60*1e3;let en=null,tn=null;function Ul(){try{const e=localStorage.getItem(Rp);if(!e)return null;const t=JSON.parse(e);if(!(t!=null&&t.stats))return null;const n=Date.now()-t.at;return n>nE?null:{stats:t.stats,fresh:n<=rE}}catch{return null}}function oE(e){try{localStorage.setItem(Rp,JSON.stringify({at:Date.now(),stats:e}))}catch{}}async function sE(){const{data:e}=await z.from("public_review_stats").select("source, rating, review_count, profile_url, last_scan_at"),t={...oo};for(const n of e??[]){const o=n.source;t[o]&&(t[o]={source:o,rating:n.rating!=null?Number(n.rating):oo[o].rating,review_count:n.review_count??null,profile_url:n.profile_url||oo[o].profile_url,last_scan_at:n.last_scan_at??null})}return t}function aE(e){const t=window;typeof t.requestIdleCallback=="function"?t.requestIdleCallback(e,{timeout:3e3}):setTimeout(e,1200)}function iE(){const[e,t]=c.useState(()=>{var n;return en??((n=Ul())==null?void 0:n.stats)??oo});return c.useEffect(()=>{if(en)return;const n=Ul();if(n){if(en=n.stats,t(n.stats),n.fresh)return;en=null}let o=!1;return aE(()=>{o||(tn=tn??sE().then(s=>(en=s,oE(s),tn=null,s)),tn.then(s=>{o||t(s)}).catch(()=>{tn=null}))}),()=>{o=!0}},[]),{stats:e,loading:!1}}const Pp="#00b67a",lE="#dcdce6",cE="#fbbc04",dE="#dadce0";function zl(e){return Array.from({length:5},(t,n)=>Math.max(0,Math.min(1,e-n)))}const Xa="M12 2.4l2.9 5.88 6.5.95-4.7 4.58 1.11 6.47L12 17.23l-5.81 3.05 1.11-6.47L2.6 9.23l6.5-.95L12 2.4z";function uE({fill:e,size:t=22}){const n=`tp-${Math.random().toString(36).slice(2)}`;return r.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24","aria-hidden":"true",className:"shrink-0",children:[r.jsx("defs",{children:r.jsxs("linearGradient",{id:n,x1:"0",x2:"1",y1:"0",y2:"0",children:[r.jsx("stop",{offset:`${e*100}%`,stopColor:Pp}),r.jsx("stop",{offset:`${e*100}%`,stopColor:lE})]})}),r.jsx("rect",{width:"24",height:"24",fill:`url(#${n})`}),r.jsx("path",{d:Xa,fill:"#fff"})]})}function fE({fill:e,size:t=20}){const n=`g-${Math.random().toString(36).slice(2)}`;return r.jsxs("svg",{width:t,height:t,viewBox:"0 0 24 24","aria-hidden":"true",className:"shrink-0",children:[r.jsx("defs",{children:r.jsxs("linearGradient",{id:n,x1:"0",x2:"1",y1:"0",y2:"0",children:[r.jsx("stop",{offset:`${e*100}%`,stopColor:cE}),r.jsx("stop",{offset:`${e*100}%`,stopColor:dE})]})}),r.jsx("path",{d:Xa,fill:`url(#${n})`})]})}function pE({className:e=""}){return r.jsxs("span",{className:`inline-flex items-center gap-1.5 ${e}`,children:[r.jsx("svg",{width:"17",height:"17",viewBox:"0 0 24 24","aria-hidden":"true",children:r.jsx("path",{d:Xa,fill:Pp})}),r.jsx("span",{className:"font-semibold tracking-[-0.01em]",children:"Trustpilot"})]})}function mE({className:e=""}){return r.jsxs("span",{className:`inline-flex items-center gap-1.5 ${e}`,children:[r.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 48 48","aria-hidden":"true",children:[r.jsx("path",{fill:"#4285F4",d:"M45.1 24.5c0-1.6-.1-2.8-.4-4H24v7.3h12.1c-.2 2-1.6 5-4.5 7l6.9 5.3c4.1-3.8 6.6-9.4 6.6-15.6z"}),r.jsx("path",{fill:"#34A853",d:"M24 46c5.9 0 10.9-2 14.5-5.3l-6.9-5.3c-1.9 1.3-4.4 2.2-7.6 2.2-5.8 0-10.7-3.8-12.5-9.1l-7.1 5.5C8 41.2 15.4 46 24 46z"}),r.jsx("path",{fill:"#FBBC05",d:"M11.5 28.5c-.5-1.4-.7-2.9-.7-4.5s.3-3.1.7-4.5l-7.1-5.5C2.9 17 2 20.4 2 24s.9 7 2.4 10l7.1-5.5z"}),r.jsx("path",{fill:"#EA4335",d:"M24 10.4c4.1 0 6.9 1.8 8.5 3.3l6.1-6C34.9 4.2 29.9 2 24 2 15.4 2 8 6.8 4.4 14l7.1 5.5c1.8-5.3 6.7-9.1 12.5-9.1z"})]}),r.jsx("span",{className:"font-semibold tracking-[-0.01em]",children:"Google Reviews"})]})}function Hl({href:e,label:t,dark:n,children:o}){return r.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer nofollow","aria-label":t,className:`group flex-1 min-w-0
89w-full rounded-2xl border px-4 py-3.5 sm:px-5 sm:py-4 transition-all duration-300 hover:-translate-y-0.5 ${n?"bg-white/[0.06] border-white/[0.10] hover:bg-white/[0.10] hover:border-white/20 shadow-[0_8px_30px_-12px_rgba(0,0,0,0.6)]":"bg-card border-border hover:border-primary/25 shadow-sm hover:shadow-md"}`,children:o})}function oa(){const{stats:e}=iE(),{isGold:t}=Nr(),n=t,o=e.trustpilot,s=e.google,a=n?"text-white":"text-foreground",l=n?"text-white/55":"text-muted-foreground",i=o.rating??4.8,d=s.rating??5;return r.jsxs(He.div,{initial:{opacity:0,y:12},animate:{opacity:1,y:0},transition:{duration:.5,delay:.3},className:"mb-10 max-w-2xl mx-auto flex flex-col sm:flex-row items-stretch gap-3",children:[r.jsxs(Hl,{href:o.profile_url||"#",label:`Read our ${i} star reviews on Trustpilot (opens in a new window)`,dark:n,children:[r.jsx("div",{className:"flex items-center justify-center gap-1 mb-2",children:zl(i).map((f,m)=>r.jsx(uE,{fill:f,size:20},m))}),r.jsxs("div",{className:`flex flex-wrap items-center justify-center gap-x-1.5 gap-y-0.5 text-[12.5px] ${l}`,children:[r.jsx("span",{className:`font-semibold ${a}`,children:i.toFixed(1)}),r.jsx("span",{children:"out of 5"}),o.review_count?r.jsxs("span",{className:"underline underline-offset-2 decoration-current/40",children:["based on ",o.review_count.toLocaleString()," reviews"]}):null]}),r.jsx("div",{className:`mt-1.5 flex justify-center text-[12.5px] ${a}`,children:r.jsx(pE,{})})]}),r.jsxs(Hl,{href:s.profile_url||"#",label:`Read our ${d} star reviews on Google (opens in a new window)`,dark:n,children:[r.jsx("div",{className:"flex items-center justify-center gap-0.5 mb-2",children:zl(d).map((f,m)=>r.jsx(fE,{fill:f,size:20},m))}),r.jsxs("div",{className:`flex flex-wrap items-center justify-center gap-x-1.5 gap-y-0.5 text-[12.5px] ${l}`,children:[r.jsx("span",{className:`font-semibold ${a}`,children:d.toFixed(1)}),r.jsx("span",{children:"out of 5"}),s.review_count?r.jsxs("span",{className:"underline underline-offset-2 decoration-current/40",children:["based on ",s.review_count.toLocaleString()," reviews"]}):null]}),r.jsx("div",{className:`mt-1.5 flex justify-center text-[12.5px] ${a}`,children:r.jsx(mE,{})})]})]})}const hE=()=>{const{isGold:e}=Nr(),{tenant:t,isDefault:n}=Be();xn();const{withRef:o}=Mo(),s=su(t),a=e?void 0:"hsl(var(--background))",l=e?"text-white":"text-foreground",i=e?"text-white/65":"text-muted-foreground",d=e?"text-hero-accent":"text-primary",f=e?`hsl(${t.hero_underline_color||t.hero_accent_color||"43 90% 55%"})`:"hsl(224 66% 33%)",m=e?{color:`hsl(${t.hero_fg_color||"0 0% 100%"})`}:void 0,h=e?{color:`hsl(${t.hero_muted_fg_color||"220 20% 80%"})`}:void 0,v=t.hero_card_icon_bg_color?{backgroundColor:`hsl(${t.hero_card_icon_bg_color})`}:void 0,p=t.hero_card_icon_border_color?{borderColor:`hsl(${t.hero_card_icon_border_color})`}:void 0,b=t.hero_card_icon_color?{color:`hsl(${t.hero_card_icon_color})`}:void 0,x=!!(t.hero_card_icon_bg_color||t.hero_card_icon_border_color||t.hero_card_icon_color),y=x?"":e?"bg-gold/[0.10] border-gold/[0.20]":"bg-success/[0.1] border-success/[0.2]",E=x?"":e?"text-gold":"text-success",A=(()=>{const k=(t.hero_fg_color||"0 0% 100%").split(" "),K=parseFloat(k[2]||"100");return isNaN(K)?100:K})(),R=e&&A<50,T=R?"bg-white/85 border-black/5 shadow-sm":e?"bg-white/[0.06] border-white/[0.08]":"bg-card/90 border-border",j=e?"text-white":"text-foreground",S=e?"text-white/55":"text-muted-foreground",P=R?{color:`hsl(${t.hero_fg_color})`}:void 0,C=R?{color:`hsl(${t.hero_muted_fg_color||t.hero_fg_color})`}:void 0,D=e?"bg-gold text-gold-foreground hover:bg-gold/90 shadow-xl shadow-gold/20":"bg-primary text-primary-foreground hover:bg-primary/90 shadow-xl shadow-primary/15",O=e?"border-gold/45 text-gold bg-gold/10 hover:bg-gold/20 hover:text-gold":"border-border text-foreground hover:bg-muted hover:text-gold",$=e?"opacity-[0.08]":"grayscale opacity-[0.08]",I=e?"bg-gold/[0.06]":"bg-primary/[0.04]",H=e?"bg-white/[0.03]":"bg-muted/30";return r.jsxs("section",{className:"relative flex items-center overflow-hidden",style:{background:e?s:a},children:[r.jsx("div",{className:"absolute inset-0",children:r.jsxs("picture",{children:[r.jsx("source",{srcSet:Tp,type:"image/avif"}),r.jsx("source",{srcSet:xo,type:"image/webp"}),r.jsx("img",{src:xo,alt:"",className:`w-full h-full object-cover ${$}`,fetchPriority:"high",decoding:"async"})]})}),r.jsx("div",{className:`hidden md:block absolute top-[10%] right-[5%] w-[500px] h-[500px] ${I} rounded-full blur-[150px]`}
89),r.jsx("div",{className:`hidden md:block absolute bottom-[15%] left-[8%] w-[400px] h-[400px] ${H} rounded-full blur-[140px]`}),r.jsx("div",{className:`absolute bottom-0 left-0 right-0 h-px bg-gradient-to-r from-transparent ${e?"via-white/15":"via-border"} to-transparent`}),r.jsx("div",{className:"relative container mx-auto px-4 lg:px-8 pt-24 pb-16",children:r.jsxs("div",{className:"max-w-4xl mx-auto text-center",children:[r.jsxs(He.h1,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.08},className:`font-inter font-medium text-[2rem] sm:text-[2.5rem] lg:text-[3rem] xl:text-[3.25rem] ${l} leading-[1.12] mb-5 tracking-[-0.03em] max-w-3xl mx-auto`,style:m,children:["Tariff Refunds,"," ",r.jsxs("span",{className:`relative ${d}`,children:["Simplified.",r.jsx("svg",{className:"absolute -bottom-2 left-0 w-full h-[6px]",viewBox:"0 0 200 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",children:r.jsx("path",{d:"M2 4.5C30 4, 60 2, 100 2.5C140 3, 170 1.5, 198 2",stroke:f,strokeWidth:"2",strokeLinecap:"round",strokeOpacity:"0.7"})})]})]}),r.jsx(He.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.12},className:`${l} text-xl sm:text-2xl lg:text-[1.75rem] leading-snug mb-8 max-w-2xl mx-auto font-inter font-light tracking-[-0.02em]`,style:m,children:"Recover What You're Owed."}),r.jsxs(He.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.16},className:`${i} text-base lg:text-lg leading-relaxed mb-12 max-w-2xl mx-auto`,style:h,children:["Our platform helps importers and customs brokers streamline the ",r.jsx("span",{className:d,children:"tariff refund"})," process and access ",r.jsx("span",{className:d,children:"advance funding"})," options for eligible claims."]}),r.jsxs(He.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.24},className:"flex flex-col sm:flex-row justify-center gap-3 mb-16",children:[r.jsx(ge,{to:o("/apply"),className:"w-full sm:w-auto",children:r.jsxs(je,{size:"lg",className:`w-full sm:w-auto ${D} font-semibold text-[15px] px-10 h-12 group rounded-xl`,children:["Check My Tariff Refund",r.jsx(Oc,{className:"h-4 w-4 ml-2 group-hover:translate-x-1 transition-transform"})]})}),r.jsx(je,{onClick:()=>{var k;return(k=document.getElementById("how-it-works"))==null?void 0:k.scrollIntoView({behavior:"smooth"})},variant:"outline",size:"lg",className:`w-full sm:w-auto ${O} px-10 h-12 rounded-xl text-[15px] font-medium bg-transparent`,children:"Learn How It Works"})]}),n&&r.jsx(oa,{}),n&&r.jsxs(He.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.6,delay:.36},className:"mb-16 max-w-4xl mx-auto",children:[r.jsxs("div",{className:"flex items-center gap-4 sm:gap-6 mb-3",children:[r.jsx("div",{className:`flex-1 h-px bg-gradient-to-r from-transparent ${e?"via-white/20":"via-border"} to-transparent`}),r.jsx("span",{className:`text-[10px] uppercase tracking-[0.22em] font-semibold whitespace-nowrap ${e?"text-white/55":"text-muted-foreground/80"}`,children:"As Featured In"}),r.jsx("div",{className:`flex-1 h-px bg-gradient-to-r from-transparent ${e?"via-white/20":"via-border"} to-transparent`})]}),r.jsx("img",{src:Ap,alt:"Featured in major news, business, legal and local media outlets",loading:"lazy",className:`w-full max-w-3xl mx-auto h-auto object-contain ${e?"opacity-90":"opacity-60 [filter:invert(0.35)_brightness(0.85)]"}`}),r.jsx("p",{className:`mt-3 text-center text-[11px] tracking-wide ${e?"text-white/50":"text-muted-foreground/70"}`,children:"Published across major news, business, legal, and local media platforms"})]}),r.jsx(He.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.32},className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3 max-w-5xl mx-auto",children:[{icon:kc,label:"Calculate Your Refund Amount in 2 Minutes",desc:"Upload your data and instantly see how much you may be owed"},{icon:Dc,label:"Advance Funding Available",desc:"Access your funds upfront, before your claim is finalized"},{icon:bo,label:"Full-Service Claim Filing",desc:"We handle the entire process from review to submission on your behalf"},{icon:la,label:"Secure & Compliant",desc:"Managed by customs brokers and trade attorneys with a focus on regulatory precision"}].map(k=>r.jsxs("div",{className:`flex flex-col items-center text-center gap-3 ${T} md:backdrop-blur-sm border rounded-xl px-5 py-5 hover:shadow-md transition-all duration-300`,children:[r.jsx("div",{className:`w-10 h-10 rounded-lg ${y} border flex items-center justify-center shrink-0`,style:{...v,...p},children:r.jsx(k.icon,{className:`h-[18px] w-[18px] ${E}`,style:b})}),r.jsxs("div",{children:[r.jsx("p",{className:`${j} font-medium text-sm leading-snug mb-1`,style:P,children:k.label}),r.jsx("p",{className:`${S} text-[12px] leading-relaxed`,style:C,children:k.desc})]})]},k.label))})]})})]})},gE=[{icon:kc,label:"Calculate Your Refund Amount in 2 Minutes",desc:"Upload your data and instantly see how much you may be owed"},{icon:Dc,label:"Advance Funding Available",desc:"Access your funds upfront, before your claim is finalized"},{icon:bo,label:"Full-Service Claim Filing",desc:"We handle the entire process from review to submission on your behalf"},{icon:la,label:"Secure & Compliant",desc:"Managed by customs brokers and trade attorneys with a focus on regulatory precision"}],Wl=({isGold:e})=>r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-4 sm:gap-6 mb-3",children:[r.jsx("div",{className:`flex-1 h-px bg-gradient-to-r from-transparent ${e?"via-white/20":"via-border"} to-transparent`}),r.jsx("span",{className:`text-[10px] uppercase tracking-[0.22em] font-semibold whitespace-nowrap ${e?"text-white/55":"text-muted-foreground
89/80"}`,children:"As Featured In"}),r.jsx("div",{className:`flex-1 h-px bg-gradient-to-r from-transparent ${e?"via-white/20":"via-border"} to-transparent`})]}),r.jsx("img",{src:Ap,alt:"Featured in major news, business, legal and local media outlets",loading:"lazy",className:`w-full max-w-3xl mx-auto h-auto object-contain ${e?"opacity-90":"opacity-60 [filter:invert(0.35)_brightness(0.85)]"}`}),r.jsx("p",{className:`mt-3 text-center text-[11px] tracking-wide ${e?"text-white/50":"text-muted-foreground/70"}`,children:"Published across major news, business, legal, and local media platforms"})]}),_E=()=>{const{isGold:e}=Nr(),{tenant:t}=Be(),{withRef:n}=Mo(),o=su(t),s=e?"text-white":"text-foreground",a=e?"text-white/65":"text-muted-foreground",l=e?"text-hero-accent":"text-primary",i=e?`hsl(${t.hero_underline_color||t.hero_accent_color||"43 90% 55%"})`:"hsl(224 66% 33%)",d=e?"bg-white/[0.05] border-white/[0.10]":"bg-card/90 border-border",f=e?"bg-gold/[0.10] border-gold/[0.20]":"bg-success/[0.1] border-success/[0.2]",m=e?"text-gold":"text-success",h=e?"text-white":"text-foreground",v=e?"text-white/55":"text-muted-foreground",p=e?"bg-gold text-gold-foreground hover:bg-gold/90 shadow-xl shadow-gold/20":"bg-primary text-primary-foreground hover:bg-primary/90 shadow-xl shadow-primary/15",b=e?"border-gold/45 text-gold bg-gold/10 hover:bg-gold/20 hover:text-gold":"border-border text-foreground hover:bg-muted hover:text-gold",x=e?"opacity-[0.08]":"grayscale opacity-[0.08]",y=e?"bg-gold/[0.08] border-gold/[0.18] text-gold/85":"bg-primary/[0.06] border-primary/[0.14] text-primary/80",E=A=>({initial:{opacity:0,y:18},animate:{opacity:1,y:0},transition:{duration:.5,delay:A}});return r.jsxs("section",{className:"relative overflow-hidden min-w-0",style:{background:e?o:"hsl(var(--background))"},children:[r.jsx("div",{className:"absolute inset-0",children:r.jsxs("picture",{children:[r.jsx("source",{srcSet:Tp,type:"image/avif"}),r.jsx("source",{srcSet:xo,type:"image/webp"}),r.jsx("img",{src:xo,alt:"",className:`w-full h-full object-cover ${x}`,fetchPriority:"high",decoding:"async"})]})}),r.jsx("div",{className:`hidden md:block absolute top-[6%] right-[2%] w-[520px] h-[520px] ${e?"bg-gold/[0.06]":"bg-primary/[0.04]"} rounded-full blur-[150px]`}),r.jsx("div",{className:`hidden md:block absolute bottom-[10%] left-[4%] w-[420px] h-[420px] ${e?"bg-white/[0.03]":"bg-muted/30"} rounded-full blur-[140px]`}),r.jsx("div",{className:`absolute bottom-0 left-0 right-0 h-px bg-gradient-to-r from-transparent ${e?"via-white/15":"via-border"} to-transparent`}),r.jsxs("div",{className:"relative container mx-auto px-4 lg:px-8 pt-20 sm:pt-24 pb-14",children:[r.jsxs("div",{className:"max-w-6xl mx-auto grid grid-cols-1 lg:grid-cols-[minmax(0,1.06fr)_minmax(0,0.94fr)] gap-10 lg:gap-12 items-center",children:[r.jsxs("div",{className:"min-w-0 text-center lg:text-left",children:[r.jsx(He.span,{...E(.04),className:`inline-flex items-center gap-2 rounded-full border px-3 py-1 text-[11px] font-semibold uppercase tracking-[0.16em] ${y}`,children:"Recover What You're Owed"}),r.jsxs(He.h1,{...E(.08),className:`mt-5 font-inter font-medium text-[2.1rem] sm:text-[2.75rem] lg:text-[2.5rem] xl:text-[2.7rem] ${s} leading-[1.08] tracking-[-0.03em] lg:whitespace-nowrap`,style:e?{color:`hsl(${t.hero_fg_color||"0 0% 100%"})`}:void 0,children:["Tariff Refunds,"," ",r.jsxs("span",{className:`relative ${l}`,children:["Simplified.",r.jsx("svg",{className:"absolute -bottom-2 left-0 w-full h-[6px]",viewBox:"0 0 200 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none",children:r.jsx("path",{d:"M2 4.5C30 4, 60 2, 100 2.5C140 3, 170 1.5, 198 2",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeOpacity:"0.7"})})]})]}),r.jsxs(He.p,{...E(.14),className:`${a} mt-7 text-base sm:text-lg leading-relaxed max-w-xl mx-auto lg:mx-0`,style:e?{color:`hsl(${t.hero_muted_fg_color||"220 20% 80%"})`}:void 0,children:["Our platform helps importers and customs brokers streamline the"," ",r.jsx("span",{className:l,children:"tariff refund"})," process and access"," ",r.jsx("span",{className:l,children:"advance funding"})," options for eligible claims."]}),r.jsxs(He.div,{...E(.2),className:"mt-8 flex flex-col sm:flex-row gap-3 justify-center lg:justify-start",children:[r.jsx(ge,{to:n("/apply"),className:"w-full sm:w-auto",children:r.jsxs(je,{size:"lg",className:`w-full sm:w-auto ${p} font-semibold text-[15px] px-8 h-12 group rounded-xl`,children:["Check My Tariff Refund",r.jsx(Oc,{className:"h-4 w-4 ml-2 group-hover:translate-x-1 transition-transform"})]})}),r.jsx(je,{onClick:()=>{var A;
89return(A=document.getElementById("how-it-works"))==null?void 0:A.scrollIntoView({behavior:"smooth"})},variant:"outline",size:"lg",className:`w-full sm:w-auto ${b} px-8 h-12 rounded-xl text-[15px] font-medium bg-transparent`,children:"Learn How It Works"})]}),r.jsx(He.div,{...E(.24),className:"mt-6 flex flex-wrap items-center justify-center lg:justify-start gap-2",children:["No upfront cost","No risk or obligation","Secure & Compliant"].map(A=>r.jsxs("span",{className:`inline-flex items-center gap-1.5 rounded-full border px-3 py-1.5 text-[11.5px] font-medium ${e?"border-white/[0.14] bg-white/[0.06] text-white/75":"border-border bg-muted/50 text-muted-foreground"}`,children:[r.jsx(la,{className:`h-3.5 w-3.5 ${m}`}),A]},A))})]}),r.jsx("div",{className:"lg:hidden [&>div]:mb-0",children:r.jsx(oa,{})}),r.jsx("div",{className:"lg:hidden",children:r.jsx(Wl,{isGold:e})}),r.jsxs(He.div,{...E(.26),className:`min-w-0 rounded-2xl border ${d} md:backdrop-blur-sm overflow-hidden shadow-lg shadow-black/5 relative`,children:[r.jsx("div",{className:`absolute top-0 left-0 right-0 h-px bg-gradient-to-r ${e?"from-gold/0 via-gold/50 to-gold/0":"from-primary/0 via-primary/40 to-primary/0"}`}),r.jsxs("div",{className:"px-5 sm:px-6 pt-5 pb-4 flex items-center justify-between",children:[r.jsxs("div",{className:"flex items-center gap-2.5",children:[r.jsx("div",{className:`w-7 h-7 rounded-md ${f} border flex items-center justify-center`,children:r.jsx(pm,{className:`h-3.5 w-3.5 ${m}`})}),r.jsx("p",{className:`text-[11px] uppercase tracking-[0.18em] font-bold ${e?"text-white/70":"text-foreground/80"}`,children:"What You Get"})]}),r.jsx("span",{className:`text-[10px] font-semibold ${e?"text-white/40":"text-muted-foreground/60"}`,children:"4 benefits"})]}),r.jsx("ul",{children:gE.map((A,R)=>r.jsxs("li",{className:`group relative flex items-start gap-4 px-5 sm:px-6 py-4 transition-colors hover:bg-foreground
89/[0.04] ${R!==0?`border-t ${e?"border-white/[0.06]":"border-border"}`:""}`,children:[r.jsx("div",{className:`absolute left-0 top-0 bottom-0 w-[2.5px] ${e?"bg-gold":"bg-primary"} origin-top scale-y-0 group-hover:scale-y-100 transition-transform duration-200`}),r.jsx("div",{className:`relative w-10 h-10 rounded-xl ${f} border flex items-center justify-center shrink-0 transition-all duration-300 group-hover:scale-105`,children:r.jsx(A.icon,{className:`h-[18px] w-[18px] ${m}`})}),r.jsxs("div",{className:"min-w-0 flex-1",children:[r.jsx("div",{className:"flex items-center gap-2",children:r.jsx("p",{className:`${h} font-semibold text-[13.5px] leading-snug`,children:A.label})}),r.jsx("p",{className:`${v} text-[12px] leading-relaxed mt-1`,children:A.desc})]}),r.jsx(jt,{className:`h-3.5 w-3.5 ${m} opacity-0 group-hover:opacity-60 transition-opacity shrink-0 mt-1`})]},A.label))})]})]}),r.jsxs("div",{className:"max-w-6xl mx-auto mt-12",children:[r.jsx("div",{className:"hidden lg:block [&>div]:mb-0 [&>div]:max-w-3xl",children:r.jsx(oa,{})}),r.jsx(He.div,{...E(.36),className:"mt-8 hidden lg:block",children:r.jsx(Wl,{isGold:e})})]})]})]})},xE=()=>{const[e]=jc(),{isTraBranded:t}=Be(),n=e.get("hero")==="v1";return t&&!n?r.jsx(_E,{}):r.jsx(hE,{})},vE=[{icon:mm,label:"CIT Ruling-Ready Filing Process"},{icon:hm,label:"19 U.S.C. § 1514 Compliant"},{icon:gm,label:"Licensed Customs Brokers & Trade Counsel"},{icon:Nc,label:"SOC 2 · 256-bit Encryption"},{icon:mn,label:"100% Contingency â Zero Upfront Fees"},{icon:Ic,label:"$166B+ in IEEPA Duties Under Review"}],yE=()=>{const{isGold:e}=Nr(),{tenant:t}=Be(),n=t.trustbar_bg_color?`linear-gradient(90deg, hsl(${t.trustbar_bg_color}), hsl(${t.trustbar_bg_via_color??t.trustbar_bg_color} / 0.92), hsl(${t.trustbar_bg_to_color??t.trustbar_bg_color}))`:"linear-gradient(90deg, hsl(222 42% 8%), hsl(222 38% 12%), hsl(222 42% 8%))",o=t.trustbar_badge_bg_color?`hsl(${t.trustbar_badge_bg_color})`:"hsl(0 0% 100% / 0.04)",s=t.trustbar_badge_border_color?`1px solid hsl(${t.trustbar_badge_border_color})`:"1px solid hsl(0 0% 100% / 0.06)",a=t.trustbar_badge_fg_color?`hsl(${t.trustbar_badge_fg_color})`:"hsl(0 0% 100% / 0.6)",l=t.trustbar_icon_color?`hsl(${t.trustbar_icon_color})`:e?"hsl(var(--gold))":"hsl(var(--success))";return r.jsx("section",{className:"py-5 border-b border-white/[0.04]",style:{background:n},children:r.jsx("div",{className:"container mx-auto px-4 lg:px-8",children:r.jsx(He.div,{initial:{opacity:0}
89,whileInView:{opacity:1},viewport:{once:!0},transition:{duration:.5},className:"flex flex-wrap items-center justify-center gap-2.5",children:vE.map(i=>r.jsxs("div",{className:"flex items-center gap-2 rounded-full px-3.5 py-1.5",style:{background:o,border:s},children:[r.jsx(i.icon,{className:"h-3.5 w-3.5",style:{color:l}}),r.jsx("span",{className:"text-[12px] font-medium",style:{color:a},children:i.label})]},i.label))})})})},bE=_(()=>g(()=>import("./ChatWidget-7K5DhckU.js"),__vite__mapDeps([25,4,5,1,2,26,9,27,28,20,29,21,22,23,6,7,30,31,32,33,34,35,11,3,8,10])));function wE({surface:e="marketing"}){const[t,n]=c.useState(!1),[o,s]=c.useState("chat");return c.useEffect(()=>{const a=l=>{const i=l.detail??{};s(i.tab==="ticket"?"ticket":"chat"),n(!0)};return window.addEventListener(un,a),()=>window.removeEventListener(un,a)},[]),t?r.jsx(c.Suspense,{fallback:null,children:r.jsx(bE,{surface:e,initialOpen:!0,initialTab:o})}):r.jsxs("button",{type:"button",onClick:()=>n(!0),className:"inline-flex fixed right-4 md:right-6 bottom-24 md:bottom-6 z-[130] items-center gap-2 h-12 px-5 rounded-full bg-gold text-gold-foreground shadow-xl shadow-gold/30 hover:bg-gold/90 transition-colors font-semibold text-sm","aria-label":"Open support",children:[r.jsx(_m,{className:"h-5 w-5"}),"Support"]})}const EE=_(()=>g(()=>import("./AnnouncementBanner-WWTEg0Wf.js"),__vite__mapDeps([36,4,5,11,9,3,6,1,2,7,8,10]))),jE=_(()=>g(()=>import("./SocialProofStrip-YV3Gt_-T.js"),__vite__mapDeps([37,4,5,10,1,2,11,9]))),TE=_(()=>g(()=>import("./HowItWorks-BT5OLHp3.js"),__vite__mapDeps([38,4,5,11,9,3,6,1,2,7,8,10]))),AE=_(()=>g(()=>import("./EligibilityChecker-BOPCo22B.js"),__vite__mapDeps([39,4,5,10,1,2,11,9,3,6,7,8]))),RE=_(()=>g(()=>import("./ComparisonTable-C26O9hfH.js"),__vite__mapDeps([40,4,5,10,1,2,11,9,3,6,7,8]))),PE=_(()=>g(()=>import("./WhySell-BJPVcCIp.js"),__vite__mapDeps([41,4,5,10,1,2,11,9,3,6,7,8]))),SE=_(()=>g(()=>import("./CaseResults-CNQ4u9fj.js"),__vite__mapDeps([42,4,5,11,9,3,6,1,2,7,8,10]))),CE=_(()=>g(()=>import("./RefundEstimator-DMKaaHNK.js"),__vite__mapDeps([43,4,5,21,22,23,9,10,1,2,11,3,6,7,8]))),IE=_(()=>g(()=>import("./WhatWeDo-DV2Od3_m.js"),__vite__mapDeps([44,4,5,10,1,2,11,9,3,6,7,8]))),NE=_(()=>g(()=>import("./RegulatoryCompliance-BPV3ab-o.js"),__vite__mapDeps([45,4,5,46,47,9,10,1,2,11,3,6,7,8]))),OE=_(()=>g(()=>import("./FAQ-D-Pm05NQ.js"),__vite__mapDeps([48,4,5,10,1,2,46,47,9,11,3,6,7,8])));_(()=>g(()=>import("./BottomCTA-B-xXI72u.js"),__vite__mapDeps([49,4,5,11,9,3,6,1,2,7,8,10])));const kE=_(()=>g(()=>import("./AdvanceFundingCallout-Bi-hujg-.js"),__vite__mapDeps([50,4,5,9,3,6,1,2,7,8,10,11]))),DE=_(()=>g(()=>import("./Footer-DuWDF-ft.js"),__vite__mapDeps([51,4,5,10,1,2,32,9,3,6,7,8,11]))),LE={"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"What are IEEPA tariff refunds?",acceptedAnswer:{"@type":"Answer",text:"IEEPA tariff refunds are duties paid under the International Emergency Economic Powers Act that may be recoverable after the Court of International Trade ruled the tariffs unlawful."}},{"@type":"Question",name:"How do I know if I qualify for a tariff refund?",acceptedAnswer:{"@type":"Answer",text:"If you imported goods into the U.S. and paid IEEPA duties between 2025-2026, you likely qualify. Use our free eligibility checker to find out."}},{"@type":"Question",name:"How long does the tariff refund process take?",acceptedAnswer:{"@type":"Answer",text:"Traditional refund claims can take 12-18 months. With our cash-now option, you can sell your claim and receive payment within days of approval."}}]},ME={"@context":"https://schema.org","@type":"HowTo",name:"How to Recover Your Tariff Refund",description:"Three simple steps to recover overpaid tariff duties.",step:[{"@type":"HowToStep",name:"Submit",text:"Submit your import details through our online form."},{"@type":"HowToStep",name:"We Analyze",text:"Our trade experts and customs attorneys review your eligibility and calculate your refund."},{"@type":"HowToStep",name:"You Get Paid",text:"Choose to sell your claim for immediate cash or file for a full refund."}]},$E=()=>r.jsx("div",{className:"min-h-[200px]","aria-hidden":"true"}),FE=()=>{const e=xn(),[t]=jc(),n=Kt();return gw(),c.useEffect(()=>{const o=t.get("ref");o&&g(async()=>{const{persistRef:s}=await Promise.resolve().then(()=>Jy);return{persistRef:s}},void 0).then(({persistRef:s})=>s(o))},[t]),c.useEffect(()=>{if(n.hash){const o=n.hash.replace("#","");setTimeout(()=>{var s;(s=document.getElementById(o))==null||s.scrollIntoView({behavior:"smooth"})},300)}},[n.hash]),r.jsxs("div",{className:"min-h-screen","data-thumb-capture-root":"1",children:[r.jsx(pf,{title:"IEEPA Tariff Refund Recovery | Claim Overpaid Duties Fast",description:"Paid IEEPA tariffs in 2025â2026? You may be owed a refund. Get a fast audit and recover overpaid import duties with expert filing.",canonical:e.url("/"),structuredData:[LE,ME],breadcrumbs:[{name:"Home",url:e.url("/")}]}),r.jsx(tE,{}),r.jsx(xE,{}),r.jsx(yE,{}
89),r.jsxs(c.Suspense,{fallback:r.jsx($E,{}),children:[r.jsx(EE,{}),r.jsx(kE,{variant:"card",className:"pb-0 md:pb-0"}),r.jsx("div",{className:"[&>section]:pt-8 md:[&>section]:pt-10",children:r.jsx(jE,{})}),r.jsx(TE,{}),r.jsx(AE,{}),r.jsx(RE,{}),r.jsx(PE,{}),r.jsx(SE,{}),r.jsx(CE,{}),r.jsx(IE,{}),r.jsx(NE,{}),r.jsx(OE,{}),r.jsx(DE,{})]}),r.jsx(wE,{})]})},Ts=()=>{const e=Kt();return c.useEffect(()=>{const t=e.pathname||"";/^\/(?:__l5e|\.well-known|wp-admin|wp-login|cgi-bin)|\/(?:apply\[|l\/\)|l\/apply\[)/i.test(t)||qt(new Error(`404: ${e.pathname}`),{component:"NotFound",severity:"warning",http_status:404,route:e.pathname+e.search,details:{pathname:e.pathname,search:e.search,referrer:typeof document<"u"?document.referrer:null}})},[e.pathname,e.search]),r.jsxs("div",{className:"flex min-h-screen items-center justify-center bg-muted",children:[r.jsx(pf,{title:"Page Not Found",description:"The page you're looking for doesn't exist.",noindex:!0}),r.jsxs("div",{className:"text-center",children:[r.jsx("h1",{className:"mb-4 text-4xl font-bold",children:"404"}),r.jsx("p",{className:"mb-4 text-xl text-muted-foreground",children:"Oops! Page not found"}),r.jsx("a",{href:"/",className:"text-primary underline hover:text-primary/90",children:"Return to Home"})]})]})},As=_(()=>g(()=>import("./Apply-C-7KGezA.js"),__vite__mapDeps([52,4,5,3,29,53,9,54,23,55,21,22,1,2,18,56,20,11,57,10,51,32,6,7,8,58]))),VE=_(()=>g(()=>import("./PartnerUpdateMay2026-z1bQ-6Av.js"),__vite__mapDeps([59,4,5,51,10,1,2,32,9,3,6,7,8,11]))),BE=_(()=>g(()=>import("./PartnerUpdateMay15-BKMG_TMi.js"),__vite__mapDeps([60,4,5,51,10,1,2,32,9,3,6,7,8,11,61,
8962]))),UE=_(()=>g(()=>import("./IeepaCrmBigPromo-DD0qNYGW.js"),__vite__mapDeps([63,4,5,51,10,1,2,32,9,3,6,7,8,11]))),zE=_(()=>g(()=>import("./Pages-zEVyGkuj.js"),__vite__mapDeps([64,4,5,1,2,34,65,23,29,20,66,21,22,9,3,6,7,8,10,11]))),HE=_(()=>g(()=>import("./ApplyFunding-zLJZibF9.js"),__vite__mapDeps([67,4,5,34,29,54,23,9,68,21,22,69,51,10,1,2,32,3,6,7,8,11,57,53,70]))),WE=_(()=>g(()=>import("./AdvanceFunding-C3Rv4f8F.js"),__vite__mapDeps([71,4,5,51,10,1,2,32,9,3,6,7,8,11,72]))),qE=_(()=>g(()=>import("./FundingApplicationSubmitted-j741DWAr.js"),__vite__mapDeps([73,4,5,34,9,3,6,1,2,7,8,10,11]))),GE=_(()=>g(()=>import("./FundingApplications-DBlJaYP3.js"),__vite__mapDeps([74,4,5,34,1,2,54,23,9,75,76,77,16,78,17,79,80,3,6,7,8,10,11]))),YE=_(()=>g(()=>import("./FundingApplicationDetail-B37kZdCF.js"),__vite__mapDeps([81,4,5,34,82,20,55,1,2,9,78,17,16,79,80,77,3,6,7,8,10,11]))),KE=_(()=>g(()=>import("./Login-CJTk2Mxv.js"),__vite__mapDeps([83,3,4,5,53,9,84,29,54,23,1,2,85,86,32,87,58,88,6,7,8,10,11]))),XE=_(()=>g(()=>import("./ResetPassword-BfYRhQeS.js"),__vite__mapDeps([89,4,5,1,2,29,34,9,3,6,7,8,10,11]))),ql=_(()=>g(()=>import("./PublicAgreementSign-rUwEsxcm.js"),__vite__mapDeps([90,4,5,1,2,34,91,3,54,23,9,92,22,55,93,29,94,68,21,95,96,97,98,6,7,8,10,11]))),JE=_(()=>g(()=>import("./PublicInvoice-Bootg_yZ.js"),__vite__mapDeps([99,4,5,1,2,100,9,77,16,3,6,7,8,10,11]))),Un=_(()=>g(()=>import("./Account-Cu68OoJ4.js"),__vite__mapDeps([101,4,5,34,82,21,22,23,9,1,2,29,20,53,102,103,6,7,104,77,16,65,98,3,91,54,92,55,93,8,10,11,105]))),ZE=_(()=>g(()=>import("./Results-CZ2CX7Pn.js"),__vite__mapDeps([106,4,5,51,10,1,2,32,9,3,6,7,8,11,107,37]))),QE=_(()=>g(()=>import("./ResourcesHub-hsr4Euva.js"),__vite__mapDeps([108,4,5,51,10,1,2,32,9,3,6,7,8,11,107,109]))),ej=_(()=>g(()=>import("./CategoryPage-Bd0Xi-n3.js"),__vite__mapDeps([110,4,5,51,10,1,2,32,9,3,6,7,8,11,109,111]))),tj=_(()=>g(()=>import("./ArticlePage-Cp--IM-u.js"),__vite__mapDeps([112,4,5,51,10,1,2,32,9,3,6,7,8,11,111,109]))),zn=_(()=>g(()=>import("./GeoLanding-DKmSldXe.js"),__vite__mapDeps([113,4,5,114,51,10,1,2,32,9,3,6,7,8,11,115,116,46,47]))),rj=_(()=>g(()=>import("./PlatformPage-BcI7C3fM.js"),__vite__mapDeps([117,4,5,51,10,1,2,32,9,3,6,7,8,11,25,26,27,28,20,29,21,22,23,30,31,33,34,35]))),nj=_(()=>g(()=>import("./Unsubscribe-Cshm38N1.js"),__vite__mapDeps([118,4,5,1,2,34,51,10,32,9,3,6,7,8,11]))),Gl=_(()=>g(()=>import("./RaffleLive-CdXgKijt.js"),__vite__mapDeps([119,4,5,65,23,29,9,3,6,1,2,7,8,10,11]))),oj=_(()=>g(()=>import("./ForImporters-Lm0hYNQD.js"),__vite__mapDeps([120,4,5,51,10,1,2,32,9,3,6,7,8,11,50]))),sj=_(()=>g(()=>import("./ForBrokers-I4cVdH2j.js"),__vite__mapDeps([121,4,5,51,10,1,2,32,9,3,6,7,8,11,50]))),aj=_(()=>g(()=>import("./IndustriesPage-BEeGWdtJ.js"),__vite__mapDeps([122,4,5,51,10,1,2,32,9,3,6,7,8,11,107]))),ij=_(()=>g(()=>import("./HowItWorksPage-BUB3eeab.js"),__vite__mapDeps([123,4,5,51,10,1,2,32,9,3,6,7,8,11,107]))),lj=_(()=>g(()=>import("./FAQPage-BFx_DlXI.js"),__vite__mapDeps([124,4,5,51,10,1,2,32,9,3,6,7,8,11,107,49]))),cj=_(()=>g(()=>import("./IEEPARefunds-BPqd55ZJ.js"),__vite__mapDeps([125,4,5,114,51,10,1,2,32,9,3,6,7,8,11,115,116,46,47,50]))),dj=_(()=>g(()=>import("./DutyDrawback-D9-BuV0e.js"),__vite__mapDeps([126,4,5,114,51,10,1,2,32,9,3,6,7,8,11,115,116,46,47]))),uj=_(()=>g(()=>import("./FreeAssessment-D25EZBhq.js"),__vite__mapDeps([127,4,5,51,10,1,2,32,9,3,6,7,8,11,107,43,21,22,23]))),fj=_(()=>g(()=>import("./CBPProtest-DHIQmCSo.js"),__vite__mapDeps([128,4,5,114,51,10,1,2,32,9,3,6,7,8,11,115,116,46,47,50]))),pj=_(()=>g(()=>import("./Eligibility-Cm_51ddr.js"),__vite__mapDeps([129,4,5,114,51,10,1,2,32,9,3,6,7,8,11,115,116,46,47]))),mj=_(()=>g(()=>import("./TariffRefundProcess-DBsNhQ2k.js"),__vite__mapDeps([130,4,5,114,51,10,1,2,32,9,3,6,7,8,11,115,116,46,47]))),hj=_(()=>g(()=>import("./TariffRefundPillar-foSfOZs7.js"),__vite__mapDeps([131,4,5,132,51,10,1,2,32,9,3,6,7,8,11,49,116,115,46,47,43,21,22,23,50]))),gj=_(()=>g(()=>import("./TariffRecovery-CPxQISaP.js"),__vite__mapDeps([133,4,5,132,51,10,1,2,32,9,3,6,7,8,11,49,116,115,46,47]))),_j=_(()=>g(()=>import("./CustomsDutyRefund-Blupo1TV.js"),__vite__mapDeps([134,4,5,132,51,10,1,2,32,9,3,6,7,8,11,49,116,115,46,47,50]))),xj=_(()=>g(()=>import("./ImportDutyRecovery-Ctsq5UlW.js"),__vite__mapDeps([135,4,5,132,51,10,1,2,32,9,3,6,7,8,11,49,116,115,46,47]))),vj=_(()=>g(()=>import("./ToolsHub-BMfqndwu.js"),__vite__mapDeps([136,4,5,51,10,1,2,32,9,3,6,7,8,11,107,49,116]))),Yl=_(()=>g(()=>import("./RefundCalculatorPage-DIrz4svY.js"),__vite__mapDeps([137,4,5,51,10,1,2,32,9,3,6,7,8,11,107,49,116,115,43,21,22,23]))),yj=_(()=>g(()=>import("./EligibilityCheckerPage-CuKb_lUV.js"),__vite__mapDeps([138,4,5,51,10,1,2,32,9,3,6,7,8,11,107,49,116,115,39,57]))),bj=_(()=>g(()=>import("./ACEAnalyzerPage-BZkcPKq5.js"),__vite__mapDeps([139,4,5,56,9,1,2,140,51,10,32,3,6,7,8,11,107,49,116,115]))),wj=_(()=>g(()=>import("./IndustryDetail-CPPdQOYz.js"),__vite__mapDeps([141,4,5,1,2,9,51,10,32,3,6,7,8,11,107,49,115]))),Ej=_(()=>g(()=>import("./CaseStudiesHub-xn6rjy1z.js"),__vite__mapDeps([142,4,5,1,2,51,10,32,9,3,6,7,8,11,107,49,116]))),jj=_(()=>g(()=>import("./CaseStudyDetail-CSMYB16k.js"),__vite__mapDeps([143,4,5,1,2,51,10,32,9,3,6,7,8,11,49,115,116]))),Tj=_(()=>g(()=>import("./HTSCodePage-COBYuBHV.js"),__vite__mapDeps([144,4,5,51,10,1,2,32,9,3,6,7,8,11,107,49,115,116]))),Aj=_(()=>g(()=>import("./TermsOfService-Buw1GF1M.js"),__vite__mapDeps([145,4,5,146,51,10,1,2,32,9,3,6,7,8,11,107]))),Rj=_(()=>g(()=>import("./PrivacyPolicy-DpXWa6B2.js"),__vite__mapDeps([147,4,5,146,51,10,1,2,32,9,3,6,7,8,11,107]))),Pj=_(()=>g(()=>import("./Disclaimer-SsZ1s4i3.js"),__vite__mapDeps([148,4,5,146,51,10,1,2,32,9,3,6,7,8,11,107]))),Sj=_(()=>g(()=>import("./CookiePolicy-CxCV-3l2.js"),__vite__mapDeps([149,4,5,146,51,10,1,2,32,9,3,6,7,8,11,107]))),Cj=_(()=>g(()=>import("./AcceptableUsePolicy-D4RN_df2.js"),__vite__mapDeps([150,4,5,146,51,10,1,2,32,9,3,6,7,8,11,107]))),Ij=_(()=>g(()=>import("./ReferralPartnerTerms-BrlnEtzo.js"),__vite__mapDeps([151,4,5,146,51,10,1,2,32,9,3,6,7,8,11,107]))),Nj=_(()=>g(()=>import("./ESignConsent-DKtR-C8N.js"),__vite__mapDeps([152,4,5,146,51,10,1,2,32,9,3,6,7,8,11,107]))),Oj=_(()=>g(()=>import("./DataProcessing-5otk3D_0.js"),__vite__mapDeps([153,4,5,146,51,10,1,2,32,9,3,6,7,8,11,107]))),kj=_(()=>g(()=>import("./PartnerWhitePaper-DXrveDfU.js"),__vite__mapDeps([154,4,5,34,55,1,2,9,3,6,7,8,10,11]))),Dj=_(()=>g(()=>import("./AnchorApiDocs-68QBkbVW.js"),__vite__mapDeps([155,4,5,34,55,1,2,156,9,3,6,7,8,10,11]))),Lj=_(()=>g(()=>import("./TechDocDetail-DVFEChbP.js"),__vite__mapDeps([157,4,5,158,159,3,6,1,2,7,8,9,10,11]))),Mj=_(()=>g(()=>import("./TechReference-4FJGMViz.js"),__vite__mapDeps([160,4,5,13,9,51,10,1,2,32,3,6,7,8,11,161,162,163,164,165,166,167,168,169,170,171,172,173,158,174,159]))),$j=_(()=>g(()=>import("./AdminLayout-BlzWewdC.js"),__vite__mapDeps([175,4,5,176,55,13,9,34,177,1,2,20,21,22,23,178,35,33,30,32,179,24,82,92,18,180,181,3,6,7,8,10,11]))),Fj=_(()=>g(()=>import("./Dashboard-CnnB8HWQ.js"),__vite__mapDeps([182,4,5,1,2,21,22,23,9,34,8,92,183,3,6,7,10,11]))),Vj=_(()=>g(()=>import("./Leads-BXte8NRB.js"),__vite__mapDeps([184,4,5,185,9,34,186,18,8,66,21,22,23,54,82,187,24,188,189,105,190,191,77,16,192,193,80,194,79,195,196,1,2,197,198,199,29,20,200,55,92,78,17,201,13,202,65,203,204,3,205,206,207,208,209,210,211,212,213,214,98,91,93,6,7,10,11,215,216,217,97,218,219,220,221,68,222,223,224,225,226,227,228,15,229,230,76,231,232]))),Bj=_(()=>g(()=>import("./Clients-JDWvugvs.js"),__vite__mapDeps([233,4,5,34,66,82,1,2,18,234,9,235,29,54,23,187,24,188,20,209,53,236,237,21,22,238,95,239,240,198,232,220,186,3,6,7,8,10,11]))),Uj=_(()=>g(()=>import("./LeadDetail-B6Ir8s-d.js").then(e=>e.L),__vite__mapDeps([241,3,4,5,199,105,18,9,29,20,1,2,198,230,76,220,34,21,22,23,82,55,54,242,243,91,92,93,98,6,7,8,10,11,215,216,212,65,213,211,244,203,245,47,246,197,78,17,16,79,80,232,186]))),it=_(()=>g(()=>import("./CrmList-C8r9KrRR.js"),__vite__mapDeps([247,4,5,248,21,22,23,9,185,1,2,34,66,187,24,188,82,234,204,3,189,205,198,18,186,29,20,190,191,77,16,192,193,80,194,79,55,206,207,226,227,208,209,210,211,212,65,213,214,98,91,54,92,93,6,7,8,10,11,215,216,217,97,218,219,220,221,105,68,222,223,224,225,249,76,15,17,229,250]))),zj=_(()=>g(()=>import("./CrmClaimDetail-By05-1cT.js"),__vite__mapDeps([251,4,5]))),Hj=_(()=>g(()=>import("./CrmDashboard-BONS6xcs.js"),__vite__mapDeps([252,4,5,1,2,34,189,3,6,7,8,9,10,11]))),Wj=_(()=>g(()=>import("./CrmTasks-BfmH6w7B.js"),__vite__mapDeps([253,4,5,1,2,34,82,205,249,3,6,7,8,9,10,11]))),qj=_(()=>g(()=>import("./CrmSettings-e0Nc5TYE.js"),__vite__mapDeps([254,4,5,1,2,34,65,23,29,187,24,188,9,20,21,22,3,6,7,8,10,11]))),Gj=_(()=>g(()=>import("./CrmReports-CyeMgOG2.js"),__vite__mapDeps([255,4,5,1,2,34,29,21,22,23,9,223,190,191,77,16,192,193,80,194,79,24,218,3,6,7,8,10,11]))),Yj=_(()=>g(()=>import("./RelationshipsLayout-Cd8Lu9xW.js"),__vite__mapDeps([256,4,5,257,1,2,13,9,92,22,21,23,220,3,6,7,8,10,11]))),Kj=_(()=>g(()=>import("./RelationshipsDashboard-DNxIYgQ5.js"),__vite__mapDeps([258,4,5,257,1,2,34,9,3,6,7,8,10,11]))),Xj=_(()=>g(()=>import("./RelationshipsList-DbC05pig.js"),__vite__mapDeps([259,4,5,257,1,2,34,21,22,23,9,65,29,260,3,6,7,8,10,11]))),Jj=_(()=>g(()=>
89import("./RelationshipsTasks-CW46MFxu.js"),__vite__mapDeps([261,4,5,257,1,2,34,54,23,9,21,22,260,3,6,7,8,10,11]))),Zj=_(()=>g(()=>import("./RelationshipsCalendar-n_XenhGx.js"),__vite__mapDeps([262,4,5,257,1,2,34,9,3,6,7,8,10,11]))),Qj=_(()=>g(()=>import("./RelationshipsCleanup-C06BrBo9.js"),__vite__mapDeps([263,4,5,34,21,22,23,9,65,257,1,2,3,6,7,8,10,11]))),eT=_(()=>g(()=>import("./RelationshipDetail-ub4H3oB8.js"),__vite__mapDeps([264,4,5,257,1,2,34,82,20,21,22,23,9,3,6,7,8,10,11]))),tT=_(()=>g(()=>import("./OrphanClaims-a6FWIdjW.js"),__vite__mapDeps([265,4,5,34,1,2,6,7,9,77,16,3,8,10,11]))),rT=_(()=>g(()=>import("./PaymentReconciliation-C9pX7Cju.js"),__vite__mapDeps([266,4,5,82,3,1,2,21,22,23,9,201,202,213,78,17,16,79,80,77,29,267,34,245,47,66,234,20,54,65,76,260,215,216,268,269,223,190,191,192,193,194,24,218,100,6,7,8,10,11]))),nT=_(()=>g(()=>import("./Pipeline-DlX_cS64.js"),__vite__mapDeps([270,4,5,82,24,190,191,77,16,192,193,80,194,79,9,54,23,1,2,18,200,55,198,187,188,186,195,34,271,8,76,208,66,29,20,21,22,209,210,211,212,65,213,214,98,3,91,92,93,6,7,10,11,215,216,217,97,218,219,220,221,105,68,222,223,224,225,204,189,205,206,207]))),oT=_(()=>g(()=>import("./Users-I62t64q2.js"),__vite__mapDeps([272,4,5,34,66,105,29,54,23,9,21,22,1,2,234,235,187,24,188,225,53,3,6,7,8,10,11]))),sT=_(()=>g(()=>import("./Stats-IpDmJnRf.js"),__vite__mapDeps([273,4,5,34,21,22,23,9,82,1,2,18,8,3,6,7,10,11]))),aT=_(()=>g(()=>import("./Affiliates-C-YZ0IfO.js"),__vite__mapDeps([274,3,4,5,34,66,275,9,21,22,23,82,1,2,211,208,29,20,187,24,188,209,210,212,65,213,214,98,91,54,92,55,93,6,7,8,10,11,215,216,217,97,218,16,219,77,220,221,105,68,222,223,190,191,192,193,80,194,79,224,225,276,236,237,53,277,278,279,78,17,234,280,227,281,260]))),iT=_(()=>g(()=>import("./PartnerAccess-DHeG73oj.js"),__vite__mapDeps([282,4,5,1,2,34,29,21,22,23,9,66,209,24,188,65,20,3,6,7,8,10,11]))),Kl=_(()=>g(()=>import("./Brokers-C4MBNDal.js"),__vite__mapDeps([283,3,4,5,34,66,95,9,29,21,22,23,20,82,1,2,18,234,284,244,65,285,102,227,6,7,8,10,11]))),lT=_(()=>g(()=>import("./Commissions-DoNVVrHG.js"),__vite__mapDeps([286,4,5,34,66,21,22,23,9,187,24,188,209,1,2,29,20,54,82,76,287,55,92,212,65,213,223,190,191,77,16,192,193,80,194,79,218,100,3,6,7,8,10,11]))),cT=_(()=>g(()=>import("./CommissionSimulator-D1bUUXF9.js"),__vite__mapDeps([288,4,5,34,29,65,23,21,22,9,211,1,2,213,3,6,7,8,10,11]))),dT=_(()=>g(()=>import("./LeadWaterfallInspector-Cq6BkoQ8.js"),__vite__mapDeps([289,4,5,1,2,34,66,29,290,9,3,6,7,8,10,11]))),uT=_(()=>g(()=>import("./AttributionRequests-CVwxOWny.js"),__vite__mapDeps([291,4,5,34,82,20,1,2,9,3,6,7,8,10,11]))),fT=_(()=>g(()=>import("./CompOverrides-CB-1OKtA.js"),__vite__mapDeps([292,4,5,1,2,82,34,29,20,66,187,24,188,9,209,3,6,7,8,10,11]))),pT=_(()=>g(()=>import("./PaymentAccounts-DifWgkuU.js"),__vite__mapDeps([293,4,5,34,21,22,23,9,66,102,1,2,285,18,82,208,29,20,187,24,188,209,210,211,212,65,213,214,98,3,91,54,92,55,93,6,7,8,10,11,215,216,217,97,218,16,219,77,220,221,105,68,222,223,190,191,192,193,80,194,79,224,225]))),mT=_(()=>g(()=>import("./HouseRevenue-DgX59IPP.js"),__vite__mapDeps([294,4,5,34,66,1,2,9,3,6,7,8,10,11]))),hT=_(()=>g(()=>import("./AnchorKPIs-DndCjIFu.js"),__vite__mapDeps([295,4,5,1,2,34,66,82,296,186,18,9,78,17,16,79,80,3,6,7,8,10,11]))),gT=_(()=>g(()=>import("./AnchorStatusMapping-CB7e1mF6.js"),__vite__mapDeps([297,4,5,34,20,21,22,23,9,1,2,18,3,6,7,8,10,11]))),_T=_(()=>g(()=>import("./Settings-BOwRCPZu.js"),__vite__mapDeps([298,4,5,55,34,29,21,22,23,9,82,65,1,2,284,53,20,95,92,54,299,300,140,3,6,7,8,10,11]))),xT=_(()=>g(()=>import("./AuditLog-Bz3TF3fc.js"),__vite__mapDeps([301,3,4,5,82,9,6,1,2,7,8,10,11]))),vT=_(()=>g(()=>import("./ActivityDashboard-CWlkHhVg.js"),__vite__mapDeps([302,3,4,5,6,1,2,7,8,9,10,11]))),yT=_(()=>g(()=>import("./Documentation-BBqG8WgX.js"),__vite__mapDeps([303,4,5,34,92,22,46,47,9,1,2,3,6,7,8,10,11]))),bT=_(()=>g(()=>import("./Resources-C5WATJYN.js"),__vite__mapDeps([304,4,5,1,2,162,163,164,165,166,167,168,169,170,171,172,173,34,29,20,65,23,21,22,9,66,3,6,7,8,10,11]))),wT=_(()=>g(()=>import("./Deadlines-DMBqhBlv.js"),__vite__mapDeps([305,4,5,1,2,34,21,22,23,9,66,18,3,6,7,8,10,11]))),ET=_(()=>g(()=>import("./EmailDashboard-Bfz5KhiU.js"),__vite__mapDeps([306,4,5,1,2,34,21,22,23,9,66,82,8,54,220,307,3,6,7,10,11]))),jT=_(()=>g(()=>import("./ReputationDashboard-Dfv6MGE4.js"),__vite__mapDeps([308,4,5,1,2,82,34,65,23,21,22,9,66,92,77,16,3,6,7,8,10,11])));_(()=>g(()=>import("./EmailQueue-2gYE3tmW.js").then(e=>e.b),__vite__mapDeps([307,4,5,1,2,34,66,9])));const TT=_(()=>g(()=>import("./PartnerCampaigns-BDnhvlSC.js"),__vite__mapDeps([309,4,5,1,2,34,69,20,82,9,3,6,7,8,10,11]))),AT=_(()=>g(()=>import("./PartnerCampaignDetail-Bz5Hm3IS.js"),__vite__mapDeps([310,4,5,1,2,34,69,29,82,222,22,23,54,9,299,300,55,311,21,3,6,7,8,10,11]))),RT=_(()=>g(()=>
89import("./PartnerSmsCampaignDetail-eYbv0Xpz.js"),__vite__mapDeps([312,4,5,1,2,34,69,29,20,82,222,22,23,54,9,311,21,3,6,7,8,10,11]))),PT=_(()=>g(()=>import("./SmsDashboard-DWVfYVDB.js"),__vite__mapDeps([313,4,5,34,29,65,23,66,1,2,9,245,47,21,22,55,92,3,6,7,8,10,11]))),ST=_(()=>g(()=>import("./DataModeTools-B0xGDt_B.js"),__vite__mapDeps([314,4,5,1,2,34,21,22,23,9,54,105,3,6,7,8,10,11]))),CT=_(()=>g(()=>import("./EmailTemplatePreview-BNWV1AT5.js"),__vite__mapDeps([315,4,5,34,29,65,23,220,82,21,22,9,1,2,3,6,7,8,10,11]))),IT=_(()=>g(()=>import("./RPA-Clm4NtNE.js"),__vite__mapDeps([316,4,5,1,2,34,82,21,22,23,9,3,6,7,8,10,11]))),NT=_(()=>g(()=>import("./DataQuality-BQCg2OmM.js"),__vite__mapDeps([317,4,5,1,2,34,69,9,3,6,7,8,10,11]))),OT=_(()=>g(()=>import("./Intelligence-CbPPHjlf.js"),__vite__mapDeps([318,4,5,1,2,34,20,55,82,69,92,22,3,9,27,6,7,8,10,11]))),kT=_(()=>g(()=>import("./InfrastructureHealth-B6cm0IGZ.js"),__vite__mapDeps([319,4,5,1,2,34,82,69,9,78,17,16,79,80,3,6,7,8,10,11]))),DT=_(()=>g(()=>import("./AIAssistant-D21WCYbA.js"),__vite__mapDeps([320,4,5,1,2,34,65,23,82,9,78,17,16,79,80,3,6,7,8,10,11]))),LT=_(()=>g(()=>import("./AdminSEO-BEb3cMp3.js"),__vite__mapDeps([321,4,5,1,2,34,82,20,65,23,29,92,22,66,55,222,69,9,3,6,7,8,10,11]))),MT=_(()=>g(()=>import("./RedirectMonitor-CGNaecks.js"),__vite__mapDeps([322,4,5,1,2,34,66,9,3,6,7,8,10,11]))),$T=_(()=>g(()=>import("./MarketIntelligence-DneMC4kn.js"),__vite__mapDeps([323,4,5,82,1,2,34,9,66,21,22,23,3,20,248,69,29,240,16,324,193,80,77,191,218,6,7,8,10,11]))),FT=_(()=>g(()=>import("./IEEPALeadEngine-D9jCYv8h.js"),__vite__mapDeps([325,4,5,1,2,34,9,21,22,23,65,29,66,326,82,92,20,281,8,78,17,16,79,80,55,15,77,69,223,190,191,192,193,194,24,218,327,3,6,7,10,11,328]))),Xl=_(()=>g(()=>import("./LeadProgramLayout-B3lvMzsA.js"),__vite__mapDeps([329,4,5,1,2,9,3,6,7,8,10,11]))),Jl=_(()=>g(()=>import("./LeadProgramPerformance-C1PlXQgg.js"),__vite__mapDeps([330,4,5,1,2,34,66,54,23,9,105,21,22,248,331,29,65,20,260,78,17,16,79,80,3,6,7,8,10,11]))),Zl=_(()=>g(()=>import("./LeadProgramParticipants-BpUozZn6.js"),__vite__mapDeps([332,4,5,1,2,34,54,23,9,66,21,22,105,260,29,24,188,331,65,20,92,82,78,17,16,79,80,248,3,6,7,8,10,11]))),Ql=_(()=>g(()=>import("./LeadProgramOptIns-7Hb21d5s.js"),__vite__mapDeps([333,4,5,1,2,34,54,23,9,21,22,66,248,29,20,334,78,17,16,79,80,3,6,7,8,10,11]))),VT=_(()=>g(()=>import("./LeadProgramOptIn-C3kWdsoM.js"),__vite__mapDeps([335,4,5,1,2,103,336,34,29,20,54,23,9,68,334,96,3,6,7,8,10,11]))),ec=_(()=>g(()=>import("./LeadProgramAssignedLeads-BPj0_rzh.js"),__vite__mapDeps([337,4,5,1,2,34,54,23,9,66,21,22,105,20,248,3,6,7,8,10,11]))),tc=_(()=>g(()=>import("./LeadProgramTiers-D-p_VYM3.js"),__vite__mapDeps([338,4,5,1,2,34,66,3,6,7,8,9,10,11]))),rc=_(()=>g(()=>import("./LeadProgramBatches-DHw3zJdQ.js"),__vite__mapDeps([339,4,5,1,2,34,66,82,248,21,22,23,9,3,6,7,8,10,11]))),nc=_(()=>g(()=>import("./LeadProgramAuditLog-9dd1zlK3.js"),__vite__mapDeps([340,4,5,1,2,34,66,21,22,23,9,248,3,6,7,8,10,11]))),oc=_(()=>g(()=>import("./LeadProgramAccountability-DVvxEtIV.js"),__vite__mapDeps([341,4,5,1,2,34,54,23,9,66,21,22,248,331,29,65,20,260,78,17,16,79,80,3,6,7,8,10,11]))),sc=_(()=>g(()=>import("./LeadProgramReports-G9pr4yO1.js"),__vite__mapDeps([342,4,5,1,2,34,29,66,183,9,223,190,191,77,16,192,193,80,194,79,24,218,3,6,7,8,10,11]))),ac=_(()=>g(()=>import("./LeadProgramSettings-CLpwzC6o.js"),__vite__mapDeps([343,4,5,1,2,34,29,65,23,20,9,3,6,7,8,10,11]))),BT=_(()=>g(()=>import("./SupportTickets-CfM0O4Vq.js"),__vite__mapDeps([344,4,5,1,2,34,20,21,22,23,9,82,54,92,13,196,8,24,29,208,66,187,188,209,210,211,212,65,213,214,98,3,91,55,93,6,7,10,11,215,216,217,97,218,16,219,77,220,221,105,68,222,223,190,191,192,193,80,194,79,224,225,245,47,235,178,35]))),UT=_(()=>g(()=>import("./ManualOutreach-B3w-wvd1.js"),__vite__mapDeps([345,4,5,34,82,66,1,2,227,9,226,198,18,75,76,228,24,204,3,189,205,186,29,20,21,22,23,190,191,77,16,192,193,80,194,79,55,188,206,207,15,17,229,6,7,8,10,11]))),zT=_(()=>g(()=>import("./PartnerProcessing-CbwDe8ap.js"),__vite__mapDeps([346,4,5,82,1,2,34,29,21,22,23,9,20,65,66,223,190,191,77,16,192,193,80,194,79,24,218,245,47,347,187,188,156,3,6,7,8,10,11]))),HT=_(()=>g(()=>import("./PartnerIntegrations-CpoAWu2L.js"),__vite__mapDeps([348,4,5,1,2,34,29,54,23,9,66,187,24,188,82,3,6,7,8,10,11]))),WT=_(()=>g(()=>import("./Organizations-CpzHP9U4.js"),__vite__mapDeps([349,4,5,1,2,29,65,23,66,278,187,24,188,9,34,68,97,98,3,91,54,92,22,55,93,6,7,8,10,11,223,190,191,77,16,192,193,80,194,79,218,20,82,222,21,290,209,350,236,53,95,351,352,275,353,58]))),qT=_(()=>g(()=>import("./OrgPerformance-kBoOTMA_.js"),__vite__mapDeps([354,4,5,355,1,2,34,9,66,3,6,7,8,10,11]))),GT=_(()=>g(()=>import("./OrgPerformanceDetail-C3KB98ef.js"),__vite__mapDeps([356,4,5,34,66,355,1,2,18,9,8,3,6,7,10,11]))),YT=_(()=>g(()=>import("./WhitelabelHealth-C_RLDRW1.js"),__vite__mapDeps([357,4,5,1,2,34,82,187,24,188,9,3,6,7,8,10,11]))),KT=_(()=>g(()=>import("./DomainStatus-BMj_TrPK.js"),__vite__mapDeps([358,4,5,1,2,34,66,9,3,6,7,8,10,11]))),XT=_(()=>g(()=>import("./DomainReferralAttributions-DYdUZF0q.js"),__vite__mapDeps([359,4,5,1,2,34,29,65,23,66,209,24,188,9,187,3,6,7,8,10,11]))),JT=_(()=>g(()=>import("./PreAttribution-CIEVCX0M.js"),__vite__mapDeps([360,4,5,361,1,2,34,82,21,22,23,9,13,362,296,3,6,7,8,10,11]))),ZT=_(()=>g(()=>import("./AdminIdentity-7SJc-3Rn.js"),__vite__mapDeps([363,4,5,1,2,34,82,13,9,20,21,22,23,92,66,65,29,227,76,78,17,16,79,80,3,6,7,8,10,11]))),QT=_(()=>g(()=>import("./MarketingMaterials-cs5qmRc5.js"),__vite__mapDeps([364,4,5,34,82,365,1,2,65,23,29,21,22,9,220,366,367,18,368,369,3,187,24,188,370,371,69,6,7,8,10,11]))),eA=_(()=>g(()=>import("./VideoStudioPage-WLxAv5Li.js"),__vite__mapDeps([372,4,5,1,2,373,6,7,20,29,34,82,21,22,23,9,3,8,10,11]))),tA=_(()=>g(()=>import("./PrintCenter-BjWkHG0N.js"),__vite__mapDeps([374,4,5,34,29,20,82,65,23,1,2,375,9,3,6,7,8,10,11]))),rA=_(()=>g(()=>import("./AdminThumbnails-9MT-glFR.js"),__vite__mapDeps([376,4,5,34,54,23,9,29,20,187,24,188,377,378,1,2,369,65,371,69,3,6,7,8,10,11]))),nA=_(()=>g(()=>import("./ReviewRaffleAdmin-DWKN5Ky2.js"),__vite__mapDeps([379,4,5,1,2,34,82,92,22,66,21,23,9,365,65,29,3,6,7,8,10,11]))),oA=_(()=>g(()=>import("./LoginLockouts-Bf5wGbgo.js"),__vite__mapDeps([380,4,5,34,66,1,2,6,7,9,77,16,3,8,10,11]))),sA=_(()=>g(()=>import("./PoolInviteActivity-CgOx9bDv.js"),__vite__mapDeps([381,4,5,34,21,22,23,9,66,1,2,6,7,77,16,3,8,10,11])));_(()=>g(()=>import("./ImportInfoCredentials-2CK05GU-.js"),__vite__mapDeps([327,4,5,1,2,34,29,65,23,20,9,3,6,7,8,10,11])));_(()=>g(()=>import("./ImportInfoSessions-BqBZ1ux_.js"),__vite__mapDeps([328,4,5,1,2,34,9,78,17,16,79,80,3,6,7,8,10,11])));const aA=_(()=>g(()=>import("./ImportInfoPipeline-CU2C1G-s.js"),__vite__mapDeps([382,4,5,1,2,34,9,78,17,16,79,80,3,6,7,8,10,11]))),iA=_(()=>g(()=>import("./ContactCoverage-Cb4NqBVC.js"),__vite__mapDeps([383,4,5,1,2,34,82,9,8,78,17,16,79,80,3,6,7,10,11]))),lA=_(()=>g(()=>import("./EnrichmentV2-CdB8R4zv.js"),__vite__mapDeps([384,4,5,1,2,34,65,23,82,9,78,17,16,79,80,3,6,7,8,10,11]))),cA=_(()=>g(()=>import("./SlideDecks-Cs6lR4P8.js"),__vite__mapDeps([385,4,5,34,29,386,1,2,9,3,6,7,8,10,11]))),dA=_(()=>g(()=>
89import("./SlideDeckEditor-B_HbPeJr.js"),__vite__mapDeps([387,4,5,20,29,34,65,23,21,22,9,82,386,1,2,388,368,370,389,3,6,7,8,10,11]))),ic=_(()=>g(()=>import("./DeckViewer-Hqn0N489.js"),__vite__mapDeps([390,4,5,386,1,2,388,9,368,370,389,391,3,6,7,8,10,11]))),uA=_(()=>g(()=>import("./DeckControl-Cts1vQ9v.js"),__vite__mapDeps([392,4,5,386,1,2,388,9,368,370,389,3,6,7,8,10,11]))),fA=_(()=>g(()=>import("./DiscoveryCalls-DSQPm8Cy.js"),__vite__mapDeps([393,4,5,260,34,21,22,23,9,66,248,223,190,191,77,16,192,193,80,194,79,24,218,1,2,394,395,396,397,82,54,29,398,399,20,65,3,6,7,8,10,11]))),pA=_(()=>g(()=>import("./DiscoveryCallReview-CGYz4Bfk.js"),__vite__mapDeps([400,4,5,34,20,21,22,23,9,1,2,395,396,399,82,29,65,3,6,7,8,10,11]))),mA=_(()=>g(()=>import("./DiscoveryCallSettings-Dd3jONJn.js"),__vite__mapDeps([401,4,5,34,29,65,23,20,1,2,9,3,6,7,8,10,11]))),hA=_(()=>g(()=>import("./CalendlyMonitor-Bpgg03op.js"),__vite__mapDeps([402,4,5,34,66,1,2,9,3,6,7,8,10,11]))),gA=_(()=>g(()=>import("./CalendlyReconciliation-CHjmKOcA.js"),__vite__mapDeps([403,4,5,1,2,34,66,21,22,23,9,3,6,7,8,10,11]))),_A=_(()=>g(()=>import("./PartnerDiscoveryCalls-BFi0jDCs.js"),__vite__mapDeps([404,4,5,260,34,396,21,22,23,9,24,190,191,77,16,192,193,80,194,79,405,1,2,395,248,397,82,54,29,398,55,239,3,6,7,8,10,11]))),lc=_(()=>g(()=>import("./PartnerDiscoveryCallNew-Bypc6QCW.js"),__vite__mapDeps([406,4,5,34,29,20,21,22,23,9,54,68,245,47,1,2,53,188,24,398,395,105,3,6,7,8,10,11]))),xA=_(()=>g(()=>import("./PartnerDiscoveryCallDetail-BhYJbaR5.js"),__vite__mapDeps([407,4,5,34,54,23,9,1,2,395,396,408,3,6,7,8,10,11]))),vA=_(()=>g(()=>import("./CorporateDiscoveryCalls-C7X81nTj.js"),__vite__mapDeps([409,4,5,260,34,21,22,23,9,66,248,223,190,191,77,16,192,193,80,194,79,24,218,1,2,395,394,396,399,82,20,29,65,397,54,3,6,7,8,10,11]))),yA=_(()=>g(()=>import("./CorporateDiscoveryCallSettings-CxU79hmp.js"),__vite__mapDeps([410,4,5,34,29,65,23,20,1,2,9,3,6,7,8,10,11]))),bA=_(()=>g(()=>import("./PublicDiscoveryCallBooking-V0wbCjy1.js"),__vite__mapDeps([411,3,4,5,1,2,34,408,395,9,6,7,8,10,11]))),wA=_(()=>g(()=>import("./AffiliateLayout-Cz9zKODz.js"),__vite__mapDeps([412,4,5,413,3,34,1,2,91,54,23,9,92,22,55,93,29,97,94,68,21,95,96,279,6,7,8,10,11,222,188,414,415,416,103,176,13,177,20,178,35,33,30,32,179,24,82,18,180,0,336,25,26,27,28,31,227]))),EA=_(()=>g(()=>import("./AffiliateTeam-Bj3wn8jq.js"),__vite__mapDeps([417,4,5,1,2,34,54,23,9,29,53,220,236,20,3,6,7,8,10,11]))),jA=_(()=>g(()=>import("./PartnerPreAttribution-CCnRbO37.js"),__vite__mapDeps([418,4,5,1,2,34,82,21,22,23,9,66,248,196,103,250,352,362,353,78,17,16,79,80,3,6,7,8,10,11]))),TA=_(()=>g(()=>import("./AffiliateMembers-C2TQUBaL.js"),__vite__mapDeps([419,4,5,1,2,103,351,34,54,23,9,66,21,22,24,352,275,209,188,353,196,65,3,6,7,8,10,11]))),AA=_(()=>g(()=>import("./PartnerOverridesPage-D-wGo3v7.js"),__vite__mapDeps([420,3,4,5,82,34,196,9,421,1,2,103,29,20,66,209,24,188,68,23,6,7,8,10,11]))),RA=_(()=>g(()=>import("./PartnerPoolGrants-COXyLc8K.js"),__vite__mapDeps([422,4,5,1,2,421,103,34,82,66,196,9,29,222,22,23,276,236,20,237,54,53,187,24,188,3,6,7,8,10,11]))),PA=_(()=>g(()=>import("./PartnerDocuments-DmOgnxza.js"),__vite__mapDeps([423,4,5,34,66,1,2,214,98,3,91,54,23,9,92,22,55,93,29,6,7,8,10,11,215,216,217]))),cc=_(()=>g(()=>import("./AcceptTeamInvite-CsQ5uHt0.js"),__vite__mapDeps([424,3,4,5,1,2,29,34,425,9,6,7,8,10,11]))),SA=_(()=>g(()=>import("./AffiliateDashboard-B3sx6nh5.js"),__vite__mapDeps([426,4,5,34,267,9,427,78,17,16,79,80,194,8,193,77,1,2,211,428,429,82,224,0,3,6,7,10,11,430,431,432,61,103,198,18,367,433,414,415,434,66,29,222,22,23,276,236,20,237,54,53,435,245,47,369,398,395,436,24]))),CA=_(()=>g(()=>import("./PartnerQuickStart-CR7hmSVv.js"),__vite__mapDeps([437,4,5,9,46,47,438,439,211,1,2,103,224,440,69,441,27,28,11,3,6,7,8,10]))),IA=_(()=>g(()=>import("./AffiliateAnalytics-B8sATp-u.js"),__vite__mapDeps([442,4,5,34,82,1,2,443,9,13,66,8,3,6,7,10,11]))),NA=_(()=>g(()=>import("./AffiliateLeads-Q6nOy_zw.js"),__vite__mapDeps([444,4,5,34,66,21,22,23,9,82,196,1,2,18,203,29,20,53,236,237,54,211,222,55,198,77,16,445,46,47,367,446,231,232,220,186,353,281,78,17,79,80,3,6,7,8,10,11]))),OA=_(()=>g(()=>import("./AffiliateLeadDetail-BR9D0DLs.js"),__vite__mapDeps([447,4,5,34,1,2,18,203,9,232,220,186,448,3,6,7,8,10,11,196,198,367,445,46,47,211,103,449,231,77,16]))),kA=_(()=>g(()=>import("./AffiliateMarketing-BxFCu2EN.js"),__vite__mapDeps([450,4,5,34,82,9,1,2,366,29,65,23,367,18,368,377,378,369,31,451,452,3,391,453,164,6,7,8,10,11,454,170,169,455,171,456,457,166,458,172,459,460,167,461,53,436,24,462]))
89);_(()=>g(()=>import("./PartnerDecks-B9OM7POy.js"),__vite__mapDeps([463,4,5,34,391,1,2,377,378,369,9,462,3,6,7,8,10,11])));const dc=_(()=>g(()=>import("./PartnerDeckViewer-DIrkqNQD.js"),__vite__mapDeps([464,4,5,390,386,1,2,388,9,368,370,389,391,3,6,7,8,10,11]))),DA=_(()=>g(()=>import("./AffiliateCommissions-Bho3Le_a.js"),__vite__mapDeps([465,4,5,250,34,66,82,29,65,23,21,22,9,1,2,196,46,47,211,210,224,213,435,222,6,7,3,8,10,11]))),LA=_(()=>g(()=>import("./AffiliatePaymentSettings-CyXq1yY3.js"),__vite__mapDeps([466,4,5,95,9,34,29,21,22,23,54,55,1,2,6,7,3,8,10,11]))),MA=_(()=>g(()=>import("./BrokerPaymentSettings-BLjoTCQO.js"),__vite__mapDeps([467,4,5,95,9,34,29,21,22,23,54,55,1,2,6,7,3,8,10,11]))),$A=_(()=>g(()=>import("./AffiliateExport-ByQt_3TB.js"),__vite__mapDeps([468,4,5]))),FA=_(()=>g(()=>import("./AffiliateAdvanced-isaEjY6a.js"),__vite__mapDeps([469,4,5,82,29,20,34,65,23,1,2,9,21,22,55,54,18,470,66,6,7,3,8,10,11]))),VA=_(()=>g(()=>import("./PartnerHelp-Cd-p1XH3.js"),__vite__mapDeps([471,4,5,472,34,82,177,1,2,20,21,22,23,9,13,178,35,46,47,439,211,103,224,27,28,30,440,32,33,3,6,7,8,10,11]))),BA=_(()=>g(()=>import("./PartnerSalesTraining-CWTuvwuf.js"),__vite__mapDeps([473,4,5,474,34,46,47,9,13,245,82,103,1,2,3,6,7,8,10,11]))),UA=_(()=>g(()=>import("./SalesTrainingPublic-CgDeSpTz.js"),__vite__mapDeps([475,4,5,51,10,1,2,32,9,3,6,7,8,11,474,34,46,47,13,245,82]))),zA=_(()=>g(()=>import("./BrokerHelp-Y9jJ-fFC.js"),__vite__mapDeps([476,4,5,472,34,82,177,1,2,20,21,22,23,9,13,178,35,46,47,439,211,103,224,27,28,30,477,3,6,7,8,10,11]))),HA=_(()=>g(()=>import("./AffiliateUpdatesAndWebinars-vObrT4jB.js"),__vite__mapDeps([478,4,5,9,433,3,6,1,2,7,8,10,11]))),WA=_(()=>g(()=>import("./PartnerUpdateArticle-BUzPcYik.js"),__vite__mapDeps([479,4,5,9,34,433,196,3,6,1,2,7,8,10,11]))),Rs=_(()=>g(()=>import("./AffiliateRegister-jcQYPksk.js"),__vite__mapDeps([480,4,5,84,9,53,29,20,54,23,1,2,85,86,32,3,6,7,8,10,11]))),qA=_(()=>g(()=>import("./GuidesHub-Djso_nOa.js"),__vite__mapDeps([481,4,5,51,10,1,2,32,9,3,6,7,8,11,162,163,164,165,166,167,168,169,170,171,172,173,174,13,158,161,482]))),GA=_(()=>g(()=>import("./GuideDetail-Dy0ZOTOF.js"),__vite__mapDeps([483,4,5,162,163,164,165,166,167,168,169,170,171,172,173,13,9,46,47,174,161,158,391,1,2,482,51,10,32,3,6,7,8,11]))),YA=_(()=>g(()=>import("./Glossary-BVlne_xK.js"),__vite__mapDeps([484,4,5,51,10,1,2,32,9,3,6,7,8,11,161,162,163,164,165,166,167,168,169,170,171,172,173,158]))),KA=_(()=>g(()=>import("./PrintStorefront-JYz6NWWz.js"),__vite__mapDeps([485,4,5,1,2,34,416,103,375,9,3,6,7,8,10,11]))),XA=_(()=>g(()=>import("./PrintProductDetail-Cs2kxGgS.js"),__vite__mapDeps([486,4,5,1,2,34,29,375,416,103,487,9,3,6,7,8,10,11]))),JA=_(()=>g(()=>import("./PrintOrders-C6KVeAeL.js"),__vite__mapDeps([488,4,5,1,2,34,105,375,416,103,487,489,8,9,3,6,7,10,11]))),ZA=_(()=>g(()=>import("./PrintOrderDetail-B4vUdDU2.js"),__vite__mapDeps([490,4,5,1,2,34,375,9,3,6,7,8,10,11]))),QA=_(()=>g(()=>import("./PrintCart-BIYpQHZ-.js"),__vite__mapDeps([491,4,5,1,2,34,29,20,54,23,9,21,22,375,95,53,487,416,103,489,8,3,6,7,10,11]))),eR=_(()=>g(()=>import("./PrintCenterLayout-Dkey8Wgx.js"),__vite__mapDeps([492,4,5,487,9,3,6,1,2,7,8,10,11]))),tR=_(()=>g(()=>import("./RefRedirect-Dr5esMdK.js"),__vite__mapDeps([493,4,5,6,1,2,7,3,8,9,10,11]))),rR=_(()=>g(()=>import("./RefHub-BFLMiZyb.js"),__vite__mapDeps([494,4,5,51,10,1,2,32,9,3,6,7,8,11,495]))),nR=_(()=>g(()=>import("./ImportersLanding-DTqeEVJg.js"),__vite__mapDeps([496,4,5,497,495,1,2,368,9,72,11,498,163,164,453,3,6,7,8,10]))),oR=_(()=>g(()=>import("./BrokersLanding-E01znOwC.js"),__vite__mapDeps([499,4,5,497,495,1,2,368,9,72,11,498,169,168,3,6,7,8,10]))),sR=_(()=>g(()=>import("./PartnersLanding-DDMONF3Y.js"),__vite__mapDeps([500,4,5,497,495,1,2,368,9,72,11,169,171,3,6,7,8,10]))),aR=_(()=>g(()=>import("./FlyerImporters-6kHV3lsr.js"),__vite__mapDeps([451,4,5,452,3,391,1,2,9,368,453,164,6,7,8,10,11]))),iR=_(()=>g(()=>import("./FlyerBrokers-BfHZnGCv.js"),__vite__mapDeps([454,4,5,452,3,391,1,2,9,368,170,169,6,7,8,10,11]))),lR=_(()=>g(()=>import("./FlyerPartners-oXXF47-s.js"),__vite__mapDeps([455,4,5,452,3,391,1,2,9,368,171,169,6,7,8,10,11]))),cR=_(()=>g(()=>import("./FlyerAdvanceFunding-DgkrDcOz.js"),__vite__mapDeps([456,4,5,452,3,391,1,2,9,368,457,166,6,7,8,10,11]))),dR=_(()=>g(()=>import("./FlyerWhyTra-BSYSvXoc.js"),__vite__mapDeps([458,4,5,452,3,391,1,2,9,368,172,169,6,7,8,10,11]))),uR=_(()=>g(()=>import("./FlyerProcessFlyer-DLcWEzMv.js"),__vite__mapDeps([459,4,5,452,3,391,1,2,9,368,164,166,6,7,8,10,11]))),fR=_(()=>g(()=>import("./FlyerPlatform-Cm2R6aQD.js"),__vite__mapDeps([460,4,5,452,3,391,1,2,9,368,167,169,6,7,8,10,11]))),pR=_(()=>g(()=>import("./FlyerAlreadyFiled-CIPMbtLm.js"),__vite__mapDeps([461,4,5,452,3,391,1,2,9,368,453,164,6,7,8,10,11]))),mR=_(()=>g(()=>import("./AlreadyFiledLanding-CH5y0D5w.js"),__vite__mapDeps([501,4,5,497,495,1,2,368,9,72,11,169,453,3,6,7,8,10]))),hR=_(()=>g(()=>import("./FlyerPhase3Recovery-DV01JVLD.js"),__vite__mapDeps([502,4,5,452,3,391,1,2,9,368,503,6,7,8,10,11]))),gR=_(()=>g(()=>import("./Phase3RecoveryLanding-nmlmBLqJ.js"),__vite__mapDeps([504,4,5,497,495,1,2,368,9,72,11,169,503,3,6,7,8,10]))),_R=_(()=>g(()=>import("./WhitelabelOverview-Ia0HDkkq.js"),__vite__mapDeps([505,4,5,497,495,1,2,368,9,34,55,11,3,6,7,8,10]))),xR=_(()=>g(()=>import("./AdvanceFundingLanding-C977wzIG.js"),__vite__mapDeps([506,4,5,497,495,1,2,368,9,72,11,498,165,166,457,3,6,7,8,10]))),vR=_(()=>g(()=>import("./EnterpriseIntake-BY5PEilY.js"),__vite__mapDeps([507,4,5,1,2,29,20,68,23,9,34,54,53,95,51,
8910,32,3,6,7,8,11,508]))),yR=_(()=>g(()=>import("./EnterpriseSales-D0fbUiYD.js"),__vite__mapDeps([509,4,5,51,10,1,2,32,9,3,6,7,8,11,34,510]))),bR=_(()=>g(()=>import("./EnterpriseCheckout-B-qvcx-L.js"),__vite__mapDeps([511,4,5,489,8,1,2,51,10,32,9,3,6,7,11,34,29,510,508]))),wR=_(()=>g(()=>import("./EnterpriseCheckoutSuccess-BflC97_3.js"),__vite__mapDeps([512,4,5,1,2,51,10,32,9,3,6,7,8,11,34,508]))),ER=_(()=>g(()=>import("./BookADemo-B8lcuvD9.js"),__vite__mapDeps([513,4,5,51,10,1,2,32,9,3,6,7,8,11,34]))),jR=_(()=>g(()=>import("./PublicBookDemo-Bmmp3QxI.js"),__vite__mapDeps([514,4,5,51,10,1,2,32,9,3,6,7,8,11,34,29,20,54,23,21,22,68,53,187,24,188,239,395]))),TR=_(()=>g(()=>import("./PublicBookDemoVip-CsrwS875.js"),__vite__mapDeps([515,4,5,51,10,1,2,32,9,3,6,7,8,11,34,29,20,21,22,23,53,395]))),AR=_(()=>g(()=>import("./Contact-ClYqnyUB.js"),__vite__mapDeps([516,4,5,51,10,1,2,32,9,3,6,7,8,11,107,25,26,27,28,20,29,21,22,23,30,31,33,34,35,96]))),RR=_(()=>g(()=>import("./ScheduledMeetings-HCWHF6pt.js"),__vite__mapDeps([517,4,5,1,2,66,21,22,23,9,77,16,3,6,7,8,10,11]))),uc=_(()=>g(()=>import("./ShortLinkRedirect-eHgYivVf.js"),__vite__mapDeps([518,4,5,1,2,6,7,9,3,8,10,11]))),PR=_(()=>g(()=>import("./OutreachMessage-BMGCfgZc.js"),__vite__mapDeps([519,4,5,34,9,3,6,1,2,7,8,10,11]))),SR=_(()=>g(()=>import("./AffiliateNetwork-2386UCrY.js"),__vite__mapDeps([520,4,5,34,66,29,82,1,2,9,105,435,222,22,23,6,7,434,276,236,20,237,54,53,245,47,55,405,98,3,91,92,93,8,10,11,18,203,77,16,223,190,191,192,193,80,194,79,24,218,324,521,429,353,211,224,248,21,221,281]))),CR=_(()=>g(()=>import("./OrgDashboard-DN0YaA3H.js"),__vite__mapDeps([522,4,5,1,2,34,66,103,196,9,428,429,521,353,3,6,7,8,10,11]))),fc=_(()=>g(()=>import("./OrgReferredClients-Co63cr0l.js"),__vite__mapDeps([523,4,5,281,250,198,18,34,66,82,24,1,2,103,196,9,248,21,22,23,203,446,230,76,353,227,226,77,16,3,6,7,8,10,11]))),IR=_(()=>g(()=>import("./EducationHub-CXKvl_X8.js"),__vite__mapDeps([524,4,5,441,1,2,103,525,13,9,438,34,69,245,47,526,527,82,3,6,7,8,10,11]))),NR=_(()=>g(()=>import("./ModuleOverview-Dp5R9JZ3.js"),__vite__mapDeps([528,4,5,1,2,34,69,9,441,526,527,13,82,245,47,405,46,3,6,7,8,10,11]))),OR=_(()=>g(()=>import("./LessonReader-mcbf3Ga_.js"),__vite__mapDeps([529,4,5,1,2,69,441,530,34,54,23,9,222,22,46,47,527,13,82,245,3,6,7,8,10,11]))),kR=_(()=>g(()=>import("./Certificates-2XKvvwqI.js"),__vite__mapDeps([531,4,5,1,2,441,3,9,6,7,8,10,11]))),DR=_(()=>g(()=>import("./EducationAdmin-oyNSnzKe.js"),__vite__mapDeps([532,4,5,1,2,82,20,65,23,29,34,9,3,6,7,8,10,11]))),LR=_(()=>g(()=>import("./PartnersHelpIndex-W_g3F3mh.js"),__vite__mapDeps([533,4,5,1,2,51,10,32,9,3,6,7,8,11,34,525,13,438]))),pc=_(()=>g(()=>import("./PartnersHelpLesson-CN_e4KJN.js"),__vite__mapDeps([534,4,5,1,2,51,10,32,9,3,6,7,8,11,530,34,54,23,222,22,46,47,438]))),MR=_(()=>g(()=>import("./PartnerCrmHub-B6Cz2VR6.js"),__vite__mapDeps([535,4,5,361,1,2,281,34,29,21,22,23,9,82,66,13,20,54,105,443,430,431,536,326,92,245,47,473,474,46,103,3,6,7,8,10,11,271,24,185,223,190,191,77,16,192,193,80,194,79,218,413,91,55,93,97,94,68,95,96,279,65,222,0]))),$R=_(()=>g(()=>import("./PartnerCrmUpgrade-DF7_yeBa.js"),__vite__mapDeps([537,4,5]))),mc=_(()=>g(()=>import("./PartnerCrmCheckout-nlAsBFul.js"),__vite__mapDeps([538,3,4,5,489,8,1,2,34,431,536,9,6,7,10,11]))),FR=_(()=>g(()=>import("./PartnerCrmSuccess-CacY4Nb_.js"),__vite__mapDeps([539,3,4,5,34,11,9,6,1,2,7,8,10]))),VR=_(()=>g(()=>import("./PartnerCrmCompany-DB53XHTy.js"),__vite__mapDeps([540,4,5,1,2,34,29,21,22,23,9,198,18,54,223,190,191,77,16,192,193,80,194,79,24,218,20,82,3,6,7,8,10,11]))),BR=_(()=>g(()=>import("./IeepaCrmSalesPage-Bwdqj-Dw.js"),__vite__mapDeps([541,3,4,5,542,51,10,1,2,32,9,6,7,8,11,61,
8962,432,34,431,536,46,47,29,20,21,22,23]))),UR=_(()=>g(()=>import("./AdminProductsLayout-BZT01XhB.js"),__vite__mapDeps([543,4,5,34,3,6,1,2,7,8,9,10,11]))),zR=_(()=>g(()=>import("./ProductsOverview-C99WE1O7.js"),__vite__mapDeps([544,4,5,1,2,34,9,3,6,7,8,10,11]))),HR=_(()=>g(()=>import("./ProductsCatalog-DfUuwgUd.js"),__vite__mapDeps([545,4,5,1,2,34,13,9,29,20,21,22,23,65,3,6,7,8,10,11]))),WR=_(()=>g(()=>import("./ProductsTransactions-Db-lX0Yx.js"),__vite__mapDeps([546,4,5,1,2,34,66,21,22,23,9,547,3,6,7,8,10,11]))),qR=_(()=>g(()=>import("./ProductsSubscribers-C_mT7u6y.js"),__vite__mapDeps([548,4,5,1,2,34,66,21,22,23,9,547,102,3,6,7,8,10,11]))),GR=_(()=>g(()=>import("./ProductsStripeSettings-FZe0jqTC.js"),__vite__mapDeps([549,4,5,1,2,34,29,9,3,6,7,8,10,11]))),YR=_(()=>g(()=>import("./ProductsWebhookLog-CiBPaNjh.js"),__vite__mapDeps([550,4,5,1,2,34,9,3,6,7,8,10,11]))),KR=_(()=>g(()=>import("./ProductsIeepaFunnel-DmUtnLXW.js"),__vite__mapDeps([551,4,5,1,2,34,66,13,9,82,3,6,7,8,10,11]))),XR=_(()=>g(()=>import("./ClientLogin-DfghAt-r.js"),__vite__mapDeps([552,3,4,5,53,9,29,1,2,54,23,86,32,70,6,7,8,10,11,87,58,88]))),JR=_(()=>g(()=>import("./ClientLayout-C4gV8__j.js"),__vite__mapDeps([553,4,5,176,55,13,9,34,177,1,2,20,21,22,23,178,35,33,30,32,179,24,82,92,18,180,477,25,26,27,28,29,6,7,31,11,3,8,10]))),ZR=_(()=>g(()=>import("./ClientDashboard-C25RACxH.js"),__vite__mapDeps([554,4,5,1,2,347,34,69,55,555,53,9,29,20,6,7,18,198,373,232,220,186,3,8,10,11]))),QR=_(()=>g(()=>import("./ClientClaims-Bd6zs7fZ.js"),__vite__mapDeps([556,4,5,1,2,34,69,196,9,18,449,198,373,6,7,232,220,186,3,8,10,11]))),eP=_(()=>g(()=>import("./ClientDocuments-vPVPqsWn.js"),__vite__mapDeps([557,3,4,5,1,2,34,21,22,23,9,558,66,20,29,18,6,7,8,10,11]))),tP=_(()=>g(()=>import("./ClaimDetail-DCTEozDE.js"),__vite__mapDeps([559,4,5,1,2,34,55,245,47,29,53,9,54,23,20,21,22,238,95,239,97,198,18,242,243,91,3,92,93,98,6,7,8,10,11,215,216,140,555,26,27,28,560,231,240,232,220,186,173,211,246,197]))),rP=_(()=>g(()=>import("./ClaimSubmitted-D9eOTLzg.js"),__vite__mapDeps([561,4,5,34,9,3,6,1,2,7,8,10,11]))),nP=_(()=>g(()=>import("./ClaimMessages-BevsxjqE.js"),__vite__mapDeps([562,4,5,1,2,34,18,19,20,21,22,23,9,24,15,16,17,3,6,7,8,10,11]))),oP=_(()=>g(()=>import("./ClientNotifications-onIfLamc.js"),__vite__mapDeps([563,4,5,1,2,34,9,3,6,7,8,10,11]))),Hn=_(()=>g(()=>import("./MessageCenter-DDd7-VZD.js"),__vite__mapDeps([564,4,5,34,82,1,2,18,180,9,3,6,7,8,10,11]))),sP=_(()=>g(()=>import("./AdminMessageCommandCenter-vwocfc6d.js"),__vite__mapDeps([565,4,5,1,2,18,34,21,22,23,9,13,92,54,24,19,20,15,16,17,3,6,7,8,10,11,14]))),aP=_(()=>g(()=>import("./ClientHelpCenter-BGsQDDYl.js"),__vite__mapDeps([566,4,5,472,34,82,177,1,2,20,21,22,23,9,13,178,35,46,47,439,211,103,224,27,28,30,3,6,7,8,10,11]))),iP=_(()=>g(()=>import("./ClientFunding-DHIq7ztM.js"),__vite__mapDeps([567,4,5,34,245,47,1,2,9,195,6,7,29,20,21,22,23,95,243,91,3,54,92,55,93,98,8,10,11,215,216,65]))),Ps=_(()=>g(()=>import("./ClientFundingApplication-D4ltprho.js"),__vite__mapDeps([568,3,4,5,34,29,20,54,23,9,21,22,82,187,24,188,93,53,95,1,2,198,18,223,190,191,77,16,192,193,80,194,79,218,6,7,8,10,11]))),hc=_(()=>g(()=>import("./AcceptInvite-BF3baE9X.js"),__vite__mapDeps([569,3,4,5,34,29,1,2,6,7,425,9,8,10,11]))),lP=_(()=>g(()=>import("./ClaimHandoff-DzHtW7yc.js"),__vite__mapDeps([570,3,4,5,34,29,54,23,9,1,2,6,7,8,10,11]))),cP=_(()=>g(()=>import("./MagicLinkLanding-DulKNEaL.js"),__vite__mapDeps([571,4,5,1,2,9,3,6,7,8,10,11]))),dP=_(()=>g(()=>import("./Agreements-C8vrim6f.js"),__vite__mapDeps([572,4,5,34,66,21,22,23,9,1,2,214,98,3,91,54,92,55,93,29,6,7,8,10,11,215,216,217,281,77,16,218]))),uP=_(()=>g(()=>import("./PartnerAgreements-8BEgu6nj.js"),__vite__mapDeps([573,4,5,277,3,34,66,21,22,23,9,1,2,91,54,92,55,93,29,98,6,7,8,10,11,219,77,16,211,105,278,187,24,188,68,97,65,223,190,191,192,193,80,194,79,218,20,220]))),fP=_(()=>g(()=>import("./BrokerLayout-DFy6txPD.js"),__vite__mapDeps([574,4,5,176,55,13,9,34,177,1,2,20,21,22,23,178,35,33,30,32,179,24,82,92,18,180,25,26,27,28,29,6,7,31,11,3,8,10,477]))),gc=_(()=>g(()=>import("./BrokerLogin-zMwwN9uh.js"),__vite__mapDeps([575,3,4,5,53,9,95,29,54,23,21,22,1,2,70,6,7,8,10,11,85,86,32,58,88]))),_c=_(()=>g(()=>import("./BrokerRegister-DGirlYIe.js"),__vite__mapDeps([576,4,5]))),pP=_(()=>g(()=>import("./BrokerSlugRedirect-DTpTU0ac.js"),__vite__mapDeps([577,4,5,1,2,34,9,3,6,7,8,10,11]))),mP=_(()=>g(()=>import("./BrokerDashboard-Dwl_F9-b.js"),__vite__mapDeps([578,4,5,34,1,2,267,9,427,78,17,16,79,80,194,8,193,77,29,53,6,7,236,20,104,3,10,11])));_(()=>g(()=>import("./BrokerClients-DUVxDO39.js"),__vite__mapDeps([579,4,5,580,34,21,22,23,9,18,405,1,2,66,6,7,78,17,16,79,80,198,186,581,29,53,236,20,231,211,3,8,10,11])));const hP=_(()=>g(()=>import("./BrokerClaims-DPyB71-I.js"),__vite__mapDeps([582,4,5,580,34,21,22,23,9,18,405,1,2,66,6,7,78,17,16,79,80,198,186,581,29,53,236,20,231,211,3,8,10,11]))),gP=_(()=>g(()=>import("./BrokerClaimDetail-CCGr2Kne.js"),__vite__mapDeps([583,4,5,34,29,1,2,581,18,9,53,6,7,236,20,78,17,16,79,80,77,232,220,186,198,560,231,19,21,22,23,24,15,3,8,10,11,449]))),_P=_(()=>g(()=>import("./BrokerCommissions-B8g4Mw9a.js"),__vite__mapDeps([584,4,5,34,1,2,196,9,77,16,3,6,7,8,10,11]))),xP=_(()=>g(()=>import("./BrokerInviteClient-DQs7mPn8.js"),__vite__mapDeps([585,4,5,34,29,20,82,66,104,1,2,6,7,9,53,237,54,23,236,296,77,16,3,8,10,11]))),vP=_(()=>g(()=>import("./BrokerACEUpload-DrIB-6uJ.js"),__vite__mapDeps([586,4,5,34,29,21,22,23,9,1,2,3,6,7,8,10,11]))),yP=_(()=>g(()=>import("./BrokerEligibilityChecker-w8vAi45U.js"),__vite__mapDeps([587,4,5,34,29,21,22,23,9,54,3,6,1,2,7,8,10,11]))),xc=_(()=>g(()=>import("./BrokerAcceptInvite-DKuRGqxl.js"),__vite__mapDeps([588,4,5,84,9,34,1,2,6,7,425,3,8,10,11]))),bP=_(()=>g(()=>import("./BrokerWhitelabel-CI1hDO0U.js"),__vite__mapDeps([589,4,5,34,53,9,29,20,65,23,82,55,1,2,3,6,7,8,10,11]))),wP=_(()=>g(()=>import("./BrokerBulkImport-CUoHNZfc.js"),__vite__mapDeps([590,4,5,34,220,69,1,2,9,3,6,7,8,10,11]))),EP=_(()=>g(()=>import("./BrokerAssistedApply-DsuolU8V.js"),__vite__mapDeps([591,4,5,34,1,2,559,55,245,47,29,53,9,54,23,20,21,22,238,95,239,97,198,18,242,243,91,3,92,93,98,6,7,8,10,11,215,216,140,555,26,27,28,560,231,240,232,220,186,173,211,246,197]))),jP=_(()=>g(()=>import("./BrokerExport-CJOIsIi4.js"),__vite__mapDeps([592,4,5,470,34,82,21,22,23,9,54,29,66,1,2,6,7,3,8,10,11]))),TP=_(()=>g(()=>import("./FundingLogin-2o1rNb6K.js"),__vite__mapDeps([593,3,4,5,29,34,1,2,9,6,7,8,10,11]))),AP=_(()=>g(()=>import("./FundingRegister-Bkpl6YDf.js"),__vite__mapDeps([594,4,5,34,9,3,6,1,2,7,8,10,11]))),Ss=_(()=>g(()=>import("./FundingAcceptInvite-Cot2KDRE.js"),__vite__mapDeps([595,4,5,29,34,1,2,6,7,425,9,3,8,10,11]))),RP=_(()=>g(()=>import("./FundingLayout-DfeNpV_J.js"),__vite__mapDeps([596,4,5,176,55,13,9,34,177,1,2,20,21,22,23,178,35,33,30,32,181,25,26,27,28,29,6,7,31,11,3,8,10]))),PP=_(()=>g(()=>import("./FundingDashboard-C0-FN8TW.js"),__vite__mapDeps([597,4,5,1,2,598,9,599,600,8,542,275,3,6,7,10,11]))),SP=_(()=>g(()=>import("./FundingMarketplace-DFOg7feY.js"),__vite__mapDeps([601,4,5,21,22,23,9,82,66,1,2,602,603,3,216,34,92,29,20,222,598,195,6,7,69,245,47,65,246,197,198,18,215,269,202,213,77,16,78,17,79,80,187,24,188,275,207,248,8,10,11])));_(()=>g(()=>import("./FundingDiscover-DcSIDT_5.js"),__vite__mapDeps([604,4,5,34,1,2,602,6,7,9,3,8,10,11])));const CP=_(()=>g(()=>import("./FundingOffers-COq1r77t.js"),__vite__mapDeps([605,4,5,21,22,23,9,66,1,2,602,603,3,216,34,92,29,20,222,598,195,6,7,69,245,47,65,246,197,198,18,215,269,202,213,77,16,78,17,79,80,599,275,8,10,11]))),IP=_(()=>g(()=>import("./FundingPortfolio-DOwinIIl.js"),__vite__mapDeps([606,4,5,66,1,2,602,607,82,275,9,195,598,599,600,8,542,3,6,7,10,11]))),NP=_(()=>g(()=>import("./FundingActiveDeals-BWR2t3Jj.js"),__vite__mapDeps([608,4,5,29,66,1,2,602,195,607,82,275,9,598,599,223,190,191,77,16,192,193,80,194,79,24,218,3,6,7,8,10,11]))),OP=_(()=>g(()=>import("./FundingSettings-BllNLzBH.js"),__vite__mapDeps([609,4,5,82,34,29,65,23,1,2,21,22,9,20,66,92,299,300,55,3,6,7,8,10,11]))),kP=_(()=>g(()=>import("./FundingHowItWorks-BWhmqgse.js"),__vite__mapDeps([610,4,5,34,46,47,9,275,3,6,1,2,7,8,10,11]))),DP=_(()=>g(()=>import("./FundingGlossary-4j5RTSu5.js"),__vite__mapDeps([611,4,5,34,82,92,22,275,9,3,6,1,2,7,8,10,11]))),LP=_(()=>g(()=>
89import("./FundingRequirements-DIuBwxMg.js"),__vite__mapDeps([612,4,5,51,10,1,2,32,9,3,6,7,8,11,34,46,47,55]))),MP=_(()=>g(()=>import("./Funders-BH0BY0cY.js"),__vite__mapDeps([613,4,5,1,2,34,29,20,82,66,21,22,23,9,65,234,236,53,237,54,3,6,7,8,10,11]))),$P=_(()=>g(()=>import("./FundingOversight-CHzjA_mw.js"),__vite__mapDeps([614,4,5,34,82,66,1,2,9,3,6,7,8,10,11]))),FP=_(()=>g(()=>import("./FundingSettlements-DvuJoUX9.js"),__vite__mapDeps([615,4,5,34,29,66,20,1,2,9,3,6,7,8,10,11]))),VP=_(()=>g(()=>import("./FundingRouter-DViwzoUB.js"),__vite__mapDeps([616,4,5,34,66,1,2,9,3,6,7,8,10,11]))),BP=_(()=>g(()=>import("./FundingAnalytics-DLpXH4vM.js"),__vite__mapDeps([617,4,5,34,66,1,2,602,9,3,6,7,8,10,11]))),UP=_(()=>g(()=>import("./Onboard-qCgoX314.js"),__vite__mapDeps([618,4,5,1,2,29,34,69,222,22,23,54,9,350,24,53,95,3,6,7,8,10,11]))),vc=_(()=>g(()=>import("./ExternalRedirect-DyCuG8wq.js"),__vite__mapDeps([619,4,5]))),zP=()=>r.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:r.jsx(yo,{className:"h-8 w-8 animate-spin text-muted-foreground"})}),yc=()=>{const{pathname:e,search:t,hash:n}=window.location,o=e.replace(/^\/guides/,"/docs")+t+n;return r.jsx(F,{to:o,replace:!0})},HP=new Np({defaultOptions:{queries:{staleTime:5*60*1e3,gcTime:10*60*1e3,retry:1,refetchOnWindowFocus:!1}},queryCache:new Op({onError:(e,t)=>{const n=t.options.meta??{},o=e==null?void 0:e.code;n.silent416&&o==="PGRST103"||n.silent57014&&o==="57014"||qt(e,{component:"react-query.queryCache",details:{queryKey:t.queryKey,queryHash:t.queryHash}})}}),mutationCache:new kp({onError:(e,t,n,o)=>{qt(e,{component:"react-query.mutationCache",details:{mutationKey:o.options.mutationKey??null}})}})}),WP=()=>r.jsx(Fb,{children:r.jsx(Uc,{children:r.jsx(Dp,{client:HP,children:r.jsx(Qx,{children:r.jsx(lv,{children:r.jsx(cv,{children:r.jsx(vy,{children:r.jsx(Ub,{children:r.jsx(tw,{children:r.jsxs(qx,{children:[r.jsx(s_,{}),r.jsx(Th,{}),r.jsx(Vy,{}),r.jsx(Lp,{children:r.jsxs(tv,{children:[r.jsx(ow,{}),r.jsx(ob,{}),r.jsx($b,{}),r.jsx(c.Suspense,{fallback:r.jsx(zP,{}),children:r.jsxs(Mp,{children:[r.jsx(u,{path:"/webinar/partner-update-may-2026",element:r.jsx(VE,{})}),r.jsx(u,{path:"/webinar/partner-update-may-15-2026",element:r.jsx(BE,{})}),r.jsx(u,{path:"/partner/updates/ieepa-crm-big-promo",element:r.jsx(UE,{})}),r.jsx(u,{path:"/ieepa-crm",element:r.jsx(xr,{redirect:"/",children:r.jsx(BR,{})})}),r.jsx(u,{path:"/book/discovery-call/:token",element:r.jsx(bA,{})}),r.jsx(u,{path:"/sign/agreement/:token",element:r.jsx(ql,{})}),r.jsx(u,{path:"/n/:token",element:r.jsx(ql,{})}),r.jsx(u,{path:"/invoice/:token",element:r.jsx(JE,{})}),r.jsx(u,{path:"/",element:r.jsx(FE,{})}),r.jsx(u,{path:"/platform",element:r.jsx(rj,{})}),r.jsx(u,{path:"/apply",element:r.jsx(As,{})}),r.jsx(u,{path:"/apply/invite/:token",element:r.jsx(As,{})}),r.jsx(u,{path:"/apply/broker/:token",element:r.jsx(As,{})}),r.jsx(u,{path:"/login",element:r.jsx(KE,{})}),r.jsx(u,{path:"/reset-password",element:r.jsx(XE,{})}),r.jsx(u,{path:"/account",element:r.jsx(F,{to:"/client/account",replace:!0})}),r.jsx(u,{path:"/results",element:r.jsx(ZE,{})}),r.jsx(u,{path:"/resources",element:r.jsx(QE,{})}),r.jsx(u,{path:"/resources/:categorySlug",element:r.jsx(ej,{})}),r.jsx(u,{path:"/resources/:categorySlug/:articleSlug",element:r.jsx(tj,{})}),r.jsx(u,{path:"/faq",element:r.jsx(lj,{})}),r.jsx(u,{path:"/docs",element:r.jsx(qA,{})}),r.jsx(u,{path:"/docs/tech",element:r.jsx(Mj,{})}),r.jsx(u,{path:"/docs/tech/:slug",element:r.jsx(Lj,{})}),r.jsx(u,{path:"/docs/glossary",element:r.jsx(YA,{})}),r.jsx(u,{path:"/docs/:slug",element:r.jsx(GA,{})}),r.jsx(u,{path:"/guides",element:r.jsx(yc,{})}),r.jsx(u,{path:"/guides/*",element:r.jsx(yc,{})}),r.jsx(u,{path:"/partners/help",element:r.jsx(LR,{})}),r.jsx(u,{path:"/partners/help/portal-mastery",element:r.jsx(F,{to:"/partners/help",replace:!0})}),r.jsx(u,{path:"/partners/help/:moduleSlug/:lessonSlug",element:r.jsx(pc,{})}),r.jsx(u,{path:"/partners/help/:lessonSlug",element:r.jsx(pc,{})}),r.jsx(u,{path:"/tariff-refund",element:r.jsx(hj,{})}),r.jsx(u,{path:"/tariff-recovery",element:r.jsx(gj,{})}),r.jsx(u,{path:"/customs-duty-refund",element:r.jsx(_j,{})}),r.jsx(u,{path:"/import-duty-recovery",element:r.jsx(xj,{})}),r.jsx(u,{path:"/tariff-refund/ieepa",element:r.jsx(cj,{})}),r.jsx(u,{path:"/tariff-refund/section-301",element:r.jsx(F,{to:"/tariff-refund",replace:!0})}),r.jsx(u,{path:"/tariff-refund/section-232",element:r.jsx(F,{to:"/tariff-refund",replace:!0})}),r.jsx(u,{path:"/tariff-refund/cbp-protest",element:r.jsx(fj,{})}),r.jsx(u,{path:"/tariff-refund/eligibility",element:r.jsx(pj,{})}),r.jsx(u,{path:"/tariff-refund/process",element:r.jsx(mj,{})}),r.jsx(u,{path:"/tariff-refund/calculator",element:r.jsx(Yl,{})}),r.jsx(u,{path:"/tariff-refund/hts/:code",element:r.jsx(Tj,{})}),r.jsx(u,{path:"/ieepa-tariff-refunds",element:r.jsx(F,{to:"/tariff-refund/ieepa",replace:!0})}),r.jsx(u,{path:"/section-301-tariff-recovery",element:r.jsx(F,{to:"/tariff-refund",replace:!0})}),r.jsx(u,{path:"/section-232-tariff-claims",element:r.jsx(F,{to:"/tariff-refund",replace:!0})}),r.jsx(u,{path:"/services/section-301",element:r.jsx(F,{to:"/tariff-refund",replace:!0})}),r.jsx(u,{path:"/services/section-232",element:r.jsx(F,{to:"/tariff-refund",replace:!0})}),r.jsx(u,{path:"/resources/section-232-steel-aluminum-refund",element:r.jsx(F,{to:"/resources",replace:!0})}),r.jsx(u,{path:"/resources/section-301-tariff-recovery-maximize",element:r.jsx(F,{to:"/resources",replace:!0})}),r.jsx(u,{path:"/resources/ieepa-vs-section-301-differences",element:r.jsx(F,{to:"/resources/ieepa-tariff-refund-guide-2026",replace:!0})}),r.jsx(u,{path:"/free-tariff-refund-audit",element:r.jsx(F,{to:"/free-tariff-assessment",replace:!0})}),r.jsx(u,{path:"/get-your-refund",element:r.jsx(F,{to:"/apply",replace:!0})}),r.jsx(u,{path:"/upload-ace-report",element:r.jsx(F,{to:"/tools/ace-analyzer",replace:!0})}),r.jsx(u,{path:"/tariff-refund-calculator",element:r.jsx(F,{to:"/tools/tariff-refund-calculator",replace:!0})}),r.jsx(u,{path:"/refund",element:r.jsx(F,{to:"/apply",replace:!0})}),r.jsx(u,{path:"/eligibility",element:r.jsx(F,{to:"/tools/eligibility-checker",replace:!0})}),r.jsx(u,{path:"/s/brokers",element:r.jsx(F,{to:"/for-brokers",replace:!0})}),r.jsx(u,{path:"/duty-type-comparison",element:r.jsx(F,{to:"/tariff-refund",replace:!0})}),r.jsx(u,{path:"/tariff-comparison",element:r.jsx(F,{to:"/tariff-refund",replace:!0})}),r.jsx(u,{path:"/section-232-tariff-recovery",element:r.jsx(F,{to:"/tariff-refund",replace:!0})}),r.jsx(u,{path:"/tools",element:r.jsx(vj,{})}),r.jsx(u,{path:"/tools/tariff-refund-calculator",element:r.jsx(Yl,{})}),r.jsx(u,{path:"/tools/eligibility-checker",element:r.jsx(yj,{})}),r.jsx(u,{path:"/tools/ace-analyzer",element:r.jsx(bj,{})}),r.jsx(u,{path:"/case-studies",element:r.jsx(Ej,{})}),r.jsx(u,{path:"/case-studies/:slug",element:r.jsx(jj,{})}),r.jsx(u,{path:"/importers",element:r.jsx(oj,{})}),r.jsx(u,{path:"/for-brokers",element:r.jsx(sj,{})}),r.jsx(u,{path:"/industries",element:r.jsx(aj,{})}),r.jsx(u,{path:"/industries/:slug",element:r.jsx(wj,{})}),r.jsx(u,{path:"/how-it-works",element:r.jsx(ij,{})}),r.jsx(u,{path:"/sales-training",element:r.jsx(UA,{})}),r.jsx(u,{path:"/for-importers",element:r.jsx(F,{to:"/importers",replace:!0})}),r.jsx(u,{path:"/lp/importers",element:r.jsx(nR,{})}),r.jsx(u,{path:"/lp/brokers",element:r.jsx(oR,{})}),r.jsx(u,{path:"/lp/partners",element:r.jsx(sR,{})}),r.jsx(u,{path:"/lp/flyer/importers",element:r.jsx(aR,{})}),r.jsx(u,{path:"/lp/flyer/brokers",element:r.jsx(iR,{})}),r.jsx(u,{path:"/lp/flyer/partners",element:r.jsx(lR,{})}),r.jsx(u,{path:"/lp/flyer/advance-funding",element:r.jsx(cR,{})}),r.jsx(u,{path:"/lp/flyer/why-us",element:r.jsx(dR,{})}),r.jsx(u,{path:"/lp/flyer/process",element:r.jsx(uR,{})}),r.jsx(u,{path:"/lp/flyer/platform",element:r.jsx(fR,{})}),r.jsx(u,{path:"/lp/flyer/already-filed",element:r.jsx(pR,{})}),r.jsx(u,{path:"/lp/already-filed",element:r.jsx(mR,{})}),r.jsx(u,{path:"/lp/flyer/phase-3-recovery",element:r.jsx(hR,{})}),r.jsx(u,{path:"/lp/phase-3-recovery",element:r.jsx(gR,{})}),r.jsx(u,{path:"/enterprise/bc-ap-onboarding",element:r.jsx(_R,{})}),r.jsx(u,{path:"/lp/whitelabel-overview",element:r.jsx(F,{to:"/enterprise/bc-ap-onboarding",replace:!0})}),r.jsx(u,{path:"/lp/advance-funding",element:r.jsx(xR,{})}),r.jsx(u,{path:"/enterprise",element:r.jsx(yR,{})}),r.jsx(u,{path:"/enterprise/intake",element:r.jsx(vR,{})}),r.jsx(u,{path:"/enterprise/checkout",element:r.jsx(bR,{})}),r.jsx(u,{path:"/enterprise/checkout/success",element:r.jsx(wR,{})}),r.jsx(u,{path:"/book-demo",element:r.jsx(jR,{})}),r.jsx(u,{path:"/book-demo/vip",element:r.jsx(TR,{})}),r.jsx(u,{path:"/book-a-demo",element:r.jsx(F,{to:"/book-demo",replace:!0})}),r.jsx(u,{path:"/book-demo/tra",element:r.jsx(ER,{})}),r.jsx(u,{path:"/contact",element:r.jsx(AR,{})}),r.jsx(u,{path:"/contact-us",element:r.jsx(F,{to:"/contact",replace:!0})}),r.jsx(u,{path:"/duty-drawback-services",element:r.jsx(dj,{})}),r.jsx(u,{path:"/free-tariff-assessment",element:r.jsx(uj,{})}),r.jsx(u,{path:"/services/advance-funding",element:r.jsx(WE,{})}),r.jsx(u,{path:"/apply-funding",element:r.jsx(HE,{})}),r.jsx(u,{path:"/terms",element:r.jsx(Aj,{})}),r.jsx(u,{path:"/privacy",element:r.jsx(Rj,{})}),r.jsx(u,{path:"/disclaimer",element:r.jsx(Pj,{})}),r.jsx(u,{path:"/cookies",element:r.jsx(Sj,{})}),r.jsx(u,{path:"/acceptable-use",element:r.jsx(Cj,{})}),r.jsx(u,{path:"/partner-terms",element:r.jsx(Ij,{})}),r.jsx(u,{path:"/e-sign-consent",element:r.jsx(Nj,{})}),r.jsx(u,{path:"/data-processing",element:r.jsx(Oj,{})}),r.jsx(u,{path:"/unsubscribe",element:r.jsx(nj,{})}),r.jsx(u,{path:"/docs/partner",element:r.jsx(kj,{})}),r.jsx(u,{path:"/docs/anchor-api",element:r.jsx(Dj,{})}),r.jsx(u,{path:"/raffle",element:r.jsx(Gl,{})}),r.jsx(u,{path:"/raffle/live",element:r.jsx(Gl,{})}),r.jsx(u,{path:"/decks/:slug",element:r.jsx(ic,{})}),r.jsx(u,{path:"/decks/:slug/control",element:r.jsx(uA,{})}),r.jsx(u,{path:"/decks/:slug/:slideNum",element:r.jsx(ic,{})}),r.jsx(u,{path:"/partner/decks/:slug",element:r.jsx(dc,{})}),r.jsx(u,{path:"/partner/decks/:slug/:slideNum",element:r.jsx(dc,{})}),r.jsx(u,{path:"/florida-tariff-recovery",element:r.jsx(zn,{})}),r.jsx(u,{path:"/new-york-tariff-recovery",element:r.jsx(zn,{})}),r.jsx(u,{path:"/california-tariff-recovery",element:r.jsx(zn,{})}),r.jsx(u,{path:"/miami-customs-attorney",element:r.jsx(zn,{})}),r.jsx(u,{path:"/client/login",element:r.jsx(XR,{})}),r.jsx(u,{path:"/client/accept-invite",element:r.jsx(hc,{})}),r.jsx(u,{path:"/client/accept-invite/:token",element:r.jsx(hc,{})}),r.jsx(u,{path:"/client/claim-handoff",element:r.jsx(lP,{})}),r.jsx(u,{path:"/auth/magic-link",element:r.jsx(cP,{})}),r.jsxs(u,{path:"/client",element:r.jsx(ue,{requiredRole:"client",children:r.jsx(JR,{})}),children:[r.jsx(u,{index:!0,element:r.jsx(ZR,{})}),r.jsx(u,{path:"claims",element:r.jsx(QR,{})}),r.jsx(u,{path:"claims/:id",element:r.jsx(tP,{})}),r.jsx(u,{path:"claims/:id/submitted",element:r.jsx(rP,{})}),r.jsx(u,{path:"claims/:id/messages",element:r.jsx(nP,{})}),r.jsx(u,{path:"documents",element:r.jsx(eP,{})}),r.jsx(u,{path:"funding",element:r.jsx(iP,{})}),r.jsx(u,{path:"funding/apply",element:r.jsx(Ps,{})}),r.jsx(u,{path:"funding/apply/new",element:r.jsx(Ps,{})}),r.jsx(u,{path:"funding/apply/:id",element:r.jsx(Ps,{})}),r.jsx(u,{path:"funding/submitted",element:r.jsx(qE,{})}),r.jsx(u,{path:"notifications",element:r.jsx(oP,{})}),r.jsx(u,{path:"messages",element:r.jsx(Hn,{})}),r.jsx(u,{path:"help",element:r.jsx(aP,{})}),r.jsx(u,{path:"account",element:r.jsx(Un,{})})]}),r.jsx(u,{path:"/brokers/login",element:r.jsx(gc,{})}),r.jsx(u,{path:"/brokers/register",element:r.jsx(_c,{})}),r.jsx(u,{path:"/brokers/signup",element:r.jsx(_c,{})}),r.jsx(u,{path:"/brokers/signup/:inviteToken",element:r.jsx(gc,{})}),r.jsx(u,{path:"/brokers/accept-invite",element:r.jsx(xc,{})}),r.jsx(u,{path:"/brokers/accept-invite/:token",element:r.jsx(xc,{})}),r.jsx(u,{path:"/brokers/apply/:id",element:r.jsx(ue,{requiredRole:"broker",children:r.jsx(EP,{})})}),r.jsxs(u,{path:"/brokers",element:r.jsx(ue,{requiredRole:"broker",children:r.jsx(fP,{})}),children:[r.jsx(u,{index:!0,element:r.jsx(mP,{})}),r.jsx(u,{path:"clients",element:r.jsx(F,{to:"/brokers/claims",replace:!0})}),r.jsx(u,{path:"claims",element:r.jsx(hP,{})}),r.jsx(u,{path:"claims/:id",element:r.jsx(gP,{})}),r.jsx(u,{path:"commissions",element:r.jsx(_P,{})}),r.jsx(u,{path:"invite",element:r.jsx(xP,{})}),r.jsx(u,{path:"ace-upload",element:r.jsx(vP,{})}),r.jsx(u,{path:"eligibility",element:r.jsx(yP,{})}),r.jsx(u,{path:"whitelabel",element:r.jsx(bP,{})}),r.jsx(u,{path:"bulk-import",element:r.jsx(wP,{})}),r.jsx(u,{path:"export",element:r.jsx(jP,{})}),r.jsx(u,{path:"messages",element:r.jsx(Hn,{})}),r.jsx(u,{path:"account",element:r.jsx(Un,{})}),r.jsx(u,{path:"payment-settings",element:r.jsx(MA,{})}),r.jsx(u,{path:"help",element:r.jsx(zA,{})})]}),r.jsx(u,{path:"/partner/register",element:r.jsx(F,{to:"/login?tab=signup",replace:!0})}),r.jsx(u,{path:"/register",element:r.jsx(F,{to:"/login?tab=signup",replace:!0})}),r.jsx(u,{path:"/login/signup",element:r.jsx(F,{to:"/login?tab=signup",replace:!0})}),r.jsx(u,{path:"/help",element:r.jsx(F,{to:"/partners/help",replace:!0})}),r.jsx(u,{path:"/partner/payouts",element:r.jsx(F,{to:"/partner/payment-settings",replace:!0})}),r.jsx(u,{path:"/partner/links",element:r.jsx(F,{to:"/partner/marketing",replace:!0})}),r.jsx(u,{path:"/partner/glossary",element:r.jsx(F,{to:"/partner/help",replace:!0})}),r.jsx(u,{path:"/partner/login",element:r.jsx(F,{to:"/login",replace:!0})}),r.jsx(u,{path:"/partner/signin",element:r.jsx(F,{to:"/login",replace:!0})}),r.jsx(u,{path:"/partner/deadlines",element:r.jsx(F,{to:"/partner/leads",replace:!0})}),r.jsx(u,{path:"/partner/slide-decks",element:r.jsx(F,{to:"/partner/marketing",replace:!0})}),r.jsx(u,{path:"/partner/agreements",element:r.jsx(F,{to:"/partner/documents",replace:!0})}),r.jsx(u,{path:"/partner/marketing-images",element:r.jsx(F,{to:"/partner/marketing",replace:!0})}),r.jsx(u,{path:"/partner/marketing-materials",element:r.jsx(F,{to:"/partner/marketing",replace:!0})}),r.jsx(u,{path:"/partners",element:r.jsx(F,{to:"/lp/partners",replace:!0})}),r.jsx(u,{path:"/training",element:r.jsx(F,{to:"/partners/help",replace:!0})}),r.jsx(u,{path:"/ols/products",element:r.jsx(F,{to:"/",replace:!0})}),r.jsx(u,{path:"/pricing",element:r.jsx(F,{to:"/lp/partners",replace:!0})}),r.jsx(u,{path:"/client/payout",element:r.jsx(F,{to:"/client/account",replace:!0})}),r.jsx(u,{path:"/command/api-keys",element:r.jsx(F,{to:"/command/sett
89ings",replace:!0})}),r.jsx(u,{path:"/command/affiliates",element:r.jsx(F,{to:"/command/partners",replace:!0})}),r.jsx(u,{path:"/command/affiliates/:id",element:r.jsx(F,{to:"/command/partners",replace:!0})}),r.jsx(u,{path:"/portal",element:r.jsx(F,{to:"/login",replace:!0})}),r.jsx(u,{path:"/support",element:r.jsx(F,{to:"/contact",replace:!0})}),r.jsx(u,{path:"/blog",element:r.jsx(F,{to:"/resources",replace:!0})}),r.jsx(u,{path:"/forum",element:r.jsx(F,{to:"/resources",replace:!0})}),r.jsx(u,{path:"/calculator",element:r.jsx(F,{to:"/tools/tariff-refund-calculator",replace:!0})}),r.jsx(u,{path:"/compliance",element:r.jsx(F,{to:"/disclaimer",replace:!0})}),r.jsx(u,{path:"/legal-disclaimer",element:r.jsx(F,{to:"/disclaimer",replace:!0})}),r.jsx(u,{path:"/privacy-policy",element:r.jsx(F,{to:"/privacy",replace:!0})}),r.jsx(u,{path:"/terms-of-service",element:r.jsx(F,{to:"/terms",replace:!0})}),r.jsx(u,{path:"/password/reset",element:r.jsx(F,{to:"/login",replace:!0})}),r.jsx(u,{path:"/broker",element:r.jsx(F,{to:"/for-brokers",replace:!0})}),r.jsx(u,{path:"/broker/register",element:r.jsx(F,{to:"/brokers/register",replace:!0})}),r.jsx(u,{path:"/for-customs-brokers",element:r.jsx(F,{to:"/for-brokers",replace:!0})}),r.jsx(u,{path:"/partner/dashboard",element:r.jsx(F,{to:"/partner",replace:!0})}),r.jsx(u,{path:"/partner/whitelabel",element:r.jsx(F,{to:"/partner",replace:!0})}),r.jsx(u,{path:"/book/discovery-",element:r.jsx(F,{to:"/book-demo",replace:!0})}),r.jsx(u,{path:"/cbw",element:r.jsx(vc,{to:"https://calendly.com/vxtl/tra-customs-brokers/2026-08-07T15:00:00-04:00?month=2026-08&date=2026-08-07"})}),r.jsx(u,{path:"/cb-webinar",element:r.jsx(vc,{to:"https://calendly.com/vxtl/tra-customs-brokers/2026-08-07T15:00:00-04:00?month=2026-08&date=2026-08-07"})}),r.jsx(u,{path:"/onboard",element:r.jsx(UP,{})}),r.jsxs(u,{path:"/command",element:r.jsx(ue,{requiredRole:"admin",children:r.jsx($j,{})}),children:[r.jsx(u,{index:!0,element:r.jsx(Fj,{})}),r.jsx(u,{path:"crm",element:r.jsx(it,{preset:"all"})}),r.jsx(u,{path:"crm/dashboard",element:r.jsx(Hj,{})}),r.jsx(u,{path:"crm/tasks",element:r.jsx(Wj,{})}),r.jsx(u,{path:"crm/settings",element:r.jsx(qj,{})}),r.jsx(u,{path:"crm/reports",element:r.jsx(Gj,{})}),r.jsx(u,{path:"crm/mine",element:r.jsx(it,{preset:"mine"})}),r.jsx(u,{path:"crm/due-today",element:r.jsx(it,{preset:"due-today"})}),r.jsx(u,{path:"crm/overdue",element:r.jsx(it,{preset:"overdue"})}),r.jsx(u,{path:"crm/unassigned",element:r.jsx(it,{preset:"unassigned"})}),r.jsx(u,{path:"crm/stale",element:r.jsx(it,{preset:"stale"})}),r.jsx(u,{path:"crm/high-priority",element:r.jsx(it,{preset:"high-priority"})}),r.jsx(u,{path:"crm/funding",element:r.jsx(it,{preset:"funding"})}),r.jsx(u,{path:"crm/needs-admin",element:r.jsx(it,{preset:"needs-admin"})}),r.jsx(u,{path:"crm/dead",element:r.jsx(it,{preset:"dead"})}),r.jsx(u,{path:"crm/mine/stale",element:r.jsx(it,{preset:"mine-stale"})}),r.jsx(u,{path:"crm/mine/dead",element:r.jsx(it,{preset:"mine-dead"})}),r.jsx(u,{path:"crm/:leadId",element:r.jsx(zj,{})}),r.jsxs(u,{path:"relationships",element:r.jsx(Yj,{}),children:[r.jsx(u,{index:!0,element:r.jsx(Kj,{})}),r.jsx(u,{path:"list",element:r.jsx(Xj,{})}),r.jsx(u,{path:"tasks",element:r.jsx(Jj,{})}),r.jsx(u,{path:"calendar",element:r.jsx(Zj,{})}),r.jsx(u,{path:"cleanup",element:r.jsx(Qj,{})})]}),r.jsx(u,{path:"relationships/:id",element:r.jsx(eT,{})}),r.jsx(u,{path:"leads",element:r.jsx(Vj,{})}),r.jsx(u,{path:"leads/:id",element:r.jsx(Uj,{})}),r.jsx(u,{path:"orphan-claims",element:r.jsx(tT,{})}),r.jsx(u,{path:"payment-reconciliation",element:r.jsx(rT,{})}),r.jsx(u,{path:"clients",element:r.jsx(Bj,{})}),r.jsx(u,{path:"pipeline",element:r.jsx(nT,{})}),r.jsx(u,{path:"partners",element:r.jsx(aT,{})}),r.jsx(u,{path:"partner-access",element:r.jsx(iT,{})}),r.jsx(u,{path:"brokers",element:r.jsx(Kl,{})}),r.jsx(u,{path:"brokers/:id",element:r.jsx(Kl,{})}),r.jsx(u,{path:"commissions",element:r.jsx(lT,{})}),r.jsx(u,{path:"commission-simulator",element:r.jsx(cT,{})}),r.jsx(u,{path:"commissions/waterfall/:leadId",element:r.jsx(dT,{})}),r.jsx(u,{path:"comp-overrides",element:r.jsx(fT,{})}),r.jsx(u,{path:"payment-accounts",element:r.jsx(pT,{})}),r.jsx(u,{path:"house-revenue",element:r.jsx(mT,{})}),r.jsx(u,{path:"anchor-kpis",element:r.jsx(F,{to:"/command/processing-center",replace:!0})}),r.jsx(u,{path:"processing-center",element:r.jsx(hT,{})}),r.jsx(u,{path:"anchor-status-mapping",element:r.jsx(gT,{})}),r.jsx(u,{path:"users",element:r.jsx(oT,{})}),r.jsx(u,{path:"stats",element:r.jsx(sT,{})}),r.jsx(u,{path:"audit",element:r.jsx(xT,{})}),r.jsx(u,{path:"activity",element:r.jsx(vT,{})}),r.jsx(u,{path:"settings",element:r.jsx(_T,{})}),r.jsx(u,{path:"deadlines",element:r.jsx(wT,{})}),r.jsx(u,{path:"emails",element:r.jsx(F,{to:"/command/email-dashboard",replace:!0})}),r.jsx(u,{path:"email-dashboard",element:r.jsx(ET,{})}),r.jsx(u,{path:"email-queue",element:r.jsx(F,{to:"/command/email-dashboard?tab=queue",replace:!0})}),r.jsx(u,{path:"sms-dashboard",element:r.jsx(PT,{})}),r.jsx(u,{path:"scheduled-meetings",element:r.jsx(RR,{})}),r.jsx(u,{path:"data-mode-tools",element:r.jsx(ST,{})}),r.jsx(u,{path:"email-preview",element:r.jsx(CT,{})}),r.jsx(u,{path:"docs",element:r.jsx(yT,{})}),r.jsx(u,{path:"resources",element:r.jsx(bT,{})}),r.jsx(u,{path:"rpa",element:r.jsx(IT,{})}),r.jsx(u,{path:"data-quality",element:r.jsx(NT,{})}),r.jsx(u,{path:"intelligence",element:r.jsx(OT,{})}
89),r.jsx(u,{path:"infrastructure",element:r.jsx(kT,{})}),r.jsx(u,{path:"reputation",element:r.jsx(jT,{})}),r.jsx(u,{path:"ai-assistant",element:r.jsx(DT,{})}),r.jsx(u,{path:"seo",element:r.jsx(LT,{})}),r.jsx(u,{path:"redirects",element:r.jsx(MT,{})}),r.jsx(u,{path:"pages",element:r.jsx(zE,{})}),r.jsx(u,{path:"support",element:r.jsx(BT,{})}),r.jsx(u,{path:"outreach",element:r.jsx(UT,{})}),r.jsx(u,{path:"discovery-calls",element:r.jsx(fA,{})}),r.jsx(u,{path:"discovery-calls/settings",element:r.jsx(mA,{})}),r.jsx(u,{path:"discovery-calls/calendly-monitor",element:r.jsx(hA,{})}),r.jsx(u,{path:"discovery-calls/reconciliation",element:r.jsx(gA,{})}),r.jsx(u,{path:"discovery-calls/:id",element:r.jsx(pA,{})}),r.jsx(u,{path:"market-intel",element:r.jsx($T,{})}),r.jsx(u,{path:"education",element:r.jsx(DR,{})}),r.jsx(u,{path:"importinfo-credentials",element:r.jsx(F,{to:"/command/ieepa-leads?tab=credentials",replace:!0})}),r.jsx(u,{path:"importinfo-sessions",element:r.jsx(F,{to:"/command/ieepa-leads?tab=sessions",replace:!0})}),r.jsx(u,{path:"importinfo-pipeline",element:r.jsx(aA,{})}),r.jsx(u,{path:"contact-coverage",element:r.jsx(iA,{})}),r.jsx(u,{path:"enrichment-v2",element:r.jsx(lA,{})}),r.jsx(u,{path:"ieepa-leads",element:r.jsx(FT,{})}),r.jsxs(u,{path:"lead-program",element:r.jsx(Xl,{}),children:[r.jsx(u,{index:!0,element:r.jsx(Jl,{})}),r.jsx(u,{path:"participants",element:r.jsx(Zl,{})}),r.jsx(u,{path:"accountability",element:r.jsx(oc,{})}),r.jsx(u,{path:"opt-ins",element:r.jsx(Ql,{})}),r.jsx(u,{path:"assigned-leads",element:r.jsx(ec,{})}),r.jsx(u,{path:"tiers",element:r.jsx(tc,{})}),r.jsx(u,{path:"batches",element:r.jsx(rc,{})}),r.jsx(u,{path:"audit",element:r.jsx(nc,{})}),r.jsx(u,{path:"reports",element:r.jsx(sc,{})}),r.jsx(u,{path:"settings",element:r.jsx(ac,{})})]}),r.jsx(u,{path:"processing",element:r.jsx(zT,{})}),r.jsx(u,{path:"partner-integrations",element:r.jsx(HT,{})}),r.jsx(u,{path:"organizations",element:r.jsx(WT,{})}),r.jsx(u,{path:"organizations/performance",element:r.jsx(qT,{})}),r.jsx(u,{path:"organizations/:id/performance",element:r.jsx(GT,{})}),r.jsx(u,{path:"whitelabel-health",element:r.jsx(YT,{})}),r.jsx(u,{path:"domain-status",element:r.jsx(KT,{})}),r.jsx(u,{path:"domain-referral-attributions",element:r.jsx(XT,{})}),r.jsx(u,{path:"pre-attribution",element:r.jsx(JT,{})}),r.jsx(u,{path:"attribution-requests",element:r.jsx(uT,{})}),r.jsx(u,{path:"identity",element:r.jsx(ZT,{})}),r.jsx(u,{path:"funders",element:r.jsx(MP,{})}),r.jsx(u,{path:"funding",element:r.jsx($P,{})}),r.jsx(u,{path:"funding-settlements",element:r.jsx(FP,{})}),r.jsx(u,{path:"funding-router",element:r.jsx(VP,{})}),r.jsx(u,{path:"funding-applications",element:r.jsx(GE,{})}),r.jsx(u,{path:"funding-applications/:id",element:r.jsx(YE,{})}),r.jsx(u,{path:"agreements",element:r.jsx(dP,{})}),r.jsx(u,{path:"partner-agreements",element:r.jsx(uP,{})}),r.jsx(u,{path:"marketing-materials",element:r.jsx(QT,{})}),r.jsx(u,{path:"video-studio",element:r.jsx(eA,{})}),r.jsx(u,{path:"print-center",element:r.jsx(tA,{})}),r.jsx(u,{path:"slide-decks",element:r.jsx(cA,{})}),r.jsx(u,{path:"slide-decks/:id",element:r.jsx(dA,{})}),r.jsx(u,{path:"thumbnails",element:r.jsx(rA,{})}),r.jsx(u,{path:"review-raffle",element:r.jsx(nA,{})}),r.jsx(u,{path:"partner-campaigns",element:r.jsx(TT,{})}),r.jsx(u,{path:"partner-campaigns/:id",element:r.jsx(AT,{})}),r.jsx(u,{path:"partner-sms-campaigns/:id",element:r.jsx(RT,{})}),r.jsx(u,{path:"marketing-images",element:r.jsx(F,{to:"/command/marketing-materials",replace:!0})}),r.jsx(u,{path:"security/lockouts",element:r.jsx(oA,{})}),r.jsx(u,{path:"pool-activity",element:r.jsx(sA,{})}),r.jsxs(u,{path:"products",element:r.jsx(UR,{}),children:[r.jsx(u,{index:!0,element:r.jsx(zR,{})}),r.jsx(u,{path:"catalog",element:r.jsx(HR,{})}),r.jsx(u,{path:"transactions",element:r.jsx(WR,{})}),r.jsx(u,{path:"subscribers",element:r.jsx(qR,{})}),r.jsx(u,{path:"stripe",element:r.jsx(GR,{})}),r.jsx(u,{path:"webhooks",element:r.jsx(YR,{})}),r.jsx(u,{path:"ieepa-funnel",element:r.jsx(KR,{})})]}),r.jsx(u,{path:"products/ieepa-crm",element:r.jsx(F,{to:"/command/products",replace:!0})}),r.jsx(u,{path:"messages",element:r.jsx(sP,{})})]}),r.jsx(u,{path:"/admin",element:r.jsx(Ts,{})}),r.jsx(u,{path:"/admin/*",element:r.jsx(Ts,{})}),r.jsx(u,{path:"/funding/login",element:r.jsx(TP,{})}),r.jsx(u,{path:"/funding/register",element:r.jsx(AP,{})}),r.jsx(u,{path:"/funding/requirements",element:r.jsx(LP,{})}),r.jsx(u,{path:"/funding/accept-invite",element:r.jsx(Ss,{})}),r.jsx(u,{path:"/funding/accept-invite/:token",element:r.jsx(Ss,{})}),r.jsx(u,{path:"/funding/signup/:token",element:r.jsx(Ss,{})}),r.jsxs(u,{path:"/funding",element:r.jsx(ue,{requiredRole:"funder",children:r.jsx(RP,{})}),children:[r.jsx(u,{index:!0,element:r.jsx(F,{to:"/funding/marketplace",replace:!0})}),r.jsx(u,{path:"dashboard",element:r.jsx(PP,{})}),r.jsx(u,{path:"marketplace",element:r.jsx(SP,{})}),r.jsx(u,{path:"discover",element:r.jsx(F,{to:"/funding/marketplace",replace:!0})}),r.jsx(u,{path:"offers",element:r.jsx(CP,{})}),r.jsx(u,{path:"active-deals",element:r.jsx(NP,{})}),r.jsx(u,{path:"portfolio",element:r.jsx(IP,{})}),r.jsx(u,{path:"settings",element:r.jsx(OP,{})}),r.jsx(u,{path:"analytics",element:r.jsx(BP,{})}),r.jsx(u,{path:"how-it-works",element:r.jsx(kP,{})}),r.jsx(u,{path:"glossary",element:r.jsx(DP,{})}),r.jsx(u,{path:"messages",element:r.jsx(Hn,{})}),r.jsx(u,{path:"account",element:r.jsx(Un,{})})]}),r.jsxs(u,{path:"/partner",element:r.jsx(ue,{requiredRole:"affiliate",children:r.jsx(wA,{})}),children:[r.jsx(u,{index:!0,element:r.jsx(SA,{})}),r.jsx(u,{path:"quick-start",element:r.jsx(CA,{})}),r.jsx(u,{path:"analytics",element:r.jsx(ue,{requiredRole:"affiliate",requireAffiliatePermission:"analytics",children:r.jsx(IA,{})})}),r.jsx(u,{path:"leads",element:r.jsx(ue,{requiredRole:"affiliate",requireAffiliatePermission:"clients",children:r.jsx(NA,{})})}),r.jsx(u,{path:"leads/:id",element:r.jsx(ue,{requiredRole:"affiliate",requireAffiliatePermission:"clients",children:r.jsx(OA,{})})}),r.jsx(u,{path:"commissions",element:r.jsx(ue,{requiredRole:"affiliate",requireAffiliatePermission:"commissions",children:r.jsx(DA,{})})}),r.jsx(u,{path:"payment-settings",element:r.jsx(ue,{requiredRole:"affiliate",requireAffiliatePermission:"payment_settings",children:r.jsx(LA,{})})}),r.jsx(u,{path:"documents",element:r.jsx(ue,{requiredRole:"affiliate",children:r.jsx(PA,{})})}),r.jsx(u,{path:"network",element:r.jsx(ue,{requiredRole:"affiliate",requireAffiliatePermission:"network",children:r.jsx(SR,{})})}),r.jsx(u,{path:"organization",element:r.jsx(ue,{requiredRole:"affiliate",requireAffiliatePermission:"organization",children:r.jsx(CR,{})})}),r.jsx(u,{path:"downline-referrals",element:r.jsx(ue,{requiredRole:"affiliate",children:r.jsx(fc,{mode:"downline"})})}),r.jsx(u,{path:"organization/referred",element:r.jsx(ue,{requiredRole:"affiliate",requireAffiliatePermission:"organization",children:r.jsx(fc,{})})}),r.jsx(u,{path:"marketing",element:r.jsx(ue,{requiredRole:"affiliate",requireAffiliatePermission:"marketing",children:r.jsx(kA,{})})}),r.jsx(u,{path:"decks",element:r.jsx(F,{to:"/partner/marketing?tab=decks",replace:!0})}),r.jsx(u,{path:"education",element:r.jsx(ue,{requiredRole:"affiliate",requireAffiliatePermission:"education",children:r.jsx(IR,{})})}),r.jsx(u,{path:"education/certificates",element:r.jsx(ue,{requiredRole:"affiliate",requireAffiliatePermission:"education",children:r.jsx(kR,{})})}),r.jsx(u,{path:"education/:moduleSlug",element:r.jsx(ue,{requiredRole:"affiliate",requireAffiliatePermission:"education",children:r.jsx(NR,{})})}),r.jsx(u,{path:"education/:moduleSlug/:lessonSlug",element:r.jsx(ue,{requiredRole:"affiliate",requireAffiliatePermission:"education",children:r.jsx(OR,{})})}),r.jsx(u,{path:"export",element:r.jsx(ue,{requiredRole:"affiliate",requireAffiliateOwner:!0,children:r.jsx($A,{})})}),r.jsx(u,{path:"advanced",element:r.jsx(ue,{requiredRole:"affiliate",requireAffiliatePermission:"advanced",children:r.jsx(FA,{})})}),r.jsx(u,{path:"updates",element:r.jsx(HA,{})}),r.jsx(u,{path:"updates/:slug",element:r.jsx(WA,{})}),r.jsx(u,{path:"messages",element:r.jsx(Hn,{})}),r.jsx(u,{path:"account",element:r.jsx(Un,{})}),r.jsx(u,{path:"help",element:r.jsx(VA,{})}),r.jsx(u,{path:"sales-training",element:r.jsx(ue,{requiredRole:"affiliate",children:r.jsx(BA,{})})}),r.jsx(u,{path:"resources",element:r.jsx(F,{to:"/docs",replace:!0})}),r.jsx(u,{path:"resources/:slug",element:r.jsx(F,{to:"/docs",replace:!0})}),r.jsx(u,{path:"team",element:r.jsx(ue,{requiredRole:"affiliate",requireAffiliatePermission:"team_members",children:r.jsx(EA,{})})}),r.jsx(u,{path:"pre-attribution",element:r.jsx(ue,{requiredRole:"affiliate",children:r.jsx(jA,{})})}),r.jsx(u,{path:"members",element:r.jsx(ue,{requiredRole:"affiliate",children:r.jsx(TA,{})})}),r.jsx(u,{path:"overrides",element:r.jsx(ue,{requiredRole:"affiliate",children:r.jsx(AA,{})})}),r.jsx(u,{path:"pool-grants",element:r.jsx(ue,{requiredRole:"affiliate",children:r.jsx(RA,{})})}),r.jsx(u,{path:"ieepa-crm",element:r.jsx(xr,{redirect:"/partner",children:r.jsx(MR,{})})}),r.jsx(u,{path:"ieepa-crm/upgrade",element:r.jsx(xr,{redirect:"/partner",children:r.jsx($R,{})})}),r.jsx(u,{path:"ieepa-crm/checkout",element:r.jsx(xr,{redirect:"/partner",children:r.jsx(mc,{})})}),r.jsx(u,{path:"ieepa-crm/reactivate",element:r.jsx(ue,{requiredRole:"affiliate",children:r.jsx(mc,{})})}),r.jsx(u,{path:"ieepa-crm/success",element:r.jsx(xr,{redirect:"/partner",children:r.jsx(FR,{})})}),r.jsx(u,{path:"lead-program/opt-in",element:r.jsx(ue,{requiredRole:"affiliate",children:r.jsx(VT,{})})}),r.jsxs(u,{path:"lead-program",element:r.jsx(hw,{children:r.jsx(Xl,{})}),children:[r.jsx(u,{index:!0,element:r.jsx(Jl,{})}),r.jsx(u,{path:"participants",element:r.jsx(Zl,{})}),r.jsx(u,{path:"accountability",element:r.jsx(oc,{})}),r.jsx(u,{path:"opt-ins",element:r.jsx(Ql,{})}),r.jsx(u,{path:"assigned-leads",element:r.jsx(ec,{})}),r.jsx(u,{path:"tiers",element:r.jsx(tc,{})}),r.jsx(u,{path:"batches",element:r.jsx(rc,{})}),r.jsx(u,{path:"audit",element:r.jsx(nc,{})}),r.jsx(u,{path:"reports",element:r.jsx(sc,{})}),r.jsx(u,{path:"settings",element:r.jsx(ac,{})})]}),r.jsx(u,{path:"crm",element:r.jsx(F,{to:"/partner/ieepa-crm",replace:!0})}),r.jsx(u,{path:"crm/company/:id",element:r.jsx(xr,{redirect:"/partner",children:r.jsx(VR,{})})}),r.jsx(u,{path:"discovery-calls",element:r.jsx(_A,{})}),r.jsx(u,{path:"discovery-calls/new",element:r.jsx(lc,{})}),r.jsx(u,{path:"discovery-calls/:id/edit",element:r.jsx(lc,{})}),r.jsx(u,{path:"discovery-calls/:id",element:r.jsx(xA,{})}),r.jsx(u,{path:"org/discovery-calls",element:r.jsx(vA,{})}),r.jsx(u,{path:"org/discovery-calls/settings",element:r.jsx(yA,{})}),r.jsxs(u,{path:"print",element:r.jsx(eR,{}),children:[r.jsx(u,{index:!0,element:r.jsx(KA,{})}),r.jsx(u,{path:"cart",element:r.jsx(QA,{})}),r.jsx(u,{path:"orders",element:r.jsx(JA,{})}),r.jsx(u,{path:"orders/:id",element:r.jsx(ZA,{})}),r.jsx(u,{path:"p/:slug",element:r.jsx(XA,{})})]})]}),r.jsx(u,{path:"/partner/team/accept",element:r.jsx(cc,{})}),r.jsx(u,{path:"/partner/team/accept/:token",element:r.jsx(cc,{})}),r.jsx(u,{path:"/affiliate/register",element:r.jsx(Rs,{})}),r.jsx(u,{path:"/partner/signup",element:r.jsx(Rs,{})}),r.jsx(u,{path:"/partner/signup/:token",element:r.jsx(Rs,{})}),r.jsx(u,{path:"/ref/:slug",element:r.jsx(tR,{})}),r.jsx(u,{path:"/r/:slug",element:r.jsx(rR,{})}),r.jsx(u,{path:"/b/:slug",element:r.jsx(pP,{})}),r.jsx(u,{path:"/l/:code",element:r.jsx(uc,{})}),r.jsx(u,{path:"/m/:code",element:r.jsx(PR,{})}),r.jsx(u,{path:"/affiliate",element:r.jsx(F,{to:"/partner",replace:!0})}),r.jsx(u,{path:"/affiliate/*",element:r.jsx(F,{to:"/partner",replace:!0})}),r.jsx(u,{path:"/funder",element:r.jsx(F,{to:"/funding",replace:!0})}),r.jsx(u,{path:"/funder/*",element:r.jsx(F,{to:"/funding",replace:!0})}),r.jsx(u,{path:"/:shortSlug",element:r.jsx(uc,{})}),r.jsx(u,{path:"*",element:r.jsx(Ts,{})})]})})]})})]})})})})})})})})})}),IS=Object.freeze(Object.defineProperty({__proto__:null,default:WP},Symbol.toStringTag,{value:"Module"}));
89export{cu as $,vp as A,je as B,yp as C,$u as D,Ya as E,Ka as F,De as G,tE as H,Ep as I,zt as J,Fy as K,ef as L,ha as M,Xt as N,Te as O,xe as P,X as Q,Pt as R,pf as S,eE as T,yx as U,Or as V,da as W,Io as X,Wd as Y,kt as Z,_u as _,ka as a,zc as a$,Ca as a0,Sa as a1,hn as a2,qd as a3,Ot as a4,Gd as a5,rg as a6,Ze as a7,gf as a8,Aa as a9,kl as aA,rv as aB,jh as aC,qx as aD,cS as aE,dS as aF,Gx as aG,Oh as aH,hf as aI,z0 as aJ,U0 as aK,bp as aL,wp as aM,gS as aN,rS as aO,Ao as aP,_ as aQ,TS as aR,q0 as aS,oS as aT,t_ as aU,jo as aV,Iy as aW,Py as aX,fw as aY,Cy as aZ,xS as a_,To as aa,Pr as ab,xf as ac,Sw as ad,Cw as ae,Ir as af,ou as ag,J0 as ah,AS as ai,mS as aj,my as ak,ku as al,hS as am,Du as an,Lu as ao,Mu as ap,gy as aq,py as ar,hy as as,Dh as at,Wy as au,Ch as av,PS as aw,Ts as ax,RS as ay,Ml as az,Da as b,dw as b0,jS as b1,Sy as b2,fS as b3,Oy as b4,Dl as b5,nv as b6,iE as b7,Ay as b8,$e as b9,aw as ba,ES as bb,Ly as bc,Ry as bd,uf as be,bS as bf,uS as bg,dn as bh,Ap as bi,SS as bj,sS as bk,iw as bl,pS as bm,Bu as bn,ky as bo,Uu as bp,Dy as bq,Jy as br,wS as bs,IS as bt,La as c,Ma as d,xy as e,Be as f,xt as g,aS as h,vS as i,xn as j,_S as k,xo as l,su as m,gw as n,jp as o,Mo as p,yS as q,_w as r,mw as s,Ll as t,Eo as u,Hy as v,ve as w,zy as x,Ty as y,Ny as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.