1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-CnKMn8XJ.js","assets/index-L9AYrVUw.js","assets/index-DnDj_hub.css","assets/KnowledgeBasePage-DJT9Fkps.js","assets/FloatingTopMenu-CIhwk2RR.js","assets/PlanAccessModal-P_W2GThH.js","assets/productFunnel-DiJFcMU2.js","assets/locale-Cctu0V3Y.js","assets/SnewLogo-Cg53XTnQ.js","assets/ArrowsClockwise.es-CX8V1pij.js","assets/ChatCircle.es-ys8V5LKI.js","assets/FloppyDisk.es-DCGe340Q.js","assets/Globe.es-5iBT42E4.js","assets/Image.es-BLTC_PgL.js","assets/MagicWand.es-CAihBnXI.js","assets/Package.es-CyLjTX4J.js","assets/Palette.es-Dd5ZEM4v.js","assets/Target.es-Ds7XP-fd.js","assets/WarningCircle.es-CHfqKWRY.js","assets/hydrateStoreContext-CnRDd9GD.js","assets/ChatAvatar-w6xrLrWn.js","assets/HomeChatbox-Cl01tbpJ.js","assets/promptBox-D9Xxfn9U.js","assets/overrides-DxGb-X-q.js","assets/types-YVLQw7aQ.js","assets/useOverridesTick-B6buWBbf.js","assets/Megaphone.es-CpcQHM6H.js","assets/Plus.es-BeVefyFz.js","assets/UploadSimple.es-BDJIa312.js","assets/Users.es-CZggLr1m.js","assets/VideoCamera.es-CCLoNiT_.js","assets/ChatSubmitButton-Bm0hHp2J.js","assets/StructuredPromptEditor-Bagkb6hO.js","assets/ProductPickerModal-DZV-fDl_.js","assets/firstAsset-DWUwvZpm.js","assets/modal-close-button-BhLoO4jQ.js","assets/tabs-CmDZA0dx.js","assets/index-BKpKuXmL.js","assets/index-Eo00qZvG.js","assets/SearchInput-h5gAN-Be.js","assets/ImageSquare.es-Ckk4CjAE.js","assets/overImage-BfLII5AZ.js","assets/pill-BK5sCDTV.js","assets/pill-dropdown-menu-CmrSXir-.js","assets/aspectRatios-DDqw6bsx.js","assets/thumbnail-card-ZiWJf1m1.js","assets/use-exclusive-open-LN4OUcjO.js","assets/index-DHE5NTms.js","assets/proxy-DT8nbzDk.js","assets/index-p7aFGi8o.js","assets/Trash.es-D2Zs5Rpt.js","assets/dissolve-CQo8GAUH.js","assets/Index-XuUv0JLZ.js","assets/InstallWizardModal-CNE1lhkY.js","assets/SectionLabel-CESXB5lC.js","assets/CoworkerAvatar-LLNKhRHM.js","assets/wizardConfigs-QWK-Utl1.js","assets/CheckCircle.es-PkF6a2W-.js","assets/Clock.es-DgpzZNmC.js","assets/Warning.es-rGCmkxYb.js","assets/agentAvatars-SvcJfCoY.js","assets/coworkers.config-CbJ9bqM1.js","assets/AvatarSettingsPage-Ca5mjZEB.js","assets/Plug.es-D5Zp4G23.js","assets/ShoppingBag.es-q44epbcw.js","assets/coworkers-CXtW-JQU.js","assets/agentSummaries-CQG-ipAU.js","assets/agentHoverText-U3X5yOGm.js","assets/AgentWorkspace-dhR38-x1.js","assets/ArrowUp.es-sg_sCqx1.js","assets/LinkSimple.es-DyfkgQYM.js","assets/Play.es-DBh2Tn7f.js","assets/sheet-CL9mA1Sp.js","assets/CustomerServiceAgent-CvV20Jzp.js","assets/AppsPage-DOEEBW8h.js","assets/ShieldCheck.es-DSaGknie.js","assets/PageLayout-CHcZOHxH.js","assets/ChatHistoryPage-CUktzZ1i.js","assets/ArrowBendDownRight.es-5CniB3s1.js","assets/index-BFnbqzYg.js","assets/NotificationsPage-35-EZBHh.js","assets/HistoryPage-DilHos2n.js","assets/Lock.es-ChczKJck.js","assets/AssetsHistoryPage-CIn69Y-X.js","assets/historyKey-GcKgTVWl.js","assets/generationHistory-D4RTxXIf.js","assets/sceneCovers-B-dE7_Ce.js","assets/privateMedia-B7Po080i.js","assets/jobRuntime-D9imWnJq.js","assets/saveImages-BpUrLvEr.js","assets/scheduledPosts-ChXUqWkM.js","assets/generationAdapter-BXonAKVC.js","assets/snewDefault-bcI9V4vY.js","assets/visualDirection-6RyRmTlC.js","assets/NewChatPage-DqISUa9G.js","assets/ArtifactPanel-CB5BlIwO.js","assets/ChartBar.es-DrVdFqT3.js","assets/Code.es-lpuWBocO.js","assets/DeviceMobile.es-CyAcdO8j.js","assets/Minus.es-Dn8w88Wl.js","assets/Table.es-DstvFNSY.js","assets/ShoppingCart.es-DJGAuihh.js","assets/TrendUp.es-DExjYOFc.js","assets/XCircle.es-qE_RjqrD.js","assets/ContinueWith-C-EB1H2v.js","assets/Copy.es-BkRzHo-W.js","assets/UserBubble-CxEIzIZr.js","assets/AgentMessage-DoKOMvAj.js","assets/ChatInput-AHNVbRXo.js","assets/boardChromeCopy-DnmOEM-I.js","assets/welcomeBoard-4xJYHWeA.js","assets/TypingIndicator-Cu4NOV3A.js","assets/ActionChatPage-VWAMnkCy.js","assets/seasonalCalendar-CyVTeHw6.js","assets/Envelope.es-DOOij1sc.js","assets/ArrowCounterClockwise.es-B3mF2JQM.js","assets/CursorClick.es-C3tPERmx.js","assets/SignOut.es-CjcpFEW5.js","assets/NotFound-YMg1Wzpw.js","assets/InstalledAgentPage-CeHFRKzp.js","assets/Files.es-7N4fnDht.js","assets/ThumbsDown.es-CGNKh3eu.js","assets/ThumbsUp.es-D_c5yKbs.js","assets/value-3LWPH8SZ.js","assets/CoWorkersPage-fy9jMvQo.js","assets/CoWorkerDetailPage-Hxxbr9ok.js","assets/DesignSystemPage-CyHDmqzi.js","assets/DesignSystemDocsPage-ptcjdtFO.js","assets/Hand.es-CLd2KHSz.js","assets/Resize.es-BwoWh9ki.js","assets/ToolbarPrimitives-DpoRgruO.js","assets/PendingAssetEditPill-C0aOcQeN.js","assets/PencilSimple.es-DDA0fpvv.js","assets/PillSelect-DrQvPMFB.js","assets/BoardTemplatesMo
1dal-BzENejTn.js","assets/StarterModalShell-BqsuvlPe.js","assets/ThumbCard-ZN7h4mu8.js","assets/poseTypes-Bm7PS-WL.js","assets/useStyleTemplates-UDp5QxX4.js","assets/round-icon-button-DJH-lznp.js","assets/skeleton-CthpmC5T.js","assets/useGenerationCreditCost-DQbGS72G.js","assets/boardMetabar-1Nzocm5E.js","assets/button-Bt8F5TkE.js","assets/StandardPopover-ByzlsOLH.js","assets/BoardCard-Vj24tRtg.js","assets/dropdown-menu-mjIVraPt.js","assets/useProgressiveImageSource-CrIWUb3O.js","assets/TriptychCard-CooUfvoh.js","assets/generation-shimmer-CRk6nK9x.js","assets/generation-shimmer-C-D9Hvrh.css","assets/TemplateSettingRow-CyiRtPF0.js","assets/segmented-tabs--x9EQobi.js","assets/badge-C4DB55EV.js","assets/wfTheme-DA7tTXEm.js","assets/WfOnboardingLayout-DjuiAQmZ.js","assets/OnboardingPrimaryButton-DXhfBHeb.js","assets/SkillsPage-sjbIHkvV.js","assets/TasksPage-caOkzcwR.js","assets/CaretUp.es-D42dYZU2.js","assets/AssetCreatorModal-DfkrU41C.js","assets/useStoreProductPublishGate-D57ZGw2b.js","assets/ArrowClockwise.es-CEsBpyry.js","assets/BoardBottomBar-QsrOv3RB.js","assets/SquaresFour.es-BpA8mwXA.js","assets/Cube.es-DwVS_HfU.js","assets/canvasDocument-BD3jeUPg.js","assets/durableDocument-CwDQPJIK.js","assets/boardSaveRetry-DOnjTgch.js","assets/qaSignal-BzonQWWb.js","assets/boardGenerationQueue-CYTlpRvQ.js","assets/stagingComposerPrompt-ut90SPpr.js","assets/admitCommercialProductReference-C8SXMXFm.js","assets/nodeConnectionVisual-Diz8lAIC.js","assets/Info.es-yptyVV7H.js","assets/StudioAIModal-DOvYLOju.js","assets/GearSix.es-DS_4jaPi.js","assets/Upload.es-BDbEacNK.js","assets/PlansModal-arzAnfLd.js","assets/BillingCycleToggle-CYks6Uh5.js","assets/resolveCasting-1-rDPxyF.js","assets/eligibility-B5UjMwH6.js","assets/scoring-Oj4SgCwH.js","assets/productHeight-D88Bzh8q.js","assets/shadow-1gm38VU4.js","assets/productImageClassifier-CtjXT6b0.js","assets/generateAdImage-COaCDGDt.js","assets/socialAdComposedStyleResolver-Cgbeb0Cd.js","assets/christmasCreativeDirections-Ceo-u5n5.js","assets/SnewImageStage-Bp4X6OdJ.js","assets/uiError-CjWj4YDl.js","assets/useAdStyleBriefings-B-lgDCqm.js","assets/PendingAssetPreview-DBUAzWRT.js","assets/FontCategorySelector-BFC0ZGOm.js","assets/StudioChatPanel-CTMIdRq6.js","assets/FrameCorners.es-DEsKEYQB.js","assets/CaretDoubleLeft.es-C52M4NEJ.js","assets/CaretLeft.es-CVEVfjVi.js","assets/Eye.es-UdlNEHEy.js","assets/EyeSlash.es-c1uHZmoR.js","assets/Heart.es-Bf3nCVn7.js","assets/TextT.es-BlMVVtPw.js","assets/productionOrder-IOxpw38a.js","assets/PostCalendarPage-B9VW1rlv.js","assets/history-CQXQpNXw.js","assets/directions-DxJo97Ho.js","assets/extrairProdutoPrincipal-DiA7rESH.js","assets/runTemplateShot-DXBX0_Iy.js","assets/brandDnaToCampaignDna-Dm6109r0.js","assets/store-CVXWfzEM.js","assets/vibeMoodboard-C59Lv_0t.js","assets/entries-DM0IuApj.js","assets/catalog-CkHlpXUG.js","assets/CastingTagPill-Dxy3OzJ5.js","assets/User.es-DVlkNLFL.js","assets/castingThumbnail-BTwl0DD5.js","assets/CampaignWizardModal-5H-1ksX3.js","assets/seasonalDateDetection-D803in5N.js","assets/cmoGenerationContext-Bbeq5hi5.js","assets/studioVisualLayout-BybetI-G.js","assets/useCampaigns-Bxox62wz.js","assets/antiStock-CfefI4TX.js","assets/types-BznGRwnk.js","assets/ArrowDown.es-BZtv_81U.js","assets/DotsSixVertical.es-CqAy0LdQ.js","assets/textarea-DQFi_3KT.js","assets/popover-DZzanWxt.js","assets/CastingLibraryModal-CIcCfYb6.js","assets/BrandCastingPage-BDc-XNLq.js","assets/snewProductAssets-D38QQN9v.js","assets/socialAdTextEngine-CXTvyP59.js","assets/MegaphoneSimple.es-Cci_hVqJ.js","assets/search-BKf_V4_4.js","assets/studioTemplates-ClvTjmU4.js","assets/sceneMeta-DmZMZluj.js","assets/styleGroups-B2OGYl0a.js","assets/CastPickerPopover-DyZqYUSW.js","assets/loadRecommendationContext-eK4jCmh4.js","assets/quickActions-Bt6kGa-B.js","assets/recipes-CtHnj9D9.js","assets/sanitized-commercial-metrics-Ctrrpq63.js","assets/Drop.es-D__tlA2W.js","assets/templateBuilders-Du1JTprS.js","assets/registry-CbzeBfza.js","assets/AssetCreatorModal-Cr2QXGih.css","assets/TasksOverviewPage-BxpdT7xL.js","assets/BrandDNAPage-DVmsLM2v.js","assets/durableRepository-CrJ1KOcD.js","assets/connectedStoreCompiler-B6HBdZ2d.js","assets/BrandStrategyPage-B8tcMNdK.js","assets/storage-DW2oS9tH.js","assets/SettingsPage-BVQow9vv.js","assets/Camera.es-8HNgckmU.js","assets/ChartLineUp.es-Cj6aI3xb.js","assets/ManagePlanPage-C1KfflfS.js","assets/CreditUsagePage-DfC1hyzP.js","assets/ConnectionsPage-7P82T-Hp.js","assets/SignUpPage-DSMXu4Zo.js","assets/VerifyCodePage-C0SddKlm.js","assets/OnboardingRouter-D9kEuFV9.js","assets/TShirt.es-Mn3oLi8V.js","assets/useConnectedStoreReadiness-DF-_Nxmd.js","assets/connectedStoreContext-CJsQZQXn.js","assets/boardBatch-BeNr49rO.js","assets/GenerateImagePage-DSVIP3vn.js","assets/boardsMockData-DqHpMT8B.js","assets/Board3Page-DlfH_Lxq.js","assets/productBoardIntent-BZb8CQGl.js","assets/stagingProductStyleBinding-BNVQaSKK.js","assets/importBoardDomain-CQ96NT6j.js","assets/PublicTopBar-CX1cIMPi.js","assets/copy-D4zGkB4a.js","assets/BoardCockpitView-D1dl0hvv.js","assets/BoardProductActionsDrawer-C5Gxy_tJ.js","assets/TemplateConnections-DLyAy8gh.js","assets/Board4Page-kazvjRaW.js","assets/SceneFeedbackLauncher-CYhp9kmj.js","assets/StyleCatalogFloatingButton-DGOwxzdY.js","assets/Board5Page-DxSSLi1P.js","assets/proposal-0WXgJ1RF.js","assets/campaignQa-BuUpX9mz.js","assets/cmoProductBrief-DbAqRIdr.js","assets/SceneRecommendationDrawer-B5fXRFYb.js","assets/Board6Page-BhTJ206P.js","assets/CampaignPro
1posalPreviewPage-BTiOpkBz.js","assets/index-BTeEDdlr.js","assets/Board3ShellPreviewPage-CB4aCeki.js","assets/ScenePreviewPage-CUQkHuRT.js","assets/SocialAdComposedPreviewPage-BbmknILB.js","assets/CollageEditorialPage-CtxDbn24.js","assets/CollageEditorialPage-C8pGe2oO.css","assets/AdPosterPage-Ni6SiMFY.js","assets/AdPosterPage-DbngiHz9.css","assets/board-nodes-CvOH0m0U.js","assets/AssetNodesOverlay-iEDYnb1o.js","assets/BoardLockedPage-Co26tdNm.js","assets/GenerateVideoPage-04O6XO2A.js","assets/preset-lifestyle-CiuIBzeu.js","assets/SnewStudioPageBackup-CTLPvHXr.js","assets/SnewStudioHomePage-BQc7PMmP.js","assets/catalog-CfClaC1r.js","assets/CampaignPage-CbuxhLS4.js","assets/CalendarCheck.es-B4cslHqB.js","assets/BatchGroupRow-CbfhUn1q.js","assets/index-C7qqVJo6.js","assets/AgentBatchPage-BhRC2Cxf.js","assets/Home2Page-C6AOh6jU.js","assets/CalendarBlank.es-Bgk8atoI.js","assets/Home4Page-e34qUFAr.js","assets/Home5Page-Dvox868L.js","assets/HomeStartWith-C1uKmC3C.js","assets/ProductCmoProposal-DUJv8Qz-.js","assets/EnvelopeSimple.es-Dcd-S8aY.js","assets/FirstTimeExploreShowcase-CUxewfVe.js","assets/ShowcaseCard-BFEMhBRb.js","assets/StyleEditStarterOverlay-BFzAjjM3.js","assets/useFileDrop-Bndg9qCI.js","assets/showcase-qHVT8Yso.js","assets/stagingLeanLibrary-OoJ8Uo_5.js","assets/useFullInventory-COSthsrP.js","assets/QuickActionBriefModal-BmWFgbnv.js","assets/useRecentBoards-Drv6qcH_.js","assets/worksMode-DPF33FWh.js","assets/materializeFirstImagesBoard-VB_VZLQM.js","assets/PricingSection-DIgqIFiP.js","assets/LandingHeading-Du94IKOt.js","assets/LandingPage-BzOo6i7k.js","assets/heroScene-DvqR1vE_.js","assets/LandingSeo-CtCW8E98.js","assets/floatingSnapshot-BDIOQ2DO.js","assets/useLandingLang-C0r2Rbk0.js","assets/LandingSeo-CWCSuzHo.css","assets/howBoardScene-B4aogWYK.js","assets/ProductFeaturesGrid-DwNtTN1j.js","assets/ProductFeaturesGrid-D2ccDmte.css","assets/FaqSection-CEmyOyYS.js","assets/PublicFooter-DQEW6BgS.js","assets/segmentCopy-Cf1nsK83.js","assets/LandingPage-DKGT0mTR.css","assets/SecondaryLandingPage-BNzynmKX.js","assets/SecondaryLandingPage-Br_sTnkG.css","assets/CategoriesPage-BdjroSrO.js","assets/PublicPage-BP5jLyUi.js","assets/PublicSeo-BKZNjOn5.js","assets/CategoryPage-sNDj_YLB.js","assets/PricingPage-6TFhaH23.js","assets/PublicDocPage-dZmJal6d.js","assets/CatalogPage-BD3pEszH.js","assets/useCollectionReorder-CmgZsC8S.js","assets/QuickCoverModal-ByhENJnt.js","assets/CoverUploadButton-Ci0Jf5jO.js","assets/Spinner.es-C_ZGu2no.js","assets/StyleIndexPage-DWzgQ-lQ.js","assets/StylesManagerPage-BwfVHpGU.js","assets/StyleManagerPage-CV8rOJgM.js","assets/VisualDNAPage-BZ2920Hd.js","assets/ImageStylesAdminPage-BkVpHD5p.js","assets/ChatShowcasePage-DidoWSnT.js","assets/PostsPage-BC4yXXmv.js","assets/AgentIndexPage-LM4SfE9m.js","assets/sandboxCommercialOpportunities-BqgeVlPa.js","assets/AgentCategoriesPreviewPage-DAZpGrFx.js","assets/AgentChatView-BsWTKckG.js","assets/CampaignBoardPage-DPc9P7hM.js","assets/BoardsIndexPage-BUk1CPgG.js","assets/MyBoardsPage-DqKmHTO7.js","assets/TemplatePreviewPage-CKR-y_cK.js","assets/VibeCollectionPage-YT8Rz4vR.js","assets/itemCovers-DIwg2Xx-.js","assets/StyleguidePage-B0pKFSlO.js","assets/ElementsShowcasePage-CI1uy1MZ.js","assets/AuditPage-arYjfZ5E.js","assets/PlansPage-mU4JX-Pi.js","assets/TemplatesAdminPage-BJcz6QEq.js","assets/accordion-BTNqDhuz.js","assets/ThumbnailEditor-YRZUnO5t.js","assets/CampaignTemplatesAdminPage-BI1J8lDG.js","assets/InsightChatPage-DDDwZe1q.js","assets/InsightPlanPage-BaNklRDz.js","assets/AssetQaBadge-AtC_S8zW.js","assets/StyleReferencesPage-UKloKao0.js","assets/StyleAuditPage-Ch58iiKl.js","assets/BrandImagesAdminPage-CqzOFH61.js","assets/brandDnaLibrary-_9mVhDQf.js","assets/BrandLibraryAdminPage-WsbOaZHz.js","assets/StyleCalibrationAdminPage-DB2en9N-.js","assets/SceneLibraryPage-D4-Gpu-p.js","assets/GiseEligibilityPage-S1v0EK70.js","assets/StyleCoversAdminPage-DM4YqxEC.js","assets/LandingSceneAdminPage-CzVKlm6V.js","assets/DemoStoreAdminPage-vc-FEVio.js","assets/InternalDemoPage-C5iRSLzv.js","assets/SceneFitPage-D2TPTwRK.js","assets/NuvemshopProductsSandboxPage-BPPRIfl2.js","assets/BillingModalPreviewPage-BhZpN43K.js","assets/QuickActionBriefDrawerPreviewPage-DpEMAixr.js","assets/ChristmasBoardSandboxPage-3K7fGQCT.js","assets/ComposerActionsSandboxPage-XJklPoYW.js","assets/HomeStartWithPreviewPage-DnXwnYaH.js","assets/HomePresetsPreviewPage-wye_xDsV.js","assets/ImagePostEditPreviewPage-BzvQQNyN.js","assets/StoreConnectionsSandboxPage-DL2FKcV1.js","assets/TaxonomyPage-J_5_-6Hh.js","assets/CollectionsAdminPage-DhRdNDYG.js","assets/SavedStylesAdminPage-CrMbyFY7.js","assets/WorkflowsLibraryPage-Cqa_L-Yv.js","assets/useWorkflows-DtniSVRV.js","assets/WorkflowEditorPage--nwv56v4.js","assets/useWorkflowGeneration-TmJjdWNs.js","assets/WorkflowEditorPage-BnuhLJ6X.css","assets/WorkflowRunPage-B_o9TUD4.js","assets/PresetsPage-DkC8dC9P.js","assets/TemplateGalleryPage-BJ4On8qF.js","assets/cost-CN2DV9ao.js","assets/StudioAIModalPreviewPage-BAcXc4MD.js","assets/EmailConsolePage-Dn4jeQ2m.js","assets/ProductFunnelAdminPage-D1zZWsuI.js","assets/PlannerHomePage-DHneVaNO.js","assets/PlannerLayout-DMYI1JlH.js","assets/DemoControls-CgIvWJVN.js","assets/opportunity-nLL5fWz6.js","assets/plan-DVXV65bY.js","assets/production-zXX_2k-Y.js","assets/review-CGE_evVL.js","assets/feedback-DwRTFpbo.js","assets/OpportunityProposalPage-DQc8qtgR.js","assets/CampaignPlanPage-oBocud9V.js","assets/activity-6aIOE_Wr.js","assets/CampaignProductionPage-ca9vMj02.js","assets/CampaignReviewPage-CUGLcIOF.js","assets/CampaignDeliveryPage-CKYZKd90.js","assets/CampaignsListPage-Bj8ei6Ve.js","assets/ProductsPage-Dp4zytbx.js","assets/BrandLearnedPage-j_iZqwrb.js","assets/PlannerActivityPage-2lNDlWtu.js"])))=>i.map(i=>d[i]); 2var xa=a=>{throw TypeError(a)};var Tt=(a,t,s)=>t.has(a)||xa("Cannot "+s);var x=(a,t,s)=>(Tt(a,t,"read from private field"),s?s.call(a):t.get(a)),B=(a,t,s)=>t.has(a)?xa("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(a):t.set(a,s),D=(a,t,s,r)=>(Tt(a,t,"write to private field"),r?r.call(a,s):t.set(a,s),s),ae=(a,t,s)=>(Tt(a,t,"access private method"),s);var ot=(a,t,s,r)=>({set _(o){D(a,t,o,s)},get _(){return x(a,t,r)}});import{r as n,j as e,b as Ks,a as le,u as Me,c as _e,P as Gs,l as Qs,p as Ys,d as Xs,N as me,e as wt,W as Js,M as er,C as gn,f as tr,n as va,g as ya,L as ar,h as nr,i as ba,k as u,_ as g,m as sr,o as rr,q as or,s as ir,t as lr,v as cr,w as dr}from"./index-L9AYrVUw.js";import{p as ce,r as ur,t as pr,v as J,w as aa,x as wa,y as fe,z as mr,A as ft,B as fn,Q as hr,D as _a,E as gr,F as Ca,G as kt,I as fr,J as ja,K as xr,L as _t,M as vr,N as xn,O as na,U as te,V as xt,W as Ne,X as yr,Y as br,Z as wr,_ as vn,$ as yn,a0 as _r,a1 as Cr,n as nt,a2 as jr,m as N,R as Ge,a3 as st,a4 as Ea,b as Ut,a5 as Er,a6 as Ar,a7 as bn,C as se,P as Pr,a8 as it,a9 as Sr,d as Ce,aa as Aa,ab as Tr,ac as Ct,ad as kr,g as Rr,ae as Hr,c as Lr,l as Ir,af as Vr,ag as Mr,ah as Pa,aj as Sa,ak as Nr,al as Or,am as qt,an as Dr,ao as Fr,ap as Zr,aq as wn,ar as _n,as as zr,at as $r,au as Br,av as Ur,aw as qr,ax as Wr,ay as Kr,az as sa,aA as Cn,aB as Gr,T as Te,aC as jt,aD as jn,aE as Qr,aF as En,aG as Yr,aH as Xr,aI as Jr,u as be,aJ as eo,aK as to,aL as lt,aM as ao,aN as no,aO as so,aP as ro,aQ as oo,aR as io,aS as lo,aT as co,aU as uo}from"./PlanAccessModal-P_W2GThH.js";import{s as re,t as po,a as mo}from"./productFunnel-DiJFcMU2.js";import{u as Et,c as K,b as ra,S as ze,d as ho,i as go}from"./locale-Cctu0V3Y.js";import{P as An,n as Wt,F as fo,H as xo,A as vo,i as Ta,g as yo,k as bo,R as wo,u as _o,l as Co,s as jo,D as oa,a as ia,c as la,m as ca,e as Rt,d as Pn,o as Eo,b as Ao,p as Po}from"./FloatingTopMenu-CIhwk2RR.js";import{Link as Sn,BrowserRouter as So}from"./index-p7aFGi8o.js";import{n as To,l as ko}from"./Trash.es-D2Zs5Rpt.js";import{c as Ro}from"./dissolve-CQo8GAUH.js";import{S as Ho}from"./SnewLogo-Cg53XTnQ.js";const Lo=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,104a12,12,0,0,1-24,0V69l-59.51,59.51a12,12,0,0,1-17-17L187,52H152a12,12,0,0,1,0-24h64a12,12,0,0,1,12,12Zm-44,24a12,12,0,0,0-12,12v64H52V84h64a12,12,0,0,0,0-24H48A20,20,0,0,0,28,80V208a20,20,0,0,0,20,20H176a20,20,0,0,0,20-20V140A12,12,0,0,0,184,128Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M184,80V208a8,8,0,0,1-8,8H48a8,8,0,0,1-8-8V80a8,8,0,0,1,8-8H176A8,8,0,0,1,184,80Z",opacity:"0.2"}),n.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M192,136v72a16,16,0,0,1-16,16H48a16,16,0,0,1-16-16V80A16,16,0,0,1,48,64h72a8,8,0,0,1,0,16H48V208H176V136a8,8,0,0,1,16,0Zm32-96a8,8,0,0,0-8-8H152a8,8,0,0,0-5.66,13.66L172.69,72l-42.35,42.34a8,8,0,0,0,11.32,11.32L184,83.31l26.34,26.35A8,8,0,0,0,224,104Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222,104a6,6,0,0,1-12,0V54.49l-69.75,69.75a6,6,0,0,1-8.48-8.48L201.51,46H152a6,6,0,0,1,0-12h64a6,6,0,0,1,6,6Zm-38,26a6,6,0,0,0-6,6v72a2,2,0,0,1-2,2H48a2,2,0,0,1-2-2V80a2,2,0,0,1,2-2h72a6,6,0,0,0,0-12H48A14,14,0,0,0,34,80V208a14,14,0,0,0,14,14H176a14,14,0,0,0,14-14V136A6,6,0,0,0,184,130Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,104a8,8,0,0,1-16,0V59.32l-66.33,66.34a8,8,0,0,1-11.32-11.32L196.68,48H152a8,8,0,0,1,0-16h64a8,8,0,0,1,8,8Zm-40,24a8,8,0,0,0-8,8v72H48V80h72a8,8,0,0,0,0-16H48A16,16,0,0,0,32,80V208a16,16,0,0,0,16,16H176a16,16,0,0,0,16-16V136A8,8,0,0,0,184,128Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220,104a4,4,0,0,1-8,0V49.66l-73.16,73.17a4,4,0,0,1-5.66-5.66L206.34,44H152a4,4,0,0,1,0-8h64a4,4,0,0,1,4,4Zm-36,28a4,4,0,0,0-4,4v72a4,4,0,0,1-4,4H48a4,4,0,0,1-4-4V80a4,4,0,0,1,4-4h72a4,4,0,0,0,0-8H48A12,12,0,0,0,36,80V208a12,12,0,0,0,12,12H176a12,12,0,0,0,12-12V136A4,4,0,0,0,184,132Z"}))]]),Io=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220,48V96a12,12,0,0,1-24,0V77l-35.51,35.52a12,12,0,0,1-17-17L179,60H160a12,12,0,0,1,0-24h48A12,12,0,0,1,220,48ZM95.51,143.51,60,179V160a12,12,0,0,0-24,0v48a12,12,0,0,0,12,12H96a12,12,0,0,0,0-24H77l35.52-35.51a12,12,0,0,0-17-17ZM208,148a12,12,0,0,0-12,12v19l-35.51-35.52a12,12,0,0,0-17,17L179,196H160a12,12,0,0,0,0,24h48a12,12,0,0,0,12-12V160A12,12,0,0,0,208,148ZM77,60H96a12,12,0,0,0,0-24H48A12,12,0,0,0,36,48V96a12,12,0,0,0,24,0V77l35.51,35.52a12,12,0,0,0,17-17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,48V208H48V48Z",opacity:"0.2"}),n.createElement("path",{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M109.66,146.34a8,8,0,0,1,0,11.32L83.31,184l18.35,18.34A8,8,0,0,1,96,216H48a8,8,0,0,1-8-8V160a8,8,0,0,1,13.66-5.66L72,172.69l26.34-26.35A8,8,0,0,1,109.66,146.34ZM83.31,72l18.35-18.34A8,8,0,0,0,96,40H48a8,8,0,0,0-8,8V96a8,8,0,0,0,13.66,5.66L72,83.31l26.34,26.35a8,8,0,0,0,11.32-11.32ZM208,40H160a8,8,0,0,0-5.66,13.66L172.69,72,146.34,98.34a8,8,0,0,0,11.32,11.32L184,83.31l18.34,18.35A8,8,0,0,0,216,96V48A8,8,0,0,0,208,40Zm3.06,112.61a8,8,0,0,0-8.72,1.73L184,172.69l-26.34-26.35a8,8,0,0,0-11.32,11.32L172.69,184l-18.35,18.34A8,8,0,0,0,160,216h48a8,8,0,0,0,8-8V160A8,8,0,0,0,211.06,152.61Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M214,48V96a6,6,0,0,1-12,0V62.48l-45.76,45.76a6,6,0,0,1-8.48-8.48L193.52,54H160a6,6,0,0,1,0-12h48A6,6,0,0,1,214,48ZM99.76,147.76,54,193.52V160a6,6,0,0,0-12,0v48a6,6,0,0,0,6,6H96a6,
26,0,0,0,0-12H62.48l45.76-45.76a6,6,0,0,0-8.48-8.48ZM208,154a6,6,0,0,0-6,6v33.52l-45.76-45.76a6,6,0,0,0-8.48,8.48L193.52,202H160a6,6,0,0,0,0,12h48a6,6,0,0,0,6-6V160A6,6,0,0,0,208,154ZM62.48,54H96a6,6,0,0,0,0-12H48a6,6,0,0,0-6,6V96a6,6,0,0,0,12,0V62.48l45.76,45.76a6,6,0,0,0,8.48-8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,48V96a8,8,0,0,1-16,0V67.31l-42.34,42.35a8,8,0,0,1-11.32-11.32L188.69,56H160a8,8,0,0,1,0-16h48A8,8,0,0,1,216,48ZM98.34,146.34,56,188.69V160a8,8,0,0,0-16,0v48a8,8,0,0,0,8,8H96a8,8,0,0,0,0-16H67.31l42.35-42.34a8,8,0,0,0-11.32-11.32ZM208,152a8,8,0,0,0-8,8v28.69l-42.34-42.35a8,8,0,0,0-11.32,11.32L188.69,200H160a8,8,0,0,0,0,16h48a8,8,0,0,0,8-8V160A8,8,0,0,0,208,152ZM67.31,56H96a8,8,0,0,0,0-16H48a8,8,0,0,0-8,8V96a8,8,0,0,0,16,0V67.31l42.34,42.35a8,8,0,0,0,11.32-11.32Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M212,48V96a4,4,0,0,1-8,0V57.66l-49.17,49.17a4,4,0,0,1-5.66-5.66L198.34,52H160a4,4,0,0,1,0-8h48A4,4,0,0,1,212,48ZM101.17,149.17,52,198.34V160a4,4,0,0,0-8,0v48a4,4,0,0,0,4,4H96a4,4,0,0,0,0-8H57.66l49.17-49.17a4,4,0,0,0-5.66-5.66ZM208,156a4,4,0,0,0-4,4v38.34l-49.17-49.17a4,4,0,0,0-5.66,5.66L198.34,204H160a4,4,0,0,0,0,8h48a4,4,0,0,0,4-4V160A4,4,0,0,0,208,156ZM57.66,52H96a4,4,0,0,0,0-8H48a4,4,0,0,0-4,4V96a4,4,0,0,0,8,0V57.66l49.17,49.17a4,4,0,0,0,5.66-5.66Z"}))]]),Vo=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216.49,79.52l-56-56A12,12,0,0,0,152,20H56A20,20,0,0,0,36,40V216a20,20,0,0,0,20,20H200a20,20,0,0,0,20-20V88A12,12,0,0,0,216.49,79.52ZM160,57l23,23H160ZM60,212V44h76V92a12,12,0,0,0,12,12h48V212Zm112-80a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,132Zm0,40a12,12,0,0,1-12,12H96a12,12,0,0,1,0-24h64A12,12,0,0,1,172,172Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,88H152V32Z",opacity:"0.2"}),n.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216
2Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,176H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm-8-56V44l44,44Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M212.24,83.76l-56-56A6,6,0,0,0,152,26H56A14,14,0,0,0,42,40V216a14,14,0,0,0,14,14H200a14,14,0,0,0,14-14V88A6,6,0,0,0,212.24,83.76ZM158,46.48,193.52,82H158ZM200,218H56a2,2,0,0,1-2-2V40a2,2,0,0,1,2-2h90V88a6,6,0,0,0,6,6h50V216A2,2,0,0,1,200,218Zm-34-82a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,136Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,168Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M213.66,82.34l-56-56A8,8,0,0,0,152,24H56A16,16,0,0,0,40,40V216a16,16,0,0,0,16,16H200a16,16,0,0,0,16-16V88A8,8,0,0,0,213.66,82.34ZM160,51.31,188.69,80H160ZM200,216H56V40h88V88a8,8,0,0,0,8,8h48V216
2Zm-32-80a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,136Zm0,32a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,168Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M210.83,85.17l-56-56A4,4,0,0,0,152,28H56A12,12,0,0,0,44,40V216a12,12,0,0,0,12,12H200a12,12,0,0,0,12-12V88A4,4,0,0,0,210.83,85.17ZM156,41.65,198.34,84H156ZM200,220H56a4,4,0,0,1-4-4V40a4,4,0,0,1,4-4h92V88a4,4,0,0,0,4,4h52V216A4,4,0,0,1,200,220Zm-36-84a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,136Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,168Z"}))]]),Mo=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M92,144a12,12,0,0,1,12-12h48a12,12,0,0,1,0,24H104A12,12,0,0,1,92,144ZM236,88V200.89A19.13,19.13,0,0,1,216.89,220H39.38A19.41,19.41,0,0,1,20,200.62V52A20,20,0,0,1,40,32H92.41a20,20,0,0,1,15,6.71l26,29.29H216A20,20,0,0,1,236,88ZM44,68h57.28L90.61,56H44ZM212,92H44V196H212Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,80H32V56a8,8,0,0,1,8-8H92.69a8,8,0,0,1,5.65,2.34Z",opacity:"0.2"}),n.createElement("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40ZM216,200H40V88H216ZM96,144a8,8,0,0,1,8-8h48a8,8,0,0,1,0,16H104A8,8,0,0,1,96,144Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,72H131.31L104,44.69A15.88,15.88,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.41,15.41,0,0,0,39.39,216h177.5A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM40,56H92.69l16,16H40Zm112,96H104a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,74H130.49l-27.9-27.9a13.94,13.94,0,0,0-9.9-4.1H40A14,14,0,0,0,26,56V200.62A13.39,13.39,0,0,0,39.38,214H216.89A13.12,13.12,0,0,0,230,200.89V88A14,14,0,0,0,216,74ZM40,54H92.69a2,2,0,0,1,1.41.59L113.51,74H38V56A2,2,0,0,1,40,54ZM218,200.89a1.11,1.11,0,0,1-1.11,1.11H39.38A1.4,1.4,0,0,1,38,200.62V86H216a2,2,0,0,1,2,2ZM158,144a6,6,0,0,1-6,6H104a6,6,0,0,1,0-12h48A6,6,0,0,1,158,144Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,72H131.31L104,44.69A15.86,15.86,0,0,0,92.69,40H40A16,16,0,0,0,24,56V200.62A15.4,15.4,0,0,0,39.38,216H216.89A15.13,15.13,0,0,0,232,200.89V88A16,16,0,0,0,216,72ZM92.69,56l16,16H40V56ZM216,200H40V88H216ZM104,136h48a8,8,0,0,1,0,16H104a8,8,0,0,1,0-16Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,76H129.66L101.17,47.52A11.9,11.9,0,0,0,92.69,44H40A12,12,0,0,0,28,56V200.62A11.4,11.4,0,0,0,39.38,212H216.89A11.12,11.12,0,0,0,228,200.89V88A12,12,0,0,0,216,76ZM40,52H92.69a4,4,0,0,1,2.82,1.17L118.34,76H36V56A4,4,0,0,1,40,52ZM220,200.89a3.12,3.12,0,0,1-3.11,3.11H39.38A3.39,3.39,0,0,1,36,200.62V84H216a4,4,0,0,1,4,4ZM156,144a4,4,0,0,1-4,4H104a4,4,0,0,1,0-8h48A4,4,0,0,1,156,144Z"}))]]),No=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M248.23,112.31A20,20,0,0,0,232,104H220V88a20,20,0,0,0-20-20H132L105.34,48a20.12,20.12,0,0,0-12-4H40A20,20,0,0,0,20,64V208a12,12,0,0,0,12,12H211.1a12,12,0,0,0,11.33-8l28.49-81.47.06-.17A20,20,0,0,0,248.23,112.31ZM92,68l28.8,21.6A12,12,0,0,0,128,92h68v12H69.77a20,20,0,0,0-18.94,13.58L44,137.15V68ZM202.59,196H48.89l23.72-68H226.37Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,88v24H69.77a8,8,0,0,0-7.59,5.47L32,208V64a8,8,0,0,1,8-8H93.33a8,8,0,0,1,4.8,1.6L128,80h72A8,8,0,0,1,208,88Z",opacity:"0.2"}),n.createElement("path",{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M243.36,111.81A14,14,0,0,0,232,106H214V88a14,14,0,0,0-14-14H130L101.74,52.8a14.06,14.06,0,0,0-8.4-2.8H40A14,14,0,0,0,26,64V208a6,6,0,0,0,6,6H211.1a6,6,0,0,0,5.69-4.1l28.49-85.47A14,14,0,0,0,243.36,111.81ZM40,62H93.34a2,2,0,0,1,1.2.4L124.4,84.8A6,6,0,0,0,128,86h72a2,2,0,0,1,2,2v18H69.77a14,14,0,0,0-13.28,9.57L38,171V64A2,2,0,0,1,40,62Zm193.9,58.63L206.78,202H4
20.33l27.54-82.63a2,2,0,0,1,1.9-1.37H232a2,2,0,0,1,1.9,2.63Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M245,110.64A16,16,0,0,0,232,104H216V88a16,16,0,0,0-16-16H130.67L102.94,51.2a16.14,16.14,0,0,0-9.6-3.2H40A16,16,0,0,0,24,64V208h0a8,8,0,0,0,8,8H211.1a8,8,0,0,0,7.59-5.47l28.49-85.47A16.05,16.05,0,0,0,245,110.64ZM93.34,64,123.2,86.4A8,8,0,0,0,128,88h72v16H69.77a16,16,0,0,0-15.18,10.94L40,158.7V64Zm112,136H43.1l26.67-80H232Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M241.72,113a11.88,11.88,0,0,0-9.73-5H212V88a12,12,0,0,0-12-12H129.33l-28.8-21.6a12.05,12.05,0,0,0-7.2-2.4H40A12,12,0,0,0,28,64V208a4,4,0,0,0,4,4H211.09a4,4,0,0,0,3.79-2.74l28.49-85.47A11.86,11.86,0,0,0,241.72,113ZM40,60H93.33a4,4,0,0,1,2.4.8L125.6,83.2a4,4,0,0,0,2.4.8h72a4,4,0,0,1,4,4v20H69.76a12,12,0,0,0-11.38,8.21L36,183.35V64A4,4,0,0,1,40,60Zm195.78,61.26L208.2,204H37.55L66,118.74A4,4,0,0,1,69.76,116H232a4,4,0,0,1,3.79,5.26Z"}))]]),Oo=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M228,128a12,12,0,0,1-12,12H128a12,12,0,0,1,0-24h88A12,12,0,0,1,228,128ZM128,76h88a12,12,0,0,0,0-24H128a12,12,0,0,0,0,24Zm88,104H128a12,12,0,0,0,0,24h88a12,12,0,0,0,0-24ZM79.51,39.51,56,63l-7.51-7.52a12,12,0,0,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Zm0,64L56,127l-7.51-7.52a12,12,0,1,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Zm0,64L56,191l-7.51-7.52a12,12,0,1,0-17,17l16,16a12,12,0,0,0,17,0l32-32a12,12,0,0,0-17-17Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,64V192H128V64Z",opacity:"0.2"}),n.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H128a8,8,0,0,1,0-16h88A8,8,0,0,1,224,128ZM128,72h88a8,8,0,0,0,0-16H128a8,8,0,0,0,0,16Zm88,112H128a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16ZM82.34,42.34,56,68.69,45.66,58.34A8,8,0,0,0,34.34,69.66l16,16a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,82.34,42.34Zm0,64L56,132.69,45.66,122.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Zm0,64L56,196.69,45.66,186.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H208a16,16,0,0,0,16-16V48A16,16,0,0,0,208,32ZM117.66,149.66l-32,32a8,8,0,0,1-11.32,0l-16-16a8,8,0,0,1,11.32-11.32L80,164.69l26.34-26.35a8,8,0,0,1,11.32,11.32Zm0-64-32,32a8,8,0,0,1-11.32,0l-16-16A8,8,0,0,1,69.66,90.34L80,100.69l26.34-26.35a8,8,0,0,1,11.32,11.32ZM192,168H144a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Zm0-64H144a8,8,0,0,1,0-16h48a8,8,0,0,1,0,16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M222,128a6,6,0,0,1-6,6H128a6,6,0,0,1,0-12h88A6,6,0,0,1,222,128ZM128,70h88a6,6,0,0,0,0-12H128a6,6,0,0,0,0,12Zm88,116H128a6,6,0,0,0,0,12h88a6,6,0,0,0,0-12ZM83.76,43.76,56,71.51,44.24,59.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Zm0,64L56,135.51,44.24,123.76a6,6,0,1,0-8.48,8.48l16,16a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Zm0,64L56,199.51,44.24,187.76a6,6,0,0,0-8.48,8.48l16,16a6,6,0,0,0,8.48,0l32-32a6,6,0,0,0-8.48-8.48Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224,128a8,8,0,0,1-8,8H128a8,8,0,0,1,0-16h88A8,8,0,0,1,224,128ZM128,72h88a8,8,0,0,0,0-16H128a8,8,0,0,0,0,16Zm88,112H128a8,8,0,0,0,0,16h88a8,8,0,0,0,0-16ZM82.34,42.34,56,68.69,45.66,58.34A8,8,0,0,0,34.34,69.66l16,16a8,8,0,0,0,11.32,0l32-32A8,8,0,0,0,82.34,42.34Zm0,64L56,132.69,45.66,122.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Zm0,64L56,196.69,45.66,186.34a8,8,0,0,0-11.32,11.32l16,16a8,8,0,0,0,11.32,0l32-32a8,8,0,0,0-11.32-11.32Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M220,128a4,4,0,0,1-4,4H128a4,4,0,0,1,0-8h88A4,4,0,0,1,220,128ZM128,68h88a4,4,0,0,0,0-8H128a4,4,0,0,0,0,8Zm88,120H128a4,4,0,0,0,0,8h88a4,4,0,0,0,0-8ZM85.17,45.17,56,74.34,42.83,61.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Zm0,64L56,138.34,42.83,125.17a4,4,0,1,0-5.66,5.66l16,16a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Zm0,64L56,202.34,42.83,189.17a4,4,0,0,0-5.66,5.66l16,16a4,4,0,0,0,5.66,0l32-32a4,4,0,0,0-5.66-5.66Z"}))]]),Do=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,180a52.06,52.06,0,0,0,52-52V64A52,52,0,0,0,76,64v64A52.06,52.06,0,0,0,128,180ZM100,64a28,28,0,0,1,56,0v64a28,28,0,0,1-56,0Zm40,155.22V240a12,12,0,0,1-24,0V219.22A92.14,92.14,0,0,1,36,128a12,12,0,0,1,24,0,68,68,0,0,0,136,0,12,12,0,0,1,24,0A92.14,92.14,0,0,1,140,219.22Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M168,64v64a40,40,0,0,1-40,40h0a40,40,0,0,1-40-40V64a40,40,0,0,1,40-40h0A40,40,0,0,1,168,64Z",opacity:"0.2"}),n.createElement("path",{d:"M128,176a48.05,48.05,0,0,0,48-48V64a48,48,0,0,0-96,0v64A48.05,48.05,0,0,0,128,176ZM96,64a32,32,0,0,1,64,0v64a32,32,0,0,1-64,0Zm40,143.6V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64,64,0,0,0,128,0,8,8,0,0,1,16,0A80.11,80.11,0,0,1,136,207.6Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M80,128V64a48,48,0,0,1,96,0v64a48,48,0,0,1-96,0Zm128,0a8,8,0,0,0-16,0,64,64,0,0,1-128,0,8,8,0,0,0-16,0,80.11,80.11,0,0,0,72,79.6V240a8,8,0,0,0,16,0V207.6A80.11,80.11,0,0,0,208,128Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,174a46.06,46.06,0,0,0,46-46V64a46,46,0,0,0-92,0v64A46.06,46.06,0,0,0,128,174ZM94,64a34,34,0,0,1,68,0v64a34,34,0,0,1-68,0Zm40,141.75V240a6,
26,0,0,1-12,0V205.75A78.09,78.09,0,0,1,50,128a6,6,0,0,1,12,0,66,66,0,0,0,132,0,6,6,0,0,1,12,0A78.09,78.09,0,0,1,134,205.75Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,176a48.05,48.05,0,0,0,48-48V64a48,48,0,0,0-96,0v64A48.05,48.05,0,0,0,128,176ZM96,64a32,32,0,0,1,64,0v64a32,32,0,0,1-64,0Zm40,143.6V240a8,8,0,0,1-16,0V207.6A80.11,80.11,0,0,1,48,128a8,8,0,0,1,16,0,64,64,0,0,0,128,0,8,8,0,0,1,16,0A80.11,80.11,0,0,1,136,207.6Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,172a44.05,44.05,0,0,0,44-44V64a44,44,0,0,0-88,0v64A44.05,44.05,0,0,0,128,172ZM92,64a36,36,0,0,1,72,0v64a36,36,0,0,1-72,0Zm40,139.89V240a4,4,0,0,1-8,0V203.89A76.09,76.09,0,0,1,52,128a4,4,0,0,1,8,0,68,68,0,0,0,136,0,4,4,0,0,1,8,0A76.09,76.09,0,0,1,132,203.89Z"}))]]),Fo=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M230.14,70.54,185.46,25.85a20,20,0,0,0-28.29,0L33.86,149.17A19.85,19.85,0,0,0,28,163.31V208a20,20,0,0,0,20,20H92.69a19.86,19.86,0,0,0,14.14-5.86L230.14,98.82a20,20,0,0,0,0-28.28ZM93,180l71-71,11,11-71,71ZM76,163,65,152l71-71,11,11ZM52,173l15.51,15.51h0L83,204H52ZM192,103,153,64l18.34-18.34,39,39Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M221.66,90.34,192,120,136,64l29.66-29.66a8,8,0,0,1,11.31,0L221.66,79A8,8,0,0,1,221.66,90.34Z",opacity:"0.2"}),n.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160l90.35-90.35,16.68,16.69L68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188l90.35-90.35h0l16.68,16.69Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M225.9,74.78,181.21,30.09a14,14,0,0,0-19.8,0L38.1,153.41a13.94,13.94,0,0,0-4.1,9.9V208a14,14,0,0,0,14,14H92.69a13.94,13.94,0,0,0,9.9-4.1L225.9,94.58a14,14,0,0,0,0-19.8ZM48.49,160,136,72.48,155.51,92,68,179.51ZM46,208V174.48L81.51,210H48A2,2,0,0,1,46,208Zm50-.49L76.49,188,164,100.48,183.51,120ZM217.41,86.1,192,111.51,144.49,64,169.9,38.58a2,2,0,0,1,2.83,0l44.68,44.69a2,2,0,0,1,0,2.83Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM51.31,160,136,75.31,152.69,92,68,176.68ZM48,179.31,76.69,208H48Zm48,25.38L79.31,188,164,103.31,180.69,120Zm96-96L147.31,64l24-24L216,84.68Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M224.49,76.2,179.8,31.51a12,12,0,0,0-17,0L39.52,154.83A11.9,11.9,0,0,0,36,163.31V208a12,12,0,0,0,12,12H92.69a12,12,0,0,0,8.48-3.51L224.48,93.17a12,12,0,0,0,0-17ZM45.66,160,136,69.65,158.34,92,68,182.34ZM44,208V169.66l21.17,21.17h0L86.34,212H48A4,4,0,0,1,44,208Zm52,2.34L73.66,188,164,97.65,186.34,120ZM218.83,87.51,192,114.34,141.66,64l26.82-26.83a4,4,0,0,1,5.66,0l44.69,44.68a4,4,0,0,1,0,5.66Z"}))]]),Zo=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,156a43.78,43.78,0,0,0-29.09,11L106.1,140.8a44.07,44.07,0,0,0,0-25.6L146.91,89a43.83,43.83,0,1,0-13-20.17L93.09,95a44,44,0,1,0,0,65.94L133.9,187.2A44,44,0,1,0,176,156Zm0-120a20,20,0,1,1-20,20A20,20,0,0,1,176,36ZM64,148a20,20,0,1,1,20-20A20,20,0,0,1,64,148Zm112,72a20,20,0,1,1,20-20A20,20,0,0,1,176,220Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M208,200a32,32,0,1,1-32-32A32,32,0,0,1,208,200ZM176,88a32,32,0,1,0-32-32A32,32,0,0,0,176,88Z",opacity:"0.2"}),n.createElement("path",{d:"M176,160a39.89,39.89,0,0,0-28.62,12.09l-46.1-29.63a39.8,39.8,0,0,0,0-28.92l46.1-29.63a40,40,0,1,0-8.66-13.45l-46.1,29.63a40,40,0,1,0,0,55.82l46.1,29.63A40,40,0,1,0,176,160Zm0-128a24,24,0,1,1-24,24A24,24,0,0,1,176,32ZM64,152a24,24,0,1,1,24-24A24,24,0,0,1,64,152Zm112,72a24,24,0,1,1,24-24A24,24,0,0,1,176,224Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M212,200a36,36,0,1,1-69.85-12.25l-53-34.05a36,36,0,1,1,0-51.4l53-34a36.09,36.09,0,1,1,8.67,13.45l-53,34.05a36,36,0,0,1,0,24.5l53,34.05A36,36,0,0,1,212,200Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,162a37.91,37.91,0,0,0-28.3,12.67L98.8,143.24a37.89,37.89,0,0,0,0-30.48l48.9-31.43a38,38,0,1,0-6.5-10.09L92.3,102.67a38,38,0,1,0,0,50.66l48.9,31.43A38,38,0,1,0,176,162Zm0-132a26,26,0,1,1-26,26A26,26,0,0,1,176,30ZM64,154a26,26,0,1,1,26-26A26,26,0,0,1,64,154Zm112,72a26,26,0,1,1,26-26A26,26,0,0,1,176,226Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,160a39.89,39.89,0,0,0-28.62,12.09l-46.1-29.63a39.8,39.8,0,0,0,0-28.92l46.1-29.63a40,40,0,1,0-8.66-13.45l-46.1,29.63a40,40,0,1,0,0,55.82l46.1,29.63A40,40,0,1,0,176,160Zm0-128a24,24,0,1,1-24,24A24,24,0,0,1,176,32ZM64,152a24,24,0,1,1,24-24A24,24,0,0,1,64,152Zm112,72a24,24,0,1,1,24-24A24,24,0,0,1,176,224Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M176,164a36,36,0,0,0-27.92,13.3L96.25,144a35.92,35.92,0,0,0,0-32L148.08,78.7A35.93,35.93,0,1,0,143.75,72L91.92,105.3a36,36,0,1,0,0,45.4L143.75,184A36,36,0,1,0,176,164Zm0-136a28,28,0,1,1-28,28A28,28,0,0,1,176,28ZM64,156a28,28,0,1,1,28-28A28,28,0,0,1,64,156Zm112,72a28,28,0,1,1,28-28A28,28,0,0,1,176,228Z"}))]]),zo=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36ZM44,104H72v20H44ZM72,60V80H44V60ZM44,148H72v48H44Zm168,48H96V60H212Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M88,48V208H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8Z",opacity:"0.2"}),n.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,152H56a8,8,0,0,0,0-16H40V120H56a8,8,0,0,0,0-16H40V88H56a8,8,0,0,0,0-16H40V56H80V200H40Zm176,48H96V56H216V200Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM64,152H48a8,8,0,0,1,0-16H64a8,8,0,0,1,0,16Zm0-32H48a8,8,0,0,1,0-16H64a8,8,0,0,1,0,16Zm0-32H48a8,8,0,0,1,0-16H64a8,8,0,0,1,0,16ZM216,200H88V56H216V200Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM38,200V150H56a6,6,0,0,0,0-12H38V118H56a6,6,0,0,0,0-12H38V86H56a6,6,0,0,0,0-12H38V56a2,2,0,0,1,2-2H82V202H40A2,2,0,0,1,38,200Zm180,0a2,2,0,0,1-2,2H94V54H216a2,2,0,0,1,2,2Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,152H56a8,8,0,0,0,0-16H40V120H56a8,8,0,0,0,0-16H40V88H56a8,8,0,0,0,0-16H40V56H80V200H40Zm176,48H96V56H216V200Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM36,200V148H56a4,4,0,0,0,0-8H36V116H56a4,4,0,0,0,0-8H36V84H56a4,4,0,0,0,0-8H36V56a4,4,0,0,1,4-4H84V204H40A4,4,0,0,1,36,200Zm184,0a4,4,0,0,1-4,4H92V52H216a4,4,0,0,1,4,4Z"}))]]),$o=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,36H40A20,20,0,0,0,20,56V200a20,20,0,0,0,20,20H216a20,20,0,0,0,20-20V56A20,20,0,0,0,216,36ZM44,60H76V196H44ZM212,196H100V60H2
212Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M88,48V208H40a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8Z",opacity:"0.2"}),n.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,56H80V200H40ZM216,200H96V56H216V200Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40Zm0,160H88V56H216V200Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,42H40A14,14,0,0,0,26,56V200a14,14,0,0,0,14,14H216a14,14,0,0,0,14-14V56A14,14,0,0,0,216,42ZM38,200V56a2,2,0,0,1,2-2H82V202H40A2,2,0,0,1,38,200Zm180,0a2,2,0,0,1-2,2H94V54H216a2,2,0,0,1,2,2Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,40H40A16,16,0,0,0,24,56V200a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A16,16,0,0,0,216,40ZM40,56H80V200H40ZM216,200H96V56H216V200Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M216,44H40A12,12,0,0,0,28,56V200a12,12,0,0,0,12,12H216a12,12,0,0,0,12-12V56A12,12,0,0,0,216,44ZM36,200V56a4,4,0,0,1,4-4H84V204H40A4,4,0,0,1,36,200Zm184,0a4,4,0,0,1-4,4H92V52H216a4,4,0,0,1,4,4Z"}))]]),Bo=new Map([["bold",n.createElement(n.Fragment,null,n.createElement("path",{d:"M40,92H70.06a36,36,0,0,0,67.88,0H216a12,12,0,0,0,0-24H137.94a36,36,0,0,0-67.88,0H40a12,12,0,0,0,0,24Zm64-24A12,12,0,1,1,92,80,12,12,0,0,1,104,68Zm112,96H201.94a36,36,0,0,0-67.88,0H40a12,12,0,0,0,0,24h94.06a36,36,0,0,0,67.88,0H216a12,12,0,0,0,0-24Zm-48,24a12,12,0,1,1,12-12A12,12,0,0,1,168,188Z"}))],["duotone",n.createElement(n.Fragment,null,n.createElement("path",{d:"M128,80a24,24,0,1,1-24-24A24,24,0,0,1,128,80Zm40,72a24,24,0,1,0,24,24A24,24,0,0,0,168,152Z",opacity:"0.2"}),n.createElement("path",{d:"M40,88H73a32,32,0,0,0,62,0h81a8,8,0,0,0,0-16H135a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16Zm64-24A16,16,0,1,1,88,80,16,16,0,0,1,104,64ZM216,168H199a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16h97a32,32,0,0,0,62,0h17a8,8,0,0,0,0-16Zm-48,24a16,16,0,1,1,16-16A16,16,0,0,1,168,192Z"}))],["fill",n.createElement(n.Fragment,null,n.createElement("path",{d:"M32,80a8,8,0,0,1,8-8H77.17a28,28,0,0,1,53.66,0H216a8,8,0,0,1,0,16H130.83a28,28,0,0,1-53.66,0H40A8,8,0,0,1,32,80Zm184,88H194.83a28,28,0,0,0-53.66,0H40a8,8,0,0,0,0,16H141.17a28,28,0,0,0,53.66,0H216a8,8,0,0,0,0-16Z"}))],["light",n.createElement(n.Fragment,null,n.createElement("path",{d:"M40,86H74.6a30,30,0,0,0,58.8,0H216a6,6,0,0,0,0-12H133.4a30,30,0,0,0-58.8,0H40a6,6,0,0,0,0,12Zm64-24A18,18,0,1,1,86,80,18,18,0,0,1,104,62ZM216,170H197.4a30,30,0,0,0-58.8,0H40a6,6,0,0,0,0,12h98.6a30,30,0,0,0,58.8,0H216a6,6,0,0,0,0-12Zm-48,24a18,18,0,1,1,18-18A18,18,0,0,1,168,194Z"}))],["regular",n.createElement(n.Fragment,null,n.createElement("path",{d:"M40,88H73a32,32,0,0,0,62,0h81a8,8,0,0,0,0-16H135a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16Zm64-24A16,16,0,1,1,88,80,16,16,0,0,1,104,64ZM216,168H199a32,32,0,0,0-62,0H40a8,8,0,0,0,0,16h97a32,32,0,0,0,62,0h17a8,8,0,0,0,0-16Zm-48,24a16,16,0,1,1,16-16A16,16,0,0,1,168,192Z"}))],["thin",n.createElement(n.Fragment,null,n.createElement("path",{d:"M40,84H76.29a28,28,0,0,0,55.42,0H216a4,4,0,0,0,0-8H131.71a28,28,0,0,0-55.42,0H40a4,4,0,0,0,0,8Zm64-24A20,20,0,1,1,84,80,20,20,0,0,1,104,60ZM216,172H195.71a28,28,0,0,0-55.42,0H40a4,4,0,0,0,0,8H140.29a28,28,0,0,0,55.42,0H216a4,4,0,0,0,0-8Zm-48,24a20,20,0,1,1,20-20A20,20,0,0,1,168,196Z"}))]]),Tn=n.forwardRef((a,t)=>n.createElement(ce,{ref:t,...a,weights:Lo}));Tn.displayName="ArrowSquareOutIcon";const Uo=Tn,kn=n.forwardRef((a,t)=>n.createElement(ce,{ref:t,...a,weights:Io}));kn.displayName="ArrowsOutIcon";const qo=kn,Rn=n.forwardRef((a,t)=>n.createElement(ce,{ref:t,...a,weights:Vo}));Rn.displayName="FileTextIcon";const Hn=Rn,Ln=n.forwardRef((a,t)=>n.createElement(ce,{ref:t,...a,weights:Mo}));Ln.displayName="FolderMinusIcon";const Wo=Ln,In=n.forwardRef((a,t)=>n.createElement(ce,{ref:t,...a,weights:No}));In.displayName="FolderOpenIcon";const Ko=In,Vn=n.forwardRef((a,t)=>n.createElement(ce,{ref:t,...a,weights:Oo}));Vn.displayName="ListChecksIcon";const Go=Vn,Mn=n.forwardRef((a,t)=>n.createElement(ce,{ref:t,...a,weights:Do}));Mn.displayName="MicrophoneIcon";const Qo=Mn,Nn=n.forwardRef((a,t)=>n.createElement(ce,{ref:t,...a,weights:Fo}));Nn.displayName="PencilIcon";
2const ka=Nn,On=n.forwardRef((a,t)=>n.createElement(ce,{ref:t,...a,weights:Zo}));On.displayName="ShareNetworkIcon";const Yo=On,Dn=n.forwardRef((a,t)=>n.createElement(ce,{ref:t,...a,weights:zo}));Dn.displayName="SidebarIcon";const Ra=Dn,Fn=n.forwardRef((a,t)=>n.createElement(ce,{ref:t,...a,weights:$o}));Fn.displayName="SidebarSimpleIcon";const Xo=Fn,Zn=n.forwardRef((a,t)=>n.createElement(ce,{ref:t,...a,weights:Bo}));Zn.displayName="SlidersHorizontalIcon";const Jo=Zn;var tt,xe,Y,Fe,ve,Re,dn,ei=(dn=class extends ur{constructor(t){super();B(this,ve);B(this,tt);B(this,xe);B(this,Y);B(this,Fe);D(this,tt,t.client),this.mutationId=t.mutationId,D(this,Y,t.mutationCache),D(this,xe,[]),this.state=t.state||zn(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){x(this,xe).includes(t)||(x(this,xe).push(t),this.clearGcTimeout(),x(this,Y).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){D(this,xe,x(this,xe).filter(s=>s!==t)),this.scheduleGc(),x(this,Y).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){x(this,xe).length||(this.state.status==="pending"?this.scheduleGc():x(this,Y).remove(this))}continue(){var t;return((t=x(this,Fe))==null?void 0:t.continue())??(this.state.status==="pending"?this.execute(this.state.variables):Promise.resolve())}async execute(t){var d,c,h,m,b,p,w,y,E,v,C,A,S,P,j,k,R,V;const s=()=>{ae(this,ve,Re).call(this,{type:"continue"})},r={client:x(this,tt),meta:this.options.meta,mutationKey:this.options.mutationKey},o=D(this,Fe,pr({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(T,L)=>{ae(this,ve,Re).call(this,{type:"failed",failureCount:T,error:L})},onPause:()=>{ae(this,ve,Re).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>x(this,Y).canRun(this)})),i=this.state.status==="pending",l=!o.canStart();try{if(i)s();else{ae(this,ve,Re).call(this,{type:"pending",variables:t,isPaused:l}),x(this,Y).config.onMutate&&await x(this,Y).config.onMutate(t,this,r);const L=await((c=(d=this.options).onMutate)==null?void 0:c.call(d,t,r));L!==this.state.context&&ae(this,ve,Re).call(this,{type:"pending",context:L,variables:t,isPaused:l})}const T=await o.start();return await((m=(h=x(this,Y).config).onSuccess)==null?void 0:m.call(h,T,t,this.state.context,this,r)),await((p=(b=this.options).onSuccess)==null?void 0:p.call(b,T,t,this.state.context,r)),await((y=(w=x(this,Y).config).onSettled)==null?void 0:y.call(w,T,null,this.state.variables,this.state.context,this,r)),await((v=(E=this.options).onSettled)==null?void 0:v.call(E,T,null,t,this.state.context,r)),ae(this,ve,Re).call(this,{type:"success",data:T}),T}catch(T){try{await((A=(C=x(this,Y).config).onError)==null?void 0:A.call(C,T,t,this.state.context,this,r))}catch(L){Promise.reject(L)}try{await((P=(S=this.options).onError)==null?void 0:P.call(S,T,t,this.state.context,r))}catch(L){Promise.reject(L)}try{await((k=(j=x(this,Y).config).onSettled)==null?void 0:k.call(j,void 0,T,this.state.variables,this.state.context,this,r))}catch(L){Promise.reject(L)}try{await((V=(R=this.options).onSettled)==null?void 0:V.call(R,void 0,T,t,this.state.context,r))}catch(L){Promise.reject(L)}throw ae(this,ve,Re).call(this,{type:"error",error:T}),T}finally{x(this,Fe)===o&&D(this,Fe,void 0),x(this,Y).runNext(this)}}},tt=new WeakMap,xe=new WeakMap,Y=new WeakMap,Fe=new WeakMap,ve=new WeakSet,Re=function(t){const s=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPau
2sed:!1,status:"error"}}};this.state=s(this.state),J.batch(()=>{x(this,xe).forEach(r=>{r.onMutationUpdate(t)}),x(this,Y).notify({mutation:this,type:"updated",action:t})})},dn);function zn(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ae,pe,at,un,ti=(un=class extends aa{constructor(t={}){super();B(this,Ae);B(this,pe);B(this,at);this.config=t,D(this,Ae,new Set),D(this,pe,new Map),D(this,at,0)}build(t,s,r){const o=new ei({client:t,mutationCache:this,mutationId:++ot(this,at)._,options:t.defaultMutationOptions(s),state:r});return this.add(o),o}add(t){x(this,Ae).add(t);const s=ct(t);if(typeof s=="string"){const r=x(this,pe).get(s);r?r.push(t):x(this,pe).set(s,[t])}this.notify({type:"added",mutation:t})}remove(t){if(x(this,Ae).delete(t)){const s=ct(t);if(typeof s=="string"){const r=x(this,pe).get(s);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&x(this,pe).delete(s)}}this.notify({type:"removed",mutation:t})}canRun(t){var r;const s=ct(t);if(typeof s=="string"){const o=(r=x(this,pe).get(s))==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r,o;const s=ct(t);return typeof s=="string"?((o=(r=x(this,pe).get(s))==null?void 0:r.find(i=>i!==t&&i.state.isPaused))==null?void 0:o.continue())??Promise.resolve():Promise.resolve()}clear(){J.batch(()=>{x(this,Ae).forEach(t=>{this.notify({type:"removed",mutation:t})}),x(this,Ae).clear(),x(this,pe).clear()})}getAll(){return Array.from(x(this,Ae))}find(t){const s={exact:!0,...t};return this.getAll().find(r=>wa(s,r))}findAll(t={}){return this.getAll().filter(s=>wa(t,s))}notify(t){J.batch(()=>{this.listeners.forEach(s=>{s(t)})})}resumePausedMutations(){const t=this.getAll().filter(s=>s.state.isPaused);return J.batch(()=>Promise.all(t.map(s=>s.continue().catch(fe))))}},Ae=new WeakMap,pe=new WeakMap,at=new WeakMap,un);function ct(a){var t;return(t=a.options.scope)==null?void 0:t.id}var Pe,He,X,Se,we,Ye,Kt,pn,ai=(pn=class extends aa{constructor(t,s){super();B(this,we);B(this,Pe);B(this,He);B(this,X);B(this,Se);D(this,Pe,t),this.setOptions(s),this.bindMethods(),ae(this,we,Ye).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const s=this.options;this.options=x(this,Pe).defaultMutationOptions(t),mr(this.options,s)||x(this,Pe).getMutationCache().notify({type:"observerOptionsUpdated",mutation:x(this,X),observer:this}),s!=null&&s.mutationKey&&this.options.mutationKey&&ft(s.mutationKey)!==ft(this.options.mutationKey)?this.reset():((r=x(this,X))==null?void 0:r.state.status)==="pending"&&x(this,X).setOptions(this.options)}onSubscribe(){this.listeners.size===1&&x(this,X)&&(x(this,X).addObserver(this),ae(this,we,Ye).call(this))}onUnsubscribe(){var t;this.hasListeners()||(t=x(this,X))==null||t.removeObserver(this)}onMutationUpdate(t){ae(this,we,Ye).call(this),ae(this,we,Kt).call(this,t)}getCurrentResult(){return x(this,He)}reset(){var t;(t=x(this,X))==null||t.removeObserver(this),D(this,X,void 0),ae(this,we,Ye).call(this),ae(this,we,Kt).call(this)}mutate(t,s){var r;return D(this,Se,s),(r=x(this,X))==null||r.removeObserver(this),D(this,X,x(this,Pe).getMutationCache().build(x(this,Pe),this.options)),x(this,X).addObserver(this),x(this,X).execute(t)}},Pe=new WeakMap,He=new WeakMap,X=new WeakMap,Se=new WeakMap,we=new WeakSet,Ye=function(){var s;const t=((s=x(this,X))==null?void 0:s.state)??zn();D(this,He,{...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset})},Kt=function(t){J.batch(()=>{var s,r,o,i,l,d,c,h;if(x(this,Se)&&this.hasListeners()){const m=x(this,He).variables,b=x(this,He).context,p={client:x(this,Pe),meta:this.options.meta,mutationKey:this.options.mutationKey};if((t==null?void 0:t.type)==="success"){try{(r=(s=x(this,Se)).onSuccess)==null||r.call(s,t.data,m,b,p)}catch(w){Promise.reject(w)}try{(i=(o=x(this,Se)).onSettled)==null||i.call(o,t.data,null,m,b,p)}catch(w){Promise.reject(w)}}else if((t==null?void 0:t.type)==="error"){try{(d=(l=x(this,Se)).onError)==null||d.call(l,t.error,m,b,p)}catch(w){Promise.reject(w)}try{(h=(c=x(this,Se)).onSettled)==null||h.call(c,void 0,t.error,m,b,p)}catch(w){Promise.reject(w)}}}
2this.listeners.forEach(m=>{m(x(this,He))})})},pn),ye,mn,ni=(mn=class extends aa{constructor(t={}){super();B(this,ye);this.config=t,D(this,ye,new Map)}build(t,s,r){const o=s.queryKey,i=s.queryHash??fn(o,s);let l=this.get(i);return l||(l=new hr({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(s),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(l)),l}add(t){x(this,ye).has(t.queryHash)||(x(this,ye).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const s=x(this,ye).get(t.queryHash);s&&(t.destroy(),s===t&&x(this,ye).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){J.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return x(this,ye).get(t)}getAll(){return[...x(this,ye).values()]}find(t){const s={exact:!0,...t};return this.getAll().find(r=>_a(s,r))}findAll(t={}){const s=this.getAll();return Object.keys(t).length>0?s.filter(r=>_a(t,r)):s}notify(t){J.batch(()=>{this.listeners.forEach(s=>{s(t)})})}onFocus(){J.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){J.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ye=new WeakMap,mn),U,Le,Ie,Ue,qe,Ve,We,Ke,hn,si=(hn=class{constructor(a={}){B(this,U);B(this,Le);B(this,Ie);B(this,Ue);B(this,qe);B(this,Ve);B(this,We);B(this,Ke);D(this,U,a.queryCache||new ni),D(this,Le,a.mutationCache||new ti),D(this,Ie,a.defaultOptions||{}),D(this,Ue,new Map),D(this,qe,new Map),D(this,Ve,0)}mount(){ot(this,Ve)._++,x(this,Ve)===1&&(D(this,We,gr.subscribe(async a=>{a&&(await this.resumePausedMutations(),x(this,U).onFocus())})),D(this,Ke,Ca.subscribe(async a=>{a&&(await this.resumePausedMutations(),x(this,U).onOnline())})))}unmount(){var a,t;ot(this,Ve)._--,x(this,Ve)===0&&((a=x(this,We))==null||a.call(this),D(this,We,void 0),(t=x(this,Ke))==null||t.call(this),D(this,Ke,void 0))}isFetching(a){return x(this,U).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return x(this,Le).findAll({...a,status:"pending"}).length}getQueryData(a){var s;const t=this.defaultQueryOptions({queryKey:a});return(s=x(this,U).get(t.queryHash))==null?void 0:s.state.data}ensureQueryData(a){const t=this.defaultQueryOptions(a),s=x(this,U).build(this,t),r=s.state.data;return r===void 0?this.fetchQuery(a):(a.revalidateIfStale&&s.isStaleByTime(kt(t.staleTime,s))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(a){return x(this,U).findAll(a).map(({queryKey:t,state:s})=>[t,s.data])}setQueryData(a,t,s){var l;const r=this.defaultQueryOptions({queryKey:a}),o=(l=x(this,U).get(r.queryHash))==null?void 0:l.state.data,i=fr(t,o);if(i!==void 0)return x(this,U).build(this,r).setData(i,{...s,manual:!0})}setQueriesData(a,t,s){return J.batch(()=>x(this,U).findAll(a).map(({queryKey:r})=>[r,this.setQueryData(r,t,s)]))}getQueryState(a){var s;const t=this.defaultQueryOptions({queryKey:a});return(s=x(this,U).get(t.queryHash))==null?void 0:s.state}removeQueries(a){const t=x(this,U);J.batch(()=>{t.findAll(a).forEach(s=>{t.remove(s)})})}resetQueries(a,t){const s=x(this,U);return J.batch(()=>{const r=s.findAll(a),o=new Set(r);return r.forEach(i=>{i.reset()}),this.refetchQueries({type:"active",predicate:i=>o.has(i)},t)})}cancelQueries(a,t={}){const s={revert:!0,...t},r=J.batch(()=>x(this,U).findAll(a).map(o=>o.cancel(s)));return Promise.all(r).then(fe).catch(fe)}invalidateQueries(a,t={}){return J.batch(()=>(x(this,U).findAll(a).forEach(s=>{s.invalidate()}),(a==null?void 0:a.refetchType)==="none"?Promise.resolve():this.refetchQueries({...a,type:(a==null?void 0:a.refetchType)??(a==null?void 0:a.type)??"active"},t)))}refetchQueries(a,t={}){const s={...t,cancelRefetch:t.cancelRefetch??!0},r=J.batch(()=>x(this,U).findAll(a).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,s);return s.throwOnError||(i=i.catch(fe)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(fe)}async query(a){const t=this.defaultQueryOptions(a);t.retry===void 0&&(t.retry=!1);const s=x(this,U).build(this,t),r=s.isStaleByTime(kt(t.staleTime,s))?await s.fetch(t):s.state.data,o=t.select;return o?o(r):r}fetchQuery(a){const t=this.defaultQueryOptions(a);t.retry===void 0&&(t.retry=!1);const s=x(this,U).build(this,t);return s.isStaleByTime(kt(t.staleTime,s))?s.fetch(t):Promise.resolve(s.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(fe).catch(fe)}infiniteQuery(a){return a._type="infinite",this.query(a)}fetchInfiniteQuery(a){return a._type="infinite",this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(fe).catch(fe)}ensureInfiniteQueryData(a){return a._type="infinite",this.ensureQueryData(a)}resumePausedMutations(){return Ca.isOnline()?x(this,Le).resumePausedMutations():Promise.resolve()}getQueryCache(){return x(this,U)}getMutationCache(){return x(this,Le)}getDefaultOptions(){return x(this,Ie)}setDefaultOptions(a){D(this,Ie,a)}setQueryDefaults(a,t){x(this,Ue).set(ft(a),{queryKey:a,defaultOptions:t})}getQueryDefaults(a){const t=[...x(this,Ue).values()],s={};return t.forEach(r=>{ja(a,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(a,t){x(this,qe).set(ft(a),{mutationKey:a,defaultOptions:t})}getMutationDefaults(a){const t=[...x(this,qe).values()],s={};return t.forEach(r=>{ja(a,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(a){if(a._defaulted)return a;const t={...x(this,Ie).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return t.queryHash||(t.queryHash=fn(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===xr&&(t.enabled=!1),t}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...x(this,Ie).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){x(this,U).clear(),x(this,Le).clear()}},U=new WeakMap,Le=new WeakMap,Ie=new WeakMap,Ue=new WeakMap,qe=new WeakMap,Ve=new WeakMap,We=new WeakMap,Ke=new WeakMap,hn);function $n(a,t){const s=_t(),[r]=n.useState(()=>new ai(s,a));n.useEffect(()=>{r.setOptions(a)},[r,a]);const o=n.useSyncExternalStore(n.useCallback(l=>r.subscribe(J.batchCalls(l)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=n.useCallback((...l)=>{r.mutate(l[0],l[1]).catch(fe)},[r]);if(o.error&&vr(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:i,mutateAsync:o.mutate}}function ri(a){var t,s;return((t=a==null?void 0:a.app_metadata)==null?void 0:t.role)==="admin"||((s=a==null?void 0:a.app_metadata)==null?void 0:s.is_admin)===!0}async function oi(){var s,r;const{data:a,error:t}=await re.functions.invoke("editorial-admin",{body:{resource:"access",action:"verify"}}).catch(()=>({data:null,error:!0}));return t?((r=t==null?void 0:t.context)==null?void 0:r.status)===400:((s=a==null?void 0:a.data)==null?void 0:s.allowed)===!0}function Bn(){const[a,t]=n.useState("checking");return n.useEffect(()=>{let s=!0,r=0;const o=async()=>{const l=++r;t("checking");const{data:d,error:c}=await re.auth.getUser().catch(()=>({data:{user:null},error:!0}));if(!s||l!==r)return;if(c||!d.user){t("denied");return}const h=ri(d.user)||await oi();!s||l!==r||t(h?"allowed":"denied")};o();const{data:i}=re.auth.onAuthStateChange(()=>{t("checking"),++r,queueMicrotask(()=>{s&&o()})});return()=>
2{s=!1,++r,i.subscription.unsubscribe()}},[]),a}function Pu(){return Bn()==="allowed"}const ii=1,li=1e6;let Ht=0;function ci(){return Ht=(Ht+1)%Number.MAX_SAFE_INTEGER,Ht.toString()}const Lt=new Map,Ha=a=>{if(Lt.has(a))return;const t=setTimeout(()=>{Lt.delete(a),Je({type:"REMOVE_TOAST",toastId:a})},li);Lt.set(a,t)},di=(a,t)=>{switch(t.type){case"ADD_TOAST":return{...a,toasts:[t.toast,...a.toasts].slice(0,ii)};case"UPDATE_TOAST":return{...a,toasts:a.toasts.map(s=>s.id===t.toast.id?{...s,...t.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=t;return s?Ha(s):a.toasts.forEach(r=>{Ha(r.id)}),{...a,toasts:a.toasts.map(r=>r.id===s||s===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...a,toasts:[]}:{...a,toasts:a.toasts.filter(s=>s.id!==t.toastId)}}},ut=[];let pt={toasts:[]};function Je(a){pt=di(pt,a),ut.forEach(t=>{t(pt)})}function ui({...a}){const t=ci(),s=o=>Je({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>Je({type:"DISMISS_TOAST",toastId:t});return Je({type:"ADD_TOAST",toast:{...a,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:s}}function pi(){const[a,t]=n.useState(pt);return n.useEffect(()=>(ut.push(t),()=>{const s=ut.indexOf(t);s>-1&&ut.splice(s,1)}),[a]),{...a,toast:ui,dismiss:s=>Je({type:"DISMISS_TOAST",toastId:s})}}var mi=Object.defineProperty,Z=(a,t)=>mi(a,"name",{value:t,configurable:!0}),Un="ToastProvider",[da,qn,hi]=wr("Toast"),[Wn,Su]=yn("Toast",[hi]),[gi,At]=Wn(Un),fi=Z(a=>{const{__scopeToast:t,label:s="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,announcerContainer:l,children:d}=a,[c,h]=n.useState(null),[m,b]=n.useState(0),p=n.useRef(!1);return s.trim()||console.error(`Invalid prop \`label\` supplied to \`${Un}\`. Expected non-empty \`string\`.`),e.jsx(da.Provider,{scope:t,children:e.jsx(gi,{scope:t,label:s,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:m,viewport:c,onViewportChange:h,onToastAdd:n.useCallback(()=>b(w=>w+1),[]),onToastRemove:n.useCallback(()=>b(w=>w-1),[]),isClosePausedRef:p,announcerContainer:l,children:d})})},"ToastProvider"),xi="ToastViewport",vi=["F8"],Gt="toast.viewportPause",Qt="toast.viewportResume",yi=n.forwardRef(Z(function(t,s){const{__scopeToast:r,hotkey:o=vi,label:i="Notifications ({hotkey})",...l}=t,d=At(xi,r),c=qn(r),h=n.useRef(null),m=n.useRef(null),b=n.useRef(null),p=n.useRef(null),w=Et(s,p,d.onViewportChange),y=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=d.toastCount>0;n.useEffect(()=>{const C=Z(A=>{var P;o.length!==0&&o.every(j=>A[j]||A.code===j)&&((P=p.current)==null||P.focus())},"handleKeyDown");return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[o]),n.useEffect(()=>{const C=h.current,A=p.current;if(E&&C&&A){const S=Z(()=>{if(!d.isClosePausedRef.current){const R=new CustomEvent(Gt);A.dispatchEvent(R),d.isClosePausedRef.current=!0}},"handlePause"),P=Z(()=>{if(d.isClosePausedRef.current){const R=new CustomEvent(Qt);A.dispatchEvent(R),d.isClosePausedRef.current=!1}},"handleResume"),j=Z(R=>{!C.contains(R.relatedTarget)&&P()},"handleFocusOutResume"),k=Z(()=>{C.contains(document.activeElement)||P()},"handlePointerLeaveResume");return C.addEventListener("focusin",S),C.addEventListener("focusout",j),C.addEventListener("pointermove",S),C.addEventListener("pointerleave",k),window.addEventListener("blur",S),window.addEventListener("focus",P),()=>{C.removeEventListener("focusin",S),C.removeEventListener("focusout",j),C.removeEventListener("pointermove",S),C.removeEventListener("pointerleave",k),window.removeEventListener("blur",S),window.removeEventListener("focus",P)}}},[E,d.isClosePausedRef]);const v=n.useCallback(({tabbingDirection:C})=>{const S=c().map(P=>{const j=P.ref.current,k=[j,...Xn(j)];return C==="forwards"?k:k.reverse()});return(C==="forwards"?S.reverse():S).flat()},[c]);return n.useEffect(()=>{const C=p.current;if(C){const A=Z(S=>{var k,R,V;const P=S.altKey||S.ctrlKey||S.metaKey;if(S.key==="Tab"&&!P){const T=document.activeElement,L=S.shiftKey;if(S.target===C&&L){(k=m.current)==null||k.focus();return}const Q=v({tabbingDirection:L?"backwards":"forwards"}),ee=Q.findIndex(ge=>ge===T);mt(Q.slice(ee+1))?S.preventDefault():L?(R=m.current)==null||R.focus():(V=b.current)==null||V.focus()}},"handleKeyDown");return C.addEventListener("keydown",A),()=>C.removeEventListener("keydown",A)}},[c,v]),e.jsxs(yr,{ref:h,role:"region","aria-label":i.replace("{hotkey}",y),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&e.jsx(La,{ref:m,onFocusFromOutsideViewport:()=>{const C=v({tabbingDirection:"forwards"});mt(C)}}),e.jsx(da.Slot,{scope:r,children:e.jsx(Ne.ol,{tabIndex:-1,...l,ref:w}
2)}),E&&e.jsx(La,{ref:b,onFocusFromOutsideViewport:()=>{const C=v({tabbingDirection:"backwards"});mt(C)}})]})},"ToastViewport")),bi="ToastFocusProxy",La=n.forwardRef(Z(function(t,s){const{__scopeToast:r,onFocusFromOutsideViewport:o,...i}=t,l=At(bi,r);return e.jsx(vn,{tabIndex:0,...i,ref:s,style:{position:"fixed"},onFocus:d=>{var m;const c=d.relatedTarget;!((m=l.viewport)!=null&&m.contains(c))&&o()}})},"ToastFocusProxy")),Pt="Toast",wi="toast.swipeStart",_i="toast.swipeMove",Ci="toast.swipeCancel",ji="toast.swipeEnd",Ei=n.forwardRef(Z(function(t,s){const{forceMount:r,open:o,defaultOpen:i,onOpenChange:l,...d}=t,[c,h]=xn({prop:o,defaultProp:i??!0,onChange:l,caller:Pt});return e.jsx(na,{present:r||c,children:e.jsx(Si,{open:c,...d,ref:s,onClose:()=>h(!1),onPause:xt(t.onPause),onResume:xt(t.onResume),onSwipeStart:te(t.onSwipeStart,m=>{m.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:te(t.onSwipeMove,m=>{const{x:b,y:p}=m.detail.delta;m.currentTarget.setAttribute("data-swipe","move"),m.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${b}px`),m.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:te(t.onSwipeCancel,m=>{m.currentTarget.setAttribute("data-swipe","cancel"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),m.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:te(t.onSwipeEnd,m=>{const{x:b,y:p}=m.detail.delta;m.currentTarget.setAttribute("data-swipe","end"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),m.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),m.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${b}px`),m.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),h(!1)})})})},"Toast")),[Ai,Pi]=Wn(Pt,{onClose(){}}),Si=n.forwardRef(Z(function(t,s){const{__scopeToast:r,type:o="foreground",duration:i,open:l,onClose:d,onEscapeKeyDown:c,onPause:h,onResume:m,onSwipeStart:b,onSwipeMove:p,onSwipeCancel:w,onSwipeEnd:y,...E}=t,v=At(Pt,r),C=qn(r),[A,S]=n.useState(null),P=Et(s,S),j=n.useRef(null),k=n.useRef(null),R=i||v.duration,V=n.useRef(0),T=n.useRef(R),L=n.useRef(0),{onToastAdd:oe,onToastRemove:G}=v,Q=xt(()=>{var f;(A==null?void 0:A.contains(document.activeElement))&&((f=v.viewport)==null||f.focus()),d()}),ee=n.useCallback(M=>{!M||M===1/0||(window.clearTimeout(L.current),V.current=new Date().getTime(),L.current=window.setTimeout(Q,M))},[Q]);n.useEffect(()=>{const M=v.viewport;if(M){const f=Z(()=>{ee(T.current),m==null||m()},"handleResume"),_=Z(()=>{const H=new Date().getTime()-V.current;T.current=T.current-H,window.clearTimeout(L.current),h==null||h()},"handlePause");return M.addEventListener(Gt,_),M.addEventListener(Qt,f),()=>{M.removeEventListener(Gt,_),M.removeEventListener(Qt,f)}}},[v.viewport,R,h,m,ee]),n.useEffect(()=>{l&&!v.isClosePausedRef.current&&ee(R)},[l,R,v.isClosePausedRef,ee]),n.useEffect(()=>()=>{window.clearTimeout(L.current)},[]),n.useEffect(()=>(oe(),()=>G()),[oe,G]);const ge=n.useMemo(()=>A?ua(A):null,[A]);return v.viewport?e.jsxs(e.Fragment,{children:[ge&&e.jsx(Ti,{__scopeToast:r,role:"status","aria-live":o==="foreground"?"assertive":"polite",children:ge}),e.jsx(Ai,{scope:r,onClose:Q,children:Ks.createPortal(e.jsx(da.ItemSlot,{scope:r,children:e.jsx(br,{asChild:!0,onEscapeKeyDown:te(c,M=>{C().some(_=>{var H;return(H=_.ref.current)==null?void 0:H.contains(M.target)})||Q()}),children:e.jsx(Ne.li,{tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":v.swipeDirection,...E,ref:P,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:te(t.onKeyDown,M=>{M.key==="Escape"&&(c==null||c(M.nativeEvent),M.nativeEvent.defaultPrevented||Q())}),onPointerDown:te(t.onPointerDown,M=>{M.button===0&&(j.current={x:M.clientX,y:M.clientY})}),onPointerMove:te(t.onPointerMove,M=>{if(!j.current)return;const f=M.clientX-j.current.x,_=M.clientY-j.current.y,H=!!k.current,I=["left","right"].includes(v.swipeDirection),$=["left","up"].includes(v.swipeDirection)?Math.min:Math.max,de=I?$(0,f):0,Ee=I?0:$(0,_),z=M.pointerType==="touch"?10:2,ke={x:de,y:Ee},rt={originalEvent:M,delta:ke};H?(k.current=ke,Xe(_i,p,rt,{discrete:!1})):Ia(ke,v.swipeDirection,z)?(k.current=ke,Xe(wi,b,rt,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(f)>z||Math.abs(_)>z)&&(j.current=null)}),onPointerUp:te(t.onPointerUp,M=>{const f=k.current,_=M.target;if(_.hasPointerCapture(M.pointerId)&&_.releasePointerCapture(M.pointerId),k.current=null,j.current=null,f){const H=M.currentTarget,I={originalEvent:M,delta:f};Ia(f,v.swipeDirection,v.swipeThreshold)?Xe(ji,y,I,{discrete:!0}):Xe(Ci,w,I,{discrete:!0}),H.addEventListener("click",$=>$.preventDefault(),{once:!0})}})})})}),v.viewport)})]}):null},"ToastImpl")),Ti=Z(a=>{const{__scopeToast:t,children:s,...r}=a,o=At(Pt,t),[i,l]=n.useState(!1),[d,c]=n.useState(!1);return Qn(()=>l(!0)),n.useEffect(()=>{const h=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(h)},[]),d?null:e.jsx(An,{asChild:!0,container:o.announcerContainer||void 0,children:e.jsx(vn,{...r,children:i&&e.jsxs(e.Fragment,{children:[o.label," ",s]})})})},"ToastAnnounce"),ki=n.forwardRef(Z(function(t,s){const{__scopeToast:r,...o}=t;return e.jsx(Ne.div,{...o,ref:s})},"ToastTitle")),Ri=n.forwardRef(Z(function(t,s){const{__scopeToast:r,...o}=t;return e.jsx(Ne.div,{...o,ref:s})},"ToastDescription")),Hi="ToastAction",Li=n.forwardRef(Z(function(t,s){const{altText:r,...o}=t;return r.trim()?e.jsx(Gn,{altText:r,asChild:!0,children:e.jsx(Kn,{...o,ref:s})}):(console.error(`Invalid prop \`altText\` supplied to \`${Hi}\`. Expected non-empty \`string\`.`),null)},"ToastAction")),Ii="ToastClose",Kn=n.forwardRef(Z(function(t,s){const{__scopeToast:r,...o}=t,i=Pi(Ii,r);return e.jsx(Gn,{asChild:!0,children:e.jsx(Ne.button,{type:"button",...o,ref:s,onClick:te(t.onClick,i.onClose)})})},"ToastClose")),Gn=n.forwardRef(Z(function(t,s){const{__scopeToast:r,altText:o,...i}=t;return e.jsx(Ne.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...i,ref:s})},"ToastAnnounceExclude"));function ua(a){const t=[];
2return Array.from(a.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),Yn(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const l=r.dataset.radixToastAnnounceAlt;l&&t.push(l)}else t.push(...ua(r))}}),t}Z(ua,"getAnnounceTextContent");function Xe(a,t,s,{discrete:r}){const o=s.originalEvent.currentTarget,i=new CustomEvent(a,{bubbles:!0,cancelable:!0,detail:s});t&&o.addEventListener(a,t,{once:!0}),r?Cr(o,i):o.dispatchEvent(i)}Z(Xe,"handleAndDispatchCustomEvent");var Ia=Z((a,t,s=0)=>{const r=Math.abs(a.x),o=Math.abs(a.y),i=r>o;return t==="left"||t==="right"?i&&r>s:!i&&o>s},"isDeltaInDirection");function Qn(a=()=>{}){const t=xt(a);_r(()=>{let s=0,r=0;return s=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(s),window.cancelAnimationFrame(r)}},[t])}Z(Qn,"useNextFrame");function Yn(a){return a.nodeType===a.ELEMENT_NODE}Z(Yn,"isHTMLElement");function Xn(a){const t=[],s=document.createTreeWalker(a,NodeFilter.SHOW_ELEMENT,{acceptNode:Z(r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;s.nextNode();)t.push(s.currentNode);return t}Z(Xn,"getTabbableCandidates");function mt(a){const t=document.activeElement;return a.some(s=>s===t?!0:(s.focus(),document.activeElement!==t))}Z(mt,"focusFirst");var Vi=fi,Jn=yi,es=Ei,ts=ki,as=Ri,ns=Li,ss=Kn;const Mi=Vi,rs=n.forwardRef(({className:a,...t},s)=>e.jsx(Jn,{ref:s,className:K("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",a),...t}));rs.displayName=Jn.displayName;const Ni=ra("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 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 data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),os=n.forwardRef(({className:a,variant:t,...s},r)=>e.jsx(es,{ref:r,className:K(Ni({variant:t}),a),...s}));os.displayName=es.displayName;const Oi=n.forwardRef(({className:a,...t},s)=>e.jsx(ns,{ref:s,className:K("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-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 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",a),...t}));Oi.displayName=ns.displayName;const is=n.forwardRef(({className:a,...t},s)=>e.jsx(ss,{ref:s,className:K("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",a),"toast-close":"",...t,children:e.jsx(nt,{className:"h-4 w-4"})}));is.displayName=ss.displayName;const ls=n.forwardRef(({className:a,...t},s)=>e.jsx(ts,{ref:s,className:K("text-sm font-medium",a),...t}));ls.displayName=ts.displayName;const cs=n.forwardRef(({className:a,...t},s)=>e.jsx(as,{ref:s,className:K("text-sm opacity-90",a),...t}));cs.displayName=as.displayName;function Di(){const{toasts:a}=pi();return e.jsxs(Mi,{children:[a.map(function({id:t,title:s,description:r,action:o,...i}){return e.jsxs(os,{...i,children:[e.jsxs("div",{className:"grid gap-1",children:[s&&e.jsx(ls,{children:s}),r&&e.jsx(cs,{children:r})]}),o,e.jsx(is,{})]},t)}),e.jsx(rs,{})]})}const Fi=({...a})=>e.jsx(jr,{theme:"light",className:"toaster group",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"}},...a}
2);var vt=["light","dark"],pa="(prefers-color-scheme: dark)",Zi=typeof window>"u",ds=n.createContext(void 0),zi=a=>n.useContext(ds)?a.children:n.createElement(Bi,{...a}),$i=["light","dark"],Bi=({forcedTheme:a,disableTransitionOnChange:t=!1,enableSystem:s=!0,enableColorScheme:r=!0,storageKey:o="theme",themes:i=$i,defaultTheme:l=s?"system":"light",attribute:d="data-theme",value:c,children:h,nonce:m})=>{let[b,p]=n.useState(()=>Va(o,l)),[w,y]=n.useState(()=>Va(o)),E=c?Object.values(c):i,v=n.useCallback(P=>{let j=P;if(!j)return;P==="system"&&s&&(j=Ma());let k=c?c[j]:j,R=t?qi():null,V=document.documentElement;if(d==="class"?(V.classList.remove(...E),k&&V.classList.add(k)):k?V.setAttribute(d,k):V.removeAttribute(d),r){let T=vt.includes(l)?l:null,L=vt.includes(j)?j:T;V.style.colorScheme=L}R==null||R()},[]),C=n.useCallback(P=>{let j=typeof P=="function"?P(P):P;p(j);try{localStorage.setItem(o,j)}catch{}},[a]),A=n.useCallback(P=>{let j=Ma(P);y(j),b==="system"&&s&&!a&&v("system")},[b,a]);n.useEffect(()=>{let P=window.matchMedia(pa);return P.addListener(A),A(P),()=>P.removeListener(A)},[A]),n.useEffect(()=>{let P=j=>{if(j.key!==o)return;let k=j.newValue||l;C(k)};return window.addEventListener("storage",P),()=>window.removeEventListener("storage",P)},[C]),n.useEffect(()=>{v(a??b)},[a,b]);let S=n.useMemo(()=>({theme:b,setTheme:C,forcedTheme:a,resolvedTheme:b==="system"?w:b,themes:s?[...i,"system"]:i,systemTheme:s?w:void 0}),[b,C,a,w,s,i]);return n.createElement(ds.Provider,{value:S},n.createElement(Ui,{forcedTheme:a,disableTransitionOnChange:t,enableSystem:s,enableColorScheme:r,storageKey:o,themes:i,defaultTheme:l,attribute:d,value:c,children:h,attrs:E,nonce:m}),h)},Ui=n.memo(({forcedTheme:a,storageKey:t,attribute:s,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:l,attrs:d,nonce:c})=>{let h=i==="system",m=s==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${d.map(y=>`'${y}'`).join(",")})`};`:`var d=document.documentElement,n='${s}',s='setAttribute';`,b=o?vt.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",p=(y,E=!1,v=!0)=>{let C=l?l[y]:y,A=E?y+"|| ''":`'${C}'`,S="";return o&&v&&!E&&vt.includes(y)&&(S+=`d.style.colorScheme = '${y}';`),s==="class"?E||C?S+=`c.add(${A})`:S+="null":C&&(S+=`d[s](n,${A})`),S},w=a?`!function(){${m}${p(a)}}()`:r?`!function(){try{${m}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${h})){var t='${pa}',m=window.matchMedia(t);if(m.media!==t||m.matches){${p("dark")}}else{${p("light")}}}else if(e){${l?`var x=${JSON.stringify(l)};`:""}${p(l?"x[e]":"e",!0)}}${h?"":"else{"+p(i,!1,!1)+"}"}${b}}catch(e){}}()`:`!function(){try{${m}var e=localStorage.getItem('${t}');if(e){${l?`var x=${JSON.stringify(l)};`:""}${p(l?"x[e]":"e",!0)}}else{${p(i,!1,!1)};}${b}}catch(t){}}();`;return n.createElement("script",{nonce:c,dangerouslySetInnerHTML:{__html:w}})}),Va=(a,t)=>{if(Zi)return;let s;try{s=localStorage.getItem(a)||void 0}catch{}return s||t},qi=()=>{let a=document.createElement("style");return a.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(a),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(a)},1)}},Ma=a=>(a||(a=window.matchMedia(pa)),a.matches?"dark":"light");const us={open:!1,level:0,title:"",parentTitle:""},ps=n.createContext({chatTitle:null,setChatTitle:()=>{},onNewChat:null,setOnNewChat:()=>{},onBack:null,setOnBack:()=>{},onEditAgent:null,setOnEditAgent:()=>{},artifactState:us,setArtifactState:()=>{},onCloseArtifact:null,setOnCloseArtifact:()=>{},onNavigateBackArtifact:null,setOnNavigateBackArtifact:()=>{},onReopenArtifact:null,setOnReopenArtifact:()=>{},chatWidthPx:0,setChatWidthPx:()=>{},taskListWidthPx:240,setTaskListWidthPx:()=>{},artifactWidthPercent:50,setArtifactWidthPercent:()=>{},taskCollapsed:!1,setTaskCollapsed:()=>{},onToggleTaskCollapse:null,setOnToggleTaskCollapse:()=>{}});function Wi({children:a}){const[t,s]=n.useState(null),[r,o]=n.useState(null),[i,l]=n.useState(null),[d,c]=n.useState(null),[h,m]=n.useState(us),[b,p]=n.useState(null),[w,y]=n.useState(null),[E,v]=n.useState(null),[C,A]=n.useState(0),[S,P]=n.useState(240),[j,k]=n.useState(50),[R,V]=n.useState(!1),[T,L]=n.useState(null);return e.jsx(ps.Provider,{value:{chatTitle:t,setChatTitle:s,onNewChat:r,setOnNewChat:o,onBack:i,setOnBack:l,onEditAgent:d,setOnEditAgent:c,artifactState:h,setArtifactState:m,onCloseArtifact:b,setOnCloseArtifact:p,onNavigateBackArtifact:w,setOnNavigateBackArtifact:y,onReopenArtifact:E,setOnReopenArtifact:v,chatWidthPx:C,setChatWidthPx:A,taskListWidthPx:S,setTaskListWidthPx:P,artifactWidthPercent:j,setArtifactWidthPercent:k,taskCollapsed:R,setTaskCollapsed:V,onToggleTaskCollapse:T,setOnToggleTaskCollapse:L}
2,children:a})}function Ki(){return n.useContext(ps)}const Ze={gradients:{sageHaze:{name:"Sage Haze",card:"linear-gradient(158deg, #D0D8CC 0%, #E4ECD8 50%, #ECF0DC 100%)",bubble:"radial-gradient(circle at 62% 38%, #E8F0DC, #B8CCA8 28%, #8CB898 55%, #A8C8B0 100%)",ink:"#3A4A3A",seed:2},duskRose:{name:"Dusk Rose",card:"linear-gradient(145deg, #E0D0E0 0%, #F4D0C4 50%, #E8D0D8 100%)",bubble:"radial-gradient(circle at 38% 38%, #F8D8E8, #E898C0 28%, #C870A8 55%, #9868C8 100%)",ink:"#5A3A4A",seed:7},aurora:{name:"Aurora",card:"linear-gradient(150deg, #C8DCD8 0%, #E4D8E4 45%, #F0DDD0 100%)",bubble:"radial-gradient(circle at 60% 35%, #D8F0EC, #70D8C0 28%, #88C0E8 58%, #C0A8F0 100%)",ink:"#3A5A58",seed:14},mist:{name:"Mist",card:"linear-gradient(155deg, #DCE8EC 0%, #F2EDE8 50%, #D8E4EA 100%)",bubble:"radial-gradient(circle at 40% 62%, #E0EEF4, #98C8DC 32%, #B8D8EC 60%, #D8E8F4 100%)",ink:"#3A4A50",seed:21},blueDusk:{name:"Blue Dusk",card:"linear-gradient(160deg, #D4E0EA 0%, #F0E4D8 50%, #D8E0EA 100%)",bubble:"radial-gradient(circle at 55% 35%, #E0ECF8, #90B8D8 30%, #A8C8E8 58%, #D8C8E0 100%)",ink:"#3A4A5A",seed:33}},categoryGradient:{"Seasonal Calendar":"sageHaze",Copywriter:"mist","Image Generator":"aurora","Social Asset Creator":"aurora","Video Script Creator":"duskRose","Retention Engine":"blueDusk","Inventory Manager":"sageHaze","Post-Purchase":"aurora","Ops Pilot":"mist",Campaign:"duskRose",Analytics:"blueDusk",Ads:"sageHaze",WhatsApp:"aurora","Email / CRM":"mist"}},Na={"seasonal-calendar":"Seasonal Calendar",copywriter:"Copywriter","image-generator":"Image Generator","social-content":"Social Asset Creator","video-script":"Video Script Creator","retention-engine":"Retention Engine",inventory:"Inventory Manager","post-purchase":"Post-Purchase","ops-pilot":"Ops Pilot",campaign:"Campaign",ads:"Ads",whatsapp:"WhatsApp"};function ms(a){return Ze.categoryGradient[a]?a:Na[a]?Na[a]:Object.keys(Ze.categoryGradient).find(s=>Oa(s)===Oa(a))??a}function Tu(a){const t=ms(a),s=Ze.categoryGradient[t]??"mist";return Ze.gradients[s]??Ze.gradients.mist}function Oa(a){return a.toLowerCase().replace(/\s+/g,"-").replace(/[^a-z0-9-]/g,"")}const Gi={sageHaze:"3.2s",duskRose:"3.7s",aurora:"2.9s",mist:"3.5s",blueDusk:"3.1s"};function Qi(a){const t=ms(a);return Ze.categoryGradient[t]??"mist"}function Yi({skillName:a,size:t=44,animated:s=!0}){const r=Qi(a),o=Ze.gradients[r],i=`snew-f-${r}`,l=Gi[r]??"3.2s";return e.jsxs("div",{style:{width:t,height:t,borderRadius:"50%",position:"relative",flexShrink:0,animation:s?`snew-float ${l} ease-in-out infinite`:void 0},children:[e.jsx("div",{style:{position:"absolute",inset:0,borderRadius:"50%",background:o.bubble,filter:`url(#${i})`,opacity:.35}}),e.jsx("div",{style:{position:"absolute",inset:0,borderRadius:"50%",background:o.bubble},children:e.jsx("div",{style:{position:"absolute",top:"12%",left:"20%",width:"45%",height:"35%",borderRadius:"50%",background:"radial-gradient(ellipse at 50% 50%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.1) 60%, transparent 100%)",transform:"rotate(-15deg)",pointerEvents:"none"}})}),e.jsx("div",{style:{position:"absolute",inset:-1,borderRadius:"50%",border:"1px solid rgba(255,255,255,0.25)",pointerEvents:"none"}})]})}const hs=n.createContext({skill:null,setSkill:()=>{}});function Xi({children:a}){const[t,s]=n.useState(null);return e.jsx(hs.Provider,{value:{skill:t,setSkill:s},children:a})}function Ji(){return n.useContext(hs)}const Yt=[{id:"cart-recovery-overnight",title:"3 carrinhos recuperados esta madrugada",status:"done",time:"há 4h",attachedFile:null},{id:"skill-copywriter",title:"Copies geradas para 6 canais",status:"done",time:"há 13 min",attachedFile:null},{id:"skill-video-script",title:"Reels emocional aguardando aprovação",status:"pending",time:"há 28 min",attachedFile:null},{id:"skill-inventory",title:"Reposição Body Comfy aprovada",status:"done",time:"há 1h",attachedFile:null},{id:"skill-retention",title:"Sequência WhatsappLogo ativada para VIPs",status:"done",time:"há 2h",attachedFile:null},{id:"skill-post-purchase",title:"Review negativo respondido no Google",status:"done",time:"há 3h",attachedFile:null},{id:"skill-image-generator",title:"Assets visuais gerados",status:"done",time:"ontem",attachedFile:null}];function el({status:a}){return a==="done"?e.jsx(st,{size:14,strokeWidth:2.5,className:"text-muted-foreground shrink-0"}):a==="running"?e.jsx("div",{className:"shrink-0",style:{width:8,height:8,borderRadius:"50%",background:"hsl(var(--primary))",animation:"snew-pulse 1.5s ease-in-out infinite"}}):e.jsx("div",{className:"shrink-0",style:{width:8,height:8,borderRadius:"50%",border:"1.5px solid hsl(var(--muted-foreground))"}})}function tl({task:a,isActive:t,onSelect:s}){const[r,o]=n.useState(!1);return e.jsxs("div",{onMouseEnter:()=>o(!0),onMouseLeave:()=>o(!1),onClick:s,style:{display:"flex",alignItems:"center",gap:N[2],padding:"7px 12px",cursor:"pointer",background:t||r?"hsl(var(--accent))":"transparent",transition:"background 0.1s",boxSizing:"border-box",width:"100%"},children:[e.jsx("div",{style:{width:16,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:e.jsx(el,{status:a.status})}),e.jsx("span",{style:{flex:1,minWidth:0,fontSize:13,lineHeight:1.4,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:t?"hsl(var(--foreground))":"hsl(var(--muted-foreground))",fontWeight:t?500:400},children:a.title}),a.attachedFile&&e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:3,padding:"2px 6px",borderRadius:4,fontSize:10,flexShrink:0,maxWidth:100,border:"1px solid hsl(var(--border))",color:"hsl(var(--muted-foreground))"}
2,children:[e.jsx(Hn,{size:10,className:"shrink-0"}),e.jsx("span",{style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:a.attachedFile})]}),e.jsx("span",{style:{fontSize:11,color:"hsl(var(--muted-foreground))",flexShrink:0,whiteSpace:"nowrap",minWidth:52,textAlign:"right"},children:a.time}),e.jsx("div",{style:{width:20,flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center"},children:r&&e.jsx("button",{onClick:i=>{i.stopPropagation()},style:{width:20,height:20,borderRadius:4,border:"none",background:"transparent",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:"hsl(var(--muted-foreground))"},children:e.jsx(Wt,{size:12})})})]})}function ku({activeChatId:a,onSelect:t,collapsed:s}){return e.jsx("div",{className:"flex flex-col h-full",style:{overflow:"hidden"},children:!s&&e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{padding:"10px 12px 8px"},children:e.jsxs("div",{style:{display:"flex",alignItems:"center",borderRadius:10,padding:"8px 12px",gap:N[2],border:"1px solid hsl(var(--border))",background:"hsl(var(--background))"},children:[e.jsx("span",{style:{fontSize:13,flex:1,color:"hsl(var(--muted-foreground))"},children:"Iniciar uma tarefa"}),e.jsx("button",{style:{width:24,height:24,borderRadius:Ge.sm,border:"none",background:"transparent",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:"hsl(var(--muted-foreground))"},children:e.jsx(Qo,{size:14})})]})}),e.jsx("div",{style:{flex:1,overflowY:"auto",padding:"0 4px"},children:Yt.map(r=>e.jsx(tl,{task:r,isActive:r.id===a,onSelect:()=>t(r.id)},r.id))})]})})}function al(){return Yt.find(t=>t.status==="running")??Yt[0]}function nl({onToggleCollapse:a,collapsed:t}){const{lang:s,setLang:r,t:o}=le(),{chatTitle:i,onNewChat:l,onBack:d,onEditAgent:c,artifactState:h,onCloseArtifact:m,onNavigateBackArtifact:b,onReopenArtifact:p,chatWidthPx:w,taskListWidthPx:y,taskCollapsed:E,onToggleTaskCollapse:v}=Ki(),{skill:C}=Ji(),[A,S]=n.useState(!1),[P,j]=n.useState(!1),[k,R]=n.useState(!1),V=Me();al();const T=h.open,L="w-8 h-8 flex items-center justify-center rounded-md text-muted-foreground hover:text-foreground hover:bg-accent transition-colors",oe=location.pathname.startsWith("/chat/")||location.pathname.startsWith("/new-chat"),G=C?e.jsxs("div",{className:"flex items-center gap-2.5 flex-1 min-w-0",children:[e.jsxs("button",{onClick:()=>V(C.backPath??"/skills"),className:"flex items-center gap-1 text-xs transition-colors shrink-0 mr-0.5",style:{color:"hsl(var(--muted-foreground))"},children:[e.jsx(Ea,{className:"w-3.5 h-3.5"}),"Back"]}),e.jsx("div",{className:"w-6 h-6 rounded-full flex items-center justify-center shrink-0",children:e.jsx(Yi,{skillName:C.name,size:24,animated:!1})}),e.jsx("span",{className:"text-sm font-medium text-foreground truncate",children:C.name}),C.isActive!==!1&&e.jsxs("span",{className:"flex items-center gap-1 rounded-full px-2 py-0.5 shrink-0",style:{fontSize:11,fontWeight:500,background:"hsl(var(--green-bg))",color:"hsl(var(--green))"},children:[e.jsx(st,{className:"w-3 h-3"}),"Active"]})]}):i?e.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0",children:[d&&!T&&e.jsx("button",{onClick:d,className:"w-8 h-8 flex items-center justify-center rounded-lg text-muted-foreground hover:text-foreground hover:bg-accent transition-colors",children:e.jsx(Ut,{className:"w-4 h-4 rotate-90"})}),e.jsxs("div",{className:"relative min-w-0",children:[e.jsxs("button",{onClick:()=>R(f=>!f),className:"flex items-center gap-1 h-8 px-2 rounded-lg text-xs font-medium text-foreground hover:bg-accent transition-colors max-w-[280px]",children:[e.jsx("span",{className:"truncate max-w-[240px]",children:i}),e.jsx(Ut,{className:`w-3 h-3 text-muted-foreground shrink-0 transition-transform duration-200 ${k?"rotate-180":""}`})]}),k&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>R(!1)}),e.jsx("div",{className:"absolute left-0 top-[calc(100%+6px)] z-50 w-48 bg-background border border-border rounded-xl shadow-lg overflow-hidden py-1",children:c?e.jsxs("button",{onClick:()=>{c(),R(!1)},className:"w-full flex items-center gap-3 px-3 py-2.5 text-xs text-foreground hover:bg-accent transition-colors text-left",children:[e.jsx(ka,{className:"w-3.5 h-3.5 text-muted-foreground shrink-0"}),o.topBarEditCoworker]}):e.jsxs(e.Fragment,{children:[[{icon:Er,label:o.topBarFavorite,action:()=>{}},{icon:ka,label:o.topBarRename,action:()=>{}},{icon:Ko,label:o.topBarMoveProject,action:()=>{}},{icon:Wo,label:o.topBarRemoveProject,action:()=>{}}].map(({icon:f,label:_,action:H})=>e.jsxs("button",{onClick:()=>{H(),R(!1)},className:"w-full flex items-center gap-3 px-3 py-2.5 text-xs text-foreground hover:bg-accent transition-colors text-left",children:[e.jsx(f,{className:"w-3.5 h-3.5 text-muted-foreground shrink-0"}),_]},_)),e.jsx("div",{className:"my-1 border-t border-border"}),e.jsxs("button",{onClick:()=>{l==null||l(),R(!1)},className:"w-full flex items-center gap-3 px-3 py-2.5 text-xs text-destructive hover:bg-accent transition-colors text-left",children:[e.jsx(To,{className:"w-3.5 h-3.5 shrink-0"}),o.topBarDelete]})]})})]})]})]}):e.jsx("div",{className:"flex-1"}),Q=null,ee="flex items-center gap-1.5 px-2.5 py-1 rounded-full border border-border bg-secondary text-muted-foreground text-xs cursor-pointer shrink-0 hover:bg-accent transition-colors",ge="flex items-center gap-1.5 px-3.5 py-1.5 rounded-full border border-border bg-background text-foreground text-[13px] font-medium cursor-pointer shrink-0 hover:bg-accent transition-colors",M=oe&&!T&&p?e.jsx("button",{onClick:()=>p(),style:{width:28,height:28,borderRadius:Ge.sm,border:"1px solid hsl(var(--border))",background:"transparent",display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",color:"hsl(var(--muted-foreground))",flexShrink:0},title:"Abrir artifact",children:e.jsx(Xo,{size:14})}):null;return oe?e.jsxs("header",{className:"h-[48px] flex shrink-0 bg-background",style:{borderBottom:"none"},children:[!E&&e.jsxs("div",{className:"flex items-center min-w-0",style:{flex:"0 0 40%",borderRight:"1px solid hsl(var(--border))",borderBottom:"1px solid hsl(var(--border))",padding:"0 12px",gap:N[1]},children:[e.jsx("span",{style:{fontSize:14,fontWeight:500,flex:1,color:"hsl(var(--foreground))"},children:"Tarefas"}),e.jsx("button",{className:"w-[28px] h-[28px] rounded-md border-none bg-transparent flex items-center justify-center cursor-pointer text-muted-foreground hover:text-foreground hover:bg-accent transition-colors shrink-0",children:e.jsx(Ar,{size:15})}),e.jsx("button",{className:"w-[28px] h-[28px] rounded-md border-none bg-transparent flex items-center justify-center cursor-pointer text-muted-foreground hover:text-foreground hover:bg-accent transition-colors shrink-0",children:e.jsx(Jo,{size:15})})]}),e.jsxs("div",{className:"flex items-stretch flex-1 min-w-0",style:{borderBottom:"1px solid hsl(var(--border))"},children:[e.jsxs("div",{className:"flex items-center min-w-0",style:{width:T&&w>0?w:"100%",flexShrink:0,padding:"0 16px",gap:6},children:[e.jsx("button",{onClick:()=>v==null?void 0:v(),className:"w-[28px] h-[28px] rounded-md border-none bg-transparent flex items-center justify-center cursor-pointer text-muted-foreground hover:text-foreground hover:bg-accent transition-colors shrink-0",title:E?"Expandir tarefas":"Colapsar tarefas",children:E?e.
2jsx(Ra,{size:15}):e.jsx(Ra,{size:15})}),G,i&&e.jsxs("div",{className:"flex items-center gap-1 shrink-0 ml-auto",children:[e.jsx("button",{className:L,children:e.jsx(Wt,{size:15})}),e.jsxs("button",{className:ee,children:[e.jsx(Hn,{size:12}),e.jsx("span",{children:"3"})]}),e.jsxs("button",{className:ee,children:[e.jsx(bn,{size:12}),e.jsx("span",{children:"2.4k"})]}),e.jsxs("button",{className:ee,children:[e.jsx(Go,{size:12}),e.jsx("span",{children:"Tarefa"})]}),e.jsxs("button",{className:ge,children:[e.jsx(Yo,{size:13}),"Compartilhar"]}),M]})]}),T&&!C&&e.jsxs("div",{className:"flex items-center px-3 shrink-0",style:{flex:1,borderLeft:"1px solid hsl(var(--border))",background:"var(--artifact-bg, #f7f6f3)"},children:[h.level>=2&&e.jsxs("div",{className:"flex items-center gap-1.5 flex-1 min-w-0 mr-2",children:[e.jsx("button",{onClick:()=>b==null?void 0:b(),className:L,children:e.jsx(Ea,{className:"w-4 h-4"})}),e.jsx("span",{className:"text-xs text-muted-foreground truncate",children:h.parentTitle}),e.jsx("span",{className:"text-xs text-muted-foreground/40 shrink-0",children:"/"}),e.jsx("span",{className:"text-xs font-medium text-foreground truncate",children:h.title})]}),h.level<2&&e.jsx("div",{className:"flex-1"}),e.jsxs("div",{className:"flex items-center gap-0.5 shrink-0",children:[e.jsx("button",{className:L,children:e.jsx(Uo,{size:15})}),e.jsx("button",{className:L,children:e.jsx(ko,{size:15})}),e.jsx("button",{className:L,children:e.jsx(Wt,{size:15})}),e.jsx("button",{className:L,children:e.jsx(qo,{size:15})}),e.jsx("div",{className:"mx-1",style:{width:1,height:20,background:"hsl(var(--border))"}}),e.jsx("button",{onClick:()=>m==null?void 0:m(),className:L,children:e.jsx(nt,{size:15})})]})]})]})]}):e.jsx("header",{className:"h-[48px] flex shrink-0 bg-background",style:{borderBottom:"none"},children:e.jsxs("div",{className:"flex items-center px-3.5 min-w-0 gap-1 flex-1",children:[G,Q]})})}const It=768;function sl(){const[a,t]=n.useState(void 0);return n.useEffect(()=>{const s=window.matchMedia(`(max-width: ${It-1}px)`),r=()=>{t(window.innerWidth<It)};return s.addEventListener("change",r),t(window.innerWidth<It),()=>s.removeEventListener("change",r)},[]),!!a}const Da=a=>a.startsWith("/chat/")||a.startsWith("/new-chat")||a.startsWith("/tasks"),Fa="sidebar_collapsed";function rl(a){try{return localStorage.getItem(a)}catch{return null}}function ol(a,t){try{localStorage.setItem(a,t)}catch{}}function Za({children:a}){const[t,s]=n.useState(!1),[r,o]=n.useState(()=>{const C=rl(Fa);return C===null?!0:C==="true"}),i=sl(),l=_e();l.pathname.startsWith("/onboarding");const d=l.pathname.startsWith("/installed/"),c=l.pathname.startsWith("/skills/"),h=Da(l.pathname),m=l.pathname.startsWith("/settings"),b=l.pathname.startsWith("/assets-history"),p=l.pathname.startsWith("/brand-dna")||l.pathname==="/settings/brand-dna",w=d||c||h||m||b||p,y=m,E=l.pathname==="/brand-dna"||l.pathname==="/settings/brand-dna";n.useEffect(()=>(document.body.classList.toggle("settings-white-chrome",m),()=>document.body.classList.remove("settings-white-chrome")),[m]);const v=()=>{o(C=>{const A=!C;return ol(Fa,String(A)),A})};return e.jsxs("div",{className:"flex h-screen w-full overflow-hidden",children:[i&&t&&e.jsx("div",{className:"fixed inset-0 z-40 bg-black/30 backdrop-blur-sm",onClick:()=>s(!1)}),m&&e.jsx(fo,{}),!y&&e.jsx("div",{className:` 3 ${i?`fixed inset-y-0 left-0 z-50 transition-transform duration-300 ${t?"translate-x-0":"-translate-x-full"}`:`${E?"absolute top-0 left-0 z-40":"relative shrink-0"}`} 4 `,children:E&&!i?e.jsx(xo,{}):e.jsx(vo,{onClose:()=>s(!1),collapsed:i?!1:r,onToggleCollapse:i?void 0:v,compact:E})}),e.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden min-w-0",children:[i&&!y&&e.jsx("button",{onClick:()=>s(!0),className:"absolute top-4 left-4 z-30 w-9 h-9 flex items-center justify-center rounded-lg bg-background border border-border shadow-sm","aria-label":"Open menu",children:e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2 4h12M2 8h12M2 12h12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})})}),!w&&e.jsx(nl,{onToggleCollapse:i?void 0:v,collapsed:r}),e.jsx("main",{className:`flex-1 ${Da(l.pathname)||c?"overflow-hidden":"overflow-auto"} ${c?"h-full":""}`,style:{display:"flex",flexDirection:"column",background:m?`hsl(${se.bg.tertiary})`:void 0},children:e.jsx("div",{style:{width:"100%",maxWidth:m?"none":Pr.contentMaxWidth,minHeight:0,flex:1,margin:"0 auto",display:"flex",flexDirection:"column"},children:a})})]})]})}function Vt(a){try{return a.split("?")[0]}catch{return a}}const gs=n.createContext(null);function il({children:a}){const[t,s]=n.useState({}),[r,o]=n.useState(!0),i=n.useCallback(async()=>{const{data:c}=await re.from("coworker_avatars").select("coworker_id, avatar_url, updated_at");if(c){const h={};
4c.forEach(m=>{const b=Vt(m.avatar_url),p=m.updated_at?new Date(m.updated_at).getTime():Date.now();h[m.coworker_id]=`${b}?v=${p}`}),s(h)}o(!1)},[]);n.useEffect(()=>{i()},[i]);const l=n.useCallback(async(c,h)=>{var y;const m=((y=h.name.split(".").pop())==null?void 0:y.toLowerCase())??"jpg",b=`${c}.${m}`;let p;try{p=(await it({resource:"storage",action:"upload",bucket:"coworker-avatars",path:b,base64:await Sr(h),contentType:h.type,upsert:!0})).publicUrl}catch(E){return console.error(E),null}const w=Vt(p);return await it({resource:"table",action:"upsert",table:"coworker_avatars",rows:{coworker_id:c,avatar_url:w},onConflict:"coworker_id"}),s(E=>({...E,[c]:`${w}?t=${Date.now()}`})),w},[]),d=n.useCallback(async(c,h)=>{const m=Vt(h).split("/").pop();m&&await it({resource:"storage",action:"remove",bucket:"coworker-avatars",paths:[m]}),await it({resource:"table",action:"delete",table:"coworker_avatars",match:{coworker_id:c}}),s(b=>{const p={...b};return delete p[c],p})},[]);return e.jsx(gs.Provider,{value:{avatars:t,loading:r,uploadAvatar:l,removeAvatar:d,refetch:i},children:a})}function Ru(){const a=n.useContext(gs);if(!a)throw new Error("useAvatars must be used within AvatarProvider");return a}const Mt={dateSlug:null,selectedConceptId:null,selectedConceptSlogan:null,campaignPrompt:"",completedSteps:new Set([1])},ll=n.createContext(null);function cl({children:a}){const[t,s]=n.useState(Mt),r=n.useCallback(c=>{s(h=>h.dateSlug===c?h:{...Mt,dateSlug:c})},[]),o=n.useCallback((c,h)=>{s(m=>({...m,selectedConceptId:c,selectedConceptSlogan:h}))},[]),i=n.useCallback(c=>{s(h=>({...h,campaignPrompt:c}))},[]),l=n.useCallback(c=>{s(h=>({...h,completedSteps:new Set([...h.completedSteps,c])}))},[]),d=n.useCallback(c=>{s({...Mt,dateSlug:c})},[]);return e.jsx(ll.Provider,{value:{state:t,setDate:r,selectConcept:o,setCampaignPrompt:i,completeStep:l,resetForDate:d},children:a})}const dl=15e3;function ul(){const{user:a,loading:t,initialized:s,error:r}=Ce(),o=Me(),i=n.useRef(!1),[l,d]=n.useState(!1);return n.useEffect(()=>{const c=window.setTimeout(()=>d(!0),dl);return()=>window.clearTimeout(c)},[]),n.useEffect(()=>{if(!i.current&&s){if(a&&!t){if(i.current=!0,!a.fullName){o("/auth/create-account",{replace:!0});return}if(sessionStorage.getItem(Aa)){o(Tr(sessionStorage),{replace:!0});return}if(Ct(o))return;kr(a).then(c=>{o(c,{replace:!0})});return}!t&&!a&&(l||r)&&(i.current=!0,sessionStorage.removeItem(Aa),o("/signin?error=oauth",{replace:!0}))}},[a,t,s,l,r,o]),e.jsx(Gs,{label:Qs()})}const pl=["/style-thumbnails/8740e351c5b79ff051ad.jpg","/style-thumbnails/2c058a4c68caa54b5511.jpg","/style-thumbnails/8ce30bf8ba48a75fb276.png","/style-thumbnails/8064b9851a60a5375809.jpg","/style-thumbnails/a16e6db5a090fce68d5c.png","/style-thumbnails/c092404c0297a93ad588.jpg"],yt=6,fs="style",xs="__auth_visuals__",ml=a=>typeof a=="string"&&(/^https?:\/\//.test(a)||a.startsWith("/"));function vs(a){return Array.isArray(a)?[...new Set(a.filter(ml))].slice(0,yt):[]}function hl(){var t;const a=Rr(fs,xs);return vs((t=a==null?void 0:a.data)==null?void 0:t.images)}function za(){const a=hl();return a.length===yt?a:[...pl]}async function Hu(a){const t=vs(a);if(a&&t.length!==yt)throw new Error(`Escolha exatamente ${yt} imagens.`);await Hr(fs,xs,t.length?{images:t}:{})}const gl=4400,Nt=1600,fl=()=>{const a=n.useRef(null),t=n.useRef([]),[s,r]=n.useState(za);return n.useEffect(()=>{const o=()=>{const l=za();r(d=>d.length===l.length&&d.every((c,h)=>c===l[h])?d:l)},i=Lr(o);return Ir().then(o).catch(()=>{}),()=>{i()}},[]),n.useEffect(()=>{const o=a.current,i=t.current;if(!o||!i[0]||!i[1]||window.matchMedia("(prefers-reduced-motion: reduce)").matches||window.matchMedia("(max-width: 900px)").matches)return;const l=Ro({host:o,zIndex:1,duration:Nt,pixelMask:!0,maxTexture:960});if(!l)return;let d=0,c=0,h=!1,m=0;s.slice(0,2).forEach(y=>l.warm(y));let b=!1;const p=()=>{if(document.hidden||h||l.busy())return;const y=(d+1)%s.length,E=s[y],v=i[c],C=c===0?1:0,A=i[C];if(!v||!A)return;h=!0,A.src=E,(A.complete?Promise.resolve():A.decode().catch(()=>{})).then(()=>
4{if(!(b||!o.isConnected)){if(!A.naturalWidth){h=!1;return}m=window.setTimeout(()=>{h=!1},Nt+2e3),l.run({el:v,from:s[d],to:E,scale:1.04,duration:Nt,onDone:()=>{window.clearTimeout(m),A.style.opacity="1",v.style.opacity="0",c=C,d=y,h=!1}})}})},w=window.setInterval(p,gl);return()=>{b=!0,window.clearInterval(w),window.clearTimeout(m),l.destroy()}},[s]),e.jsx("div",{ref:a,"aria-hidden":!0,style:{position:"absolute",inset:0,overflow:"hidden",background:"hsl(var(--muted))",pointerEvents:"none"},children:[0,1].map(o=>e.jsx("img",{ref:i=>{t.current[o]=i},src:s[o],alt:"",decoding:"async",draggable:!1,style:{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover",objectPosition:"center",display:"block",opacity:o===0?1:0,transform:"scale(1.04)"}},`${s[0]}-${o}`))})},ys=({children:a,title:t,subtitle:s})=>(n.useEffect(()=>{document.title=`${t} â Snew`},[t]),e.jsxs("div",{className:"auth-split",children:[e.jsx("style",{children:` 5 .auth-split { 6 display: flex; 7 min-height: 100vh; 8 background: #FFFFFF; 9 } 10 .auth-split-visual { 11 position: relative; 12 flex: 1 1 50%; 13 overflow: hidden; 14 } 15 .auth-split-form { 16 flex: 1 1 50%; 17 display: flex; 18 align-items: center; 19 justify-content: center; 20 padding: var(--snew-space-6); 21 } 22 @media (max-width: 900px) { 23 .auth-split-visual { display: none; } 24 .auth-split-form { flex-basis: 100%; } 25 } 26 `}),e.jsx("div",{className:"auth-split-visual",children:e.jsx(fl,{})}),e.jsx("div",{className:"auth-split-form",children:e.jsxs("div",{style:{width:"100%",maxWidth:380,display:"flex",flexDirection:"column",gap:N[5]},children:[e.jsxs("div",{style:{textAlign:"center",marginBottom:N[3]},"data-no-translate":!0,children:[e.jsx(Sn,{to:"/landing","aria-label":"Snew home",className:"mx-auto mb-5 inline-flex rounded-xl focus-visible:outline-none focus-visible:shadow-snew-focus",children:e.jsx(Ho,{size:58})}),e.jsx("h1",{className:"font-heading",style:{fontSize:20,fontWeight:500,letterSpacing:"-0.01em",lineHeight:1.3,color:`hsl(${se.text.primary})`,margin:0},children:t}),s&&e.jsx("p",{style:{fontSize:13,color:`hsl(${se.text.tertiary})`,lineHeight:1.5,marginTop:N[2],marginBottom:0},children:s})]}),a]})})]})),bt=n.forwardRef(({className:a,type:t,...s},r)=>e.jsx("input",{type:t,className:K("flex h-10 w-full rounded-md border border-input bg-background 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",a),ref:r,...s}));bt.displayName="Input";const xl=({onSelect:a,loadingProvider:t,verb:s,loadingLabel:r})=>e.jsx("div",{className:"flex flex-col gap-2.5",children:e.jsx(vl,{onClick:()=>a("google"),loading:t==="google",icon:e.jsx(yl,{}),label:`${s} Google`,loadingLabel:r})}),vl=({onClick:a,loading:t,icon:s,label:r,loadingLabel:o})=>e.jsxs("button",{type:"button",onClick:a,disabled:t,"aria-label":r,className:"h-12 w-full inline-flex items-center justify-center gap-2.5 rounded-full border border-border bg-background text-sm font-medium text-foreground transition-colors hover:bg-muted/40 disabled:opacity-60 disabled:cursor-not-allowed",children:[s,e.jsx("span",{children:t?o??"Connecting...":r})]}),yl=()=>e.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 18 18","aria-hidden":"true",children:[e.jsx("path",{fill:"#4285F4",d:"M17.64 9.2c0-.637-.057-1.251-.164-1.84H9v3.481h4.844a4.14 4.14 0 0 1-1.796 2.716v2.258h2.908c1.702-1.567 2.684-3.874 2.684-6.615z"}),e.jsx("path",{fill:"#34A853",d:"M9 18c2.43 0 4.467-.806 5.956-2.184l-2.908-2.259c-.806.54-1.837.86-3.048.86-2.344 0-4.328-1.584-5.036-3.711H.957v2.332A8.997 8.997 0 0 0 9 18z"}),e.jsx("path",{fill:"#FBBC05",d:"M3.964 10.706A5.41 5.41 0 0 1 3.682 9c0-.593.102-1.17.282-1.706V4.962H.957A8.997 8.997 0 0 0 0 9c0 1.452.348 2.827.957 4.038l3.007-2.332z"}),e.jsx("path",{fill:"#EA4335",d:"M9 3.58c1.321 0 2.508.454 3.44 1.345l2.582-2.58C13.463.891 11.426 0 9 0A8.997 8.997 0 0 0 .957 4.962L3.964 7.294C4.672 5.167 6.656 3.58 9 3.58z"})]}),bs=n.forwardRef(({className:a,containerClassName:t,label:s,hint:r,error:o,id:i,...l},d)=>{const c=n.useId(),h=i??c,m=o?`${h}-err`:r?`${h}-hint`:void 0;return e.jsxs("div",{className:K("flex flex-col gap-1.5",t),children:[s&&e.jsx("label",{htmlFor:h,className:"text-[12px] font-medium text-snew-ink",children:s}),e.jsx("input",{ref:d,id:h,"aria-invalid":!!o||void 0,"aria-describedby":m,className:K("h-9 w-full px-3 rounded-snew-md","bg-snew-surface text-snew-ink text-[13px]","border border-snew-border","placeholder:text-snew-ink-dim","transition-colors duration-snew","hover:border-snew-border-strong","focus:outline-none focus:border-snew-border-active focus:shadow-snew-focus","disabled:opacity-40 disabled:pointer-events-none",o&&"border-[hsl(var(--color-text-danger))] focus:border-[hsl(var(--color-text-danger))]",a),...l}),o?e.jsx("p",{id:`${h}-err`,className:"text-[11px] text-[hsl(var(--color-text-danger))]",children:o}):r?e.jsx("p",{id:`${h}-hint`,className:"text-[11px] text-snew-ink-dim",children:r}):null]})});bs.displayName="SnewInput";const bl=n.forwardRef(({className:a,containerClassName:t,label:s,hint:r,error:o,id:i,rows:l=4,...d},c)=>{const h=n.useId(),m=i??h,b=o?`${m}-err`:r?`${m}-hint`:void 0;return e.jsxs("div",{className:K("flex flex-col gap-1.5",t),children:[s&&e.jsx("label",{htmlFor:m,className:"text-[12px] font-medium text-snew-ink",children:s}),e.jsx("textarea",{ref:c,id:m,rows:l,"aria-invalid":!!o||void 0,"aria-describedby":b,className:K("w-full px-3 py-2.5 rounded-snew-md","bg-snew-surface text-snew-ink text-[13px] leading-[1.55]","border border-snew-border","placeholder:text-snew-ink-dim","resize-y min-h-[88px]","transition-colors duration-snew","hover:border-snew-border-strong","focus:outline-none focus:border-snew-border-active focus:shadow-snew-focus","disabled:opacity-40 disabled:pointer-events-none",o&&"border-[hsl(var(--color-text-danger))] focus:border-[hsl(var(--color-text-danger))]",a),...d}),o?e.jsx("p",{id:`${m}-err`,className:"text-[11px] text-[hsl(var(--color-text-danger))]",children:o}):r?e.jsx("p",{id:`${m}-hint`,className:"text-[11px] text-snew-ink-dim",children:r}):null]})});bl.displayName="SnewTextarea";const wl=ra(["rounded-snew-lg border","transition-colors duration-snew"],{variants:{variant:{default:"bg-snew-surface border-snew-border",interactive:"bg-snew-surface border-snew-border cursor-pointer hover:border-snew-border-strong hover:shadow-snew-sm",muted:"bg-snew-surface-muted border-transparent"},padding:{none:"",sm:"p-3",md:"p-4",lg:"p-6"}},defaultVariants:{variant:"default",padding:"md"}}),_l=n.forwardRef(({className:a,variant:t,padding:s,...r},o)=>e.jsx("div",{ref:o,className:K(wl({variant:t,padding:s}),a),...r}));_l.displayName="SnewCard";const $a=ra(["inline-flex items-center gap-1.5","h-7 px-2.5 rounded-full","text-[11px] font-medium","border","transition-colors duration-snew","focus-visible:outline-none focus-visible:shadow-snew-focus","disabled:opacity-40 disabled:pointer-events-none"],{variants:{variant:{default:"bg-snew-surface text-snew-ink-muted border-snew-border hover:border-snew-border-strong hover:text-snew-ink",selected:"bg-snew-ink text-[hsl(var(--color-background-primary))] border-snew-ink",muted:"bg-snew-surface-muted text-snew-ink-muted border-transparent hover:bg-snew-surface-subtle"}},defaultVariants:{variant:"default"}}),Cl=n.forwardRef(({className:a,variant:t,as:s="button",type:r,...o},i)=>s==="span"?e.jsx("span",{className:K($a({variant:t}
26),"cursor-default",a),...o}):e.jsx("button",{ref:i,type:r??"button",className:K($a({variant:t}),a),...o}));Cl.displayName="SnewChip";const jl=n.forwardRef(({className:a,selected:t,disabled:s,showCheck:r=!0,media:o,title:i,description:l,children:d,...c},h)=>e.jsxs("button",{ref:h,type:"button","aria-pressed":t,disabled:s,className:K("group relative flex flex-col text-left","w-full rounded-snew-lg border bg-snew-surface","transition-colors duration-snew","focus-visible:outline-none focus-visible:shadow-snew-focus","disabled:opacity-40 disabled:pointer-events-none",t?"border-snew-border-active":"border-snew-border hover:border-snew-border-strong",a),...c,children:[o&&e.jsx("div",{className:"overflow-hidden rounded-t-snew-lg",children:o}),(i||l||d)&&e.jsxs("div",{className:"flex flex-col gap-1 p-3",children:[i&&e.jsx("div",{className:"text-[13px] font-medium text-snew-ink leading-tight",children:i}),l&&e.jsx("div",{className:"text-[11px] text-snew-ink-muted leading-snug",children:l}),d]}),t&&r&&e.jsx("span",{"aria-hidden":!0,className:"absolute top-2 right-2 inline-flex items-center justify-center w-5 h-5 rounded-full bg-snew-ink text-[hsl(var(--color-background-primary))]",children:e.jsx(st,{className:"w-3 h-3",strokeWidth:3})})]}));jl.displayName="SnewToggleCard";const El=n.forwardRef(({className:a,label:t,description:s,hint:r,error:o,required:i,htmlFor:l,children:d,...c},h)=>e.jsxs("div",{ref:h,className:K("flex flex-col gap-1.5",a),...c,children:[(t||s)&&e.jsxs("div",{className:"flex flex-col gap-0.5",children:[t&&e.jsxs("label",{htmlFor:l,className:"text-[12px] font-medium text-snew-ink leading-tight",children:[t,i&&e.jsx("span",{className:"text-[hsl(var(--color-text-danger))] ml-0.5",children:"*"})]}),s&&e.jsx("p",{className:"text-[11px] text-snew-ink-muted leading-snug",children:s})]}),d,o?e.jsx("p",{className:"text-[11px] text-[hsl(var(--color-text-danger))]",children:o}):r?e.jsx("p",{className:"text-[11px] text-snew-ink-dim",children:r}):null]}));El.displayName="SnewField";const Al={sm:"gap-3",md:"gap-4",lg:"gap-6"},Pl=n.forwardRef(({className:a,title:t,description:s,action:r,spacing:o="md",as:i="section",children:l,...d},c)=>{const h=i;return e.jsxs(h,{ref:c,className:K("flex flex-col",Al[o],a),...d,children:[(t||s||r)&&e.jsxs("header",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[t&&e.jsx("h3",{className:"text-[14px] font-semibold text-snew-ink leading-tight",children:t}),s&&e.jsx("p",{className:"text-[12px] text-snew-ink-muted leading-snug",children:s})]}),r&&e.jsx("div",{className:"flex-shrink-0",children:r})]}),l]})});Pl.displayName="SnewSection";const Sl=n.forwardRef(({className:a,title:t,description:s,step:r,totalSteps:o,action:i,...l},d)=>{const c=typeof r=="number"&&typeof o=="number",h=c?Math.min(1,r/o):0;return e.jsxs("div",{ref:d,className:K("flex flex-col gap-3",a),...l,children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[c&&e.jsxs("span",{className:"text-[10px] font-medium uppercase tracking-[0.08em] text-snew-ink-dim",children:["Etapa ",r," de ",o]}),e.jsx("h2",{className:"text-[18px] font-semibold text-snew-ink leading-tight",children:t}),s&&e.jsx("p",{className:"text-[13px] text-snew-ink-muted leading-snug",children:s})]}),i&&e.jsx("div",{className:"flex-shrink-0",children:i})]}),c&&e.jsx("div",{className:"h-[2px] w-full rounded-full bg-snew-surface-muted overflow-hidden","aria-hidden":!0,children:e.jsx("div",{className:"h-full bg-snew-ink transition-[width] duration-snew",style:{width:`${h*100}%`}})})]})});Sl.displayName="SnewStepHeader";const ws=["connect","focus","first-image"],Lu=ws.length;function Iu(a){return ws.indexOf(a)+1}function Vu(a){const t=Math.max(a??1,1);return t<=1?"/onboarding/create":t===2?"/onboarding/import?source=store":t===3?"/onboarding/intent":"/onboarding/create"}function _s(a){return a.onboardingCompleted?"/":"/onboarding/create"}function Tl(){const a=Me(),t=_e(),{lang:s}=le(),r=s==="pt-BR",o=Vr(new URLSearchParams(t.search).get("next")),{requestEmailCode:i,signInWithProvider:l,signIn:d}=Ce(),[c,h]=n.useState(""),[m,b]=n.useState(""),[p,w]=n.useState(!1),y=new URLSearchParams(t.search).get("error")==="oauth",[E,v]=n.useState(y?r?"Não foi possÃvel concluir o acesso com Google. Tente novamente.":"We couldn't complete Google sign-in. Please try again.":null),[C,A]=n.useState(null),S=n.useRef(!1),P=Ta,j=async R=>{if(R.preventDefault(),!S.current){S.current=!0,v(null),w(!0);try{const V=c.trim().toLowerCase();Sa(t.search,sessionStorage),await i(V,"signin"),a("/auth/verify",{state:{email:V,mode:"signin",next:new URLSearchParams(t.search).get("next"),requestedAt:Date.now()}})}catch(V){if(Nr(V)){const T=new URLSearchParams({email:c.trim().toLowerCase(),lang:Xs(s)});a(`/signup?${T.toString()}`,{replace:!0});return}v(V instanceof Error?V.message:r?"Não foi possÃvel enviar o código":"We couldn't send the code")}finally{S.current=!1,w(!1)}}},k=async R=>{v(null),A(R);try{Sa(t.search,sessionStorage);const V=await l(R,"signin");Ct(a)||a(_s(V))}catch(V){v(V instanceof Error?V.message:r?"Não foi possÃvel entrar":"Sign-in failed")}finally{A(null)}};return e.jsx(ys,{title:r?"Entre na Snew":"Sign in to Snew",subtitle:void 0,children:e.jsxs("div",{className:"flex flex-col gap-4","data-no-translate":!0,children:[Mr,Pa,e.jsx(xl,{onSelect:k,loadingProvider:C,verb:r?"Continuar com":"Continue with",loadingLabel:r?"Conectando...":"Connecting..."}),e.jsxs("div",{className:"flex items-center gap-3 text-[11px] uppercase tracking-wider text-muted-foreground",children:[e.jsx("div",{className:"h-px flex-1 bg-border"}),e.jsx("span",{children:r?"ou":"or"}),e.jsx("div",{className:"h-px flex-1 bg-border"})]}),e.jsxs("form",{onSubmit:j,className:"flex flex-col gap-3",children:[e.jsx(bt,{id:"signin-email",type:"email",value:c,onChange:R=>h(R.target.value),placeholder:"Email",autoComplete:"email",required:!0,className:"h-12 rounded-xl px-5 text-sm bg-background"}),P,E&&e.jsx("div",{className:"text-xs text-destructive",children:E}),e.jsx(ze,{type:"submit",size:"lg",disabled:p||!c,className:"mt-1 w-full !rou
26nded-full",children:p?r?"Enviando código...":"Sending code...":r?"Continuar com email":"Continue with email"}),e.jsxs("p",{className:"mt-2 text-center text-[13px] text-foreground",children:[r?"Ainda não tem conta?":"Don't have an account?"," ",e.jsx(Sn,{to:Ys(s),className:"text-foreground font-medium underline underline-offset-2",children:r?"Criar conta":"Create account"}),"."]}),e.jsxs("p",{className:"mt-1 text-center text-[12px] leading-relaxed text-muted-foreground",children:[r?"Ao continuar, você concorda com os ":"By continuing, you agree to the ",e.jsx("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground underline underline-offset-2",children:r?"Termos de Uso":"Terms of Use"}),r?" e a ":" and ",e.jsx("a",{href:"/privacy",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground underline underline-offset-2",children:r?"PolÃtica de Privacidade":"Privacy Policy"}),"."]})]})]})})}function kl(){const a=Me(),{user:t,loading:s,completeProfile:r}=Ce(),{lang:o}=le(),i=o==="pt-BR",[l,d]=n.useState(""),[c,h]=n.useState(!1),[m,b]=n.useState(null);if(s)return null;if(!t)return e.jsx(me,{to:"/signin",replace:!0});const p=async w=>{w.preventDefault(),b(null),h(!0);try{const y=await r(l);Ct(a)||a(_s(y),{replace:!0})}catch(y){b(y instanceof Error?y.message:i?"Não foi possÃvel salvar seu perfil":"We couldn't save your profile")}finally{h(!1)}};return e.jsx(ys,{title:i?"Crie sua conta":"Create your account",subtitle:i?"Só falta adicionar seu nome.":"Just add your name to finish.",children:e.jsxs("form",{onSubmit:p,className:"flex flex-col gap-3","data-no-translate":!0,children:[e.jsx(bt,{value:t.email,readOnly:!0,disabled:!0,"aria-label":i?"Email verificado":"Verified email",className:"h-12 rounded-xl px-5 text-sm bg-muted/40"}),e.jsx(bt,{id:"create-name",value:l,onChange:w=>d(w.target.value),placeholder:i?"Seu nome":"Your name",autoComplete:"name",autoFocus:!0,required:!0,className:"h-12 rounded-xl px-5 text-sm bg-background"}),m&&e.jsx("div",{className:"text-xs text-destructive",children:m}),e.jsx(ze,{type:"submit",size:"lg",disabled:c||!l.trim(),className:"mt-2 w-full !rounded-full",children:c?i?"Criando...":"Creating...":i?"Concluir":"Finish"}),e.jsxs("p",{className:"text-[12px] text-muted-foreground leading-relaxed mt-1",children:[i?"Ao concluir, você concorda com os ":"By finishing, you agree to the ",e.jsx("a",{href:"/terms",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground underline underline-offset-2",children:i?"Termos de Uso":"Terms of Use"}),i?" e reconhece a ":" and acknowledge the ",e.jsx("a",{href:"/privacy",target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground underline underline-offset-2",children:i?"PolÃtica de Privacidade":"Privacy Policy"}),"."]})]})})}const Cs=Or.slice(0,10).map(a=>({id:`onboarding-demo-${a.product_id}`,product_id:`onboarding-demo-${a.product_id}`,source_product_id:null,name:a.name,sku:a.sku,image_url:a.image,gallery_urls:[a.image]}));function Mu(a){return Cs.find(t=>t.product_id===a)??null}function Rl(){var r;_e(),Me();const[a,t]=n.useState(!1),s=((r=Cs[0])==null?void 0:r.product_id)??"";return n.useMemo(()=>[{label:"Start",path:"/onboarding/create"},{label:"Upload",path:"/onboarding/import?source=upload"},{label:"URL",path:"/onboarding/import?source=url"},{label:"Connect",path:"/onboarding/import?source=store"},{label:"Products",path:"/onboarding/products?source=demo"},{label:"Analyze",path:`/onboarding/analyze?source=demo&product=${encodeURIComponent(s)}`},{label:"Campaign",path:`/onboarding/style?source=demo&product=${encodeURIComponent(s)}`},{label:"Intent",path:"/onboarding/intent"},{label:"Ready",path:"/onboarding/ready"}],[s]),null}function ne({children:a}){var d,c,h;const{user:t,loading:s}=Ce(),r=_e();if(s&&!t)return e.jsx(wt,{});if(!t){const m=`${r.pathname}${r.search}${r.hash}`;return e.jsx(me,{to:`/signin?next=${encodeURIComponent(m)}`,replace:!0})}if(!t.fullName)return e.jsx(me,{to:"/auth/create-account",replace:!0});const o=r.pathname==="/onboarding"||r.pathname.startsWith("/onboarding/"),i=r.pathname==="/board"&&(!!((d=r.state)!=null&&d.onboardingBatch)||!!((c=t.profile)!=null&&c.onboardingBoardId&&new URLSearchParams(r.
26search).get("boardId")===t.profile.onboardingBoardId)),l=((h=t.profile)==null?void 0:h.onboardingStep)==="result"&&!!t.profile.onboardingBoardId;return!t.onboardingCompleted&&!l&&!o&&!i?e.jsx(me,{to:"/onboarding",replace:!0}):e.jsx(n.Fragment,{children:a},`${t.id}:${t.teamId??""}`)}const Hl=new Set(["/signin","/signup","/auth/callback","/auth/verify","/auth/create-account","/landing","/landing-no-drop","/landing-backup","/landing-spiral","/landing-floating","/landing-secondary","/categories","/pricing","/about","/terms","/privacy","/library","/catalog"]);function Ll(a,t){const s=a.length>1?a.replace(/\/+$/,""):a;return t.landingDeployment&&s==="/"||Hl.has(s)?!0:s.startsWith("/categories/")}const Il="snew:starter-handoff:v1",Vl="snew:starter-handoff-ack:v1";function Ml({children:a}){const{pathname:t,search:s}=_e(),r=Me(),{user:o}=Ce(),i=new URLSearchParams(s),l=window.location.hostname==="app.snew.ai"&&(t==="/signin"||t==="/signup")&&i.get("starterHandoff")==="1",d=i.get("fromSite")==="www"?Js:er,c=Number(i.get("starterAt")),h=n.useRef(null),[m,b]=n.useState(0),[p,w]=n.useState("pending"),[y,E]=n.useState(!1),[v,C]=n.useState(!1);return n.useEffect(()=>{var P;if(!l||v||((P=qt())==null?void 0:P.savedAt)===c){w("ready");return}w("pending"),E(!0);const A=window.setTimeout(()=>{E(!1),w("failed")},7e3),S=j=>{var k,R,V,T,L;if(!(j.origin!==d||j.source!==((k=h.current)==null?void 0:k.contentWindow)||((R=j.data)==null?void 0:R.type)!==Il)){if(window.clearTimeout(A),((V=j.data.draft)==null?void 0:V.savedAt)!==c||!Fr(j.data.draft)){E(!1),w("failed");return}(L=(T=h.current)==null?void 0:T.contentWindow)==null||L.postMessage({type:Vl,ok:!0},d),window.setTimeout(()=>w("ready"),150)}};return window.addEventListener("message",S),()=>{window.clearTimeout(A),window.removeEventListener("message",S)}},[l,d,c,m,v]),n.useEffect(()=>{var A;l&&!v&&p==="ready"&&o&&((A=qt())==null?void 0:A.savedAt)===c&&Ct(r)},[l,v,p,o,c,r]),!l||p==="ready"?e.jsx(e.Fragment,{children:a}):e.jsxs("main",{className:"flex min-h-screen flex-col items-center justify-center gap-4 p-6 text-center","data-no-translate":!0,children:[y&&e.jsx("iframe",{ref:h,title:"Transfer pending creation",src:`${d}/starter-handoff.html`,referrerPolicy:"origin",className:"hidden",tabIndex:-1}),p==="pending"?e.jsx("p",{children:"Bringing your creation to the appâ¦"}):e.jsxs(e.Fragment,{children:[e.jsx("p",{children:"We couldn't bring your creation over. It is still saved on snew.ai."}),e.jsxs("div",{className:"flex gap-3",children:[e.jsx("button",{type:"button",className:"rounded-full border px-4 py-2",onClick:()=>{w("pending"),b(A=>A+1)},children:"Try again"}),e.jsx("button",{type:"button",className:"rounded-full border px-4 py-2",onClick:()=>{Dr(),C(!0)},children:"Continue without it"})]})]})]})}function Nl(){const a=_e();return n.useLayoutEffect(()=>{Zr(a.pathname,a.search)},[a.pathname,a.search]),null}var Ol=Object.defineProperty,je=(a,t)=>Ol(a,"name",{value:t,configurable:!0}),ma="Popover",[js,Nu]=yn(ma,[_n]),St=_n(),[Dl,Oe]=js(ma),Fl=je(a=>{const{__scopePopover:t,children:s,open:r,defaultOpen:o,onOpenChange:i,modal:l=!1}=a,d=St(t),c=n.useRef(null),[h,m]=n.useState(!1),[b,p]=xn({prop:r,defaultProp:o??!1,onChange:i,caller:ma});return e.jsx(zr,{...d,children:e.jsx(Dl,{scope:t,contentId:$r(),triggerRef:c,open:b,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(w=>!w),[p]),hasCustomAnchor:h,onCustomAnchorAdd:n.useCallback(()=>m(!0),[]),onCustomAnchorRemove:n.useCallback(()=>m(!1),[]),modal:l,children:s})})},"Popover"),Zl="PopoverAnchor",zl=n.forwardRef(je(function(t,s){const{__scopePopover:r,...o}=t,i=Oe(Zl,r),l=St(r),{onCustomAnchorAdd:d,onCustomAnchorRemove:c}=i;return n.useEffect(()=>(d(),()=>c()),[d,c]),e.jsx(wn,{...l,...o,ref:s})},"PopoverAnchor")),$l="PopoverTrigger",Bl=n.forwardRef(je(function(t,s){const{__scopePopover:r,...o}=t,i=Oe($l,r),l=St(r),d=Et(s,i.triggerRef),c=e.jsx(Ne.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":ha(i.open),...o,ref:d,onClick:te(t.onClick,i.onOpenToggle)});return i.hasCustomAnchor?c:e.jsx(wn,{asChild:!0,...l,children:c})},"PopoverTrigger")),Es="PopoverPortal",[Ul,ql]=js(Es,{forceMount:void 0}),Wl=je(a=>{const{__scopePopover:t,forceMount:s,children:r,container:o}=a,i=Oe(Es,t);return e.jsx(Ul,{scope:t,forceMount:s,children:e.jsx(na,{present:s||i.open,children:e.jsx(An,{asChild:!0,container:o,children:r})})})},"PopoverPortal"),et="PopoverContent",Kl=n.forwardRef(je(function(t,s){const r=ql(et,t.__scopePopover),{forceMount:o=r.forceMount,...i}=t,l=Oe(et,t.__scopePopover);return e.jsx(na,{present:o||l.open,children:l.modal?e.jsx(Ql,{...i,ref:s}):e.jsx(Yl,{...i,ref:s})})},"PopoverContent")),Gl=ho("PopoverContent.RemoveScroll"),Ql=n.forwardRef(je(function(t,s){const r=Oe(et,t.__scopePopover),o=n.useRef(null),i=Et(s,o),l=n.useRef(!1);return n.useEffect(()=>{const d=o.current;if(d)return bo(d)},[]),e.jsx(wo,{as:Gl,allowPinchZoom:!0,children:e.jsx(As,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:te(t.onCloseAutoFocus,d=>{var c;d.preventDefault(),l.current||(c=r.triggerRef.current)==null||c.focus()}),onPointerDownOutside:te(t.onPointerDownOutside,d=>{const c=d.detail.originalEvent,h=c.button===0&&c.ctrlKey===!0,m=c.button===2||h;l.current=m},{checkForDefaultPrevented:!1}),onFocusOutside:te(t.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),Yl=n.forwardRef(je(function(t,s){const r=Oe(et,t.__scopePopover),o=n.useRef(!1),i=n.useRef(!1);return e.jsx(As,{...t,ref:s,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var d,c;(d=t.onCloseAutoFocus)==null||d.call(t,l),l.defaultPrevented||(o.current||(c=r.triggerRef.current)==null||c.focus(),l.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:l=>{var h,m;(h=t.onInteractOutside)==null||h.call(t,l),l.defaultPrevented||(o.current=!0,l.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const d=l.target;((m=r.triggerRef.current)==null?void 0:m.contains(d))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&i.current&&l.preventDefault()}})},"PopoverContentNonModal")),As=n.forwardRef(je(function(t,s){const{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:d,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:b,...p}=t,w=Oe(et,r),y=St(r);return _o(),e.jsx(Co,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:l,children:e.jsx(Br,{asChild:!0,disableOutsidePointerEvents:d,onInteractOutside:b,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:m,onDismiss:()=>w.onOpenChange(!1),deferPointerDownOutside:!0,children:e.jsx(Ur,{"data-state":ha(w.open),role:"dialog",id:w.contentId,...y,...p,ref:s,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})},"PopoverContentImpl")),Xl="PopoverClose",Jl=n.forwardRef(je(function(t,s){const{__scopePopover:r,...o}=t,i=Oe(Xl,r);return e.jsx(Ne.button,{type:"button",...o,ref:s,onClick:te(t.onClick,()=>i.onOpenChange(!1))})},"PopoverClose"));function ha(a){return a?"open":"closed"}je(ha,"getState");var Ps=Fl,Ou=zl,Ss=Bl,Ts=Wl,ks=Kl,Du=Jl;const ec={free:{id:"free",label:"Free",accentColor:"#999999"},starter:{id:"starter",label:"Starter",accentColor:"#4A90E2"},pro:{id:"pro",label:"Pro",accentColor:"linear-gradient(135deg, #4A90E2, #7B68EE)"},enterprise:{id:"enterprise",label:"Enterprise",accentColor:"linear-gradient(135deg, #1A1A1A, #4A4A4A)"}},tc={en:{accountControls:"Account controls",share:"Share",upgrade:"Upgrade",accountAndCredits:"Account and credits",loading:"Loadingâ¦",unavailable:"Unavailable",profilePhoto:"profile photo",store:"Store",storeUnavailable:"Store unavailable",connectStore:"Connect your store",storePlatforms:"Shopify or Nuvemshop",connectedViaApi:"connected via API",tryAgain:"Try again",credits:"Credits",viewUsage:"View usage",availableCredits:"Available credits",creditsUnavailable:"Credits unavailable",loadingCredits:"Loading creditsâ¦",addCredits:"Add credits",viewPlans:"View plans",planAndBilling:"Plan & billing",profileSettings:"Profile settings",language:"Language",languageOptions:"Language options",english:"English",portuguese:"Português",signOut:"Sign out",checkingBalance:"Checking your account balance.",authenticatedAccountRequired:"Choose an authenticated account to view credits.",creditVerificationError:"We couldnât verify your credits. Try again.",creditBalance:"Credit balance",plan:"plan",available:"available",totalCredits:"total credits",reserved:"reserved",subscriptionCanceled:"Subscription canceled",accessEnds:"access ends",willNotRenew:"will not renew",currentPeriodEnds:"Current period ends",creditHistory:"Credit history",noTransactions:"No transactions yet",activityWillAppear:"Your credit activity will appear here.",date:"Date",activity:"Activity",historyNote:"Latest 100 entries. Reserved credits are already excluded from the available balance. Released reservations return held credits; they are not cash refunds.",usageDetails:"Usage details",usageDescription:"Your available balance and recent credit activity.",buyCreditsTitle:"Buy credits",creditPacksDescription:"One-time credit packs, separate from your subscription.",chooseCreditPack:"Choose a credit pack",creditPackNote:"One-time credits do not expire and cost more per credit than a subscription.",creditPacks:"Credit packs",back:"Back",close:"Close",viewSubscriptionPlans:"View subscription plans",checkoutError:"We couldnât open credit checkout. Try again.",signOutError:"Unable to log out. Please retry."},"pt-BR":{accountControls:"Controles da conta",share:"Compartilhar",upgrade:"Fazer upgrade",accountAndCredits:"Conta e créditos",loading:"Carregandoâ¦",unavailable:"IndisponÃvel",profilePhoto:"foto de perfil",store:"Loja",storeUnavailable:"Loja indisponÃvel",connectStore:"Conecte sua loja",storePlatforms:"Shopify ou Nuvemshop",connectedViaApi:"conectada via API",tryAgain:"Tentar novamente",credits:"Créditos",viewUsage:"Ver uso",availableCredits:"Créditos disponÃveis",creditsUnavailable:"Créditos indisponÃveis",loadingCredits:"Carregando créditosâ¦",addCredits:"Comprar créditos",viewPlans:"Ver planos",planAndBilling:"Plano e cobrança",profileSettings:"Configurações do perfil",language:"Idioma",languageOptions:"Opções de idioma",english:"English",portuguese:"Português",signOut:"Sair",checkingBalance:"Verificando o saldo da sua conta.",authenticatedAccountRequired:"Selecione uma conta autenticada para visualizar os créditos.",creditVerificationError:"Não foi possÃvel verificar seus créditos. Tente novamente.",creditBalance:"Saldo de créditos",plan:"plano",available:"disponÃveis",totalCredits:"créditos no total",reserved:"reservados",subscriptionCanceled:"Assinatura cancelada",accessEnds:"o acesso termina em",willNotRenew:"não será renovada",currentPeriodEnds:"O perÃodo atual termina em",creditHistory:"Histórico de créditos",noTransactions:"Nenhuma transação ainda",activityWillAppear:"Sua movimentação de créditos aparecerá aqui.",date:"Data",activity:"Atividade",historyNote:"Ãltimos 100 registros. Os créditos reservados já estão excluÃdos do saldo disponÃvel. Reservas liberadas devolvem os créditos retidos; não são reembolsos em dinheiro.",usageDetails:"Detalhes de uso",usageDescription:"Seu saldo disponÃvel e a movimentação recente de créditos.",buyCreditsTitle:"Comprar créditos",creditPacksDescription:"Pacotes avulsos de créditos, separados da sua assinatura.",chooseCreditPack:"Escolha um pacote de créditos",creditPackNote:"Os créditos avulsos não expiram e custam mais por crédito do que uma assinatura.",creditPacks:"Pacotes de créditos",back:"Voltar",close:"Fechar",viewSubscriptionPlans:"Ver planos de assinatura",checkoutError:"Não foi possÃvel abrir a compra de créditos. Tente novamente.",signOutError:"Não foi possÃvel sair. Tente novamente."}};function $e(a){return tc[a]}function Rs(a,t){return t==="pt-BR"&&a==="free"?"Grátis":ec[a].label}const ac={en:{granted:"Credits added",grant:"Credits added",consumed:"Credits used",reserved:"Credits reserved",released:"Reservation released",expired:"Credits expired",revoked:"Credits revoked",reconciliation_required:"Pending confirmation"},"pt-BR":{granted:"Créditos adicionados",grant:"Créditos adicionados",consumed:"Créditos usados",reserved:"Créditos reservados",released:"Reserva liberada",expired:"Créditos expirados",revoked:"Créditos revogados",reconciliation_required:"Confirmação pendente"}};function nc(a,t){return ac[t][a]??a.replace(/_/g," ")}function sc({name:a,email:t,url:s,size:r=32}){const{lang:o}=le(),i=$e(o);return e.jsx("span",{"data-no-translate":!0,"aria-label":a?`${a} ${i.profilePhoto}`:i.profilePhoto,style:{width:r,height:r,borderRadius:"50%",display:"inline-flex",flexShrink:0,alignItems:"center",justifyContent:"center",overflow:"hidden",background:"hsl(var(--color-background-secondary))",color:"hsl(var(--color-text-primary))",fontSize:r/3,fontWeight:600},children:e.jsx(qr,{src:s,alt:"",referrerPolicy:"no-referrer",fallback:Kr(a,t),onSourceError:l=>{console.warn("avatar_load_failed"),Wr(l)},style:{width:"100%",height:"100%",objectFit:"cover"}})})}function Hs(a){if(a.status==="loading"||a.status==="error")return"unavailable";const t=a.credits.available+a.freeDaily.available,s=a.credits.total+a.freeDaily.total;if(t<=0||a.state==="exhausted")return"critical";const r=s>0?t/s*100:100;return r<=10?"critical":r<=25?"low":r<=50?"attention":"positive"}function Ls({credits:a,user:t,size:s=32}){const r=Hs(a),o=s-8;return e.jsx("span",{className:"credit-avatar-tracker","data-credit-tone":r,style:{"--credit-avatar-size":`${s}px`},children:e.jsx("span",{className:"credit-avatar-tracker-inner",children:e.jsx(sc,{name:t.name,email:t.email,url:t.avatarUrl,size:o})})})}const rc=n.forwardRef(function({credits:t,user:s,onUpgradeClick:r,onTriggerClick:o,onTriggerMouseEnter:i,onTriggerMouseLeave:l,...d},c){const{lang:h}=le(),m=$e(h),b=t.status==="loading"?m.loading:t.status==="error"?m.unavailable:sa(t).toLocaleStr
26ing();return e.jsxs("button",{ref:c,type:"button",className:"credit-usage-button account-credits-trigger","aria-label":`${m.accountAndCredits}: ${b}`,onClick:o,onMouseEnter:i,onMouseLeave:l,...d,children:[e.jsxs("span",{className:"account-credits-trigger-balance",children:[e.jsx(bn,{size:13,weight:"fill"}),b]}),e.jsx(Ls,{credits:t,user:s,size:32})]})});function oc({credits:a,user:t,store:s,storeError:r,profileError:o,onRefreshProfile:i,onStoreClick:l,onBuyCreditsClick:d,onUpgradeClick:c,onUsageDetailsClick:h,onSettingsClick:m,onManagePlanClick:b,onSignOut:p,onRetry:w}){const{lang:y,setLang:E}=le(),v=$e(y),[C,A]=n.useState(null),S=y==="pt-BR"?v.portuguese:v.english,P=a.status==="ready",j=a.credits.available+a.freeDaily.available,k=a.credits.total+a.freeDaily.total,R=Math.max(k,j,1),V=k>0?Math.min(100,Math.max(0,j/k*100)):j>0?100:0,T=Hs(a),L=r?v.storeUnavailable:(s==null?void 0:s.domain)||(s==null?void 0:s.name)||v.connectStore,oe=!r&&Cn(s==null?void 0:s.source);return e.jsxs("div",{className:"account-credits-menu","data-no-translate":!0,children:[e.jsxs("header",{className:"account-credits-profile","data-no-translate":!0,children:[e.jsx(Ls,{credits:a,user:t,size:32}),e.jsxs("div",{children:[e.jsx("strong",{children:t.name}),e.jsx("span",{title:t.email,children:t.email})]})]}),o&&e.jsxs("div",{className:"account-credits-error",role:"alert",children:[o,e.jsx("button",{onClick:i,children:v.tryAgain})]}),e.jsxs("section",{className:"account-credits-store","aria-label":v.store,children:[oe?e.jsxs("div",{className:"account-credits-store-control","data-store-source":"api","aria-label":`${L}, ${v.connectedViaApi}`,title:L,children:[e.jsx("span",{className:"account-credits-store-status","aria-hidden":"true"}),e.jsx("span",{className:"account-credits-store-label",children:L})]}):e.jsxs("button",{className:"account-credits-store-control account-credits-store-connect",onClick:l,disabled:!l,"aria-label":`${v.connectStore} â ${v.storePlatforms}`,children:[e.jsx("span",{className:"account-credits-store-connect-icon","aria-hidden":"true",children:e.jsx(Gr,{size:16,weight:"fill"})}),e.jsxs("span",{className:"account-credits-store-connect-copy",children:[e.jsx("strong",{children:v.connectStore}),e.jsx("small",{children:v.storePlatforms})]}),e.jsx(jo,{className:"account-credits-store-connect-caret",size:13,weight:"bold","aria-hidden":"true"})]}),r&&e.jsxs("div",{className:"account-credits-error",role:"alert",children:[r,e.jsx("button",{onClick:i,children:v.tryAgain})]})]}),e.jsxs("section",{className:"account-credits-summary","aria-label":v.credits,"data-credit-tone":T,children:[e.jsxs("div",{className:"credit-usage-row",children:[e.jsx("strong",{children:v.credits}),e.jsx("button",{className:"account-credits-view-usage",onClick:h,children:v.viewUsage})]}),P?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"credit-usage-amount",children:j.toLocaleString()}),e.jsx("div",{className:"credit-usage-track",role:"progressbar","aria-label":v.availableCredits,"aria-valuemin":0,"aria-valuemax":R,"aria-valuenow":Math.min(j,R),children:e.jsx("div",{style:{width:`${V}%`}})})]}):e.jsxs("div",{className:"account-credits-error",role:"status",children:[e.jsx("strong",{children:a.status==="error"?v.creditsUnavailable:v.loadingCredits}),a.status==="error"&&e.jsxs(e.Fragment,{children:[e.jsx("p",{children:a.error}),e.jsx("button",{onClick:w,children:v.tryAgain})]})]}),e.jsxs("div",{className:"account-credits-purchase",children:[e.jsx("button",{className:"credit-usage-button",onClick:d,disabled:!d,children:v.addCredits}),e.jsx("button",{className:"credit-usage-button",onClick:c,children:a.plan==="enterprise"&&P?v.viewPlans:v.upgrade})]})]}),e.jsxs("div",{className:"account-credits-links",children:[e.jsx(Ot,{label:v.planAndBilling,badge:P?Rs(a.plan,y):void 0,onClick:b}),e.jsx(Ot,{label:v.profileSettings,onClick:m}),e.jsxs(Ps,{open:C==="language",onOpenChange:G=>A(G?"language":null),children:[e.jsx(ic,{label:v.language,value:S,expanded:C==="language",onClick:()=>A(G=>G==="language"?null:"language")}),e.jsx(Ts,{children:e.jsxs(ks,{side:"left",align:"end",sideOffset:8,collisionPadding:12,className:"account-credits-options account-credits-options-portal","aria-label":v.languageOptions,"data-no-translate":!0,children:[e.jsx(Ba,{label:v.english,selected:y==="en",onClick:()=>{E("en"),A(null)}}),e.jsx(Ba,{label:v.portuguese,selected:y==="pt-BR",onClick:()=>{E("pt-BR"),A(null)}})]})})]})]}),e.jsx("div",{className:"account-credits-signout",children:e.jsx(Ot,{label:v.signOut,onClick:p})})]})}function Ot({label:a,badge:t,onClick:s}){return e.jsxs("button",{className:"account-credits-link snew-popover-link",onClick:s,children:[e.jsx("span",{children:a}),t&&e.jsx("small",{children:t})]})}function ic({label:a,value:t,expanded:s,onClick:r}){return e.jsx(Ss,{asChild:!0,children:e.jsx("button",{className:"account-credits-preference snew-popover-link","aria-expanded":s,"aria-label":`${a}: ${t}`,children:e.jsx("span",{children:a})})})}function Ba({label:a,selected:t,onClick:s}){return e.jsxs("button",{className:"account-credits-option snew-popover-link","aria-pressed":t,onClick:s,children:[e.jsx("span",{children:a}),t&&e.jsx(st,{size:13,weight:"bold","aria-hidden":"true"})]})}function lc({credits:a,onRetry:t,showHistory:s=!0}){var p,w;const{lang:r}=le(),o=$e(r),i=r==="pt-BR"?"pt-BR":"en-US",l=Rs(a.plan,r),d=r==="pt-BR"?`${o.plan} ${l}`:`${l} ${o.plan}`,c=(p=a.error)!=null&&p.includes("authenticated account")?o.authenticatedAccountRequired:o.creditVerificationError;if(a.status!=="ready")return e.jsxs("div",{className:"credit-usage-state",role:"status","data-no-translate":!0,children:[e.jsx("strong",{children:a.status==="error"?o.creditsUnavailable:o.loadingCredits}),e.jsx("p",{children:a.status==="error"?c:o.checkingBalance}),a.status==="error"&&t&&e.jsx("button",{className:"credit-usage-button",onClick:t,children:o.tryAgain})]});const{available:h,total:m}=a.credits,b=m>0?Math.min(100,Math.max(0,h/m*100)):0;return e.jsxs("div",{className:"credit-usage","data-no-translate":!0,children:[e.jsxs("section",{className:"credit-usage-balance","aria-label":o.creditBalance,children:[e.jsxs("div",{className:"credit-usage-row",children:[e.jsx("span",{children:o.credits}),e.jsx("span",{className:"credit-usage-plan",children:d})]}),e.jsxs("div",{className:"credit-usage-amount",children:[h.toLocaleStr
26ing(i)," ",e.jsx("span",{children:o.available})]}),e.jsx("div",{className:"credit-usage-track",role:"progressbar","aria-label":o.availableCredits,"aria-valuemin":0,"aria-valuemax":m||1,"aria-valuenow":Math.min(h,m),children:e.jsx("div",{style:{width:`${b}%`}})}),e.jsxs("div",{className:"credit-usage-row credit-usage-muted",children:[e.jsxs("span",{children:[m.toLocaleString(i)," ",o.totalCredits]}),e.jsxs("span",{children:[(a.reserved??0).toLocaleString(i)," ",o.reserved]})]}),a.renewsAt&&e.jsx("p",{className:"credit-usage-muted",children:a.scheduledCancel?e.jsxs(e.Fragment,{children:[o.subscriptionCanceled," â ",o.accessEnds," ",a.renewsAt.toLocaleDateString(i)," (",o.willNotRenew,")"]}):e.jsxs(e.Fragment,{children:[o.currentPeriodEnds," ",a.renewsAt.toLocaleDateString(i)]})})]}),s&&e.jsxs("section",{"aria-label":o.creditHistory,children:[e.jsx("h2",{className:"credit-usage-subtitle",children:o.creditHistory}),(w=a.history)!=null&&w.length?e.jsx("div",{className:"credit-usage-table-scroll",children:e.jsxs("table",{className:"credit-usage-table",children:[e.jsx("thead",{children:e.jsxs("tr",{children:[e.jsx("th",{scope:"col",children:o.date}),e.jsx("th",{scope:"col",children:o.activity}),e.jsx("th",{scope:"col",children:o.credits})]})}),e.jsx("tbody",{children:a.history.map(y=>e.jsxs("tr",{children:[e.jsx("td",{children:e.jsx("time",{dateTime:y.at,children:new Date(y.at).toLocaleDateString(i,{month:"short",day:"numeric",year:"numeric"})})}),e.jsxs("td",{children:[nc(y.kind,r),y.feature&&e.jsx("span",{className:"credit-usage-feature",children:y.feature.replace(/_/g," ")})]}),e.jsx("td",{children:y.credits.toLocaleString(i)})]},y.id))})]})}):e.jsxs("div",{className:"credit-usage-state",children:[e.jsx("strong",{children:o.noTransactions}),e.jsx("p",{children:o.activityWillAppear})]}),e.jsx("p",{className:"credit-usage-note",children:o.historyNote})]})]})}function cc({open:a,onClose:t,credits:s,onRetry:r}){const{lang:o}=le(),i=$e(o);return e.jsx(oa,{open:a,onOpenChange:l=>{l||t()},children:e.jsxs(ia,{className:"credit-usage-dialog",overlayClassName:"credit-usage-overlay",closeLabel:i.close,"data-no-translate":!0,children:[e.jsxs("header",{className:"credit-usage-header",children:[e.jsx(la,{className:"credit-usage-title",children:i.usageDetails}),e.jsx(ca,{children:i.usageDescription})]}),e.jsx(lc,{credits:s,onRetry:r})]})})}function dc({open:a,onClose:t,onUpgrade:s,onPurchase:r,busy:o=!1}){const{lang:i}=le(),l=$e(i),d=i==="pt-BR"?"pt-BR":"en-US";return e.jsx(oa,{open:a,onOpenChange:c=>{c||t()},children:e.jsxs(ia,{className:"credit-usage-dialog",overlayClassName:"credit-usage-overlay",closeLabel:l.close,"data-no-translate":!0,children:[e.jsxs("header",{className:"credit-usage-header",children:[e.jsx(la,{className:"credit-usage-title",children:l.buyCreditsTitle}),e.jsx(ca,{children:l.creditPacksDescription})]}),e.jsxs("div",{className:"credit-usage-state",role:"status",children:[e.jsx("strong",{children:l.chooseCreditPack}),e.jsx("p",{children:l.creditPackNote})]}),e.jsx("div",{className:"credit-usage-packs",role:"group","aria-label":l.creditPacks,children:gn.map(c=>e.jsxs("button",{className:"credit-usage-pack",disabled:o||!r,onClick:()=>r==null?void 0:r(c.credits),children:[e.jsxs("strong",{className:"credit-usage-pack-credits",children:[c.credits.toLocaleString(d)," ",l.credits.toLocaleLowerCase(d)]}),e.jsx("span",{className:"credit-usage-pack-price",children:tr(c).split(" â ")[1]})]},c.credits))}),e.jsxs("div",{className:"credit-usage-actions",children:[e.jsx("button",{className:"credit-usage-button",onClick:t,children:l.back}),e.jsx("button",{className:"credit-usage-button",onClick:s,children:l.viewSubscriptionPlans})]})]})})}let ht=0;const Xt=new Set;function Ua(){for(const a of Xt)a()}function uc(a){return Xt.add(a),()=>{Xt.delete(a)}}function qa(){return ht}function Fu(a){n.useEffect(()=>{if(a)return ht+=1,Ua(),()=>{ht=Math.max(0,ht-1),Ua()}},[a])}function pc(){return n.useSyncExternalStore(uc,qa,qa)>0}const Wa="snew.boardName";function mc({open:a,onClose:t}){const[s,r]=n.useState("name"),[o,i]=n.useState(Rt);if(n.useEffect(()=>{if(!a)return;const c=typeof window<"u"&&localStorage.getItem(Wa)||"";c?(i(c),r("share")):(i(Rt),r("name"))},[a]),!a)return null;const l=()=>{const c=o.trim()||Rt;localStorage.setItem(Wa,c),i(c),r("share")},d=()=>{r("share")};return e.jsx("div",{onClick:t,style:{position:"fixed",inset:0,background:"rgba(15, 18, 22, 0.45)",zIndex:2e3,display:"flex",alignItems:"center",justifyContent:"center",padding:24},children:e.jsx("div",{onClick:c=>c.stopPropagation(),style:{width:"100%",maxWidth:520,background:`hsl(${se.bg.primary})`,borderRadius:Ge.lg,boxShadow:"0 24px 64px rgba(0,0,0,0.18)",padding:N[6],fontFamily:"inherit"},children:s==="name"?e.jsx(hc,{name:o,setName:i,onClose:t,onSkip:d,onSave:l}):e.jsx(gc,{name:o,onClose:t})})})}function Is({title:a,onClose:t}){return e.jsxs("div",{style:{display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:N[3]},children:[e.jsx("h2",{style:{...Te.section,margin:0},children:a}),e.jsx("button",{onClick:t,"aria-label":"Close",style:{background:"transparent",border:"none",cursor:"pointer",padding:N[1],color:`hsl(${se.text.secondary})`,display:"inline-flex"},children:e.jsx(nt,{size:16})})]})}function Vs({children:a}){return e.jsx("label",{style:{...Te.primary,display:"block"},children:a})}const Ka=128;function hc({name:a,setName:t,onClose:s,onSkip:r,onSave:o}){return e.jsxs(e.Fragment,{children:[e.jsx(Is,{title:"Name your board before sharing",onClose:s}),e.jsx("p",{style:{...Te.secondary,marginTop:N[2],marginBottom:N[5]},children:"Pick a name that helps your collaborators know what they're looking at."}),e.jsx(Vs,{children:"Board name"}),e.jsx("div",{style:{marginTop:N[2]},children:e.jsx("input",{autoFocus:!0,value:a,maxLength:Ka,onChange:i=>t(i.target.value),onFocus:i=>i.currentTarget.select(),onKeyDown:i=>{i.key==="Enter"&&o()},style:Ms}
26)}),e.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",...Te.meta,marginTop:N[2]},children:[a.length,"/",Ka]}),e.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:N[2],marginTop:N[5]},children:[e.jsx(ze,{variant:"secondary",onClick:r,children:"Skip"}),e.jsx(ze,{variant:"primary",onClick:o,children:"Save"})]})]})}function gc({name:a,onClose:t}){const[s,r]=n.useState([]),[o,i]=n.useState(""),[l,d]=n.useState(!1),[c,h]=n.useState(""),m=()=>{const y=o.trim().replace(/[,;]+$/,"");if(y){if(s.includes(y)){i("");return}r(E=>[...E,y]),i("")}},b=y=>{y.key==="Enter"||y.key===","||y.key===";"||y.key==="Tab"?o.trim()&&(y.preventDefault(),m()):y.key==="Backspace"&&!o&&s.length>0&&r(E=>E.slice(0,-1))},p=y=>r(E=>E.filter(v=>v!==y)),w=s.length>0;return e.jsxs(e.Fragment,{children:[e.jsx(Is,{title:e.jsxs(e.Fragment,{children:["Share ",e.jsxs("span",{style:{fontWeight:400},children:['"',a,'"']})]}),onClose:t}),e.jsxs("div",{style:{marginTop:N[5]},children:[e.jsx(Vs,{children:"Invite by email"}),e.jsxs("div",{style:{...xc,marginTop:N[2]},children:[e.jsxs("div",{style:{display:"flex",flexWrap:"wrap",alignItems:"center",gap:N[1],flex:1,minWidth:0},children:[s.map(y=>e.jsxs("span",{style:yc,children:[y,e.jsx("button",{onClick:()=>p(y),"aria-label":`Remove ${y}`,style:bc,children:e.jsx(nt,{size:10})})]},y)),e.jsx("input",{value:o,onChange:y=>i(y.target.value),onKeyDown:b,onBlur:m,placeholder:s.length===0?"Add people by email and press enter":"",style:vc})]}),e.jsx(fc,{label:"Can edit"})]})]}),e.jsxs("label",{style:{display:"flex",alignItems:"center",gap:N[2],marginTop:N[4],cursor:"pointer",userSelect:"none"},children:[e.jsx("span",{style:{width:16,height:16,borderRadius:4,border:jt.default,background:l?`hsl(${se.text.primary})`:`hsl(${se.bg.primary})`,display:"inline-flex",alignItems:"center",justifyContent:"center",color:`hsl(${se.bg.primary})`,flexShrink:0},children:l&&e.jsx(st,{size:11,weight:"bold"})}),e.jsx("input",{type:"checkbox",checked:l,onChange:y=>d(y.target.checked),style:{display:"none"}}),e.jsx("span",{style:Te.secondary,children:"Include a message"})]}),l&&e.jsx("textarea",{value:c,onChange:y=>h(y.target.value),placeholder:"Add a short note for your inviteesâ¦",rows:3,style:{...Ms,height:"auto",padding:N[3],marginTop:N[3],resize:"vertical",minHeight:72}}),e.jsx("div",{style:{marginTop:N[6],display:"flex",alignItems:"center",justifyContent:"flex-end"},children:e.jsx(ze,{variant:"primary",disabled:!w,onClick:t,children:"Send invites"})})]})}function fc({label:a}){return e.jsxs("button",{style:{display:"inline-flex",alignItems:"center",gap:N[1],background:"transparent",border:"none",cursor:"pointer",...Te.primary,fontFamily:"inherit",flexShrink:0,padding:0},children:[a," ",e.jsx(Ut,{size:11})]})}const Ms={width:"100%",height:jn.md,padding:`0 ${N[3]}`,border:jt.default,borderRadius:Ge.md,...Te.secondary,outline:"none",fontFamily:"inherit",boxSizing:"border-box",background:`hsl(${se.bg.primary})`},xc={display:"flex",alignItems:"center",minHeight:jn.lg,border:jt.default,borderRadius:Ge.md,padding:`${N[2]} ${N[3]}`,gap:N[2],background:`hsl(${se.bg.primary})`},vc={flex:1,minWidth:120,border:"none",outline:"none",background:"transparent",...Te.secondary,fontFamily:"inherit",padding:0},yc={display:"inline-flex",alignItems:"center",gap:N[1],padding:`2px ${N[2]}`,background:`hsl(${se.bg.secondary})`,border:jt.default,borderRadius:Ge.sm,...Te.meta,color:`hsl(${se.text.primary})`,fontSize:12},bc={background:"transparent",border:"none",cursor:"pointer",padding:0,display:"inline-flex",alignItems:"center",color:`hsl(${se.text.tertiary})`};function wc({credits:a,accountId:t,onUpgrade:s}){const{lang:r}=le(),[o,i]=n.useState(null),l=a.status==="ready"&&(a.state==="low"||a.state==="exhausted")?a.state:null,d=l?`${t}:${l}`:null,c=l?sa(a):0;n.useEffect(()=>{l||i(null)},[l]);const h=n.useMemo(()=>l==="exhausted"?r==="pt-BR"?{title:"Créditos esgotados",detail:"Todos os créditos foram usados",action:"Ver planos",close:"Fechar aviso de créditos"}:{title:"Credits exhausted",detail:"All credits used",action:"Upgrade",close:"Dismiss credit warning"}
26:r==="pt-BR"?{title:"Seus créditos estão acabando!",detail:`${c.toLocaleString("pt-BR")} ${c===1?"crédito restante":"créditos restantes"}`,action:"Ver planos",close:"Fechar aviso de créditos"}:{title:"Credits are running low!",detail:`${c.toLocaleString("en-US")} ${c===1?"credit remaining":"credits remaining"}`,action:"Upgrade",close:"Dismiss credit warning"},[c,r,l]);if(!d||o===d)return null;const m=()=>i(d),b=()=>{m(),s()};return e.jsxs("aside",{className:"credit-balance-toastbar",role:l==="exhausted"?"alert":"status","aria-live":l==="exhausted"?"assertive":"polite",children:[e.jsxs("p",{className:"credit-balance-toastbar-copy",children:[e.jsx("strong",{children:h.title})," ",h.detail]}),e.jsx("button",{type:"button",className:"credit-balance-toastbar-action",onClick:b,children:h.action}),e.jsx("button",{type:"button",className:"credit-balance-toastbar-close",onClick:m,"aria-label":h.close,children:e.jsx(nt,{size:16,weight:"regular","aria-hidden":"true"})})]})}const _c=new Set(["checkout.stripe.com","billing.stripe.com"]);async function Ns(a,t){if(!gn.some(i=>i.credits===t))throw new Error("INVALID_CREDIT_PACK");const{data:s,error:r}=await re.functions.invoke("billing-checkout",{body:{action:"topup",teamId:a,credits:t}});if(r)throw r;const o=new URL(s==null?void 0:s.url);if(o.protocol!=="https:"||!_c.has(o.hostname))throw new Error("INVALID_CHECKOUT_URL");return o.href}function Cc(){return e.jsxs("svg",{height:"28",viewBox:"0 0 1007 287",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[e.jsx("path",{d:"M216.288 53.9561C216.122 52.4668 214.799 51.8048 213.806 51.6394C212.813 51.4739 192.955 51.3084 192.955 51.3084C192.955 51.3084 176.241 35.0909 174.586 33.4361C172.931 31.7812 169.787 32.2777 168.463 32.6087C168.463 32.6087 165.319 33.6016 160.023 35.2564C159.196 32.4432 157.872 28.968 156.052 25.4928C150.094 14.0744 141.489 8.117 130.898 8.117C130.236 8.117 129.409 8.117 128.747 8.28248C128.416 7.95151 128.085 7.62054 127.754 7.12409C123.12 2.15956 117.328 -0.157216 110.378 0.00826809C96.8083 0.339237 83.4041 10.1028 72.3166 27.6441C64.5389 39.89 58.7469 55.28 57.0921 67.1949C41.5365 71.9939 30.6146 75.3036 30.4491 75.4691C22.6713 77.9513 22.3404 78.1168 21.3475 85.5636C20.52 91.0246 0 250.055 0 250.055L172.269 279.842L246.902 261.308C246.902 261.308 216.453 55.28 216.288 53.9561ZM151.418 37.9042C147.446 39.0626 142.978 40.5519 138.014 42.0413C137.848 35.2564 137.021 25.6583 133.877 17.3841C144.302 19.3699 149.267 30.9538 151.418 37.9042ZM129.078 44.8545C119.976 47.6677 110.213 50.6464 100.283 53.7906C103.097 43.1997 108.392 32.6087 114.846 25.6583C117.328 23.0106 120.638 20.1973 124.61 18.5425C128.416 26.3203 129.078 37.4077 129.078 44.8545ZM110.543 9.1099C113.688 9.1099 116.335 9.77184 118.652 11.2612C115.012 13.0815 111.371 15.8948 108.061 19.5354C99.456 28.8025 92.8367 43.0342 90.1889 56.9348C81.9147 59.4171 73.9715 61.8994 66.5247 64.2162C71.4892 42.3722 89.6925 9.77184 110.543 9.1099Z",fill:"#95BF47"}),e.jsx("path",{d:"M213.805 51.6376C212.812 51.4721 192.954 51.3066 192.954 51.3066C192.954 51.3066 176.24 35.0892 174.585 33.4343C173.923 32.7724 173.096 32.4414 172.269 32.4414V279.84L246.902 261.306C246.902 261.306 216.453 55.4437 216.287 53.9544C215.956 52.465 214.798 51.8031 213.805 51.6376Z",fill:"#5E8E3E"}),e.jsx("path",{d:"M130.898 90.0315L122.293 122.466C122.293 122.466 112.695 117.998 101.111 118.826C84.2312 119.819 84.0657 130.41 84.2312 133.223C85.2241 147.785 123.285 150.93 125.437 184.854C127.092 211.662 111.205 229.866 88.3683 231.355C60.8979 233.01 45.8389 216.958 45.8389 216.958L51.6308 192.301C51.6308 192.301 66.8554 203.719 78.9357 203.057C86.879 203.561 89.6922 196.107 89.3612 191.473C88.2028 172.608 57.0918 173.601 55.106 142.655C53.4511 116.509 70.6615 90.0315 108.557 87.5492C123.451 86.2253 130.898 90.0315 130.898 90.0315Z",fill:"white"}),e.jsx("path",{d:"M348.013 159.203C339.408 154.569 334.94 150.598 334.94 145.137C334.94 138.186 341.063 133.718 350.826 133.718C362.079 133.718 372.008 138.352 372.008 138.352L379.952 114.191C379.952 114.191 372.67 108.565 351.323 108.565C321.536 108.565 300.85 125.61 300.85 149.605C300.85 163.174 310.448 173.6 323.356 181.047C333.782 187.004 337.422 191.141 337.422 197.43C337.422 203.884 332.292 209.014 322.529 209.014C308.131 209.014 294.562 201.567 294.562 201.567L286.122 225.728C286.122 225.728 298.699 234.167 319.715 234.167C350.33 234.167 372.339 219.108 372.339 191.969C372.505 177.241 361.417 166.815 348.013 159.203ZM470.141 108.234C455.082 108.234 443.167 115.35 434.065 126.272L433.569 126.106L446.642 57.5955H412.552L379.455 231.85H413.545L424.963
26172.276C429.431 149.77 441.015 135.87 451.937 135.87C459.55 135.87 462.528 141 462.528 148.446C462.528 153.08 462.032 158.872 461.039 163.505L448.131 231.685H482.221L495.625 161.189C497.114 153.742 498.107 144.806 498.107 139.014C498.107 119.983 487.847 108.234 470.141 108.234ZM575.223 108.234C534.183 108.234 507.044 145.302 507.044 186.673C507.044 213.151 523.426 234.333 554.041 234.333C594.254 234.333 621.559 198.257 621.559 155.893C621.393 131.567 606.996 108.234 575.223 108.234ZM558.344 208.186C546.76 208.186 541.795 198.257 541.795 186.011C541.795 166.484 551.89 134.546 570.424 134.546C582.504 134.546 586.476 144.971 586.476 155.066C586.476 176.082 576.381 208.186 558.344 208.186ZM708.603 108.234C685.601 108.234 672.528 128.423 672.528 128.423H672.031L674.017 110.054H643.899C642.41 122.465 639.762 141.165 636.949 155.231L613.284 280.006H647.374L656.807 229.534H657.469C657.469 229.534 664.419 234.002 677.492 234.002C717.54 234.002 743.686 192.962 743.686 151.425C743.852 128.754 733.592 108.234 708.603 108.234ZM676.003 208.683C667.067 208.683 661.937 203.718 661.937 203.718L667.563 171.78C671.535 150.598 682.622 136.366 694.537 136.366C704.963 136.366 708.107 145.964 708.107 155.231C708.107 177.241 695.034 208.683 676.003 208.683ZM792.504 59.4159C781.582 59.4159 772.977 68.021 772.977 79.274C772.977 89.3685 779.431 96.3189 789.029 96.3189H789.525C800.116 96.3189 809.383 89.203 809.549 76.4607C809.549 66.5317 802.929 59.4159 792.504 59.4159ZM744.844 231.85H778.934L802.102 111.047H767.681L744.844 231.85ZM888.816 110.716H865.151L866.31 105.09C868.296 93.5056 875.246 83.0801 886.499 83.0801C892.622 83.0801 897.421 84.735 897.421 84.735L904.04 58.092C904.04 58.092 898.083 55.1133 885.506 55.1133C873.426 55.1133 861.345 58.5884 852.078 66.5317C840.494 76.4607 835.033 90.6924 832.22 105.09L831.227 110.716H815.341L810.376 136.366H826.263L808.225 231.85H842.315L860.352 136.366H883.851L888.816 110.716ZM970.896 111.047C970.896 111.047 949.548 164.829 939.95 194.12H939.454C938.792 184.687 931.014 111.047 931.014 111.047H895.27L915.79 222.087C916.286 224.569 915.955 226.059 915.128 227.713C911.156 235.326 904.537 242.772 896.593 248.233C890.14 252.867 883.024 255.846 877.232 257.831L886.664 286.791C893.615 285.302 907.846 279.675 920.092 268.257C935.648 253.694 950.045 231.189 964.773 200.574L1006.48 111.047H970.896Z",fill:"black"})]})}function jc(){return e.jsx("svg",{height:"22",viewBox:"0 0 1119 183",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:e.jsx("path",{d:"M323.9 142.1H304.7V60.8H323.9V71.6C329 63.7 337.4 58.8 348.7 58.8C368.6 58.8 380.1 71.9 380.1 93.1V142.1H360.9V96.8C360.9 84.2 354.7 76.5 342.8 76.5C331.3 76.5 323.8 85.3 323.8 99.1V142.1H323.9ZM394.2 107V60.8H413.4V105.9C413.4 118.7 419.6 126.4 430.4 126.4C441.2 126.4 447.4 118.7 447.4 105.9V60.8H466.4V107C466.4 130.4 452.9 143.9 430.2 143.9C407.7 144.1 394.2 130.4 394.2 107ZM472.2 60.8H492.7L514.4 117.2L536.3 60.8H556.2L522.8 142.1H505.8L472.2 60.8ZM633.6 122.9C626.8 135.7 614.2 143.9 596.9 143.9C572.2 143.9 554.7 126.4 554.7 101.4C554.7 77.1 572.6 58.9 596 58.9C619.7 58.9 636.4 77.2 636.4 101.4C636.4 102.9 636.4 104.9 636.2 107.2H573.8C574.7 118.9 585.1 127.8 597.2 127.8C607.8 127.8 613.3 122.7 617.8 115.6L633.6 122.9ZM617.3 93.3C616 82.5 607.4 74.5 595.6 74.5C584.1 74.5 575.1 84 573.9 93.3H617.3ZM665.9 142.1H646.7V60.8H665.9V71.6C670.5 63.7 678 58.8 689.1 58.8C700.8 58.8 709.4 64.5 713.8 74C718.2 66.1 727.3 58.8 740.8 58.8C759.6 58.8 770.4 71.8 770.4 92V141.8H751.2V95.8C751.2 83.9 745.7 76.4 735.7 76.4C725.3 76.4 718.5 84.8 718.4 98.1V142.1H699.2V96.5C699.2 83.9 693.7 76.4 683.7 76.4C673.1 76.4 666.4 85 666.4 98.9V142.1H665.9ZM793.6 115.2C796.3 122.7 802.5 127.6 809.9 127.6C815.9 127.6 820.9 124.9 820.9 119.2C820.9 114.6 818.2 112.4 811.6 110.4L801.7 107.3C788 102.9 781.1 95.1 781.1 83.7C781.1 68.5 793.9 58.9 809 58.9C822.3 58.9 833.3 66 838.6 77.3L823.3 85.5C820.2 79.1 815.3 74.7 809.2 74.7C803.7 74.7 799.3 77.4 799.3 82.2C799.3 86 802.2 89 808.4 91L818.1 94.1C833.3 99.2 839.5 107.1 839.5 117.8C839.5 134.4 825.6 143.9 809.7 143.9C794.5 143.9 782.9 135.9 778.3 123.3L793.6 115.2ZM868.2 142.1H849.1V30.5H868.3V71.6C873.4 63.7 881.8 58.8 893.1 58.8C913 58.8 924.5 71.9 924.5 93.1V142.1H905.3V96.8C905.3 84.2 899.1 76.5 887.2 76.5C875.7 76.5 868.2 85.3 868.2 99.1V142.1ZM1021.1 101.4C1021.1 125.3 1002.7 143.9 977.8 143.9C952.9 143.9 934.5 125.1 934.5 101.4C934.5 77.5 952.9 58.9 977.8 58.9C1002.8 58.8 1021.1 77.6 1021.1 101.4ZM953.7 101.4C953.7 115.3 964.3 126.4 977.8 126.4C991.3 126.4 1001.9 115.3 1001.9 101.4C1001.9 87.5 991.3 76.4 977.8 76.4C964.3 76.4 953.7 87.5 953.7 101.4ZM1051.2 60.8V72.5C1057.2 64.1 1067.5 59 1078.8 59C1101.3 59 1118.4 77.3 1118.4 101.5C1118.4 125.4 1101.2 144 1078.8 144C1067.5 144 1057.3 139.4 1051.2 130.9V172.3H1032.2V60.8H1051.2ZM1074.7 76.4C1061 76.4 1050.4 87.7 1050.4 101.6C1050.4 115.5 1061 126.8 1074.7 12
266.8C1088.4 126.8 1099 115.5 1099 101.6C1099 87.7 1088.6 76.4 1074.7 76.4ZM162.3 0H162.1C138.2 0 115.5 9.29999 98.6 25.9C90 22.2 80.5 20.2 70.8 20.2C31.7 20.2 0 52.2 0 91.2C0 130.3 31.8 162.2 71 162.2C80.5 162.2 90 160.2 98.6 156.5C115 172.6 137.5 182.4 162.1 182.4C212.5 182.4 253.4 141.5 253.4 91.1C253.4 41.1 212.5 0 162.3 0ZM162.1 162.4C123 162.4 91.1 130.4 91.1 91.4H70.8C70.8 109.3 75.9 126.1 84.9 140.2C80.3 141.5 75.6 142.2 70.8 142.2C42.9 142.2 20 119.4 20 91.4C20 63.5 42.8 40.6 70.8 40.6C81.9 40.6 92.3 44.1 101.3 50.8C114.3 60.5 121.6 75.3 121.6 91.3H141.9C141.9 70.1 132.8 50.4 116.5 36.9C129.3 26.3 145.3 20.3 162.1 20.3C201.2 20.3 233.1 52.3 233.1 91.3C233.2 130.4 201.4 162.4 162.1 162.4Z",fill:"#2C3357"})})}function Ec(){return $n({mutationFn:async a=>{Pn();const{data:t,error:s}=await re.auth.getSession();if(s||!t.session)throw new Error("authenticated_session_required");const{data:r,error:o}=await re.functions.invoke("shopify-connect",{body:a});if(o)throw o;if(!(r!=null&&r.redirectUrl))throw new Error("missing_redirect_url");return r},onSuccess:({redirectUrl:a})=>{window.location.assign(a)}})}function Ac(){return $n({mutationFn:async(a={})=>{Pn();const{data:t,error:s}=await re.auth.getSession();if(s||!t.session)throw new Error("authenticated_session_required");const{data:r,error:o}=await re.functions.invoke("nuvemshop-connect",{body:a});if(o)throw o;if(!(r!=null&&r.redirectUrl))throw new Error("missing_redirect_url");return r},onSuccess:({redirectUrl:a})=>{window.location.assign(a)}})}function Pc({open:a,onOpenChange:t,redirectUri:s="/settings/connections",onPreviewConnect:r}){const{lang:o}=le(),i=o==="pt-BR",l=Ec(),d=Ac(),[c,h]=n.useState(null),[m,b]=n.useState(""),[p,w]=n.useState(!1),[y,E]=n.useState(!1),[v,C]=n.useState(null),A=Eo(m),S=y||l.isPending||d.isPending,P=c==="shopify"&&p&&m.length>0&&!A,j=()=>{h(null),b(""),w(!1),E(!1),C(null)},k=T=>{!T&&!S&&j(),t(T)},R=T=>{h(T),C(null),T==="nuvemshop"&&w(!1)},V=async T=>{if(T.preventDefault(),C(null),!!c){if(c==="shopify"&&!A){w(!0);return}try{if(r){E(!0),await r(c),E(!1),j(),t(!1);return}c==="shopify"?await l.mutateAsync({shop_domain:A,redirect_uri:s}):await d.mutateAsync({redirect_uri:s})}catch{E(!1),C(i?"Não foi possÃvel iniciar a conexão. Tente novamente.":"We couldn't start the connection. Try again.")}}};return e.jsx(oa,{open:a,onOpenChange:k,children:e.jsxs(ia,{"data-no-translate":!0,className:"w-[calc(100%-32px)] max-w-[520px] gap-0 border-snew-border bg-snew-surface p-6",onEscapeKeyDown:T=>S&&T.preventDefault(),onPointerDownOutside:T=>S&&T.preventDefault(),children:[e.jsxs(Ao,{className:"pr-8",children:[e.jsx(la,{className:"text-[18px] font-medium text-snew-ink",children:i?"Conectar loja":"Connect store"}),e.jsx(ca,{className:"pt-1 text-[13px] leading-relaxed text-snew-ink-muted",children:i?"Escolha a plataforma da sua loja. Você será redirecionado para autorizar a conexão.":"Choose your store platform. You'll be redirected to authorize the connection."})]}),e.jsxs("form",{onSubmit:V,className:"mt-5",children:[e.jsxs("div",{role:"radiogroup","aria-label":i?"Plataforma da loja":"Store platform",className:"grid grid-cols-2 gap-3",children:[e.jsx(Ga,{selected:c==="nuvemshop",onClick:()=>R("nuvemshop"),label:"Nuvemshop",children:e.jsx(jc,{})}),e.jsx(Ga,{selected:c==="shopify",onClick:()=>R("shopify"),label:"Shopify",children:e.jsx(Cc,{})})]}),c==="shopify"&&e.jsx(bs,{autoFocus:!0,id:"store-connect-shopify-domain",containerClassName:"mt-5",label:i?"DomÃnio da loja":"Store domain",placeholder:"minhaloja.myshopify.com",value:m,onChange:T=>{b(T.target.value),C(null)},onBlur:()=>w(!0),autoComplete:"off",spellCheck:!1,error:P?i?"Use o domÃnio myshopify.com da sua loja.":"Use your store's myshopify.com domain.":void 0,hint:i?"Você encontra esse domÃnio no admin Shopify, em Configurações â DomÃnios.":"Find this domain in Shopify Admin under Settings â Domains."}),c==="nuvemshop"&&e.jsx("p",{className:"mt-5 rounded-snew-md bg-snew-surface-subtle px-3 py-2.5 text-[12px] leading-relaxed text-snew-ink-muted",children:i?"A autorização será concluÃda com segurança na Nuvemshop.":"You'll securely complete authorization in Nuvemshop."}),v&&e.jsx("p",{role:"alert",className:"mt-4 text-[12px] text-[hsl(var(--color-text-danger))]",children:v}),e.jsxs(Po,{className:"mt-6 gap-2 sm:gap-2",children:[e.jsx(ze,{type:"button",variant:"secondary",onClick:()=>k(!1),disabled:S,children:i?"Cancelar":"Cancel"}),e.jsx(ze,{type:"submit",disabled:S||!c||c==="shopify"&&!A,iconLeft:S?e.jsx(Qr,{size:15,className:"animate-spin"}):void 0,children:S?i?"Conectandoâ¦":"Connectingâ¦":i?"Conectar":"Connect"})]})]})]})})}function Ga({selected:a,onClick:t,label:s,children:r}){return e.jsx("button",{type:"button",role:"radio","aria-checked":a,"aria-label":s,onClick:t,className:K("flex min-h-[88px] items-center justify-center rounded-snew-lg border bg-snew-surface px-4 transition-colors","hover:border-snew-border-strong hover:bg-snew-surface-subtle focus-visible:outline-none focus-visible:shadow-snew-focus",a?"border-snew-border-active shadow-snew-focus":"border-snew-border"),children:r})}const Sc=["/signin","/signup","/landing","/onboarding","/auth","/login","/board-locked"];function Tc(){var _;const{lang:a}=le(),t=$e(a),s=_e(),r=Me(),o=En(),i=_t(),l=pc(),{user:d,loading:c,signOut:h,refresh:m}=Ce(),b=Yr(),[p,w]=n.useState(!1),[y,E]=n.useState(!1),[v,C]=n.useState(!1),[A,S]=n.useState(!1),[P,j]=n.useState(!1),[k,R]=n.useState(!1);if(n.useEffect(()=>{w(!1),E(!1),C(!1)},[s.pathname,d==null?void 0:d.id,d==null?void 0:d.teamId]),Sc.some(H=>s.pathname.startsWith(H))||c||!d||b||l)return null;const T=H=>{if(w(!1),va(s.pathname,H)){ya(H);return}r(H)},L=()=>{w(!1),C(!1),eo({trigger:"manual"})},oe=async H=>{if(!(!d.teamId||k)){R(!0);try{const I=await Ns(d.teamId,H);window.location.assign(I)}catch{be.error(t.checkoutError)}finally{R(!1)}}},G=()=>
26{i.invalidateQueries({queryKey:["billing-snapshot"]})},Q={name:d.fullName,email:d.email,avatarUrl:d.avatarUrl??void 0},ee=Cn((_=d.activeStore)==null?void 0:_.source),M=(s.pathname==="/"||s.pathname==="/home-5")&&d.plan==="free",f=/^\/board(?:$|-)/.test(s.pathname);return e.jsxs(e.Fragment,{children:[e.jsxs("div",{role:"group","aria-label":t.accountControls,"data-no-translate":!0,style:{position:"fixed",top:N[4],right:f?Xr.edgeInset:"clamp(16px, 3vw, 40px)",zIndex:1e3,display:"flex",alignItems:"center",gap:N[2]},children:[s.pathname==="/board"&&!Jr&&e.jsx("button",{className:"credit-usage-button account-share-button",onClick:()=>S(!0),children:t.share}),M&&e.jsx("button",{className:"credit-usage-button account-upgrade-button snew-main-action",onClick:L,children:t.upgrade}),e.jsxs(Ps,{open:p,onOpenChange:w,children:[e.jsx(Ss,{asChild:!0,children:e.jsx(rc,{credits:o,user:Q})}),e.jsx(Ts,{children:e.jsx(ks,{className:"account-credits-popover-content",align:"end",sideOffset:5,collisionPadding:16,style:{zIndex:1001,outline:"none"},"aria-label":t.accountAndCredits,children:e.jsx(oc,{credits:o,user:Q,store:d.activeStore,profileError:d.profileError,storeError:d.storeError,onRefreshProfile:()=>void m(),onStoreClick:()=>{w(!1),ee?T("/settings/connections"):j(!0)},onBuyCreditsClick:()=>{w(!1),C(!0)},onUpgradeClick:L,onUsageDetailsClick:()=>{w(!1),E(!0)},onSettingsClick:()=>T("/settings"),onManagePlanClick:()=>T("/settings/plan"),onRetry:G,onSignOut:async()=>{w(!1);try{if(await h(),va(s.pathname,"/signin")){ya("/signin");return}r("/signin")}catch{be.error(t.signOutError)}}})})})]})]}),e.jsx(cc,{open:y,onClose:()=>E(!1),credits:o,onRetry:G}),e.jsx(dc,{open:v,onClose:()=>C(!1),onUpgrade:L,onPurchase:oe,busy:k}),e.jsx(mc,{open:A,onClose:()=>S(!1)}),e.jsx(Pc,{open:P,onOpenChange:j}),e.jsx(wc,{credits:o,accountId:d.teamId,onUpgrade:L})]})}const kc=10*60*1e3;function Rc(){const{user:a}=Ce(),t=n.useRef(!1);return n.useEffect(()=>{if(!(a!=null&&a.id))return;let s=!1;const r=async()=>{if(!(s||t.current||document.visibilityState!=="visible")){t.current=!0;try{const{error:l}=await re.rpc("touch_email_activity",{p_locale:go()?"pt-BR":"en"});l&&console.warn("email_activity_touch_failed")}catch{console.warn("email_activity_touch_failed")}finally{t.current=!1}}},o=()=>{document.visibilityState==="visible"&&r()};r();const i=window.setInterval(()=>void r(),kc);return document.addEventListener("visibilitychange",o),()=>{s=!0,window.clearInterval(i),document.removeEventListener("visibilitychange",o)}},[a==null?void 0:a.id]),null}const Qa="paywall",Os="snew:paywall-demo";function Ds(){try{return window.sessionStorage}catch{return null}}function Hc(){var a;return((a=Ds())==null?void 0:a.getItem(Os))==="1"}function Lc(){try{const a=new URL(window.location.href);if(!a.searchParams.has(Qa))return;a.searchParams.delete(Qa),window.history.replaceState(window.history.state,"",a.toString())}catch{}}function Ic(a){const t=Ds();t&&(t.removeItem(Os),Lc(),console.info("[paywall] modo demo desligado"))}function Vc(){const[a,t]=n.useState(!1);return n.useEffect(()=>{const s=()=>t(Hc());s(),window.addEventListener("storage",s);const r=window.setInterval(s,1500);return()=>{window.removeEventListener("storage",s),window.clearInterval(r)}},[]),a?e.jsxs("div",{style:{position:"fixed",left:16,bottom:16,zIndex:2e3,display:"inline-flex",alignItems:"center",gap:8,height:28,padding:"0 6px 0 10px",borderRadius:999,background:"rgba(28,28,28,0.9)",color:"#FFFFFF",fontSize:11,fontFamily:"inherit",backdropFilter:"blur(6px)"},children:["modo paywall demo · geração bloqueada",e.jsx("button",{type:"button",onClick:()=>{Ic(),t(!1)},style:{border:"none",background:"rgba(255,255,255,0.16)",color:"#FFFFFF",borderRadius:999,height:20,padding:"0 8px",fontSize:11,fontFamily:"inherit",cursor:"pointer"},children:"desligar"})]}):null}const Mc=["checkout","type","credits","session_id"];function Nc(a){const t=new URLSearchParams(a);for(const r of Mc)t.delete(r);const s=t.toString();return s?`?${s}`:""}function Oc(){const{user:a}=Ce(),t=_e(),s=Me(),r=_t(),o=new URLSearchParams(t.search),i=o.get("session_id"),l=o.get("type")==="topup",d=to({queryKey:["checkout-confirmation",a==null?void 0:a.id,a==null?void 0:a.teamId,i],enabled:!!i&&!!(a!=null&&a.teamId),queryFn:async()=>{const{data:c,error:h}=await re.functions.invoke("billing-checkout",{body:{action:"status",teamId:a.teamId,sessionId:i}});if(h||!["pending","confirmed","expired"].includes(c==null?void 0:c.status))throw new Error("CHECKOUT_CONFIRMATION_UNAVAILABLE");return c.status},refetchInterval:c=>c.state.data==="confirmed"||c.state.data==="expired"||c.state.error?!1:5e3,retry:1,gcTime:0});return n.useEffect(()=>{d.data==="confirmed"&&r.invalidateQueries({queryKey:["billing-snapsh
26ot"]})},[d.data,r]),n.useEffect(()=>{if(!(d.data!=="confirmed"&&d.data!=="expired")&&new URLSearchParams(t.search).has("session_id")){if(!l&&i){const c=po();mo(d.data==="confirmed"?"upgrade_completed":"upgrade_checkout_expired",{plan:(c==null?void 0:c.plan)??null,cycle:(c==null?void 0:c.cycle)??null,surface:(c==null?void 0:c.surface)??"unknown",elapsed_seconds:c?Math.max(0,Math.round((Date.now()-c.startedAt)/1e3)):null},{dedupeKey:i})}s({pathname:t.pathname,search:Nc(t.search),hash:t.hash},{replace:!0})}},[i,d.data,t.hash,t.pathname,t.search,s,l]),n.useEffect(()=>{if(!i||!a)return;const c=`checkout-${i}`;if(d.isError){be.error("We couldnât confirm your payment.",{id:c,action:{label:"Try again",onClick:()=>void d.refetch()}});return}if(d.data==="confirmed"){be.success(l?"Your credits are confirmed.":"Your plan and credits are confirmed.",{id:c});return}if(d.data==="expired"){be.message(l?"Checkout expired. No credits were added by this return.":"Checkout expired. No plan was activated by this return.",{id:c});return}be.loading("Confirming your paymentâ¦",{id:c})},[i,a,l,d.data,d.isError,d.refetch]),null}const Jt="snew:staging-test-access:v1";function ga(){try{return typeof window>"u"?null:window.localStorage}catch{return null}}function Dc(a){if(!a)return null;try{const t=JSON.parse(a);return typeof t.userId!="string"||typeof t.teamId!="string"||typeof t.expiresAt!="string"?null:t}catch{return null}}function Fc(a=Date.now(),t=ga()){if(!t)return null;try{const s=Dc(t.getItem(Jt)),r=s?Date.parse(s.expiresAt):Number.NaN;return!s||!Number.isFinite(r)||r<=a?(s&&t.removeItem(Jt),null):s}catch{return null}}function Fs(a,t,s=Date.now(),r=ga()){if(!a||!t||!r)return!1;const o=Fc(s,r);return(o==null?void 0:o.userId)===a&&o.teamId===t}function Zc(a,t,s,r=Date.now(),o=ga()){if(!o||!a||!t||Date.parse(s)<=r)return!1;try{return o.setItem(Jt,JSON.stringify({userId:a,teamId:t,expiresAt:s})),Fs(a,t,r,o)}catch{return!1}}const zc=({children:a})=>{const[t,s]=n.useState(null),[r,o]=n.useState(!1),[i,l]=n.useState(!1),[d,c]=n.useState(!1),[h,m]=n.useState(0),b=n.useRef(!1),{user:p}=Ce(),w=En(),y=lt&&Fs(p==null?void 0:p.id,p==null?void 0:p.teamId),E=n.useRef(p==null?void 0:p.id);E.current=p==null?void 0:p.id;const v=_t();n.useEffect(()=>(ao(),no(s)),[]),n.useEffect(()=>{so(lt&&(p==null?void 0:p.profile.stagingDemoScenario)==="credits-exhausted"?!1:y?!0:w.status==="ready"?sa(w)>0:w.status==="error"?"error":null)},[w,y,h,p==null?void 0:p.profile.stagingDemoScenario]),n.useEffect(()=>{s(null)},[p==null?void 0:p.id,p==null?void 0:p.teamId]),n.useEffect(()=>{ro&&(t==null?void 0:t.trigger)!=="manual"&&s(null)},[t]),n.useEffect(()=>{let P=!0;return l(!1),!t||y||!lt||!(p!=null&&p.teamId)?()=>{P=!1}:(re.functions.invoke("staging-test-access",{body:{action:"status",teamId:p.teamId}}).then(({data:j,error:k})=>{P&&!k&&l((j==null?void 0:j.eligible)===!0)}),()=>{P=!1})},[t,y,p==null?void 0:p.id,p==null?void 0:p.teamId]),n.useEffect(()=>{t&&t.trigger!=="manual"&&y&&s(null)},[t,y]),n.useEffect(()=>{new URLSearchParams(window.location.search).has("checkout")&&v.invali
26dateQueries({queryKey:["billing-snapshot"]})},[v]);const C=n.useCallback(async(P,j)=>{if(b.current||!(p!=null&&p.teamId))return;b.current=!0,o(!0);const k=p.id;try{const R=await oo(p.teamId,P,j);E.current===k&&window.location.assign(R)}catch{be.error("We couldnât open checkout. Try again.")}finally{b.current=!1,o(!1)}},[p]),A=n.useCallback(async P=>{if(b.current||!(p!=null&&p.teamId))return;b.current=!0,o(!0);const j=p.id;try{const k=await Ns(p.teamId,P);E.current===j&&window.location.assign(k)}catch{be.error("We couldnât open credit checkout. Try again.")}finally{b.current=!1,o(!1)}},[p]),S=n.useCallback(async()=>{if(!(!lt||!(p!=null&&p.teamId)||d)){c(!0);try{const{data:P,error:j}=await re.functions.invoke("staging-test-access",{body:{action:"activate",teamId:p.teamId}});if(j||(P==null?void 0:P.activated)!==!0)throw new Error("TEST_ACCESS_UNAVAILABLE");if(typeof P.expiresAt!="string"||!Zc(p.id,p.teamId,P.expiresAt))throw new Error("TEST_ACCESS_NOT_PERSISTED");m(k=>k+1),s(null),be.success("Test access released. Continue testing.")}catch{be.error("We couldnât release test access. Try again.")}finally{c(!1)}}},[d,p==null?void 0:p.id,p==null?void 0:p.teamId]);return e.jsxs(e.Fragment,{children:[a,e.jsx(Oc,{}),t&&e.jsx(io,{onClose:()=>s(null),onCheckout:C,onCreditCheckout:A,onActivateTestAccess:i?S:void 0,testAccessBusy:d,busy:r})]})},ie=(a,t,s)=>`https://images.unsplash.com/${a}?auto=format&fit=crop&w=${t}&h=${s}&q=80`,Dt=(a,t,s,r,o,i)=>`https://images.unsplash.com/${a}?auto=format&fit=crop&crop=focalpoint&fp-x=${r}&fp-y=${o}&fp-z=${i}&w=${t}&h=${s}&q=80`,Ya="photo-1617897903246-719242758050",q={productPack:Dt("photo-1611930022073-b7a4ba5fcccd",800,800,.5,.62,1.35),productAlt:ie("photo-1585652757141-8837d676fac8",800,800),serum:ie("photo-1607602132700-068258431c6c",800,800),assetHero:ie("photo-1620916297397-a4a5402a3c6c",1e3,1250),assetTexture:ie("photo-1601049541289-9b1b7bbbfe19",1e3,1250),assetStillWithFlowers:ie(Ya,900,900),assetStillNoFlowers:Dt(Ya,900,900,.26,.52,1.9),assetStory:Dt("photo-1607602132700-068258431c6c",720,1280,.5,.5,1.1),assetBanner:ie("photo-1608571423902-eed4a5ad8108",1280,720),moodLight:ie("photo-1608571423902-eed4a5ad8108",500,500),moodWater:ie("photo-1601049676869-702ea24cfd58",500,500),moodSkin:ie("photo-1601049541289-9b1b7bbbfe19",500,500),casting:ie("photo-1544005313-94ddf0286df2",300,300),directionClinical:ie("photo-1608571423902-eed4a5ad8108",700,875),directionWarm:ie("photo-1601049676869-702ea24cfd58",700,875)},Zu={brand:"Aster Labs",category:"Premium skincare",connectedAt:"Connected · Shopify",userFirstName:"JP"},Zs=[{id:"hydration-cream",name:"Hydration Cream",category:"Moisturizer · 50ml",price:"$68",imageUrl:q.productPack,canonicalReferenceUrl:q.productPack,signals:["Product-page traffic +38% (30d)","Add-to-cart 1.2% â below store average","No campaign creative"]},{id:"barrier-serum",name:"Barrier Serum",category:"Serum · 30ml",price:"$92",imageUrl:q.serum,canonicalReferenceUrl:q.serum,signals:["Best seller","Creative refreshed 12 days ago"]},{id:"mineral-cleanser",name:"Mineral Cleanser",category:"Cleanser · 150ml",price:"$44",imageUrl:q.productAlt,canonicalReferenceUrl:q.productAlt,signals:["Repeat purchase driver","Paid social CTR declining"]}],zu=a=>Zs.find(t=>t.id===a),gt=[{id:"opp-01",kind:"launch",priority:"primary",title:"Launch your new moisturizer",reason:"Product interest is growing, but the product has no launch campaign. Snew recommends a texture-led education campaign for paid social and product pages.",rationale:"Your Hydration Cream is receiving strong product-page traffic but has no creative that demonstrates texture, application, or ingredient credibility. I recommend a product-first campaign designed to improve consideration and add-to-cart conversion.",evidence:["Product-page sessions up 38% over 30 days","Add-to-cart rate 1.2% vs 3.4% store average","Zero campaign assets attached to this SKU","Top on-site search term: âcream textureâ"],confidence:.86,productIds:["hydration-cream"],objective:"Product education and conversion",audience:"Skincare-aware customers considering a premium moisturizer",channels:["Paid social","Product page","Email"],proposedSet:["Product-in-hand campaign hero â 4:5","Texture and application close-up â 4:5","Product with contextual props â 1:1","Paid s
26ocial story variation â 9:16","Product page banner â 16:9"],estimatedMinutes:14},{id:"opp-02",kind:"refresh",priority:"secondary",title:"Refresh the Mineral Cleanser ads",reason:"Paid social CTR has fallen for three consecutive weeks on the same two creatives. A new angle should recover delivery before spend efficiency drops further.",rationale:"The Mineral Cleanser is still converting, but its two active creatives have been in market for 46 days and click-through has decayed 31%. A fresh creative angle usually restores delivery before the audience is exhausted.",evidence:["CTR â31% over 3 weeks","Same 2 creatives live for 46 days","Frequency 4.8"],confidence:.71,productIds:["mineral-cleanser"],objective:"Recover paid social efficiency",audience:"Existing prospecting audiences on Meta",channels:["Paid social"],proposedSet:["Three new paid social angles â 4:5 and 9:16"],estimatedMinutes:9},{id:"opp-03",kind:"seasonal",priority:"secondary",title:"Plan the winter barrier set",reason:"Barrier Serum and Hydration Cream are bought together by 22% of repeat customers, and cold-weather demand starts in five weeks.",rationale:"Two of your products are already behaving like a set. A bundled seasonal story would give both a reason to be advertised together before the cold-weather peak.",evidence:["22% co-purchase rate","Seasonal peak in ~5 weeks","No bundle creative exists"],confidence:.64,productIds:["barrier-serum","hydration-cream"],objective:"Increase average order value",audience:"Repeat customers and winter-season prospects",channels:["Email","Paid social","Product page"],proposedSet:["Set hero, two product stories, one email banner"],estimatedMinutes:16}],$u=a=>gt.find(t=>t.id===a),dt=["Understanding the opportunity","Selecting the campaign products","Developing the creative direction","Building the campaign set","Checking brand and product rules","Preparing production"],$c=["Read 38% traffic growth and a 1.2% add-to-cart rate as a consideration gap, not an awareness gap.","Selected Hydration Cream as the hero product. Barrier Serum was excluded to keep one clear message.","Using a product-first visual direction based on recent store performance.","Built five assets: one hero, one education frame, one credibility still, and two channel formats.","Excluded water-submersion styles because the label must remain fully legible.","Locked the canonical jar reference so every frame reproduces the same packaging."],Bc=[{id:"a01",role:"hero",title:"Campaign hero",purpose:"Product-in-use hero",productIds:["hydration-cream"],aspectRatio:"4:5",channel:"Paid social · Product page",variation:"Model and product interaction",dependencies:[],required:!0,usesModel:!0},{id:"a02",role:"product_detail",title:"Product texture",purpose:"Education / detail",productIds:["hydration-cream"],aspectRatio:"4:5",channel:"Paid social",variation:"Product close-up with applied texture",dependencies:[],required:!0,usesModel:!0},{id:"a03",role:"lifestyle",title:"Product still life",purpose:"Product credibility",productIds:["hydration-cream"],aspectRatio:"1:1",channel:"Product page · Email",variation:"Contextual props, no model",dependencies:[],required:!0,usesModel:!1},{id:"a04",role:"story",title:"Story variation",purpose:"Channel variation",productIds:["hydration-cream"],aspectRatio:"9:16",channel:"Paid social",variation:"Closer crop, motion cue",dependencies:["a01"],required:!0,usesModel:!0},{id:"a05",role:"pdp_banner",title:"PDP banner",purpose:"Store conversion",productIds:["hydration-cream"],aspectRatio:"16:9",channel:"Product page",variation:"Product-first, copy-safe area",dependencies:["a03"],required:!0,usesModel:!1}],Uc=[{id:"d1",actor:"planner",timestamp:"10:02",decision:"Selected Hydration Cream as hero product",rationale:"High product interest and no launch creative.",evidence:["Product-page sessions +38%","0 campaign assets on this SKU"],affectedIds:["hydration-cream"]},{id:"d2",actor:"planner",timestamp:"10:03",decision:"Chose a product-first direction over a lifestyle direction",rationale:"The gap is consideration, not awareness. Texture and application evidence answers the objection that is losing the add-to-cart.",evidence:["Top on-site search term: âcream textureâ","Add-to-cart 1.2%"],affectedIds:["campaign"]},{id:"d3",actor:"planner",timestamp:"10:04",decision:"Excluded submerged-product styles",rationale:"Full label legibility is a campaign invariant.",evidence:["Brand rule: packaging typography must stay readable"],affectedIds:["campaign"],technical:"Eligibility filter removed 6 candidate scene families before selection."},{id:"d4",actor:"planner",timestamp:"10:05",decision:"Cast one adult female model, no direct-to-camera smile",rationale:"The brand's approved imagery reads as calm and clinical. A direct smile shifts the campaign toward mass-market beauty.",evidence:["6 previously approved campaigns","Brand tone: restrained, credible"],affectedIds:["a01","a02","a04"]},{id:"d5",actor:"planner",timestamp:"10:06",decision:"Planned two model-free assets for credibility and conversion",rationale:"Product page and PDP banner convert better when packaging is unobstructed and there is a copy-safe area.",evidence:["Store PDP layout","Channel spec 16:9"],affectedIds:["a03","a05"]}],Xa={id:"plan-hyd-01",version:1,status:"ready",opportunity:{id:"opp-01",reason:gt[0].reason,evidence:gt[0].evidence,confidence:gt[0].confidence},name:"Hydration, Made Visible",objective:"Product education and conversion",audie
26nce:"Skincare-aware customers considering a premium moisturizer",products:[Zs[0]],concept:{name:"Hydration, Made Visible",proposition:"Make hydration something you can see before you can feel it.",narrative:"The campaign moves from evidence to desire: the texture is shown at close range, the application is shown on real skin, and the packaging is shown intact and credible. Nothing is abstracted â every frame is an argument for the product doing what it claims."},direction:{vibeLabel:"Product-first · refined · sensory · editorial",palette:[{name:"Soft coral",hex:"#E8A08D",role:"Signature accent"},{name:"Mineral blue",hex:"#8FA8B8",role:"Cool counterweight"},{name:"Warm cream",hex:"#EFE6DA",role:"Dominant field"},{name:"Deep green",hex:"#2F4739",role:"Depth and credibility"}],casting:[{id:"cast-a",name:"Sara",role:"Primary model â hands and partial face",imageUrl:q.casting,notes:"Natural expressive skin, visible pores, no direct-to-camera smile."}],environments:[{id:"env-1",label:"Soft daylight interior",imageUrl:q.moodLight},{id:"env-2",label:"Controlled water cue",imageUrl:q.moodWater},{id:"env-3",label:"Skin at close range",imageUrl:q.moodSkin}],lighting:["One large diffused source","Negative fill for shape","No blown windows"],cameraLanguage:["Medium-format stillness","Close but not macro","Slight off-axis framing"]},invariants:["Packaging geometry and label typography match the canonical reference","Full label legibility in every frame","One product, one message â no secondary SKU in frame","Natural skin texture with visible pores"],avoidables:["Plastic skin","Generic beige spa","Dry leaves","Linen texture wardrobe","Blown windows","Fake foam","Distorted jar","Excessive symmetry"],assets:Bc,decisionLog:Uc},qc=[{id:"clinical",label:"Clinical and product-focused",tradeoff:"Reads as credible and precise. Less emotional pull in the feed.",imageUrl:q.directionClinical},{id:"warm",label:"Warmer and lifestyle-led",tradeoff:"Stops the scroll more reliably. Slightly less ingredient credibility.",imageUrl:q.directionWarm}],Wc=[{id:"l1",statement:"Packaging must always be reproduced from the canonical reference",scope:"Brand",kind:"brand_truth",confidence:"High",evidence:"Brand rule",status:"active"},{id:"l2",statement:"Prefer product-focused compositions",scope:"Brand",kind:"confirmed",confidence:"High",evidence:"6 approvals",status:"active"},{id:"l3",statement:"Avoid flowers with acne-care products",scope:"Product line",kind:"inferred",confidence:"Medium",evidence:"2 corrections",status:"active"},{id:"l4",statement:"Sara works well for premium launches",scope:"Campaign type",kind:"inferred",confidence:"Medium",evidence:"3 approvals",status:"active"},{id:"l5",statement:"Coral performs strongly in paid social",scope:"Channel",kind:"hypothesis",confidence:"Experimental",evidence:"2 campaigns",status:"active"}],Bu=[{id:"meta",label:"Meta Ads",detail:"4:5 and 9:16 · 3 assets",ready:!0},{id:"shopify",label:"Shopify product page",detail:"1:1 and 16:9 · 2 assets",ready:!0},{id:"email",label:"Email",detail:"1:1 · 1 asset",ready:!0}],zs=[{key:"productFidelity",label:"Product fidelity",weight:25,minimum:95,hardGate:!0},{key:"anatomyInteraction",label:"Anatomy and interaction",weight:15,minimum:95,hardGate:!0},{key:"physicalPlausibility",label:"Physical plausibility",weight:10,minimum:80,hardGate:!1},{key:"directionAdherence",label:"Direction adherence",weight:12,minimum:80,hardGate:!1},{key:"integrationComposition",label:"Integration and composition",weight:10,minimum:80,hardGate:!1},{key:"brandPalette",label:"Brand and palette",weight:8,minimum:80,hardGate:!1},{key:"commercialReadiness",label:"Commercial readiness",weight:12,minimum:85,hardGate:!1},{key:"technicalReadiness",label:"Technical readiness",weight:8,minimum:90,hardGate:!1}];function Kc(a){let t=0,s=0;for(const r of zs){const o=a[r.key];typeof o=="number"&&(t+=o*r.weight,s+=r.weight)}return s===0?0:Math.round(t/s)}function Gc(a){return zs.filter(t=>t.hardGate).every(t=>{const s=a[t.key];return typeof s!="number"||s>=t.minimum})}const Qe=(a,t,s,r,o,i={})=>({id:a,scope:"asset",subjectIds:t,scores:s,hardGatesPassed:Gc(s),defects:[],weightedScore:Kc(s),disposition:r,summary:o,...i}),Ft=Qe("qa-a01",["a01"],{productFidelity:97,anatomyInteraction:96,physicalPlausibility:92,directionAdherence:90,integrationComposition:89,brandPalette:91,commercialReadiness:93,technicalReadiness:96},"APPROVE","Product identity, hand anatomy and product interaction all passed. Composition matches the planned hero framing."),Ja=Qe("qa-a02-1",["a02"],{productFidelity:82,anatomyInteraction:95,physicalPlausibility:88,directionAdherence:91,integrationComposition:90,brandPalette:92,commercialReadiness:74,technicalReadiness:95},"REGENERATE","The first result changed the package proportions. The composition is good, so it will be preserved while product fidelity is corrected.",{defects:[{id:"def-1",label:"Package width distorted",severity:"hard",region:"Jar body, left edge",detail:"The jar reads about 12% wider than the canonical reference and the label geometry is stretched with it."}],correction:{preserve:["Crop","Hand position","Lighting","Foam placement"],change:["Restore canonical jar proportions","Restore label geometry"],successCriteria:["Product fidelity ⥠95","Label fully legible","Composition unchanged"]}}),en=Qe("qa-a02-2",["a02"],{productFidelity:97,anatomyInteraction:96,physicalPlausibility:90,directionAdherence:92,integrationComposition:90,brandPalette:92,commercialReadiness:91,technicalReadiness:96},"APPROVE","Canonical jar proportions restored. Crop, hand position, lighting and foam placement were preserved from the rejected attempt."),tn=Qe("qa-a03",["a03"],{productFidelity:98,physicalPlausibility:93,directionAdherence:88,integrationComposition:91,brandPalette:94,commercialReadiness:90,technicalReadiness:97},"APPROVE","Packaging unobstructed and accurate. Props stay secondary to the product."),Zt=Qe("qa-a04",["a04"],{productFidelity:96,anatomyInteraction:95,physicalPlausibility:90,directionAdherence:89,integrationComposition:88,brandPalette:90,commercialReadiness:89,technicalReadiness:94},"APPROVE","Derived from the approved hero. Safe zones clear at 9:16."),an=Qe("qa-a05",["a05"],{productFidelity:98,physicalPlausibility:92,directionAdherence:87,integrationComposition:89,brandPalette:92,commercialReadiness:88,technicalReadiness:93},"APPROVE_AUTO_CORRECT","The copy-safe area was 40px short on the right. Snew re-cropped within the approved frame and rechecked.",{defects:[{id:"def-2",label:"Copy-safe area below spec",severity:"minor",region:"Right third",detail
26:"Safe zone measured 260px against a 300px channel requirement."}],correction:{preserve:["Product scale","Palette","Lighting"],change:["Extend copy-safe area to channel spec"],successCriteria:["Technical readiness ⥠90","No product cropped"]}}),zt={id:"qa-campaign",scope:"campaign",subjectIds:["a01","a02","a03","a04","a05"],scores:{productFidelity:97,physicalPlausibility:91,directionAdherence:90,integrationComposition:90,brandPalette:92,campaignConsistency:91,commercialReadiness:91,technicalReadiness:95},hardGatesPassed:!0,defects:[],weightedScore:92,disposition:"APPROVE",summary:"Product identity, packaging, anatomy, campaign consistency, brand direction and channel crops passed internal review. Two earlier candidates were rejected and corrected before delivery."},Uu=[{label:"Product and SKU continuity",detail:"Same jar, same label geometry in all five frames."},{label:"Casting continuity",detail:"One model across the three model-led assets."},{label:"Wardrobe continuity",detail:"Neutral, unchanged between hero and story."},{label:"Palette distribution",detail:"Coral leads, mineral blue appears in two of five frames."},{label:"Scene and world continuity",detail:"One daylight interior, no competing worlds."},{label:"Photographic language",detail:"Matched grade and grain across the set."},{label:"Planned variation",detail:"Crop, angle and action differ between every pair."},{label:"Narrative coverage",detail:"Evidence, application and credibility are all represented."},{label:"No duplicate compositions",detail:"Assets 02 and 04 were separated by camera angle."},{label:"Channel completeness",detail:"4:5, 1:1, 9:16 and 16:9 all present with safe crops."},{label:"Hero hierarchy",detail:"One hero, four supporting assets."},{label:"Commercial usability",detail:"Every asset is usable as delivered."}];let ea=10*60+2;function $s(){ea=10*60+2}function Qc(a=1){const t=ea;ea+=a;const s=Math.floor(t/60)%24,r=t%60;return`${String(s).padStart(2,"0")}:${String(r).padStart(2,"0")}`}let Yc=0;function F(a,t,s,r,o,i={}){return{id:`ev-${++Yc}`,timestamp:Qc(1),actor:a,action:t,rationale:s,affected:r,resultingState:o,...i}}const W=(a,t)=>({...a,activity:[...a.activity,t]}),Xc=(a,t,s)=>({...a,tasks:a.tasks.map(r=>r.plannedAssetId===t?{...r,...s}:r)}),De=(a,t)=>({...a,evaluations:a.evaluations.some(s=>s.id===t.id)?a.evaluations:[...a.evaluations,t]}),he=(a,t)=>({...a,state:t}),Bs={queued:0,generating:45,reviewing:75,auto_correcting:85,editing:60,regenerating:40,replanning_dependency:20,approved_internal:100,approved_user:100,blocked:60,excluded:100},O=(a,t,s,r,o={})=>Xc(a,t,{state:s,message:r,progress:Bs[s]??50,...o}),Jc=dt.map((a,t)=>({delay:t===0?700:1500,apply:s=>{const r={...s,planningStep:t+1},o=W(r,F("planner",dt[t],$c[t],["campaign"],t===dt.length-1?"plan_ready":"planning"));return t===dt.length-1?he(o,"plan_ready"):o}})),ed=[{delay:400,apply:a=>{let t=he(a,"production");return t=O(t,"a01","generating","Building the hero frame"),t=O(t,"a02","generating","Building the texture frame"),t=O(t,"a03","generating","Building the still life"),t=O(t,"a04","queued","Waiting for the approved hero"),t=O(t,"a05","queued","Waiting for the approved product master"),t=W(t,F("system","Compiled 5 asset tasks","Three independent assets started. Two formats depend on an approved parent and stay queued.",["a01","a02","a03","a04","a05"],"production",{technical:"Dependency graph: a04 â a01, a05 â a03. Attempt ceiling 3 per asset."})),t}},{delay:1800,apply:a=>{let t=O(a,"a01","reviewing","Checking product and model interaction");return t=W(t,F("system","Campaign hero generated","Attempt 1 completed and entered internal review.",["a01"],"asset_qa")),he(t,"asset_qa")}},{delay:1400,apply:a=>{let t=De(a,Ft);return t=O(t,"a01","approved_internal","Reviewed by Snew",{qaEvaluationId:Ft.id,previewUrl:q.assetHero}),t=W(t,F("qa","Approved Campaign hero","Product fidelity 97. Hand anatomy and product interaction both passed the hard gates.",["a01"],"approved_internal",{technical:`Weighted score ${Ft.weightedScore}. Disposition APPROVE.`})),t}},{delay:1200,apply:a=>O(a,"a02","reviewing","Checking the packaging against the product reference")},{delay:1500,apply:a=>{let t=De(a,Ja);return t=O(t,"a02","regenerating","Correcting the packaging shape",{attempt:2,qaEvaluationId:Ja.id}),t=W(t,F("qa","Rejected Product texture","Packaging proportions did not match the canonical product reference.",["a02"],"regenerating",{technical:"Product fidelity 82 against a 95 hard gate. Defect: package width distorted, severity hard."})),t=W(t,F("qa","Local repair was not reliable","The distortion spans the whole jar, so a boun
26ded edit could not guarantee correct geometry.",["a02"],"regenerating")),t=W(t,F("system","Regeneration requested with product lock","Preserved: crop, hand position, lighting and foam placement.",["a02"],"regenerating",{technical:"Attempt 2 of 3."})),t}},{delay:1300,apply:a=>O(a,"a03","reviewing","Checking packaging accuracy and prop hierarchy")},{delay:1200,apply:a=>{let t=De(a,tn);return t=O(t,"a03","approved_internal","Reviewed by Snew",{qaEvaluationId:tn.id,previewUrl:q.assetStillWithFlowers}),t=W(t,F("qa","Approved Product still life","Packaging unobstructed and accurate. Props stay secondary.",["a03"],"approved_internal")),t}},{delay:1100,apply:a=>W(a,F("system","Temporary production issue","One generation request failed upstream and was retried automatically. This is not counted as a creative failure.",["a02"],"regenerating",{infrastructure:!0,technical:"Provider timeout after 30s. Retried on the same attempt number."}))},{delay:1200,apply:a=>O(a,"a02","reviewing","Rechecking the corrected packaging")},{delay:1400,apply:a=>{let t=De(a,en);return t=O(t,"a02","approved_internal","Reviewed by Snew",{qaEvaluationId:en.id,previewUrl:q.assetTexture}),t=W(t,F("qa","Approved corrected Product texture","Product fidelity 97. Commercial readiness 91. The preserved composition survived the correction.",["a02"],"approved_internal")),t}},{delay:900,apply:a=>{let t={...a,state:"needs_user_direction",pendingDecision:{question:"One creative decision needs your direction",context:"Both versions meet the campaign and quality requirements. The first feels more clinical and product-focused; the second feels warmer and more lifestyle-led. Which direction better represents this launch?",choices:qc}};return t=O(t,"a04","blocked","Waiting for your direction on the launch tone"),t=W(t,F("qa","Escalated a subjective choice","Two candidate directions both passed every objective requirement, so the decision is a brand judgement rather than a quality one.",["a04","a05"],"needs_user_direction",{technical:"Both candidates scored above every minimum. No objective tiebreak exists."})),t}},{delay:700,apply:a=>{let t=O(a,"a04","generating","Deriving the story crop from the approved hero");return t=O(t,"a05","generating","Building the banner from the approved product master"),t=W(t,F("system","Dependencies satisfied","The hero and the product master were approved, so the two channel formats were released.",["a04","a05"],"production")),t}},{delay:1600,apply:a=>{let t=O(a,"a04","reviewing","Checking safe zones at 9:16");return t=O(t,"a05","reviewing","Checking the copy-safe area"),t}},{delay:1300,apply:a=>{let t=De(a,Zt);return t=O(t,"a04","approved_internal","Reviewed by Snew",{qaEvaluationId:Zt.id,previewUrl:q.assetStory}),t=O(t,"a05","auto_correcting","Extending the copy-safe area"),t=W(t,F("qa","Auto-corrected PDP banner","The copy-safe area was below the channel requirement. Snew re-cropped inside the approved frame and rechecked.",["a05"],"auto_correcting",{technical:"Safe zone 260px against a 300px spec. Disposition APPROVE_AUTO_CORRECT."})),t}},{delay:1200,apply:a=>{let t=De(a,an);return t=O(t,"a05","approved_internal","Reviewed by Snew",{qaEvaluationId:an.id,previewUrl:q.assetBanner}),t}},{delay:900,apply:a=>{let t=he(a,"campaign_qa");return t=W(t,F("qa","Started campaign review","Every required asset passed individually. Checking the set for continuity, variation and channel completeness.",["campaign"],"campaign_qa")),t}},{delay:1600,apply:a=>{let t={...a,campaignQaFinding:"Assets 02 and 04 are too visually similar. Snew is changing the camera angle of Asset 04 while preserving product, palette, casting and environment."};return t=O(t,"a04","regenerating","Changing the camera angle for variation",{attempt:2}),t=W(t,F("qa","Campaign consistency finding","Product texture and Story variation resolved to near-identical compositions. Only the smallest affected asset is being changed.",["a02","a04"],"campaign_qa",{technical:"Composition similarity above the duplicate threshold. Campaign consistency 84 against an 88 minimum."})),t}},{delay:1500,apply:a=>{let t=O(a,"a04","approved_internal","Reviewed by Snew",{qaEvaluationId:Zt.id,previewUrl:q.assetStory});return t={...t,campaignQaFinding:void 0},t=W(t,F("qa","Harmonized Story variation","New camera angle restored planned variation. Product, palette, casting and environment were preserved.",["a04"],"approved_internal")),t}},{delay:1200,apply:a=>{let t=De(a,zt);return t={...t,campaignQaId:zt.id},t=he(t,"review_ready"),t=W(t,F("qa","Campaign approved internally","Campaign consistency 91. No missing required slot, no duplicate composition, all channel crops safe.",["campaign"],"review_ready",{technical:`Weighted score ${zt.weightedScore}. Disposition APPROVE.`})),t}}];function td(a,t,s){return[{delay:500,apply:r=>{let o=he(r,"revision_requested");return o=O(o,a,"editing",s),o}},{delay:1600,apply:r=>
26O(r,a,"reviewing","Rechecking the edited region")},{delay:1300,apply:r=>{let o=O(r,a,"approved_internal","Reviewed by Snew",{previewUrl:t});return o=W(o,F("qa","Approved the edited asset","Only the requested region changed. Product, composition, crop, lighting and palette are unchanged from the approved version.",[a],"approved_internal")),o=he(o,"review_ready"),o}}]}function ad(a,t,s={}){return[{delay:500,apply:r=>{let o=he(r,"planning");o=W(o,F("planner",`Created Campaign Plan v${r.plan.version}`,t,["campaign"],"planning"));for(const i of a)o=O(o,i,"replanning_dependency","Waiting for the updated direction");return o}},{delay:1500,apply:r=>{let o=he(r,"production");for(const i of a)o=O(o,i,"regenerating","Rebuilding against the updated direction");return o}},{delay:2e3,apply:r=>{let o=r;for(const i of a)o=O(o,i,"reviewing","Internal review");return he(o,"asset_qa")}},{delay:1600,apply:r=>{let o=r;for(const i of a)o=O(o,i,"approved_internal","Reviewed by Snew",s[i]?{previewUrl:s[i]}:{});return o=W(o,F("qa","Approved the rebuilt assets","Every rebuilt asset passed its hard gates and the set still meets campaign consistency.",a,"review_ready")),he(o,"review_ready")}}]}const fa="snew:planner:v2";function $t(a){switch(a.kind){case"planning":return Jc;case"production":return ed;case"repair":return td(a.assetId,a.preview,a.label);case"replan":return ad(a.assetIds,a.reason,a.previews)}}function nd(){try{const a=window.localStorage.getItem(fa);return a?JSON.parse(a):null}catch{return null}}function sd(a){try{window.localStorage.setItem(fa,JSON.stringify(a))}catch{}}const nn={campaign:null,learnings:Wc,dismissedOpportunityIds:[],directionNotes:[],fastMode:!1};function rd(a){return a.assets.map(t=>({id:`task-${t.id}`,plannedAssetId:t.id,attempt:1,state:"queued",progress:0,message:t.dependencies.length?"Waiting for its parent asset":"Queued for production"}))}function od(a,t){$s();const s={...Xa,decisionLog:[...Xa.decisionLog]};return{id:"camp-hyd-01",opportunityId:a,state:"planning",plan:s,planHistory:[],tasks:rd(s),evaluations:[],activity:t.map((r,o)=>F("user","Set a direction constraint",r,["campaign"],"planning",{technical:`Constraint ${o+1} captured before planning.`})),heroAssetId:s.assets[0].id,planningStep:0,paused:!1}}const Us=n.createContext(null);function id({children:a}){var G,Q,ee,ge,M;const t=n.useRef(typeof window>"u"?null:nd()),[s,r]=n.useState(((G=t.current)==null?void 0:G.state)??nn),[o,i]=n.useState(((Q=t.current)==null?void 0:Q.runner)??null);n.useEffect(()=>{sd({state:s,runner:o})},[s,o]);const l=n.useCallback(f=>{r(_=>_.campaign?{..._,campaign:f.apply(_.campaign)}:_)},[]);n.useEffect(()=>{var $,de,Ee;if(!o||($=s.campaign)!=null&&$.paused||(de=s.campaign)!=null&&de.blocker||(Ee=s.campaign)!=null&&Ee.pendingDecision)return;const f=$t(o);if(o.cursor>=f.length){i(null);return}const _=f[o.cursor],H=s.fastMode?Math.max(90,_.delay/12):_.delay,I=window.setTimeout(()=>{l(_),i(z=>z&&{...z,cursor:z.cursor+1})},H);return()=>window.clearTimeout(I)},[o,s.fastMode,(ee=s.campaign)==null?void 0:ee.paused,(ge=s.campaign)==null?void 0:ge.blocker,(M=s.campaign)==null?void 0:M.pendingDecision,l]);const d=n.useMemo(()=>o?Math.max(0,$t(o).length-o.cursor):0,[o]),c=n.useCallback(f=>{r(_=>({..._,campaign:od(f,_.directionNotes)})),i({kind:"planning",cursor:0})},[]),h=n.useCallback(f=>{r(_=>_.directionNotes.includes(f)?_:{..._,directionNotes:[..._.directionNotes,f]})},[]),m=n.useCallback(f=>{r(_=>({..._,dismissedOpportunityIds:_.dismissedOpportunityIds.includes(f)?_.dismissedOpportunityIds:[..._.dismissedOpportunityIds,f]}))},[]),b=n.useCallback(()=>{r(f=>f.campaign?{...f,campaign:{...f.campaign,paused:!1}}:f),i({kind:"production",cursor:0})},[]),p=n.useCallback(f=>{r(_=>{if(!_.campaign)return _;const H={..._.campaign,paused:f},I=[...H.activity,F("user",f?"Paused production":"Resumed production",f?"Production stopped after the current step. Nothing in flight was discarded.":"Production continued from where it stopped.",["campaign"],f?"paused":"production")];return{..._,campaign:{...H,activity:I}}})},[]),w=n.useCallback(f=>{r(_=>{var $;if(!(($=_.campaign)!=null&&$.pendingDecision))return _;
26const H=_.campaign.pendingDecision.choices.find(de=>de.id===f),I=[..._.campaign.activity,F("user",`Chose the ${(H==null?void 0:H.label)??f} direction`,"Production resumed autonomously with this direction locked for the remaining assets.",["campaign"],"production")];return{..._,campaign:{..._.campaign,pendingDecision:void 0,state:"production",activity:I}}})},[]),y=n.useCallback((f,_)=>{var H;if(r(I=>{if(!I.campaign)return I;let $=I.campaign;const de=[...$.activity,F("user","Requested a change",f.rawFeedback,f.affectedAssetIds,f.requiresReplan?"revision_requested":"editing"),F("planner",f.requiresReplan?"Created a new Campaign Plan version":"Scoped the change",f.summary,f.affectedAssetIds,f.requiresReplan?"planning":"editing",{technical:`Scope ${f.scope}. Preserved: ${f.preserve.join(", ")}.`})],Ee=f.change.some(ue=>ue.field==="direction.casting"&&ue.operation==="remove");let z=$.plan,ke=$.planHistory;f.requiresReplan&&(ke=[...ke,z],z={...z,version:z.version+1,supersedes:z.version,changeSummary:f.summary,concept:Ee?{...z.concept,narrative:z.concept.narrative.replace("the application is shown on real skin","the texture is shown against the packaging itself")}:z.concept,direction:Ee?{...z.direction,casting:[],environments:z.direction.environments.filter(ue=>!ue.label.toLowerCase().includes("skin"))}:z.direction,invariants:Ee?z.invariants.filter(ue=>!ue.toLowerCase().includes("skin")):z.invariants,assets:Ee?z.assets.map(ue=>ue.usesModel?{...ue,usesModel:!1,variation:ue.variation.replace("Model and product interaction","Product-led composition").replace("on real skin","against the packaging")}:ue):z.assets,decisionLog:[...z.decisionLog,{id:`d-${f.id}`,actor:"user",timestamp:"now",decision:f.rawFeedback,rationale:f.summary,evidence:["Direct customer direction"],affectedIds:f.affectedAssetIds}]}),$={...$,activity:de,plan:z,planHistory:ke,state:"revision_requested"};const rt=_&&f.memoryCandidate?[...I.learnings,{id:`l-${f.id}`,statement:f.memoryCandidate.statement,scope:f.memoryCandidate.scope,kind:"confirmed",confidence:"High",evidence:"Explicitly confirmed by you",status:"active"}]:f.memoryCandidate?[...I.learnings,{id:`l-${f.id}`,statement:f.memoryCandidate.statement,scope:f.memoryCandidate.scope,kind:"inferred",confidence:"Experimental",evidence:"1 correction â observation only",status:"candidate"}]:I.learnings;return{...I,campaign:$,learnings:rt}}),f.requiresReplan){const $=f.change.some(de=>de.field==="direction.casting"&&de.operation==="remove")?{a01:q.moodWater,a02:q.serum,a04:q.productAlt}:void 0;i({kind:"replan",cursor:0,assetIds:f.affectedAssetIds,reason:f.summary,previews:$})}else{const I=f.affectedAssetIds[0],$=I==="a03"?q.assetStillNoFlowers:void 0;i({kind:"repair",cursor:0,assetId:I,preview:$??"",label:((H=f.change[0])==null?void 0:H.operation)==="remove"?`Removing ${f.change[0].value.toLowerCase()}`:"Applying the requested change"})}},[]),E=n.useCallback((f,_)=>{r(H=>H.campaign?{...H,campaign:{...H.campaign,tasks:H.campaign.tasks.map(I=>I.plannedAssetId===f?{...I,..._}:I)}}:H)},[]),v=n.useCallback(f=>E(f,{userDisposition:"approved"}),[E]),C=n.useCallback(f=>E(f,{userDisposition:"excluded",state:"excluded",message:"Excluded from this campaign",progress:Bs.excluded}),[E]),A=n.useCallback(f=>{r(_=>_.campaign?{..._,campaign:{..._.campaign,heroAssetId:f}}:_)},[]),S=n.useCallback(()=>{r(f=>{if(!f.campaign)return f;const _=new Date,H=[...f.campaign.activity,F("user","Approved the campaign","Five assets accepted for delivery across paid social, product page and email.",["campaign"],"approved")];return{...f,campaign:{...f.campaign,state:"delivered",approvedAt:_.toISOString(),activity:H,tasks:f.campaign.tasks.map(I=>I.state==="approved_internal"?{...I,state:"approved_user"}:I)}}})},[]),P=n.useCallback((f,_)=>{r(H=>({...H,learnings:H.learnings.map(I=>I.id===f?{...I,..._}:I)}))},[]),j=n.useCallback(f=>{r(_=>({..._,learnings:_.learnings.filter(H=>H.id!==f)}))},[]),k=n.useCallback(f=>{r(_=>({..._,fastMode:f}))},[]),R=n.useCallback(()=>{i(f=>{if(!f)return f;const _=$t(f);return r(H=>{if(!H.campaign)return H;let I=H.campaign;for(let $=f.cursor;$<_.length;$++)I=_[$].apply(I);return{...H,campaign:{...I,pendingDecision:void 0}}}),null})},[]),V=n.useCallback(f=>{r(_=>{if(!_.campaign)return _;const H=f==="retry_budget"?{kind:f,title:"Production limit reached",body:"Sne
26w could not create a compliant hero within the current production limit. The campaign has been paused before any defective work was delivered.",actions:["Try an alternate direction","Increase production limit","Remove optional asset","Stop campaign"]}:{kind:f,title:"Product truth is missing",body:"Snew cannot guarantee product fidelity because the current product images conflict. Choose one canonical reference for Hydration Cream and production will resume.",actions:["Use the current SKU image","Upload a canonical reference","Stop campaign"]},I=[..._.campaign.activity,F("system",H.title,f==="retry_budget"?"The attempt ceiling was reached before a compliant result. Nothing defective was delivered.":"Two product images disagree on packaging geometry, so no reference can be trusted as product truth.",["campaign"],f==="retry_budget"?"paused":"needs_user_direction")];return{..._,campaign:{..._.campaign,blocker:H,state:f==="retry_budget"?"paused":"needs_user_direction",activity:I}}})},[]),T=n.useCallback(f=>{r(_=>_.campaign?{..._,campaign:{..._.campaign,blocker:void 0,state:f?"production":"paused"}}:_)},[]),L=n.useCallback(()=>{$s(),i(null),r(nn);try{window.localStorage.removeItem(fa)}catch{}},[]),oe=n.useMemo(()=>({state:s,campaign:s.campaign,running:o!==null,remaining:d,startCampaign:c,addDirectionNote:h,dismissOpportunity:m,startProduction:b,setPaused:p,resolveDecision:w,applyFeedback:y,approveAsset:v,excludeAsset:C,setHero:A,approveCampaign:S,updateLearning:P,removeLearning:j,setFastMode:k,skipWaiting:R,simulateBlocker:V,clearBlocker:T,resetDemo:L}),[s,o,d,c,h,m,b,p,w,y,v,C,A,S,P,j,k,R,V,T,L]);return e.jsx(Us.Provider,{value:oe,children:a})}function qu(){const a=n.useContext(Us);if(!a)throw new Error("usePlanner must be used inside <PlannerProvider>");return a}const ld=n.lazy(()=>g(()=>import("./Home-CnKMn8XJ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]))),cd=n.lazy(()=>g(()=>import("./Index-XuUv0JLZ.js"),__vite__mapDeps([52,1,2,53,54,5,6,7,55,56,4,8,57,58,59,60,61,62,13,63,27,64,28,20,49,50,51,65,66,67]))),dd=n.lazy(()=>g(()=>import("./AgentWorkspace-dhR38-x1.js"),__vite__mapDeps([68,1,2,69,5,6,7,70,71,72,4,8]))),ud=n.lazy(()=>g(()=>import("./CustomerServiceAgent-CvV20Jzp.js"),__vite__mapDeps([73,1,2]))),pd=n.lazy(()=>g(()=>import("./AppsPage-DOEEBW8h.js"),__vite__mapDeps([74,1,2,4,5,6,7,8,75,76,62,13,63,27,64,28,61,20,55,49,50,51]))),md=n.lazy(()=>g(()=>import("./ChatHistoryPage-CUktzZ1i.js"),__vite__mapDeps([77,1,2,78,5,6,7,69,20,4,8,55,60,79,49,50,51]))),hd=n.lazy(()=>g(()=>import("./NotificationsPage-35-EZBHh.js"),__vite__mapDeps([80,1,2,5,6,7,72,4,8]))),gd=n.lazy(()=>g(()=>import("./HistoryPage-DilHos2n.js"),__vite__mapDeps([81,1,2,5,6,7,4,8,12,82,50,49,51]))),fd=n.lazy(()=>g(()=>import("./AssetsHistoryPage-CIn69Y-X.js"),__vite__mapDeps([83,1,2,49,50,5,6,7,71,84,3,4,8,9,10,11,12,13,14,15,16,17,18,19,85,86,87,88,76,89,90,91,92,44,93,51]))),xd=n.lazy(()=>g(()=>import("./NewChatPage-DqISUa9G.js"),__vite__mapDeps([94,1,2,95,5,6,7,96,10,57,58,97,98,13,99,71,63,100,101,102,29,59,103,4,8,104,105,47,48,20,106,107,108,69,109,110,111,49,50,51]))),vd=n.lazy(()=>g(()=>import("./ActionChatPage-VWAMnkCy.js"),__vite__mapDeps([112,1,2,49,5,6,7,4,8,113,104,105,114,11,115,116,102,106,107,108,69,109,110,50,
2612,27,117,51]))),yd=n.lazy(()=>g(()=>import("./NotFound-YMg1Wzpw.js"),__vite__mapDeps([118,1,2]))),bd=n.lazy(()=>g(()=>import("./InstalledAgentPage-CeHFRKzp.js"),__vite__mapDeps([119,1,2,78,5,6,7,69,9,4,8,105,50,120,63,121,122,54,55,56,60,123,95,96,10,57,58,97,98,13,99,71,100,101,102,29,59,103,65,61,18,79,49,51]))),wd=n.lazy(()=>g(()=>import("./AvatarSettingsPage-Ca5mjZEB.js"),__vite__mapDeps([62,1,2,5,6,7,4,8,13,63,27,64,28,61,20,55,49,50,51]))),_d=n.lazy(()=>g(()=>import("./CoWorkersPage-fy9jMvQo.js"),__vite__mapDeps([124,1,2,54,5,6,7,61,65,55,60,66,67,4,8,49,50,51]))),Cd=n.lazy(()=>g(()=>import("./CoWorkerDetailPage-Hxxbr9ok.js"),__vite__mapDeps([125,1,2,78,5,6,7,4,8,61,65,53,54,55,56,57,58,59,60,62,13,63,27,64,28,20,49,50,51,66]))),jd=n.lazy(()=>g(()=>import("./DesignSystemPage-CyHDmqzi.js"),__vite__mapDeps([126,1,2,78,5,6,7,69,9,4,8,96,57,58,97,105,50,120,100,121,122,49,51]))),Ed=n.lazy(()=>g(()=>import("./DesignSystemDocsPage-ptcjdtFO.js"),__vite__mapDeps([127,1,2,9,5,6,7,116,4,8,128,13,99,16,27,129,50,30,41,22,130,131,132,15,28,133,43,44,46,134,135,136,35,137,138,23,24,139,32,33,34,36,37,38,39,40,31,140,141,142,143,42,144,54,45,145,146,147,87,148,149,150,151,152,153,154,155,156,49,51]))),Ad=n.lazy(()=>g(()=>import("./SkillsPage-sjbIHkvV.js"),__vite__mapDeps([157,1,2,4,5,6,7,8,76]))),Pd=n.lazy(()=>g(()=>import("./TasksPage-caOkzcwR.js"),__vite__mapDeps([158,1,2,49,69,5,6,7,4,8,159,10,105,98,50,114,13,82,27,143,160,87,161,162,163,115,116,128,99,164,130,109,110,165,40,139,133,22,43,44,46,15,28,30,132,166,167,33,34,35,36,37,38,39,41,168,91,88,92,93,169,170,171,172,173,135,23,24,25,149,150,174,26,175,176,121,177,178,179,152,84,3,9,11,12,14,16,17,18,19,129,180,181,182,183,184,185,186,187,188,189,190,144,191,192,193,194,195,122,31,136,42,196,197,58,198,199,200,71,201,29,202,90,203,204,147,205,206,207,208,85,86,209,210,211,212,213,214,215,113,32,216,102,217,89,218,219,106,107,108,111,220,221,222,141,223,57,224,72,225,226,227,228,229,230,231,232,233,234,235,236,154,237,238,239,240,241,242,134,137,138,243,131,140,48,244,51]))),Sd=n.lazy(()=>g(()=>import("./TasksOverviewPage-BxpdT7xL.js"),__vite__mapDeps([245,1,2,5,6,7,27]))),sn=n.lazy(()=>g(()=>import("./BrandDNAPage-DVmsLM2v.js"),__vite__mapDeps([246,1,2,5,6,7,106,107,143,4,8,132,162,57,18,87,92,91,88,44,93,14,75,247,167,168,166,172,190,40,121,28,248,240]))),Td=n.lazy(()=>g(()=>import("./BrandStrategyPage-B8tcMNdK.js"),__vite__mapDeps([249,1,2,49,72,4,5,6,7,8,107,106,69,70,250,248,240]))),kd=n.lazy(()=>g(()=>import("./BrandCastingPage-BDc-XNLq.js").then(a=>a.b),__vite__mapDeps([228,1,2,5,6,7,132,27,50]))),Rd=n.lazy(()=>g(()=>import("./SettingsPage-BVQow9vv.js"),__vite__mapDeps([251,1,2,5,6,7,179,152,252,253,214,50,4,8,49,51]))),Hd=n.lazy(()=>g(()=>import("./ManagePlanPage-C1KfflfS.js"),__vite__mapDeps([254,1,2,251,5,6,7,179,152,252,253,214,50,4,8,49,51]))),Ld=n.lazy(()=>g(()=>import("./CreditUsagePage-DfC1hyzP.js"),__vite__mapDeps([255,1,2,251,5,6,7,179,152,252,253,214,50,4,8,49,51]))),Id=n.lazy(()=>g(()=>import("./ConnectionsPage-7P82T-Hp.js"),__vite__mapDeps([256,1,2,251,5,6,7,179,152,252,253,214,50,4,8,49,51]))),Vd=n.lazy(()=>g(()=>import("./SignUpPage-DSMXu4Zo.js"),__vite__mapDeps([257,1,2,49,5,6,7,4,8,50,51]))),Md=n.lazy(()=>g(()=>import("./VerifyCodePage-C0SddKlm.js"),__vite__mapDeps([258,1,2,5,6,7,49,4,8,50,51]))),rn=n.lazy(()=>g(()=>import("./OnboardingRouter-D9kEuFV9.js"),__vite__mapDeps([259,1,2,49,4,5,6,7,8,178,179,152,35,143,69,132,57,14,16,164,260,248,240,70,28,155,154,156,34,261,262,185,237,92,87,238,188,239,221,181,23,24,182,85,84,3,9,10,11,12,13,15,17,18,19,86,263,205,110,247,88,167,168,166,172,30,252,26,197,50,51]))),Nd=n.lazy(()=>g(()=>import("./GenerateImagePage-DSVIP3vn.js"),__vite__mapDeps([264,1,2,4,5,6,7,8,160,87,161,162,163,115,116,128,99,27,164,130,109,110,165,40,69,139,133,22,43,44,46,13,15,28,30,50,132,166,167,33,34,35,36,37,38,39,41,168,91,88,92,93,169,170,171,172,173,135,23,24,25,149,150,174,26,175,176,121,177,178,179,152,84,3,9,10,11,12,14,16,17,18,19,129,180,181,182,183,184,185,186,187,188,189,190,144,191,192,193,194,195,122,31,136,42,105,196,197,58,198,199,200,71,201,29,202,90,203,204,147,205,143,206,207,208,85,86,209,210,211,212,213,214,215,113,32,216,102,217,89,218,219,106,107,108,111,220,221,222,141,223,57,224,72,225,226,227,228,229,230,231,232,233,234,235,236,154,237,238,239,240,241,242,134,137,138,243,131,140,48,244,265,49,51]))),qs=n.lazy(()=>g(()=>import("./Board3Page-DlfH_Lxq.js"),__vite__mapDeps([266,1,2,5,6,7,267,238,92,87,188,239,221,240,166,167,268,171,204,4,8,237,181,23,24,182,85,84,3,9,10,11,12,13,14,15,16,17,18,19,86,247,88,168,33,34,35,36,37,38,39,40,41,172,269,190,170,91,44,93,263,205,110,270,49,271,265,272,27,177,173,57,59,58,273,72,28,274,180,183,169,184,208,50,51]))),Od=n.lazy(()=>g(()=>import("./Board4Page-kazvjRaW.js"),__vite__mapDeps([275,1,2,4,5,6,7,8,160,87,161,162,163,115,116,128,99,27,164,130,109,110,165,40,69,139,133,22,43,44,46,13,15,28,30,50,132,166,167,33,34,35,36,37,38,39,41,168,91,88,92,93,169,170,171,172,173,135,23,24,25,149,150,174,26,175,176,121,177,178,179,152,84,3,9,10,11,12,14,16,17,18,19,129,180,181,182,183,184,185,186,187,188,189,190,144,191,192,193,194,195,122,31,136,42,105,196,197,58,198,199,200,71,201,29,202,90,203,204,147,205,143,206,207,208,85,86,209,210,211,212,213,214,215,113,32,216,102,217,89,218,219,106,107,108,111,220,221,222,141,223,57,224,72,225,226,227,228,229,230,231,232,233,234,235,236,154,237,238,239,240,241,242,134,137,138,243,131,140,48,244,265,272,59,276,277,49,51]))),Dd=n.lazy(()=>g(()=>import("./Board5Page-DxSSLi1P.js"),__vite__mapDeps([278,1,2,4,5,6,7,8,160,87,161,162,163,115,116,128,99,27,164,130,109,110,165,40,69,139,133,22,43,44,46,13,15,28,30,50,132,166,167,33,34,35,36,37,38,39,41,168,91,88,92,93,169,170,171,172,173,135,23,24,25,149,150,174,26,175,176,121,177,178,179,152,84,3,9,10,11,12,14,16,17,18,19,129,180,181,182,183,184,185,186,187,188,189,190,144,191,192,193,194,195,122,31,136,42,105,196,197,58,198,199,200,71,201,29,202,90,203,204,147,205,143,206,207,208,85,86,209,210,211,212,213,214,215,113,32,216,102,217,89,218,219,106,107,108,111,220,221,222,141,223,57,224,72,225,226,227,228,229,230,231,232,233,234,235,236,154,237,238,239,240,241,242,134,137,138,243,131,140,48,244,265,272,59,276,277,49,51,274,279,280,250,281,282,153]))),Fd=n.lazy(()=>g(()=>import("./Board6Page-BhTJ206P.js"),__vite__mapDeps([283,1,2,4,5,6,7,8,160,87,161,162,163,115,116,128,99,27,164,130,109,110,165,40,69,139,133,22,43,44,46,13,15,28,30,50,132,166,167,33,34,35,36,37,38,39,41,168,91,88,92,93,169,170,171,172,173,135,23,24,25,149,150,174,26,175,176,121,177,178,179,152,84,3,9,10,11,12,14,16,17,18,19,129,180,181,182,183,184,185,186,187,188,189,190,144,191,192,193,194,195,122,31,136,42,105,196,197,58,198,199,200,71,201,29,202,90,203,204,147,205,143,206,207,208,85,86,209,210,211,212,213,214,215,113,32,216,102,217,89,218,219,106,107,108,111,220,221,222,141,223,57,224,72,225,226,227,228,229,230,231,232,233,234,235,236,154,237,238,239,240,241,242,134,137,138,243,131,140,48,244,265,272,59,276,277,49,51,282,281,153]))),Zd=n.lazy(()=>g(()=>
26import("./CampaignProposalPreviewPage-BTiOpkBz.js"),__vite__mapDeps([284,1,2,5,6,7,279,9,57,59,280,250,23,24,239,185,281,217,243,274,173,285]))),zd=n.lazy(()=>g(()=>import("./Board3ShellPreviewPage-CB4aCeki.js"),__vite__mapDeps([286,1,2,214,5,6,7,163,115,116,128,99,27,164,130,109,4,8,110,165,40,69,139,133,22,43,44,46,13,15,28,30,49,50,51]))),$d=n.lazy(()=>g(()=>import("./ScenePreviewPage-CUQkHuRT.js"),__vite__mapDeps([287,1,2,6,5,7]))),Bd=n.lazy(()=>g(()=>import("./SocialAdComposedPreviewPage-BbmknILB.js"),__vite__mapDeps([288,1,2,230,187]))),Ud=n.lazy(()=>g(()=>import("./CollageEditorialPage-CtxDbn24.js"),__vite__mapDeps([289,1,2,290]))),qd=n.lazy(()=>g(()=>import("./AdPosterPage-Ni6SiMFY.js"),__vite__mapDeps([291,1,2,292]))),Wd=n.lazy(()=>g(()=>import("./board-nodes-CvOH0m0U.js"),__vite__mapDeps([293,1,2,4,5,6,7,8,160,87,161,162,163,115,116,128,99,27,164,130,109,110,165,40,69,139,133,22,43,44,46,13,15,28,30,50,132,166,167,33,34,35,36,37,38,39,41,168,91,88,92,93,169,170,171,172,173,135,23,24,25,149,150,174,26,175,176,121,177,178,179,152,84,3,9,10,11,12,14,16,17,18,19,129,180,181,182,183,184,185,186,187,188,189,190,144,191,192,193,194,195,122,31,136,42,105,196,197,58,198,199,200,71,201,29,202,90,203,204,147,205,143,206,207,208,85,86,209,210,211,212,213,214,215,113,32,216,102,217,89,218,219,106,107,108,111,220,221,222,141,223,57,224,72,225,226,227,228,229,230,231,232,233,234,235,236,154,237,238,239,240,241,242,134,137,138,243,131,140,48,244,265,294,70,64,49,51]))),Kd=n.lazy(()=>g(()=>import("./BoardLockedPage-Co26tdNm.js"),__vite__mapDeps([295,1,2,4,5,6,7,8,160,87,161,162,163,115,116,128,99,27,164,130,109,110,165,40,69,139,133,22,43,44,46,13,15,28,30,50,132,166,167,33,34,35,36,37,38,39,41,168,91,88,92,93,169,170,171,172,173,135,23,24,25,149,150,174,26,175,176,121,177,178,179,152,84,3,9,10,11,12,14,16,17,18,19,129,180,181,182,183,184,185,186,187,188,189,190,144,191,192,193,194,195,122,31,136,42,105,196,197,58,198,199,200,71,201,29,202,90,203,204,147,205,143,206,207,208,85,86,209,210,211,212,213,214,215,113,32,216,102,217,89,218,219,106,107,108,111,220,221,222,141,223,57,224,72,225,226,227,228,229,230,231,232,233,234,235,236,154,237,238,239,240,241,242,134,137,138,243,131,140,48,244,265,294,70,64,49,51]))),Gd=n.lazy(()=>g(()=>import("./GenerateVideoPage-04O6XO2A.js"),__vite__mapDeps([296,1,2,4,5,6,7,8,3,9,10,11,12,13,14,15,16,17,18,19,219,69,27,297,33,34,35,36,37,38,39,40,41]))),Qd=n.lazy(()=>g(()=>import("./SnewStudioPageBackup-CTLPvHXr.js"),__vite__mapDeps([298,1,2,193,5,6,7,149,150,4,8,194,183,115,69,195,13,15,16,27,121,122,28,30,31,39,139,43,44,136,33,34,35,36,37,38,40,41,109,110,50,42,46,105,9,196,197,58,165,198,199,11,200,132,71,129,29,203,143,113,3,10,12,14,17,18,19,84,49,51]))),on=n.lazy(()=>g(()=>import("./SnewStudioHomePage-BQc7PMmP.js"),__vite__mapDeps([299,1,2,6,21,22,23,5,7,24,25,13,26,15,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,4,8,3,9,10,11,12,14,16,17,18,19,84,197,297,219,265,300]))),Yd=n.lazy(()=>g(()=>import("./CampaignPage-CbuxhLS4.js"),__vite__mapDeps([301,1,2,4,5,6,7,8,194,183,115,69,195,13,15,16,27,121,122,28,30,31,39,139,43,44,136,33,34,35,36,37,38,40,41,109,110,9,302,57,105,50,102,18,303,216,3,10,11,12,14,17,19,99,221,79,304,196,84,217,49,51]))),Xd=n.lazy(()=>g(()=>import("./AgentBatchPage-BhRC2Cxf.js"),__vite__mapDeps([305,1,2,5,6,7,4,8,303,9,13,27,3,10,11,12,14,15,16,17,18,19]))),Jd=n.lazy(()=>g(()=>import("./Home2Page-C6AOh6jU.js"),__vite__mapDeps([306,1,2,4,5,6,7,8,69,307,50,101,49,51]))),e0=n.lazy(()=>g(()=>import("./Home4Page-e34qUFAr.js"),__vite__mapDeps([308,1,2,27,5,6,7,265,45]))),t0=n.lazy(()=>g(()=>import("./Home5Page-Dvox868L.js"),__vite__mapDeps([309,1,2,4,5,6,7,8,180,181,23,24,182,93,183,169,184,310,140,311,72,237,92,87,238,188,239,221,240,85,84,3,9,10,11,12,13,14,15,16,17,18,19,86,171,267,166,167,268,27,45,69,312,43,44,28,39,313,148,40,211,212,209,314,41,315,33,34,35,36,37,38,22,135,133,46,31,213,214,215,316,141,317,271,318,319,320,143,145,146,147,321,204,91,88,322,247,168,323,269,110,324,325,152]))),Be=n.lazy(()=>g(()=>import("./LandingPage-BzOo6i7k.js"),__vite__mapDeps([326,1,2,5,6,7,313,148,40,211,212,24,23,86,209,314,41,315,33,34,35,36,37,38,39,28,22,135,133,43,44,46,31,180,181,182,93,183,169,184,213,214,215,316,141,317,271,318,319,116,50,128,13,99,15,132,27,129,30,8,130,142,51,327,328,156,325,329,330,331,332,173,333,231,16,274,149,150,334,49,335,270,336,337,338]))),a0=n.lazy(()=>g(()=>import("./SecondaryLandingPage-BNzynmKX.js"),__vite__mapDeps([339,1,2,48,340]))),n0=n.lazy(()=>g(()=>import("./CategoriesPage-BdjroSrO.js"),__vite__mapDeps([341,1,2,49,5,6,7,342,270,271,24,336,343,330,325,337,317,212,23,41])
26)),s0=n.lazy(()=>g(()=>import("./CategoryPage-sNDj_YLB.js"),__vite__mapDeps([344,1,2,49,5,6,7,342,270,271,24,336,343,330,314,23,41,315,33,34,35,36,37,38,39,40,28,22,135,133,43,44,46,31,180,181,182,93,183,169,184,213,214,215,316,141,337,317,212]))),r0=n.lazy(()=>g(()=>import("./PricingPage-6TFhaH23.js"),__vite__mapDeps([345,1,2,342,270,49,7,271,24,336,343,330,325,324,152,5,6,335]))),Bt=n.lazy(()=>g(()=>import("./PublicDocPage-dZmJal6d.js"),__vite__mapDeps([346,1,2,7,342,270,49,271,24,336,343,330]))),o0=n.lazy(()=>g(()=>import("./CatalogPage-BD3pEszH.js"),__vite__mapDeps([347,1,2,5,6,7,49,252,224,4,8,15,153,143,72,348,40,28,349,162,27,149,150,236,215,180,181,23,24,182,93,183,169,184,212,206,207,208,92,87,3,9,10,11,12,13,14,16,17,18,19,85,84,86,209,91,88,44,316,350,351,89,210,211,226,76,270,271,343,330,229,41,315,33,34,35,36,37,38,39,22,135,133,43,46,31,213,214,141,317,50,51]))),i0=n.lazy(()=>g(()=>import("./StyleIndexPage-DWzgQ-lQ.js"),__vite__mapDeps([352,1,2,39,5,6,7,319,212,24,232]))),l0=n.lazy(()=>g(()=>import("./StylesManagerPage-BwfVHpGU.js"),__vite__mapDeps([353,1,2,49,5,6,7,115,252,197,50,349,162,27,28,4,8,149,150,236,215,180,181,23,24,182,93,183,169,184,212,206,207,208,92,87,3,9,10,11,12,13,14,15,16,17,18,19,85,84,86,209,91,88,44,316,39,143,319,25,226,51]))),c0=n.lazy(()=>g(()=>import("./StyleManagerPage-CV8rOJgM.js"),__vite__mapDeps([354,1,2,9,5,6,7,57,4,8,13,27,50,49,51]))),d0=n.lazy(()=>g(()=>import("./VisualDNAPage-BZ2920Hd.js"),__vite__mapDeps([355,1,2,198,5,6,7,199,27,50,28]))),u0=n.lazy(()=>g(()=>import("./PostCalendarPage-B9VW1rlv.js"),__vite__mapDeps([203,1,2,4,5,6,7,8,50]))),p0=n.lazy(()=>g(()=>import("./ImageStylesAdminPage-BkVpHD5p.js"),__vite__mapDeps([356,1,2,6,5,7,9,159,105,224,11,13,14,27,50,28,59]))),m0=n.lazy(()=>g(()=>import("./KnowledgeBasePage-DJT9Fkps.js"),__vite__mapDeps([3,1,2,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]))),h0=n.lazy(()=>g(()=>import("./ChatShowcasePage-DidoWSnT.js"),__vite__mapDeps([357,1,2,115,5,6,7,57,105,174,121,122,28,30,59,103,4,8,49,50,51]))),g0=n.lazy(()=>g(()=>import("./PostsPage-BC4yXXmv.js"),__vite__mapDeps([358,1,2,302,5,6,7,132,4,8,49,50,51]))),f0=n.lazy(()=>g(()=>import("./AgentIndexPage-LM4SfE9m.js"),__vite__mapDeps([359,1,2,5,6,7,57,307,198,14,26,15,72,4,8,220,3,9,10,11,12,13,16,17,18,19,360,218,261,161,311,237,92,87,238,188,239,221,240,181,23,24,182,85,84,86,171,320,44,43,143,141,267,166,167,268,49,50,51])));n.lazy(()=>g(()=>import("./AgentCategoriesPreviewPage-DAZpGrFx.js"),__vite__mapDeps([361,1,2,359,5,6,7,57,307,198,14,26,15,72,4,8,220,3,9,10,11,12,13,16,17,18,19,360,218,261,161,311,237,92,87,238,188,239,221,240,181,23,24,182,85,84,86,171,320,44,43,143,141,267,166,167,268,49,50,51])));const ln=n.lazy(()=>g(()=>import("./AgentChatView-BsWTKckG.js"),__vite__mapDeps([362,1,2,49,224,5,6,7,69,4,8,50,51]))),x0=n.lazy(()=>g(()=>import("./CampaignBoardPage-DPc9P7hM.js"),__vite__mapDeps([363,1,2,5,6,7,4,8,231,132,201,50,30,189,163,115,116,128,99,27,164,130,109,110,165,40,69,139,133,22,43,44,46,13,15,28,220,3,9,10,11,12,14,16,17,18,19,222,194,183,195,121,122,31,39,136,33,34,35,36,37,38,41,49,51]))),v0=n.lazy(()=>g(()=>import("./BoardsIndexPage-BUk1CPgG.js"),__vite__mapDeps([364,1,2,5,6,7,71,27,164,21,22,23,24,25,13,26,15,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,265]))),y0=n.lazy(()=>g(()=>import("./MyBoardsPage-DqKmHTO7.js"),__vite__mapDeps([365,1,2,5,6,7,247,88,4,8,167,87,168,267,238,92,188,239,221,240,166,268,171,145,27,45,140,146,38,37,147,204,322,91,44,93]))),b0=n.lazy(()=>g(()=>import("./TemplatePreviewPage-CKR-y_cK.js"),__vite__mapDeps([366,1,2,5,6,7,71,265,4,8,49,50,51]))),w0=n.lazy(()=>g(()=>import("./VibeCollectionPage-YT8Rz4vR.js"),__vite__mapDeps([367,1,2,6,4,5,7,8,15,132,368,27,164,87,321,204,91,88,92,44,93,322,247,167,168,3,9,10,11,12,13,14,16,17,18,19,149,150,28,211,212,24,23,86,209,349,162,236,215,180,181,182,183,169,184,206,207,208,85,84,316,33,34,35,36,37,38,39,40,41,151,43,89]))),_0=n.lazy(()=>g(()=>import("./StyleguidePage-B0pKFSlO.js"),__vite__mapDeps([369,1,2,5,6,7,162,69,307,4,8,10,97,165,116,195,176,128,13,40,231,99,15,16,132,27,117,192,189,149,150,190,88,201,50,102,28,30,130,22,136,45,42,139,35,134,135,137,
26138,23,24,43,44,21,25,26,29,31,32,33,34,36,37,38,39,41,46,226,144,49,51]))),C0=n.lazy(()=>g(()=>import("./ElementsShowcasePage-CI1uy1MZ.js"),__vite__mapDeps([370,1,2,192,5,6,7,189,149,150,190,88,4,8,136,15,45,42,21,22,23,24,25,13,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,43,44,46,160,87,161,162,163,115,116,128,99,164,130,109,110,165,69,139,133,50,132,166,167,168,91,92,93,169,170,171,172,173,135,174,175,176,121,177,178,179,152,84,3,9,10,11,12,14,16,17,18,19,129,180,181,182,183,184,185,186,187,188,144,191,193,194,195,122,105,196,197,58,198,199,200,71,201,202,90,203,204,147,205,143,206,207,208,85,86,209,210,211,212,213,214,215,113,216,102,217,89,218,219,106,107,108,111,220,221,222,141,223,57,224,72,225,226,227,228,229,230,231,232,233,234,235,236,154,237,238,239,240,241,242,134,137,138,243,131,140,48,244,307,49,51]))),j0=n.lazy(()=>g(()=>import("./AuditPage-arYjfZ5E.js"),__vite__mapDeps([371,1,2,5,6,7]))),E0=n.lazy(()=>g(()=>import("./PlansPage-mU4JX-Pi.js"),__vite__mapDeps([372,1,2,5,6,7,179,152]))),A0=n.lazy(()=>g(()=>import("./TemplatesAdminPage-BJcz6QEq.js"),__vite__mapDeps([373,1,2,36,5,6,7,37,38,225,143,153,374,115,11,137,375,351,50,28,4,8,159,49,51]))),P0=n.lazy(()=>g(()=>import("./CampaignTemplatesAdminPage-BI1J8lDG.js"),__vite__mapDeps([376,1,2,225,7,143,153,374,5,6,38,115,11,375,351,50,28,4,8,159,49,51]))),S0=n.lazy(()=>g(()=>import("./InsightChatPage-DDDwZe1q.js"),__vite__mapDeps([377,1,2,5,6,7,196,300,307,96,20,4,8,106,79,304,57,59,197,10,17,29,223,69,99,108,109,110,49,50,51]))),T0=n.lazy(()=>g(()=>import("./InsightPlanPage-BaNklRDz.js"),__vite__mapDeps([378,1,2,5,6,7,4,8,300,202,169,221,379]))),k0=n.lazy(()=>g(()=>import("./StyleReferencesPage-UKloKao0.js"),__vite__mapDeps([380,1,2,6,5,7,138,375,143,351,50,28,38,4,8,159]))),R0=n.lazy(()=>g(()=>import("./StyleAuditPage-Ch58iiKl.js"),__vite__mapDeps([381,1,2,6,5,7,186,187,181,23,24,182,184,91,4,8,88,92,87,44,93,143,49,50,51]))),H0=n.lazy(()=>g(()=>import("./BrandImagesAdminPage-CqzOFH61.js"),__vite__mapDeps([382,1,2,11,5,6,7,27,50,28,383]))),L0=n.lazy(()=>g(()=>import("./BrandLibraryAdminPage-WsbOaZHz.js"),__vite__mapDeps([384,1,2,11,5,6,7,27,50,28,383]))),I0=n.lazy(()=>g(()=>import("./StyleCalibrationAdminPage-DB2en9N-.js"),__vite__mapDeps([385,1,2,5,6,7,162]))),V0=n.lazy(()=>g(()=>import("./SceneLibraryPage-D4-Gpu-p.js"),__vite__mapDeps([386,1,2,115,5,6,7,11,27,50]))),M0=n.lazy(()=>g(()=>import("./GiseEligibilityPage-S1v0EK70.js"),__vite__mapDeps([387,1,2,181,5,6,7,23,24,182,205]))),N0=n.lazy(()=>g(()=>import("./StyleCoversAdminPage-DM4YqxEC.js"),__vite__mapDeps([388,1,2,5,6,7,143,24,212,23,285,207,180,181,182,93,183,169,184,208,92,87,3,4,8,9,10,11,12,13,14,15,16,17,18,19,85,84,86,209,91,88,44]))),O0=n.lazy(()=>g(()=>import("./LandingSceneAdminPage-CzVKlm6V.js"),__vite__mapDeps([389,1,2,5,6,7,143,49,4,8,350,351,28,332,329,317,212,24,23,146,38,37,211,86,209,327,224,318,319,50,51]))),D0=n.lazy(()=>g(()=>import("./DemoStoreAdminPage-vc-FEVio.js"),__vite__mapDeps([390,1,2,5,6,7,18,285]))),F0=n.lazy(()=>g(()=>import("./InternalDemoPage-C5iRSLzv.js"),__vite__mapDeps([391,1,2,162,5,6,7,18,323,166,167,87,247,88,4,8,168,204,269,110]))),Z0=n.lazy(()=>g(()=>import("./SceneFitPage-D2TPTwRK.js"),__vite__mapDeps([392,1,2,5,6,7,182,234])));n.lazy(()=>g(()=>import("./NuvemshopProductsSandboxPage-BPPRIfl2.js"),__vite__mapDeps([393,1,2,311,5,6,7,72,4,8,237,92,87,238,188,239,221,240,181,23,24,182,85,84,3,9,10,11,12,13,14,15,16,17,18,19,86,171,253,198,26,75,140,360,218,220,248])));n.lazy(()=>g(()=>import("./BillingModalPreviewPage-BhZpN43K.js"),__vite__mapDeps([394,1,2,5,6,7])));n.lazy(()=>g(()=>import("./QuickActionBriefDrawerPreviewPage-DpEMAixr.js"),__vite__mapDeps([395,1,2,320,5,6,7,238,92,87,188,239,221,240,44,43,143,141,72,4,8,267,166,167,268,171])));n.lazy(()=>g(()=>import("./ChristmasBoardSandboxPage-3K7fGQCT.js"),__vite__mapDeps([396,1,2,266,5,6,7,267,238,92,87,188,239,221,240,166,167,268,171,204,4,8,237,181,23,24,182,85,84,3,9,10,11,12,13,14,15,16,17,18,19,86,247,88,168,33,34,35,36,37,38,39,40,41,172,269,190,170,91,44,93,263,205,110,270,49,271,265,272,27,177,173,57,59,58,273,72,28,274,180,183,169,184,208,50,51,395,320,43,143,141])));n.lazy(()=>g(()=>import("./ComposerActionsSandboxPage-XJklPoYW.js"),__vite__mapDeps([397,1,2,266,5,6,7,267,238,92,87,188,239,221,240,166,167,268,171,204,4,8,237,181,23,24,182,85,84,3,9,10,11,12,13,14,15,16,17,18,19,86,247,88,168,33,34,35,36,37,38,39,40,41,172,269,190,170,91,44,93,263,205,110,270,49,271,265,272,27,177,173,57,59,58,273,72,28,274,180,183,169,184,208,50,51])));n.lazy(()=>g(()=>import("./HomeStartWithPreviewPage-DnXwnYaH.js"),__vite__mapDeps([398,1,2,310,5,6,7])));n.lazy(()=>g(()=>import("./HomePresetsPreviewPage-wye_xDsV.js"),__vite__mapDeps([399,1,2,313,148,40,5,6,7,211,212,24,23,86,209,314,41,315,33,34,35,36,37,38,39,28,22,135,133,43,44,46,31,180,181,182,93,183,169,184,213,214,215,316,141,317,271,318,319])));n.lazy(()=>g(()=>import("./ImagePostEditPreviewPage-BzvQQNyN.js"),__vite__mapDeps([400,1,2,160,5,6,7,87,161,162,163,115,116,128,99,27,164,130,109,4,8,110,165,40,69,139,133,22,43,44,46,13,15,28,30,50,132,166,167,33,34,35,36,37,38,39,41,168,91,88,92,93,169,170,171,172,173,135,23,24,25,149,150,174,26,175,176,121,177,178,179,152,84,3,9,10,11,12,14,16,17,18,19,129,180,181,182,183,184,185,186,187,188,189,190,144,191,192,193,194,195,122,31,136,42,105,196,197,58,198,199,200,71,201,29,202,90,203,204,147,205,143,206,207,208,85,86,209,210,211,212,213,214,215,113,32,216,102,217,89,218,219,106,107,108,111,220,221,222,141,223,57,224,72,225,226,227,228,229,230,231,232,233,234,235,236,154,237,238,239,240,241,242,134,137,138,243,131,140,48,244,273,268,49,51])));n.lazy(()=>g(()=>import("./StoreConnectionsSandboxPage-DL2FKcV1.js"),__vite__mapDeps([401,1,2,6,4,5,7,8,49,50,51])));const z0=n.lazy(()=>g(()=>import("./TaxonomyPage-J_5_-6Hh.js"),__vite__mapDeps([402,1,2,5,6,7,182,234]))),cn=n.lazy(()=>g(()=>import("./CollectionsAdminPage-DhRdNDYG.js"),__vite__mapDeps([403,1,2,115,5,6,7,224,50,153,72,4,8,348,252,40,28,349,162,27,149,150,236,215,180,181,23,24,182,93,183,169,184,212,206,207,208,92,87,3,9,10,11,12,13,14,15,16,17,18,19,85,84,86,209,91,88,44,316,350,143,351,89,210,211]))),$0=n.lazy(()=>g(()=>import("./SavedStylesAdminPage-CrMbyFY7.js"),__vite__mapDeps([404,1,2,5,6,7,50,153,72,4,8,209]))),B0=n.lazy(()=>g(()=>import("./WorkflowsLibraryPage-Cqa_L-Yv.js"),__vite__mapDeps([405,1,2,5,6,7,4,8,241,13,27,260,406]))),U0=n.lazy(()=>g(()=>import("./WorkflowEditorPage--nwv56v4.js"),__vite__mapDeps([407,1,2,123,5,6,7,116,128,13,408,15,132,27,50,214,406,39,42,43,44,409]))),q0=n.lazy(()=>g(()=>import("./WorkflowRunPage-B_o9TUD4.js"),__vite__mapDeps([410,1,2,5,6,7,9,50,200,408,15,132,214,406]))),W0=n.lazy(()=>g(()=>import("./PresetsPage-DkC8dC9P.js"),__vite__mapDeps([411,1,2,134,135,5,6,7,136,15,35,137,138,23,24,242]))),K0=n.lazy(()=>g(()=>import("./TemplateGalleryPage-BJ4On8qF.js"),__vite__mapDeps([412,1,2,6,4,5,7,8,170,88,9,50,198,199,132,164,28,24,212,316,233,211,23,86,209,181,182,234,235,236,215,87,207,180,93,183,169,184,208,92,3,10,11,12,13,14,15,16,17,18,19,85,84,91,44,43,33,34,35,36,37,38,39,40,41,368,27,321,204,322,247,167,168,149,150,185,151,349,162,206,413,160,161,163,115,116,128,99,130,109,110,165,69,139,133,22,46,30,166,171,172,173,135,25,174,26,175,176,121,177,178,179,152,129,186,187,188,189,190,144,191,192,193,194,195,122,31,136,42,105,196,197,58,200,71,201,29,202,90,203,147,205,143,210,213,214,113,32,216,102,217,89,218,219,106,107,108,111,220,221,222,141,223,57,224,72,225,226,227,228,229,230,231,232,154,237,238,239,240,241,242,134,137,138,243,131,140,48,244,379,49,51]))),G0=n.lazy(()=>g(()=>import("./StudioAIModalPreviewPage-BAcXc4MD.js"),__vite__mapDeps([414,1,2,49,175,39,5,6,7,69,176,13,15,27,121,50,177,178,179,152,35,84,3,4,8,9,10,11,12,14,16,17,18,19,162,132,129,180,181,23,24,182,93,183,169,184,185,186,187,91,88,92,87,44,188,33,34,36,37,38,40,41,189,190,144,51]))),Q0=n.lazy(()=>g(()=>import("./EmailConsolePage-Dn4jeQ2m.js"),__vite__mapDeps([415,1,2,5,6,7,162,312,11]))),Y0=n.lazy(()=>g(()=>import("./ProductFunnelAdminPage-D1zZWsuI.js"),__vite__mapDeps([416,1,2,162,5,6,7,253]))),X0=n.lazy(()=>g(()=>import("./PlannerHomePage-DHneVaNO.js"),__vite__mapDeps([417,1,2,5,6,7,418,49,4,8,15,419,420,421,422,423,41,424,50,51]))),J0=n.lazy(()=>g(()=>import("./OpportunityProposalPage-DQc8qtgR.js"),__vite__mapDeps([425,1,2,5,6,7,418,49,4,8,15,420,424,50,51]))),eu=n.lazy(()=>g(()=>import("./CampaignPlanPage-oBocud9V.js"),__vite__mapDeps([426,1,2,5,6,7,418,49,4,8,15,419,421,423,41,424,427,50,51]))),tu=n.lazy(()=>g(()=>import("./CampaignProductionPage-ca9vMj02.js"),__vite__mapDeps([428,1,2,5,6,7,418,49,4,8,15,419,422,423,41,424,427,50,51]))),au=n.lazy(()=>g(()=>import("./CampaignReviewPage-CUGLcIOF.js"),__vite__mapDeps([429,1,2,5,6,7,418,49,4,8,15,419,423,41,424,422,427,50,51]))),nu=n.lazy(()=>g(()=>import("./CampaignDeliveryPage-CKYZKd90.js"),__vite__mapDeps([430,1,2,5,6,7,418,49,4,8,15,419,421,427,50,51]))),su=n.lazy(()=>g(()=>import("./CampaignsListPage-Bj8ei6Ve.js"),__vite__mapDeps([431,1,2,5,6,7,418,49,4,8,15,50,51]
26))),ru=n.lazy(()=>g(()=>import("./ProductsPage-Dp4zytbx.js"),__vite__mapDeps([432,1,2,5,6,7,418,49,4,8,15,50,51]))),ou=n.lazy(()=>g(()=>import("./BrandLearnedPage-j_iZqwrb.js"),__vite__mapDeps([433,1,2,5,6,7,418,49,4,8,15,423,41,424,50,51]))),iu=n.lazy(()=>g(()=>import("./PlannerActivityPage-2lNDlWtu.js"),__vite__mapDeps([434,1,2,5,6,7,418,49,4,8,15,427,50,51]))),ta=new si;window.addEventListener("snew:identity-reset",()=>{ta.cancelQueries(),ta.clear()});function lu(){const{user:a}=Ce();return n.useEffect(()=>{a!=null&&a.id&&g(async()=>{const{hydrateStoreContextFromSupabase:t}=await import("./hydrateStoreContext-CnRDd9GD.js");return{hydrateStoreContextFromSupabase:t}},__vite__mapDeps([19,1,2])).then(({hydrateStoreContextFromSupabase:t})=>{t()})},[a==null?void 0:a.id]),n.useEffect(()=>{g(async()=>{const{loadOverrides:t}=await import("./PlanAccessModal-P_W2GThH.js").then(s=>s.g9);return{loadOverrides:t}},__vite__mapDeps([5,1,2,6,7])).then(({loadOverrides:t})=>{t().catch(()=>{})})},[]),null}const Ws=dr(window.location.hostname,"app");function cu(){const{pathname:a}=_e();return n.useEffect(()=>{const t=/^\/board(?:$|-)/.test(a)||a.startsWith("/campaigns/");return document.body.classList.toggle("snew-board-chrome",t),()=>document.body.classList.remove("snew-board-chrome")},[a]),null}function du({children:a}){var d;const{pathname:t,search:s,hash:r}=_e(),o=window.location.hostname;let i=null;sr(o)&&!rr(t)?i=or(t,s,r,o,((d=qt())==null?void 0:d.savedAt)??null):ir(o)&&lr(t)&&(i=cr(t,s));const l=Ll(t,{landingDeployment:Ws});return i?e.jsx(uu,{url:i}):l?e.jsx(Ml,{children:a}):e.jsx(ne,{children:a})}function uu({url:a}){return n.useEffect(()=>{window.location.replace(a)},[a]),e.jsx(wt,{})}function pu(){const a=Bn();return a==="checking"?e.jsx(wt,{}):a!=="allowed"?e.jsx(me,{to:"/board",replace:!0}):e.jsx(qs,{})}const mu=({initialHomePage:a}={})=>{const t=a??t0;return e.jsx(lo,{children:e.jsx(zi,{attribute:"class",defaultTheme:"light",forcedTheme:"light",enableSystem:!1,children:e.jsx(ar,{children:e.jsx(Wi,{children:e.jsx(il,{children:e.jsx(cl,{children:e.jsx(Xi,{children:e.jsx(co,{client:ta,children:e.jsxs(uo,{children:[e.jsx(Di,{}),e.jsx(Fi,{}),e.jsx(lu,{}),e.jsx(Rc,{}),e.jsxs(So,{children:[e.jsx(cu,{}),e.jsx(Rl,{}),e.jsx(zc,{}),e.jsx(Nl,{}),e.jsx(Tc,{}),e.jsx(Vc,{}),e.jsx(id,{children:e.jsx(nr,{children:e.jsx(n.Suspense,{fallback:e.jsx(wt,{}),children:e.jsx(du,{children:e.jsxs(ba,{children:[e.jsx(u,{path:"/signin",element:e.jsx(Tl,{})}),e.jsx(u,{path:"/signup",element:e.jsx(Vd,{})}),e.jsx(u,{path:"/auth/callback",element:e.jsx(ul,{})}),e.jsx(u,{path:"/auth/verify",element:e.jsx(Md,{})}),e.jsx(u,{path:"/auth/create-account",element:e.jsx(kl,{})}),e.jsx(u,{path:"/onboarding",element:e.jsx(ne,{children:e.jsx(rn,{})})}),e.jsx(u,{path:"/onboarding/:step",element:e.jsx(ne,{children:e.jsx(rn,{})})}),e.jsx(u,{path:"/internal/demo",element:e.jsx(ne,{children:e.jsx(F0,{})})}),!1,e.jsx(u,{path:"/prototipo/home",element:e.jsx(X0,{})}),e.jsx(u,{path:"/prototipo/opportunities/:opportunityId",element:e.jsx(J0,{})}),e.jsx(u,{path:"/prototipo/campaigns",element:e.jsx(su,{})}),e.jsx(u,{path:"/prototipo/campaigns/:campaignId/plan",element:e.jsx(eu,{})}),e.jsx(u,{path:"/prototipo/campaigns/:campaignId/production",element:e.jsx(tu,{})}),e.jsx(u,{path:"/prototipo/campaigns/:campaignId/review",element:e.jsx(au,{})}),e.jsx(u,{path:"/prototipo/campaigns/:campaignId/delivery",element:e.jsx(nu,{})}),e.jsx(u,{path:"/prototipo/products",element:e.jsx(ru,{})}),e.jsx(u,{path:"/prototipo/brand/learned",element:e.jsx(ou,{})}),e.jsx(u,{path:"/prototipo/activity",element:e.jsx(iu,{})}),e.jsx(u,{path:"/snew-studio",element:e.jsx(ne,{children:e.jsx(on,{})})}),e.jsx(u,{path:"/studio",element:e.jsx(ne,{children:e.jsx(on,{})})}),e.jsx(u,{path:"/generate-video",element:e.jsx(Gd,{})}),e.jsx(u,{path:"/studio/create",element:e.jsx(me,{to:"/generate-image",replace:!0})}),e.jsx(u,{path:"/generate-image",element:e.jsx(Nd,{})}),e.jsx(u,{path:"/board",element:e.jsx(qs,{})}),e.jsx(u,{path:"/board-admin",element:e.jsx(pu,{})}),e.jsx(u,{path:"/boards",element:e.jsx(y0,{})}),e.jsx(u,{path:"/board-3",element:e.jsx(me,{to:"/board",replace:!0})}),e.jsx(u,{path:"/templates/:slug",element:e.jsx(K0,{})}),e.jsx(u,{path:"/vibes/:vibeId",element:e.jsx(w0,{})}),e.jsx(u,{path:"/board-3-shell",element:e.jsx(zd,{})}),e.jsx(u,{path:"/board-4",element:e.jsx(Od,{})}),e.jsx(u,{path:"/board-5",element:e.jsx(Dd,{})}),e.jsx(u,{path:"/board-6",element:e.jsx(Fd,{})}),e.jsx(u,{path:"/campaign-proposal-preview",element:e.jsx(Zd,{})}),e.jsx(u,{path:"/home-5",element:e.jsx(t,{})}),e.jsx(u,{path:"/landing",element:e.jsx(Be,{})}),e.jsx(u,{path:"/landing-no-drop",element:e.jsx(Be,{productDropEnabled:!1})}),e.jsx(u,{path:"/landing-backup",element:e.jsx(Be,{experienceVersion:"backup"})}),e.jsx(u,{path:"/landing-floating",element:e.jsx(Be,{heroVariant:"floating"})}),e.jsx(u,{path:"/landing-spiral",element:e.jsx(Be,{heroVariant:"spiral"})}),e.jsx(u,{path:"/landing-secondary",element:e.jsx(a0,{})}),e.jsx(u,{path:"/categories",element:e.jsx(n0,{})}),e.jsx(u,{path:"/categories/:slug",element:e.jsx(s0,{})}),e.jsx(u,{path:"/pricing",element:e.jsx(r0,{})}),e.jsx(u,{path:"/about",element:e.jsx(Bt,{doc:"about"})}),e.jsx(u,{path:"/terms",element:e.jsx(Bt,{doc:"terms"})}),e.jsx(u,{path:"/privacy",element:e.jsx(Bt,{doc:"privacy"})}),e.jsx(u,{path:"/library",element:e.jsx(o0,{})}),e.jsx(u,{path:"/styles-index",element:e.jsx(i0,{})}),e.jsx(u,{path:"/styles-manager",element:e.jsx(l0,{})}),e.jsx(u,{path:"/catalog",element:e.jsx(me,{to:"/library",replace:!0})}),e.jsx(u,{path:"/assets-history",element:e.jsx(fd,{})}),e.jsx(u,{path:"/settings/brand-dna",element:e.jsx(Za,{children:e.jsx(sn,{})})}),e.jsx(u,{path:"/",element:Ws?e.jsx(Be,{}):e.jsx(t,{})}),e.jsx(u,{path:"/home-3",element:e.jsx(me,{to:"/",replace:!0})}),e.jsx(u,{path:"/admin/collections",element:e.jsx(cn,{})}),e.jsx(u,{path:"/admin/styles",element:e.jsx($0,{})}),e.jsx(u,{path:"/admin/collections/:slug",element:e.jsx(cn,{})}),e.jsx(u,{path:"/admin/scene-preview",element:e.jsx($d,{})}),e.jsx(u,{path:"/social-ad-composed-preview",element:e.jsx(Bd,{})}),e.jsx(u,{path:"/collage-editorial",element:e.jsx(Ud,{})}),e.jsx(u,{path:"/ad-poster",element:e.jsx(qd,{})}),e.jsx(u,{path:"/board-nodes",element:e.jsx(Wd,{})}),e.jsx(u,{path:"/board-locked",element:e.jsx(Kd,{})}),e.jsx(u,{path:"/templates/:id",element:e.jsx(b0,{})}),e.jsx(u,{path:"/studio/create-legacy",element:e.jsx(Qd,{})}),e.jsx(u,{path:"/campaign",element:e.jsx(Yd,{})}),e.jsx(u,{path:"/campaign/batch",element:e.jsx(Xd,{})}),e.jsx(u,{path:"/agent/batch",element:e.jsx(me,{to:"/campaign/batch",replace:!0})}),e.jsx(u,{path:"/campaigns/:id",element:e.jsx(x0,{})}),e.jsx(u,{path:"/agent",element:e.jsx(f0,{})}),e.jsx(u,{path:"/agent/skill/:skillId",element:e.jsx(ln,{})}
26),e.jsx(u,{path:"/agent/thread/:threadId",element:e.jsx(ln,{})}),e.jsx(u,{path:"/knowledge",element:e.jsx(m0,{})}),e.jsx(u,{path:"/chat-showcase",element:e.jsx(h0,{})}),e.jsx(u,{path:"/home-2",element:e.jsx(Jd,{})}),e.jsx(u,{path:"/styleguide",element:e.jsx(_0,{})}),e.jsx(u,{path:"/elements",element:e.jsx(C0,{})}),e.jsx(u,{path:"/studio-ai-modal",element:e.jsx(G0,{})}),e.jsx(u,{path:"/audit",element:e.jsx(j0,{})}),e.jsx(u,{path:"/billing/plans",element:e.jsx(E0,{})}),e.jsx(u,{path:"/insight/:insightId",element:e.jsx(ne,{children:e.jsx(S0,{})})}),e.jsx(u,{path:"/insight/:insightId/plan",element:e.jsx(ne,{children:e.jsx(T0,{})})}),e.jsx(u,{path:"/workflows",element:e.jsx(ne,{children:e.jsx(B0,{})})}),e.jsx(u,{path:"/workflows/:workflowId",element:e.jsx(ne,{children:e.jsx(U0,{})})}),e.jsx(u,{path:"/workflows/:workflowId/runs/:runId",element:e.jsx(ne,{children:e.jsx(q0,{})})}),e.jsx(u,{path:"/presets",element:e.jsx(ne,{children:e.jsx(W0,{})})}),e.jsx(u,{path:"*",element:e.jsx(Za,{children:e.jsxs(ba,{children:[e.jsx(u,{path:"/",element:e.jsx(me,{to:"/home-5",replace:!0})}),e.jsx(u,{path:"/discover",element:e.jsx(cd,{})}),e.jsx(u,{path:"/boards",element:e.jsx(v0,{})}),e.jsx(u,{path:"/skills",element:e.jsx(Ad,{})}),e.jsx(u,{path:"/tarefas",element:e.jsx(Sd,{})}),e.jsx(u,{path:"/tasks",element:e.jsx(Pd,{})}),e.jsx(u,{path:"/workspace",element:e.jsx(ld,{})}),e.jsx(u,{path:"/co-workers",element:e.jsx(_d,{})}),e.jsx(u,{path:"/co-workers/:coWorkerId",element:e.jsx(Cd,{})}),e.jsx(u,{path:"/agent/:agentId",element:e.jsx(dd,{})}),e.jsx(u,{path:"/customer-service",element:e.jsx(ud,{})}),e.jsx(u,{path:"/apps",element:e.jsx(pd,{})}),e.jsx(u,{path:"/chat/action/:actionId",element:e.jsx(vd,{})}),e.jsx(u,{path:"/chat/:chatId",element:e.jsx(md,{})}),e.jsx(u,{path:"/notifications",element:e.jsx(hd,{})}),e.jsx(u,{path:"/history",element:e.jsx(gd,{})}),e.jsx(u,{path:"/new-chat",element:e.jsx(xd,{})}),e.jsx(u,{path:"/installed/:coworkerId",element:e.jsx(bd,{})}),e.jsx(u,{path:"/settings/avatars",element:e.jsx(wd,{})}),e.jsx(u,{path:"/brand-dna",element:e.jsx(sn,{})}),e.jsx(u,{path:"/brand/dna",element:e.jsx(Td,{})}),e.jsx(u,{path:"/brand/casting",element:e.jsx(kd,{})}),e.jsx(u,{path:"/settings/styles",element:e.jsx(c0,{})}),e.jsx(u,{path:"/settings/connections",element:e.jsx(Id,{})}),e.jsx(u,{path:"/settings/plan",element:e.jsx(Hd,{})}),e.jsx(u,{path:"/settings/credits",element:e.jsx(Ld,{})}),e.jsx(u,{path:"/settings",element:e.jsx(Rd,{})}),e.jsx(u,{path:"/posts",element:e.jsx(g0,{})}),e.jsx(u,{path:"/home-4",element:e.jsx(e0,{})}),e.jsx(u,{path:"/admin/visual-dna",element:e.jsx(d0,{})}),e.jsx(u,{path:"/admin/emails",element:e.jsx(ne,{children:e.jsx(Q0,{})})}),e.jsx(u,{path:"/admin/funnel",element:e.jsx(Y0,{})}),e.jsx(u,{path:"/admin/image-styles",element:e.jsx(p0,{})}),e.jsx(u,{path:"/admin/style-references",element:e.jsx(k0,{})}),e.jsx(u,{path:"/admin/style-audit",element:e.jsx(R0,{})}),e.jsx(u,{path:"/admin/brand-images",element:e.jsx(H0,{})}),e.jsx(u,{path:"/admin/brand-library",element:e.jsx(L0,{})}),e.jsx(u,{path:"/admin/style-calibration",element:e.jsx(I0,{})}),e.jsx(u,{path:"/admin/scenes",element:e.jsx(V0,{})}),e.jsx(u,{path:"/admin/gise",element:e.jsx(M0,{})}),e.jsx(u,{path:"/admin/style-covers",element:e.jsx(N0,{})}),e.jsx(u,{path:"/admin/landing",element:e.jsx(O0,{})}),e.jsx(u,{path:"/admin/demo-store",element:e.jsx(D0,{})}),e.jsx(u,{path:"/admin/scene-fit",element:e.jsx(Z0,{})}),e.jsx(u,{path:"/admin/taxonomy",element:e.jsx(z0,{})}),e.jsx(u,{path:"/templates-admin",element:e.jsx(A0,{})}),e.jsx(u,{path:"/campaign-templates-admin",element:e.jsx(P0,{})}),e.jsx(u,{path:"/studio/calendar",element:e.jsx(u0,{})}),e.jsx(u,{path:"/design-system",element:e.jsx(Ed,{})}),e.jsx(u,{path:"/design-system-v1",element:e.jsx(jd,{})}),e.jsx(u,{path:"*",element:e.jsx(yd,{})})]})})})]})})})})})]})]})})})})})})})})})},Wu=Object.freeze(Object.defineProperty({__proto__:null,default:mu},Symbol.toStringTag,{value:"Module"}));export{hl as $,Ou as A,Yi as B,ks as C,sc as D,ys as E,xl as F,_s as G,rc as H,bt as I,Ec as J,Ac as K,Cc as L,Mu as M,jc as N,Cs as O,Ts as P,Qa as Q,Ps as R,_l as S,ku as T,ws as U,Lu as V,Iu as W,Vu as X,ui as Y,Du as Z,oc as _,Ki as a,pl as a0,yt as a1,Hu as a2,qu as a3,gt as a4,zu as a5,$c as a6,dt as a7,Zu as a8,zs as a9,$u as aa,qc as ab,Uu as ac,Bu as ad,Zs as ae,Wu as af,Uo as b,Ji as c,al as d,Yt as e,Ko as f,Tu as g,Hn as h,Wo as i,Go as j,qo as k,Jo as l,ka as m,Yo as n,Xo as o,Fu as p,Pu as q,Fc as r,Ra as s,$n as t,Ru as u,Ss as v,lc as w,bs as x,sl as y,Pc 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.