decocms 4.533.2 → 4.533.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{ActiveShapeUtils-DpBSsK0f.js → ActiveShapeUtils-CdXsV3S7.js} +1 -1
- package/dist/client/assets/{AlertCircle-B4LJNTKS.js → AlertCircle-3zlHk1bR.js} +1 -1
- package/dist/client/assets/{AreaChart-BTzEOjjm.js → AreaChart-abAlkUS3.js} +1 -1
- package/dist/client/assets/{ArrowLeft-DsT-A_9a.js → ArrowLeft-DmLRalOz.js} +1 -1
- package/dist/client/assets/{ArrowUp-DCZ2ZuMw.js → ArrowUp-DYpVM4EW.js} +1 -1
- package/dist/client/assets/{BarChart-meDS0cd-.js → BarChart-QA5Y4_eS.js} +1 -1
- package/dist/client/assets/{Building02-BVEi_Omy.js → Building02-BfF63iaY.js} +1 -1
- package/dist/client/assets/{CartesianChart-BwKDL985.js → CartesianChart-C7RhMZbm.js} +1 -1
- package/dist/client/assets/{CategoricalChart-CcKsHzag.js → CategoricalChart-VnQ3lkHZ.js} +1 -1
- package/dist/client/assets/{CheckCircle-SRU1EAml.js → CheckCircle-DFCQG4PZ.js} +1 -1
- package/dist/client/assets/{ChevronSelectorVertical-CasRkoWv.js → ChevronSelectorVertical-BQnuYb4d.js} +1 -1
- package/dist/client/assets/{ChevronUp-DYpp4P_6.js → ChevronUp-BADsHIlZ.js} +1 -1
- package/dist/client/assets/{Copy01-iRRx3zHH.js → Copy01-BuXPB74z.js} +1 -1
- package/dist/client/assets/{CreditCard01-CtFM4LsJ.js → CreditCard01-3pgS1FBj.js} +1 -1
- package/dist/client/assets/{DotsVertical-D6PtM_TB.js → DotsVertical-DGPGhZOp.js} +1 -1
- package/dist/client/assets/{ErrorBarContext-DclVOngN.js → ErrorBarContext-DjbsBuIQ.js} +1 -1
- package/dist/client/assets/{Globe04-mK-phu3w.js → Globe04-h_nDPacm.js} +1 -1
- package/dist/client/assets/{Image01-C7HITEdI.js → Image01-C3eHO4JB.js} +1 -1
- package/dist/client/assets/{Key01-xfQzNKYA.js → Key01-BHDBC0Ty.js} +1 -1
- package/dist/client/assets/{Link01-Gb8xs6FR.js → Link01-CWRvYa94.js} +1 -1
- package/dist/client/assets/{LinkBroken01-BVxBvnFP.js → LinkBroken01-D8s-Aoli.js} +1 -1
- package/dist/client/assets/{Minus-DMI4hsKe.js → Minus-BDVlfQ1F.js} +1 -1
- package/dist/client/assets/{Monitor01-d3JI-rbW.js → Monitor01-DufxSkfE.js} +1 -1
- package/dist/client/assets/{Play-B9Fa-KbN.js → Play-B4Nce4IV.js} +1 -1
- package/dist/client/assets/{Plus-jtkisFoL.js → Plus-DjulKDZN.js} +1 -1
- package/dist/client/assets/{ReferenceLine-BMk-z8TK.js → ReferenceLine-BcRJIMrO.js} +1 -1
- package/dist/client/assets/{SearchMd-DWEUHv9_.js → SearchMd-LiFx-NKw.js} +1 -1
- package/dist/client/assets/{Sector-VQy4KbLK.js → Sector-Vy_DZ6Ya.js} +1 -1
- package/dist/client/assets/{ShoppingBag01-BMdXY9q0.js → ShoppingBag01-Diu_6vhS.js} +1 -1
- package/dist/client/assets/{Sun-1NR_rcJj.js → Sun-DwpHFeTI.js} +1 -1
- package/dist/client/assets/{SwitchHorizontal01-ChPDhGme.js → SwitchHorizontal01-DSVF0HAp.js} +1 -1
- package/dist/client/assets/{Tool01-DCRrJl21.js → Tool01-NhBuMmUV.js} +1 -1
- package/dist/client/assets/{Trash01-8xnvq0nE.js → Trash01-6fKruzF0.js} +1 -1
- package/dist/client/assets/{Upload01-C8tSFeSd.js → Upload01-XEi-StK2.js} +1 -1
- package/dist/client/assets/{UserSquare-DZrFKHiS.js → UserSquare-eFGH-oUL.js} +1 -1
- package/dist/client/assets/{Users01-DO_FGofT.js → Users01-BsuShWDn.js} +1 -1
- package/dist/client/assets/{XClose-CdMD1MSY.js → XClose-CmswVBOn.js} +1 -1
- package/dist/client/assets/{ZoomOut-BMHxRmZd.js → ZoomOut-DZO-NyFl.js} +1 -1
- package/dist/client/assets/{access-gate-WioxQPPZ.js → access-gate-mZiv8FOt.js} +1 -1
- package/dist/client/assets/{add-connection-dialog-DIFbXx9Z.js → add-connection-dialog-Bs11uRPt.js} +1 -1
- package/dist/client/assets/{agent-analytics-D4BMyQTS.js → agent-analytics-CSaBErHP.js} +1 -1
- package/dist/client/assets/agent-app-CpchlFDM.js +1 -0
- package/dist/client/assets/{agent-assets-DKyleP_H.js → agent-assets-DFlbYpaG.js} +1 -1
- package/dist/client/assets/{agent-automation-LVzi2Lv8.js → agent-automation-CQUF61n4.js} +1 -1
- package/dist/client/assets/{agent-automations-BmOO-Tn1.js → agent-automations-LxAQfaS1.js} +1 -1
- package/dist/client/assets/{agent-calendar-Coas2SvP.js → agent-calendar-BOffXUuz.js} +1 -1
- package/dist/client/assets/{agent-connect-sources-ORKDOcWl.js → agent-connect-sources-Bo6TPGly.js} +1 -1
- package/dist/client/assets/agent-deck-BsttewCw.js +1 -0
- package/dist/client/assets/{agent-e2e-Dxueh7Ni.js → agent-e2e-Dxeiz6Hg.js} +1 -1
- package/dist/client/assets/agent-experiments-DgwnRVuo.js +1 -0
- package/dist/client/assets/{agent-file-BtY3mLDK.js → agent-file-Btt92on1.js} +1 -1
- package/dist/client/assets/{agent-hosting-CKUD4fkI.js → agent-hosting-58n6tbGl.js} +1 -1
- package/dist/client/assets/{agent-icon-BMYCi2LT.js → agent-icon-D2O6Ysxj.js} +1 -1
- package/dist/client/assets/agent-library-C6xhflxa.js +1 -0
- package/dist/client/assets/agent-library-file-Lh5pI681.js +1 -0
- package/dist/client/assets/agent-monitor-B7Pvzm4h.js +1 -0
- package/dist/client/assets/{agent-overview-geS17XOQ.js → agent-overview--3R-F01i.js} +1 -1
- package/dist/client/assets/{agent-releases-C3WKDrKT.js → agent-releases-CiTUBkUu.js} +1 -1
- package/dist/client/assets/agent-settings-DkY2WG9h.js +1 -0
- package/dist/client/assets/{agent-site-editor-qCYYu7JS.js → agent-site-editor-Cyp35eBO.js} +1 -1
- package/dist/client/assets/agent-site-editor-code-Ck6tXuvy.js +2 -0
- package/dist/client/assets/agent-site-editor-content-TPfojHsu.js +1 -0
- package/dist/client/assets/agent-site-editor-preview-Bv1qplXm.js +1 -0
- package/dist/client/assets/agent-view-Dy5CpY1v.js +1 -0
- package/dist/client/assets/{agent-view-guard-P6oqlnhA.js → agent-view-guard-DITCswoZ.js} +1 -1
- package/dist/client/assets/{agents-list-DIOxHByB.js → agents-list-vpifaSDW.js} +1 -1
- package/dist/client/assets/{ai-providers-DOZRUAS-.js → ai-providers-Dph9V-S2.js} +1 -1
- package/dist/client/assets/{alert-CON7MFrB.js → alert-BIVSlp4X.js} +1 -1
- package/dist/client/assets/{analytics-sections-CIEa5kON.js → analytics-sections-C9r_Id8f.js} +1 -1
- package/dist/client/assets/{api-keys-DF8aOcqH.js → api-keys-OLI6lFDy.js} +1 -1
- package/dist/client/assets/api-keys-bAkry4Sk.js +1 -0
- package/dist/client/assets/{app-editor-XRAAA-Vf.js → app-editor-BYMnhTet.js} +1 -1
- package/dist/client/assets/{asset-utils-CakmdGjC.js → asset-utils-s-rRWLDR.js} +1 -1
- package/dist/client/assets/{auth-catchall-BbRcVR0n.js → auth-catchall-C_KiXSY-.js} +1 -1
- package/dist/client/assets/{auth-entry-CGMWcuDU.js → auth-entry-C1SLfq5y.js} +1 -1
- package/dist/client/assets/{auth-TDeH5XUI.js → auth-mUy8P9mz.js} +1 -1
- package/dist/client/assets/{auth-split-layout-DldiTyo8.js → auth-split-layout-C_joRAuD.js} +1 -1
- package/dist/client/assets/{authenticate-and-persist-oauth-B16pl7vt.js → authenticate-and-persist-oauth-Br6pb9qL.js} +1 -1
- package/dist/client/assets/{automation-list-row-CtSQd8nz.js → automation-list-row-BG7LwDup.js} +1 -1
- package/dist/client/assets/{automation-runs-BMVd1dpI.js → automation-runs-D5ib3rJJ.js} +1 -1
- package/dist/client/assets/{automations-C8uUahzu.js → automations-pErLtBmM.js} +1 -1
- package/dist/client/assets/{autosend-DbE_vSJu.js → autosend-fmyzxlgv.js} +1 -1
- package/dist/client/assets/{badge-WodMrle4.js → badge-D_XaqFCD.js} +1 -1
- package/dist/client/assets/{block-document-D_kww47R.js → block-document-BbeKhIjN.js} +1 -1
- package/dist/client/assets/{blocks-preview-workspace-context-DVsIvp7N.js → blocks-preview-workspace-context-BkWHKGnG.js} +1 -1
- package/dist/client/assets/{blocks-tab-states-Bv8bzxP1.js → blocks-tab-states-C7qCSetR.js} +1 -1
- package/dist/client/assets/{blog-schema-B-80Qlar.js → blog-schema-BfUeFqnA.js} +1 -1
- package/dist/client/assets/{buckets-DPwPMd15.js → buckets-CvEidzt4.js} +1 -1
- package/dist/client/assets/{build-improve-prompt-doc-BBnEeKqS.js → build-improve-prompt-doc-DWVQcr8S.js} +1 -1
- package/dist/client/assets/{calendar-CPmJ_i4I.js → calendar-D5qyPmPe.js} +1 -1
- package/dist/client/assets/{capability-load-error-C-SlebPc.js → capability-load-error-Cadq9Tfk.js} +1 -1
- package/dist/client/assets/{category-editor-CrVFrrXq.js → category-editor-Dhi0w6mp.js} +1 -1
- package/dist/client/assets/{cdn-tab-BHJHKjBJ.js → cdn-tab-D5vyoNZe.js} +1 -1
- package/dist/client/assets/{chart-B1yyoGAD.js → chart-BCmVS-sn.js} +1 -1
- package/dist/client/assets/{chat-context-C3sOZ7WE.js → chat-context-DQIwjTah.js} +1 -1
- package/dist/client/assets/{chat-draft-DCvGpydn.js → chat-draft-D_5rgFXD.js} +1 -1
- package/dist/client/assets/{checkbox-DxcdYz1H.js → checkbox-B1LwoLFy.js} +1 -1
- package/dist/client/assets/{choose-editor-C1_tJgFB.js → choose-editor-B-PLdH8j.js} +1 -1
- package/dist/client/assets/{cli-auth-success-DQbGXBQ8.js → cli-auth-success-CbU133Cr.js} +1 -1
- package/dist/client/assets/{client-icons-Dbet44-J.js → client-icons-Yic2XONz.js} +1 -1
- package/dist/client/assets/{cms-settings-editor-BH-efxBd.js → cms-settings-editor-TqgyrL8V.js} +1 -1
- package/dist/client/assets/{collapsible-ZkT99S7V.js → collapsible-CVxiAnD0.js} +1 -1
- package/dist/client/assets/{collection-detail-BiSfoPd5.js → collection-detail-DcUQ1g_5.js} +1 -1
- package/dist/client/assets/{collection-display-button-B1GhyOqf.js → collection-display-button-BwvT5j3N.js} +1 -1
- package/dist/client/assets/{collection-search-CmUyatVb.js → collection-search-C7AC5mzN.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-6Iou9gEQ.js → collection-table-wrapper-BkW0lNmQ.js} +1 -1
- package/dist/client/assets/{collection-tabs-KIGkDkCq.js → collection-tabs-DysuRzTT.js} +1 -1
- package/dist/client/assets/{column-rules-wIJAIKRY.js → column-rules-DrQ3zKVW.js} +1 -1
- package/dist/client/assets/{combobox-FEz9nHbl.js → combobox-DIlCtv4m.js} +1 -1
- package/dist/client/assets/{command-BfXa6Alp.js → command-CmSy_63D.js} +1 -1
- package/dist/client/assets/{companion-mcps-section-Co6bTdvJ.js → companion-mcps-section-BJVxRFbR.js} +1 -1
- package/dist/client/assets/{config-BgsWD4sY.js → config-k6eupn0H.js} +1 -1
- package/dist/client/assets/{connect-BAxjV2jF.js → connect-1IzEMu95.js} +1 -1
- package/dist/client/assets/{connect-layout-CcyOT7Q5.js → connect-layout-B9EK05eh.js} +1 -1
- package/dist/client/assets/{connect-source-dialog-Dft8IIQt.js → connect-source-dialog-B9kwZ1qm.js} +1 -1
- package/dist/client/assets/{connection-Mojfvb6v.js → connection-8s94grp4.js} +1 -1
- package/dist/client/assets/{connection-card-BK-grbUT.js → connection-card-6_vGNwe6.js} +1 -1
- package/dist/client/assets/{connection-detail-BynIRAi8.js → connection-detail-06L9lcjS.js} +1 -1
- package/dist/client/assets/{connection-form-helpers-DjrxR20t.js → connection-form-helpers-B7-YxvfS.js} +1 -1
- package/dist/client/assets/{connections-D6aTSSeV.js → connections-B67BU6-u.js} +1 -1
- package/dist/client/assets/{content-tab-DH-oDMmp.js → content-tab-C8kwNsNv.js} +3 -3
- package/dist/client/assets/{context-B7Ll9JHJ.js → context-BJ4DUI4o.js} +1 -1
- package/dist/client/assets/{context-menu-Cu_xIofI.js → context-menu-DrJNCXai.js} +1 -1
- package/dist/client/assets/{context-shell-IGSIiaa2.js → context-shell-Cf8JU1_N.js} +3 -3
- package/dist/client/assets/{core.esm-B_pl-N3K.js → core.esm-8ysL4nmy.js} +1 -1
- package/dist/client/assets/{create-organization-dialog-DMpQma5o.js → create-organization-dialog-CRVy32Y2.js} +1 -1
- package/dist/client/assets/daily-pulse-oZsmQ576.js +1 -0
- package/dist/client/assets/{discover-IJwdRz3Z.js → discover-CBj9Ot9k.js} +1 -1
- package/dist/client/assets/{domain-settings-u4k7jChl.js → domain-settings-Cuj3cb68.js} +1 -1
- package/dist/client/assets/{drawer-E2Kpg9Hd.js → drawer-DoWw3X-U.js} +1 -1
- package/dist/client/assets/{editor-BHkNJNCp.js → editor-D54k8w6W.js} +1 -1
- package/dist/client/assets/{editor-classes-DQLQ7_TQ.js → editor-classes-DvaDe0n2.js} +1 -1
- package/dist/client/assets/{empty-state-CC7FTz7y.js → empty-state-B1U3dIOI.js} +1 -1
- package/dist/client/assets/{empty-state-rZzgliti.js → empty-state-B6ZF6z6U.js} +1 -1
- package/dist/client/assets/experiments-tab-Bf-4FZ8A.js +1 -0
- package/dist/client/assets/{experiments-tab-choice-DPFw6bgB.js → experiments-tab-choice-CSZHqOVL.js} +1 -1
- package/dist/client/assets/{extract-connection-data-BrEX2VM2.js → extract-connection-data-dVntHSWe.js} +1 -1
- package/dist/client/assets/{feature-gate-hheYdaIS.js → feature-gate-CGLZlvT1.js} +1 -1
- package/dist/client/assets/{feature-paywall-IoBD91DD.js → feature-paywall-YRUC3hnv.js} +1 -1
- package/dist/client/assets/{file-explorer-CBQpjYjz.js → file-explorer-CnB8AqiD.js} +1 -1
- package/dist/client/assets/{file-preview-CqxZkGFl.js → file-preview-B3fPhoS1.js} +1 -1
- package/dist/client/assets/{file-share-button-CuK5LvxM.js → file-share-button--vHcbynF.js} +1 -1
- package/dist/client/assets/{file-type-icon-DIGglv5T.js → file-type-icon-BSvWJ_yJ.js} +1 -1
- package/dist/client/assets/{folder-icon-CoBgoOmp.js → folder-icon-D9KEEKgD.js} +1 -1
- package/dist/client/assets/{form-Dg30DIhS.js → form-DkJLMDiZ.js} +1 -1
- package/dist/client/assets/{general-m7jFsU7f.js → general-yzYHBZqk.js} +1 -1
- package/dist/client/assets/{held-block-view-CtROESR9.js → held-block-view-Bcr038cE.js} +3 -3
- package/dist/client/assets/{home-DJPOySDV.js → home-CdpLVlWp.js} +1 -1
- package/dist/client/assets/{hosted-publish-feedback-N_KeWGli.js → hosted-publish-feedback-CpvmWvo8.js} +1 -1
- package/dist/client/assets/{icon-button-BbFyr4hV.js → icon-button-NEW9CrVR.js} +1 -1
- package/dist/client/assets/{index-BhqBDWTM.js → index-69Wn6Yn2.js} +1 -1
- package/dist/client/assets/{index-Co_yUuqx.js → index-Bah4YwbV.js} +1 -1
- package/dist/client/assets/{index-CsTWjIHm.js → index-Bk4q9Kta.js} +1 -1
- package/dist/client/assets/{index-DGBLrKkN.js → index-C1xdxqY4.js} +1 -1
- package/dist/client/assets/{index-DQsCpYYz.js → index-C1zQxIQC.js} +1 -1
- package/dist/client/assets/{index-It89C9LI.js → index-DCpCimmv.js} +1 -1
- package/dist/client/assets/{index-BFVAGcnx.js → index-DHKvbX-F.js} +1 -1
- package/dist/client/assets/{index-CqrDSyNb.js → index-DV0IMvuF.js} +1 -1
- package/dist/client/assets/{index-CpdL1Va-.js → index-Da57lEgV.js} +1 -1
- package/dist/client/assets/{index-Cpv6Vk_g.js → index-Dj2q9Kk6.js} +1 -1
- package/dist/client/assets/{index-DJbgr79C.js → index-DlBqAQ8N.js} +3 -3
- package/dist/client/assets/{index-ChVbdfHi.js → index-fPzpoiMb.js} +1 -1
- package/dist/client/assets/{index-D7fNVGbf.js → index-hXfcnGlM.js} +1 -1
- package/dist/client/assets/{index-DZa7i6r0.js → index-iHeHzM9q.js} +1 -1
- package/dist/client/assets/{index-redirect-CkISjxg7.js → index-redirect-BTQYAvyK.js} +1 -1
- package/dist/client/assets/{index-DQCZk8JD.js → index-y2MV63Fm.js} +1 -1
- package/dist/client/assets/{infiniteQueryObserver-X2NgiPcg.js → infiniteQueryObserver-B1X7cH_h.js} +1 -1
- package/dist/client/assets/{infra-billing-CrqP3iz7.js → infra-billing-I23Yzx7q.js} +1 -1
- package/dist/client/assets/{input-CoHLeahL.js → input-BM4k5AWI.js} +1 -1
- package/dist/client/assets/{input-CjtatUDp.js → input-C1vi2y8a.js} +3 -3
- package/dist/client/assets/{integration-icon-DlMhG8xl.js → integration-icon-DffiYnsw.js} +1 -1
- package/dist/client/assets/{jira-icon-CukpnmtM.js → jira-icon-CDq47JPG.js} +1 -1
- package/dist/client/assets/{label-TOq4jdfb.js → label-CI9_CFR6.js} +1 -1
- package/dist/client/assets/{layout-w4WJkju6.js → layout-86e7th4n.js} +1 -1
- package/dist/client/assets/{legacy-agents-deep-CZke_8Pu.js → legacy-agents-deep-DrwenQap.js} +1 -1
- package/dist/client/assets/{legacy-main-redirect-FEIRAehz.js → legacy-main-redirect-BMDUgvXe.js} +1 -1
- package/dist/client/assets/library-3tOBnuzW.js +1 -0
- package/dist/client/assets/{login-BihXJzl3.js → login-Q6QzHe98.js} +1 -1
- package/dist/client/assets/{markdown-fi-bkNlC.js → markdown-DtVTVyIC.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-UI6Sl5iU.js → mcp-app-renderer-B0DJyUaD.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CMFUZfJD.js → mcp-oauth-BgZxPic2.js} +1 -1
- package/dist/client/assets/{mcp-oauth-CG2_GPd1.js → mcp-oauth-C2iU61yB.js} +1 -1
- package/dist/client/assets/{members-C1FmO74U.js → members-Bk_T8psV.js} +1 -1
- package/dist/client/assets/{memory-Bk_OycOd.js → memory-BGQEqAyY.js} +1 -1
- package/dist/client/assets/{mini-report-page-CFpTZaYU.js → mini-report-page-CIdyHIZJ.js} +1 -1
- package/dist/client/assets/mock-board-Djd1BZ6E.js +81 -0
- package/dist/client/assets/{monaco-editor-DYh1ynMq.js → monaco-editor-D_Oeav_Z.js} +1 -1
- package/dist/client/assets/monitoring-D1EdmxtK.js +1 -0
- package/dist/client/assets/{monitoring-stats-row-DpdJSZhn.js → monitoring-stats-row-DdlyqvJE.js} +1 -1
- package/dist/client/assets/{multi-select-XbaIbWsh.js → multi-select-DY9yJzQs.js} +1 -1
- package/dist/client/assets/{mustache-DKwt3BXe.js → mustache-D61fFDb3.js} +1 -1
- package/dist/client/assets/{named-rule-uses-BJmKxN6Q.js → named-rule-uses-DImccIYP.js} +1 -1
- package/dist/client/assets/{new-project-dialog-DmZfAJ2X.js → new-project-dialog-kzuu4Dyf.js} +1 -1
- package/dist/client/assets/{oauth-callback-DaRDGusD.js → oauth-callback-DcDcp9ht.js} +1 -1
- package/dist/client/assets/{oauth-callback-ai-provider-C_3I8nXc.js → oauth-callback-ai-provider-Bjee7W5B.js} +1 -1
- package/dist/client/assets/{onboarding-CJntlshT.js → onboarding-DvIF4FSK.js} +1 -1
- package/dist/client/assets/{openai-conversation-D7d-4mdu.js → openai-conversation-CjhycVDX.js} +1 -1
- package/dist/client/assets/{optimistic-project-sidebar-views-D-oua8Wh.js → optimistic-project-sidebar-views-QrUaUcI4.js} +1 -1
- package/dist/client/assets/{order-monitor-day-vzbm92s5.js → order-monitor-day-BKjwxjjy.js} +1 -1
- package/dist/client/assets/{organization-choice-l8jj7Vww.js → organization-choice-BKIz2sU3.js} +1 -1
- package/dist/client/assets/{orgs-Cjm59vvP.js → orgs-Cm95p7RP.js} +1 -1
- package/dist/client/assets/{page-seo-form-BIotSYWT.js → page-seo-form-CL0dKYhs.js} +1 -1
- package/dist/client/assets/{pair-ikkBXQ4r.js → pair-BiKkCxaG.js} +1 -1
- package/dist/client/assets/{parse-sections-DhtMIp9J.js → parse-sections-jfUka-ew.js} +1 -1
- package/dist/client/assets/{plan-BddLpeau.js → plan-Bha3pvLg.js} +1 -1
- package/dist/client/assets/{plan-ladder-BXMa2odv.js → plan-ladder-BCwguLCI.js} +1 -1
- package/dist/client/assets/{popover-Nqo0NO2r.js → popover-DClIX5lD.js} +1 -1
- package/dist/client/assets/{post-calendar-DkxecMqD.js → post-calendar-kalt2MD0.js} +1 -1
- package/dist/client/assets/{post-editor-CpzPoO4M.js → post-editor-Imtzd9hl.js} +1 -1
- package/dist/client/assets/{preview-content-CFf4qj3k.js → preview-content-OZjgSgMZ.js} +1 -1
- package/dist/client/assets/{preview-dialog-B-uqUjD3.js → preview-dialog-CBkdchfP.js} +1 -1
- package/dist/client/assets/{preview-panel-efY3N97A.js → preview-panel-BbgJC3B_.js} +1 -1
- package/dist/client/assets/{preview-tab-CWvcDmfF.js → preview-tab-qtdXsUO8.js} +3 -3
- package/dist/client/assets/{product-picker-dialog-C_4uy0lE.js → product-picker-dialog-Dgg0Alt7.js} +1 -1
- package/dist/client/assets/{profile-MlOeOB0D.js → profile-Cmb0Uq9T.js} +1 -1
- package/dist/client/assets/{project-app-view-BJ93hip0.js → project-app-view-C9SIUrEh.js} +1 -1
- package/dist/client/assets/{project-apps-I4iymxC_.js → project-apps-CWp3jzPS.js} +1 -1
- package/dist/client/assets/{project-feed-zfkaVmu4.js → project-feed-DIYZgm5v.js} +1 -1
- package/dist/client/assets/{project-icon-evkI2wUa.js → project-icon-C5kNnOFq.js} +1 -1
- package/dist/client/assets/project-reports-DJhPJTRc.js +1 -0
- package/dist/client/assets/project-tasks-ItwqddIw.js +1 -0
- package/dist/client/assets/{projects-B8GNDoL6.js → projects-D4v4Oq64.js} +1 -1
- package/dist/client/assets/{projects-empty-state-DI-QOSkS.js → projects-empty-state-D4fHv0Vx.js} +1 -1
- package/dist/client/assets/{prompts-Bq1kaZc4.js → prompts-CYI2Ca4j.js} +1 -1
- package/dist/client/assets/record-editor-B7uavues.js +1 -0
- package/dist/client/assets/{redirect-editor-B33EN8Vd.js → redirect-editor-CmRN_0xc.js} +1 -1
- package/dist/client/assets/{releases-api-BpUGiuG2.js → releases-api-DxEm_izB.js} +1 -1
- package/dist/client/assets/reports-CSjngTEz.js +1 -0
- package/dist/client/assets/{reports-BMYFg9FF.js → reports-CbNZsWyp.js} +1 -1
- package/dist/client/assets/{reports-onboarding-C4wftGuh.js → reports-onboarding-6K8tJ5J_.js} +1 -1
- package/dist/client/assets/{reports-tab-CGIFrFkA.js → reports-tab-DZE0kToJ.js} +2 -2
- package/dist/client/assets/repositories-CC9x9vTF.js +1 -0
- package/dist/client/assets/{repositories-BkWBuxkg.js → repositories-Cv3p6t_W.js} +1 -1
- package/dist/client/assets/{repository-binding-3l2WKuhw.js → repository-binding-CcdmL6ag.js} +1 -1
- package/dist/client/assets/{repository-import-picker-BYO712AP.js → repository-import-picker-DuNS63Y0.js} +1 -1
- package/dist/client/assets/{repository-picker-OWeXHyw5.js → repository-picker-D37YtUW-.js} +1 -1
- package/dist/client/assets/{require-capability-CooU_2Ka.js → require-capability-wqNUtYQV.js} +1 -1
- package/dist/client/assets/{required-auth-layout-BwRF7f-1.js → required-auth-layout-Cj_D5aeR.js} +1 -1
- package/dist/client/assets/{reset-password-B5CUoE5L.js → reset-password-qin72Rw_.js} +1 -1
- package/dist/client/assets/{resizable-D6wYJr6Y.js → resizable-DkWxmtNv.js} +1 -1
- package/dist/client/assets/{resolve-tab-icon-V4eG1DEz.js → resolve-tab-icon-Bbn4K7a-.js} +1 -1
- package/dist/client/assets/{review-settings-0C99AKtW.js → review-settings-DvOOayH7.js} +1 -1
- package/dist/client/assets/{roles-Dl6Vqz_F.js → roles-_9O3_in0.js} +1 -1
- package/dist/client/assets/{route-Bzw3itzn.js → route-3yxLu2NB.js} +1 -1
- package/dist/client/assets/{route-D6uy3Peb.js → route-CgAwr8_y.js} +1 -1
- package/dist/client/assets/route-t6Vm8Ywp.js +1 -0
- package/dist/client/assets/{sandbox-lifecycle-context-DLfrvHjk.js → sandbox-lifecycle-context-4NgrDeJq.js} +1 -1
- package/dist/client/assets/{schema-DM0_2Ir6.js → schema-BI1J5KjU.js} +1 -1
- package/dist/client/assets/{schema-1akygq6C.js → schema-XnSsI13A.js} +1 -1
- package/dist/client/assets/{scroll-area-DRq8rIUH.js → scroll-area-DyDtaNCg.js} +1 -1
- package/dist/client/assets/{search-input-1UkDwkwQ.js → search-input-JrdzMOm_.js} +1 -1
- package/dist/client/assets/{search-toggle-0jbrSo5B.js → search-toggle-wYGVtvVW.js} +1 -1
- package/dist/client/assets/{secret-picker-CIKyyqvK.js → secret-picker-DWXnDb0U.js} +1 -1
- package/dist/client/assets/{secrets-BPiOlmvK.js → secrets-Cg7YmK1o.js} +1 -1
- package/dist/client/assets/{section-array-field-B0mXJzJ-.js → section-array-field-CfCCudbI.js} +1 -1
- package/dist/client/assets/{sections-CxUPEZO2.js → sections-DxQyJ7Yy.js} +1 -1
- package/dist/client/assets/{sections-editor-4pj5hpT7.js → sections-editor-2qsFcYQx.js} +1 -1
- package/dist/client/assets/{select-CST2GhtR.js → select-RAX0QYEC.js} +1 -1
- package/dist/client/assets/{select-model-DoMyJ3D5.js → select-model-DpOOiTD1.js} +1 -1
- package/dist/client/assets/{seo-editor-59hV2pMW.js → seo-editor-9wU3TQPz.js} +1 -1
- package/dist/client/assets/{separator-B_IZ7RAh.js → separator-B0GmpR9Y.js} +1 -1
- package/dist/client/assets/settings-tab-B6r8sKLk.js +1 -0
- package/dist/client/assets/{sheet-CRB2BRVT.js → sheet-7o24rLAF.js} +1 -1
- package/dist/client/assets/{shell-layout-DM_Y3Qes.js → shell-layout-Br0nQ-w1.js} +1 -1
- package/dist/client/assets/{site-draft-actions-H_SrG7ol.js → site-draft-actions-CPsRPxRa.js} +1 -1
- package/dist/client/assets/{site-draft-view-IFToRN1B.js → site-draft-view-BY9yW2Ej.js} +2 -2
- package/dist/client/assets/site-editor-CUxt9aeG.js +1 -0
- package/dist/client/assets/{site-editor-toast-DIUCSzv5.js → site-editor-toast-BV71DbMY.js} +1 -1
- package/dist/client/assets/{skills-EnKdltF2.js → skills-Nw1X0lYG.js} +1 -1
- package/dist/client/assets/{slider-BdSRZilg.js → slider-C7FCoMPq.js} +1 -1
- package/dist/client/assets/{sortable.esm-Die42Fgq.js → sortable.esm-3LT8rMWS.js} +1 -1
- package/dist/client/assets/{sso-DAT9TqUH.js → sso-CuV4SaSb.js} +1 -1
- package/dist/client/assets/{suggestion-BqSn2NPp.js → suggestion-B8EqJCT2.js} +1 -1
- package/dist/client/assets/{switch-7k-YmVIw.js → switch-DRoHA0RB.js} +1 -1
- package/dist/client/assets/{symbol-u1kWSpH3.js → symbol-An2Zb2zQ.js} +1 -1
- package/dist/client/assets/{synced-repos-DUczzKfJ.js → synced-repos-BVfSxB1w.js} +1 -1
- package/dist/client/assets/{tab-icon-glyph-9Vt3zF40.js → tab-icon-glyph-B34XQCM3.js} +1 -1
- package/dist/client/assets/{table-Ca3PrKZq.js → table-D6WmilUC.js} +1 -1
- package/dist/client/assets/{tabs-sfqmRTXE.js → tabs-qk95ql5a.js} +1 -1
- package/dist/client/assets/{task-assignee-avatar-BeItlcIS.js → task-assignee-avatar-8cgor_AG.js} +1 -1
- package/dist/client/assets/{task-board-lGyc3LQn.js → task-board-C3fHBdG2.js} +1 -1
- package/dist/client/assets/{task-route-DCF0AMZD.js → task-route-rNofa-46.js} +1 -1
- package/dist/client/assets/{task-status-Bk4dAiIa.js → task-status-B6-9cIIP.js} +1 -1
- package/dist/client/assets/{taskboard-analytics-l4n34oHf.js → taskboard-analytics-CdD0QR2a.js} +1 -1
- package/dist/client/assets/{tasks-DLdk0dFO.js → tasks-CdTDj0OK.js} +1 -1
- package/dist/client/assets/tasks-q9Lrl5hM.js +1 -0
- package/dist/client/assets/{textarea-CA8jhj17.js → textarea-Ibxo_cU5.js} +1 -1
- package/dist/client/assets/{thread-analytics-Bniz556X.js → thread-analytics-CUDgOcLF.js} +1 -1
- package/dist/client/assets/{thread-intent-akbw9syi.js → thread-intent-Bcm8nkb-.js} +1 -1
- package/dist/client/assets/{thread-route-Dh5fCSlQ.js → thread-route-Bd56Ws2e.js} +1 -1
- package/dist/client/assets/{thread-route-DwmQZrER.js → thread-route-DytMtQhr.js} +1 -1
- package/dist/client/assets/{thread-sheet-body-8d59SODC.js → thread-sheet-body-DbsdUgzJ.js} +1 -1
- package/dist/client/assets/{time-range-picker-DDd2yN5B.js → time-range-picker-BjaZu1pB.js} +1 -1
- package/dist/client/assets/{toggle-group-CXsdj4JO.js → toggle-group--gd2dZNu.js} +1 -1
- package/dist/client/assets/{tool-namespace-Boa7iaK9.js → tool-namespace-Czhk4de_.js} +1 -1
- package/dist/client/assets/{toolbar-icon-button-__o-1m7E.js → toolbar-icon-button-Doqx7uIl.js} +1 -1
- package/dist/client/assets/{tooltip-y0ITVZLe.js → tooltip-CGDwEKla.js} +1 -1
- package/dist/client/assets/{tooltipContext-p8buhowA.js → tooltipContext-BjbnVzdB.js} +1 -1
- package/dist/client/assets/{track-D18DS98S.js → track-o53s7HUT.js} +1 -1
- package/dist/client/assets/{types-QHT9AZYN.js → types-BlSD9MKW.js} +1 -1
- package/dist/client/assets/{url-slug-iO7lEWcH.js → url-slug-BC1hwMbV.js} +1 -1
- package/dist/client/assets/{usage-stats-BFfJ4BFV.js → usage-stats-DFdXpSTz.js} +1 -1
- package/dist/client/assets/{use-ai-providers-xoxmTm1y.js → use-ai-providers-YeO0Kt-T.js} +1 -1
- package/dist/client/assets/{use-apply-named-rule-DOPeN5-q.js → use-apply-named-rule-B8Wdybx9.js} +1 -1
- package/dist/client/assets/{use-automations-UxlDfJNY.js → use-automations-3TnrfuwX.js} +1 -1
- package/dist/client/assets/{use-autosave-DnPNas4b.js → use-autosave-DKMWP7df.js} +1 -1
- package/dist/client/assets/{use-chat-layout-state-HnGmBd0d.js → use-chat-layout-state-BYFrwE0Z.js} +1 -1
- package/dist/client/assets/{use-clock-tick-_u7Nk5Y3.js → use-clock-tick-CoJMln1I.js} +1 -1
- package/dist/client/assets/{use-cms-publish-actions-yjpRhiWf.js → use-cms-publish-actions-BJbCRSe5.js} +1 -1
- package/dist/client/assets/{use-connect-companion-CKaLHrJ-.js → use-connect-companion-C0IB4u5H.js} +1 -1
- package/dist/client/assets/{use-connection-DDeXUBL8.js → use-connection-CPJ2t_wt.js} +1 -1
- package/dist/client/assets/{use-copy-B5HXKTAU.js → use-copy-pG3Nq4mQ.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-B6SCREl0.js → use-create-virtual-mcp-BJ9mL4g_.js} +1 -1
- package/dist/client/assets/{use-date-fns-locale-EI3PiZEn.js → use-date-fns-locale-aiAkCLG4.js} +1 -1
- package/dist/client/assets/{use-debounced-autosave-DGIIvY47.js → use-debounced-autosave-GnvmIFmT.js} +1 -1
- package/dist/client/assets/{use-debounced-value-Bb1QxA28.js → use-debounced-value-HL4NH2l1.js} +1 -1
- package/dist/client/assets/{use-deco-credits-C3Bvv5NQ.js → use-deco-credits-C7mrv7jI.js} +1 -1
- package/dist/client/assets/{use-decopilot-events-BTdYG6TT.js → use-decopilot-events-Bo1C0-vc.js} +1 -1
- package/dist/client/assets/{use-delete-connection-u7w3Ze7F.js → use-delete-connection-Cbj0xjTC.js} +1 -1
- package/dist/client/assets/{use-deployment-admin-BupXvw7P.js → use-deployment-admin-DqPz0gQF.js} +1 -1
- package/dist/client/assets/{use-fast-preview-draft-url-DgB8OlEd.js → use-fast-preview-draft-url-HidTF3Ak.js} +1 -1
- package/dist/client/assets/{use-file-configs-Ddspvdtj.js → use-file-configs-DjM7limQ.js} +1 -1
- package/dist/client/assets/{use-inbox-feed-BR1ZI-S7.js → use-inbox-feed-BawImjzR.js} +1 -1
- package/dist/client/assets/{use-infinite-scroll-goD3GP4U.js → use-infinite-scroll-BWXYJIGE.js} +1 -1
- package/dist/client/assets/{use-join-requests-BU5LaSmb.js → use-join-requests-CkUHU_ck.js} +1 -1
- package/dist/client/assets/{use-main-panel-tabs-DhBBYIqn.js → use-main-panel-tabs-BkwtKsEq.js} +1 -1
- package/dist/client/assets/{use-mcp-auth-status-BMtHF0ba.js → use-mcp-auth-status-Diru6v5l.js} +1 -1
- package/dist/client/assets/{use-mcp-client-D-Ynyj27.js → use-mcp-client-BTazWDn_.js} +1 -1
- package/dist/client/assets/{use-mcp-prompts-AMnUZRQ2.js → use-mcp-prompts-BtAR7liM.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-HhbUssy9.js → use-mcp-tools-CnDXz04m.js} +1 -1
- package/dist/client/assets/{use-mobile-Bv4B1w0K.js → use-mobile-Ba8cwCW_.js} +1 -1
- package/dist/client/assets/{use-move-blocks-Cs5HRPKU.js → use-move-blocks-CE7PC8Dn.js} +1 -1
- package/dist/client/assets/{use-navigate-to-agent-Beweih4_.js → use-navigate-to-agent-ClMAT78e.js} +1 -1
- package/dist/client/assets/{use-org-fs-BgpAxhPF.js → use-org-fs-is3Nb4bW.js} +1 -1
- package/dist/client/assets/{use-org-repo-syncs-Cf5MKKXO.js → use-org-repo-syncs-rMxQhmIY.js} +1 -1
- package/dist/client/assets/{use-org-sso-BFb5zSqZ.js → use-org-sso-Br-zUY8K.js} +1 -1
- package/dist/client/assets/{use-organization-roles-B4IY1xHj.js → use-organization-roles-CMSlaFcG.js} +1 -1
- package/dist/client/assets/{use-organization-settings-CLnbN-5M.js → use-organization-settings-CQDxv_1k.js} +1 -1
- package/dist/client/assets/{use-panel-navigate-CAlcu4Lc.js → use-panel-navigate-CXnDtexh.js} +1 -1
- package/dist/client/assets/{use-project-native-view-presence-DJR5RxRc.js → use-project-native-view-presence-YGN4D-su.js} +1 -1
- package/dist/client/assets/{use-project-scope-WyhtoR2d.js → use-project-scope-B0GTyJmy.js} +1 -1
- package/dist/client/assets/{use-recent-apps-C-Q2xApa.js → use-recent-apps-Dpk0kWXv.js} +1 -1
- package/dist/client/assets/{use-releases-Ctwj19rv.js → use-releases-BOl4DpnA.js} +1 -1
- package/dist/client/assets/{use-reports-diagnostic-B5N2Nhzq.js → use-reports-diagnostic-CkiLcbuT.js} +1 -1
- package/dist/client/assets/{use-sandbox-events-3D99qEb6.js → use-sandbox-events-0ezZYS9_.js} +1 -1
- package/dist/client/assets/{use-secrets-D6Yb-hAZ.js → use-secrets-Df_YMttt.js} +1 -1
- package/dist/client/assets/{use-section-preview-base-x6Au9PU6.js → use-section-preview-base-3xGhEYUn.js} +1 -1
- package/dist/client/assets/{use-session-runtime-ButpEaxf.js → use-session-runtime-Bpm2BYEZ.js} +1 -1
- package/dist/client/assets/{use-sidebar-collapsed-DUPmRsSx.js → use-sidebar-collapsed-BnhavbaD.js} +1 -1
- package/dist/client/assets/{use-tags-581-GPxO.js → use-tags-DZKcwnSP.js} +1 -1
- package/dist/client/assets/{use-task-board-analytics-Bqvlb8tC.js → use-task-board-analytics-Bv9Zee7f.js} +1 -1
- package/dist/client/assets/{use-task-board-events-hvW7XEUi.js → use-task-board-events-Cc9iZtjE.js} +1 -1
- package/dist/client/assets/{use-task-board-item-prs-Dn2_89Wz.js → use-task-board-item-prs-BWsy70r-.js} +1 -1
- package/dist/client/assets/{use-task-metadata-5cfR7jfQ.js → use-task-metadata-Zdotw36E.js} +1 -1
- package/dist/client/assets/{use-thread-analytics-DW0wE-bv.js → use-thread-analytics-D2GeKxmA.js} +1 -1
- package/dist/client/assets/{use-thread-outputs-uTf6vmxS.js → use-thread-outputs-D4Ri80KS.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-ID7ntuLj.js +1 -0
- package/dist/client/assets/{useQueries-D-OfZmkV.js → useQueries-MdybfDim.js} +1 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BM00SstB.js +1 -0
- package/dist/client/assets/{users-Ca9c6XwH.js → users-CLTHtY95.js} +1 -1
- package/dist/client/assets/{utils-ClGlVug9.js → utils-Cvz7JLdG.js} +1 -1
- package/dist/client/assets/{variant-calendar-DpTglVTq.js → variant-calendar-D9qfBM7M.js} +1 -1
- package/dist/client/assets/{variant-matcher-override-Biwzw232.js → variant-matcher-override-0q1jVuDF.js} +1 -1
- package/dist/client/assets/{view-header-ChmFdhWk.js → view-header-DNRg1UwP.js} +1 -1
- package/dist/client/assets/{virtual-mcp-B-kPuZ4h.js → virtual-mcp-Bz0i6iLp.js} +1 -1
- package/dist/client/assets/{watch-sse-pool-B8vJZaB4.js → watch-sse-pool-Vinolgve.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/server.js +1 -1
- package/package.json +1 -1
- package/dist/client/assets/agent-app-BmS3KdDh.js +0 -1
- package/dist/client/assets/agent-deck-_3gjRxMy.js +0 -1
- package/dist/client/assets/agent-experiments-zITjLHxa.js +0 -1
- package/dist/client/assets/agent-library-DCPG9Kzs.js +0 -1
- package/dist/client/assets/agent-library-file-jDzw9ocZ.js +0 -1
- package/dist/client/assets/agent-monitor-BOv9jDa-.js +0 -1
- package/dist/client/assets/agent-settings-DOUtQ-_2.js +0 -1
- package/dist/client/assets/agent-site-editor-code-D1UyNZtm.js +0 -2
- package/dist/client/assets/agent-site-editor-content-BDnD2v4K.js +0 -1
- package/dist/client/assets/agent-site-editor-preview-BtczIPtS.js +0 -1
- package/dist/client/assets/agent-view-Dxwprr5s.js +0 -1
- package/dist/client/assets/api-keys-rmPzd4oe.js +0 -1
- package/dist/client/assets/daily-pulse-Blyl3kPS.js +0 -1
- package/dist/client/assets/experiments-tab-DU3srNR0.js +0 -1
- package/dist/client/assets/library-BylVhS5a.js +0 -1
- package/dist/client/assets/mock-board-ZFCHIFci.js +0 -81
- package/dist/client/assets/monitoring-BnuosxL6.js +0 -1
- package/dist/client/assets/project-reports-DmYlC_2H.js +0 -1
- package/dist/client/assets/project-tasks-BIbs81vR.js +0 -1
- package/dist/client/assets/record-editor-sujvt4yh.js +0 -1
- package/dist/client/assets/reports-Cn7qDjQ9.js +0 -1
- package/dist/client/assets/repositories-1U12zsnH.js +0 -1
- package/dist/client/assets/route-Dt_XN0n8.js +0 -1
- package/dist/client/assets/settings-tab-Co05WR_C.js +0 -1
- package/dist/client/assets/site-editor-CKJs9UEN.js +0 -1
- package/dist/client/assets/tasks-DryHdzDR.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BvjB9yLK.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-CdRUH1mT.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-BihXJzl3.js","assets/auth-entry-CGMWcuDU.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-DldiTyo8.js","assets/cli-auth-success-DQbGXBQ8.js","assets/oauth-callback-DaRDGusD.js","assets/mcp-oauth-CMFUZfJD.js","assets/auth-TDeH5XUI.js","assets/layout-w4WJkju6.js","assets/required-auth-layout-BwRF7f-1.js","assets/use-deployment-admin-BupXvw7P.js","assets/users-Ca9c6XwH.js","assets/collection-table-wrapper-6Iou9gEQ.js","assets/table-Ca3PrKZq.js","assets/ArrowUp-DCZ2ZuMw.js","assets/empty-state-rZzgliti.js","assets/search-input-1UkDwkwQ.js","assets/SearchMd-DWEUHv9_.js","assets/badge-WodMrle4.js","assets/use-debounced-value-Bb1QxA28.js","assets/admin-fetch-BhTJlAsX.js","assets/orgs-Cjm59vvP.js","assets/label-TOq4jdfb.js","assets/select-CST2GhtR.js","assets/index-BdQq_4o_.js","assets/index-DQCZk8JD.js","assets/ChevronUp-DYpp4P_6.js","assets/switch-7k-YmVIw.js","assets/textarea-CA8jhj17.js","assets/schema-DM0_2Ir6.js","assets/site-slug-DebpOoQq.js","assets/prompts-Bq1kaZc4.js","assets/shell-layout-DM_Y3Qes.js","assets/Building02-BVEi_Omy.js","assets/UserSquare-DZrFKHiS.js","assets/agent-icon-BMYCi2LT.js","assets/AlertCircle-B4LJNTKS.js","assets/Tool01-DCRrJl21.js","assets/ArrowLeft-DsT-A_9a.js","assets/LinkBroken01-BVxBvnFP.js","assets/ShoppingBag01-BMdXY9q0.js","assets/ZoomOut-BMHxRmZd.js","assets/CheckCircle-SRU1EAml.js","assets/ChevronSelectorVertical-CasRkoWv.js","assets/Copy01-iRRx3zHH.js","assets/CreditCard01-CtFM4LsJ.js","assets/DotsVertical-D6PtM_TB.js","assets/Image01-C7HITEdI.js","assets/Globe04-mK-phu3w.js","assets/SwitchHorizontal01-ChPDhGme.js","assets/Key01-xfQzNKYA.js","assets/Link01-Gb8xs6FR.js","assets/Minus-DMI4hsKe.js","assets/Monitor01-d3JI-rbW.js","assets/Sun-1NR_rcJj.js","assets/Play-B9Fa-KbN.js","assets/Plus-jtkisFoL.js","assets/Trash01-8xnvq0nE.js","assets/Upload01-C8tSFeSd.js","assets/Users01-DO_FGofT.js","assets/XClose-CdMD1MSY.js","assets/use-project-scope-WyhtoR2d.js","assets/repository-binding-3l2WKuhw.js","assets/use-mcp-client-D-Ynyj27.js","assets/use-panel-navigate-CAlcu4Lc.js","assets/thread-route-Dh5fCSlQ.js","assets/use-clock-tick-_u7Nk5Y3.js","assets/command-BfXa6Alp.js","assets/index-ChVbdfHi.js","assets/integration-icon-DlMhG8xl.js","assets/project-icon-evkI2wUa.js","assets/new-project-dialog-DmZfAJ2X.js","assets/repository-import-picker-BYO712AP.js","assets/use-navigate-to-agent-Beweih4_.js","assets/thread-intent-akbw9syi.js","assets/watch-sse-pool-B8vJZaB4.js","assets/task-board-lGyc3LQn.js","assets/slugify-CEUa2lfQ.js","assets/repository-picker-OWeXHyw5.js","assets/tooltip-y0ITVZLe.js","assets/useInfiniteQuery-BvjB9yLK.js","assets/infiniteQueryObserver-X2NgiPcg.js","assets/collection-search-CmUyatVb.js","assets/use-organization-settings-CLnbN-5M.js","assets/autosend-DbE_vSJu.js","assets/use-org-sso-BFb5zSqZ.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-CJntlshT.js","assets/organization-choice-l8jj7Vww.js","assets/reports-onboarding-C4wftGuh.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-DMpQma5o.js","assets/form-Dg30DIhS.js","assets/companion-mcps-section-Co6bTdvJ.js","assets/use-connect-companion-CKaLHrJ-.js","assets/companions-core-DzyeM-yJ.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-ByTYKy_L.js","assets/icon-button-BbFyr4hV.js","assets/provision-repo-scoped-github-connection-lckxpDHD.js","assets/useQueries-D-OfZmkV.js","assets/authenticate-and-persist-oauth-B16pl7vt.js","assets/mcp-oauth-CG2_GPd1.js","assets/track-D18DS98S.js","assets/extract-connection-data-BrEX2VM2.js","assets/connection-Mojfvb6v.js","assets/url-slug-iO7lEWcH.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-C1_tJgFB.js","assets/site-editor-CKJs9UEN.js","assets/chat-context-C3sOZ7WE.js","assets/use-decopilot-events-BTdYG6TT.js","assets/use-ai-providers-xoxmTm1y.js","assets/location-V0VwTJTt.js","assets/index-BFVAGcnx.js","assets/use-mobile-Bv4B1w0K.js","assets/use-sidebar-collapsed-DUPmRsSx.js","assets/use-chat-layout-state-HnGmBd0d.js","assets/toolbar-icon-button-__o-1m7E.js","assets/sheet-CRB2BRVT.js","assets/resizable-D6wYJr6Y.js","assets/index-DGBLrKkN.js","assets/core.esm-B_pl-N3K.js","assets/sortable.esm-Die42Fgq.js","assets/context-menu-Cu_xIofI.js","assets/project-apps-I4iymxC_.js","assets/use-recent-apps-C-Q2xApa.js","assets/blocks-preview-workspace-context-DVsIvp7N.js","assets/site-editor-toast-DIUCSzv5.js","assets/use-session-runtime-ButpEaxf.js","assets/experiments-tab-choice-DPFw6bgB.js","assets/sandbox-url-D3mC8qhT.js","assets/utils-ClGlVug9.js","assets/use-sandbox-events-3D99qEb6.js","assets/sandbox-git-api-DcqI6XE4.js","assets/preview-tab-CWvcDmfF.js","assets/held-block-view-CtROESR9.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-ikkBXQ4r.js","assets/collapsible-ZkT99S7V.js","assets/use-copy-B5HXKTAU.js","assets/usage-stats-BFfJ4BFV.js","assets/tool-namespace-Boa7iaK9.js","assets/utils-CVEq3hMx.js","assets/markdown-fi-bkNlC.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-UI6Sl5iU.js","assets/types-QHT9AZYN.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/use-connection-DDeXUBL8.js","assets/use-mcp-prompts-AMnUZRQ2.js","assets/use-thread-outputs-uTf6vmxS.js","assets/file-type-icon-DIGglv5T.js","assets/section-array-field-B0mXJzJ-.js","assets/alert-CON7MFrB.js","assets/parse-sections-DhtMIp9J.js","assets/blocks-tab-states-Bv8bzxP1.js","assets/slider-BdSRZilg.js","assets/index-Co_yUuqx.js","assets/tooltipContext-p8buhowA.js","assets/CategoricalChart-CcKsHzag.js","assets/index-DZa7i6r0.js","assets/ActiveShapeUtils-DpBSsK0f.js","assets/Sector-VQy4KbLK.js","assets/symbol-u1kWSpH3.js","assets/popover-Nqo0NO2r.js","assets/scroll-area-DRq8rIUH.js","assets/monaco-editor-DYh1ynMq.js","assets/editor-BHkNJNCp.js","assets/calendar-CPmJ_i4I.js","assets/editor-classes-DQLQ7_TQ.js","assets/toggle-group-CXsdj4JO.js","assets/active-indicator-CCMhAsc_.js","assets/combobox-FEz9nHbl.js","assets/tabs-sfqmRTXE.js","assets/use-file-configs-Ddspvdtj.js","assets/asset-utils-CakmdGjC.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/sandbox-lifecycle-context-DLfrvHjk.js","assets/variant-matcher-override-Biwzw232.js","assets/variant-draft-pointer-BeAKcq_c.js","assets/section-preview-url-7zfngvgW.js","assets/use-fast-preview-draft-url-DgB8OlEd.js","assets/preview-link-C762yHOt.js","assets/device-hint-SeLRi17j.js","assets/virtual-mcp-B-kPuZ4h.js","assets/app-preview-url-9Od4s8Sz.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-5cfR7jfQ.js","assets/content-tab-DH-oDMmp.js","assets/view-header-ChmFdhWk.js","assets/use-cms-publish-actions-yjpRhiWf.js","assets/hosted-publish-feedback-N_KeWGli.js","assets/mustache-DKwt3BXe.js","assets/checkbox-DxcdYz1H.js","assets/date-utils-CrvIKg-s.js","assets/use-move-blocks-Cs5HRPKU.js","assets/empty-state-CC7FTz7y.js","assets/tab-icon-glyph-9Vt3zF40.js","assets/resolve-tab-icon-V4eG1DEz.js","assets/agent-site-editor-qCYYu7JS.js","assets/site-draft-actions-H_SrG7ol.js","assets/separator-B_IZ7RAh.js","assets/use-releases-Ctwj19rv.js","assets/serial-task-queue-CGOeQgpr.js","assets/index-It89C9LI.js","assets/drawer-E2Kpg9Hd.js","assets/input-CjtatUDp.js","assets/chat-draft-DCvGpydn.js","assets/use-deco-credits-C3Bvv5NQ.js","assets/index-Cpv6Vk_g.js","assets/ai-providers-logos-DD3qZ33J.js","assets/input-CoHLeahL.js","assets/suggestion-BqSn2NPp.js","assets/use-org-fs-BgpAxhPF.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-IoBD91DD.js","assets/plan-ladder-BXMa2odv.js","assets/add-connection-dialog-DIFbXx9Z.js","assets/connection-card-BK-grbUT.js","assets/connection-slug-CITJ0kGN.js","assets/schema-1akygq6C.js","assets/connection-form-helpers-DjrxR20t.js","assets/collection-tabs-KIGkDkCq.js","assets/use-infinite-scroll-goD3GP4U.js","assets/useSuspenseInfiniteQuery-CdRUH1mT.js","assets/use-task-board-events-hvW7XEUi.js","assets/input-Bwd_JSM8.css","assets/named-rule-uses-BJmKxN6Q.js","assets/save-changes-debug-nBi-n9eV.js","assets/releases-api-BpUGiuG2.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-BMYFg9FF.js","assets/reports-Dl0n8WK0.css","assets/route-Bzw3itzn.js","assets/use-join-requests-BU5LaSmb.js","assets/use-organization-roles-B4IY1xHj.js","assets/use-inbox-feed-BR1ZI-S7.js","assets/task-key-BCHdFiOO.js","assets/daily-pulse-Blyl3kPS.js","assets/config-BgsWD4sY.js","assets/use-thread-analytics-DW0wE-bv.js","assets/project-profile-Cc4MG3QN.js","assets/use-project-native-view-presence-DJR5RxRc.js","assets/optimistic-project-sidebar-views-D-oua8Wh.js","assets/task-route-DCF0AMZD.js","assets/thread-route-DwmQZrER.js","assets/use-reports-diagnostic-B5N2Nhzq.js","assets/connect-layout-CcyOT7Q5.js","assets/route-D6uy3Peb.js","assets/task-status-Bk4dAiIa.js","assets/use-main-panel-tabs-DhBBYIqn.js","assets/use-mcp-tools-HhbUssy9.js","assets/legacy-main-redirect-FEIRAehz.js","assets/preview-dialog-B-uqUjD3.js","assets/preview-content-CFf4qj3k.js","assets/file-share-button-CuK5LvxM.js","assets/file-preview-CqxZkGFl.js","assets/home-DJPOySDV.js","assets/project-feed-zfkaVmu4.js","assets/client-icons-Dbet44-J.js","assets/chart-B1yyoGAD.js","assets/ReferenceLine-BMk-z8TK.js","assets/CartesianChart-BwKDL985.js","assets/BarChart-meDS0cd-.js","assets/ErrorBarContext-DclVOngN.js","assets/task-assignee-avatar-BeItlcIS.js","assets/projects-empty-state-DI-QOSkS.js","assets/agent-overview-geS17XOQ.js","assets/mini-report-page-CFpTZaYU.js","assets/project-tasks-BIbs81vR.js","assets/mock-board-ZFCHIFci.js","assets/use-task-board-analytics-Bqvlb8tC.js","assets/column-rules-wIJAIKRY.js","assets/use-automations-UxlDfJNY.js","assets/search-toggle-0jbrSo5B.js","assets/use-tags-581-GPxO.js","assets/index-DQsCpYYz.js","assets/index-D7fNVGbf.js","assets/use-task-board-item-prs-Dn2_89Wz.js","assets/thread-sheet-body-8d59SODC.js","assets/feature-gate-hheYdaIS.js","assets/project-reports-DmYlC_2H.js","assets/reports-tab-CGIFrFkA.js","assets/agent-site-editor-preview-BtczIPtS.js","assets/agent-view-guard-P6oqlnhA.js","assets/agent-site-editor-content-BDnD2v4K.js","assets/agent-site-editor-code-D1UyNZtm.js","assets/agent-automations-BmOO-Tn1.js","assets/automation-list-row-CtSQd8nz.js","assets/agent-automation-LVzi2Lv8.js","assets/select-model-DoMyJ3D5.js","assets/build-improve-prompt-doc-BBnEeKqS.js","assets/use-debounced-autosave-DGIIvY47.js","assets/jira-icon-CukpnmtM.js","assets/multi-select-XbaIbWsh.js","assets/automation-runs-BMVd1dpI.js","assets/agent-settings-DOUtQ-_2.js","assets/settings-tab-Co05WR_C.js","assets/index-BhqBDWTM.js","assets/use-date-fns-locale-EI3PiZEn.js","assets/use-mcp-auth-status-BMtHF0ba.js","assets/sections-CxUPEZO2.js","assets/secret-picker-CIKyyqvK.js","assets/use-secrets-D6Yb-hAZ.js","assets/agent-library-DCPG9Kzs.js","assets/context-shell-IGSIiaa2.js","assets/use-org-repo-syncs-Cf5MKKXO.js","assets/folder-icon-CoBgoOmp.js","assets/require-capability-CooU_2Ka.js","assets/access-gate-WioxQPPZ.js","assets/capability-load-error-C-SlebPc.js","assets/agent-assets-DKyleP_H.js","assets/agent-releases-C3WKDrKT.js","assets/agent-hosting-CKUD4fkI.js","assets/agent-e2e-Dxueh7Ni.js","assets/agent-analytics-D4BMyQTS.js","assets/AreaChart-BTzEOjjm.js","assets/taskboard-analytics-l4n34oHf.js","assets/time-range-picker-DDd2yN5B.js","assets/analytics-sections-CIEa5kON.js","assets/agent-experiments-zITjLHxa.js","assets/experiments-tab-DU3srNR0.js","assets/site-draft-view-IFToRN1B.js","assets/use-apply-named-rule-DOPeN5-q.js","assets/agent-calendar-Coas2SvP.js","assets/agent-monitor-BOv9jDa-.js","assets/cdn-tab-BHJHKjBJ.js","assets/order-monitor-day-vzbm92s5.js","assets/agent-app-BmS3KdDh.js","assets/project-app-view-BJ93hip0.js","assets/connect-source-dialog-Dft8IIQt.js","assets/agent-view-Dxwprr5s.js","assets/agent-file-BtY3mLDK.js","assets/agent-deck-_3gjRxMy.js","assets/agent-library-file-jDzw9ocZ.js","assets/preview-panel-efY3N97A.js","assets/agent-connect-sources-ORKDOcWl.js","assets/legacy-agents-deep-CZke_8Pu.js","assets/tasks-DryHdzDR.js","assets/thread-analytics-Bniz556X.js","assets/reports-Cn7qDjQ9.js","assets/library-BylVhS5a.js","assets/plan-BddLpeau.js","assets/monitoring-BnuosxL6.js","assets/discover-IJwdRz3Z.js","assets/index-CsTWjIHm.js","assets/route-Dt_XN0n8.js","assets/index-redirect-CkISjxg7.js","assets/connections-D6aTSSeV.js","assets/collection-display-button-B1GhyOqf.js","assets/use-delete-connection-u7w3Ze7F.js","assets/connection-detail-BynIRAi8.js","assets/index-CqrDSyNb.js","assets/use-create-virtual-mcp-B6SCREl0.js","assets/monitoring-stats-row-DpdJSZhn.js","assets/collection-detail-BiSfoPd5.js","assets/index-CpdL1Va-.js","assets/general-m7jFsU7f.js","assets/review-settings-0C99AKtW.js","assets/domain-settings-u4k7jChl.js","assets/connect-BAxjV2jF.js","assets/api-keys-DF8aOcqH.js","assets/ai-providers-DOZRUAS-.js","assets/infra-billing-CrqP3iz7.js","assets/secrets-BPiOlmvK.js","assets/api-keys-rmPzd4oe.js","assets/buckets-DPwPMd15.js","assets/repositories-1U12zsnH.js","assets/repositories-BkWBuxkg.js","assets/synced-repos-DUczzKfJ.js","assets/tasks-DLdk0dFO.js","assets/projects-B8GNDoL6.js","assets/members-C1FmO74U.js","assets/role-color-Dn2tXDDF.js","assets/roles-Dl6Vqz_F.js","assets/sso-DAT9TqUH.js","assets/profile-MlOeOB0D.js","assets/agents-list-DIOxHByB.js","assets/automations-C8uUahzu.js","assets/skills-EnKdltF2.js","assets/memory-Bk_OycOd.js"])))=>i.map(i=>d[i]);
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-Q6QzHe98.js","assets/auth-entry-C1SLfq5y.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-C_joRAuD.js","assets/cli-auth-success-CbU133Cr.js","assets/oauth-callback-DcDcp9ht.js","assets/mcp-oauth-BgZxPic2.js","assets/auth-mUy8P9mz.js","assets/layout-86e7th4n.js","assets/required-auth-layout-Cj_D5aeR.js","assets/use-deployment-admin-DqPz0gQF.js","assets/users-CLTHtY95.js","assets/collection-table-wrapper-BkW0lNmQ.js","assets/table-D6WmilUC.js","assets/ArrowUp-DYpVM4EW.js","assets/empty-state-B6ZF6z6U.js","assets/search-input-JrdzMOm_.js","assets/SearchMd-LiFx-NKw.js","assets/badge-D_XaqFCD.js","assets/use-debounced-value-HL4NH2l1.js","assets/admin-fetch-BhTJlAsX.js","assets/orgs-Cm95p7RP.js","assets/label-CI9_CFR6.js","assets/select-RAX0QYEC.js","assets/index-BdQq_4o_.js","assets/index-y2MV63Fm.js","assets/ChevronUp-BADsHIlZ.js","assets/switch-DRoHA0RB.js","assets/textarea-Ibxo_cU5.js","assets/schema-BI1J5KjU.js","assets/site-slug-DebpOoQq.js","assets/prompts-CYI2Ca4j.js","assets/shell-layout-Br0nQ-w1.js","assets/Building02-BfF63iaY.js","assets/UserSquare-eFGH-oUL.js","assets/agent-icon-D2O6Ysxj.js","assets/AlertCircle-3zlHk1bR.js","assets/Tool01-NhBuMmUV.js","assets/ArrowLeft-DmLRalOz.js","assets/LinkBroken01-D8s-Aoli.js","assets/ShoppingBag01-Diu_6vhS.js","assets/ZoomOut-DZO-NyFl.js","assets/CheckCircle-DFCQG4PZ.js","assets/ChevronSelectorVertical-BQnuYb4d.js","assets/Copy01-BuXPB74z.js","assets/CreditCard01-3pgS1FBj.js","assets/DotsVertical-DGPGhZOp.js","assets/Image01-C3eHO4JB.js","assets/Globe04-h_nDPacm.js","assets/SwitchHorizontal01-DSVF0HAp.js","assets/Key01-BHDBC0Ty.js","assets/Link01-CWRvYa94.js","assets/Minus-BDVlfQ1F.js","assets/Monitor01-DufxSkfE.js","assets/Sun-DwpHFeTI.js","assets/Play-B4Nce4IV.js","assets/Plus-DjulKDZN.js","assets/Trash01-6fKruzF0.js","assets/Upload01-XEi-StK2.js","assets/Users01-BsuShWDn.js","assets/XClose-CmswVBOn.js","assets/use-project-scope-B0GTyJmy.js","assets/repository-binding-CcdmL6ag.js","assets/use-mcp-client-BTazWDn_.js","assets/use-panel-navigate-CXnDtexh.js","assets/thread-route-Bd56Ws2e.js","assets/use-clock-tick-CoJMln1I.js","assets/command-CmSy_63D.js","assets/index-fPzpoiMb.js","assets/integration-icon-DffiYnsw.js","assets/project-icon-C5kNnOFq.js","assets/new-project-dialog-kzuu4Dyf.js","assets/repository-import-picker-DuNS63Y0.js","assets/use-navigate-to-agent-ClMAT78e.js","assets/thread-intent-Bcm8nkb-.js","assets/watch-sse-pool-Vinolgve.js","assets/task-board-C3fHBdG2.js","assets/slugify-CEUa2lfQ.js","assets/repository-picker-D37YtUW-.js","assets/tooltip-CGDwEKla.js","assets/useInfiniteQuery-ID7ntuLj.js","assets/infiniteQueryObserver-B1X7cH_h.js","assets/collection-search-C7AC5mzN.js","assets/use-organization-settings-CQDxv_1k.js","assets/autosend-fmyzxlgv.js","assets/use-org-sso-Br-zUY8K.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-DvIF4FSK.js","assets/organization-choice-BKIz2sU3.js","assets/reports-onboarding-6K8tJ5J_.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-CRVy32Y2.js","assets/form-DkJLMDiZ.js","assets/companion-mcps-section-BJVxRFbR.js","assets/use-connect-companion-C0IB4u5H.js","assets/companions-core-DzyeM-yJ.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-ByTYKy_L.js","assets/icon-button-NEW9CrVR.js","assets/provision-repo-scoped-github-connection-lckxpDHD.js","assets/useQueries-MdybfDim.js","assets/authenticate-and-persist-oauth-Br6pb9qL.js","assets/mcp-oauth-C2iU61yB.js","assets/track-o53s7HUT.js","assets/extract-connection-data-dVntHSWe.js","assets/connection-8s94grp4.js","assets/url-slug-BC1hwMbV.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-B-PLdH8j.js","assets/site-editor-CUxt9aeG.js","assets/chat-context-DQIwjTah.js","assets/use-decopilot-events-Bo1C0-vc.js","assets/use-ai-providers-YeO0Kt-T.js","assets/location-V0VwTJTt.js","assets/index-DHKvbX-F.js","assets/use-mobile-Ba8cwCW_.js","assets/use-sidebar-collapsed-BnhavbaD.js","assets/use-chat-layout-state-BYFrwE0Z.js","assets/toolbar-icon-button-Doqx7uIl.js","assets/sheet-7o24rLAF.js","assets/resizable-DkWxmtNv.js","assets/index-C1xdxqY4.js","assets/core.esm-8ysL4nmy.js","assets/sortable.esm-3LT8rMWS.js","assets/context-menu-DrJNCXai.js","assets/project-apps-CWp3jzPS.js","assets/use-recent-apps-Dpk0kWXv.js","assets/blocks-preview-workspace-context-BkWHKGnG.js","assets/site-editor-toast-BV71DbMY.js","assets/use-session-runtime-Bpm2BYEZ.js","assets/experiments-tab-choice-CSZHqOVL.js","assets/sandbox-url-D3mC8qhT.js","assets/utils-Cvz7JLdG.js","assets/use-sandbox-events-0ezZYS9_.js","assets/sandbox-git-api-DcqI6XE4.js","assets/preview-tab-qtdXsUO8.js","assets/held-block-view-Bcr038cE.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/pair-BiKkCxaG.js","assets/collapsible-CVxiAnD0.js","assets/use-copy-pG3Nq4mQ.js","assets/usage-stats-DFdXpSTz.js","assets/tool-namespace-Czhk4de_.js","assets/utils-CVEq3hMx.js","assets/markdown-DtVTVyIC.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-B0DJyUaD.js","assets/types-BlSD9MKW.js","assets/omit-sandbox-map-jj4lCB2U.js","assets/use-connection-CPJ2t_wt.js","assets/use-mcp-prompts-BtAR7liM.js","assets/use-thread-outputs-D4Ri80KS.js","assets/file-type-icon-BSvWJ_yJ.js","assets/section-array-field-CfCCudbI.js","assets/alert-BIVSlp4X.js","assets/parse-sections-jfUka-ew.js","assets/blocks-tab-states-C7qCSetR.js","assets/slider-C7FCoMPq.js","assets/index-Bah4YwbV.js","assets/tooltipContext-BjbnVzdB.js","assets/CategoricalChart-VnQ3lkHZ.js","assets/index-iHeHzM9q.js","assets/ActiveShapeUtils-CdXsV3S7.js","assets/Sector-Vy_DZ6Ya.js","assets/symbol-An2Zb2zQ.js","assets/popover-DClIX5lD.js","assets/scroll-area-DyDtaNCg.js","assets/monaco-editor-D_Oeav_Z.js","assets/editor-D54k8w6W.js","assets/calendar-D5qyPmPe.js","assets/editor-classes-DvaDe0n2.js","assets/toggle-group--gd2dZNu.js","assets/active-indicator-CCMhAsc_.js","assets/combobox-DIlCtv4m.js","assets/tabs-qk95ql5a.js","assets/use-file-configs-DjM7limQ.js","assets/asset-utils-s-rRWLDR.js","assets/match-site-slug-config-D3fUJ6vX.js","assets/sandbox-lifecycle-context-4NgrDeJq.js","assets/variant-matcher-override-0q1jVuDF.js","assets/variant-draft-pointer-BeAKcq_c.js","assets/section-preview-url-7zfngvgW.js","assets/use-fast-preview-draft-url-HidTF3Ak.js","assets/preview-link-C762yHOt.js","assets/device-hint-SeLRi17j.js","assets/virtual-mcp-Bz0i6iLp.js","assets/app-preview-url-9Od4s8Sz.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-Zdotw36E.js","assets/content-tab-C8kwNsNv.js","assets/view-header-DNRg1UwP.js","assets/use-cms-publish-actions-BJbCRSe5.js","assets/hosted-publish-feedback-CpvmWvo8.js","assets/mustache-D61fFDb3.js","assets/checkbox-B1LwoLFy.js","assets/date-utils-CrvIKg-s.js","assets/use-move-blocks-CE7PC8Dn.js","assets/empty-state-B1U3dIOI.js","assets/tab-icon-glyph-B34XQCM3.js","assets/resolve-tab-icon-Bbn4K7a-.js","assets/agent-site-editor-Cyp35eBO.js","assets/site-draft-actions-CPsRPxRa.js","assets/separator-B0GmpR9Y.js","assets/use-releases-BOl4DpnA.js","assets/serial-task-queue-CGOeQgpr.js","assets/index-DCpCimmv.js","assets/drawer-DoWw3X-U.js","assets/input-C1vi2y8a.js","assets/chat-draft-D_5rgFXD.js","assets/use-deco-credits-C7mrv7jI.js","assets/index-Dj2q9Kk6.js","assets/ai-providers-logos-DD3qZ33J.js","assets/input-BM4k5AWI.js","assets/suggestion-B8EqJCT2.js","assets/use-org-fs-is3Nb4bW.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-YRUC3hnv.js","assets/plan-ladder-BCwguLCI.js","assets/add-connection-dialog-Bs11uRPt.js","assets/connection-card-6_vGNwe6.js","assets/connection-slug-CITJ0kGN.js","assets/schema-XnSsI13A.js","assets/connection-form-helpers-B7-YxvfS.js","assets/collection-tabs-DysuRzTT.js","assets/use-infinite-scroll-BWXYJIGE.js","assets/useSuspenseInfiniteQuery-BM00SstB.js","assets/use-task-board-events-Cc9iZtjE.js","assets/input-Bwd_JSM8.css","assets/named-rule-uses-DImccIYP.js","assets/save-changes-debug-nBi-n9eV.js","assets/releases-api-DxEm_izB.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-CbNZsWyp.js","assets/reports-Dl0n8WK0.css","assets/route-3yxLu2NB.js","assets/use-join-requests-CkUHU_ck.js","assets/use-organization-roles-CMSlaFcG.js","assets/use-inbox-feed-BawImjzR.js","assets/task-key-BCHdFiOO.js","assets/daily-pulse-oZsmQ576.js","assets/config-k6eupn0H.js","assets/use-thread-analytics-D2GeKxmA.js","assets/project-profile-Cc4MG3QN.js","assets/use-project-native-view-presence-YGN4D-su.js","assets/optimistic-project-sidebar-views-QrUaUcI4.js","assets/task-route-rNofa-46.js","assets/thread-route-DytMtQhr.js","assets/use-reports-diagnostic-CkiLcbuT.js","assets/connect-layout-B9EK05eh.js","assets/route-CgAwr8_y.js","assets/task-status-B6-9cIIP.js","assets/use-main-panel-tabs-BkwtKsEq.js","assets/use-mcp-tools-CnDXz04m.js","assets/legacy-main-redirect-BMDUgvXe.js","assets/preview-dialog-CBkdchfP.js","assets/preview-content-OZjgSgMZ.js","assets/file-share-button--vHcbynF.js","assets/file-preview-B3fPhoS1.js","assets/home-CdpLVlWp.js","assets/project-feed-DIYZgm5v.js","assets/client-icons-Yic2XONz.js","assets/chart-BCmVS-sn.js","assets/ReferenceLine-BcRJIMrO.js","assets/CartesianChart-C7RhMZbm.js","assets/BarChart-QA5Y4_eS.js","assets/ErrorBarContext-DjbsBuIQ.js","assets/task-assignee-avatar-8cgor_AG.js","assets/projects-empty-state-D4fHv0Vx.js","assets/agent-overview--3R-F01i.js","assets/mini-report-page-CIdyHIZJ.js","assets/project-tasks-ItwqddIw.js","assets/mock-board-Djd1BZ6E.js","assets/use-task-board-analytics-Bv9Zee7f.js","assets/column-rules-DrQ3zKVW.js","assets/use-automations-3TnrfuwX.js","assets/search-toggle-wYGVtvVW.js","assets/use-tags-DZKcwnSP.js","assets/index-C1zQxIQC.js","assets/index-hXfcnGlM.js","assets/use-task-board-item-prs-BWsy70r-.js","assets/thread-sheet-body-DbsdUgzJ.js","assets/feature-gate-CGLZlvT1.js","assets/project-reports-DJhPJTRc.js","assets/reports-tab-DZE0kToJ.js","assets/agent-site-editor-preview-Bv1qplXm.js","assets/agent-view-guard-DITCswoZ.js","assets/agent-site-editor-content-TPfojHsu.js","assets/agent-site-editor-code-Ck6tXuvy.js","assets/agent-automations-LxAQfaS1.js","assets/automation-list-row-BG7LwDup.js","assets/agent-automation-CQUF61n4.js","assets/select-model-DpOOiTD1.js","assets/build-improve-prompt-doc-DWVQcr8S.js","assets/use-debounced-autosave-GnvmIFmT.js","assets/jira-icon-CDq47JPG.js","assets/multi-select-DY9yJzQs.js","assets/automation-runs-D5ib3rJJ.js","assets/agent-settings-DkY2WG9h.js","assets/settings-tab-B6r8sKLk.js","assets/index-69Wn6Yn2.js","assets/use-date-fns-locale-aiAkCLG4.js","assets/use-mcp-auth-status-Diru6v5l.js","assets/sections-DxQyJ7Yy.js","assets/secret-picker-DWXnDb0U.js","assets/use-secrets-Df_YMttt.js","assets/agent-library-C6xhflxa.js","assets/context-shell-Cf8JU1_N.js","assets/use-org-repo-syncs-rMxQhmIY.js","assets/folder-icon-D9KEEKgD.js","assets/require-capability-wqNUtYQV.js","assets/access-gate-mZiv8FOt.js","assets/capability-load-error-Cadq9Tfk.js","assets/agent-assets-DFlbYpaG.js","assets/agent-releases-CiTUBkUu.js","assets/agent-hosting-58n6tbGl.js","assets/agent-e2e-Dxeiz6Hg.js","assets/agent-analytics-CSaBErHP.js","assets/AreaChart-abAlkUS3.js","assets/taskboard-analytics-CdD0QR2a.js","assets/time-range-picker-BjaZu1pB.js","assets/analytics-sections-C9r_Id8f.js","assets/agent-experiments-DgwnRVuo.js","assets/experiments-tab-Bf-4FZ8A.js","assets/site-draft-view-BY9yW2Ej.js","assets/use-apply-named-rule-B8Wdybx9.js","assets/agent-calendar-BOffXUuz.js","assets/agent-monitor-B7Pvzm4h.js","assets/cdn-tab-D5vyoNZe.js","assets/order-monitor-day-BKjwxjjy.js","assets/agent-app-CpchlFDM.js","assets/project-app-view-C9SIUrEh.js","assets/connect-source-dialog-B9kwZ1qm.js","assets/agent-view-Dy5CpY1v.js","assets/agent-file-Btt92on1.js","assets/agent-deck-BsttewCw.js","assets/agent-library-file-Lh5pI681.js","assets/preview-panel-BbgJC3B_.js","assets/agent-connect-sources-Bo6TPGly.js","assets/legacy-agents-deep-DrwenQap.js","assets/tasks-q9Lrl5hM.js","assets/thread-analytics-CUDgOcLF.js","assets/reports-CSjngTEz.js","assets/library-3tOBnuzW.js","assets/plan-Bha3pvLg.js","assets/monitoring-D1EdmxtK.js","assets/discover-CBj9Ot9k.js","assets/index-Bk4q9Kta.js","assets/route-t6Vm8Ywp.js","assets/index-redirect-BTQYAvyK.js","assets/connections-B67BU6-u.js","assets/collection-display-button-BwvT5j3N.js","assets/use-delete-connection-Cbj0xjTC.js","assets/connection-detail-06L9lcjS.js","assets/index-DV0IMvuF.js","assets/use-create-virtual-mcp-BJ9mL4g_.js","assets/monitoring-stats-row-DdlyqvJE.js","assets/collection-detail-DcUQ1g_5.js","assets/index-Da57lEgV.js","assets/general-yzYHBZqk.js","assets/review-settings-DvOOayH7.js","assets/domain-settings-Cuj3cb68.js","assets/connect-1IzEMu95.js","assets/api-keys-OLI6lFDy.js","assets/ai-providers-Dph9V-S2.js","assets/infra-billing-I23Yzx7q.js","assets/secrets-Cg7YmK1o.js","assets/api-keys-bAkry4Sk.js","assets/buckets-CvEidzt4.js","assets/repositories-CC9x9vTF.js","assets/repositories-Cv3p6t_W.js","assets/synced-repos-BVfSxB1w.js","assets/tasks-CdTDj0OK.js","assets/projects-D4v4Oq64.js","assets/members-Bk_T8psV.js","assets/role-color-Dn2tXDDF.js","assets/roles-_9O3_in0.js","assets/sso-CuV4SaSb.js","assets/profile-Cmb0Uq9T.js","assets/agents-list-vpifaSDW.js","assets/automations-pErLtBmM.js","assets/skills-Nw1X0lYG.js","assets/memory-BGQEqAyY.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function J8(t,e){for(var a=0;a<e.length;a++){const o=e[a];if(typeof o!="string"&&!Array.isArray(o)){for(const n in o)if(n!=="default"&&!(n in t)){const r=Object.getOwnPropertyDescriptor(o,n);r&&Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>o[n]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))o(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function a(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerPolicy&&(r.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?r.credentials="include":n.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(n){if(n.ep)return;n.ep=!0;const r=a(n);fetch(n.href,r)}})();var vSe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var VT={exports:{}},Uu={};var bA;function X8(){if(bA)return Uu;bA=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function a(o,n,r){var i=null;if(r!==void 0&&(i=""+r),n.key!==void 0&&(i=""+n.key),"key"in n){r={};for(var c in n)c!=="key"&&(r[c]=n[c])}else r=n;return n=r.ref,{$$typeof:t,type:o,key:i,ref:n!==void 0?n:null,props:r}}return Uu.Fragment=e,Uu.jsx=a,Uu.jsxs=a,Uu}var vA;function eq(){return vA||(vA=1,VT.exports=X8()),VT.exports}var v=eq(),HT={exports:{}},dt={};var yA;function tq(){if(yA)return dt;yA=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),i=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),f=Symbol.iterator;function b(M){return M===null||typeof M!="object"?null:(M=f&&M[f]||M["@@iterator"],typeof M=="function"?M:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},T=Object.assign,x={};function w(M,G,V){this.props=M,this.context=G,this.refs=x,this.updater=V||y}w.prototype.isReactComponent={},w.prototype.setState=function(M,G){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,G,"setState")},w.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function P(){}P.prototype=w.prototype;function k(M,G,V){this.props=M,this.context=G,this.refs=x,this.updater=V||y}var E=k.prototype=new P;E.constructor=k,T(E,w.prototype),E.isPureReactComponent=!0;var _=Array.isArray;function D(){}var R={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function L(M,G,V){var I=V.ref;return{$$typeof:t,type:M,key:G,ref:I!==void 0?I:null,props:V}}function q(M,G){return L(M.type,G,M.props)}function B(M){return typeof M=="object"&&M!==null&&M.$$typeof===t}function z(M){var G={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(V){return G[V]})}var F=/\/+/g;function W(M,G){return typeof M=="object"&&M!==null&&M.key!=null?z(""+M.key):G.toString(36)}function ae(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(D,D):(M.status="pending",M.then(function(G){M.status==="pending"&&(M.status="fulfilled",M.value=G)},function(G){M.status==="pending"&&(M.status="rejected",M.reason=G)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function H(M,G,V,I,j){var X=typeof M;(X==="undefined"||X==="boolean")&&(M=null);var de=!1;if(M===null)de=!0;else switch(X){case"bigint":case"string":case"number":de=!0;break;case"object":switch(M.$$typeof){case t:case e:de=!0;break;case m:return de=M._init,H(de(M._payload),G,V,I,j)}}if(de)return j=j(M),de=I===""?"."+W(M,0):I,_(j)?(V="",de!=null&&(V=de.replace(F,"$&/")+"/"),H(j,G,V,"",function(Ue){return Ue})):j!=null&&(B(j)&&(j=q(j,V+(j.key==null||M&&M.key===j.key?"":(""+j.key).replace(F,"$&/")+"/")+de)),G.push(j)),1;de=0;var ue=I===""?".":I+":";if(_(M))for(var Ee=0;Ee<M.length;Ee++)I=M[Ee],X=ue+W(I,Ee),de+=H(I,G,V,X,j);else if(Ee=b(M),typeof Ee=="function")for(M=Ee.call(M),Ee=0;!(I=M.next()).done;)I=I.value,X=ue+W(I,Ee++),de+=H(I,G,V,X,j);else if(X==="object"){if(typeof M.then=="function")return H(ae(M),G,V,I,j);throw G=String(M),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return de}function K(M,G,V){if(M==null)return M;var I=[],j=0;return H(M,I,"","",function(X){return G.call(V,X,j++)}),I}function J(M){if(M._status===-1){var G=M._result;G=G(),G.then(function(V){(M._status===0||M._status===-1)&&(M._status=1,M._result=V)},function(V){(M._status===0||M._status===-1)&&(M._status=2,M._result=V)}),M._status===-1&&(M._status=0,M._result=G)}if(M._status===1)return M._result.default;throw M._result}var se=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},Q={map:K,forEach:function(M,G,V){K(M,function(){G.apply(this,arguments)},V)},count:function(M){var G=0;return K(M,function(){G++}),G},toArray:function(M){return K(M,function(G){return G})||[]},only:function(M){if(!B(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return dt.Activity=h,dt.Children=Q,dt.Component=w,dt.Fragment=a,dt.Profiler=n,dt.PureComponent=k,dt.StrictMode=o,dt.Suspense=d,dt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,dt.__COMPILER_RUNTIME={__proto__:null,c:function(M){return R.H.useMemoCache(M)}},dt.cache=function(M){return function(){return M.apply(null,arguments)}},dt.cacheSignal=function(){return null},dt.cloneElement=function(M,G,V){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var I=T({},M.props),j=M.key;if(G!=null)for(X in G.key!==void 0&&(j=""+G.key),G)!O.call(G,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&G.ref===void 0||(I[X]=G[X]);var X=arguments.length-2;if(X===1)I.children=V;else if(1<X){for(var de=Array(X),ue=0;ue<X;ue++)de[ue]=arguments[ue+2];I.children=de}return L(M.type,j,I)},dt.createContext=function(M){return M={$$typeof:i,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:r,_context:M},M},dt.createElement=function(M,G,V){var I,j={},X=null;if(G!=null)for(I in G.key!==void 0&&(X=""+G.key),G)O.call(G,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(j[I]=G[I]);var de=arguments.length-2;if(de===1)j.children=V;else if(1<de){for(var ue=Array(de),Ee=0;Ee<de;Ee++)ue[Ee]=arguments[Ee+2];j.children=ue}if(M&&M.defaultProps)for(I in de=M.defaultProps,de)j[I]===void 0&&(j[I]=de[I]);return L(M,X,j)},dt.createRef=function(){return{current:null}},dt.forwardRef=function(M){return{$$typeof:c,render:M}},dt.isValidElement=B,dt.lazy=function(M){return{$$typeof:m,_payload:{_status:-1,_result:M},_init:J}},dt.memo=function(M,G){return{$$typeof:u,type:M,compare:G===void 0?null:G}},dt.startTransition=function(M){var G=R.T,V={};R.T=V;try{var I=M(),j=R.S;j!==null&&j(V,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(D,se)}catch(X){se(X)}finally{G!==null&&V.types!==null&&(G.types=V.types),R.T=G}},dt.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},dt.use=function(M){return R.H.use(M)},dt.useActionState=function(M,G,V){return R.H.useActionState(M,G,V)},dt.useCallback=function(M,G){return R.H.useCallback(M,G)},dt.useContext=function(M){return R.H.useContext(M)},dt.useDebugValue=function(){},dt.useDeferredValue=function(M,G){return R.H.useDeferredValue(M,G)},dt.useEffect=function(M,G){return R.H.useEffect(M,G)},dt.useEffectEvent=function(M){return R.H.useEffectEvent(M)},dt.useId=function(){return R.H.useId()},dt.useImperativeHandle=function(M,G,V){return R.H.useImperativeHandle(M,G,V)},dt.useInsertionEffect=function(M,G){return R.H.useInsertionEffect(M,G)},dt.useLayoutEffect=function(M,G){return R.H.useLayoutEffect(M,G)},dt.useMemo=function(M,G){return R.H.useMemo(M,G)},dt.useOptimistic=function(M,G){return R.H.useOptimistic(M,G)},dt.useReducer=function(M,G,V){return R.H.useReducer(M,G,V)},dt.useRef=function(M){return R.H.useRef(M)},dt.useState=function(M){return R.H.useState(M)},dt.useSyncExternalStore=function(M,G,V){return R.H.useSyncExternalStore(M,G,V)},dt.useTransition=function(){return R.H.useTransition()},dt.version="19.2.6",dt}var TA;function $i(){return TA||(TA=1,HT.exports=tq()),HT.exports}var A=$i();const ee=Wl(A),nP=J8({__proto__:null,default:ee},[A]);var GT={exports:{}},qu={},WT={exports:{}},KT={};var SA;function aq(){return SA||(SA=1,(function(t){function e(H,K){var J=H.length;H.push(K);e:for(;0<J;){var se=J-1>>>1,Q=H[se];if(0<n(Q,K))H[se]=K,H[J]=Q,J=se;else break e}}function a(H){return H.length===0?null:H[0]}function o(H){if(H.length===0)return null;var K=H[0],J=H.pop();if(J!==K){H[0]=J;e:for(var se=0,Q=H.length,M=Q>>>1;se<M;){var G=2*(se+1)-1,V=H[G],I=G+1,j=H[I];if(0>n(V,J))I<Q&&0>n(j,V)?(H[se]=j,H[I]=J,se=I):(H[se]=V,H[G]=J,se=G);else if(I<Q&&0>n(j,J))H[se]=j,H[I]=J,se=I;else break e}}return K}function n(H,K){var J=H.sortIndex-K.sortIndex;return J!==0?J:H.id-K.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var r=performance;t.unstable_now=function(){return r.now()}}else{var i=Date,c=i.now();t.unstable_now=function(){return i.now()-c}}var d=[],u=[],m=1,h=null,f=3,b=!1,y=!1,T=!1,x=!1,w=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function E(H){for(var K=a(u);K!==null;){if(K.callback===null)o(u);else if(K.startTime<=H)o(u),K.sortIndex=K.expirationTime,e(d,K);else break;K=a(u)}}function _(H){if(T=!1,E(H),!y)if(a(d)!==null)y=!0,D||(D=!0,z());else{var K=a(u);K!==null&&ae(_,K.startTime-H)}}var D=!1,R=-1,O=5,L=-1;function q(){return x?!0:!(t.unstable_now()-L<O)}function B(){if(x=!1,D){var H=t.unstable_now();L=H;var K=!0;try{e:{y=!1,T&&(T=!1,P(R),R=-1),b=!0;var J=f;try{t:{for(E(H),h=a(d);h!==null&&!(h.expirationTime>H&&q());){var se=h.callback;if(typeof se=="function"){h.callback=null,f=h.priorityLevel;var Q=se(h.expirationTime<=H);if(H=t.unstable_now(),typeof Q=="function"){h.callback=Q,E(H),K=!0;break t}h===a(d)&&o(d),E(H)}else o(d);h=a(d)}if(h!==null)K=!0;else{var M=a(u);M!==null&&ae(_,M.startTime-H),K=!1}}break e}finally{h=null,f=J,b=!1}K=void 0}}finally{K?z():D=!1}}}var z;if(typeof k=="function")z=function(){k(B)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,W=F.port2;F.port1.onmessage=B,z=function(){W.postMessage(null)}}else z=function(){w(B,0)};function ae(H,K){R=w(function(){H(t.unstable_now())},K)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(H){H.callback=null},t.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<H?Math.floor(1e3/H):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(H){switch(f){case 1:case 2:case 3:var K=3;break;default:K=f}var J=f;f=K;try{return H()}finally{f=J}},t.unstable_requestPaint=function(){x=!0},t.unstable_runWithPriority=function(H,K){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var J=f;f=H;try{return K()}finally{f=J}},t.unstable_scheduleCallback=function(H,K,J){var se=t.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?se+J:se):J=se,H){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=J+Q,H={id:m++,callback:K,priorityLevel:H,startTime:J,expirationTime:Q,sortIndex:-1},J>se?(H.sortIndex=J,e(u,H),a(d)===null&&H===a(u)&&(T?(P(R),R=-1):T=!0,ae(_,J-se))):(H.sortIndex=Q,e(d,H),y||b||(y=!0,D||(D=!0,z()))),H},t.unstable_shouldYield=q,t.unstable_wrapCallback=function(H){var K=f;return function(){var J=f;f=K;try{return H.apply(this,arguments)}finally{f=J}}}})(KT)),KT}var wA;function oq(){return wA||(wA=1,WT.exports=aq()),WT.exports}var YT={exports:{}},Mo={};var xA;function nq(){if(xA)return Mo;xA=1;var t=$i();function e(d){var u="https://react.dev/errors/"+d;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)u+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var o={d:{f:a,r:function(){throw Error(e(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},n=Symbol.for("react.portal");function r(d,u,m){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:n,key:h==null?null:""+h,children:d,containerInfo:u,implementation:m}}var i=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,u){if(d==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return Mo.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Mo.createPortal=function(d,u){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(e(299));return r(d,u,null,m)},Mo.flushSync=function(d){var u=i.T,m=o.p;try{if(i.T=null,o.p=2,d)return d()}finally{i.T=u,o.p=m,o.d.f()}},Mo.preconnect=function(d,u){typeof d=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,o.d.C(d,u))},Mo.prefetchDNS=function(d){typeof d=="string"&&o.d.D(d)},Mo.preinit=function(d,u){if(typeof d=="string"&&u&&typeof u.as=="string"){var m=u.as,h=c(m,u.crossOrigin),f=typeof u.integrity=="string"?u.integrity:void 0,b=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;m==="style"?o.d.S(d,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:h,integrity:f,fetchPriority:b}):m==="script"&&o.d.X(d,{crossOrigin:h,integrity:f,fetchPriority:b,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},Mo.preinitModule=function(d,u){if(typeof d=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var m=c(u.as,u.crossOrigin);o.d.M(d,{crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&o.d.M(d)},Mo.preload=function(d,u){if(typeof d=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var m=u.as,h=c(m,u.crossOrigin);o.d.L(d,m,{crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},Mo.preloadModule=function(d,u){if(typeof d=="string")if(u){var m=c(u.as,u.crossOrigin);o.d.m(d,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else o.d.m(d)},Mo.requestFormReset=function(d){o.d.r(d)},Mo.unstable_batchedUpdates=function(d,u){return d(u)},Mo.useFormState=function(d,u,m){return i.H.useFormState(d,u,m)},Mo.useFormStatus=function(){return i.H.useHostTransitionStatus()},Mo.version="19.2.6",Mo}var PA;function mM(){if(PA)return YT.exports;PA=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),YT.exports=nq(),YT.exports}var EA;function rq(){if(EA)return qu;EA=1;var t=oq(),e=$i(),a=mM();function o(s){var l="https://react.dev/errors/"+s;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)l+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+s+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function r(s){var l=s,p=s;if(s.alternate)for(;l.return;)l=l.return;else{s=l;do l=s,(l.flags&4098)!==0&&(p=l.return),s=l.return;while(s)}return l.tag===3?p:null}function i(s){if(s.tag===13){var l=s.memoizedState;if(l===null&&(s=s.alternate,s!==null&&(l=s.memoizedState)),l!==null)return l.dehydrated}return null}function c(s){if(s.tag===31){var l=s.memoizedState;if(l===null&&(s=s.alternate,s!==null&&(l=s.memoizedState)),l!==null)return l.dehydrated}return null}function d(s){if(r(s)!==s)throw Error(o(188))}function u(s){var l=s.alternate;if(!l){if(l=r(s),l===null)throw Error(o(188));return l!==s?null:s}for(var p=s,g=l;;){var S=p.return;if(S===null)break;var C=S.alternate;if(C===null){if(g=S.return,g!==null){p=g;continue}break}if(S.child===C.child){for(C=S.child;C;){if(C===p)return d(S),s;if(C===g)return d(S),l;C=C.sibling}throw Error(o(188))}if(p.return!==g.return)p=S,g=C;else{for(var N=!1,U=S.child;U;){if(U===p){N=!0,p=S,g=C;break}if(U===g){N=!0,g=S,p=C;break}U=U.sibling}if(!N){for(U=C.child;U;){if(U===p){N=!0,p=C,g=S;break}if(U===g){N=!0,g=C,p=S;break}U=U.sibling}if(!N)throw Error(o(189))}}if(p.alternate!==g)throw Error(o(190))}if(p.tag!==3)throw Error(o(188));return p.stateNode.current===p?s:l}function m(s){var l=s.tag;if(l===5||l===26||l===27||l===6)return s;for(s=s.child;s!==null;){if(l=m(s),l!==null)return l;s=s.sibling}return null}var h=Object.assign,f=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),k=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),q=Symbol.for("react.memo_cache_sentinel"),B=Symbol.iterator;function z(s){return s===null||typeof s!="object"?null:(s=B&&s[B]||s["@@iterator"],typeof s=="function"?s:null)}var F=Symbol.for("react.client.reference");function W(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===F?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case T:return"Fragment";case w:return"Profiler";case x:return"StrictMode";case _:return"Suspense";case D:return"SuspenseList";case L:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case y:return"Portal";case k:return s.displayName||"Context";case P:return(s._context.displayName||"Context")+".Consumer";case E:var l=s.render;return s=s.displayName,s||(s=l.displayName||l.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case R:return l=s.displayName||null,l!==null?l:W(s.type)||"Memo";case O:l=s._payload,s=s._init;try{return W(s(l))}catch{}}return null}var ae=Array.isArray,H=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J={pending:!1,data:null,method:null,action:null},se=[],Q=-1;function M(s){return{current:s}}function G(s){0>Q||(s.current=se[Q],se[Q]=null,Q--)}function V(s,l){Q++,se[Q]=s.current,s.current=l}var I=M(null),j=M(null),X=M(null),de=M(null);function ue(s,l){switch(V(X,l),V(j,s),V(I,null),l.nodeType){case 9:case 11:s=(s=l.documentElement)&&(s=s.namespaceURI)?z1(s):0;break;default:if(s=l.tagName,l=l.namespaceURI)l=z1(l),s=U1(l,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}G(I),V(I,s)}function Ee(){G(I),G(j),G(X)}function Ue(s){s.memoizedState!==null&&V(de,s);var l=I.current,p=U1(l,s.type);l!==p&&(V(j,s),V(I,p))}function Z(s){j.current===s&&(G(I),G(j)),de.current===s&&(G(de),Bu._currentValue=J)}var ne,be;function ie(s){if(ne===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);ne=l&&l[1]||"",be=-1<p.stack.indexOf(`
|
|
3
3
|
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
4
4
|
`+ne+s+be}var xe=!1;function ke(s,l){if(!s||xe)return"";xe=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var g={DetermineComponentFrameRoot:function(){try{if(l){var Pe=function(){throw Error()};if(Object.defineProperty(Pe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Pe,[])}catch(fe){var he=fe}Reflect.construct(s,[],Pe)}else{try{Pe.call()}catch(fe){he=fe}s.call(Pe.prototype)}}else{try{throw Error()}catch(fe){he=fe}(Pe=s())&&typeof Pe.catch=="function"&&Pe.catch(function(){})}}catch(fe){if(fe&&he&&typeof fe.stack=="string")return[fe.stack,he.stack]}return[null,null]}};g.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var S=Object.getOwnPropertyDescriptor(g.DetermineComponentFrameRoot,"name");S&&S.configurable&&Object.defineProperty(g.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var C=g.DetermineComponentFrameRoot(),N=C[0],U=C[1];if(N&&U){var te=N.split(`
|
|
@@ -52,7 +52,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
52
52
|
|| ${O} === "boolean" || ${D} === null`).assign(L,(0,o._)`[${D}]`)}}}function f({gen:P,parentData:k,parentDataProperty:E},_){P.if((0,o._)`${k} !== undefined`,()=>P.assign((0,o._)`${k}[${E}]`,_))}function b(P,k,E,_=r.Correct){const D=_===r.Correct?o.operators.EQ:o.operators.NEQ;let R;switch(P){case"null":return(0,o._)`${k} ${D} null`;case"array":R=(0,o._)`Array.isArray(${k})`;break;case"object":R=(0,o._)`${k} && typeof ${k} == "object" && !Array.isArray(${k})`;break;case"integer":R=O((0,o._)`!(${k} % 1) && !isNaN(${k})`);break;case"number":R=O();break;default:return(0,o._)`typeof ${k} ${D} ${P}`}return _===r.Correct?R:(0,o.not)(R);function O(L=o.nil){return(0,o.and)((0,o._)`typeof ${k} == "number"`,L,E?(0,o._)`isFinite(${k})`:o.nil)}}So.checkDataType=b;function y(P,k,E,_){if(P.length===1)return b(P[0],k,E,_);let D;const R=(0,n.toHash)(P);if(R.array&&R.object){const O=(0,o._)`typeof ${k} != "object"`;D=R.null?O:(0,o._)`!${k} || ${O}`,delete R.null,delete R.array,delete R.object}else D=o.nil;R.number&&delete R.integer;for(const O in R)D=(0,o.and)(D,b(O,k,E,_));return D}So.checkDataTypes=y;const T={message:({schema:P})=>`must be ${P}`,params:({schema:P,schemaValue:k})=>typeof P=="string"?(0,o._)`{type: ${P}}`:(0,o._)`{type: ${k}}`};function x(P){const k=w(P);(0,a.reportError)(k,T)}So.reportTypeError=x;function w(P){const{gen:k,data:E,schema:_}=P,D=(0,n.schemaRefOrVal)(P,_,"type");return{gen:k,keyword:"type",data:E,schema:_.type,schemaCode:D,schemaValue:D,parentSchema:_,params:{},it:P}}return So}var Wu={},HR;function xZ(){if(HR)return Wu;HR=1,Object.defineProperty(Wu,"__esModule",{value:!0}),Wu.assignDefaults=void 0;const t=Tt(),e=Ft();function a(n,r){const{properties:i,items:c}=n.schema;if(r==="object"&&i)for(const d in i)o(n,d,i[d].default);else r==="array"&&Array.isArray(c)&&c.forEach((d,u)=>o(n,u,d.default))}Wu.assignDefaults=a;function o(n,r,i){const{gen:c,compositeRule:d,data:u,opts:m}=n;if(i===void 0)return;const h=(0,t._)`${u}${(0,t.getProperty)(r)}`;if(d){(0,e.checkStrictMode)(n,`default is ignored for: ${h}`);return}let f=(0,t._)`${h} === undefined`;m.useDefaults==="empty"&&(f=(0,t._)`${f} || ${h} === null || ${h} === ""`),c.if(f,(0,t._)`${h} = ${(0,t.stringify)(i)}`)}return Wu}var gr={},Zt={},GR;function Dr(){if(GR)return Zt;GR=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.validateUnion=Zt.validateArray=Zt.usePattern=Zt.callValidateCode=Zt.schemaProperties=Zt.allSchemaProperties=Zt.noPropertyInData=Zt.propertyInData=Zt.isOwnProperty=Zt.hasPropFunc=Zt.reportMissingProp=Zt.checkMissingProp=Zt.checkReportMissingProp=void 0;const t=Tt(),e=Ft(),a=Yi(),o=Ft();function n(P,k){const{gen:E,data:_,it:D}=P;E.if(m(E,_,k,D.opts.ownProperties),()=>{P.setParams({missingProperty:(0,t._)`${k}`},!0),P.error()})}Zt.checkReportMissingProp=n;function r({gen:P,data:k,it:{opts:E}},_,D){return(0,t.or)(..._.map(R=>(0,t.and)(m(P,k,R,E.ownProperties),(0,t._)`${D} = ${R}`)))}Zt.checkMissingProp=r;function i(P,k){P.setParams({missingProperty:k},!0),P.error()}Zt.reportMissingProp=i;function c(P){return P.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,t._)`Object.prototype.hasOwnProperty`})}Zt.hasPropFunc=c;function d(P,k,E){return(0,t._)`${c(P)}.call(${k}, ${E})`}Zt.isOwnProperty=d;function u(P,k,E,_){const D=(0,t._)`${k}${(0,t.getProperty)(E)} !== undefined`;return _?(0,t._)`${D} && ${d(P,k,E)}`:D}Zt.propertyInData=u;function m(P,k,E,_){const D=(0,t._)`${k}${(0,t.getProperty)(E)} === undefined`;return _?(0,t.or)(D,(0,t.not)(d(P,k,E))):D}Zt.noPropertyInData=m;function h(P){return P?Object.keys(P).filter(k=>k!=="__proto__"):[]}Zt.allSchemaProperties=h;function f(P,k){return h(k).filter(E=>!(0,e.alwaysValidSchema)(P,k[E]))}Zt.schemaProperties=f;function b({schemaCode:P,data:k,it:{gen:E,topSchemaRef:_,schemaPath:D,errorPath:R},it:O},L,q,B){const z=B?(0,t._)`${P}, ${k}, ${_}${D}`:k,F=[[a.default.instancePath,(0,t.strConcat)(a.default.instancePath,R)],[a.default.parentData,O.parentData],[a.default.parentDataProperty,O.parentDataProperty],[a.default.rootData,a.default.rootData]];O.opts.dynamicRef&&F.push([a.default.dynamicAnchors,a.default.dynamicAnchors]);const W=(0,t._)`${z}, ${E.object(...F)}`;return q!==t.nil?(0,t._)`${L}.call(${q}, ${W})`:(0,t._)`${L}(${W})`}Zt.callValidateCode=b;const y=(0,t._)`new RegExp`;function T({gen:P,it:{opts:k}},E){const _=k.unicodeRegExp?"u":"",{regExp:D}=k.code,R=D(E,_);return P.scopeValue("pattern",{key:R.toString(),ref:R,code:(0,t._)`${D.code==="new RegExp"?y:(0,o.useFunc)(P,D)}(${E}, ${_})`})}Zt.usePattern=T;function x(P){const{gen:k,data:E,keyword:_,it:D}=P,R=k.name("valid");if(D.allErrors){const L=k.let("valid",!0);return O(()=>k.assign(L,!1)),L}return k.var(R,!0),O(()=>k.break()),R;function O(L){const q=k.const("len",(0,t._)`${E}.length`);k.forRange("i",0,q,B=>{P.subschema({keyword:_,dataProp:B,dataPropType:e.Type.Num},R),k.if((0,t.not)(R),L)})}}Zt.validateArray=x;function w(P){const{gen:k,schema:E,keyword:_,it:D}=P;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(q=>(0,e.alwaysValidSchema)(D,q))&&!D.opts.unevaluated)return;const O=k.let("valid",!1),L=k.name("_valid");k.block(()=>E.forEach((q,B)=>{const z=P.subschema({keyword:_,schemaProp:B,compositeRule:!0},L);k.assign(O,(0,t._)`${O} || ${L}`),P.mergeValidEvaluated(z,L)||k.if((0,t.not)(O))})),P.result(O,()=>P.reset(),()=>P.error(!0))}return Zt.validateUnion=w,Zt}var WR;function PZ(){if(WR)return gr;WR=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.validateKeywordUsage=gr.validSchemaType=gr.funcKeywordCode=gr.macroKeywordCode=void 0;const t=Tt(),e=Yi(),a=Dr(),o=Jb();function n(f,b){const{gen:y,keyword:T,schema:x,parentSchema:w,it:P}=f,k=b.macro.call(P.self,x,w,P),E=u(y,T,k);P.opts.validateSchema!==!1&&P.self.validateSchema(k,!0);const _=y.name("valid");f.subschema({schema:k,schemaPath:t.nil,errSchemaPath:`${P.errSchemaPath}/${T}`,topSchemaRef:E,compositeRule:!0},_),f.pass(_,()=>f.error(!0))}gr.macroKeywordCode=n;function r(f,b){var y;const{gen:T,keyword:x,schema:w,parentSchema:P,$data:k,it:E}=f;d(E,b);const _=!k&&b.compile?b.compile.call(E.self,w,P,E):b.validate,D=u(T,x,_),R=T.let("valid");f.block$data(R,O),f.ok((y=b.valid)!==null&&y!==void 0?y:R);function O(){if(b.errors===!1)B(),b.modifying&&i(f),z(()=>f.error());else{const F=b.async?L():q();b.modifying&&i(f),z(()=>c(f,F))}}function L(){const F=T.let("ruleErrs",null);return T.try(()=>B((0,t._)`await `),W=>T.assign(R,!1).if((0,t._)`${W} instanceof ${E.ValidationError}`,()=>T.assign(F,(0,t._)`${W}.errors`),()=>T.throw(W))),F}function q(){const F=(0,t._)`${D}.errors`;return T.assign(F,null),B(t.nil),F}function B(F=b.async?(0,t._)`await `:t.nil){const W=E.opts.passContext?e.default.this:e.default.self,ae=!("compile"in b&&!k||b.schema===!1);T.assign(R,(0,t._)`${F}${(0,a.callValidateCode)(f,D,W,ae)}`,b.modifying)}function z(F){var W;T.if((0,t.not)((W=b.valid)!==null&&W!==void 0?W:R),F)}}gr.funcKeywordCode=r;function i(f){const{gen:b,data:y,it:T}=f;b.if(T.parentData,()=>b.assign(y,(0,t._)`${T.parentData}[${T.parentDataProperty}]`))}function c(f,b){const{gen:y}=f;y.if((0,t._)`Array.isArray(${b})`,()=>{y.assign(e.default.vErrors,(0,t._)`${e.default.vErrors} === null ? ${b} : ${e.default.vErrors}.concat(${b})`).assign(e.default.errors,(0,t._)`${e.default.vErrors}.length`),(0,o.extendErrors)(f)},()=>f.error())}function d({schemaEnv:f},b){if(b.async&&!f.$async)throw new Error("async keyword in sync schema")}function u(f,b,y){if(y===void 0)throw new Error(`keyword "${b}" failed to compile`);return f.scopeValue("keyword",typeof y=="function"?{ref:y}:{ref:y,code:(0,t.stringify)(y)})}function m(f,b,y=!1){return!b.length||b.some(T=>T==="array"?Array.isArray(f):T==="object"?f&&typeof f=="object"&&!Array.isArray(f):typeof f==T||y&&typeof f>"u")}gr.validSchemaType=m;function h({schema:f,opts:b,self:y,errSchemaPath:T},x,w){if(Array.isArray(x.keyword)?!x.keyword.includes(w):x.keyword!==w)throw new Error("ajv implementation error");const P=x.dependencies;if(P?.some(k=>!Object.prototype.hasOwnProperty.call(f,k)))throw new Error(`parent schema must have dependencies of ${w}: ${P.join(",")}`);if(x.validateSchema&&!x.validateSchema(f[w])){const E=`keyword "${w}" value is invalid at path "${T}": `+y.errorsText(x.validateSchema.errors);if(b.validateSchema==="log")y.logger.error(E);else throw new Error(E)}}return gr.validateKeywordUsage=h,gr}var Ps={},KR;function EZ(){if(KR)return Ps;KR=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.extendSubschemaMode=Ps.extendSubschemaData=Ps.getSubschema=void 0;const t=Tt(),e=Ft();function a(r,{keyword:i,schemaProp:c,schema:d,schemaPath:u,errSchemaPath:m,topSchemaRef:h}){if(i!==void 0&&d!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(i!==void 0){const f=r.schema[i];return c===void 0?{schema:f,schemaPath:(0,t._)`${r.schemaPath}${(0,t.getProperty)(i)}`,errSchemaPath:`${r.errSchemaPath}/${i}`}:{schema:f[c],schemaPath:(0,t._)`${r.schemaPath}${(0,t.getProperty)(i)}${(0,t.getProperty)(c)}`,errSchemaPath:`${r.errSchemaPath}/${i}/${(0,e.escapeFragment)(c)}`}}if(d!==void 0){if(u===void 0||m===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:d,schemaPath:u,topSchemaRef:h,errSchemaPath:m}}throw new Error('either "keyword" or "schema" must be passed')}Ps.getSubschema=a;function o(r,i,{dataProp:c,dataPropType:d,data:u,dataTypes:m,propertyName:h}){if(u!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:f}=i;if(c!==void 0){const{errorPath:y,dataPathArr:T,opts:x}=i,w=f.let("data",(0,t._)`${i.data}${(0,t.getProperty)(c)}`,!0);b(w),r.errorPath=(0,t.str)`${y}${(0,e.getErrorPath)(c,d,x.jsPropertySyntax)}`,r.parentDataProperty=(0,t._)`${c}`,r.dataPathArr=[...T,r.parentDataProperty]}if(u!==void 0){const y=u instanceof t.Name?u:f.let("data",u,!0);b(y),h!==void 0&&(r.propertyName=h)}m&&(r.dataTypes=m);function b(y){r.data=y,r.dataLevel=i.dataLevel+1,r.dataTypes=[],i.definedProperties=new Set,r.parentData=i.data,r.dataNames=[...i.dataNames,y]}}Ps.extendSubschemaData=o;function n(r,{jtdDiscriminator:i,jtdMetadata:c,compositeRule:d,createErrors:u,allErrors:m}){d!==void 0&&(r.compositeRule=d),u!==void 0&&(r.createErrors=u),m!==void 0&&(r.allErrors=m),r.jtdDiscriminator=i,r.jtdMetadata=c}return Ps.extendSubschemaMode=n,Ps}var Go={},bS,YR;function KL(){return YR||(YR=1,bS=function t(e,a){if(e===a)return!0;if(e&&a&&typeof e=="object"&&typeof a=="object"){if(e.constructor!==a.constructor)return!1;var o,n,r;if(Array.isArray(e)){if(o=e.length,o!=a.length)return!1;for(n=o;n--!==0;)if(!t(e[n],a[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===a.source&&e.flags===a.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===a.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===a.toString();if(r=Object.keys(e),o=r.length,o!==Object.keys(a).length)return!1;for(n=o;n--!==0;)if(!Object.prototype.hasOwnProperty.call(a,r[n]))return!1;for(n=o;n--!==0;){var i=r[n];if(!t(e[i],a[i]))return!1}return!0}return e!==e&&a!==a}),bS}var vS={exports:{}},ZR;function CZ(){if(ZR)return vS.exports;ZR=1;var t=vS.exports=function(o,n,r){typeof n=="function"&&(r=n,n={}),r=n.cb||r;var i=typeof r=="function"?r:r.pre||function(){},c=r.post||function(){};e(n,i,c,o,"",o)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function e(o,n,r,i,c,d,u,m,h,f){if(i&&typeof i=="object"&&!Array.isArray(i)){n(i,c,d,u,m,h,f);for(var b in i){var y=i[b];if(Array.isArray(y)){if(b in t.arrayKeywords)for(var T=0;T<y.length;T++)e(o,n,r,y[T],c+"/"+b+"/"+T,d,c,b,i,T)}else if(b in t.propsKeywords){if(y&&typeof y=="object")for(var x in y)e(o,n,r,y[x],c+"/"+b+"/"+a(x),d,c,b,i,x)}else(b in t.keywords||o.allKeys&&!(b in t.skipKeywords))&&e(o,n,r,y,c+"/"+b,d,c,b,i)}r(i,c,d,u,m,h,f)}}function a(o){return o.replace(/~/g,"~0").replace(/\//g,"~1")}return vS.exports}var QR;function Xb(){if(QR)return Go;QR=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.getSchemaRefs=Go.resolveUrl=Go.normalizeId=Go._getFullPath=Go.getFullPath=Go.inlineRef=void 0;const t=Ft(),e=KL(),a=CZ(),o=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function n(T,x=!0){return typeof T=="boolean"?!0:x===!0?!i(T):x?c(T)<=x:!1}Go.inlineRef=n;const r=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function i(T){for(const x in T){if(r.has(x))return!0;const w=T[x];if(Array.isArray(w)&&w.some(i)||typeof w=="object"&&i(w))return!0}return!1}function c(T){let x=0;for(const w in T){if(w==="$ref")return 1/0;if(x++,!o.has(w)&&(typeof T[w]=="object"&&(0,t.eachItem)(T[w],P=>x+=c(P)),x===1/0))return 1/0}return x}function d(T,x="",w){w!==!1&&(x=h(x));const P=T.parse(x);return u(T,P)}Go.getFullPath=d;function u(T,x){return T.serialize(x).split("#")[0]+"#"}Go._getFullPath=u;const m=/#\/?$/;function h(T){return T?T.replace(m,""):""}Go.normalizeId=h;function f(T,x,w){return w=h(w),T.resolve(x,w)}Go.resolveUrl=f;const b=/^[a-z_][-a-z0-9._]*$/i;function y(T,x){if(typeof T=="boolean")return{};const{schemaId:w,uriResolver:P}=this.opts,k=h(T[w]||x),E={"":k},_=d(P,k,!1),D={},R=new Set;return a(T,{allKeys:!0},(q,B,z,F)=>{if(F===void 0)return;const W=_+B;let ae=E[F];typeof q[w]=="string"&&(ae=H.call(this,q[w])),K.call(this,q.$anchor),K.call(this,q.$dynamicAnchor),E[B]=ae;function H(J){const se=this.opts.uriResolver.resolve;if(J=h(ae?se(ae,J):J),R.has(J))throw L(J);R.add(J);let Q=this.refs[J];return typeof Q=="string"&&(Q=this.refs[Q]),typeof Q=="object"?O(q,Q.schema,J):J!==h(W)&&(J[0]==="#"?(O(q,D[J],J),D[J]=q):this.refs[J]=W),J}function K(J){if(typeof J=="string"){if(!b.test(J))throw new Error(`invalid anchor "${J}"`);H.call(this,`#${J}`)}}}),D;function O(q,B,z){if(B!==void 0&&!e(q,B))throw L(z)}function L(q){return new Error(`reference "${q}" resolves to more than one schema`)}}return Go.getSchemaRefs=y,Go}var JR;function ev(){if(JR)return ws;JR=1,Object.defineProperty(ws,"__esModule",{value:!0}),ws.getData=ws.KeywordCxt=ws.validateFunctionCode=void 0;const t=wZ(),e=Kf(),a=WL(),o=Kf(),n=xZ(),r=PZ(),i=EZ(),c=Tt(),d=Yi(),u=Xb(),m=Ft(),h=Jb();function f(Z){if(_(Z)&&(R(Z),E(Z))){x(Z);return}b(Z,()=>(0,t.topBoolOrEmptySchema)(Z))}ws.validateFunctionCode=f;function b({gen:Z,validateName:ne,schema:be,schemaEnv:ie,opts:xe},ke){xe.code.es5?Z.func(ne,(0,c._)`${d.default.data}, ${d.default.valCxt}`,ie.$async,()=>{Z.code((0,c._)`"use strict"; ${P(be,xe)}`),T(Z,xe),Z.code(ke)}):Z.func(ne,(0,c._)`${d.default.data}, ${y(xe)}`,ie.$async,()=>Z.code(P(be,xe)).code(ke))}function y(Z){return(0,c._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${Z.dynamicRef?(0,c._)`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`}function T(Z,ne){Z.if(d.default.valCxt,()=>{Z.var(d.default.instancePath,(0,c._)`${d.default.valCxt}.${d.default.instancePath}`),Z.var(d.default.parentData,(0,c._)`${d.default.valCxt}.${d.default.parentData}`),Z.var(d.default.parentDataProperty,(0,c._)`${d.default.valCxt}.${d.default.parentDataProperty}`),Z.var(d.default.rootData,(0,c._)`${d.default.valCxt}.${d.default.rootData}`),ne.dynamicRef&&Z.var(d.default.dynamicAnchors,(0,c._)`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{Z.var(d.default.instancePath,(0,c._)`""`),Z.var(d.default.parentData,(0,c._)`undefined`),Z.var(d.default.parentDataProperty,(0,c._)`undefined`),Z.var(d.default.rootData,d.default.data),ne.dynamicRef&&Z.var(d.default.dynamicAnchors,(0,c._)`{}`)})}function x(Z){const{schema:ne,opts:be,gen:ie}=Z;b(Z,()=>{be.$comment&&ne.$comment&&F(Z),q(Z),ie.let(d.default.vErrors,null),ie.let(d.default.errors,0),be.unevaluated&&w(Z),O(Z),W(Z)})}function w(Z){const{gen:ne,validateName:be}=Z;Z.evaluated=ne.const("evaluated",(0,c._)`${be}.evaluated`),ne.if((0,c._)`${Z.evaluated}.dynamicProps`,()=>ne.assign((0,c._)`${Z.evaluated}.props`,(0,c._)`undefined`)),ne.if((0,c._)`${Z.evaluated}.dynamicItems`,()=>ne.assign((0,c._)`${Z.evaluated}.items`,(0,c._)`undefined`))}function P(Z,ne){const be=typeof Z=="object"&&Z[ne.schemaId];return be&&(ne.code.source||ne.code.process)?(0,c._)`/*# sourceURL=${be} */`:c.nil}function k(Z,ne){if(_(Z)&&(R(Z),E(Z))){D(Z,ne);return}(0,t.boolOrEmptySchema)(Z,ne)}function E({schema:Z,self:ne}){if(typeof Z=="boolean")return!Z;for(const be in Z)if(ne.RULES.all[be])return!0;return!1}function _(Z){return typeof Z.schema!="boolean"}function D(Z,ne){const{schema:be,gen:ie,opts:xe}=Z;xe.$comment&&be.$comment&&F(Z),B(Z),z(Z);const ke=ie.const("_errs",d.default.errors);O(Z,ke),ie.var(ne,(0,c._)`${ke} === ${d.default.errors}`)}function R(Z){(0,m.checkUnknownRules)(Z),L(Z)}function O(Z,ne){if(Z.opts.jtd)return H(Z,[],!1,ne);const be=(0,e.getSchemaTypes)(Z.schema),ie=(0,e.coerceAndCheckDataType)(Z,be);H(Z,be,!ie,ne)}function L(Z){const{schema:ne,errSchemaPath:be,opts:ie,self:xe}=Z;ne.$ref&&ie.ignoreKeywordsWithRef&&(0,m.schemaHasRulesButRef)(ne,xe.RULES)&&xe.logger.warn(`$ref: keywords ignored in schema at path "${be}"`)}function q(Z){const{schema:ne,opts:be}=Z;ne.default!==void 0&&be.useDefaults&&be.strictSchema&&(0,m.checkStrictMode)(Z,"default is ignored in the schema root")}function B(Z){const ne=Z.schema[Z.opts.schemaId];ne&&(Z.baseId=(0,u.resolveUrl)(Z.opts.uriResolver,Z.baseId,ne))}function z(Z){if(Z.schema.$async&&!Z.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:Z,schemaEnv:ne,schema:be,errSchemaPath:ie,opts:xe}){const ke=be.$comment;if(xe.$comment===!0)Z.code((0,c._)`${d.default.self}.logger.log(${ke})`);else if(typeof xe.$comment=="function"){const it=(0,c.str)`${ie}/$comment`,ct=Z.scopeValue("root",{ref:ne.root});Z.code((0,c._)`${d.default.self}.opts.$comment(${ke}, ${it}, ${ct}.schema)`)}}function W(Z){const{gen:ne,schemaEnv:be,validateName:ie,ValidationError:xe,opts:ke}=Z;be.$async?ne.if((0,c._)`${d.default.errors} === 0`,()=>ne.return(d.default.data),()=>ne.throw((0,c._)`new ${xe}(${d.default.vErrors})`)):(ne.assign((0,c._)`${ie}.errors`,d.default.vErrors),ke.unevaluated&&ae(Z),ne.return((0,c._)`${d.default.errors} === 0`))}function ae({gen:Z,evaluated:ne,props:be,items:ie}){be instanceof c.Name&&Z.assign((0,c._)`${ne}.props`,be),ie instanceof c.Name&&Z.assign((0,c._)`${ne}.items`,ie)}function H(Z,ne,be,ie){const{gen:xe,schema:ke,data:it,allErrors:ct,opts:Ge,self:ot}=Z,{RULES:Ne}=ot;if(ke.$ref&&(Ge.ignoreKeywordsWithRef||!(0,m.schemaHasRulesButRef)(ke,Ne))){xe.block(()=>de(Z,"$ref",Ne.all.$ref.definition));return}Ge.jtd||J(Z,ne),xe.block(()=>{for(const He of Ne.rules)Oe(He);Oe(Ne.post)});function Oe(He){(0,a.shouldUseGroup)(ke,He)&&(He.type?(xe.if((0,o.checkDataType)(He.type,it,Ge.strictNumbers)),K(Z,He),ne.length===1&&ne[0]===He.type&&be&&(xe.else(),(0,o.reportTypeError)(Z)),xe.endIf()):K(Z,He),ct||xe.if((0,c._)`${d.default.errors} === ${ie||0}`))}}function K(Z,ne){const{gen:be,schema:ie,opts:{useDefaults:xe}}=Z;xe&&(0,n.assignDefaults)(Z,ne.type),be.block(()=>{for(const ke of ne.rules)(0,a.shouldUseRule)(ie,ke)&&de(Z,ke.keyword,ke.definition,ne.type)})}function J(Z,ne){Z.schemaEnv.meta||!Z.opts.strictTypes||(se(Z,ne),Z.opts.allowUnionTypes||Q(Z,ne),M(Z,Z.dataTypes))}function se(Z,ne){if(ne.length){if(!Z.dataTypes.length){Z.dataTypes=ne;return}ne.forEach(be=>{V(Z.dataTypes,be)||j(Z,`type "${be}" not allowed by context "${Z.dataTypes.join(",")}"`)}),I(Z,ne)}}function Q(Z,ne){ne.length>1&&!(ne.length===2&&ne.includes("null"))&&j(Z,"use allowUnionTypes to allow union type keyword")}function M(Z,ne){const be=Z.self.RULES.all;for(const ie in be){const xe=be[ie];if(typeof xe=="object"&&(0,a.shouldUseRule)(Z.schema,xe)){const{type:ke}=xe.definition;ke.length&&!ke.some(it=>G(ne,it))&&j(Z,`missing type "${ke.join(",")}" for keyword "${ie}"`)}}}function G(Z,ne){return Z.includes(ne)||ne==="number"&&Z.includes("integer")}function V(Z,ne){return Z.includes(ne)||ne==="integer"&&Z.includes("number")}function I(Z,ne){const be=[];for(const ie of Z.dataTypes)V(ne,ie)?be.push(ie):ne.includes("integer")&&ie==="number"&&be.push("integer");Z.dataTypes=be}function j(Z,ne){const be=Z.schemaEnv.baseId+Z.errSchemaPath;ne+=` at "${be}" (strictTypes)`,(0,m.checkStrictMode)(Z,ne,Z.opts.strictTypes)}class X{constructor(ne,be,ie){if((0,r.validateKeywordUsage)(ne,be,ie),this.gen=ne.gen,this.allErrors=ne.allErrors,this.keyword=ie,this.data=ne.data,this.schema=ne.schema[ie],this.$data=be.$data&&ne.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,m.schemaRefOrVal)(ne,this.schema,ie,this.$data),this.schemaType=be.schemaType,this.parentSchema=ne.schema,this.params={},this.it=ne,this.def=be,this.$data)this.schemaCode=ne.gen.const("vSchema",Ue(this.$data,ne));else if(this.schemaCode=this.schemaValue,!(0,r.validSchemaType)(this.schema,be.schemaType,be.allowUndefined))throw new Error(`${ie} value must be ${JSON.stringify(be.schemaType)}`);("code"in be?be.trackErrors:be.errors!==!1)&&(this.errsCount=ne.gen.const("_errs",d.default.errors))}result(ne,be,ie){this.failResult((0,c.not)(ne),be,ie)}failResult(ne,be,ie){this.gen.if(ne),ie?ie():this.error(),be?(this.gen.else(),be(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(ne,be){this.failResult((0,c.not)(ne),void 0,be)}fail(ne){if(ne===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(ne),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(ne){if(!this.$data)return this.fail(ne);const{schemaCode:be}=this;this.fail((0,c._)`${be} !== undefined && (${(0,c.or)(this.invalid$data(),ne)})`)}error(ne,be,ie){if(be){this.setParams(be),this._error(ne,ie),this.setParams({});return}this._error(ne,ie)}_error(ne,be){(ne?h.reportExtraError:h.reportError)(this,this.def.error,be)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(ne){this.allErrors||this.gen.if(ne)}setParams(ne,be){be?Object.assign(this.params,ne):this.params=ne}block$data(ne,be,ie=c.nil){this.gen.block(()=>{this.check$data(ne,ie),be()})}check$data(ne=c.nil,be=c.nil){if(!this.$data)return;const{gen:ie,schemaCode:xe,schemaType:ke,def:it}=this;ie.if((0,c.or)((0,c._)`${xe} === undefined`,be)),ne!==c.nil&&ie.assign(ne,!0),(ke.length||it.validateSchema)&&(ie.elseIf(this.invalid$data()),this.$dataError(),ne!==c.nil&&ie.assign(ne,!1)),ie.else()}invalid$data(){const{gen:ne,schemaCode:be,schemaType:ie,def:xe,it:ke}=this;return(0,c.or)(it(),ct());function it(){if(ie.length){if(!(be instanceof c.Name))throw new Error("ajv implementation error");const Ge=Array.isArray(ie)?ie:[ie];return(0,c._)`${(0,o.checkDataTypes)(Ge,be,ke.opts.strictNumbers,o.DataType.Wrong)}`}return c.nil}function ct(){if(xe.validateSchema){const Ge=ne.scopeValue("validate$data",{ref:xe.validateSchema});return(0,c._)`!${Ge}(${be})`}return c.nil}}subschema(ne,be){const ie=(0,i.getSubschema)(this.it,ne);(0,i.extendSubschemaData)(ie,this.it,ne),(0,i.extendSubschemaMode)(ie,ne);const xe={...this.it,...ie,items:void 0,props:void 0};return k(xe,be),xe}mergeEvaluated(ne,be){const{it:ie,gen:xe}=this;ie.opts.unevaluated&&(ie.props!==!0&&ne.props!==void 0&&(ie.props=m.mergeEvaluated.props(xe,ne.props,ie.props,be)),ie.items!==!0&&ne.items!==void 0&&(ie.items=m.mergeEvaluated.items(xe,ne.items,ie.items,be)))}mergeValidEvaluated(ne,be){const{it:ie,gen:xe}=this;if(ie.opts.unevaluated&&(ie.props!==!0||ie.items!==!0))return xe.if(be,()=>this.mergeEvaluated(ne,c.Name)),!0}}ws.KeywordCxt=X;function de(Z,ne,be,ie){const xe=new X(Z,be,ne);"code"in be?be.code(xe,ie):xe.$data&&be.validate?(0,r.funcKeywordCode)(xe,be):"macro"in be?(0,r.macroKeywordCode)(xe,be):(be.compile||be.validate)&&(0,r.funcKeywordCode)(xe,be)}const ue=/^\/(?:[^~]|~0|~1)*$/,Ee=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Ue(Z,{dataLevel:ne,dataNames:be,dataPathArr:ie}){let xe,ke;if(Z==="")return d.default.rootData;if(Z[0]==="/"){if(!ue.test(Z))throw new Error(`Invalid JSON-pointer: ${Z}`);xe=Z,ke=d.default.rootData}else{const ot=Ee.exec(Z);if(!ot)throw new Error(`Invalid JSON-pointer: ${Z}`);const Ne=+ot[1];if(xe=ot[2],xe==="#"){if(Ne>=ne)throw new Error(Ge("property/index",Ne));return ie[ne-Ne]}if(Ne>ne)throw new Error(Ge("data",Ne));if(ke=be[ne-Ne],!xe)return ke}let it=ke;const ct=xe.split("/");for(const ot of ct)ot&&(ke=(0,c._)`${ke}${(0,c.getProperty)((0,m.unescapeJsonPointer)(ot))}`,it=(0,c._)`${it} && ${ke}`);return it;function Ge(ot,Ne){return`Cannot access ${ot} ${Ne} levels up, current level is ${ne}`}}return ws.getData=Ue,ws}var eg={},XR;function zP(){if(XR)return eg;XR=1,Object.defineProperty(eg,"__esModule",{value:!0});class t extends Error{constructor(a){super("validation failed"),this.errors=a,this.ajv=this.validation=!0}}return eg.default=t,eg}var tg={},eD;function tv(){if(eD)return tg;eD=1,Object.defineProperty(tg,"__esModule",{value:!0});const t=Xb();class e extends Error{constructor(o,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,t.resolveUrl)(o,n,r),this.missingSchema=(0,t.normalizeId)((0,t.getFullPath)(o,this.missingRef))}}return tg.default=e,tg}var kn={},tD;function UP(){if(tD)return kn;tD=1,Object.defineProperty(kn,"__esModule",{value:!0}),kn.resolveSchema=kn.getCompilingSchema=kn.resolveRef=kn.compileSchema=kn.SchemaEnv=void 0;const t=Tt(),e=zP(),a=Yi(),o=Xb(),n=Ft(),r=ev();class i{constructor(w){var P;this.refs={},this.dynamicAnchors={};let k;typeof w.schema=="object"&&(k=w.schema),this.schema=w.schema,this.schemaId=w.schemaId,this.root=w.root||this,this.baseId=(P=w.baseId)!==null&&P!==void 0?P:(0,o.normalizeId)(k?.[w.schemaId||"$id"]),this.schemaPath=w.schemaPath,this.localRefs=w.localRefs,this.meta=w.meta,this.$async=k?.$async,this.refs={}}}kn.SchemaEnv=i;function c(x){const w=m.call(this,x);if(w)return w;const P=(0,o.getFullPath)(this.opts.uriResolver,x.root.baseId),{es5:k,lines:E}=this.opts.code,{ownProperties:_}=this.opts,D=new t.CodeGen(this.scope,{es5:k,lines:E,ownProperties:_});let R;x.$async&&(R=D.scopeValue("Error",{ref:e.default,code:(0,t._)`require("ajv/dist/runtime/validation_error").default`}));const O=D.scopeName("validate");x.validateName=O;const L={gen:D,allErrors:this.opts.allErrors,data:a.default.data,parentData:a.default.parentData,parentDataProperty:a.default.parentDataProperty,dataNames:[a.default.data],dataPathArr:[t.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:D.scopeValue("schema",this.opts.code.source===!0?{ref:x.schema,code:(0,t.stringify)(x.schema)}:{ref:x.schema}),validateName:O,ValidationError:R,schema:x.schema,schemaEnv:x,rootId:P,baseId:x.baseId||P,schemaPath:t.nil,errSchemaPath:x.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,t._)`""`,opts:this.opts,self:this};let q;try{this._compilations.add(x),(0,r.validateFunctionCode)(L),D.optimize(this.opts.code.optimize);const B=D.toString();q=`${D.scopeRefs(a.default.scope)}return ${B}`,this.opts.code.process&&(q=this.opts.code.process(q,x));const F=new Function(`${a.default.self}`,`${a.default.scope}`,q)(this,this.scope.get());if(this.scope.value(O,{ref:F}),F.errors=null,F.schema=x.schema,F.schemaEnv=x,x.$async&&(F.$async=!0),this.opts.code.source===!0&&(F.source={validateName:O,validateCode:B,scopeValues:D._values}),this.opts.unevaluated){const{props:W,items:ae}=L;F.evaluated={props:W instanceof t.Name?void 0:W,items:ae instanceof t.Name?void 0:ae,dynamicProps:W instanceof t.Name,dynamicItems:ae instanceof t.Name},F.source&&(F.source.evaluated=(0,t.stringify)(F.evaluated))}return x.validate=F,x}catch(B){throw delete x.validate,delete x.validateName,q&&this.logger.error("Error compiling schema, function code:",q),B}finally{this._compilations.delete(x)}}kn.compileSchema=c;function d(x,w,P){var k;P=(0,o.resolveUrl)(this.opts.uriResolver,w,P);const E=x.refs[P];if(E)return E;let _=f.call(this,x,P);if(_===void 0){const D=(k=x.localRefs)===null||k===void 0?void 0:k[P],{schemaId:R}=this.opts;D&&(_=new i({schema:D,schemaId:R,root:x,baseId:w}))}if(_!==void 0)return x.refs[P]=u.call(this,_)}kn.resolveRef=d;function u(x){return(0,o.inlineRef)(x.schema,this.opts.inlineRefs)?x.schema:x.validate?x:c.call(this,x)}function m(x){for(const w of this._compilations)if(h(w,x))return w}kn.getCompilingSchema=m;function h(x,w){return x.schema===w.schema&&x.root===w.root&&x.baseId===w.baseId}function f(x,w){let P;for(;typeof(P=this.refs[w])=="string";)w=P;return P||this.schemas[w]||b.call(this,x,w)}function b(x,w){const P=this.opts.uriResolver.parse(w),k=(0,o._getFullPath)(this.opts.uriResolver,P);let E=(0,o.getFullPath)(this.opts.uriResolver,x.baseId,void 0);if(Object.keys(x.schema).length>0&&k===E)return T.call(this,P,x);const _=(0,o.normalizeId)(k),D=this.refs[_]||this.schemas[_];if(typeof D=="string"){const R=b.call(this,x,D);return typeof R?.schema!="object"?void 0:T.call(this,P,R)}if(typeof D?.schema=="object"){if(D.validate||c.call(this,D),_===(0,o.normalizeId)(w)){const{schema:R}=D,{schemaId:O}=this.opts,L=R[O];return L&&(E=(0,o.resolveUrl)(this.opts.uriResolver,E,L)),new i({schema:R,schemaId:O,root:x,baseId:E})}return T.call(this,P,D)}}kn.resolveSchema=b;const y=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function T(x,{baseId:w,schema:P,root:k}){var E;if(((E=x.fragment)===null||E===void 0?void 0:E[0])!=="/")return;for(const R of x.fragment.slice(1).split("/")){if(typeof P=="boolean")return;const O=P[(0,n.unescapeFragment)(R)];if(O===void 0)return;P=O;const L=typeof P=="object"&&P[this.opts.schemaId];!y.has(R)&&L&&(w=(0,o.resolveUrl)(this.opts.uriResolver,w,L))}let _;if(typeof P!="boolean"&&P.$ref&&!(0,n.schemaHasRulesButRef)(P,this.RULES)){const R=(0,o.resolveUrl)(this.opts.uriResolver,w,P.$ref);_=b.call(this,k,R)}const{schemaId:D}=this.opts;if(_=_||new i({schema:P,schemaId:D,root:k,baseId:w}),_.schema!==_.root.schema)return _}return kn}const kZ="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",_Z="Meta-schema for $data reference (JSON AnySchema extension proposal)",AZ="object",RZ=["$data"],DZ={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},OZ=!1,NZ={$id:kZ,description:_Z,type:AZ,required:RZ,properties:DZ,additionalProperties:OZ};var ag={},Ku={exports:{}},yS,aD;function YL(){if(aD)return yS;aD=1;const t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),e=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function a(f){let b="",y=0,T=0;for(T=0;T<f.length;T++)if(y=f[T].charCodeAt(0),y!==48){if(!(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102))return"";b+=f[T];break}for(T+=1;T<f.length;T++){if(y=f[T].charCodeAt(0),!(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102))return"";b+=f[T]}return b}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function n(f){return f.length=0,!0}function r(f,b,y){if(f.length){const T=a(f);if(T!=="")b.push(T);else return y.error=!0,!1;f.length=0}return!0}function i(f){let b=0;const y={error:!1,address:"",zone:""},T=[],x=[];let w=!1,P=!1,k=r;for(let E=0;E<f.length;E++){const _=f[E];if(!(_==="["||_==="]"))if(_===":"){if(w===!0&&(P=!0),!k(x,T,y))break;if(++b>7){y.error=!0;break}E>0&&f[E-1]===":"&&(w=!0),T.push(":");continue}else if(_==="%"){if(!k(x,T,y))break;k=n}else{x.push(_);continue}}return x.length&&(k===n?y.zone=x.join(""):P?T.push(x.join("")):T.push(a(x))),y.address=T.join(""),y}function c(f){if(d(f,":")<2)return{host:f,isIPV6:!1};const b=i(f);if(b.error)return{host:f,isIPV6:!1};{let y=b.address,T=b.address;return b.zone&&(y+="%"+b.zone,T+="%25"+b.zone),{host:y,isIPV6:!0,escapedHost:T}}}function d(f,b){let y=0;for(let T=0;T<f.length;T++)f[T]===b&&y++;return y}function u(f){let b=f;const y=[];let T=-1,x=0;for(;x=b.length;){if(x===1){if(b===".")break;if(b==="/"){y.push("/");break}else{y.push(b);break}}else if(x===2){if(b[0]==="."){if(b[1]===".")break;if(b[1]==="/"){b=b.slice(2);continue}}else if(b[0]==="/"&&(b[1]==="."||b[1]==="/")){y.push("/");break}}else if(x===3&&b==="/.."){y.length!==0&&y.pop(),y.push("/");break}if(b[0]==="."){if(b[1]==="."){if(b[2]==="/"){b=b.slice(3);continue}}else if(b[1]==="/"){b=b.slice(2);continue}}else if(b[0]==="/"&&b[1]==="."){if(b[2]==="/"){b=b.slice(2);continue}else if(b[2]==="."&&b[3]==="/"){b=b.slice(3),y.length!==0&&y.pop();continue}}if((T=b.indexOf("/",1))===-1){y.push(b);break}else y.push(b.slice(0,T)),b=b.slice(T)}return y.join("")}function m(f,b){const y=b!==!0?escape:unescape;return f.scheme!==void 0&&(f.scheme=y(f.scheme)),f.userinfo!==void 0&&(f.userinfo=y(f.userinfo)),f.host!==void 0&&(f.host=y(f.host)),f.path!==void 0&&(f.path=y(f.path)),f.query!==void 0&&(f.query=y(f.query)),f.fragment!==void 0&&(f.fragment=y(f.fragment)),f}function h(f){const b=[];if(f.userinfo!==void 0&&(b.push(f.userinfo),b.push("@")),f.host!==void 0){let y=unescape(f.host);if(!e(y)){const T=c(y);T.isIPV6===!0?y=`[${T.escapedHost}]`:y=f.host}b.push(y)}return(typeof f.port=="number"||typeof f.port=="string")&&(b.push(":"),b.push(String(f.port))),b.length?b.join(""):void 0}return yS={nonSimpleDomain:o,recomposeAuthority:h,normalizeComponentEncoding:m,removeDotSegments:u,isIPv4:e,isUUID:t,normalizeIPv6:c,stringArrayToHexStripped:a},yS}var TS,oD;function MZ(){if(oD)return TS;oD=1;const{isUUID:t}=YL(),e=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,a=["http","https","ws","wss","urn","urn:uuid"];function o(_){return a.indexOf(_)!==-1}function n(_){return _.secure===!0?!0:_.secure===!1?!1:_.scheme?_.scheme.length===3&&(_.scheme[0]==="w"||_.scheme[0]==="W")&&(_.scheme[1]==="s"||_.scheme[1]==="S")&&(_.scheme[2]==="s"||_.scheme[2]==="S"):!1}function r(_){return _.host||(_.error=_.error||"HTTP URIs must have a host."),_}function i(_){const D=String(_.scheme).toLowerCase()==="https";return(_.port===(D?443:80)||_.port==="")&&(_.port=void 0),_.path||(_.path="/"),_}function c(_){return _.secure=n(_),_.resourceName=(_.path||"/")+(_.query?"?"+_.query:""),_.path=void 0,_.query=void 0,_}function d(_){if((_.port===(n(_)?443:80)||_.port==="")&&(_.port=void 0),typeof _.secure=="boolean"&&(_.scheme=_.secure?"wss":"ws",_.secure=void 0),_.resourceName){const[D,R]=_.resourceName.split("?");_.path=D&&D!=="/"?D:void 0,_.query=R,_.resourceName=void 0}return _.fragment=void 0,_}function u(_,D){if(!_.path)return _.error="URN can not be parsed",_;const R=_.path.match(e);if(R){const O=D.scheme||_.scheme||"urn";_.nid=R[1].toLowerCase(),_.nss=R[2];const L=`${O}:${D.nid||_.nid}`,q=E(L);_.path=void 0,q&&(_=q.parse(_,D))}else _.error=_.error||"URN can not be parsed.";return _}function m(_,D){if(_.nid===void 0)throw new Error("URN without nid cannot be serialized");const R=D.scheme||_.scheme||"urn",O=_.nid.toLowerCase(),L=`${R}:${D.nid||O}`,q=E(L);q&&(_=q.serialize(_,D));const B=_,z=_.nss;return B.path=`${O||D.nid}:${z}`,D.skipEscape=!0,B}function h(_,D){const R=_;return R.uuid=R.nss,R.nss=void 0,!D.tolerant&&(!R.uuid||!t(R.uuid))&&(R.error=R.error||"UUID is not valid."),R}function f(_){const D=_;return D.nss=(_.uuid||"").toLowerCase(),D}const b={scheme:"http",domainHost:!0,parse:r,serialize:i},y={scheme:"https",domainHost:b.domainHost,parse:r,serialize:i},T={scheme:"ws",domainHost:!0,parse:c,serialize:d},x={scheme:"wss",domainHost:T.domainHost,parse:T.parse,serialize:T.serialize},k={http:b,https:y,ws:T,wss:x,urn:{scheme:"urn",parse:u,serialize:m,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:h,serialize:f,skipNormalize:!0}};Object.setPrototypeOf(k,null);function E(_){return _&&(k[_]||k[_.toLowerCase()])||void 0}return TS={wsIsSecure:n,SCHEMES:k,isValidSchemeName:o,getSchemeHandler:E},TS}var nD;function IZ(){if(nD)return Ku.exports;nD=1;const{normalizeIPv6:t,removeDotSegments:e,recomposeAuthority:a,normalizeComponentEncoding:o,isIPv4:n,nonSimpleDomain:r}=YL(),{SCHEMES:i,getSchemeHandler:c}=MZ();function d(x,w){return typeof x=="string"?x=f(y(x,w),w):typeof x=="object"&&(x=y(f(x,w),w)),x}function u(x,w,P){const k=P?Object.assign({scheme:"null"},P):{scheme:"null"},E=m(y(x,k),y(w,k),k,!0);return k.skipEscape=!0,f(E,k)}function m(x,w,P,k){const E={};return k||(x=y(f(x,P),P),w=y(f(w,P),P)),P=P||{},!P.tolerant&&w.scheme?(E.scheme=w.scheme,E.userinfo=w.userinfo,E.host=w.host,E.port=w.port,E.path=e(w.path||""),E.query=w.query):(w.userinfo!==void 0||w.host!==void 0||w.port!==void 0?(E.userinfo=w.userinfo,E.host=w.host,E.port=w.port,E.path=e(w.path||""),E.query=w.query):(w.path?(w.path[0]==="/"?E.path=e(w.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?E.path="/"+w.path:x.path?E.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+w.path:E.path=w.path,E.path=e(E.path)),E.query=w.query):(E.path=x.path,w.query!==void 0?E.query=w.query:E.query=x.query),E.userinfo=x.userinfo,E.host=x.host,E.port=x.port),E.scheme=x.scheme),E.fragment=w.fragment,E}function h(x,w,P){return typeof x=="string"?(x=unescape(x),x=f(o(y(x,P),!0),{...P,skipEscape:!0})):typeof x=="object"&&(x=f(o(x,!0),{...P,skipEscape:!0})),typeof w=="string"?(w=unescape(w),w=f(o(y(w,P),!0),{...P,skipEscape:!0})):typeof w=="object"&&(w=f(o(w,!0),{...P,skipEscape:!0})),x.toLowerCase()===w.toLowerCase()}function f(x,w){const P={host:x.host,scheme:x.scheme,userinfo:x.userinfo,port:x.port,path:x.path,query:x.query,nid:x.nid,nss:x.nss,uuid:x.uuid,fragment:x.fragment,reference:x.reference,resourceName:x.resourceName,secure:x.secure,error:""},k=Object.assign({},w),E=[],_=c(k.scheme||P.scheme);_&&_.serialize&&_.serialize(P,k),P.path!==void 0&&(k.skipEscape?P.path=unescape(P.path):(P.path=escape(P.path),P.scheme!==void 0&&(P.path=P.path.split("%3A").join(":")))),k.reference!=="suffix"&&P.scheme&&E.push(P.scheme,":");const D=a(P);if(D!==void 0&&(k.reference!=="suffix"&&E.push("//"),E.push(D),P.path&&P.path[0]!=="/"&&E.push("/")),P.path!==void 0){let R=P.path;!k.absolutePath&&(!_||!_.absolutePath)&&(R=e(R)),D===void 0&&R[0]==="/"&&R[1]==="/"&&(R="/%2F"+R.slice(2)),E.push(R)}return P.query!==void 0&&E.push("?",P.query),P.fragment!==void 0&&E.push("#",P.fragment),E.join("")}const b=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function y(x,w){const P=Object.assign({},w),k={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let E=!1;P.reference==="suffix"&&(P.scheme?x=P.scheme+":"+x:x="//"+x);const _=x.match(b);if(_){if(k.scheme=_[1],k.userinfo=_[3],k.host=_[4],k.port=parseInt(_[5],10),k.path=_[6]||"",k.query=_[7],k.fragment=_[8],isNaN(k.port)&&(k.port=_[5]),k.host)if(n(k.host)===!1){const O=t(k.host);k.host=O.host.toLowerCase(),E=O.isIPV6}else E=!0;k.scheme===void 0&&k.userinfo===void 0&&k.host===void 0&&k.port===void 0&&k.query===void 0&&!k.path?k.reference="same-document":k.scheme===void 0?k.reference="relative":k.fragment===void 0?k.reference="absolute":k.reference="uri",P.reference&&P.reference!=="suffix"&&P.reference!==k.reference&&(k.error=k.error||"URI is not a "+P.reference+" reference.");const D=c(P.scheme||k.scheme);if(!P.unicodeSupport&&(!D||!D.unicodeSupport)&&k.host&&(P.domainHost||D&&D.domainHost)&&E===!1&&r(k.host))try{k.host=URL.domainToASCII(k.host.toLowerCase())}catch(R){k.error=k.error||"Host's domain name can not be converted to ASCII: "+R}(!D||D&&!D.skipNormalize)&&(x.indexOf("%")!==-1&&(k.scheme!==void 0&&(k.scheme=unescape(k.scheme)),k.host!==void 0&&(k.host=unescape(k.host))),k.path&&(k.path=escape(unescape(k.path))),k.fragment&&(k.fragment=encodeURI(decodeURIComponent(k.fragment)))),D&&D.parse&&D.parse(k,P)}else k.error=k.error||"URI can not be parsed.";return k}const T={SCHEMES:i,normalize:d,resolve:u,resolveComponent:m,equal:h,serialize:f,parse:y};return Ku.exports=T,Ku.exports.default=T,Ku.exports.fastUri=T,Ku.exports}var rD;function LZ(){if(rD)return ag;rD=1,Object.defineProperty(ag,"__esModule",{value:!0});const t=IZ();return t.code='require("ajv/dist/runtime/uri").default',ag.default=t,ag}var sD;function BZ(){return sD||(sD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var e=ev();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var a=Tt();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return a.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return a.CodeGen}});const o=zP(),n=tv(),r=GL(),i=UP(),c=Tt(),d=Xb(),u=Kf(),m=Ft(),h=NZ,f=LZ(),b=(Q,M)=>new RegExp(Q,M);b.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"],T=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},w={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},P=200;function k(Q){var M,G,V,I,j,X,de,ue,Ee,Ue,Z,ne,be,ie,xe,ke,it,ct,Ge,ot,Ne,Oe,He,Y,oe;const le=Q.strict,Ce=(M=Q.code)===null||M===void 0?void 0:M.optimize,Ae=Ce===!0||Ce===void 0?1:Ce||0,Re=(V=(G=Q.code)===null||G===void 0?void 0:G.regExp)!==null&&V!==void 0?V:b,Be=(I=Q.uriResolver)!==null&&I!==void 0?I:f.default;return{strictSchema:(X=(j=Q.strictSchema)!==null&&j!==void 0?j:le)!==null&&X!==void 0?X:!0,strictNumbers:(ue=(de=Q.strictNumbers)!==null&&de!==void 0?de:le)!==null&&ue!==void 0?ue:!0,strictTypes:(Ue=(Ee=Q.strictTypes)!==null&&Ee!==void 0?Ee:le)!==null&&Ue!==void 0?Ue:"log",strictTuples:(ne=(Z=Q.strictTuples)!==null&&Z!==void 0?Z:le)!==null&&ne!==void 0?ne:"log",strictRequired:(ie=(be=Q.strictRequired)!==null&&be!==void 0?be:le)!==null&&ie!==void 0?ie:!1,code:Q.code?{...Q.code,optimize:Ae,regExp:Re}:{optimize:Ae,regExp:Re},loopRequired:(xe=Q.loopRequired)!==null&&xe!==void 0?xe:P,loopEnum:(ke=Q.loopEnum)!==null&&ke!==void 0?ke:P,meta:(it=Q.meta)!==null&&it!==void 0?it:!0,messages:(ct=Q.messages)!==null&&ct!==void 0?ct:!0,inlineRefs:(Ge=Q.inlineRefs)!==null&&Ge!==void 0?Ge:!0,schemaId:(ot=Q.schemaId)!==null&&ot!==void 0?ot:"$id",addUsedSchema:(Ne=Q.addUsedSchema)!==null&&Ne!==void 0?Ne:!0,validateSchema:(Oe=Q.validateSchema)!==null&&Oe!==void 0?Oe:!0,validateFormats:(He=Q.validateFormats)!==null&&He!==void 0?He:!0,unicodeRegExp:(Y=Q.unicodeRegExp)!==null&&Y!==void 0?Y:!0,int32range:(oe=Q.int32range)!==null&&oe!==void 0?oe:!0,uriResolver:Be}}class E{constructor(M={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,M=this.opts={...M,...k(M)};const{es5:G,lines:V}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:T,es5:G,lines:V}),this.logger=z(M.logger);const I=M.validateFormats;M.validateFormats=!1,this.RULES=(0,r.getRules)(),_.call(this,x,M,"NOT SUPPORTED"),_.call(this,w,M,"DEPRECATED","warn"),this._metaOpts=q.call(this),M.formats&&O.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),M.keywords&&L.call(this,M.keywords),typeof M.meta=="object"&&this.addMetaSchema(M.meta),R.call(this),M.validateFormats=I}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:M,meta:G,schemaId:V}=this.opts;let I=h;V==="id"&&(I={...h},I.id=I.$id,delete I.$id),G&&M&&this.addMetaSchema(I,I[V],!1)}defaultMeta(){const{meta:M,schemaId:G}=this.opts;return this.opts.defaultMeta=typeof M=="object"?M[G]||M:void 0}validate(M,G){let V;if(typeof M=="string"){if(V=this.getSchema(M),!V)throw new Error(`no schema with key or ref "${M}"`)}else V=this.compile(M);const I=V(G);return"$async"in V||(this.errors=V.errors),I}compile(M,G){const V=this._addSchema(M,G);return V.validate||this._compileSchemaEnv(V)}compileAsync(M,G){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:V}=this.opts;return I.call(this,M,G);async function I(Ue,Z){await j.call(this,Ue.$schema);const ne=this._addSchema(Ue,Z);return ne.validate||X.call(this,ne)}async function j(Ue){Ue&&!this.getSchema(Ue)&&await I.call(this,{$ref:Ue},!0)}async function X(Ue){try{return this._compileSchemaEnv(Ue)}catch(Z){if(!(Z instanceof n.default))throw Z;return de.call(this,Z),await ue.call(this,Z.missingSchema),X.call(this,Ue)}}function de({missingSchema:Ue,missingRef:Z}){if(this.refs[Ue])throw new Error(`AnySchema ${Ue} is loaded but ${Z} cannot be resolved`)}async function ue(Ue){const Z=await Ee.call(this,Ue);this.refs[Ue]||await j.call(this,Z.$schema),this.refs[Ue]||this.addSchema(Z,Ue,G)}async function Ee(Ue){const Z=this._loading[Ue];if(Z)return Z;try{return await(this._loading[Ue]=V(Ue))}finally{delete this._loading[Ue]}}}addSchema(M,G,V,I=this.opts.validateSchema){if(Array.isArray(M)){for(const X of M)this.addSchema(X,void 0,V,I);return this}let j;if(typeof M=="object"){const{schemaId:X}=this.opts;if(j=M[X],j!==void 0&&typeof j!="string")throw new Error(`schema ${X} must be string`)}return G=(0,d.normalizeId)(G||j),this._checkUnique(G),this.schemas[G]=this._addSchema(M,V,G,I,!0),this}addMetaSchema(M,G,V=this.opts.validateSchema){return this.addSchema(M,G,!0,V),this}validateSchema(M,G){if(typeof M=="boolean")return!0;let V;if(V=M.$schema,V!==void 0&&typeof V!="string")throw new Error("$schema must be a string");if(V=V||this.opts.defaultMeta||this.defaultMeta(),!V)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const I=this.validate(V,M);if(!I&&G){const j="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(j);else throw new Error(j)}return I}getSchema(M){let G;for(;typeof(G=D.call(this,M))=="string";)M=G;if(G===void 0){const{schemaId:V}=this.opts,I=new i.SchemaEnv({schema:{},schemaId:V});if(G=i.resolveSchema.call(this,I,M),!G)return;this.refs[M]=G}return G.validate||this._compileSchemaEnv(G)}removeSchema(M){if(M instanceof RegExp)return this._removeAllSchemas(this.schemas,M),this._removeAllSchemas(this.refs,M),this;switch(typeof M){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const G=D.call(this,M);return typeof G=="object"&&this._cache.delete(G.schema),delete this.schemas[M],delete this.refs[M],this}case"object":{const G=M;this._cache.delete(G);let V=M[this.opts.schemaId];return V&&(V=(0,d.normalizeId)(V),delete this.schemas[V],delete this.refs[V]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(M){for(const G of M)this.addKeyword(G);return this}addKeyword(M,G){let V;if(typeof M=="string")V=M,typeof G=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),G.keyword=V);else if(typeof M=="object"&&G===void 0){if(G=M,V=G.keyword,Array.isArray(V)&&!V.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(W.call(this,V,G),!G)return(0,m.eachItem)(V,j=>ae.call(this,j)),this;K.call(this,G);const I={...G,type:(0,u.getJSONTypes)(G.type),schemaType:(0,u.getJSONTypes)(G.schemaType)};return(0,m.eachItem)(V,I.type.length===0?j=>ae.call(this,j,I):j=>I.type.forEach(X=>ae.call(this,j,I,X))),this}getKeyword(M){const G=this.RULES.all[M];return typeof G=="object"?G.definition:!!G}removeKeyword(M){const{RULES:G}=this;delete G.keywords[M],delete G.all[M];for(const V of G.rules){const I=V.rules.findIndex(j=>j.keyword===M);I>=0&&V.rules.splice(I,1)}return this}addFormat(M,G){return typeof G=="string"&&(G=new RegExp(G)),this.formats[M]=G,this}errorsText(M=this.errors,{separator:G=", ",dataVar:V="data"}={}){return!M||M.length===0?"No errors":M.map(I=>`${V}${I.instancePath} ${I.message}`).reduce((I,j)=>I+G+j)}$dataMetaSchema(M,G){const V=this.RULES.all;M=JSON.parse(JSON.stringify(M));for(const I of G){const j=I.split("/").slice(1);let X=M;for(const de of j)X=X[de];for(const de in V){const ue=V[de];if(typeof ue!="object")continue;const{$data:Ee}=ue.definition,Ue=X[de];Ee&&Ue&&(X[de]=se(Ue))}}return M}_removeAllSchemas(M,G){for(const V in M){const I=M[V];(!G||G.test(V))&&(typeof I=="string"?delete M[V]:I&&!I.meta&&(this._cache.delete(I.schema),delete M[V]))}}_addSchema(M,G,V,I=this.opts.validateSchema,j=this.opts.addUsedSchema){let X;const{schemaId:de}=this.opts;if(typeof M=="object")X=M[de];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof M!="boolean")throw new Error("schema must be object or boolean")}let ue=this._cache.get(M);if(ue!==void 0)return ue;V=(0,d.normalizeId)(X||V);const Ee=d.getSchemaRefs.call(this,M,V);return ue=new i.SchemaEnv({schema:M,schemaId:de,meta:G,baseId:V,localRefs:Ee}),this._cache.set(ue.schema,ue),j&&!V.startsWith("#")&&(V&&this._checkUnique(V),this.refs[V]=ue),I&&this.validateSchema(M,!0),ue}_checkUnique(M){if(this.schemas[M]||this.refs[M])throw new Error(`schema with key or id "${M}" already exists`)}_compileSchemaEnv(M){if(M.meta?this._compileMetaSchema(M):i.compileSchema.call(this,M),!M.validate)throw new Error("ajv implementation error");return M.validate}_compileMetaSchema(M){const G=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,M)}finally{this.opts=G}}}E.ValidationError=o.default,E.MissingRefError=n.default,t.default=E;function _(Q,M,G,V="error"){for(const I in Q){const j=I;j in M&&this.logger[V](`${G}: option ${I}. ${Q[j]}`)}}function D(Q){return Q=(0,d.normalizeId)(Q),this.schemas[Q]||this.refs[Q]}function R(){const Q=this.opts.schemas;if(Q)if(Array.isArray(Q))this.addSchema(Q);else for(const M in Q)this.addSchema(Q[M],M)}function O(){for(const Q in this.opts.formats){const M=this.opts.formats[Q];M&&this.addFormat(Q,M)}}function L(Q){if(Array.isArray(Q)){this.addVocabulary(Q);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const M in Q){const G=Q[M];G.keyword||(G.keyword=M),this.addKeyword(G)}}function q(){const Q={...this.opts};for(const M of y)delete Q[M];return Q}const B={log(){},warn(){},error(){}};function z(Q){if(Q===!1)return B;if(Q===void 0)return console;if(Q.log&&Q.warn&&Q.error)return Q;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function W(Q,M){const{RULES:G}=this;if((0,m.eachItem)(Q,V=>{if(G.keywords[V])throw new Error(`Keyword ${V} is already defined`);if(!F.test(V))throw new Error(`Keyword ${V} has invalid name`)}),!!M&&M.$data&&!("code"in M||"validate"in M))throw new Error('$data keyword must have "code" or "validate" function')}function ae(Q,M,G){var V;const I=M?.post;if(G&&I)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:j}=this;let X=I?j.post:j.rules.find(({type:ue})=>ue===G);if(X||(X={type:G,rules:[]},j.rules.push(X)),j.keywords[Q]=!0,!M)return;const de={keyword:Q,definition:{...M,type:(0,u.getJSONTypes)(M.type),schemaType:(0,u.getJSONTypes)(M.schemaType)}};M.before?H.call(this,X,de,M.before):X.rules.push(de),j.all[Q]=de,(V=M.implements)===null||V===void 0||V.forEach(ue=>this.addKeyword(ue))}function H(Q,M,G){const V=Q.rules.findIndex(I=>I.keyword===G);V>=0?Q.rules.splice(V,0,M):(Q.rules.push(M),this.logger.warn(`rule ${G} is not defined`))}function K(Q){let{metaSchema:M}=Q;M!==void 0&&(Q.$data&&this.opts.$data&&(M=se(M)),Q.validateSchema=this.compile(M,!0))}const J={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function se(Q){return{anyOf:[Q,J]}}})(pS)),pS}var og={},ng={},rg={},iD;function FZ(){if(iD)return rg;iD=1,Object.defineProperty(rg,"__esModule",{value:!0});const t={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return rg.default=t,rg}var hi={},lD;function jZ(){if(lD)return hi;lD=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.callRef=hi.getValidate=void 0;const t=tv(),e=Dr(),a=Tt(),o=Yi(),n=UP(),r=Ft(),i={keyword:"$ref",schemaType:"string",code(u){const{gen:m,schema:h,it:f}=u,{baseId:b,schemaEnv:y,validateName:T,opts:x,self:w}=f,{root:P}=y;if((h==="#"||h==="#/")&&b===P.baseId)return E();const k=n.resolveRef.call(w,P,b,h);if(k===void 0)throw new t.default(f.opts.uriResolver,b,h);if(k instanceof n.SchemaEnv)return _(k);return D(k);function E(){if(y===P)return d(u,T,y,y.$async);const R=m.scopeValue("root",{ref:P});return d(u,(0,a._)`${R}.validate`,P,P.$async)}function _(R){const O=c(u,R);d(u,O,R,R.$async)}function D(R){const O=m.scopeValue("schema",x.code.source===!0?{ref:R,code:(0,a.stringify)(R)}:{ref:R}),L=m.name("valid"),q=u.subschema({schema:R,dataTypes:[],schemaPath:a.nil,topSchemaRef:O,errSchemaPath:h},L);u.mergeEvaluated(q),u.ok(L)}}};function c(u,m){const{gen:h}=u;return m.validate?h.scopeValue("validate",{ref:m.validate}):(0,a._)`${h.scopeValue("wrapper",{ref:m})}.validate`}hi.getValidate=c;function d(u,m,h,f){const{gen:b,it:y}=u,{allErrors:T,schemaEnv:x,opts:w}=y,P=w.passContext?o.default.this:a.nil;f?k():E();function k(){if(!x.$async)throw new Error("async schema referenced by sync schema");const R=b.let("valid");b.try(()=>{b.code((0,a._)`await ${(0,e.callValidateCode)(u,m,P)}`),D(m),T||b.assign(R,!0)},O=>{b.if((0,a._)`!(${O} instanceof ${y.ValidationError})`,()=>b.throw(O)),_(O),T||b.assign(R,!1)}),u.ok(R)}function E(){u.result((0,e.callValidateCode)(u,m,P),()=>D(m),()=>_(m))}function _(R){const O=(0,a._)`${R}.errors`;b.assign(o.default.vErrors,(0,a._)`${o.default.vErrors} === null ? ${O} : ${o.default.vErrors}.concat(${O})`),b.assign(o.default.errors,(0,a._)`${o.default.vErrors}.length`)}function D(R){var O;if(!y.opts.unevaluated)return;const L=(O=h?.validate)===null||O===void 0?void 0:O.evaluated;if(y.props!==!0)if(L&&!L.dynamicProps)L.props!==void 0&&(y.props=r.mergeEvaluated.props(b,L.props,y.props));else{const q=b.var("props",(0,a._)`${R}.evaluated.props`);y.props=r.mergeEvaluated.props(b,q,y.props,a.Name)}if(y.items!==!0)if(L&&!L.dynamicItems)L.items!==void 0&&(y.items=r.mergeEvaluated.items(b,L.items,y.items));else{const q=b.var("items",(0,a._)`${R}.evaluated.items`);y.items=r.mergeEvaluated.items(b,q,y.items,a.Name)}}}return hi.callRef=d,hi.default=i,hi}var cD;function zZ(){if(cD)return ng;cD=1,Object.defineProperty(ng,"__esModule",{value:!0});const t=FZ(),e=jZ(),a=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",t.default,e.default];return ng.default=a,ng}var sg={},ig={},dD;function UZ(){if(dD)return ig;dD=1,Object.defineProperty(ig,"__esModule",{value:!0});const t=Tt(),e=t.operators,a={maximum:{okStr:"<=",ok:e.LTE,fail:e.GT},minimum:{okStr:">=",ok:e.GTE,fail:e.LT},exclusiveMaximum:{okStr:"<",ok:e.LT,fail:e.GTE},exclusiveMinimum:{okStr:">",ok:e.GT,fail:e.LTE}},o={message:({keyword:r,schemaCode:i})=>(0,t.str)`must be ${a[r].okStr} ${i}`,params:({keyword:r,schemaCode:i})=>(0,t._)`{comparison: ${a[r].okStr}, limit: ${i}}`},n={keyword:Object.keys(a),type:"number",schemaType:"number",$data:!0,error:o,code(r){const{keyword:i,data:c,schemaCode:d}=r;r.fail$data((0,t._)`${c} ${a[i].fail} ${d} || isNaN(${c})`)}};return ig.default=n,ig}var lg={},uD;function qZ(){if(uD)return lg;uD=1,Object.defineProperty(lg,"__esModule",{value:!0});const t=Tt(),a={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:o})=>(0,t.str)`must be multiple of ${o}`,params:({schemaCode:o})=>(0,t._)`{multipleOf: ${o}}`},code(o){const{gen:n,data:r,schemaCode:i,it:c}=o,d=c.opts.multipleOfPrecision,u=n.let("res"),m=d?(0,t._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${d}`:(0,t._)`${u} !== parseInt(${u})`;o.fail$data((0,t._)`(${i} === 0 || (${u} = ${r}/${i}, ${m}))`)}};return lg.default=a,lg}var cg={},dg={},pD;function $Z(){if(pD)return dg;pD=1,Object.defineProperty(dg,"__esModule",{value:!0});function t(e){const a=e.length;let o=0,n=0,r;for(;n<a;)o++,r=e.charCodeAt(n++),r>=55296&&r<=56319&&n<a&&(r=e.charCodeAt(n),(r&64512)===56320&&n++);return o}return dg.default=t,t.code='require("ajv/dist/runtime/ucs2length").default',dg}var mD;function VZ(){if(mD)return cg;mD=1,Object.defineProperty(cg,"__esModule",{value:!0});const t=Tt(),e=Ft(),a=$Z(),n={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:i}){const c=r==="maxLength"?"more":"fewer";return(0,t.str)`must NOT have ${c} than ${i} characters`},params:({schemaCode:r})=>(0,t._)`{limit: ${r}}`},code(r){const{keyword:i,data:c,schemaCode:d,it:u}=r,m=i==="maxLength"?t.operators.GT:t.operators.LT,h=u.opts.unicode===!1?(0,t._)`${c}.length`:(0,t._)`${(0,e.useFunc)(r.gen,a.default)}(${c})`;r.fail$data((0,t._)`${h} ${m} ${d}`)}};return cg.default=n,cg}var ug={},hD;function HZ(){if(hD)return ug;hD=1,Object.defineProperty(ug,"__esModule",{value:!0});const t=Dr(),e=Ft(),a=Tt(),n={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,a.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,a._)`{pattern: ${r}}`},code(r){const{gen:i,data:c,$data:d,schema:u,schemaCode:m,it:h}=r,f=h.opts.unicodeRegExp?"u":"";if(d){const{regExp:b}=h.opts.code,y=b.code==="new RegExp"?(0,a._)`new RegExp`:(0,e.useFunc)(i,b),T=i.let("valid");i.try(()=>i.assign(T,(0,a._)`${y}(${m}, ${f}).test(${c})`),()=>i.assign(T,!1)),r.fail$data((0,a._)`!${T}`)}else{const b=(0,t.usePattern)(r,u);r.fail$data((0,a._)`!${b}.test(${c})`)}}};return ug.default=n,ug}var pg={},gD;function GZ(){if(gD)return pg;gD=1,Object.defineProperty(pg,"__esModule",{value:!0});const t=Tt(),a={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:n}){const r=o==="maxProperties"?"more":"fewer";return(0,t.str)`must NOT have ${r} than ${n} properties`},params:({schemaCode:o})=>(0,t._)`{limit: ${o}}`},code(o){const{keyword:n,data:r,schemaCode:i}=o,c=n==="maxProperties"?t.operators.GT:t.operators.LT;o.fail$data((0,t._)`Object.keys(${r}).length ${c} ${i}`)}};return pg.default=a,pg}var mg={},fD;function WZ(){if(fD)return mg;fD=1,Object.defineProperty(mg,"__esModule",{value:!0});const t=Dr(),e=Tt(),a=Ft(),n={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:r}})=>(0,e.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,e._)`{missingProperty: ${r}}`},code(r){const{gen:i,schema:c,schemaCode:d,data:u,$data:m,it:h}=r,{opts:f}=h;if(!m&&c.length===0)return;const b=c.length>=f.loopRequired;if(h.allErrors?y():T(),f.strictRequired){const P=r.parentSchema.properties,{definedProperties:k}=r.it;for(const E of c)if(P?.[E]===void 0&&!k.has(E)){const _=h.schemaEnv.baseId+h.errSchemaPath,D=`required property "${E}" is not defined at "${_}" (strictRequired)`;(0,a.checkStrictMode)(h,D,h.opts.strictRequired)}}function y(){if(b||m)r.block$data(e.nil,x);else for(const P of c)(0,t.checkReportMissingProp)(r,P)}function T(){const P=i.let("missing");if(b||m){const k=i.let("valid",!0);r.block$data(k,()=>w(P,k)),r.ok(k)}else i.if((0,t.checkMissingProp)(r,c,P)),(0,t.reportMissingProp)(r,P),i.else()}function x(){i.forOf("prop",d,P=>{r.setParams({missingProperty:P}),i.if((0,t.noPropertyInData)(i,u,P,f.ownProperties),()=>r.error())})}function w(P,k){r.setParams({missingProperty:P}),i.forOf(P,d,()=>{i.assign(k,(0,t.propertyInData)(i,u,P,f.ownProperties)),i.if((0,e.not)(k),()=>{r.error(),i.break()})},e.nil)}}};return mg.default=n,mg}var hg={},bD;function KZ(){if(bD)return hg;bD=1,Object.defineProperty(hg,"__esModule",{value:!0});const t=Tt(),a={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:n}){const r=o==="maxItems"?"more":"fewer";return(0,t.str)`must NOT have ${r} than ${n} items`},params:({schemaCode:o})=>(0,t._)`{limit: ${o}}`},code(o){const{keyword:n,data:r,schemaCode:i}=o,c=n==="maxItems"?t.operators.GT:t.operators.LT;o.fail$data((0,t._)`${r}.length ${c} ${i}`)}};return hg.default=a,hg}var gg={},fg={},vD;function qP(){if(vD)return fg;vD=1,Object.defineProperty(fg,"__esModule",{value:!0});const t=KL();return t.code='require("ajv/dist/runtime/equal").default',fg.default=t,fg}var yD;function YZ(){if(yD)return gg;yD=1,Object.defineProperty(gg,"__esModule",{value:!0});const t=Kf(),e=Tt(),a=Ft(),o=qP(),r={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i,j:c}})=>(0,e.str)`must NOT have duplicate items (items ## ${c} and ${i} are identical)`,params:({params:{i,j:c}})=>(0,e._)`{i: ${i}, j: ${c}}`},code(i){const{gen:c,data:d,$data:u,schema:m,parentSchema:h,schemaCode:f,it:b}=i;if(!u&&!m)return;const y=c.let("valid"),T=h.items?(0,t.getSchemaTypes)(h.items):[];i.block$data(y,x,(0,e._)`${f} === false`),i.ok(y);function x(){const E=c.let("i",(0,e._)`${d}.length`),_=c.let("j");i.setParams({i:E,j:_}),c.assign(y,!0),c.if((0,e._)`${E} > 1`,()=>(w()?P:k)(E,_))}function w(){return T.length>0&&!T.some(E=>E==="object"||E==="array")}function P(E,_){const D=c.name("item"),R=(0,t.checkDataTypes)(T,D,b.opts.strictNumbers,t.DataType.Wrong),O=c.const("indices",(0,e._)`{}`);c.for((0,e._)`;${E}--;`,()=>{c.let(D,(0,e._)`${d}[${E}]`),c.if(R,(0,e._)`continue`),T.length>1&&c.if((0,e._)`typeof ${D} == "string"`,(0,e._)`${D} += "_"`),c.if((0,e._)`typeof ${O}[${D}] == "number"`,()=>{c.assign(_,(0,e._)`${O}[${D}]`),i.error(),c.assign(y,!1).break()}).code((0,e._)`${O}[${D}] = ${E}`)})}function k(E,_){const D=(0,a.useFunc)(c,o.default),R=c.name("outer");c.label(R).for((0,e._)`;${E}--;`,()=>c.for((0,e._)`${_} = ${E}; ${_}--;`,()=>c.if((0,e._)`${D}(${d}[${E}], ${d}[${_}])`,()=>{i.error(),c.assign(y,!1).break(R)})))}}};return gg.default=r,gg}var bg={},TD;function ZZ(){if(TD)return bg;TD=1,Object.defineProperty(bg,"__esModule",{value:!0});const t=Tt(),e=Ft(),a=qP(),n={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:r})=>(0,t._)`{allowedValue: ${r}}`},code(r){const{gen:i,data:c,$data:d,schemaCode:u,schema:m}=r;d||m&&typeof m=="object"?r.fail$data((0,t._)`!${(0,e.useFunc)(i,a.default)}(${c}, ${u})`):r.fail((0,t._)`${m} !== ${c}`)}};return bg.default=n,bg}var vg={},SD;function QZ(){if(SD)return vg;SD=1,Object.defineProperty(vg,"__esModule",{value:!0});const t=Tt(),e=Ft(),a=qP(),n={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,t._)`{allowedValues: ${r}}`},code(r){const{gen:i,data:c,$data:d,schema:u,schemaCode:m,it:h}=r;if(!d&&u.length===0)throw new Error("enum must have non-empty array");const f=u.length>=h.opts.loopEnum;let b;const y=()=>b??(b=(0,e.useFunc)(i,a.default));let T;if(f||d)T=i.let("valid"),r.block$data(T,x);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const P=i.const("vSchema",m);T=(0,t.or)(...u.map((k,E)=>w(P,E)))}r.pass(T);function x(){i.assign(T,!1),i.forOf("v",m,P=>i.if((0,t._)`${y()}(${c}, ${P})`,()=>i.assign(T,!0).break()))}function w(P,k){const E=u[k];return typeof E=="object"&&E!==null?(0,t._)`${y()}(${c}, ${P}[${k}])`:(0,t._)`${c} === ${E}`}}};return vg.default=n,vg}var wD;function JZ(){if(wD)return sg;wD=1,Object.defineProperty(sg,"__esModule",{value:!0});const t=UZ(),e=qZ(),a=VZ(),o=HZ(),n=GZ(),r=WZ(),i=KZ(),c=YZ(),d=ZZ(),u=QZ(),m=[t.default,e.default,a.default,o.default,n.default,r.default,i.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,u.default];return sg.default=m,sg}var yg={},$c={},xD;function ZL(){if(xD)return $c;xD=1,Object.defineProperty($c,"__esModule",{value:!0}),$c.validateAdditionalItems=void 0;const t=Tt(),e=Ft(),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:r}})=>(0,t.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,t._)`{limit: ${r}}`},code(r){const{parentSchema:i,it:c}=r,{items:d}=i;if(!Array.isArray(d)){(0,e.checkStrictMode)(c,'"additionalItems" is ignored when "items" is not an array of schemas');return}n(r,d)}};function n(r,i){const{gen:c,schema:d,data:u,keyword:m,it:h}=r;h.items=!0;const f=c.const("len",(0,t._)`${u}.length`);if(d===!1)r.setParams({len:i.length}),r.pass((0,t._)`${f} <= ${i.length}`);else if(typeof d=="object"&&!(0,e.alwaysValidSchema)(h,d)){const y=c.var("valid",(0,t._)`${f} <= ${i.length}`);c.if((0,t.not)(y),()=>b(y)),r.ok(y)}function b(y){c.forRange("i",i.length,f,T=>{r.subschema({keyword:m,dataProp:T,dataPropType:e.Type.Num},y),h.allErrors||c.if((0,t.not)(y),()=>c.break())})}}return $c.validateAdditionalItems=n,$c.default=o,$c}var Tg={},Vc={},PD;function QL(){if(PD)return Vc;PD=1,Object.defineProperty(Vc,"__esModule",{value:!0}),Vc.validateTuple=void 0;const t=Tt(),e=Ft(),a=Dr(),o={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){const{schema:i,it:c}=r;if(Array.isArray(i))return n(r,"additionalItems",i);c.items=!0,!(0,e.alwaysValidSchema)(c,i)&&r.ok((0,a.validateArray)(r))}};function n(r,i,c=r.schema){const{gen:d,parentSchema:u,data:m,keyword:h,it:f}=r;T(u),f.opts.unevaluated&&c.length&&f.items!==!0&&(f.items=e.mergeEvaluated.items(d,c.length,f.items));const b=d.name("valid"),y=d.const("len",(0,t._)`${m}.length`);c.forEach((x,w)=>{(0,e.alwaysValidSchema)(f,x)||(d.if((0,t._)`${y} > ${w}`,()=>r.subschema({keyword:h,schemaProp:w,dataProp:w},b)),r.ok(b))});function T(x){const{opts:w,errSchemaPath:P}=f,k=c.length,E=k===x.minItems&&(k===x.maxItems||x[i]===!1);if(w.strictTuples&&!E){const _=`"${h}" is ${k}-tuple, but minItems or maxItems/${i} are not specified or different at path "${P}"`;(0,e.checkStrictMode)(f,_,w.strictTuples)}}}return Vc.validateTuple=n,Vc.default=o,Vc}var ED;function XZ(){if(ED)return Tg;ED=1,Object.defineProperty(Tg,"__esModule",{value:!0});const t=QL(),e={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:a=>(0,t.validateTuple)(a,"items")};return Tg.default=e,Tg}var Sg={},CD;function eQ(){if(CD)return Sg;CD=1,Object.defineProperty(Sg,"__esModule",{value:!0});const t=Tt(),e=Ft(),a=Dr(),o=ZL(),r={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:i}})=>(0,t.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,t._)`{limit: ${i}}`},code(i){const{schema:c,parentSchema:d,it:u}=i,{prefixItems:m}=d;u.items=!0,!(0,e.alwaysValidSchema)(u,c)&&(m?(0,o.validateAdditionalItems)(i,m):i.ok((0,a.validateArray)(i)))}};return Sg.default=r,Sg}var wg={},kD;function tQ(){if(kD)return wg;kD=1,Object.defineProperty(wg,"__esModule",{value:!0});const t=Tt(),e=Ft(),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:n,max:r}})=>r===void 0?(0,t.str)`must contain at least ${n} valid item(s)`:(0,t.str)`must contain at least ${n} and no more than ${r} valid item(s)`,params:({params:{min:n,max:r}})=>r===void 0?(0,t._)`{minContains: ${n}}`:(0,t._)`{minContains: ${n}, maxContains: ${r}}`},code(n){const{gen:r,schema:i,parentSchema:c,data:d,it:u}=n;let m,h;const{minContains:f,maxContains:b}=c;u.opts.next?(m=f===void 0?1:f,h=b):m=1;const y=r.const("len",(0,t._)`${d}.length`);if(n.setParams({min:m,max:h}),h===void 0&&m===0){(0,e.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&m>h){(0,e.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),n.fail();return}if((0,e.alwaysValidSchema)(u,i)){let k=(0,t._)`${y} >= ${m}`;h!==void 0&&(k=(0,t._)`${k} && ${y} <= ${h}`),n.pass(k);return}u.items=!0;const T=r.name("valid");h===void 0&&m===1?w(T,()=>r.if(T,()=>r.break())):m===0?(r.let(T,!0),h!==void 0&&r.if((0,t._)`${d}.length > 0`,x)):(r.let(T,!1),x()),n.result(T,()=>n.reset());function x(){const k=r.name("_valid"),E=r.let("count",0);w(k,()=>r.if(k,()=>P(E)))}function w(k,E){r.forRange("i",0,y,_=>{n.subschema({keyword:"contains",dataProp:_,dataPropType:e.Type.Num,compositeRule:!0},k),E()})}function P(k){r.code((0,t._)`${k}++`),h===void 0?r.if((0,t._)`${k} >= ${m}`,()=>r.assign(T,!0).break()):(r.if((0,t._)`${k} > ${h}`,()=>r.assign(T,!1).break()),m===1?r.assign(T,!0):r.if((0,t._)`${k} >= ${m}`,()=>r.assign(T,!0)))}}};return wg.default=o,wg}var SS={},_D;function aQ(){return _D||(_D=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const e=Tt(),a=Ft(),o=Dr();t.error={message:({params:{property:d,depsCount:u,deps:m}})=>{const h=u===1?"property":"properties";return(0,e.str)`must have ${h} ${m} when property ${d} is present`},params:({params:{property:d,depsCount:u,deps:m,missingProperty:h}})=>(0,e._)`{property: ${d},
|
|
53
53
|
missingProperty: ${h},
|
|
54
54
|
depsCount: ${u},
|
|
55
|
-
deps: ${m}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(d){const[u,m]=r(d);i(d,u),c(d,m)}};function r({schema:d}){const u={},m={};for(const h in d){if(h==="__proto__")continue;const f=Array.isArray(d[h])?u:m;f[h]=d[h]}return[u,m]}function i(d,u=d.schema){const{gen:m,data:h,it:f}=d;if(Object.keys(u).length===0)return;const b=m.let("missing");for(const y in u){const T=u[y];if(T.length===0)continue;const x=(0,o.propertyInData)(m,h,y,f.opts.ownProperties);d.setParams({property:y,depsCount:T.length,deps:T.join(", ")}),f.allErrors?m.if(x,()=>{for(const w of T)(0,o.checkReportMissingProp)(d,w)}):(m.if((0,e._)`${x} && (${(0,o.checkMissingProp)(d,T,b)})`),(0,o.reportMissingProp)(d,b),m.else())}}t.validatePropertyDeps=i;function c(d,u=d.schema){const{gen:m,data:h,keyword:f,it:b}=d,y=m.name("valid");for(const T in u)(0,a.alwaysValidSchema)(b,u[T])||(m.if((0,o.propertyInData)(m,h,T,b.opts.ownProperties),()=>{const x=d.subschema({keyword:f,schemaProp:T},y);d.mergeValidEvaluated(x,y)},()=>m.var(y,!0)),d.ok(y))}t.validateSchemaDeps=c,t.default=n})(SS)),SS}var xg={},AD;function oQ(){if(AD)return xg;AD=1,Object.defineProperty(xg,"__esModule",{value:!0});const t=Tt(),e=Ft(),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,t._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:r,schema:i,data:c,it:d}=n;if((0,e.alwaysValidSchema)(d,i))return;const u=r.name("valid");r.forIn("key",c,m=>{n.setParams({propertyName:m}),n.subschema({keyword:"propertyNames",data:m,dataTypes:["string"],propertyName:m,compositeRule:!0},u),r.if((0,t.not)(u),()=>{n.error(!0),d.allErrors||r.break()})}),n.ok(u)}};return xg.default=o,xg}var Pg={},RD;function JL(){if(RD)return Pg;RD=1,Object.defineProperty(Pg,"__esModule",{value:!0});const t=Dr(),e=Tt(),a=Yi(),o=Ft(),r={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:i})=>(0,e._)`{additionalProperty: ${i.additionalProperty}}`},code(i){const{gen:c,schema:d,parentSchema:u,data:m,errsCount:h,it:f}=i;if(!h)throw new Error("ajv implementation error");const{allErrors:b,opts:y}=f;if(f.props=!0,y.removeAdditional!=="all"&&(0,o.alwaysValidSchema)(f,d))return;const T=(0,t.allSchemaProperties)(u.properties),x=(0,t.allSchemaProperties)(u.patternProperties);w(),i.ok((0,e._)`${h} === ${a.default.errors}`);function w(){c.forIn("key",m,D=>{!T.length&&!x.length?E(D):c.if(P(D),()=>E(D))})}function P(D){let R;if(T.length>8){const O=(0,o.schemaRefOrVal)(f,u.properties,"properties");R=(0,t.isOwnProperty)(c,O,D)}else T.length?R=(0,e.or)(...T.map(O=>(0,e._)`${D} === ${O}`)):R=e.nil;return x.length&&(R=(0,e.or)(R,...x.map(O=>(0,e._)`${(0,t.usePattern)(i,O)}.test(${D})`))),(0,e.not)(R)}function k(D){c.code((0,e._)`delete ${m}[${D}]`)}function E(D){if(y.removeAdditional==="all"||y.removeAdditional&&d===!1){k(D);return}if(d===!1){i.setParams({additionalProperty:D}),i.error(),b||c.break();return}if(typeof d=="object"&&!(0,o.alwaysValidSchema)(f,d)){const R=c.name("valid");y.removeAdditional==="failing"?(_(D,R,!1),c.if((0,e.not)(R),()=>{i.reset(),k(D)})):(_(D,R),b||c.if((0,e.not)(R),()=>c.break()))}}function _(D,R,O){const L={keyword:"additionalProperties",dataProp:D,dataPropType:o.Type.Str};O===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(L,R)}}};return Pg.default=r,Pg}var Eg={},DD;function nQ(){if(DD)return Eg;DD=1,Object.defineProperty(Eg,"__esModule",{value:!0});const t=ev(),e=Dr(),a=Ft(),o=JL(),n={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:i,schema:c,parentSchema:d,data:u,it:m}=r;m.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&o.default.code(new t.KeywordCxt(m,o.default,"additionalProperties"));const h=(0,e.allSchemaProperties)(c);for(const x of h)m.definedProperties.add(x);m.opts.unevaluated&&h.length&&m.props!==!0&&(m.props=a.mergeEvaluated.props(i,(0,a.toHash)(h),m.props));const f=h.filter(x=>!(0,a.alwaysValidSchema)(m,c[x]));if(f.length===0)return;const b=i.name("valid");for(const x of f)y(x)?T(x):(i.if((0,e.propertyInData)(i,u,x,m.opts.ownProperties)),T(x),m.allErrors||i.else().var(b,!0),i.endIf()),r.it.definedProperties.add(x),r.ok(b);function y(x){return m.opts.useDefaults&&!m.compositeRule&&c[x].default!==void 0}function T(x){r.subschema({keyword:"properties",schemaProp:x,dataProp:x},b)}}};return Eg.default=n,Eg}var Cg={},OD;function rQ(){if(OD)return Cg;OD=1,Object.defineProperty(Cg,"__esModule",{value:!0});const t=Dr(),e=Tt(),a=Ft(),o=Ft(),n={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:i,schema:c,data:d,parentSchema:u,it:m}=r,{opts:h}=m,f=(0,t.allSchemaProperties)(c),b=f.filter(E=>(0,a.alwaysValidSchema)(m,c[E]));if(f.length===0||b.length===f.length&&(!m.opts.unevaluated||m.props===!0))return;const y=h.strictSchema&&!h.allowMatchingProperties&&u.properties,T=i.name("valid");m.props!==!0&&!(m.props instanceof e.Name)&&(m.props=(0,o.evaluatedPropsToName)(i,m.props));const{props:x}=m;w();function w(){for(const E of f)y&&P(E),m.allErrors?k(E):(i.var(T,!0),k(E),i.if(T))}function P(E){for(const _ in y)new RegExp(E).test(_)&&(0,a.checkStrictMode)(m,`property ${_} matches pattern ${E} (use allowMatchingProperties)`)}function k(E){i.forIn("key",d,_=>{i.if((0,e._)`${(0,t.usePattern)(r,E)}.test(${_})`,()=>{const D=b.includes(E);D||r.subschema({keyword:"patternProperties",schemaProp:E,dataProp:_,dataPropType:o.Type.Str},T),m.opts.unevaluated&&x!==!0?i.assign((0,e._)`${x}[${_}]`,!0):!D&&!m.allErrors&&i.if((0,e.not)(T),()=>i.break())})})}}};return Cg.default=n,Cg}var kg={},ND;function sQ(){if(ND)return kg;ND=1,Object.defineProperty(kg,"__esModule",{value:!0});const t=Ft(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(a){const{gen:o,schema:n,it:r}=a;if((0,t.alwaysValidSchema)(r,n)){a.fail();return}const i=o.name("valid");a.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),a.failResult(i,()=>a.reset(),()=>a.error())},error:{message:"must NOT be valid"}};return kg.default=e,kg}var _g={},MD;function iQ(){if(MD)return _g;MD=1,Object.defineProperty(_g,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Dr().validateUnion,error:{message:"must match a schema in anyOf"}};return _g.default=e,_g}var Ag={},ID;function lQ(){if(ID)return Ag;ID=1,Object.defineProperty(Ag,"__esModule",{value:!0});const t=Tt(),e=Ft(),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,t._)`{passingSchemas: ${n.passing}}`},code(n){const{gen:r,schema:i,parentSchema:c,it:d}=n;if(!Array.isArray(i))throw new Error("ajv implementation error");if(d.opts.discriminator&&c.discriminator)return;const u=i,m=r.let("valid",!1),h=r.let("passing",null),f=r.name("_valid");n.setParams({passing:h}),r.block(b),n.result(m,()=>n.reset(),()=>n.error(!0));function b(){u.forEach((y,T)=>{let x;(0,e.alwaysValidSchema)(d,y)?r.var(f,!0):x=n.subschema({keyword:"oneOf",schemaProp:T,compositeRule:!0},f),T>0&&r.if((0,t._)`${f} && ${m}`).assign(m,!1).assign(h,(0,t._)`[${h}, ${T}]`).else(),r.if(f,()=>{r.assign(m,!0),r.assign(h,T),x&&n.mergeEvaluated(x,t.Name)})})}}};return Ag.default=o,Ag}var Rg={},LD;function cQ(){if(LD)return Rg;LD=1,Object.defineProperty(Rg,"__esModule",{value:!0});const t=Ft(),e={keyword:"allOf",schemaType:"array",code(a){const{gen:o,schema:n,it:r}=a;if(!Array.isArray(n))throw new Error("ajv implementation error");const i=o.name("valid");n.forEach((c,d)=>{if((0,t.alwaysValidSchema)(r,c))return;const u=a.subschema({keyword:"allOf",schemaProp:d},i);a.ok(i),a.mergeEvaluated(u)})}};return Rg.default=e,Rg}var Dg={},BD;function dQ(){if(BD)return Dg;BD=1,Object.defineProperty(Dg,"__esModule",{value:!0});const t=Tt(),e=Ft(),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>(0,t.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,t._)`{failingKeyword: ${r.ifClause}}`},code(r){const{gen:i,parentSchema:c,it:d}=r;c.then===void 0&&c.else===void 0&&(0,e.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const u=n(d,"then"),m=n(d,"else");if(!u&&!m)return;const h=i.let("valid",!0),f=i.name("_valid");if(b(),r.reset(),u&&m){const T=i.let("ifClause");r.setParams({ifClause:T}),i.if(f,y("then",T),y("else",T))}else u?i.if(f,y("then")):i.if((0,t.not)(f),y("else"));r.pass(h,()=>r.error(!0));function b(){const T=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);r.mergeEvaluated(T)}function y(T,x){return()=>{const w=r.subschema({keyword:T},f);i.assign(h,f),r.mergeValidEvaluated(w,h),x?i.assign(x,(0,t._)`${T}`):r.setParams({ifClause:T})}}}};function n(r,i){const c=r.schema[i];return c!==void 0&&!(0,e.alwaysValidSchema)(r,c)}return Dg.default=o,Dg}var Og={},FD;function uQ(){if(FD)return Og;FD=1,Object.defineProperty(Og,"__esModule",{value:!0});const t=Ft(),e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:a,parentSchema:o,it:n}){o.if===void 0&&(0,t.checkStrictMode)(n,`"${a}" without "if" is ignored`)}};return Og.default=e,Og}var jD;function pQ(){if(jD)return yg;jD=1,Object.defineProperty(yg,"__esModule",{value:!0});const t=ZL(),e=XZ(),a=QL(),o=eQ(),n=tQ(),r=aQ(),i=oQ(),c=JL(),d=nQ(),u=rQ(),m=sQ(),h=iQ(),f=lQ(),b=cQ(),y=dQ(),T=uQ();function x(w=!1){const P=[m.default,h.default,f.default,b.default,y.default,T.default,i.default,c.default,r.default,d.default,u.default];return w?P.push(e.default,o.default):P.push(t.default,a.default),P.push(n.default),P}return yg.default=x,yg}var Ng={},Mg={},zD;function mQ(){if(zD)return Mg;zD=1,Object.defineProperty(Mg,"__esModule",{value:!0});const t=Tt(),a={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,t.str)`must match format "${o}"`,params:({schemaCode:o})=>(0,t._)`{format: ${o}}`},code(o,n){const{gen:r,data:i,$data:c,schema:d,schemaCode:u,it:m}=o,{opts:h,errSchemaPath:f,schemaEnv:b,self:y}=m;if(!h.validateFormats)return;c?T():x();function T(){const w=r.scopeValue("formats",{ref:y.formats,code:h.code.formats}),P=r.const("fDef",(0,t._)`${w}[${u}]`),k=r.let("fType"),E=r.let("format");r.if((0,t._)`typeof ${P} == "object" && !(${P} instanceof RegExp)`,()=>r.assign(k,(0,t._)`${P}.type || "string"`).assign(E,(0,t._)`${P}.validate`),()=>r.assign(k,(0,t._)`"string"`).assign(E,P)),o.fail$data((0,t.or)(_(),D()));function _(){return h.strictSchema===!1?t.nil:(0,t._)`${u} && !${E}`}function D(){const R=b.$async?(0,t._)`(${P}.async ? await ${E}(${i}) : ${E}(${i}))`:(0,t._)`${E}(${i})`,O=(0,t._)`(typeof ${E} == "function" ? ${R} : ${E}.test(${i}))`;return(0,t._)`${E} && ${E} !== true && ${k} === ${n} && !${O}`}}function x(){const w=y.formats[d];if(!w){_();return}if(w===!0)return;const[P,k,E]=D(w);P===n&&o.pass(R());function _(){if(h.strictSchema===!1){y.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${d}" ignored in schema at path "${f}"`}}function D(O){const L=O instanceof RegExp?(0,t.regexpCode)(O):h.code.formats?(0,t._)`${h.code.formats}${(0,t.getProperty)(d)}`:void 0,q=r.scopeValue("formats",{key:d,ref:O,code:L});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,t._)`${q}.validate`]:["string",O,q]}function R(){if(typeof w=="object"&&!(w instanceof RegExp)&&w.async){if(!b.$async)throw new Error("async format in sync schema");return(0,t._)`await ${E}(${i})`}return typeof k=="function"?(0,t._)`${E}(${i})`:(0,t._)`${E}.test(${i})`}}}};return Mg.default=a,Mg}var UD;function hQ(){if(UD)return Ng;UD=1,Object.defineProperty(Ng,"__esModule",{value:!0});const e=[mQ().default];return Ng.default=e,Ng}var Tl={},qD;function gQ(){return qD||(qD=1,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.contentVocabulary=Tl.metadataVocabulary=void 0,Tl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Tl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Tl}var $D;function fQ(){if($D)return og;$D=1,Object.defineProperty(og,"__esModule",{value:!0});const t=zZ(),e=JZ(),a=pQ(),o=hQ(),n=gQ(),r=[t.default,e.default,(0,a.default)(),o.default,n.metadataVocabulary,n.contentVocabulary];return og.default=r,og}var Ig={},Yu={},VD;function bQ(){if(VD)return Yu;VD=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.DiscrError=void 0;var t;return(function(e){e.Tag="tag",e.Mapping="mapping"})(t||(Yu.DiscrError=t={})),Yu}var HD;function vQ(){if(HD)return Ig;HD=1,Object.defineProperty(Ig,"__esModule",{value:!0});const t=Tt(),e=bQ(),a=UP(),o=tv(),n=Ft(),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:d}})=>c===e.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:c,tag:d,tagName:u}})=>(0,t._)`{error: ${c}, tag: ${u}, tagValue: ${d}}`},code(c){const{gen:d,data:u,schema:m,parentSchema:h,it:f}=c,{oneOf:b}=h;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const y=m.propertyName;if(typeof y!="string")throw new Error("discriminator: requires propertyName");if(m.mapping)throw new Error("discriminator: mapping is not supported");if(!b)throw new Error("discriminator: requires oneOf keyword");const T=d.let("valid",!1),x=d.const("tag",(0,t._)`${u}${(0,t.getProperty)(y)}`);d.if((0,t._)`typeof ${x} == "string"`,()=>w(),()=>c.error(!1,{discrError:e.DiscrError.Tag,tag:x,tagName:y})),c.ok(T);function w(){const E=k();d.if(!1);for(const _ in E)d.elseIf((0,t._)`${x} === ${_}`),d.assign(T,P(E[_]));d.else(),c.error(!1,{discrError:e.DiscrError.Mapping,tag:x,tagName:y}),d.endIf()}function P(E){const _=d.name("valid"),D=c.subschema({keyword:"oneOf",schemaProp:E},_);return c.mergeEvaluated(D,t.Name),_}function k(){var E;const _={},D=O(h);let R=!0;for(let B=0;B<b.length;B++){let z=b[B];if(z?.$ref&&!(0,n.schemaHasRulesButRef)(z,f.self.RULES)){const W=z.$ref;if(z=a.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,W),z instanceof a.SchemaEnv&&(z=z.schema),z===void 0)throw new o.default(f.opts.uriResolver,f.baseId,W)}const F=(E=z?.properties)===null||E===void 0?void 0:E[y];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${y}"`);R=R&&(D||O(z)),L(F,B)}if(!R)throw new Error(`discriminator: "${y}" must be required`);return _;function O({required:B}){return Array.isArray(B)&&B.includes(y)}function L(B,z){if(B.const)q(B.const,z);else if(B.enum)for(const F of B.enum)q(F,z);else throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`)}function q(B,z){if(typeof B!="string"||B in _)throw new Error(`discriminator: "${y}" values must be unique strings`);_[B]=z}}}};return Ig.default=i,Ig}const yQ="http://json-schema.org/draft-07/schema#",TQ="http://json-schema.org/draft-07/schema#",SQ="Core schema meta-schema",wQ={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},xQ=["object","boolean"],PQ={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},EQ={$schema:yQ,$id:TQ,title:SQ,definitions:wQ,type:xQ,properties:PQ,default:!0};var GD;function CQ(){return GD||(GD=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const a=BZ(),o=fQ(),n=vQ(),r=EQ,i=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends a.default{_addVocabularies(){super._addVocabularies(),o.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const y=this.opts.$data?this.$dataMetaSchema(r,i):r;this.addMetaSchema(y,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.Ajv=d,t.exports=e=d,t.exports.Ajv=d,Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var u=ev();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var m=Tt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return m._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return m.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return m.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return m.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return m.CodeGen}});var h=zP();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=tv();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Jh,Jh.exports)),Jh.exports}var Lg={exports:{}},wS={},WD;function kQ(){return WD||(WD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(B,z){return{validate:B,compare:z}}t.fullFormats={date:e(r,i),time:e(d(!0),u),"date-time":e(f(!0),b),"iso-time":e(d(),m),"iso-date-time":e(f(),y),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:w,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:q,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:k,int32:{type:"number",validate:D},int64:{type:"number",validate:R},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,b),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),"iso-date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,y),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function a(B){return B%4===0&&(B%100!==0||B%400===0)}const o=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function r(B){const z=o.exec(B);if(!z)return!1;const F=+z[1],W=+z[2],ae=+z[3];return W>=1&&W<=12&&ae>=1&&ae<=(W===2&&a(F)?29:n[W])}function i(B,z){if(B&&z)return B>z?1:B<z?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(B){return function(F){const W=c.exec(F);if(!W)return!1;const ae=+W[1],H=+W[2],K=+W[3],J=W[4],se=W[5]==="-"?-1:1,Q=+(W[6]||0),M=+(W[7]||0);if(Q>23||M>59||B&&!J)return!1;if(ae<=23&&H<=59&&K<60)return!0;const G=H-M*se,V=ae-Q*se-(G<0?1:0);return(V===23||V===-1)&&(G===59||G===-1)&&K<61}}function u(B,z){if(!(B&&z))return;const F=new Date("2020-01-01T"+B).valueOf(),W=new Date("2020-01-01T"+z).valueOf();if(F&&W)return F-W}function m(B,z){if(!(B&&z))return;const F=c.exec(B),W=c.exec(z);if(F&&W)return B=F[1]+F[2]+F[3],z=W[1]+W[2]+W[3],B>z?1:B<z?-1:0}const h=/t|\s/i;function f(B){const z=d(B);return function(W){const ae=W.split(h);return ae.length===2&&r(ae[0])&&z(ae[1])}}function b(B,z){if(!(B&&z))return;const F=new Date(B).valueOf(),W=new Date(z).valueOf();if(F&&W)return F-W}function y(B,z){if(!(B&&z))return;const[F,W]=B.split(h),[ae,H]=z.split(h),K=i(F,ae);if(K!==void 0)return K||u(W,H)}const T=/\/|:/,x=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function w(B){return T.test(B)&&x.test(B)}const P=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function k(B){return P.lastIndex=0,P.test(B)}const E=-2147483648,_=2**31-1;function D(B){return Number.isInteger(B)&&B<=_&&B>=E}function R(B){return Number.isInteger(B)}function O(){return!0}const L=/[^\\]\\Z/;function q(B){if(L.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(wS)),wS}var xS={},KD;function _Q(){return KD||(KD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=CQ(),a=Tt(),o=a.operators,n={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},r={message:({keyword:c,schemaCode:d})=>(0,a.str)`should be ${n[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,a._)`{comparison: ${n[c].okStr}, limit: ${d}}`};t.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:r,code(c){const{gen:d,data:u,schemaCode:m,keyword:h,it:f}=c,{opts:b,self:y}=f;if(!b.validateFormats)return;const T=new e.KeywordCxt(f,y.RULES.all.format.definition,"format");T.$data?x():w();function x(){const k=d.scopeValue("formats",{ref:y.formats,code:b.code.formats}),E=d.const("fmt",(0,a._)`${k}[${T.schemaCode}]`);c.fail$data((0,a.or)((0,a._)`typeof ${E} != "object"`,(0,a._)`${E} instanceof RegExp`,(0,a._)`typeof ${E}.compare != "function"`,P(E)))}function w(){const k=T.schema,E=y.formats[k];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${h}": format "${k}" does not define "compare" function`);const _=d.scopeValue("formats",{key:k,ref:E,code:b.code.formats?(0,a._)`${b.code.formats}${(0,a.getProperty)(k)}`:void 0});c.fail$data(P(_))}function P(k){return(0,a._)`${k}.compare(${u}, ${m}) ${n[h].fail} 0`}},dependencies:["format"]};const i=c=>(c.addKeyword(t.formatLimitDefinition),c);t.default=i})(xS)),xS}var YD;function AQ(){return YD||(YD=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const a=kQ(),o=_Q(),n=Tt(),r=new n.Name("fullFormats"),i=new n.Name("fastFormats"),c=(u,m={keywords:!0})=>{if(Array.isArray(m))return d(u,m,a.fullFormats,r),u;const[h,f]=m.mode==="fast"?[a.fastFormats,i]:[a.fullFormats,r],b=m.formats||a.formatNames;return d(u,b,h,f),m.keywords&&(0,o.default)(u),u};c.get=(u,m="full")=>{const f=(m==="fast"?a.fastFormats:a.fullFormats)[u];if(!f)throw new Error(`Unknown format "${u}"`);return f};function d(u,m,h,f){var b,y;(b=(y=u.opts.code).formats)!==null&&b!==void 0||(y.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const T of m)u.addFormat(T,h[T])}t.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c})(Lg,Lg.exports)),Lg.exports}var RQ=AQ();const lwe=Wl(RQ);function DQ({studioUrl:t,meshUrl:e},a){return t??e??a}let $P;$P=globalThis.crypto;async function OQ(t){return(await $P).getRandomValues(new Uint8Array(t))}async function NQ(t){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",a=Math.pow(2,8)-Math.pow(2,8)%e.length;let o="";for(;o.length<t;){const n=await OQ(t-o.length);for(const r of n)r<a&&(o+=e[r%e.length])}return o}async function MQ(t){return await NQ(t)}async function IQ(t){const e=await(await $P).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function cwe(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;const e=await MQ(t),a=await IQ(e);return{code_verifier:e,code_challenge:a}}const Eo=nL().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:FW.custom,message:"URL must be parseable",fatal:!0}),VV}).refine(t=>{const e=new URL(t);return e.protocol!=="javascript:"&&e.protocol!=="data:"&&e.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),dwe=Co({resource:$().url(),authorization_servers:je(Eo).optional(),jwks_uri:$().url().optional(),scopes_supported:je($()).optional(),bearer_methods_supported:je($()).optional(),resource_signing_alg_values_supported:je($()).optional(),resource_name:$().optional(),resource_documentation:$().optional(),resource_policy_uri:$().url().optional(),resource_tos_uri:$().url().optional(),tls_client_certificate_bound_access_tokens:Vt().optional(),authorization_details_types_supported:je($()).optional(),dpop_signing_alg_values_supported:je($()).optional(),dpop_bound_access_tokens_required:Vt().optional()}),LQ=Co({issuer:$(),authorization_endpoint:Eo,token_endpoint:Eo,registration_endpoint:Eo.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),service_documentation:Eo.optional(),revocation_endpoint:Eo.optional(),revocation_endpoint_auth_methods_supported:je($()).optional(),revocation_endpoint_auth_signing_alg_values_supported:je($()).optional(),introspection_endpoint:$().optional(),introspection_endpoint_auth_methods_supported:je($()).optional(),introspection_endpoint_auth_signing_alg_values_supported:je($()).optional(),code_challenge_methods_supported:je($()).optional(),client_id_metadata_document_supported:Vt().optional()}),BQ=Co({issuer:$(),authorization_endpoint:Eo,token_endpoint:Eo,userinfo_endpoint:Eo.optional(),jwks_uri:Eo,registration_endpoint:Eo.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),acr_values_supported:je($()).optional(),subject_types_supported:je($()),id_token_signing_alg_values_supported:je($()),id_token_encryption_alg_values_supported:je($()).optional(),id_token_encryption_enc_values_supported:je($()).optional(),userinfo_signing_alg_values_supported:je($()).optional(),userinfo_encryption_alg_values_supported:je($()).optional(),userinfo_encryption_enc_values_supported:je($()).optional(),request_object_signing_alg_values_supported:je($()).optional(),request_object_encryption_alg_values_supported:je($()).optional(),request_object_encryption_enc_values_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),display_values_supported:je($()).optional(),claim_types_supported:je($()).optional(),claims_supported:je($()).optional(),service_documentation:$().optional(),claims_locales_supported:je($()).optional(),ui_locales_supported:je($()).optional(),claims_parameter_supported:Vt().optional(),request_parameter_supported:Vt().optional(),request_uri_parameter_supported:Vt().optional(),require_request_uri_registration:Vt().optional(),op_policy_uri:Eo.optional(),op_tos_uri:Eo.optional(),client_id_metadata_document_supported:Vt().optional()}),uwe=Se({...BQ.shape,...LQ.pick({code_challenge_methods_supported:!0}).shape}),pwe=Se({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:mL().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),mwe=Se({error:$(),error_description:$().optional(),error_uri:$().optional()}),ZD=Eo.optional().or(Ze("").transform(()=>{})),FQ=Se({redirect_uris:je(Eo),token_endpoint_auth_method:$().optional(),grant_types:je($()).optional(),response_types:je($()).optional(),client_name:$().optional(),client_uri:Eo.optional(),logo_uri:ZD,scope:$().optional(),contacts:je($()).optional(),tos_uri:ZD,policy_uri:$().optional(),jwks_uri:Eo.optional(),jwks:dW().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),jQ=Se({client_id:$(),client_secret:$().optional(),client_id_issued_at:Rt().optional(),client_secret_expires_at:Rt().optional()}).strip(),hwe=FQ.merge(jQ);Se({error:$(),error_description:$().optional()}).strip();Se({token:$(),token_type_hint:$().optional()}).strip();class Oo extends Error{constructor(e,a){super(e),this.errorUri=a,this.name=this.constructor.name}toResponseObject(){const e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}}class p0 extends Oo{}p0.errorCode="invalid_request";class m0 extends Oo{}m0.errorCode="invalid_client";class h0 extends Oo{}h0.errorCode="invalid_grant";class g0 extends Oo{}g0.errorCode="unauthorized_client";class f0 extends Oo{}f0.errorCode="unsupported_grant_type";class b0 extends Oo{}b0.errorCode="invalid_scope";class v0 extends Oo{}v0.errorCode="access_denied";class y0 extends Oo{}y0.errorCode="server_error";class T0 extends Oo{}T0.errorCode="temporarily_unavailable";class S0 extends Oo{}S0.errorCode="unsupported_response_type";class w0 extends Oo{}w0.errorCode="unsupported_token_type";class x0 extends Oo{}x0.errorCode="invalid_token";class P0 extends Oo{}P0.errorCode="method_not_allowed";class E0 extends Oo{}E0.errorCode="too_many_requests";class C0 extends Oo{}C0.errorCode="invalid_client_metadata";class k0 extends Oo{}k0.errorCode="insufficient_scope";class _0 extends Oo{}_0.errorCode="invalid_target";const gwe={[p0.errorCode]:p0,[m0.errorCode]:m0,[h0.errorCode]:h0,[g0.errorCode]:g0,[f0.errorCode]:f0,[b0.errorCode]:b0,[v0.errorCode]:v0,[y0.errorCode]:y0,[T0.errorCode]:T0,[S0.errorCode]:S0,[w0.errorCode]:w0,[x0.errorCode]:x0,[P0.errorCode]:P0,[E0.errorCode]:E0,[C0.errorCode]:C0,[k0.errorCode]:k0,[_0.errorCode]:_0};async function XL(t){if(!t.getServerCapabilities()?.resources)return{resources:[]};try{return await t.listResources()}catch(a){if(a instanceof Qb&&a.code===Up.MethodNotFound)return{resources:[]};throw a}}async function zQ(t,e){return await t.readResource({uri:e})}function fwe(t){const e=ye.c(12);let a,o;e[0]!==t?({client:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);let n;e[3]!==a?(n=eo.mcpResourcesList(a),e[3]=a,e[4]=n):n=e[4];let r;e[5]!==a?(r=()=>XL(a),e[5]=a,e[6]=r):r=e[6];const i=o.staleTime??3e4;let c;return e[7]!==o||e[8]!==n||e[9]!==r||e[10]!==i?(c={...o,queryKey:n,queryFn:r,staleTime:i,retry:!1},e[7]=o,e[8]=n,e[9]=r,e[10]=i,e[11]=c):c=e[11],Gi(c)}function bwe(t){const e=ye.c(12);let a,o;e[0]!==t?({client:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);let n;e[3]!==a?(n=eo.mcpResourcesList(a),e[3]=a,e[4]=n):n=e[4];let r;e[5]!==a?(r=()=>XL(a),e[5]=a,e[6]=r):r=e[6];const i=o.staleTime??3e4;let c;return e[7]!==o||e[8]!==n||e[9]!==r||e[10]!==i?(c={...o,queryKey:n,queryFn:r,staleTime:i,retry:!1},e[7]=o,e[8]=n,e[9]=r,e[10]=i,e[11]=c):c=e[11],Hi(c)}function vwe(t){const e=ye.c(15);let a,o,n;e[0]!==t?({client:a,uri:n,...o}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n):(a=e[1],o=e[2],n=e[3]);let r;e[4]!==a||e[5]!==n?(r=eo.mcpReadResource(a,n),e[4]=a,e[5]=n,e[6]=r):r=e[6];let i;e[7]!==a||e[8]!==n?(i=()=>zQ(a,n),e[7]=a,e[8]=n,e[9]=i):i=e[9];const c=o.staleTime??3e4;let d;return e[10]!==o||e[11]!==r||e[12]!==i||e[13]!==c?(d={...o,queryKey:r,queryFn:i,staleTime:c,retry:!1},e[10]=o,e[11]=r,e[12]=i,e[13]=c,e[14]=d):d=e[14],Gi(d)}const eB="ui-resource-html";function ywe(t){const e=ye.c(22);let a,o,n,r,i,c;e[0]!==t?({orgSlug:n,connectionId:a,uri:c,studioUrl:i,meshUrl:o,...r}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n,e[4]=r,e[5]=i,e[6]=c):(a=e[1],o=e[2],n=e[3],r=e[4],i=e[5],c=e[6]);let d;e[7]!==a||e[8]!==n||e[9]!==c?(d=eo.mcpUiResourceHtml(n,a,c),e[7]=a,e[8]=n,e[9]=c,e[10]=d):d=e[10];let u;e[11]!==a||e[12]!==o||e[13]!==n||e[14]!==i||e[15]!==c?(u=async()=>{const b=`${DQ({studioUrl:i,meshUrl:o},typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(n)}/mcp/${encodeURIComponent(a)}/ui-resource?uri=${encodeURIComponent(c)}`,y=await fetch(b,{credentials:"include"});if(!y.ok)throw new Error(`Failed to read UI resource (${y.status})`);return y.text()},e[11]=a,e[12]=o,e[13]=n,e[14]=i,e[15]=c,e[16]=u):u=e[16];const m=r.staleTime??3e4;let h;return e[17]!==r||e[18]!==d||e[19]!==u||e[20]!==m?(h={...r,queryKey:d,queryFn:u,staleTime:m,retry:!1},e[17]=r,e[18]=d,e[19]=u,e[20]=m,e[21]=h):h=e[21],Gi(h)}const tB={featureNotInPlan:"feature_not_in_plan",aiBudgetExhausted:"ai_budget_exhausted"};class A0 extends Error{constructor(e,a,o){super(e),this.status=a,this.code=o,this.name="StudioToolError"}status;code}function aB(t){return t instanceof A0&&Object.values(tB).includes(t.code??"")?t.code:null}async function UQ(t,e,a){const o=await fetch(`/api/${encodeURIComponent(t)}/tools/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a??{})});if(!o.ok){let n=`${e} failed (${o.status})`,r;try{const i=await o.json();i?.error&&(n=i.error),typeof i?.code=="string"&&(r=i.code)}catch{}throw new A0(n,o.status,r)}try{return await o.json()}catch{throw new A0(`${e} returned a non-JSON response`,o.status)}}function VP(){const t=ye.c(5),{org:e}=Ki(),a=e.slug;let o;t[0]!==a?(o=(r,i)=>UQ(a,r,i),t[0]=a,t[1]=o):o=t[1];let n;return t[2]!==a||t[3]!==o?(n={orgSlug:a,call:o},t[2]=a,t[3]=o,t[4]=n):n=t[4],n}function qQ(t){for(const e of["content-revision","content-versions","content-changes","content-draft-tombstones"])t.getQueryDefaults([e]).gcTime!==1/0&&t.setQueryDefaults([e],{gcTime:1/0})}const $Q="studio-ui-resources",Yf="html",VQ=10080*60*1e3,HQ=50,GQ=16*1024*1024;function WQ(t){return t[0]==="mcp"&&t[1]===eB}function av(){return new Promise((t,e)=>{const a=indexedDB.open($Q,1);a.onupgradeneeded=()=>{a.result.objectStoreNames.contains(Yf)||a.result.createObjectStore(Yf)},a.onsuccess=()=>t(a.result),a.onerror=()=>e(a.error)})}function Ld(t,e){return t.transaction(Yf,e).objectStore(Yf)}function R0(t){return new Promise((e,a)=>{t.onsuccess=()=>e(t.result),t.onerror=()=>a(t.error)})}async function KQ(t){if(!(typeof indexedDB>"u"))try{const e=await av(),a=Ld(e,"readonly"),o=await R0(a.getAllKeys()),n=await R0(a.getAll()),r=Date.now(),i=o.map((u,m)=>({key:u,value:n[m]})).sort((u,m)=>(m.value?.updatedAt??0)-(u.value?.updatedAt??0)),c=[];let d=0;for(const{key:u,value:m}of i){if(!m||r-m.updatedAt>VQ||d>=HQ){c.push(u);continue}d++;try{const f=JSON.parse(String(u));t.getQueryData(f)===void 0&&t.setQueryData(f,m.html,{updatedAt:0})}catch{c.push(u)}}if(c.length>0){const u=Ld(e,"readwrite");for(const m of c)u.delete(m)}}catch{}}function YQ(t){if(typeof indexedDB>"u")return()=>{};const e=av().catch(()=>null);return t.getQueryCache().subscribe(a=>{const o=a.query;if(!Array.isArray(o.queryKey)||!WQ(o.queryKey)||o.state.status!=="success")return;const n=o.state.data;typeof n!="string"||n.length>GQ||e.then(r=>{if(r)try{Ld(r,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(o.queryKey))}catch{}})})}function ZQ(){typeof indexedDB>"u"||av().then(t=>Ld(t,"readwrite").clear()).catch(()=>{})}async function Twe(t){if(!(typeof indexedDB>"u"))try{const e=await av(),a=await R0(Ld(e,"readonly").getAllKeys()),o=Ld(e,"readwrite");for(const n of a)try{const r=JSON.parse(String(n));r[1]===eB&&r[3]===t&&o.delete(n)}catch{}}catch{}}const Zf="studio:rq-cache",HP=1440*60*1e3,QQ=1e3,JQ=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions","order-monitor"]),XQ=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let oB=!1,nB=!1;function eJ(t){const e=t[0];return typeof e=="string"&&JQ.has(e)?!0:t[3]==="collection"&&typeof t[4]=="string"&&XQ.has(t[4])}function tJ(t){if(!(typeof window>"u"))try{const e=window.localStorage.getItem(Zf);if(!e)return;const a=JSON.parse(e),o=!a.timestamp||Date.now()-a.timestamp>HP;if(a.buster!=="4.533.2"||o||!a.state){window.localStorage.removeItem(Zf);return}SV(t,a.state),t.invalidateQueries({queryKey:eo.publicConfig(),refetchType:"none"}),oB=!0}catch{iJ()}}function aJ(t){if(typeof window>"u")return()=>{};let e=null;const a=()=>{e=null;try{const r=TV(t,{shouldDehydrateQuery:i=>i.state.status==="success"&&eJ(i.queryKey)});window.localStorage.setItem(Zf,JSON.stringify({buster:"4.533.2",timestamp:Date.now(),state:r}))}catch{}},o=t.getQueryCache().subscribe(()=>{e==null&&(e=setTimeout(a,QQ))}),n=()=>{e!=null&&(clearTimeout(e),a())};return window.addEventListener("pagehide",n),()=>{e!=null&&clearTimeout(e),window.removeEventListener("pagehide",n),o()}}const rB="studio:org-cache:",oJ=20;function nJ(t){const e=Date.now(),a=Object.entries(t).filter(([,o])=>e-o.updatedAt<=HP);for(a.sort(([,o],[,n])=>o.updatedAt-n.updatedAt);a.length>oJ;)a.shift();return Object.fromEntries(a)}function sB(t){return`${rB}${t}`}function rJ(t,e){if(typeof window>"u")return null;try{const a=window.localStorage.getItem(sB(t));if(!a)return null;const o=JSON.parse(a)[e];return!o||Date.now()-o.updatedAt>HP?null:(nB=!0,o)}catch{return null}}function sJ(t,e,a){if(!(typeof window>"u"))try{const o=sB(t),n=window.localStorage.getItem(o),r=n?JSON.parse(n):{};r[e]={data:a,updatedAt:Date.now()},window.localStorage.setItem(o,JSON.stringify(nJ(r)))}catch{}}function iJ(){if(ZQ(),!(typeof window>"u"))try{window.localStorage.removeItem(Zf);for(let t=window.localStorage.length-1;t>=0;t--){const e=window.localStorage.key(t);e?.startsWith(rB)&&window.localStorage.removeItem(e)}}catch{}}function lJ(){return oB}function cJ(){return nB}function QD(t){const e=aB(t);if(!e)return;const a=e===tB.aiBudgetExhausted?Qf.budget||"This organization's AI allowance is used up.":Qf.feature||"This organization's plan does not include that.";Id.error(a,{id:`plan-refusal:${e}`})}const Qf={feature:"",budget:""},Zl=new OV({queryCache:new QM({onError:QD}),mutationCache:new ZM({onError:QD}),defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:(t,e)=>aB(e)===null&&t<1,gcTime:300*1e3}}});qQ(Zl);tJ(Zl);aJ(Zl);KQ(Zl);YQ(Zl);const GP=5*6e4;async function iB(){return(await(await fetch("/api/config")).json()).config}function lB(){const t=ye.c(1);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:eo.publicConfig(),queryFn:iB,staleTime:GP},t[0]=e):e=t[0];const{data:a}=Gi(e);return a}function Swe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:eo.publicConfig(),queryFn:iB,staleTime:GP},t[0]=e):e=t[0],Hi(e).data}const cB=A.createContext(void 0);function dJ(t){const e=ye.c(3),{children:a}=t,o=lB();let n;return e[0]!==a||e[1]!==o.auth?(n=v.jsx(cB.Provider,{value:o.auth,children:a}),e[0]=a,e[1]=o.auth,e[2]=n):n=e[2],n}function wwe(){const t=A.useContext(cB);if(t===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return t}var uJ={},JD={};const bf=Object.create(null),Zu=t=>uJ||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?bf:globalThis),Xn=new Proxy(bf,{get(t,e){return Zu()[e]??bf[e]},has(t,e){return e in Zu()||e in bf},set(t,e,a){const o=Zu(!0);return o[e]=a,!0},deleteProperty(t,e){if(!e)return!1;const a=Zu(!0);return delete a[e],!0},ownKeys(){const t=Zu(!0);return Object.keys(t)}});function Ka(t,e){return typeof process<"u"&&JD?JD[t]??e:typeof Deno<"u"?Deno.env.get(t)??e:typeof Bun<"u"?Bun.env[t]??e:e}const Qu=1,mo=4,Vr=8,Nn=24,XD={eterm:mo,cons25:mo,console:mo,cygwin:mo,dtterm:mo,gnome:mo,hurd:mo,jfbterm:mo,konsole:mo,kterm:mo,mlterm:mo,mosh:Nn,putty:mo,st:mo,"rxvt-unicode-24bit":Nn,terminator:Nn,"xterm-kitty":Nn},pJ=new Map(Object.entries({APPVEYOR:Vr,BUILDKITE:Vr,CIRCLECI:Nn,DRONE:Vr,GITEA_ACTIONS:Nn,GITHUB_ACTIONS:Nn,GITLAB_CI:Vr,TRAVIS:Vr})),mJ=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function hJ(){if(Ka("FORCE_COLOR")!==void 0)switch(Ka("FORCE_COLOR")){case"":case"1":case"true":return mo;case"2":return Vr;case"3":return Nn;default:return Qu}if(Ka("NODE_DISABLE_COLORS")!==void 0&&Ka("NODE_DISABLE_COLORS")!==""||Ka("NO_COLOR")!==void 0&&Ka("NO_COLOR")!==""||Ka("TERM")==="dumb")return Qu;if(Ka("TMUX"))return Nn;if("TF_BUILD"in Xn&&"AGENT_NAME"in Xn)return mo;if("CI"in Xn){for(const{0:t,1:e}of pJ)if(t in Xn)return e;return Ka("CI_NAME")==="codeship"?Vr:Qu}if("TEAMCITY_VERSION"in Xn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Ka("TEAMCITY_VERSION"))!==null?mo:Qu;switch(Ka("TERM_PROGRAM")){case"iTerm.app":return!Ka("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Ka("TERM_PROGRAM_VERSION"))!==null?Vr:Nn;case"HyperTerm":case"MacTerm":return Nn;case"Apple_Terminal":return Vr}if(Ka("COLORTERM")==="truecolor"||Ka("COLORTERM")==="24bit")return Nn;if(Ka("TERM")){if(/truecolor/.exec(Ka("TERM"))!==null)return Nn;if(/^xterm-256/.exec(Ka("TERM"))!==null)return Vr;const t=Ka("TERM").toLowerCase();if(XD[t])return XD[t];if(mJ.some(e=>e.exec(t)!==null))return mo}return Ka("COLORTERM")?mo:Qu}const Hr={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},D0=["debug","info","success","warn","error"];function gJ(t,e){return D0.indexOf(e)>=D0.indexOf(t)}const fJ={info:Hr.fg.blue,success:Hr.fg.green,warn:Hr.fg.yellow,error:Hr.fg.red,debug:Hr.fg.magenta},bJ=(t,e,a)=>{const o=new Date().toISOString();return a?`${Hr.dim}${o}${Hr.reset} ${fJ[t]}${t.toUpperCase()}${Hr.reset} ${Hr.bright}[Better Auth]:${Hr.reset} ${e}`:`${o} ${t.toUpperCase()} [Better Auth]: ${e}`},vJ=t=>{const e="warn",a=hJ()!==1,o=(n,r,i=[])=>{if(!gJ(e,n))return;const c=bJ(n,r,a);{n==="error"?console.error(c,...i):n==="warn"?console.warn(c,...i):console.log(c,...i);return}};return{...Object.fromEntries(D0.map(n=>[n,(...[r,...i])=>o(n,r,i)])),get level(){return e}}};vJ();function yJ(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Pp=class extends Error{constructor(t,e){super(t,e),this.name="BetterAuthError",this.message=t,this.stack=""}};function TJ(t){try{return(new URL(t).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new Pp(`Invalid base URL: ${t}. Please provide a valid base URL.`)}}function SJ(t){try{const e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new Pp(`Invalid base URL: ${t}. URL must include 'http://' or 'https://'`)}catch(e){throw e instanceof Pp?e:new Pp(`Invalid base URL: ${t}. Please provide a valid base URL.`,{cause:e})}}function PS(t,e="/api/auth"){if(SJ(t),TJ(t))return t;const a=t.replace(/\/+$/,"");return!e||e==="/"?a:(e=e.startsWith("/")?e:`/${e}`,`${a}${e}`)}function wJ(t,e,a,o,n){if(t)return PS(t,e);{const r=Xn.BETTER_AUTH_URL||Xn.NEXT_PUBLIC_BETTER_AUTH_URL||Xn.PUBLIC_BETTER_AUTH_URL||Xn.NUXT_PUBLIC_BETTER_AUTH_URL||Xn.NUXT_PUBLIC_AUTH_URL||(Xn.BASE_URL!=="/"?Xn.BASE_URL:void 0);if(r)return PS(r,e)}if(typeof window<"u"&&window.location)return PS(window.location.origin,e)}const xJ={id:"redirect",name:"Redirect",hooks:{onSuccess(t){if(t.data?.url&&t.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=t.data.url}catch{}}}},PJ={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},EJ=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,eO={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},CJ=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function kJ(t){return t instanceof Date&&!isNaN(t.getTime())}function _J(t){const e=CJ.exec(t);if(!e)return null;const[,a,o,n,r,i,c,d,u,m,h]=e,f=new Date(Date.UTC(parseInt(a,10),parseInt(o,10)-1,parseInt(n,10),parseInt(r,10),parseInt(i,10),parseInt(c,10),d?parseInt(d.padEnd(3,"0"),10):0));if(u){const b=(parseInt(m,10)*60+parseInt(h,10))*(u==="+"?-1:1);f.setUTCMinutes(f.getUTCMinutes()+b)}return kJ(f)?f:null}function AJ(t,e={}){const{strict:a=!1,warnings:o=!1,reviver:n,parseDates:r=!0}=e;if(typeof t!="string")return t;const i=t.trim();if(i.length>0&&i[0]==='"'&&i.endsWith('"')&&!i.slice(1,-1).includes('"'))return i.slice(1,-1);const c=i.toLowerCase();if(c.length<=9&&c in eO)return eO[c];if(!EJ.test(i)){if(a)throw new SyntaxError("[better-json] Invalid JSON");return t}if(Object.entries(PJ).some(([d,u])=>{const m=u.test(i);return m&&o&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),m})&&a)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(u,m)=>{if(u==="__proto__"||u==="constructor"&&m&&typeof m=="object"&&"prototype"in m){o&&console.warn(`[better-json] Dropping "${u}" key to prevent prototype pollution`);return}if(r&&typeof m=="string"){const h=_J(m);if(h)return h}return n?n(u,m):m})}catch(d){if(a)throw d;return t}}function RJ(t,e={strict:!0}){return AJ(t,e)}let fr=[],gi=0;const Bg=4,DJ=globalThis.nanostoresGlobal||={epoch:0},hd=t=>{let e=[],a={get(){return a.lc||a.listen(()=>{})(),a.value},init:t,lc:0,listen(o){return a.lc=e.push(o),()=>{for(let r=gi+Bg;r<fr.length;)fr[r]===o?fr.splice(r,Bg):r+=Bg;let n=e.indexOf(o);~n&&(e.splice(n,1),--a.lc||a.off())}},notify(o,n){DJ.epoch++;let r=!fr.length;for(let i of e)fr.push(i,a.value,o,n);if(r){for(gi=0;gi<fr.length;gi+=Bg)fr[gi](fr[gi+1],fr[gi+2],fr[gi+3]);fr.length=0}},off(){},set(o){let n=a.value;n!==o&&(a.value=o,a.notify(n))},subscribe(o){let n=a.listen(o);return o(a.value),n},value:t};return a},OJ=5,Fg=6,jg=10;let NJ=(t,e,a,o)=>(t.events=t.events||{},t.events[a+jg]||(t.events[a+jg]=o(n=>{t.events[a].reduceRight((r,i)=>(i(r),r),{shared:{},...n})})),t.events[a]=t.events[a]||[],t.events[a].push(e),()=>{let n=t.events[a],r=n.indexOf(e);n.splice(r,1),n.length||(delete t.events[a],t.events[a+jg](),delete t.events[a+jg])});const MJ=1e3;let dB=(t,e)=>NJ(t,o=>{let n=e(o);n&&t.events[Fg].push(n)},OJ,o=>{let n=t.listen;t.listen=(...i)=>(!t.lc&&!t.active&&(t.active=!0,o()),n(...i));let r=t.off;return t.events[Fg]=[],t.off=()=>{r(),setTimeout(()=>{if(t.active&&!t.lc){t.active=!1;for(let i of t.events[Fg])i();t.events[Fg]=[]}},MJ)},()=>{t.listen=n,t.off=r}});function IJ(t,e,a){let o=new Set(e).add(void 0);return t.listen((n,r,i)=>{o.has(i)&&a(n,r,i)})}const LJ=()=>typeof window>"u",mp=(t,e,a,o)=>{const n=hd({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>r(c)}),r=async c=>new Promise(d=>{const u=typeof o=="function"?o({data:n.get().data,error:n.get().error,isPending:n.get().isPending}):o;a(e,{...u,query:{...u?.query,...c?.query},async onSuccess(m){n.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onSuccess?.(m)},async onError(m){const{request:h}=m,f=typeof h.retry=="number"?h.retry:h.retry?.attempts,b=h.retryAttempt||0;f&&b<f||(n.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onError?.(m))},async onRequest(m){const h=n.get();n.set({isPending:h.data===null,data:h.data,error:null,isRefetching:!0,refetch:n.value.refetch}),await u?.onRequest?.(m)}}).catch(m=>{n.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch})}).finally(()=>{d(void 0)})});t=Array.isArray(t)?t:[t];let i=!1;for(const c of t)c.subscribe(async()=>{LJ()||(i?await r():dB(n,()=>{const d=setTimeout(async()=>{i||(await r(),i=!0)},0);return()=>{n.off(),c.off(),clearTimeout(d)}}))});return n},ES=Symbol.for("better-auth:broadcast-channel"),BJ=()=>Math.floor(Date.now()/1e3);var FJ=class{listeners=new Set;name;constructor(t="better-auth.message"){this.name=t}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}post(t){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...t,timestamp:BJ()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=e=>{if(e.key!==this.name)return;const a=JSON.parse(e.newValue??"{}");a?.event!=="session"||!a?.data||this.listeners.forEach(o=>o(a))};return window.addEventListener("storage",t),()=>{window.removeEventListener("storage",t)}}};function CS(t="better-auth.message"){return globalThis[ES]||(globalThis[ES]=new FJ(t)),globalThis[ES]}const kS=Symbol.for("better-auth:focus-manager");var jJ=class{listeners=new Set;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setFocused(t){this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",t,!1),()=>{document.removeEventListener("visibilitychange",t,!1)}}};function tO(){return globalThis[kS]||(globalThis[kS]=new jJ),globalThis[kS]}const _S=Symbol.for("better-auth:online-manager");var zJ=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setOnline(t){this.isOnline=t,this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>this.setOnline(!0),e=()=>this.setOnline(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",e,!1),()=>{window.removeEventListener("online",t,!1),window.removeEventListener("offline",e,!1)}}};function AS(){return globalThis[_S]||(globalThis[_S]=new zJ),globalThis[_S]}const Hc=()=>Math.floor(Date.now()/1e3),UJ=5;function qJ(t){const{sessionAtom:e,sessionSignal:a,$fetch:o,options:n={}}=t,r=n.sessionOptions?.refetchInterval??0,i=n.sessionOptions?.refetchOnWindowFocus??!0,c=n.sessionOptions?.refetchWhenOffline??!1,d={lastSync:0,lastSessionRequest:0,cachedSession:void 0},u=()=>c||AS().isOnline,m=P=>{if(!u())return;if(P?.event==="storage"){d.lastSync=Hc(),a.set(!a.get());return}const k=e.get();if(P?.event==="poll"){d.lastSessionRequest=Hc(),o("/get-session").then(E=>{E.error?e.set({...k,data:null,error:E.error}):e.set({...k,data:E.data,error:null}),d.lastSync=Hc(),a.set(!a.get())}).catch(()=>{});return}if(P?.event==="visibilitychange"){if(Hc()-d.lastSessionRequest<UJ)return;d.lastSessionRequest=Hc()}(k?.data===null||k?.data===void 0||P?.event==="visibilitychange")&&(d.lastSync=Hc(),a.set(!a.get()))},h=P=>{CS().post({event:"session",data:{trigger:P},clientId:Math.random().toString(36).substring(7)})},f=()=>{r&&r>0&&(d.pollInterval=setInterval(()=>{e.get()?.data&&m({event:"poll"})},r*1e3))},b=()=>{d.unsubscribeBroadcast=CS().subscribe(()=>{m({event:"storage"})})},y=()=>{i&&(d.unsubscribeFocus=tO().subscribe(()=>{m({event:"visibilitychange"})}))},T=()=>{d.unsubscribeOnline=AS().subscribe(P=>{P&&m({event:"visibilitychange"})})};return{init:()=>{f(),b(),y(),T(),CS().setup(),tO().setup(),AS().setup()},cleanup:()=>{d.pollInterval&&(clearInterval(d.pollInterval),d.pollInterval=void 0),d.unsubscribeBroadcast&&(d.unsubscribeBroadcast(),d.unsubscribeBroadcast=void 0),d.unsubscribeFocus&&(d.unsubscribeFocus(),d.unsubscribeFocus=void 0),d.unsubscribeOnline&&(d.unsubscribeOnline(),d.unsubscribeOnline=void 0),d.lastSync=0,d.lastSessionRequest=0,d.cachedSession=void 0},triggerRefetch:m,broadcastSessionUpdate:h}}function $J(t,e){const a=hd(!1),o=mp(a,"/get-session",t,{method:"GET"});return dB(o,()=>{const n=qJ({sessionAtom:o,sessionSignal:a,$fetch:t,options:e});return n.init(),()=>{n.cleanup()}}),{session:o,$sessionSignal:a}}function RS(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function O0(t,e,a=".",o){if(!RS(e))return O0(t,{},a,o);const n={...e};for(const r of Object.keys(t)){if(r==="__proto__"||r==="constructor")continue;const i=t[r];i!=null&&(o&&o(n,r,i,a)||(Array.isArray(i)&&Array.isArray(n[r])?n[r]=[...i,...n[r]]:RS(i)&&RS(n[r])?n[r]=O0(i,n[r],(a?`${a}.`:"")+r.toString(),o):n[r]=i))}return n}function VJ(t){return(...e)=>e.reduce((a,o)=>O0(a,o,"",t),{})}const HJ=VJ();var GJ=Object.defineProperty,WJ=Object.defineProperties,KJ=Object.getOwnPropertyDescriptors,aO=Object.getOwnPropertySymbols,YJ=Object.prototype.hasOwnProperty,ZJ=Object.prototype.propertyIsEnumerable,oO=(t,e,a)=>e in t?GJ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,Tr=(t,e)=>{for(var a in e||(e={}))YJ.call(e,a)&&oO(t,a,e[a]);if(aO)for(var a of aO(e))ZJ.call(e,a)&&oO(t,a,e[a]);return t},Ur=(t,e)=>WJ(t,KJ(e)),QJ=class extends Error{constructor(t,e,a){super(e||t.toString(),{cause:a}),this.status=t,this.statusText=e,this.error=a,Error.captureStackTrace(this,this.constructor)}},JJ=async(t,e)=>{var a,o,n,r,i,c;let d=e||{};const u={onRequest:[e?.onRequest],onResponse:[e?.onResponse],onSuccess:[e?.onSuccess],onError:[e?.onError],onRetry:[e?.onRetry]};if(!e||!e?.plugins)return{url:t,options:d,hooks:u};for(const m of e?.plugins||[]){if(m.init){const h=await((a=m.init)==null?void 0:a.call(m,t.toString(),e));d=h.options||d,t=h.url}u.onRequest.push((o=m.hooks)==null?void 0:o.onRequest),u.onResponse.push((n=m.hooks)==null?void 0:n.onResponse),u.onSuccess.push((r=m.hooks)==null?void 0:r.onSuccess),u.onError.push((i=m.hooks)==null?void 0:i.onError),u.onRetry.push((c=m.hooks)==null?void 0:c.onRetry)}return{url:t,options:d,hooks:u}},nO=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(){return this.options.delay}},XJ=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(t){return Math.min(this.options.maxDelay,this.options.baseDelay*2**t)}};function eX(t){if(typeof t=="number")return new nO({type:"linear",attempts:t,delay:1e3});switch(t.type){case"linear":return new nO(t);case"exponential":return new XJ(t);default:throw new Error("Invalid retry strategy")}}var tX=async t=>{const e={},a=async o=>typeof o=="function"?await o():o;if(t?.auth){if(t.auth.type==="Bearer"){const o=await a(t.auth.token);if(!o)return e;e.authorization=`Bearer ${o}`}else if(t.auth.type==="Basic"){const[o,n]=await Promise.all([a(t.auth.username),a(t.auth.password)]);if(!o||!n)return e;e.authorization=`Basic ${btoa(`${o}:${n}`)}`}else if(t.auth.type==="Custom"){const[o,n]=await Promise.all([a(t.auth.prefix),a(t.auth.value)]);if(!n)return e;e.authorization=`${o??""} ${n}`}}return e},aX=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function oX(t){const e=t.headers.get("content-type"),a=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!e)return"json";const o=e.split(";").shift()||"";return aX.test(o)?"json":a.has(o)||o.startsWith("text/")?"text":"blob"}function nX(t){try{return JSON.parse(t),!0}catch{return!1}}function N0(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}function rO(t){try{return JSON.parse(t)}catch{return t}}function sO(t){return typeof t=="function"}function rX(t){if(t?.customFetchImpl)return t.customFetchImpl;if(typeof globalThis<"u"&&sO(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&sO(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function sX(t){const e=new Headers(t?.headers),a=await tX(t);for(const[o,n]of Object.entries(a||{}))e.set(o,n);if(!e.has("content-type")){const o=iX(t?.body);o&&e.set("content-type",o)}return e}function iX(t){return N0(t)?"application/json":null}function lX(t){if(!t?.body)return null;const e=new Headers(t?.headers);if(N0(t.body)&&!e.has("content-type")){for(const[a,o]of Object.entries(t?.body))o instanceof Date&&(t.body[a]=o.toISOString());return JSON.stringify(t.body)}return e.has("content-type")&&e.get("content-type")==="application/x-www-form-urlencoded"&&N0(t.body)?new URLSearchParams(t.body).toString():t.body}function cX(t,e){var a;if(e?.method)return e.method.toUpperCase();if(t.startsWith("@")){const o=(a=t.split("@")[1])==null?void 0:a.split("/")[0];return pB.includes(o)?o.toUpperCase():e?.body?"POST":"GET"}return e?.body?"POST":"GET"}function dX(t,e){let a;return!t?.signal&&t?.timeout&&(a=setTimeout(()=>e?.abort(),t?.timeout)),{abortTimeout:a,clearTimeout:()=>{a&&clearTimeout(a)}}}var uX=class uB extends Error{constructor(e,a){super(a||JSON.stringify(e,null,2)),this.issues=e,Object.setPrototypeOf(this,uB.prototype)}};async function vf(t,e){const a=await t["~standard"].validate(e);if(a.issues)throw new uX(a.issues);return a.value}var pB=["get","post","put","patch","delete"],pX=t=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,a){var o,n,r,i;const c=((n=(o=t.plugins)==null?void 0:o.find(d=>{var u;return(u=d.schema)!=null&&u.config?e.startsWith(d.schema.config.baseURL||"")||e.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:n.schema)||t.schema;if(c){let d=e;(r=c.config)!=null&&r.prefix&&d.startsWith(c.config.prefix)&&(d=d.replace(c.config.prefix,""),c.config.baseURL&&(e=e.replace(c.config.prefix,c.config.baseURL))),(i=c.config)!=null&&i.baseURL&&d.startsWith(c.config.baseURL)&&(d=d.replace(c.config.baseURL,""));const u=c.schema[d];if(u){let m=Ur(Tr({},a),{method:u.method,output:u.output});return a?.disableValidation||(m=Ur(Tr({},m),{body:u.input?await vf(u.input,a?.body):a?.body,params:u.params?await vf(u.params,a?.params):a?.params,query:u.query?await vf(u.query,a?.query):a?.query})),{url:e,options:m}}}return{url:e,options:a}}}),mX=t=>{async function e(a,o){const n=Ur(Tr(Tr({},t),o),{plugins:[...t?.plugins||[],pX(t||{}),...o?.plugins||[]]});if(t?.catchAllError)try{return await M0(a,n)}catch(r){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:r}}}return await M0(a,n)}return e};function hX(t,e){const{baseURL:a,params:o,query:n}=e||{query:{},params:{},baseURL:""};let r=t.startsWith("http")?t.split("/").slice(0,3).join("/"):a||"";if(t.startsWith("@")){const h=t.toString().split("@")[1].split("/")[0];pB.includes(h)&&(t=t.replace(`@${h}/`,"/"))}r.endsWith("/")||(r+="/");let[i,c]=t.replace(r,"").split("?");const d=new URLSearchParams(c);for(const[h,f]of Object.entries(n||{})){if(f==null)continue;let b;if(typeof f=="string")b=f;else if(Array.isArray(f)){for(const y of f)d.append(h,y);continue}else b=JSON.stringify(f);d.set(h,b)}if(o)if(Array.isArray(o)){const h=i.split("/").filter(f=>f.startsWith(":"));for(const[f,b]of h.entries()){const y=o[f];i=i.replace(b,y)}}else for(const[h,f]of Object.entries(o))i=i.replace(`:${h}`,String(f));i=i.split("/").map(encodeURIComponent).join("/"),i.startsWith("/")&&(i=i.slice(1));let u=d.toString();return u=u.length>0?`?${u}`.replace(/\+/g,"%20"):"",r.startsWith("http")?new URL(`${i}${u}`,r):`${r}${i}${u}`}var M0=async(t,e)=>{var a,o,n,r,i,c,d,u;const{hooks:m,url:h,options:f}=await JJ(t,e),b=rX(f),y=new AbortController,T=(a=f.signal)!=null?a:y.signal,x=hX(h,f),w=lX(f),P=await sX(f),k=cX(h,f);let E=Ur(Tr({},f),{url:x,headers:P,body:w,method:k,signal:T});for(const F of m.onRequest)if(F){const W=await F(E);typeof W=="object"&&W!==null&&(E=W)}("pipeTo"in E&&typeof E.pipeTo=="function"||typeof((o=e?.body)==null?void 0:o.pipe)=="function")&&("duplex"in E||(E.duplex="half"));const{clearTimeout:_}=dX(f,y);let D=await b(E.url,E);_();const R={response:D,request:E};for(const F of m.onResponse)if(F){const W=await F(Ur(Tr({},R),{response:(n=e?.hookOptions)!=null&&n.cloneResponse?D.clone():D}));W instanceof Response?D=W:typeof W=="object"&&W!==null&&(D=W.response)}if(D.ok){if(!(E.method!=="HEAD"))return{data:"",error:null};const W=oX(D),ae={data:null,response:D,request:E};if(W==="json"||W==="text"){const H=await D.text(),K=(r=E.jsonParser)!=null?r:rO;ae.data=await K(H)}else ae.data=await D[W]();E?.output&&E.output&&!E.disableValidation&&(ae.data=await vf(E.output,ae.data));for(const H of m.onSuccess)H&&await H(Ur(Tr({},ae),{response:(i=e?.hookOptions)!=null&&i.cloneResponse?D.clone():D}));return e?.throw?ae.data:{data:ae.data,error:null}}const O=(c=e?.jsonParser)!=null?c:rO,L=await D.text(),q=nX(L),B=q?await O(L):null,z={response:D,responseText:L,request:E,error:Ur(Tr({},B),{status:D.status,statusText:D.statusText})};for(const F of m.onError)F&&await F(Ur(Tr({},z),{response:(d=e?.hookOptions)!=null&&d.cloneResponse?D.clone():D}));if(e?.retry){const F=eX(e.retry),W=(u=e.retryAttempt)!=null?u:0;if(await F.shouldAttemptRetry(W,D)){for(const H of m.onRetry)H&&await H(R);const ae=F.getDelay(W);return await new Promise(H=>setTimeout(H,ae)),await M0(t,Ur(Tr({},e),{retryAttempt:W+1}))}}if(e?.throw)throw new QJ(D.status,D.statusText,q?B:L);return{data:null,error:Ur(Tr({},B),{status:D.status,statusText:D.statusText})}};const gX=(t,e)=>{const a="credentials"in Request.prototype,o=wJ(t?.baseURL,t?.basePath)??"/api/auth",n=t?.plugins?.flatMap(E=>E.fetchPlugins).filter(E=>E!==void 0)||[],r={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:t?.fetchOptions?.onSuccess,onError:t?.fetchOptions?.onError,onRequest:t?.fetchOptions?.onRequest,onResponse:t?.fetchOptions?.onResponse}},{onSuccess:i,onError:c,onRequest:d,onResponse:u,...m}=t?.fetchOptions||{},h=mX({baseURL:o,...a?{credentials:"include"}:{},method:"GET",jsonParser(E){return E?RJ(E,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[r,...m.plugins||[],...t?.disableDefaultFetchPlugins?[]:[xJ],...n]}),{$sessionSignal:f,session:b}=$J(h,t),y=t?.plugins||[];let T={};const x={$sessionSignal:f,session:b},w={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},P=[{signal:"$sessionSignal",matcher(E){return E==="/sign-out"||E==="/update-user"||E==="/sign-up/email"||E==="/sign-in/email"||E==="/delete-user"||E==="/verify-email"||E==="/revoke-sessions"||E==="/revoke-session"||E==="/change-email"}}];for(const E of y)E.getAtoms&&Object.assign(x,E.getAtoms?.(h)),E.pathMethods&&Object.assign(w,E.pathMethods),E.atomListeners&&P.push(...E.atomListeners);const k={notify:E=>{x[E].set(!x[E].get())},listen:(E,_)=>{x[E].subscribe(_)},atoms:x};for(const E of y)E.getActions&&(T=HJ(E.getActions?.(h,k,t)??{},T));return{get baseURL(){return o},pluginsActions:T,pluginsAtoms:x,pluginPathMethods:w,atomListeners:P,$fetch:h,$store:k}};function fX(t){return typeof t=="object"&&t!==null&&"get"in t&&typeof t.get=="function"&&"lc"in t&&typeof t.lc=="number"}function bX(t,e,a){const o=e[t],{fetchOptions:n,query:r,...i}=a||{};return o||(n?.method?n.method:i&&Object.keys(i).length>0?"POST":"GET")}function vX(t,e,a,o,n){function r(i=[]){return new Proxy(function(){},{get(c,d){if(typeof d!="string"||d==="then"||d==="catch"||d==="finally")return;const u=[...i,d];let m=t;for(const h of u)if(m&&typeof m=="object"&&h in m)m=m[h];else{m=void 0;break}return typeof m=="function"||fX(m)?m:r(u)},apply:async(c,d,u)=>{const m="/"+i.map(P=>P.replace(/[A-Z]/g,k=>`-${k.toLowerCase()}`)).join("/"),h=u[0]||{},f=u[1]||{},{query:b,fetchOptions:y,...T}=h,x={...f,...y},w=bX(m,a,h);return await e(m,{...x,body:w==="GET"?void 0:{...T,...x?.body||{}},query:b||x?.query,method:w,async onSuccess(P){if(await x?.onSuccess?.(P),!n||x.disableSignal)return;const k=n.filter(_=>_.matcher(m));if(!k.length)return;const E=new Set;for(const _ of k){const D=o[_.signal];if(!D)return;if(E.has(_.signal))continue;E.add(_.signal);const R=D.get();setTimeout(()=>{D.set(!R)},10)}}})}})}return r()}function yX(t,e={}){const a=A.useRef(t.get()),{keys:o,deps:n=[t,o]}=e,r=A.useCallback(c=>{const d=u=>{a.current!==u&&(a.current=u,c())};return d(t.value),o?.length?IJ(t,o,d):t.listen(d)},n),i=()=>a.current;return A.useSyncExternalStore(r,i,i)}function TX(t){return`use${yJ(t)}`}function SX(t){const{pluginPathMethods:e,pluginsActions:a,pluginsAtoms:o,$fetch:n,$store:r,atomListeners:i}=gX(t),c={};for(const[d,u]of Object.entries(o))c[TX(d)]=()=>yX(u);return vX({...a,...c,$fetch:n,$store:r},n,e,o,i)}function wX(t){return{authorize(e,a="AND"){let o=!1;for(const[n,r]of Object.entries(e)){const i=t[n];if(!i)return{success:!1,error:`You are not allowed to access resource: ${n}`};if(Array.isArray(r))o=r.every(c=>i.includes(c));else if(typeof r=="object"){const c=r;c.connector==="OR"?o=c.actions.some(d=>i.includes(d)):o=c.actions.every(d=>i.includes(d))}else throw new Pp("Invalid access control request");if(o&&a==="OR")return{success:o};if(!o&&a==="AND")return{success:!1,error:`unauthorized to access resource "${n}"`}}return o?{success:o}:{success:!1,error:"Not authorized"}},statements:t}}function mB(t){return{newRole(e){return wX(e)},statements:t}}const xX={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},hB=mB(xX),gB=hB.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),fB=hB.newRole({user:[],session:[]}),PX={admin:gB,user:fB},EX=t=>{if(t.userId&&t.options?.adminUserIds?.includes(t.userId))return!0;if(!t.permissions&&!t.permission)return!1;const e=(t.role||t.options?.defaultRole||"user").split(","),a=t.options?.roles||PX;for(const o of e)if(a[o]?.authorize(t.permission??t.permissions)?.success)return!0;return!1},CX=t=>{const e={admin:gB,user:fB,...t?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:a=>EX({role:a.role,options:{ac:t?.ac,roles:e},permissions:a.permissions??a.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},kX=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:t=>t==="/email-otp/verify-email"||t==="/sign-in/email-otp",signal:"$sessionSignal"}]}),_X=()=>({id:"magic-link",$InferServerPlugin:{}}),AX={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},WP=mB(AX),bB=WP.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),vB=WP.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),yB=WP.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),RX={admin:bB,owner:vB,member:yB},DX=(t,e)=>{if(!t.permissions&&!t.permission)return!1;const a=t.role.split(","),o=t.options.creatorRole||"owner",n=a.includes(o),r=t.allowCreatorAllPermissions||!1;if(n&&r)return!0;for(const i of a)if(e[i]?.authorize(t.permissions??t.permission)?.success)return!0;return!1},OX=t=>DX(t,t.options.roles||RX),NX=t=>{const e=hd(!1),a=hd(!1),o=hd(!1),n=hd(!1),r={admin:bB,member:yB,owner:vB,...t?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(i,c,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:u=>OX({role:u.role,options:{ac:t?.ac,roles:r},permissions:u.permissions??u.permission})}}),getAtoms:i=>{const c=mp(e,"/organization/list",i,{method:"GET"});return{$listOrg:e,$activeOrgSignal:a,$activeMemberSignal:o,$activeMemberRoleSignal:n,activeOrganization:mp([a],"/organization/get-full-organization",i,()=>({method:"GET"})),listOrganizations:c,activeMember:mp([o],"/organization/get-active-member",i,{method:"GET"}),activeMemberRole:mp([n],"/organization/get-active-member-role",i,{method:"GET"})}},pathMethods:{"/organization/get-full-organization":"GET","/organization/list-user-teams":"GET"},atomListeners:[{matcher(i){return i==="/organization/create"||i==="/organization/delete"||i==="/organization/update"},signal:"$listOrg"},{matcher(i){return i.startsWith("/organization")},signal:"$activeOrgSignal"},{matcher(i){return i.startsWith("/organization/set-active")},signal:"$sessionSignal"},{matcher(i){return i.includes("/organization/update-member-role")},signal:"$activeMemberSignal"},{matcher(i){return i.includes("/organization/update-member-role")},signal:"$activeMemberRoleSignal"}]}},MX="1.6.11",IX=t=>({id:"sso-client",version:MX,$InferServerPlugin:{},pathMethods:{"/sso/providers":"GET","/sso/get-provider":"GET"}});function LX(t){let e=t;if(typeof t=="string")try{e=JSON.parse(t)}catch{return{}}return e&&typeof e=="object"&&!Array.isArray(e)?Object.fromEntries(Object.entries(e)):{}}function TB(t){return LX(t?.metadata).archived===!0}function SB(t){const e=new Set;return t.filter(a=>TB(a)||e.has(a.id)?!1:(e.add(a.id),!0))}const BX="Organization is archived",ro=SX({plugins:[NX({}),CX(),IX(),_X(),kX()]}),FX=8e3;let iO;function wB(){return iO??=new Promise(t=>{const e=setTimeout(t,FX);ro.$store.listen("session",a=>{a&&typeof a=="object"&&"isPending"in a&&(a.isPending||(clearTimeout(e),t()))})}),iO}const jX=Se({data:Se({user:Se({id:$()})}).nullish()});function zX(){const t=jX.safeParse(ro.$store.atoms.session?.get());return t.success?t.data.data?.user.id:void 0}const UX=3e4;let hp=null,zg=null;function xB(){if(hp&&hp.expiresAt>Date.now())return Promise.resolve(hp.result);if(zg)return zg;const t=ro.organization.list().then(e=>{const a=e.data?{...e,data:SB(e.data)}:e;return a.data&&(hp={result:a,expiresAt:Date.now()+UX}),a}).finally(()=>{zg=null});return zg=t,t}function xwe(){const t=ro.useListOrganizations(),e=t.data?SB(t.data):void 0;return{...t,data:e}}function Pwe(){hp=null}const qX="modulepreload",$X=function(t){return"/"+t},lO={},Le=function(e,a,o){let n=Promise.resolve();if(a&&a.length>0){let i=function(u){return Promise.all(u.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");n=i(a.map(u=>{if(u=$X(u),u in lO)return;lO[u]=!0;const m=u.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const f=document.createElement("link");if(f.rel=m?"stylesheet":qX,m||(f.as="script"),f.crossOrigin="",f.href=u,d&&f.setAttribute("nonce",d),document.head.appendChild(f),m)return new Promise((b,y)=>{f.addEventListener("load",b),f.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${u}`)))})}))}function r(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return n.then(i=>{for(const c of i||[])c.status==="rejected"&&r(c.reason);return e().catch(r)})};function VX(t){try{return JSON.parse(t)}catch{return}}function cO(t,e){if(typeof localStorage>"u")return typeof e=="function"?e(void 0):e;const a=localStorage.getItem(t),o=a?VX(a):void 0,n=typeof e=="function"?e(o):o??e;if(o===void 0||n!==o)try{const r=JSON.stringify(n);localStorage.setItem(t,r)}catch{}return n}function HX(t,e){const a=ye.c(17),o=Wd();let n;a[0]!==t?(n=["localStorage",t],a[0]=t,a[1]=n):n=a[1];const r=n;let i,c;a[2]!==e||a[3]!==t?(i=()=>cO(t,e),c=()=>cO(t,e),a[2]=e,a[3]=t,a[4]=i,a[5]=c):(i=a[4],c=a[5]);let d;a[6]!==r||a[7]!==i||a[8]!==c?(d={queryKey:r,queryFn:i,initialData:c,staleTime:1/0,gcTime:1/0},a[6]=r,a[7]=i,a[8]=c,a[9]=d):d=a[9];const{data:u}=Hi(d);let m;a[10]!==t||a[11]!==o||a[12]!==r?(m=y=>{const T=o.getQueryData(r),x=typeof y=="function"?y(T):y;typeof localStorage<"u"&&localStorage.setItem(t,JSON.stringify(x)),o.setQueryData(r,x)},a[10]=t,a[11]=o,a[12]=r,a[13]=m):m=a[13];const h=m,f=u;let b;return a[14]!==h||a[15]!==f?(b=[f,h],a[14]=h,a[15]=f,a[16]=b):b=a[16],b}const Zi={chatSelectedImageModel:t=>`studio:chat:selectedImageModel:${t}`,chatSelectedWebSearchModel:t=>`studio:chat:selectedWebSearchModel:${t}`,chatSelectedDeepResearchModel:t=>`studio:chat:selectedDeepResearchModel:${t}`,chatSimpleModeTier:t=>`studio:chat:simpleModeTier:${t}`,chatAutosend:(t,e)=>`studio:chat:autosend:${t}:${e}`,chatThreadIntent:(t,e)=>`studio:chat:threadIntent:${t}:${e}`,homeTaskMode:t=>`home-task-mode:${t}`,chatDraft:(t,e)=>`studio:chat:draft:${t}:${e}`,taskBoardPrs:t=>`studio:task-board-prs:${t}`,taskFeedBehindTheScenes:()=>"studio:task-feed:behind-the-scenes",taskBoardAssignee:(t,e)=>`studio:task-board-assignee:${t}:${e}`,recentApps:t=>`studio:recent-apps:${t}`,recentProjects:t=>`studio:recent-projects:${t}`,recentOrgs:()=>"studio:recent-orgs",railOrgPrefs:()=>"studio:rail-org-prefs",sidePanelWidth:()=>"studio:side-panel:width",sidebarOpen:()=>"studio:sidebar-open",preferences:()=>"studio:user:preferences",lastOrgSlug:()=>"studio:last-org-slug",lastLocation:()=>"studio:last-location",connectionsTab:t=>`studio:connections:tab:${t}`,taskLastViewed:t=>`studio:chat:task-last-viewed:${t}`,sidebarSectionOpen:(t,e)=>`studio:sidebar:section-open:${t}:${e}`,ptBrAnnouncementSeen:t=>`studio:announcement:pt-br:${t}`,localPreviewUrl:t=>`studio:local-preview-url:${t}`,previewDeviceSize:t=>`studio:preview:device-size:${t}`,previewEditingMode:t=>`studio:preview:editing-mode:${t}`,previewAppLayout:t=>`studio:preview:app-layout:${t}`,arrayFieldLayout:()=>"studio:cms:array-field-layout",decoServeConnection:(t,e)=>`studio:deco-serve-connection:${t}:${e}`,decoServeEndpoint:(t,e)=>`studio:deco-serve-endpoint:${t}:${e}`},PB=["en","pt-BR"];function KP(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const GX={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:KP(),taskBoardLaneVisibility:{},collapsedTaskBoardLanes:[]},EB=["auto","readonly"],Ewe=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],WX=["light","dark","system"];function Cwe(){try{const t=JSON.parse(localStorage.getItem(Zi.preferences())??"{}");if(EB.includes(t.toolApprovalLevel))return t.toolApprovalLevel}catch{}return"auto"}function ov(){try{const t=JSON.parse(localStorage.getItem(Zi.preferences())??"{}");if(PB.includes(t.language))return t.language}catch{}return KP()}function KX(t){const e={};if(Array.isArray(t.shownTaskBoardLanes))for(const o of t.shownTaskBoardLanes)typeof o=="string"&&(e[o]=!0);const a=t.taskBoardLaneVisibility;if(a&&typeof a=="object"&&!Array.isArray(a))for(const[o,n]of Object.entries(a))typeof n=="boolean"&&(e[o]=n);return e}function nv(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=Zi.preferences(),t[0]=e):e=t[0],HX(e,YX)}function YX(t){const e={...GX,...t};return"showProjectSettingsGear"in e&&delete e.showProjectSettingsGear,"compactPageLayout"in e&&delete e.compactPageLayout,EB.includes(e.toolApprovalLevel)||(e.toolApprovalLevel="auto"),WX.includes(e.theme)||(e.theme="system"),PB.includes(e.language)||(e.language=KP()),e.taskBoardLaneVisibility=KX(e),"shownTaskBoardLanes"in e&&delete e.shownTaskBoardLanes,Array.isArray(e.collapsedTaskBoardLanes)||(e.collapsedTaskBoardLanes=[]),typeof e.projectFirstNav!="boolean"&&delete e.projectFirstNav,e}const ZX=A.createContext(!1),QX=Date.parse("2026-10-22T00:00:00Z");function JX(t,e){if(t!==void 0)return t;const a=e instanceof Date?e.getTime():typeof e=="string"||typeof e=="number"?new Date(e).getTime():Number.NaN;return Number.isFinite(a)&&a>=QX}function kwe(){const t=ye.c(4),e=A.use(ZX),[a]=nv(),{data:o}=ro.useSession();let n;return t[0]!==e||t[1]!==a||t[2]!==o?.user?.createdAt?(n=e||JX(a.projectFirstNav,o?.user?.createdAt),t[0]=e,t[1]=a,t[2]=o?.user?.createdAt,t[3]=n):n=t[3],n}const XX={"page.overview":"Overview","page.app":"App","page.view":"View","page.file":"File","page.document":"Document","page.item":"Item","page.breadcrumbs":"Breadcrumbs","page.breadcrumbMenu":"Show navigation path","page.views":"Page views","page.openThread":"Open chat","page.closeThread":"Close chat","page.collapseSidebar":"Collapse sidebar","page.expandSidebar":"Expand sidebar"},eee={"projects.overview.metrics":"Metrics","projects.platform.vtex":"VTEX","projects.platform.shopify":"Shopify","projects.platform.wake":"Wake","projects.platform.nuvemshop":"Nuvemshop","projects.platform.linx":"Linx","projects.platform.vnda":"VNDA","projects.home.newProject":"New project","projects.card.updated":"Updated {time}","projects.empty.title":"Your commerce, one project at a time","projects.empty.description":"A site, an app, a store. Each one keeps its own connections, report and board.","projects.empty.readOnly":"Ask an admin to create the first project.","projects.new.title":"New project","projects.new.subtitle":"What are you setting up?","projects.new.back":"Back","projects.new.create":"Create project","projects.new.creating":"Creating…","projects.new.nameLabel":"Project name","projects.new.namePlaceholder":"Farm web","projects.new.nameRequired":"Give the project a name","projects.new.failed":"Couldn't create the project","projects.new.created":"{title} is ready","projects.new.path.repository":"Import a codebase","projects.new.path.repository.hint":"Bring a storefront or app codebase in","projects.new.path.folder":"New project folder","projects.new.path.folder.hint":"Name it now, connect it later","projects.new.step.folder.title":"Name your project","projects.reports.chooserTitle":"Continue to Reports","projects.reports.chooserSubtitle":"Choose a project to continue","projects.reports.chooserSearch":"Find project…","projects.reports.chooserEmpty":"No project by that name.","projects.reports.status.ready":"Ready","projects.reports.status.running":"Running","projects.reports.status.none":"Not run","projects.reports.status.locked":"Locked","projects.connections.orgWide":"Organization-wide","projects.connections.usedBy":"{count} projects","projects.settings.title":"Projects","projects.settings.searchPlaceholder":"Search projects…","projects.settings.open":"Open","projects.settings.openSettings":"Settings","projects.settings.noResults":"No projects match “{search}”","projects.identity.storeUrlLabel":"Store URL","projects.identity.storeUrlDescription":"The live storefront. Reports run against this address.","projects.apps.reports":"Report","projects.apps.siteEditor":"Site editor","projects.apps.assets":"Assets","projects.apps.releases":"Releases","projects.apps.hosting":"Hosting","projects.apps.e2e":"End-to-end tests","projects.apps.analytics":"Analytics","projects.apps.cdn":"Monitor","projects.apps.automations":"Automations","projects.apps.experiments":"Experiments","projects.apps.calendar":"Calendar"},tee={"virtualMcp.addConnectionDialog.addConnectionTitle":"Add Connection","virtualMcp.addConnectionDialog.authenticationFailedError":"Authentication failed: {error}","virtualMcp.addConnectionDialog.connected":"Connected","virtualMcp.addConnectionDialog.connectedAuthenticated":"Connected and authenticated","virtualMcp.addConnectionDialog.connectionsTitle":"Connections","virtualMcp.addConnectionDialog.failedToAddConnection":"Failed to add connection","virtualMcp.addConnectionDialog.failedToConnect":"Failed to connect","virtualMcp.addConnectionDialog.mcpServerConnectionError":"This MCP Server cannot be connected: no connection method available","virtualMcp.addConnectionDialog.searchConnectionsPlaceholder":"Search connections...","virtualMcp.addConnectionDialog.signInFailedDescription":"It was added to your project, but its sign-in setup looks off. You can try authenticating again later from the connection's settings. ({error})","virtualMcp.addConnectionDialog.signInFailedTitle":"Couldn't sign in to this connection","virtualMcp.connectionDialogContent.add":"Add","virtualMcp.connectionDialogContent.added":"Added","virtualMcp.connectionDialogContent.builtByDeco":"Built and maintained by Deco","virtualMcp.connectionDialogContent.builtByOfficial":"Built and maintained by the official vendor","virtualMcp.connectionDialogContent.connect":"Connect","virtualMcp.connectionDialogContent.connected":"Connected","virtualMcp.connectionDialogContent.customConnection":"Custom Connection","virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable":"No connections available","virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"No connections yet","virtualMcp.connectionDialogContent.emptyStateSearchNoMatch":'No connections match "{search}"',"virtualMcp.connectionDialogContent.madeByDeco":"Made by Deco","virtualMcp.connectionDialogContent.sectionAllConnections":"All connections","virtualMcp.connectionDialogContent.sectionVerified":"Verified","virtualMcp.connectionDialogContent.tabAll":"All","virtualMcp.connectionDialogContent.tabConnected":"Connected","virtualMcp.connectionDialogContent.verifiedByDeco":"Verified by the Deco team","virtualMcp.connectionItem.authorize":"Authorize","virtualMcp.connectionItem.configureResources":"Configure resources","virtualMcp.connectionItem.connectionDisabled":"Connection disabled","virtualMcp.connectionItem.connectionEnabled":"Connection enabled","virtualMcp.connectionItem.connectionNotFound":"Connection not found","virtualMcp.connectionItem.connectionSettings":"Connection settings","virtualMcp.connectionItem.disable":"Disable","virtualMcp.connectionItem.disableConnection":"Disable connection","virtualMcp.connectionItem.disabled":"Disabled","virtualMcp.connectionItem.disabledError":"Disabled (error)","virtualMcp.connectionItem.enable":"Enable","virtualMcp.connectionItem.failedToUpdateConnection":"Failed to update connection","virtualMcp.connectionItem.needsAuthorization":"Needs authorization","virtualMcp.connectionItem.newInstance":"New instance","virtualMcp.connectionItem.remove":"Remove","virtualMcp.connectionItem.removeConnection":"Remove connection","virtualMcp.dependencySelectionDialog.authorizationDescription":"This connection needs to be authorized before you can configure its tools and resources.","virtualMcp.dependencySelectionDialog.authorizationRequired":"Authorization required","virtualMcp.dependencySelectionDialog.authorize":"Authorize","virtualMcp.dependencySelectionDialog.deselectAll":"Deselect all","virtualMcp.dependencySelectionDialog.done":"Done","virtualMcp.dependencySelectionDialog.noActiveToolsSelected":"No active tools selected","virtualMcp.dependencySelectionDialog.noPromptsAvailable":"No prompts available","virtualMcp.dependencySelectionDialog.noResourcesAvailable":"No resources available","virtualMcp.dependencySelectionDialog.noToolsAvailable":"No tools available","virtualMcp.dependencySelectionDialog.promptsNotSupported":"Prompts not supported by this server","virtualMcp.dependencySelectionDialog.resourcesNotSupported":"Resources not supported by this server","virtualMcp.dependencySelectionDialog.selectAll":"Select all","virtualMcp.dependencySelectionDialog.somethingWentWrong":"Something went wrong","virtualMcp.dependencySelectionDialog.tabActive":"Active","virtualMcp.dependencySelectionDialog.tabPrompts":"Prompts","virtualMcp.dependencySelectionDialog.tabResources":"Resources","virtualMcp.dependencySelectionDialog.tabTools":"Tools","virtualMcp.dependencySelectionDialog.toolsNotSupported":"Tools not supported by this server","virtualMcp.dependencySelectionDialog.unexpectedError":"An unexpected error occurred","virtualMcp.filesSection.add":"Add","virtualMcp.filesSection.description":"Attach files and skills the project can always reference.","virtualMcp.filesSection.failedUploadFile":"Failed to upload file.","virtualMcp.filesSection.fileTooLargeDescription":"Exceeds the 25MB limit, not uploaded: {names}","virtualMcp.filesSection.fileTooLargeTitle":"File too large","virtualMcp.filesSection.filesAndSkills":"Files and skills","virtualMcp.filesSection.kindFile":"File","virtualMcp.filesSection.kindSkill":"Skill","virtualMcp.filesSection.noFilesFound":"No files found.","virtualMcp.filesSection.noFilesOrSkillsYet":"No files or skills yet. Add one or drag and drop here.","virtualMcp.filesSection.noSkillsFound":"No skills found.","virtualMcp.filesSection.removeAriaLabel":"Remove {name}","virtualMcp.filesSection.searchFilesPlaceholder":"Search files...","virtualMcp.filesSection.searchSkillsPlaceholder":"Search skills...","virtualMcp.filesSection.selectFileOrFolder":"Select file or folder","virtualMcp.filesSection.selectSkill":"Select skill","virtualMcp.filesSection.uploadFile":"Upload file","virtualMcp.layoutTabContent.noMainView":"No main view","virtualMcp.layoutTabContent.automations":"Automations","virtualMcp.layoutTabContent.chatAlwaysShown":"Chat is always shown when it is the default view","virtualMcp.layoutTabContent.layout":"Layout","virtualMcp.layoutTabContent.mainView":"Main view","virtualMcp.layoutTabContent.mainViewDescription":"What users see when they first open this project.","virtualMcp.layoutTabContent.settings":"Settings","virtualMcp.layoutTabContent.showChat":"Show chat","virtualMcp.layoutTabContent.showChatDescription":"Display Chat in the side panel alongside the main view.","virtualMcp.layoutTabContent.siteEditor":"Site Editor","virtualMcp.settings.title":"Project settings","virtualMcp.settings.navigation":"Project settings sections","virtualMcp.settings.identity.icon":"Project icon","virtualMcp.settings.identity.iconDescription":"How your project appears in the sidebar and across Studio.","virtualMcp.settings.identity.name":"Project name","virtualMcp.settings.identity.description":"Description","virtualMcp.settings.general.title":"General","virtualMcp.settings.site.title":"CMS","virtualMcp.settings.site.classicTitle":"Site and sandbox","virtualMcp.settings.groups.advanced":"Advanced","virtualMcp.settings.connections.title":"Connections","virtualMcp.settings.views.defaults":"Default layout","virtualMcp.settings.views.sidebar":"Views","virtualMcp.settings.views.open":"Open","virtualMcp.settings.views.pin":"Pin to sidebar","virtualMcp.settings.views.unpin":"Remove from sidebar","virtualMcp.settings.views.setMainView":"Set as main view","virtualMcp.settings.views.rowActions":"View options","virtualMcp.subAgentsSection.addSubAgent":"Add sub-project","virtualMcp.subAgentsSection.anyAgent":"Any project","virtualMcp.subAgentsSection.canDelegateToAnyAgent":"Can delegate to any project in the organization.","virtualMcp.subAgentsSection.canOnlyDelegateToItself":"Can only delegate to a fresh copy of itself, no other projects.","virtualMcp.subAgentsSection.emptyStateMessage":"No sub-projects selected yet. Add one — until then this project can only delegate to itself.","virtualMcp.subAgentsSection.noAgentsFound":"No projects found.","virtualMcp.subAgentsSection.onlyItself":"Only itself","virtualMcp.subAgentsSection.searchPlaceholder":"Search projects...","virtualMcp.subAgentsSection.specificAgents":"Specific projects","virtualMcp.subAgentsSection.title":"Sub-projects","virtualMcp.virtualMcp.addConnection":"Add connection","virtualMcp.virtualMcp.agentDeleted":'Deleted "{title}"',"virtualMcp.virtualMcp.agentNameFallback":"Agent","virtualMcp.virtualMcp.agentNamePlaceholder":"Project name","virtualMcp.virtualMcp.authenticationFailed":"Authentication failed: {error}","virtualMcp.virtualMcp.authenticationSuccessful":"Authentication successful","virtualMcp.virtualMcp.backToSpaces":"Back to spaces","virtualMcp.virtualMcp.cancel":"Cancel","virtualMcp.virtualMcp.connect":"Connect","virtualMcp.virtualMcp.connections":"Connections","virtualMcp.virtualMcp.created":"Created","virtualMcp.virtualMcp.delete":"Delete","virtualMcp.virtualMcp.deleteAgent":"Delete project","virtualMcp.virtualMcp.deleteAgentConfirm":"Delete Project?","virtualMcp.virtualMcp.deleteAgentConfirmDescription":"This action cannot be undone. This will permanently delete {title}.","virtualMcp.virtualMcp.deleteAgentDescription":"Permanently delete this project and all its data.","virtualMcp.virtualMcp.descriptionPlaceholder":"Add a description...","virtualMcp.virtualMcp.failedToCreateInstance":"Failed to create instance","virtualMcp.virtualMcp.fullscreen":"Fullscreen","virtualMcp.virtualMcp.improve":"Improve","virtualMcp.virtualMcp.instanceAlreadyAdded":"This instance is already added to the project","virtualMcp.virtualMcp.instructions":"Instructions","virtualMcp.virtualMcp.instructionsPlaceholder":"Define how this agent should behave, what tone to use, any constraints or guidelines...","virtualMcp.virtualMcp.lastUsed":"Last used {time}","virtualMcp.virtualMcp.neverUsed":"Never used","virtualMcp.virtualMcp.newInstanceCreated":"New instance created","virtualMcp.virtualMcp.noConnectionsYet":"No connections yet. Add one to get started.","virtualMcp.virtualMcp.openFullscreenEditor":"Open fullscreen editor","virtualMcp.virtualMcp.promptTemplate":"+ Prompt template","virtualMcp.virtualMcp.promptTemplateContent":`<role>
|
|
55
|
+
deps: ${m}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(d){const[u,m]=r(d);i(d,u),c(d,m)}};function r({schema:d}){const u={},m={};for(const h in d){if(h==="__proto__")continue;const f=Array.isArray(d[h])?u:m;f[h]=d[h]}return[u,m]}function i(d,u=d.schema){const{gen:m,data:h,it:f}=d;if(Object.keys(u).length===0)return;const b=m.let("missing");for(const y in u){const T=u[y];if(T.length===0)continue;const x=(0,o.propertyInData)(m,h,y,f.opts.ownProperties);d.setParams({property:y,depsCount:T.length,deps:T.join(", ")}),f.allErrors?m.if(x,()=>{for(const w of T)(0,o.checkReportMissingProp)(d,w)}):(m.if((0,e._)`${x} && (${(0,o.checkMissingProp)(d,T,b)})`),(0,o.reportMissingProp)(d,b),m.else())}}t.validatePropertyDeps=i;function c(d,u=d.schema){const{gen:m,data:h,keyword:f,it:b}=d,y=m.name("valid");for(const T in u)(0,a.alwaysValidSchema)(b,u[T])||(m.if((0,o.propertyInData)(m,h,T,b.opts.ownProperties),()=>{const x=d.subschema({keyword:f,schemaProp:T},y);d.mergeValidEvaluated(x,y)},()=>m.var(y,!0)),d.ok(y))}t.validateSchemaDeps=c,t.default=n})(SS)),SS}var xg={},AD;function oQ(){if(AD)return xg;AD=1,Object.defineProperty(xg,"__esModule",{value:!0});const t=Tt(),e=Ft(),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,t._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:r,schema:i,data:c,it:d}=n;if((0,e.alwaysValidSchema)(d,i))return;const u=r.name("valid");r.forIn("key",c,m=>{n.setParams({propertyName:m}),n.subschema({keyword:"propertyNames",data:m,dataTypes:["string"],propertyName:m,compositeRule:!0},u),r.if((0,t.not)(u),()=>{n.error(!0),d.allErrors||r.break()})}),n.ok(u)}};return xg.default=o,xg}var Pg={},RD;function JL(){if(RD)return Pg;RD=1,Object.defineProperty(Pg,"__esModule",{value:!0});const t=Dr(),e=Tt(),a=Yi(),o=Ft(),r={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:i})=>(0,e._)`{additionalProperty: ${i.additionalProperty}}`},code(i){const{gen:c,schema:d,parentSchema:u,data:m,errsCount:h,it:f}=i;if(!h)throw new Error("ajv implementation error");const{allErrors:b,opts:y}=f;if(f.props=!0,y.removeAdditional!=="all"&&(0,o.alwaysValidSchema)(f,d))return;const T=(0,t.allSchemaProperties)(u.properties),x=(0,t.allSchemaProperties)(u.patternProperties);w(),i.ok((0,e._)`${h} === ${a.default.errors}`);function w(){c.forIn("key",m,D=>{!T.length&&!x.length?E(D):c.if(P(D),()=>E(D))})}function P(D){let R;if(T.length>8){const O=(0,o.schemaRefOrVal)(f,u.properties,"properties");R=(0,t.isOwnProperty)(c,O,D)}else T.length?R=(0,e.or)(...T.map(O=>(0,e._)`${D} === ${O}`)):R=e.nil;return x.length&&(R=(0,e.or)(R,...x.map(O=>(0,e._)`${(0,t.usePattern)(i,O)}.test(${D})`))),(0,e.not)(R)}function k(D){c.code((0,e._)`delete ${m}[${D}]`)}function E(D){if(y.removeAdditional==="all"||y.removeAdditional&&d===!1){k(D);return}if(d===!1){i.setParams({additionalProperty:D}),i.error(),b||c.break();return}if(typeof d=="object"&&!(0,o.alwaysValidSchema)(f,d)){const R=c.name("valid");y.removeAdditional==="failing"?(_(D,R,!1),c.if((0,e.not)(R),()=>{i.reset(),k(D)})):(_(D,R),b||c.if((0,e.not)(R),()=>c.break()))}}function _(D,R,O){const L={keyword:"additionalProperties",dataProp:D,dataPropType:o.Type.Str};O===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),i.subschema(L,R)}}};return Pg.default=r,Pg}var Eg={},DD;function nQ(){if(DD)return Eg;DD=1,Object.defineProperty(Eg,"__esModule",{value:!0});const t=ev(),e=Dr(),a=Ft(),o=JL(),n={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:i,schema:c,parentSchema:d,data:u,it:m}=r;m.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&o.default.code(new t.KeywordCxt(m,o.default,"additionalProperties"));const h=(0,e.allSchemaProperties)(c);for(const x of h)m.definedProperties.add(x);m.opts.unevaluated&&h.length&&m.props!==!0&&(m.props=a.mergeEvaluated.props(i,(0,a.toHash)(h),m.props));const f=h.filter(x=>!(0,a.alwaysValidSchema)(m,c[x]));if(f.length===0)return;const b=i.name("valid");for(const x of f)y(x)?T(x):(i.if((0,e.propertyInData)(i,u,x,m.opts.ownProperties)),T(x),m.allErrors||i.else().var(b,!0),i.endIf()),r.it.definedProperties.add(x),r.ok(b);function y(x){return m.opts.useDefaults&&!m.compositeRule&&c[x].default!==void 0}function T(x){r.subschema({keyword:"properties",schemaProp:x,dataProp:x},b)}}};return Eg.default=n,Eg}var Cg={},OD;function rQ(){if(OD)return Cg;OD=1,Object.defineProperty(Cg,"__esModule",{value:!0});const t=Dr(),e=Tt(),a=Ft(),o=Ft(),n={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:i,schema:c,data:d,parentSchema:u,it:m}=r,{opts:h}=m,f=(0,t.allSchemaProperties)(c),b=f.filter(E=>(0,a.alwaysValidSchema)(m,c[E]));if(f.length===0||b.length===f.length&&(!m.opts.unevaluated||m.props===!0))return;const y=h.strictSchema&&!h.allowMatchingProperties&&u.properties,T=i.name("valid");m.props!==!0&&!(m.props instanceof e.Name)&&(m.props=(0,o.evaluatedPropsToName)(i,m.props));const{props:x}=m;w();function w(){for(const E of f)y&&P(E),m.allErrors?k(E):(i.var(T,!0),k(E),i.if(T))}function P(E){for(const _ in y)new RegExp(E).test(_)&&(0,a.checkStrictMode)(m,`property ${_} matches pattern ${E} (use allowMatchingProperties)`)}function k(E){i.forIn("key",d,_=>{i.if((0,e._)`${(0,t.usePattern)(r,E)}.test(${_})`,()=>{const D=b.includes(E);D||r.subschema({keyword:"patternProperties",schemaProp:E,dataProp:_,dataPropType:o.Type.Str},T),m.opts.unevaluated&&x!==!0?i.assign((0,e._)`${x}[${_}]`,!0):!D&&!m.allErrors&&i.if((0,e.not)(T),()=>i.break())})})}}};return Cg.default=n,Cg}var kg={},ND;function sQ(){if(ND)return kg;ND=1,Object.defineProperty(kg,"__esModule",{value:!0});const t=Ft(),e={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(a){const{gen:o,schema:n,it:r}=a;if((0,t.alwaysValidSchema)(r,n)){a.fail();return}const i=o.name("valid");a.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),a.failResult(i,()=>a.reset(),()=>a.error())},error:{message:"must NOT be valid"}};return kg.default=e,kg}var _g={},MD;function iQ(){if(MD)return _g;MD=1,Object.defineProperty(_g,"__esModule",{value:!0});const e={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Dr().validateUnion,error:{message:"must match a schema in anyOf"}};return _g.default=e,_g}var Ag={},ID;function lQ(){if(ID)return Ag;ID=1,Object.defineProperty(Ag,"__esModule",{value:!0});const t=Tt(),e=Ft(),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,t._)`{passingSchemas: ${n.passing}}`},code(n){const{gen:r,schema:i,parentSchema:c,it:d}=n;if(!Array.isArray(i))throw new Error("ajv implementation error");if(d.opts.discriminator&&c.discriminator)return;const u=i,m=r.let("valid",!1),h=r.let("passing",null),f=r.name("_valid");n.setParams({passing:h}),r.block(b),n.result(m,()=>n.reset(),()=>n.error(!0));function b(){u.forEach((y,T)=>{let x;(0,e.alwaysValidSchema)(d,y)?r.var(f,!0):x=n.subschema({keyword:"oneOf",schemaProp:T,compositeRule:!0},f),T>0&&r.if((0,t._)`${f} && ${m}`).assign(m,!1).assign(h,(0,t._)`[${h}, ${T}]`).else(),r.if(f,()=>{r.assign(m,!0),r.assign(h,T),x&&n.mergeEvaluated(x,t.Name)})})}}};return Ag.default=o,Ag}var Rg={},LD;function cQ(){if(LD)return Rg;LD=1,Object.defineProperty(Rg,"__esModule",{value:!0});const t=Ft(),e={keyword:"allOf",schemaType:"array",code(a){const{gen:o,schema:n,it:r}=a;if(!Array.isArray(n))throw new Error("ajv implementation error");const i=o.name("valid");n.forEach((c,d)=>{if((0,t.alwaysValidSchema)(r,c))return;const u=a.subschema({keyword:"allOf",schemaProp:d},i);a.ok(i),a.mergeEvaluated(u)})}};return Rg.default=e,Rg}var Dg={},BD;function dQ(){if(BD)return Dg;BD=1,Object.defineProperty(Dg,"__esModule",{value:!0});const t=Tt(),e=Ft(),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>(0,t.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,t._)`{failingKeyword: ${r.ifClause}}`},code(r){const{gen:i,parentSchema:c,it:d}=r;c.then===void 0&&c.else===void 0&&(0,e.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const u=n(d,"then"),m=n(d,"else");if(!u&&!m)return;const h=i.let("valid",!0),f=i.name("_valid");if(b(),r.reset(),u&&m){const T=i.let("ifClause");r.setParams({ifClause:T}),i.if(f,y("then",T),y("else",T))}else u?i.if(f,y("then")):i.if((0,t.not)(f),y("else"));r.pass(h,()=>r.error(!0));function b(){const T=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);r.mergeEvaluated(T)}function y(T,x){return()=>{const w=r.subschema({keyword:T},f);i.assign(h,f),r.mergeValidEvaluated(w,h),x?i.assign(x,(0,t._)`${T}`):r.setParams({ifClause:T})}}}};function n(r,i){const c=r.schema[i];return c!==void 0&&!(0,e.alwaysValidSchema)(r,c)}return Dg.default=o,Dg}var Og={},FD;function uQ(){if(FD)return Og;FD=1,Object.defineProperty(Og,"__esModule",{value:!0});const t=Ft(),e={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:a,parentSchema:o,it:n}){o.if===void 0&&(0,t.checkStrictMode)(n,`"${a}" without "if" is ignored`)}};return Og.default=e,Og}var jD;function pQ(){if(jD)return yg;jD=1,Object.defineProperty(yg,"__esModule",{value:!0});const t=ZL(),e=XZ(),a=QL(),o=eQ(),n=tQ(),r=aQ(),i=oQ(),c=JL(),d=nQ(),u=rQ(),m=sQ(),h=iQ(),f=lQ(),b=cQ(),y=dQ(),T=uQ();function x(w=!1){const P=[m.default,h.default,f.default,b.default,y.default,T.default,i.default,c.default,r.default,d.default,u.default];return w?P.push(e.default,o.default):P.push(t.default,a.default),P.push(n.default),P}return yg.default=x,yg}var Ng={},Mg={},zD;function mQ(){if(zD)return Mg;zD=1,Object.defineProperty(Mg,"__esModule",{value:!0});const t=Tt(),a={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,t.str)`must match format "${o}"`,params:({schemaCode:o})=>(0,t._)`{format: ${o}}`},code(o,n){const{gen:r,data:i,$data:c,schema:d,schemaCode:u,it:m}=o,{opts:h,errSchemaPath:f,schemaEnv:b,self:y}=m;if(!h.validateFormats)return;c?T():x();function T(){const w=r.scopeValue("formats",{ref:y.formats,code:h.code.formats}),P=r.const("fDef",(0,t._)`${w}[${u}]`),k=r.let("fType"),E=r.let("format");r.if((0,t._)`typeof ${P} == "object" && !(${P} instanceof RegExp)`,()=>r.assign(k,(0,t._)`${P}.type || "string"`).assign(E,(0,t._)`${P}.validate`),()=>r.assign(k,(0,t._)`"string"`).assign(E,P)),o.fail$data((0,t.or)(_(),D()));function _(){return h.strictSchema===!1?t.nil:(0,t._)`${u} && !${E}`}function D(){const R=b.$async?(0,t._)`(${P}.async ? await ${E}(${i}) : ${E}(${i}))`:(0,t._)`${E}(${i})`,O=(0,t._)`(typeof ${E} == "function" ? ${R} : ${E}.test(${i}))`;return(0,t._)`${E} && ${E} !== true && ${k} === ${n} && !${O}`}}function x(){const w=y.formats[d];if(!w){_();return}if(w===!0)return;const[P,k,E]=D(w);P===n&&o.pass(R());function _(){if(h.strictSchema===!1){y.logger.warn(O());return}throw new Error(O());function O(){return`unknown format "${d}" ignored in schema at path "${f}"`}}function D(O){const L=O instanceof RegExp?(0,t.regexpCode)(O):h.code.formats?(0,t._)`${h.code.formats}${(0,t.getProperty)(d)}`:void 0,q=r.scopeValue("formats",{key:d,ref:O,code:L});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,t._)`${q}.validate`]:["string",O,q]}function R(){if(typeof w=="object"&&!(w instanceof RegExp)&&w.async){if(!b.$async)throw new Error("async format in sync schema");return(0,t._)`await ${E}(${i})`}return typeof k=="function"?(0,t._)`${E}(${i})`:(0,t._)`${E}.test(${i})`}}}};return Mg.default=a,Mg}var UD;function hQ(){if(UD)return Ng;UD=1,Object.defineProperty(Ng,"__esModule",{value:!0});const e=[mQ().default];return Ng.default=e,Ng}var Tl={},qD;function gQ(){return qD||(qD=1,Object.defineProperty(Tl,"__esModule",{value:!0}),Tl.contentVocabulary=Tl.metadataVocabulary=void 0,Tl.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Tl.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Tl}var $D;function fQ(){if($D)return og;$D=1,Object.defineProperty(og,"__esModule",{value:!0});const t=zZ(),e=JZ(),a=pQ(),o=hQ(),n=gQ(),r=[t.default,e.default,(0,a.default)(),o.default,n.metadataVocabulary,n.contentVocabulary];return og.default=r,og}var Ig={},Yu={},VD;function bQ(){if(VD)return Yu;VD=1,Object.defineProperty(Yu,"__esModule",{value:!0}),Yu.DiscrError=void 0;var t;return(function(e){e.Tag="tag",e.Mapping="mapping"})(t||(Yu.DiscrError=t={})),Yu}var HD;function vQ(){if(HD)return Ig;HD=1,Object.defineProperty(Ig,"__esModule",{value:!0});const t=Tt(),e=bQ(),a=UP(),o=tv(),n=Ft(),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:d}})=>c===e.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:c,tag:d,tagName:u}})=>(0,t._)`{error: ${c}, tag: ${u}, tagValue: ${d}}`},code(c){const{gen:d,data:u,schema:m,parentSchema:h,it:f}=c,{oneOf:b}=h;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const y=m.propertyName;if(typeof y!="string")throw new Error("discriminator: requires propertyName");if(m.mapping)throw new Error("discriminator: mapping is not supported");if(!b)throw new Error("discriminator: requires oneOf keyword");const T=d.let("valid",!1),x=d.const("tag",(0,t._)`${u}${(0,t.getProperty)(y)}`);d.if((0,t._)`typeof ${x} == "string"`,()=>w(),()=>c.error(!1,{discrError:e.DiscrError.Tag,tag:x,tagName:y})),c.ok(T);function w(){const E=k();d.if(!1);for(const _ in E)d.elseIf((0,t._)`${x} === ${_}`),d.assign(T,P(E[_]));d.else(),c.error(!1,{discrError:e.DiscrError.Mapping,tag:x,tagName:y}),d.endIf()}function P(E){const _=d.name("valid"),D=c.subschema({keyword:"oneOf",schemaProp:E},_);return c.mergeEvaluated(D,t.Name),_}function k(){var E;const _={},D=O(h);let R=!0;for(let B=0;B<b.length;B++){let z=b[B];if(z?.$ref&&!(0,n.schemaHasRulesButRef)(z,f.self.RULES)){const W=z.$ref;if(z=a.resolveRef.call(f.self,f.schemaEnv.root,f.baseId,W),z instanceof a.SchemaEnv&&(z=z.schema),z===void 0)throw new o.default(f.opts.uriResolver,f.baseId,W)}const F=(E=z?.properties)===null||E===void 0?void 0:E[y];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${y}"`);R=R&&(D||O(z)),L(F,B)}if(!R)throw new Error(`discriminator: "${y}" must be required`);return _;function O({required:B}){return Array.isArray(B)&&B.includes(y)}function L(B,z){if(B.const)q(B.const,z);else if(B.enum)for(const F of B.enum)q(F,z);else throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`)}function q(B,z){if(typeof B!="string"||B in _)throw new Error(`discriminator: "${y}" values must be unique strings`);_[B]=z}}}};return Ig.default=i,Ig}const yQ="http://json-schema.org/draft-07/schema#",TQ="http://json-schema.org/draft-07/schema#",SQ="Core schema meta-schema",wQ={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},xQ=["object","boolean"],PQ={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},EQ={$schema:yQ,$id:TQ,title:SQ,definitions:wQ,type:xQ,properties:PQ,default:!0};var GD;function CQ(){return GD||(GD=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=e.Ajv=void 0;const a=BZ(),o=fQ(),n=vQ(),r=EQ,i=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends a.default{_addVocabularies(){super._addVocabularies(),o.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const y=this.opts.$data?this.$dataMetaSchema(r,i):r;this.addMetaSchema(y,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.Ajv=d,t.exports=e=d,t.exports.Ajv=d,Object.defineProperty(e,"__esModule",{value:!0}),e.default=d;var u=ev();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var m=Tt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return m._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return m.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return m.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return m.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return m.CodeGen}});var h=zP();Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=tv();Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(Jh,Jh.exports)),Jh.exports}var Lg={exports:{}},wS={},WD;function kQ(){return WD||(WD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatNames=t.fastFormats=t.fullFormats=void 0;function e(B,z){return{validate:B,compare:z}}t.fullFormats={date:e(r,i),time:e(d(!0),u),"date-time":e(f(!0),b),"iso-time":e(d(),m),"iso-date-time":e(f(),y),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:w,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:q,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:k,int32:{type:"number",validate:D},int64:{type:"number",validate:R},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},t.fastFormats={...t.fullFormats,date:e(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,b),"iso-time":e(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),"iso-date-time":e(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,y),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},t.formatNames=Object.keys(t.fullFormats);function a(B){return B%4===0&&(B%100!==0||B%400===0)}const o=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31];function r(B){const z=o.exec(B);if(!z)return!1;const F=+z[1],W=+z[2],ae=+z[3];return W>=1&&W<=12&&ae>=1&&ae<=(W===2&&a(F)?29:n[W])}function i(B,z){if(B&&z)return B>z?1:B<z?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(B){return function(F){const W=c.exec(F);if(!W)return!1;const ae=+W[1],H=+W[2],K=+W[3],J=W[4],se=W[5]==="-"?-1:1,Q=+(W[6]||0),M=+(W[7]||0);if(Q>23||M>59||B&&!J)return!1;if(ae<=23&&H<=59&&K<60)return!0;const G=H-M*se,V=ae-Q*se-(G<0?1:0);return(V===23||V===-1)&&(G===59||G===-1)&&K<61}}function u(B,z){if(!(B&&z))return;const F=new Date("2020-01-01T"+B).valueOf(),W=new Date("2020-01-01T"+z).valueOf();if(F&&W)return F-W}function m(B,z){if(!(B&&z))return;const F=c.exec(B),W=c.exec(z);if(F&&W)return B=F[1]+F[2]+F[3],z=W[1]+W[2]+W[3],B>z?1:B<z?-1:0}const h=/t|\s/i;function f(B){const z=d(B);return function(W){const ae=W.split(h);return ae.length===2&&r(ae[0])&&z(ae[1])}}function b(B,z){if(!(B&&z))return;const F=new Date(B).valueOf(),W=new Date(z).valueOf();if(F&&W)return F-W}function y(B,z){if(!(B&&z))return;const[F,W]=B.split(h),[ae,H]=z.split(h),K=i(F,ae);if(K!==void 0)return K||u(W,H)}const T=/\/|:/,x=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function w(B){return T.test(B)&&x.test(B)}const P=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function k(B){return P.lastIndex=0,P.test(B)}const E=-2147483648,_=2**31-1;function D(B){return Number.isInteger(B)&&B<=_&&B>=E}function R(B){return Number.isInteger(B)}function O(){return!0}const L=/[^\\]\\Z/;function q(B){if(L.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(wS)),wS}var xS={},KD;function _Q(){return KD||(KD=1,(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.formatLimitDefinition=void 0;const e=CQ(),a=Tt(),o=a.operators,n={formatMaximum:{okStr:"<=",ok:o.LTE,fail:o.GT},formatMinimum:{okStr:">=",ok:o.GTE,fail:o.LT},formatExclusiveMaximum:{okStr:"<",ok:o.LT,fail:o.GTE},formatExclusiveMinimum:{okStr:">",ok:o.GT,fail:o.LTE}},r={message:({keyword:c,schemaCode:d})=>(0,a.str)`should be ${n[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,a._)`{comparison: ${n[c].okStr}, limit: ${d}}`};t.formatLimitDefinition={keyword:Object.keys(n),type:"string",schemaType:"string",$data:!0,error:r,code(c){const{gen:d,data:u,schemaCode:m,keyword:h,it:f}=c,{opts:b,self:y}=f;if(!b.validateFormats)return;const T=new e.KeywordCxt(f,y.RULES.all.format.definition,"format");T.$data?x():w();function x(){const k=d.scopeValue("formats",{ref:y.formats,code:b.code.formats}),E=d.const("fmt",(0,a._)`${k}[${T.schemaCode}]`);c.fail$data((0,a.or)((0,a._)`typeof ${E} != "object"`,(0,a._)`${E} instanceof RegExp`,(0,a._)`typeof ${E}.compare != "function"`,P(E)))}function w(){const k=T.schema,E=y.formats[k];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${h}": format "${k}" does not define "compare" function`);const _=d.scopeValue("formats",{key:k,ref:E,code:b.code.formats?(0,a._)`${b.code.formats}${(0,a.getProperty)(k)}`:void 0});c.fail$data(P(_))}function P(k){return(0,a._)`${k}.compare(${u}, ${m}) ${n[h].fail} 0`}},dependencies:["format"]};const i=c=>(c.addKeyword(t.formatLimitDefinition),c);t.default=i})(xS)),xS}var YD;function AQ(){return YD||(YD=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});const a=kQ(),o=_Q(),n=Tt(),r=new n.Name("fullFormats"),i=new n.Name("fastFormats"),c=(u,m={keywords:!0})=>{if(Array.isArray(m))return d(u,m,a.fullFormats,r),u;const[h,f]=m.mode==="fast"?[a.fastFormats,i]:[a.fullFormats,r],b=m.formats||a.formatNames;return d(u,b,h,f),m.keywords&&(0,o.default)(u),u};c.get=(u,m="full")=>{const f=(m==="fast"?a.fastFormats:a.fullFormats)[u];if(!f)throw new Error(`Unknown format "${u}"`);return f};function d(u,m,h,f){var b,y;(b=(y=u.opts.code).formats)!==null&&b!==void 0||(y.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const T of m)u.addFormat(T,h[T])}t.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c})(Lg,Lg.exports)),Lg.exports}var RQ=AQ();const lwe=Wl(RQ);function DQ({studioUrl:t,meshUrl:e},a){return t??e??a}let $P;$P=globalThis.crypto;async function OQ(t){return(await $P).getRandomValues(new Uint8Array(t))}async function NQ(t){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",a=Math.pow(2,8)-Math.pow(2,8)%e.length;let o="";for(;o.length<t;){const n=await OQ(t-o.length);for(const r of n)r<a&&(o+=e[r%e.length])}return o}async function MQ(t){return await NQ(t)}async function IQ(t){const e=await(await $P).subtle.digest("SHA-256",new TextEncoder().encode(t));return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function cwe(t){if(t||(t=43),t<43||t>128)throw`Expected a length between 43 and 128. Received ${t}.`;const e=await MQ(t),a=await IQ(e);return{code_verifier:e,code_challenge:a}}const Eo=nL().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:FW.custom,message:"URL must be parseable",fatal:!0}),VV}).refine(t=>{const e=new URL(t);return e.protocol!=="javascript:"&&e.protocol!=="data:"&&e.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),dwe=Co({resource:$().url(),authorization_servers:je(Eo).optional(),jwks_uri:$().url().optional(),scopes_supported:je($()).optional(),bearer_methods_supported:je($()).optional(),resource_signing_alg_values_supported:je($()).optional(),resource_name:$().optional(),resource_documentation:$().optional(),resource_policy_uri:$().url().optional(),resource_tos_uri:$().url().optional(),tls_client_certificate_bound_access_tokens:Vt().optional(),authorization_details_types_supported:je($()).optional(),dpop_signing_alg_values_supported:je($()).optional(),dpop_bound_access_tokens_required:Vt().optional()}),LQ=Co({issuer:$(),authorization_endpoint:Eo,token_endpoint:Eo,registration_endpoint:Eo.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),service_documentation:Eo.optional(),revocation_endpoint:Eo.optional(),revocation_endpoint_auth_methods_supported:je($()).optional(),revocation_endpoint_auth_signing_alg_values_supported:je($()).optional(),introspection_endpoint:$().optional(),introspection_endpoint_auth_methods_supported:je($()).optional(),introspection_endpoint_auth_signing_alg_values_supported:je($()).optional(),code_challenge_methods_supported:je($()).optional(),client_id_metadata_document_supported:Vt().optional()}),BQ=Co({issuer:$(),authorization_endpoint:Eo,token_endpoint:Eo,userinfo_endpoint:Eo.optional(),jwks_uri:Eo,registration_endpoint:Eo.optional(),scopes_supported:je($()).optional(),response_types_supported:je($()),response_modes_supported:je($()).optional(),grant_types_supported:je($()).optional(),acr_values_supported:je($()).optional(),subject_types_supported:je($()),id_token_signing_alg_values_supported:je($()),id_token_encryption_alg_values_supported:je($()).optional(),id_token_encryption_enc_values_supported:je($()).optional(),userinfo_signing_alg_values_supported:je($()).optional(),userinfo_encryption_alg_values_supported:je($()).optional(),userinfo_encryption_enc_values_supported:je($()).optional(),request_object_signing_alg_values_supported:je($()).optional(),request_object_encryption_alg_values_supported:je($()).optional(),request_object_encryption_enc_values_supported:je($()).optional(),token_endpoint_auth_methods_supported:je($()).optional(),token_endpoint_auth_signing_alg_values_supported:je($()).optional(),display_values_supported:je($()).optional(),claim_types_supported:je($()).optional(),claims_supported:je($()).optional(),service_documentation:$().optional(),claims_locales_supported:je($()).optional(),ui_locales_supported:je($()).optional(),claims_parameter_supported:Vt().optional(),request_parameter_supported:Vt().optional(),request_uri_parameter_supported:Vt().optional(),require_request_uri_registration:Vt().optional(),op_policy_uri:Eo.optional(),op_tos_uri:Eo.optional(),client_id_metadata_document_supported:Vt().optional()}),uwe=Se({...BQ.shape,...LQ.pick({code_challenge_methods_supported:!0}).shape}),pwe=Se({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:mL().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),mwe=Se({error:$(),error_description:$().optional(),error_uri:$().optional()}),ZD=Eo.optional().or(Ze("").transform(()=>{})),FQ=Se({redirect_uris:je(Eo),token_endpoint_auth_method:$().optional(),grant_types:je($()).optional(),response_types:je($()).optional(),client_name:$().optional(),client_uri:Eo.optional(),logo_uri:ZD,scope:$().optional(),contacts:je($()).optional(),tos_uri:ZD,policy_uri:$().optional(),jwks_uri:Eo.optional(),jwks:dW().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),jQ=Se({client_id:$(),client_secret:$().optional(),client_id_issued_at:Rt().optional(),client_secret_expires_at:Rt().optional()}).strip(),hwe=FQ.merge(jQ);Se({error:$(),error_description:$().optional()}).strip();Se({token:$(),token_type_hint:$().optional()}).strip();class Oo extends Error{constructor(e,a){super(e),this.errorUri=a,this.name=this.constructor.name}toResponseObject(){const e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}}class p0 extends Oo{}p0.errorCode="invalid_request";class m0 extends Oo{}m0.errorCode="invalid_client";class h0 extends Oo{}h0.errorCode="invalid_grant";class g0 extends Oo{}g0.errorCode="unauthorized_client";class f0 extends Oo{}f0.errorCode="unsupported_grant_type";class b0 extends Oo{}b0.errorCode="invalid_scope";class v0 extends Oo{}v0.errorCode="access_denied";class y0 extends Oo{}y0.errorCode="server_error";class T0 extends Oo{}T0.errorCode="temporarily_unavailable";class S0 extends Oo{}S0.errorCode="unsupported_response_type";class w0 extends Oo{}w0.errorCode="unsupported_token_type";class x0 extends Oo{}x0.errorCode="invalid_token";class P0 extends Oo{}P0.errorCode="method_not_allowed";class E0 extends Oo{}E0.errorCode="too_many_requests";class C0 extends Oo{}C0.errorCode="invalid_client_metadata";class k0 extends Oo{}k0.errorCode="insufficient_scope";class _0 extends Oo{}_0.errorCode="invalid_target";const gwe={[p0.errorCode]:p0,[m0.errorCode]:m0,[h0.errorCode]:h0,[g0.errorCode]:g0,[f0.errorCode]:f0,[b0.errorCode]:b0,[v0.errorCode]:v0,[y0.errorCode]:y0,[T0.errorCode]:T0,[S0.errorCode]:S0,[w0.errorCode]:w0,[x0.errorCode]:x0,[P0.errorCode]:P0,[E0.errorCode]:E0,[C0.errorCode]:C0,[k0.errorCode]:k0,[_0.errorCode]:_0};async function XL(t){if(!t.getServerCapabilities()?.resources)return{resources:[]};try{return await t.listResources()}catch(a){if(a instanceof Qb&&a.code===Up.MethodNotFound)return{resources:[]};throw a}}async function zQ(t,e){return await t.readResource({uri:e})}function fwe(t){const e=ye.c(12);let a,o;e[0]!==t?({client:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);let n;e[3]!==a?(n=eo.mcpResourcesList(a),e[3]=a,e[4]=n):n=e[4];let r;e[5]!==a?(r=()=>XL(a),e[5]=a,e[6]=r):r=e[6];const i=o.staleTime??3e4;let c;return e[7]!==o||e[8]!==n||e[9]!==r||e[10]!==i?(c={...o,queryKey:n,queryFn:r,staleTime:i,retry:!1},e[7]=o,e[8]=n,e[9]=r,e[10]=i,e[11]=c):c=e[11],Gi(c)}function bwe(t){const e=ye.c(12);let a,o;e[0]!==t?({client:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);let n;e[3]!==a?(n=eo.mcpResourcesList(a),e[3]=a,e[4]=n):n=e[4];let r;e[5]!==a?(r=()=>XL(a),e[5]=a,e[6]=r):r=e[6];const i=o.staleTime??3e4;let c;return e[7]!==o||e[8]!==n||e[9]!==r||e[10]!==i?(c={...o,queryKey:n,queryFn:r,staleTime:i,retry:!1},e[7]=o,e[8]=n,e[9]=r,e[10]=i,e[11]=c):c=e[11],Hi(c)}function vwe(t){const e=ye.c(15);let a,o,n;e[0]!==t?({client:a,uri:n,...o}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n):(a=e[1],o=e[2],n=e[3]);let r;e[4]!==a||e[5]!==n?(r=eo.mcpReadResource(a,n),e[4]=a,e[5]=n,e[6]=r):r=e[6];let i;e[7]!==a||e[8]!==n?(i=()=>zQ(a,n),e[7]=a,e[8]=n,e[9]=i):i=e[9];const c=o.staleTime??3e4;let d;return e[10]!==o||e[11]!==r||e[12]!==i||e[13]!==c?(d={...o,queryKey:r,queryFn:i,staleTime:c,retry:!1},e[10]=o,e[11]=r,e[12]=i,e[13]=c,e[14]=d):d=e[14],Gi(d)}const eB="ui-resource-html";function ywe(t){const e=ye.c(22);let a,o,n,r,i,c;e[0]!==t?({orgSlug:n,connectionId:a,uri:c,studioUrl:i,meshUrl:o,...r}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n,e[4]=r,e[5]=i,e[6]=c):(a=e[1],o=e[2],n=e[3],r=e[4],i=e[5],c=e[6]);let d;e[7]!==a||e[8]!==n||e[9]!==c?(d=eo.mcpUiResourceHtml(n,a,c),e[7]=a,e[8]=n,e[9]=c,e[10]=d):d=e[10];let u;e[11]!==a||e[12]!==o||e[13]!==n||e[14]!==i||e[15]!==c?(u=async()=>{const b=`${DQ({studioUrl:i,meshUrl:o},typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(n)}/mcp/${encodeURIComponent(a)}/ui-resource?uri=${encodeURIComponent(c)}`,y=await fetch(b,{credentials:"include"});if(!y.ok)throw new Error(`Failed to read UI resource (${y.status})`);return y.text()},e[11]=a,e[12]=o,e[13]=n,e[14]=i,e[15]=c,e[16]=u):u=e[16];const m=r.staleTime??3e4;let h;return e[17]!==r||e[18]!==d||e[19]!==u||e[20]!==m?(h={...r,queryKey:d,queryFn:u,staleTime:m,retry:!1},e[17]=r,e[18]=d,e[19]=u,e[20]=m,e[21]=h):h=e[21],Gi(h)}const tB={featureNotInPlan:"feature_not_in_plan",aiBudgetExhausted:"ai_budget_exhausted"};class A0 extends Error{constructor(e,a,o){super(e),this.status=a,this.code=o,this.name="StudioToolError"}status;code}function aB(t){return t instanceof A0&&Object.values(tB).includes(t.code??"")?t.code:null}async function UQ(t,e,a){const o=await fetch(`/api/${encodeURIComponent(t)}/tools/${encodeURIComponent(e)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a??{})});if(!o.ok){let n=`${e} failed (${o.status})`,r;try{const i=await o.json();i?.error&&(n=i.error),typeof i?.code=="string"&&(r=i.code)}catch{}throw new A0(n,o.status,r)}try{return await o.json()}catch{throw new A0(`${e} returned a non-JSON response`,o.status)}}function VP(){const t=ye.c(5),{org:e}=Ki(),a=e.slug;let o;t[0]!==a?(o=(r,i)=>UQ(a,r,i),t[0]=a,t[1]=o):o=t[1];let n;return t[2]!==a||t[3]!==o?(n={orgSlug:a,call:o},t[2]=a,t[3]=o,t[4]=n):n=t[4],n}function qQ(t){for(const e of["content-revision","content-versions","content-changes","content-draft-tombstones"])t.getQueryDefaults([e]).gcTime!==1/0&&t.setQueryDefaults([e],{gcTime:1/0})}const $Q="studio-ui-resources",Yf="html",VQ=10080*60*1e3,HQ=50,GQ=16*1024*1024;function WQ(t){return t[0]==="mcp"&&t[1]===eB}function av(){return new Promise((t,e)=>{const a=indexedDB.open($Q,1);a.onupgradeneeded=()=>{a.result.objectStoreNames.contains(Yf)||a.result.createObjectStore(Yf)},a.onsuccess=()=>t(a.result),a.onerror=()=>e(a.error)})}function Ld(t,e){return t.transaction(Yf,e).objectStore(Yf)}function R0(t){return new Promise((e,a)=>{t.onsuccess=()=>e(t.result),t.onerror=()=>a(t.error)})}async function KQ(t){if(!(typeof indexedDB>"u"))try{const e=await av(),a=Ld(e,"readonly"),o=await R0(a.getAllKeys()),n=await R0(a.getAll()),r=Date.now(),i=o.map((u,m)=>({key:u,value:n[m]})).sort((u,m)=>(m.value?.updatedAt??0)-(u.value?.updatedAt??0)),c=[];let d=0;for(const{key:u,value:m}of i){if(!m||r-m.updatedAt>VQ||d>=HQ){c.push(u);continue}d++;try{const f=JSON.parse(String(u));t.getQueryData(f)===void 0&&t.setQueryData(f,m.html,{updatedAt:0})}catch{c.push(u)}}if(c.length>0){const u=Ld(e,"readwrite");for(const m of c)u.delete(m)}}catch{}}function YQ(t){if(typeof indexedDB>"u")return()=>{};const e=av().catch(()=>null);return t.getQueryCache().subscribe(a=>{const o=a.query;if(!Array.isArray(o.queryKey)||!WQ(o.queryKey)||o.state.status!=="success")return;const n=o.state.data;typeof n!="string"||n.length>GQ||e.then(r=>{if(r)try{Ld(r,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(o.queryKey))}catch{}})})}function ZQ(){typeof indexedDB>"u"||av().then(t=>Ld(t,"readwrite").clear()).catch(()=>{})}async function Twe(t){if(!(typeof indexedDB>"u"))try{const e=await av(),a=await R0(Ld(e,"readonly").getAllKeys()),o=Ld(e,"readwrite");for(const n of a)try{const r=JSON.parse(String(n));r[1]===eB&&r[3]===t&&o.delete(n)}catch{}}catch{}}const Zf="studio:rq-cache",HP=1440*60*1e3,QQ=1e3,JQ=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions","order-monitor"]),XQ=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let oB=!1,nB=!1;function eJ(t){const e=t[0];return typeof e=="string"&&JQ.has(e)?!0:t[3]==="collection"&&typeof t[4]=="string"&&XQ.has(t[4])}function tJ(t){if(!(typeof window>"u"))try{const e=window.localStorage.getItem(Zf);if(!e)return;const a=JSON.parse(e),o=!a.timestamp||Date.now()-a.timestamp>HP;if(a.buster!=="4.533.3"||o||!a.state){window.localStorage.removeItem(Zf);return}SV(t,a.state),t.invalidateQueries({queryKey:eo.publicConfig(),refetchType:"none"}),oB=!0}catch{iJ()}}function aJ(t){if(typeof window>"u")return()=>{};let e=null;const a=()=>{e=null;try{const r=TV(t,{shouldDehydrateQuery:i=>i.state.status==="success"&&eJ(i.queryKey)});window.localStorage.setItem(Zf,JSON.stringify({buster:"4.533.3",timestamp:Date.now(),state:r}))}catch{}},o=t.getQueryCache().subscribe(()=>{e==null&&(e=setTimeout(a,QQ))}),n=()=>{e!=null&&(clearTimeout(e),a())};return window.addEventListener("pagehide",n),()=>{e!=null&&clearTimeout(e),window.removeEventListener("pagehide",n),o()}}const rB="studio:org-cache:",oJ=20;function nJ(t){const e=Date.now(),a=Object.entries(t).filter(([,o])=>e-o.updatedAt<=HP);for(a.sort(([,o],[,n])=>o.updatedAt-n.updatedAt);a.length>oJ;)a.shift();return Object.fromEntries(a)}function sB(t){return`${rB}${t}`}function rJ(t,e){if(typeof window>"u")return null;try{const a=window.localStorage.getItem(sB(t));if(!a)return null;const o=JSON.parse(a)[e];return!o||Date.now()-o.updatedAt>HP?null:(nB=!0,o)}catch{return null}}function sJ(t,e,a){if(!(typeof window>"u"))try{const o=sB(t),n=window.localStorage.getItem(o),r=n?JSON.parse(n):{};r[e]={data:a,updatedAt:Date.now()},window.localStorage.setItem(o,JSON.stringify(nJ(r)))}catch{}}function iJ(){if(ZQ(),!(typeof window>"u"))try{window.localStorage.removeItem(Zf);for(let t=window.localStorage.length-1;t>=0;t--){const e=window.localStorage.key(t);e?.startsWith(rB)&&window.localStorage.removeItem(e)}}catch{}}function lJ(){return oB}function cJ(){return nB}function QD(t){const e=aB(t);if(!e)return;const a=e===tB.aiBudgetExhausted?Qf.budget||"This organization's AI allowance is used up.":Qf.feature||"This organization's plan does not include that.";Id.error(a,{id:`plan-refusal:${e}`})}const Qf={feature:"",budget:""},Zl=new OV({queryCache:new QM({onError:QD}),mutationCache:new ZM({onError:QD}),defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:(t,e)=>aB(e)===null&&t<1,gcTime:300*1e3}}});qQ(Zl);tJ(Zl);aJ(Zl);KQ(Zl);YQ(Zl);const GP=5*6e4;async function iB(){return(await(await fetch("/api/config")).json()).config}function lB(){const t=ye.c(1);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:eo.publicConfig(),queryFn:iB,staleTime:GP},t[0]=e):e=t[0];const{data:a}=Gi(e);return a}function Swe(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={queryKey:eo.publicConfig(),queryFn:iB,staleTime:GP},t[0]=e):e=t[0],Hi(e).data}const cB=A.createContext(void 0);function dJ(t){const e=ye.c(3),{children:a}=t,o=lB();let n;return e[0]!==a||e[1]!==o.auth?(n=v.jsx(cB.Provider,{value:o.auth,children:a}),e[0]=a,e[1]=o.auth,e[2]=n):n=e[2],n}function wwe(){const t=A.useContext(cB);if(t===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return t}var uJ={},JD={};const bf=Object.create(null),Zu=t=>uJ||globalThis.Deno?.env.toObject()||globalThis.__env__||(t?bf:globalThis),Xn=new Proxy(bf,{get(t,e){return Zu()[e]??bf[e]},has(t,e){return e in Zu()||e in bf},set(t,e,a){const o=Zu(!0);return o[e]=a,!0},deleteProperty(t,e){if(!e)return!1;const a=Zu(!0);return delete a[e],!0},ownKeys(){const t=Zu(!0);return Object.keys(t)}});function Ka(t,e){return typeof process<"u"&&JD?JD[t]??e:typeof Deno<"u"?Deno.env.get(t)??e:typeof Bun<"u"?Bun.env[t]??e:e}const Qu=1,mo=4,Vr=8,Nn=24,XD={eterm:mo,cons25:mo,console:mo,cygwin:mo,dtterm:mo,gnome:mo,hurd:mo,jfbterm:mo,konsole:mo,kterm:mo,mlterm:mo,mosh:Nn,putty:mo,st:mo,"rxvt-unicode-24bit":Nn,terminator:Nn,"xterm-kitty":Nn},pJ=new Map(Object.entries({APPVEYOR:Vr,BUILDKITE:Vr,CIRCLECI:Nn,DRONE:Vr,GITEA_ACTIONS:Nn,GITHUB_ACTIONS:Nn,GITLAB_CI:Vr,TRAVIS:Vr})),mJ=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function hJ(){if(Ka("FORCE_COLOR")!==void 0)switch(Ka("FORCE_COLOR")){case"":case"1":case"true":return mo;case"2":return Vr;case"3":return Nn;default:return Qu}if(Ka("NODE_DISABLE_COLORS")!==void 0&&Ka("NODE_DISABLE_COLORS")!==""||Ka("NO_COLOR")!==void 0&&Ka("NO_COLOR")!==""||Ka("TERM")==="dumb")return Qu;if(Ka("TMUX"))return Nn;if("TF_BUILD"in Xn&&"AGENT_NAME"in Xn)return mo;if("CI"in Xn){for(const{0:t,1:e}of pJ)if(t in Xn)return e;return Ka("CI_NAME")==="codeship"?Vr:Qu}if("TEAMCITY_VERSION"in Xn)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Ka("TEAMCITY_VERSION"))!==null?mo:Qu;switch(Ka("TERM_PROGRAM")){case"iTerm.app":return!Ka("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Ka("TERM_PROGRAM_VERSION"))!==null?Vr:Nn;case"HyperTerm":case"MacTerm":return Nn;case"Apple_Terminal":return Vr}if(Ka("COLORTERM")==="truecolor"||Ka("COLORTERM")==="24bit")return Nn;if(Ka("TERM")){if(/truecolor/.exec(Ka("TERM"))!==null)return Nn;if(/^xterm-256/.exec(Ka("TERM"))!==null)return Vr;const t=Ka("TERM").toLowerCase();if(XD[t])return XD[t];if(mJ.some(e=>e.exec(t)!==null))return mo}return Ka("COLORTERM")?mo:Qu}const Hr={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},D0=["debug","info","success","warn","error"];function gJ(t,e){return D0.indexOf(e)>=D0.indexOf(t)}const fJ={info:Hr.fg.blue,success:Hr.fg.green,warn:Hr.fg.yellow,error:Hr.fg.red,debug:Hr.fg.magenta},bJ=(t,e,a)=>{const o=new Date().toISOString();return a?`${Hr.dim}${o}${Hr.reset} ${fJ[t]}${t.toUpperCase()}${Hr.reset} ${Hr.bright}[Better Auth]:${Hr.reset} ${e}`:`${o} ${t.toUpperCase()} [Better Auth]: ${e}`},vJ=t=>{const e="warn",a=hJ()!==1,o=(n,r,i=[])=>{if(!gJ(e,n))return;const c=bJ(n,r,a);{n==="error"?console.error(c,...i):n==="warn"?console.warn(c,...i):console.log(c,...i);return}};return{...Object.fromEntries(D0.map(n=>[n,(...[r,...i])=>o(n,r,i)])),get level(){return e}}};vJ();function yJ(t){return t.charAt(0).toUpperCase()+t.slice(1)}var Pp=class extends Error{constructor(t,e){super(t,e),this.name="BetterAuthError",this.message=t,this.stack=""}};function TJ(t){try{return(new URL(t).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new Pp(`Invalid base URL: ${t}. Please provide a valid base URL.`)}}function SJ(t){try{const e=new URL(t);if(e.protocol!=="http:"&&e.protocol!=="https:")throw new Pp(`Invalid base URL: ${t}. URL must include 'http://' or 'https://'`)}catch(e){throw e instanceof Pp?e:new Pp(`Invalid base URL: ${t}. Please provide a valid base URL.`,{cause:e})}}function PS(t,e="/api/auth"){if(SJ(t),TJ(t))return t;const a=t.replace(/\/+$/,"");return!e||e==="/"?a:(e=e.startsWith("/")?e:`/${e}`,`${a}${e}`)}function wJ(t,e,a,o,n){if(t)return PS(t,e);{const r=Xn.BETTER_AUTH_URL||Xn.NEXT_PUBLIC_BETTER_AUTH_URL||Xn.PUBLIC_BETTER_AUTH_URL||Xn.NUXT_PUBLIC_BETTER_AUTH_URL||Xn.NUXT_PUBLIC_AUTH_URL||(Xn.BASE_URL!=="/"?Xn.BASE_URL:void 0);if(r)return PS(r,e)}if(typeof window<"u"&&window.location)return PS(window.location.origin,e)}const xJ={id:"redirect",name:"Redirect",hooks:{onSuccess(t){if(t.data?.url&&t.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=t.data.url}catch{}}}},PJ={proto:/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,constructor:/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,protoShort:/"__proto__"\s*:/,constructorShort:/"constructor"\s*:/},EJ=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,eO={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},CJ=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function kJ(t){return t instanceof Date&&!isNaN(t.getTime())}function _J(t){const e=CJ.exec(t);if(!e)return null;const[,a,o,n,r,i,c,d,u,m,h]=e,f=new Date(Date.UTC(parseInt(a,10),parseInt(o,10)-1,parseInt(n,10),parseInt(r,10),parseInt(i,10),parseInt(c,10),d?parseInt(d.padEnd(3,"0"),10):0));if(u){const b=(parseInt(m,10)*60+parseInt(h,10))*(u==="+"?-1:1);f.setUTCMinutes(f.getUTCMinutes()+b)}return kJ(f)?f:null}function AJ(t,e={}){const{strict:a=!1,warnings:o=!1,reviver:n,parseDates:r=!0}=e;if(typeof t!="string")return t;const i=t.trim();if(i.length>0&&i[0]==='"'&&i.endsWith('"')&&!i.slice(1,-1).includes('"'))return i.slice(1,-1);const c=i.toLowerCase();if(c.length<=9&&c in eO)return eO[c];if(!EJ.test(i)){if(a)throw new SyntaxError("[better-json] Invalid JSON");return t}if(Object.entries(PJ).some(([d,u])=>{const m=u.test(i);return m&&o&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${d} pattern`),m})&&a)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(i,(u,m)=>{if(u==="__proto__"||u==="constructor"&&m&&typeof m=="object"&&"prototype"in m){o&&console.warn(`[better-json] Dropping "${u}" key to prevent prototype pollution`);return}if(r&&typeof m=="string"){const h=_J(m);if(h)return h}return n?n(u,m):m})}catch(d){if(a)throw d;return t}}function RJ(t,e={strict:!0}){return AJ(t,e)}let fr=[],gi=0;const Bg=4,DJ=globalThis.nanostoresGlobal||={epoch:0},hd=t=>{let e=[],a={get(){return a.lc||a.listen(()=>{})(),a.value},init:t,lc:0,listen(o){return a.lc=e.push(o),()=>{for(let r=gi+Bg;r<fr.length;)fr[r]===o?fr.splice(r,Bg):r+=Bg;let n=e.indexOf(o);~n&&(e.splice(n,1),--a.lc||a.off())}},notify(o,n){DJ.epoch++;let r=!fr.length;for(let i of e)fr.push(i,a.value,o,n);if(r){for(gi=0;gi<fr.length;gi+=Bg)fr[gi](fr[gi+1],fr[gi+2],fr[gi+3]);fr.length=0}},off(){},set(o){let n=a.value;n!==o&&(a.value=o,a.notify(n))},subscribe(o){let n=a.listen(o);return o(a.value),n},value:t};return a},OJ=5,Fg=6,jg=10;let NJ=(t,e,a,o)=>(t.events=t.events||{},t.events[a+jg]||(t.events[a+jg]=o(n=>{t.events[a].reduceRight((r,i)=>(i(r),r),{shared:{},...n})})),t.events[a]=t.events[a]||[],t.events[a].push(e),()=>{let n=t.events[a],r=n.indexOf(e);n.splice(r,1),n.length||(delete t.events[a],t.events[a+jg](),delete t.events[a+jg])});const MJ=1e3;let dB=(t,e)=>NJ(t,o=>{let n=e(o);n&&t.events[Fg].push(n)},OJ,o=>{let n=t.listen;t.listen=(...i)=>(!t.lc&&!t.active&&(t.active=!0,o()),n(...i));let r=t.off;return t.events[Fg]=[],t.off=()=>{r(),setTimeout(()=>{if(t.active&&!t.lc){t.active=!1;for(let i of t.events[Fg])i();t.events[Fg]=[]}},MJ)},()=>{t.listen=n,t.off=r}});function IJ(t,e,a){let o=new Set(e).add(void 0);return t.listen((n,r,i)=>{o.has(i)&&a(n,r,i)})}const LJ=()=>typeof window>"u",mp=(t,e,a,o)=>{const n=hd({data:null,error:null,isPending:!0,isRefetching:!1,refetch:c=>r(c)}),r=async c=>new Promise(d=>{const u=typeof o=="function"?o({data:n.get().data,error:n.get().error,isPending:n.get().isPending}):o;a(e,{...u,query:{...u?.query,...c?.query},async onSuccess(m){n.set({data:m.data,error:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onSuccess?.(m)},async onError(m){const{request:h}=m,f=typeof h.retry=="number"?h.retry:h.retry?.attempts,b=h.retryAttempt||0;f&&b<f||(n.set({error:m.error,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch}),await u?.onError?.(m))},async onRequest(m){const h=n.get();n.set({isPending:h.data===null,data:h.data,error:null,isRefetching:!0,refetch:n.value.refetch}),await u?.onRequest?.(m)}}).catch(m=>{n.set({error:m,data:null,isPending:!1,isRefetching:!1,refetch:n.value.refetch})}).finally(()=>{d(void 0)})});t=Array.isArray(t)?t:[t];let i=!1;for(const c of t)c.subscribe(async()=>{LJ()||(i?await r():dB(n,()=>{const d=setTimeout(async()=>{i||(await r(),i=!0)},0);return()=>{n.off(),c.off(),clearTimeout(d)}}))});return n},ES=Symbol.for("better-auth:broadcast-channel"),BJ=()=>Math.floor(Date.now()/1e3);var FJ=class{listeners=new Set;name;constructor(t="better-auth.message"){this.name=t}subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}post(t){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...t,timestamp:BJ()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=e=>{if(e.key!==this.name)return;const a=JSON.parse(e.newValue??"{}");a?.event!=="session"||!a?.data||this.listeners.forEach(o=>o(a))};return window.addEventListener("storage",t),()=>{window.removeEventListener("storage",t)}}};function CS(t="better-auth.message"){return globalThis[ES]||(globalThis[ES]=new FJ(t)),globalThis[ES]}const kS=Symbol.for("better-auth:focus-manager");var jJ=class{listeners=new Set;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setFocused(t){this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",t,!1),()=>{document.removeEventListener("visibilitychange",t,!1)}}};function tO(){return globalThis[kS]||(globalThis[kS]=new jJ),globalThis[kS]}const _S=Symbol.for("better-auth:online-manager");var zJ=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(t){return this.listeners.add(t),()=>{this.listeners.delete(t)}}setOnline(t){this.isOnline=t,this.listeners.forEach(e=>e(t))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const t=()=>this.setOnline(!0),e=()=>this.setOnline(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",e,!1),()=>{window.removeEventListener("online",t,!1),window.removeEventListener("offline",e,!1)}}};function AS(){return globalThis[_S]||(globalThis[_S]=new zJ),globalThis[_S]}const Hc=()=>Math.floor(Date.now()/1e3),UJ=5;function qJ(t){const{sessionAtom:e,sessionSignal:a,$fetch:o,options:n={}}=t,r=n.sessionOptions?.refetchInterval??0,i=n.sessionOptions?.refetchOnWindowFocus??!0,c=n.sessionOptions?.refetchWhenOffline??!1,d={lastSync:0,lastSessionRequest:0,cachedSession:void 0},u=()=>c||AS().isOnline,m=P=>{if(!u())return;if(P?.event==="storage"){d.lastSync=Hc(),a.set(!a.get());return}const k=e.get();if(P?.event==="poll"){d.lastSessionRequest=Hc(),o("/get-session").then(E=>{E.error?e.set({...k,data:null,error:E.error}):e.set({...k,data:E.data,error:null}),d.lastSync=Hc(),a.set(!a.get())}).catch(()=>{});return}if(P?.event==="visibilitychange"){if(Hc()-d.lastSessionRequest<UJ)return;d.lastSessionRequest=Hc()}(k?.data===null||k?.data===void 0||P?.event==="visibilitychange")&&(d.lastSync=Hc(),a.set(!a.get()))},h=P=>{CS().post({event:"session",data:{trigger:P},clientId:Math.random().toString(36).substring(7)})},f=()=>{r&&r>0&&(d.pollInterval=setInterval(()=>{e.get()?.data&&m({event:"poll"})},r*1e3))},b=()=>{d.unsubscribeBroadcast=CS().subscribe(()=>{m({event:"storage"})})},y=()=>{i&&(d.unsubscribeFocus=tO().subscribe(()=>{m({event:"visibilitychange"})}))},T=()=>{d.unsubscribeOnline=AS().subscribe(P=>{P&&m({event:"visibilitychange"})})};return{init:()=>{f(),b(),y(),T(),CS().setup(),tO().setup(),AS().setup()},cleanup:()=>{d.pollInterval&&(clearInterval(d.pollInterval),d.pollInterval=void 0),d.unsubscribeBroadcast&&(d.unsubscribeBroadcast(),d.unsubscribeBroadcast=void 0),d.unsubscribeFocus&&(d.unsubscribeFocus(),d.unsubscribeFocus=void 0),d.unsubscribeOnline&&(d.unsubscribeOnline(),d.unsubscribeOnline=void 0),d.lastSync=0,d.lastSessionRequest=0,d.cachedSession=void 0},triggerRefetch:m,broadcastSessionUpdate:h}}function $J(t,e){const a=hd(!1),o=mp(a,"/get-session",t,{method:"GET"});return dB(o,()=>{const n=qJ({sessionAtom:o,sessionSignal:a,$fetch:t,options:e});return n.init(),()=>{n.cleanup()}}),{session:o,$sessionSignal:a}}function RS(t){if(t===null||typeof t!="object")return!1;const e=Object.getPrototypeOf(t);return e!==null&&e!==Object.prototype&&Object.getPrototypeOf(e)!==null||Symbol.iterator in t?!1:Symbol.toStringTag in t?Object.prototype.toString.call(t)==="[object Module]":!0}function O0(t,e,a=".",o){if(!RS(e))return O0(t,{},a,o);const n={...e};for(const r of Object.keys(t)){if(r==="__proto__"||r==="constructor")continue;const i=t[r];i!=null&&(o&&o(n,r,i,a)||(Array.isArray(i)&&Array.isArray(n[r])?n[r]=[...i,...n[r]]:RS(i)&&RS(n[r])?n[r]=O0(i,n[r],(a?`${a}.`:"")+r.toString(),o):n[r]=i))}return n}function VJ(t){return(...e)=>e.reduce((a,o)=>O0(a,o,"",t),{})}const HJ=VJ();var GJ=Object.defineProperty,WJ=Object.defineProperties,KJ=Object.getOwnPropertyDescriptors,aO=Object.getOwnPropertySymbols,YJ=Object.prototype.hasOwnProperty,ZJ=Object.prototype.propertyIsEnumerable,oO=(t,e,a)=>e in t?GJ(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,Tr=(t,e)=>{for(var a in e||(e={}))YJ.call(e,a)&&oO(t,a,e[a]);if(aO)for(var a of aO(e))ZJ.call(e,a)&&oO(t,a,e[a]);return t},Ur=(t,e)=>WJ(t,KJ(e)),QJ=class extends Error{constructor(t,e,a){super(e||t.toString(),{cause:a}),this.status=t,this.statusText=e,this.error=a,Error.captureStackTrace(this,this.constructor)}},JJ=async(t,e)=>{var a,o,n,r,i,c;let d=e||{};const u={onRequest:[e?.onRequest],onResponse:[e?.onResponse],onSuccess:[e?.onSuccess],onError:[e?.onError],onRetry:[e?.onRetry]};if(!e||!e?.plugins)return{url:t,options:d,hooks:u};for(const m of e?.plugins||[]){if(m.init){const h=await((a=m.init)==null?void 0:a.call(m,t.toString(),e));d=h.options||d,t=h.url}u.onRequest.push((o=m.hooks)==null?void 0:o.onRequest),u.onResponse.push((n=m.hooks)==null?void 0:n.onResponse),u.onSuccess.push((r=m.hooks)==null?void 0:r.onSuccess),u.onError.push((i=m.hooks)==null?void 0:i.onError),u.onRetry.push((c=m.hooks)==null?void 0:c.onRetry)}return{url:t,options:d,hooks:u}},nO=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(){return this.options.delay}},XJ=class{constructor(t){this.options=t}shouldAttemptRetry(t,e){return this.options.shouldRetry?Promise.resolve(t<this.options.attempts&&this.options.shouldRetry(e)):Promise.resolve(t<this.options.attempts)}getDelay(t){return Math.min(this.options.maxDelay,this.options.baseDelay*2**t)}};function eX(t){if(typeof t=="number")return new nO({type:"linear",attempts:t,delay:1e3});switch(t.type){case"linear":return new nO(t);case"exponential":return new XJ(t);default:throw new Error("Invalid retry strategy")}}var tX=async t=>{const e={},a=async o=>typeof o=="function"?await o():o;if(t?.auth){if(t.auth.type==="Bearer"){const o=await a(t.auth.token);if(!o)return e;e.authorization=`Bearer ${o}`}else if(t.auth.type==="Basic"){const[o,n]=await Promise.all([a(t.auth.username),a(t.auth.password)]);if(!o||!n)return e;e.authorization=`Basic ${btoa(`${o}:${n}`)}`}else if(t.auth.type==="Custom"){const[o,n]=await Promise.all([a(t.auth.prefix),a(t.auth.value)]);if(!n)return e;e.authorization=`${o??""} ${n}`}}return e},aX=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function oX(t){const e=t.headers.get("content-type"),a=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!e)return"json";const o=e.split(";").shift()||"";return aX.test(o)?"json":a.has(o)||o.startsWith("text/")?"text":"blob"}function nX(t){try{return JSON.parse(t),!0}catch{return!1}}function N0(t){if(t===void 0)return!1;const e=typeof t;return e==="string"||e==="number"||e==="boolean"||e===null?!0:e!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}function rO(t){try{return JSON.parse(t)}catch{return t}}function sO(t){return typeof t=="function"}function rX(t){if(t?.customFetchImpl)return t.customFetchImpl;if(typeof globalThis<"u"&&sO(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&sO(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function sX(t){const e=new Headers(t?.headers),a=await tX(t);for(const[o,n]of Object.entries(a||{}))e.set(o,n);if(!e.has("content-type")){const o=iX(t?.body);o&&e.set("content-type",o)}return e}function iX(t){return N0(t)?"application/json":null}function lX(t){if(!t?.body)return null;const e=new Headers(t?.headers);if(N0(t.body)&&!e.has("content-type")){for(const[a,o]of Object.entries(t?.body))o instanceof Date&&(t.body[a]=o.toISOString());return JSON.stringify(t.body)}return e.has("content-type")&&e.get("content-type")==="application/x-www-form-urlencoded"&&N0(t.body)?new URLSearchParams(t.body).toString():t.body}function cX(t,e){var a;if(e?.method)return e.method.toUpperCase();if(t.startsWith("@")){const o=(a=t.split("@")[1])==null?void 0:a.split("/")[0];return pB.includes(o)?o.toUpperCase():e?.body?"POST":"GET"}return e?.body?"POST":"GET"}function dX(t,e){let a;return!t?.signal&&t?.timeout&&(a=setTimeout(()=>e?.abort(),t?.timeout)),{abortTimeout:a,clearTimeout:()=>{a&&clearTimeout(a)}}}var uX=class uB extends Error{constructor(e,a){super(a||JSON.stringify(e,null,2)),this.issues=e,Object.setPrototypeOf(this,uB.prototype)}};async function vf(t,e){const a=await t["~standard"].validate(e);if(a.issues)throw new uX(a.issues);return a.value}var pB=["get","post","put","patch","delete"],pX=t=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(e,a){var o,n,r,i;const c=((n=(o=t.plugins)==null?void 0:o.find(d=>{var u;return(u=d.schema)!=null&&u.config?e.startsWith(d.schema.config.baseURL||"")||e.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:n.schema)||t.schema;if(c){let d=e;(r=c.config)!=null&&r.prefix&&d.startsWith(c.config.prefix)&&(d=d.replace(c.config.prefix,""),c.config.baseURL&&(e=e.replace(c.config.prefix,c.config.baseURL))),(i=c.config)!=null&&i.baseURL&&d.startsWith(c.config.baseURL)&&(d=d.replace(c.config.baseURL,""));const u=c.schema[d];if(u){let m=Ur(Tr({},a),{method:u.method,output:u.output});return a?.disableValidation||(m=Ur(Tr({},m),{body:u.input?await vf(u.input,a?.body):a?.body,params:u.params?await vf(u.params,a?.params):a?.params,query:u.query?await vf(u.query,a?.query):a?.query})),{url:e,options:m}}}return{url:e,options:a}}}),mX=t=>{async function e(a,o){const n=Ur(Tr(Tr({},t),o),{plugins:[...t?.plugins||[],pX(t||{}),...o?.plugins||[]]});if(t?.catchAllError)try{return await M0(a,n)}catch(r){return{data:null,error:{status:500,statusText:"Fetch Error",message:"Fetch related error. Captured by catchAllError option. See error property for more details.",error:r}}}return await M0(a,n)}return e};function hX(t,e){const{baseURL:a,params:o,query:n}=e||{query:{},params:{},baseURL:""};let r=t.startsWith("http")?t.split("/").slice(0,3).join("/"):a||"";if(t.startsWith("@")){const h=t.toString().split("@")[1].split("/")[0];pB.includes(h)&&(t=t.replace(`@${h}/`,"/"))}r.endsWith("/")||(r+="/");let[i,c]=t.replace(r,"").split("?");const d=new URLSearchParams(c);for(const[h,f]of Object.entries(n||{})){if(f==null)continue;let b;if(typeof f=="string")b=f;else if(Array.isArray(f)){for(const y of f)d.append(h,y);continue}else b=JSON.stringify(f);d.set(h,b)}if(o)if(Array.isArray(o)){const h=i.split("/").filter(f=>f.startsWith(":"));for(const[f,b]of h.entries()){const y=o[f];i=i.replace(b,y)}}else for(const[h,f]of Object.entries(o))i=i.replace(`:${h}`,String(f));i=i.split("/").map(encodeURIComponent).join("/"),i.startsWith("/")&&(i=i.slice(1));let u=d.toString();return u=u.length>0?`?${u}`.replace(/\+/g,"%20"):"",r.startsWith("http")?new URL(`${i}${u}`,r):`${r}${i}${u}`}var M0=async(t,e)=>{var a,o,n,r,i,c,d,u;const{hooks:m,url:h,options:f}=await JJ(t,e),b=rX(f),y=new AbortController,T=(a=f.signal)!=null?a:y.signal,x=hX(h,f),w=lX(f),P=await sX(f),k=cX(h,f);let E=Ur(Tr({},f),{url:x,headers:P,body:w,method:k,signal:T});for(const F of m.onRequest)if(F){const W=await F(E);typeof W=="object"&&W!==null&&(E=W)}("pipeTo"in E&&typeof E.pipeTo=="function"||typeof((o=e?.body)==null?void 0:o.pipe)=="function")&&("duplex"in E||(E.duplex="half"));const{clearTimeout:_}=dX(f,y);let D=await b(E.url,E);_();const R={response:D,request:E};for(const F of m.onResponse)if(F){const W=await F(Ur(Tr({},R),{response:(n=e?.hookOptions)!=null&&n.cloneResponse?D.clone():D}));W instanceof Response?D=W:typeof W=="object"&&W!==null&&(D=W.response)}if(D.ok){if(!(E.method!=="HEAD"))return{data:"",error:null};const W=oX(D),ae={data:null,response:D,request:E};if(W==="json"||W==="text"){const H=await D.text(),K=(r=E.jsonParser)!=null?r:rO;ae.data=await K(H)}else ae.data=await D[W]();E?.output&&E.output&&!E.disableValidation&&(ae.data=await vf(E.output,ae.data));for(const H of m.onSuccess)H&&await H(Ur(Tr({},ae),{response:(i=e?.hookOptions)!=null&&i.cloneResponse?D.clone():D}));return e?.throw?ae.data:{data:ae.data,error:null}}const O=(c=e?.jsonParser)!=null?c:rO,L=await D.text(),q=nX(L),B=q?await O(L):null,z={response:D,responseText:L,request:E,error:Ur(Tr({},B),{status:D.status,statusText:D.statusText})};for(const F of m.onError)F&&await F(Ur(Tr({},z),{response:(d=e?.hookOptions)!=null&&d.cloneResponse?D.clone():D}));if(e?.retry){const F=eX(e.retry),W=(u=e.retryAttempt)!=null?u:0;if(await F.shouldAttemptRetry(W,D)){for(const H of m.onRetry)H&&await H(R);const ae=F.getDelay(W);return await new Promise(H=>setTimeout(H,ae)),await M0(t,Ur(Tr({},e),{retryAttempt:W+1}))}}if(e?.throw)throw new QJ(D.status,D.statusText,q?B:L);return{data:null,error:Ur(Tr({},B),{status:D.status,statusText:D.statusText})}};const gX=(t,e)=>{const a="credentials"in Request.prototype,o=wJ(t?.baseURL,t?.basePath)??"/api/auth",n=t?.plugins?.flatMap(E=>E.fetchPlugins).filter(E=>E!==void 0)||[],r={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:t?.fetchOptions?.onSuccess,onError:t?.fetchOptions?.onError,onRequest:t?.fetchOptions?.onRequest,onResponse:t?.fetchOptions?.onResponse}},{onSuccess:i,onError:c,onRequest:d,onResponse:u,...m}=t?.fetchOptions||{},h=mX({baseURL:o,...a?{credentials:"include"}:{},method:"GET",jsonParser(E){return E?RJ(E,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[r,...m.plugins||[],...t?.disableDefaultFetchPlugins?[]:[xJ],...n]}),{$sessionSignal:f,session:b}=$J(h,t),y=t?.plugins||[];let T={};const x={$sessionSignal:f,session:b},w={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},P=[{signal:"$sessionSignal",matcher(E){return E==="/sign-out"||E==="/update-user"||E==="/sign-up/email"||E==="/sign-in/email"||E==="/delete-user"||E==="/verify-email"||E==="/revoke-sessions"||E==="/revoke-session"||E==="/change-email"}}];for(const E of y)E.getAtoms&&Object.assign(x,E.getAtoms?.(h)),E.pathMethods&&Object.assign(w,E.pathMethods),E.atomListeners&&P.push(...E.atomListeners);const k={notify:E=>{x[E].set(!x[E].get())},listen:(E,_)=>{x[E].subscribe(_)},atoms:x};for(const E of y)E.getActions&&(T=HJ(E.getActions?.(h,k,t)??{},T));return{get baseURL(){return o},pluginsActions:T,pluginsAtoms:x,pluginPathMethods:w,atomListeners:P,$fetch:h,$store:k}};function fX(t){return typeof t=="object"&&t!==null&&"get"in t&&typeof t.get=="function"&&"lc"in t&&typeof t.lc=="number"}function bX(t,e,a){const o=e[t],{fetchOptions:n,query:r,...i}=a||{};return o||(n?.method?n.method:i&&Object.keys(i).length>0?"POST":"GET")}function vX(t,e,a,o,n){function r(i=[]){return new Proxy(function(){},{get(c,d){if(typeof d!="string"||d==="then"||d==="catch"||d==="finally")return;const u=[...i,d];let m=t;for(const h of u)if(m&&typeof m=="object"&&h in m)m=m[h];else{m=void 0;break}return typeof m=="function"||fX(m)?m:r(u)},apply:async(c,d,u)=>{const m="/"+i.map(P=>P.replace(/[A-Z]/g,k=>`-${k.toLowerCase()}`)).join("/"),h=u[0]||{},f=u[1]||{},{query:b,fetchOptions:y,...T}=h,x={...f,...y},w=bX(m,a,h);return await e(m,{...x,body:w==="GET"?void 0:{...T,...x?.body||{}},query:b||x?.query,method:w,async onSuccess(P){if(await x?.onSuccess?.(P),!n||x.disableSignal)return;const k=n.filter(_=>_.matcher(m));if(!k.length)return;const E=new Set;for(const _ of k){const D=o[_.signal];if(!D)return;if(E.has(_.signal))continue;E.add(_.signal);const R=D.get();setTimeout(()=>{D.set(!R)},10)}}})}})}return r()}function yX(t,e={}){const a=A.useRef(t.get()),{keys:o,deps:n=[t,o]}=e,r=A.useCallback(c=>{const d=u=>{a.current!==u&&(a.current=u,c())};return d(t.value),o?.length?IJ(t,o,d):t.listen(d)},n),i=()=>a.current;return A.useSyncExternalStore(r,i,i)}function TX(t){return`use${yJ(t)}`}function SX(t){const{pluginPathMethods:e,pluginsActions:a,pluginsAtoms:o,$fetch:n,$store:r,atomListeners:i}=gX(t),c={};for(const[d,u]of Object.entries(o))c[TX(d)]=()=>yX(u);return vX({...a,...c,$fetch:n,$store:r},n,e,o,i)}function wX(t){return{authorize(e,a="AND"){let o=!1;for(const[n,r]of Object.entries(e)){const i=t[n];if(!i)return{success:!1,error:`You are not allowed to access resource: ${n}`};if(Array.isArray(r))o=r.every(c=>i.includes(c));else if(typeof r=="object"){const c=r;c.connector==="OR"?o=c.actions.some(d=>i.includes(d)):o=c.actions.every(d=>i.includes(d))}else throw new Pp("Invalid access control request");if(o&&a==="OR")return{success:o};if(!o&&a==="AND")return{success:!1,error:`unauthorized to access resource "${n}"`}}return o?{success:o}:{success:!1,error:"Not authorized"}},statements:t}}function mB(t){return{newRole(e){return wX(e)},statements:t}}const xX={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},hB=mB(xX),gB=hB.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),fB=hB.newRole({user:[],session:[]}),PX={admin:gB,user:fB},EX=t=>{if(t.userId&&t.options?.adminUserIds?.includes(t.userId))return!0;if(!t.permissions&&!t.permission)return!1;const e=(t.role||t.options?.defaultRole||"user").split(","),a=t.options?.roles||PX;for(const o of e)if(a[o]?.authorize(t.permission??t.permissions)?.success)return!0;return!1},CX=t=>{const e={admin:gB,user:fB,...t?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:a=>EX({role:a.role,options:{ac:t?.ac,roles:e},permissions:a.permissions??a.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},kX=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:t=>t==="/email-otp/verify-email"||t==="/sign-in/email-otp",signal:"$sessionSignal"}]}),_X=()=>({id:"magic-link",$InferServerPlugin:{}}),AX={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},WP=mB(AX),bB=WP.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),vB=WP.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),yB=WP.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),RX={admin:bB,owner:vB,member:yB},DX=(t,e)=>{if(!t.permissions&&!t.permission)return!1;const a=t.role.split(","),o=t.options.creatorRole||"owner",n=a.includes(o),r=t.allowCreatorAllPermissions||!1;if(n&&r)return!0;for(const i of a)if(e[i]?.authorize(t.permissions??t.permission)?.success)return!0;return!1},OX=t=>DX(t,t.options.roles||RX),NX=t=>{const e=hd(!1),a=hd(!1),o=hd(!1),n=hd(!1),r={admin:bB,member:yB,owner:vB,...t?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(i,c,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:u=>OX({role:u.role,options:{ac:t?.ac,roles:r},permissions:u.permissions??u.permission})}}),getAtoms:i=>{const c=mp(e,"/organization/list",i,{method:"GET"});return{$listOrg:e,$activeOrgSignal:a,$activeMemberSignal:o,$activeMemberRoleSignal:n,activeOrganization:mp([a],"/organization/get-full-organization",i,()=>({method:"GET"})),listOrganizations:c,activeMember:mp([o],"/organization/get-active-member",i,{method:"GET"}),activeMemberRole:mp([n],"/organization/get-active-member-role",i,{method:"GET"})}},pathMethods:{"/organization/get-full-organization":"GET","/organization/list-user-teams":"GET"},atomListeners:[{matcher(i){return i==="/organization/create"||i==="/organization/delete"||i==="/organization/update"},signal:"$listOrg"},{matcher(i){return i.startsWith("/organization")},signal:"$activeOrgSignal"},{matcher(i){return i.startsWith("/organization/set-active")},signal:"$sessionSignal"},{matcher(i){return i.includes("/organization/update-member-role")},signal:"$activeMemberSignal"},{matcher(i){return i.includes("/organization/update-member-role")},signal:"$activeMemberRoleSignal"}]}},MX="1.6.11",IX=t=>({id:"sso-client",version:MX,$InferServerPlugin:{},pathMethods:{"/sso/providers":"GET","/sso/get-provider":"GET"}});function LX(t){let e=t;if(typeof t=="string")try{e=JSON.parse(t)}catch{return{}}return e&&typeof e=="object"&&!Array.isArray(e)?Object.fromEntries(Object.entries(e)):{}}function TB(t){return LX(t?.metadata).archived===!0}function SB(t){const e=new Set;return t.filter(a=>TB(a)||e.has(a.id)?!1:(e.add(a.id),!0))}const BX="Organization is archived",ro=SX({plugins:[NX({}),CX(),IX(),_X(),kX()]}),FX=8e3;let iO;function wB(){return iO??=new Promise(t=>{const e=setTimeout(t,FX);ro.$store.listen("session",a=>{a&&typeof a=="object"&&"isPending"in a&&(a.isPending||(clearTimeout(e),t()))})}),iO}const jX=Se({data:Se({user:Se({id:$()})}).nullish()});function zX(){const t=jX.safeParse(ro.$store.atoms.session?.get());return t.success?t.data.data?.user.id:void 0}const UX=3e4;let hp=null,zg=null;function xB(){if(hp&&hp.expiresAt>Date.now())return Promise.resolve(hp.result);if(zg)return zg;const t=ro.organization.list().then(e=>{const a=e.data?{...e,data:SB(e.data)}:e;return a.data&&(hp={result:a,expiresAt:Date.now()+UX}),a}).finally(()=>{zg=null});return zg=t,t}function xwe(){const t=ro.useListOrganizations(),e=t.data?SB(t.data):void 0;return{...t,data:e}}function Pwe(){hp=null}const qX="modulepreload",$X=function(t){return"/"+t},lO={},Le=function(e,a,o){let n=Promise.resolve();if(a&&a.length>0){let i=function(u){return Promise.all(u.map(m=>Promise.resolve(m).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");n=i(a.map(u=>{if(u=$X(u),u in lO)return;lO[u]=!0;const m=u.endsWith(".css"),h=m?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const f=document.createElement("link");if(f.rel=m?"stylesheet":qX,m||(f.as="script"),f.crossOrigin="",f.href=u,d&&f.setAttribute("nonce",d),document.head.appendChild(f),m)return new Promise((b,y)=>{f.addEventListener("load",b),f.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${u}`)))})}))}function r(i){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=i,window.dispatchEvent(c),!c.defaultPrevented)throw i}return n.then(i=>{for(const c of i||[])c.status==="rejected"&&r(c.reason);return e().catch(r)})};function VX(t){try{return JSON.parse(t)}catch{return}}function cO(t,e){if(typeof localStorage>"u")return typeof e=="function"?e(void 0):e;const a=localStorage.getItem(t),o=a?VX(a):void 0,n=typeof e=="function"?e(o):o??e;if(o===void 0||n!==o)try{const r=JSON.stringify(n);localStorage.setItem(t,r)}catch{}return n}function HX(t,e){const a=ye.c(17),o=Wd();let n;a[0]!==t?(n=["localStorage",t],a[0]=t,a[1]=n):n=a[1];const r=n;let i,c;a[2]!==e||a[3]!==t?(i=()=>cO(t,e),c=()=>cO(t,e),a[2]=e,a[3]=t,a[4]=i,a[5]=c):(i=a[4],c=a[5]);let d;a[6]!==r||a[7]!==i||a[8]!==c?(d={queryKey:r,queryFn:i,initialData:c,staleTime:1/0,gcTime:1/0},a[6]=r,a[7]=i,a[8]=c,a[9]=d):d=a[9];const{data:u}=Hi(d);let m;a[10]!==t||a[11]!==o||a[12]!==r?(m=y=>{const T=o.getQueryData(r),x=typeof y=="function"?y(T):y;typeof localStorage<"u"&&localStorage.setItem(t,JSON.stringify(x)),o.setQueryData(r,x)},a[10]=t,a[11]=o,a[12]=r,a[13]=m):m=a[13];const h=m,f=u;let b;return a[14]!==h||a[15]!==f?(b=[f,h],a[14]=h,a[15]=f,a[16]=b):b=a[16],b}const Zi={chatSelectedImageModel:t=>`studio:chat:selectedImageModel:${t}`,chatSelectedWebSearchModel:t=>`studio:chat:selectedWebSearchModel:${t}`,chatSelectedDeepResearchModel:t=>`studio:chat:selectedDeepResearchModel:${t}`,chatSimpleModeTier:t=>`studio:chat:simpleModeTier:${t}`,chatAutosend:(t,e)=>`studio:chat:autosend:${t}:${e}`,chatThreadIntent:(t,e)=>`studio:chat:threadIntent:${t}:${e}`,homeTaskMode:t=>`home-task-mode:${t}`,chatDraft:(t,e)=>`studio:chat:draft:${t}:${e}`,taskBoardPrs:t=>`studio:task-board-prs:${t}`,taskFeedBehindTheScenes:()=>"studio:task-feed:behind-the-scenes",taskBoardAssignee:(t,e)=>`studio:task-board-assignee:${t}:${e}`,recentApps:t=>`studio:recent-apps:${t}`,recentProjects:t=>`studio:recent-projects:${t}`,recentOrgs:()=>"studio:recent-orgs",railOrgPrefs:()=>"studio:rail-org-prefs",sidePanelWidth:()=>"studio:side-panel:width",sidebarOpen:()=>"studio:sidebar-open",preferences:()=>"studio:user:preferences",lastOrgSlug:()=>"studio:last-org-slug",lastLocation:()=>"studio:last-location",connectionsTab:t=>`studio:connections:tab:${t}`,taskLastViewed:t=>`studio:chat:task-last-viewed:${t}`,sidebarSectionOpen:(t,e)=>`studio:sidebar:section-open:${t}:${e}`,ptBrAnnouncementSeen:t=>`studio:announcement:pt-br:${t}`,localPreviewUrl:t=>`studio:local-preview-url:${t}`,previewDeviceSize:t=>`studio:preview:device-size:${t}`,previewEditingMode:t=>`studio:preview:editing-mode:${t}`,previewAppLayout:t=>`studio:preview:app-layout:${t}`,arrayFieldLayout:()=>"studio:cms:array-field-layout",decoServeConnection:(t,e)=>`studio:deco-serve-connection:${t}:${e}`,decoServeEndpoint:(t,e)=>`studio:deco-serve-endpoint:${t}:${e}`},PB=["en","pt-BR"];function KP(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const GX={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:KP(),taskBoardLaneVisibility:{},collapsedTaskBoardLanes:[]},EB=["auto","readonly"],Ewe=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],WX=["light","dark","system"];function Cwe(){try{const t=JSON.parse(localStorage.getItem(Zi.preferences())??"{}");if(EB.includes(t.toolApprovalLevel))return t.toolApprovalLevel}catch{}return"auto"}function ov(){try{const t=JSON.parse(localStorage.getItem(Zi.preferences())??"{}");if(PB.includes(t.language))return t.language}catch{}return KP()}function KX(t){const e={};if(Array.isArray(t.shownTaskBoardLanes))for(const o of t.shownTaskBoardLanes)typeof o=="string"&&(e[o]=!0);const a=t.taskBoardLaneVisibility;if(a&&typeof a=="object"&&!Array.isArray(a))for(const[o,n]of Object.entries(a))typeof n=="boolean"&&(e[o]=n);return e}function nv(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=Zi.preferences(),t[0]=e):e=t[0],HX(e,YX)}function YX(t){const e={...GX,...t};return"showProjectSettingsGear"in e&&delete e.showProjectSettingsGear,"compactPageLayout"in e&&delete e.compactPageLayout,EB.includes(e.toolApprovalLevel)||(e.toolApprovalLevel="auto"),WX.includes(e.theme)||(e.theme="system"),PB.includes(e.language)||(e.language=KP()),e.taskBoardLaneVisibility=KX(e),"shownTaskBoardLanes"in e&&delete e.shownTaskBoardLanes,Array.isArray(e.collapsedTaskBoardLanes)||(e.collapsedTaskBoardLanes=[]),typeof e.projectFirstNav!="boolean"&&delete e.projectFirstNav,e}const ZX=A.createContext(!1),QX=Date.parse("2026-10-22T00:00:00Z");function JX(t,e){if(t!==void 0)return t;const a=e instanceof Date?e.getTime():typeof e=="string"||typeof e=="number"?new Date(e).getTime():Number.NaN;return Number.isFinite(a)&&a>=QX}function kwe(){const t=ye.c(4),e=A.use(ZX),[a]=nv(),{data:o}=ro.useSession();let n;return t[0]!==e||t[1]!==a||t[2]!==o?.user?.createdAt?(n=e||JX(a.projectFirstNav,o?.user?.createdAt),t[0]=e,t[1]=a,t[2]=o?.user?.createdAt,t[3]=n):n=t[3],n}const XX={"page.overview":"Overview","page.app":"App","page.view":"View","page.file":"File","page.document":"Document","page.item":"Item","page.breadcrumbs":"Breadcrumbs","page.breadcrumbMenu":"Show navigation path","page.views":"Page views","page.openThread":"Open chat","page.closeThread":"Close chat","page.collapseSidebar":"Collapse sidebar","page.expandSidebar":"Expand sidebar"},eee={"projects.overview.metrics":"Metrics","projects.platform.vtex":"VTEX","projects.platform.shopify":"Shopify","projects.platform.wake":"Wake","projects.platform.nuvemshop":"Nuvemshop","projects.platform.linx":"Linx","projects.platform.vnda":"VNDA","projects.home.newProject":"New project","projects.card.updated":"Updated {time}","projects.empty.title":"Your commerce, one project at a time","projects.empty.description":"A site, an app, a store. Each one keeps its own connections, report and board.","projects.empty.readOnly":"Ask an admin to create the first project.","projects.new.title":"New project","projects.new.subtitle":"What are you setting up?","projects.new.back":"Back","projects.new.create":"Create project","projects.new.creating":"Creating…","projects.new.nameLabel":"Project name","projects.new.namePlaceholder":"Farm web","projects.new.nameRequired":"Give the project a name","projects.new.failed":"Couldn't create the project","projects.new.created":"{title} is ready","projects.new.path.repository":"Import a codebase","projects.new.path.repository.hint":"Bring a storefront or app codebase in","projects.new.path.folder":"New project folder","projects.new.path.folder.hint":"Name it now, connect it later","projects.new.step.folder.title":"Name your project","projects.reports.chooserTitle":"Continue to Reports","projects.reports.chooserSubtitle":"Choose a project to continue","projects.reports.chooserSearch":"Find project…","projects.reports.chooserEmpty":"No project by that name.","projects.reports.status.ready":"Ready","projects.reports.status.running":"Running","projects.reports.status.none":"Not run","projects.reports.status.locked":"Locked","projects.connections.orgWide":"Organization-wide","projects.connections.usedBy":"{count} projects","projects.settings.title":"Projects","projects.settings.searchPlaceholder":"Search projects…","projects.settings.open":"Open","projects.settings.openSettings":"Settings","projects.settings.noResults":"No projects match “{search}”","projects.identity.storeUrlLabel":"Store URL","projects.identity.storeUrlDescription":"The live storefront. Reports run against this address.","projects.apps.reports":"Report","projects.apps.siteEditor":"Site editor","projects.apps.assets":"Assets","projects.apps.releases":"Releases","projects.apps.hosting":"Hosting","projects.apps.e2e":"End-to-end tests","projects.apps.analytics":"Analytics","projects.apps.cdn":"Monitor","projects.apps.automations":"Automations","projects.apps.experiments":"Experiments","projects.apps.calendar":"Calendar"},tee={"virtualMcp.addConnectionDialog.addConnectionTitle":"Add Connection","virtualMcp.addConnectionDialog.authenticationFailedError":"Authentication failed: {error}","virtualMcp.addConnectionDialog.connected":"Connected","virtualMcp.addConnectionDialog.connectedAuthenticated":"Connected and authenticated","virtualMcp.addConnectionDialog.connectionsTitle":"Connections","virtualMcp.addConnectionDialog.failedToAddConnection":"Failed to add connection","virtualMcp.addConnectionDialog.failedToConnect":"Failed to connect","virtualMcp.addConnectionDialog.mcpServerConnectionError":"This MCP Server cannot be connected: no connection method available","virtualMcp.addConnectionDialog.searchConnectionsPlaceholder":"Search connections...","virtualMcp.addConnectionDialog.signInFailedDescription":"It was added to your project, but its sign-in setup looks off. You can try authenticating again later from the connection's settings. ({error})","virtualMcp.addConnectionDialog.signInFailedTitle":"Couldn't sign in to this connection","virtualMcp.connectionDialogContent.add":"Add","virtualMcp.connectionDialogContent.added":"Added","virtualMcp.connectionDialogContent.builtByDeco":"Built and maintained by Deco","virtualMcp.connectionDialogContent.builtByOfficial":"Built and maintained by the official vendor","virtualMcp.connectionDialogContent.connect":"Connect","virtualMcp.connectionDialogContent.connected":"Connected","virtualMcp.connectionDialogContent.customConnection":"Custom Connection","virtualMcp.connectionDialogContent.emptyStateNoConnectionsAvailable":"No connections available","virtualMcp.connectionDialogContent.emptyStateNoConnectionsYet":"No connections yet","virtualMcp.connectionDialogContent.emptyStateSearchNoMatch":'No connections match "{search}"',"virtualMcp.connectionDialogContent.madeByDeco":"Made by Deco","virtualMcp.connectionDialogContent.sectionAllConnections":"All connections","virtualMcp.connectionDialogContent.sectionVerified":"Verified","virtualMcp.connectionDialogContent.tabAll":"All","virtualMcp.connectionDialogContent.tabConnected":"Connected","virtualMcp.connectionDialogContent.verifiedByDeco":"Verified by the Deco team","virtualMcp.connectionItem.authorize":"Authorize","virtualMcp.connectionItem.configureResources":"Configure resources","virtualMcp.connectionItem.connectionDisabled":"Connection disabled","virtualMcp.connectionItem.connectionEnabled":"Connection enabled","virtualMcp.connectionItem.connectionNotFound":"Connection not found","virtualMcp.connectionItem.connectionSettings":"Connection settings","virtualMcp.connectionItem.disable":"Disable","virtualMcp.connectionItem.disableConnection":"Disable connection","virtualMcp.connectionItem.disabled":"Disabled","virtualMcp.connectionItem.disabledError":"Disabled (error)","virtualMcp.connectionItem.enable":"Enable","virtualMcp.connectionItem.failedToUpdateConnection":"Failed to update connection","virtualMcp.connectionItem.needsAuthorization":"Needs authorization","virtualMcp.connectionItem.newInstance":"New instance","virtualMcp.connectionItem.remove":"Remove","virtualMcp.connectionItem.removeConnection":"Remove connection","virtualMcp.dependencySelectionDialog.authorizationDescription":"This connection needs to be authorized before you can configure its tools and resources.","virtualMcp.dependencySelectionDialog.authorizationRequired":"Authorization required","virtualMcp.dependencySelectionDialog.authorize":"Authorize","virtualMcp.dependencySelectionDialog.deselectAll":"Deselect all","virtualMcp.dependencySelectionDialog.done":"Done","virtualMcp.dependencySelectionDialog.noActiveToolsSelected":"No active tools selected","virtualMcp.dependencySelectionDialog.noPromptsAvailable":"No prompts available","virtualMcp.dependencySelectionDialog.noResourcesAvailable":"No resources available","virtualMcp.dependencySelectionDialog.noToolsAvailable":"No tools available","virtualMcp.dependencySelectionDialog.promptsNotSupported":"Prompts not supported by this server","virtualMcp.dependencySelectionDialog.resourcesNotSupported":"Resources not supported by this server","virtualMcp.dependencySelectionDialog.selectAll":"Select all","virtualMcp.dependencySelectionDialog.somethingWentWrong":"Something went wrong","virtualMcp.dependencySelectionDialog.tabActive":"Active","virtualMcp.dependencySelectionDialog.tabPrompts":"Prompts","virtualMcp.dependencySelectionDialog.tabResources":"Resources","virtualMcp.dependencySelectionDialog.tabTools":"Tools","virtualMcp.dependencySelectionDialog.toolsNotSupported":"Tools not supported by this server","virtualMcp.dependencySelectionDialog.unexpectedError":"An unexpected error occurred","virtualMcp.filesSection.add":"Add","virtualMcp.filesSection.description":"Attach files and skills the project can always reference.","virtualMcp.filesSection.failedUploadFile":"Failed to upload file.","virtualMcp.filesSection.fileTooLargeDescription":"Exceeds the 25MB limit, not uploaded: {names}","virtualMcp.filesSection.fileTooLargeTitle":"File too large","virtualMcp.filesSection.filesAndSkills":"Files and skills","virtualMcp.filesSection.kindFile":"File","virtualMcp.filesSection.kindSkill":"Skill","virtualMcp.filesSection.noFilesFound":"No files found.","virtualMcp.filesSection.noFilesOrSkillsYet":"No files or skills yet. Add one or drag and drop here.","virtualMcp.filesSection.noSkillsFound":"No skills found.","virtualMcp.filesSection.removeAriaLabel":"Remove {name}","virtualMcp.filesSection.searchFilesPlaceholder":"Search files...","virtualMcp.filesSection.searchSkillsPlaceholder":"Search skills...","virtualMcp.filesSection.selectFileOrFolder":"Select file or folder","virtualMcp.filesSection.selectSkill":"Select skill","virtualMcp.filesSection.uploadFile":"Upload file","virtualMcp.layoutTabContent.noMainView":"No main view","virtualMcp.layoutTabContent.automations":"Automations","virtualMcp.layoutTabContent.chatAlwaysShown":"Chat is always shown when it is the default view","virtualMcp.layoutTabContent.layout":"Layout","virtualMcp.layoutTabContent.mainView":"Main view","virtualMcp.layoutTabContent.mainViewDescription":"What users see when they first open this project.","virtualMcp.layoutTabContent.settings":"Settings","virtualMcp.layoutTabContent.showChat":"Show chat","virtualMcp.layoutTabContent.showChatDescription":"Display Chat in the side panel alongside the main view.","virtualMcp.layoutTabContent.siteEditor":"Site Editor","virtualMcp.settings.title":"Project settings","virtualMcp.settings.navigation":"Project settings sections","virtualMcp.settings.identity.icon":"Project icon","virtualMcp.settings.identity.iconDescription":"How your project appears in the sidebar and across Studio.","virtualMcp.settings.identity.name":"Project name","virtualMcp.settings.identity.description":"Description","virtualMcp.settings.general.title":"General","virtualMcp.settings.site.title":"CMS","virtualMcp.settings.site.classicTitle":"Site and sandbox","virtualMcp.settings.groups.advanced":"Advanced","virtualMcp.settings.connections.title":"Connections","virtualMcp.settings.views.defaults":"Default layout","virtualMcp.settings.views.sidebar":"Views","virtualMcp.settings.views.open":"Open","virtualMcp.settings.views.pin":"Pin to sidebar","virtualMcp.settings.views.unpin":"Remove from sidebar","virtualMcp.settings.views.setMainView":"Set as main view","virtualMcp.settings.views.rowActions":"View options","virtualMcp.subAgentsSection.addSubAgent":"Add sub-project","virtualMcp.subAgentsSection.anyAgent":"Any project","virtualMcp.subAgentsSection.canDelegateToAnyAgent":"Can delegate to any project in the organization.","virtualMcp.subAgentsSection.canOnlyDelegateToItself":"Can only delegate to a fresh copy of itself, no other projects.","virtualMcp.subAgentsSection.emptyStateMessage":"No sub-projects selected yet. Add one — until then this project can only delegate to itself.","virtualMcp.subAgentsSection.noAgentsFound":"No projects found.","virtualMcp.subAgentsSection.onlyItself":"Only itself","virtualMcp.subAgentsSection.searchPlaceholder":"Search projects...","virtualMcp.subAgentsSection.specificAgents":"Specific projects","virtualMcp.subAgentsSection.title":"Sub-projects","virtualMcp.virtualMcp.addConnection":"Add connection","virtualMcp.virtualMcp.agentDeleted":'Deleted "{title}"',"virtualMcp.virtualMcp.agentNameFallback":"Agent","virtualMcp.virtualMcp.agentNamePlaceholder":"Project name","virtualMcp.virtualMcp.authenticationFailed":"Authentication failed: {error}","virtualMcp.virtualMcp.authenticationSuccessful":"Authentication successful","virtualMcp.virtualMcp.backToSpaces":"Back to spaces","virtualMcp.virtualMcp.cancel":"Cancel","virtualMcp.virtualMcp.connect":"Connect","virtualMcp.virtualMcp.connections":"Connections","virtualMcp.virtualMcp.created":"Created","virtualMcp.virtualMcp.delete":"Delete","virtualMcp.virtualMcp.deleteAgent":"Delete project","virtualMcp.virtualMcp.deleteAgentConfirm":"Delete Project?","virtualMcp.virtualMcp.deleteAgentConfirmDescription":"This action cannot be undone. This will permanently delete {title}.","virtualMcp.virtualMcp.deleteAgentDescription":"Permanently delete this project and all its data.","virtualMcp.virtualMcp.descriptionPlaceholder":"Add a description...","virtualMcp.virtualMcp.failedToCreateInstance":"Failed to create instance","virtualMcp.virtualMcp.fullscreen":"Fullscreen","virtualMcp.virtualMcp.improve":"Improve","virtualMcp.virtualMcp.instanceAlreadyAdded":"This instance is already added to the project","virtualMcp.virtualMcp.instructions":"Instructions","virtualMcp.virtualMcp.instructionsPlaceholder":"Define how this agent should behave, what tone to use, any constraints or guidelines...","virtualMcp.virtualMcp.lastUsed":"Last used {time}","virtualMcp.virtualMcp.neverUsed":"Never used","virtualMcp.virtualMcp.newInstanceCreated":"New instance created","virtualMcp.virtualMcp.noConnectionsYet":"No connections yet. Add one to get started.","virtualMcp.virtualMcp.openFullscreenEditor":"Open fullscreen editor","virtualMcp.virtualMcp.promptTemplate":"+ Prompt template","virtualMcp.virtualMcp.promptTemplateContent":`<role>
|
|
56
56
|
Define who this agent is and what it specializes in.
|
|
57
57
|
Example: You are a support triage agent for B2B merchants.
|
|
58
58
|
</role>
|
|
@@ -165,7 +165,7 @@ Este site ainda não reporta sections de post — quando reportar, cite elas aqu
|
|
|
165
165
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
166
166
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
167
167
|
`)},jre=0,Yc=[];function zre(t){var e=A.useRef([]),a=A.useRef([0,0]),o=A.useRef(),n=A.useState(jre++)[0],r=A.useState(zF)[0],i=A.useRef(t);A.useEffect(function(){i.current=t},[t]),A.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(n));var T=ire([t.lockRef.current],(t.shards||[]).map(VO),!0).filter(Boolean);return T.forEach(function(x){return x.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),T.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(n))})}}},[t.inert,t.lockRef.current,t.shards]);var c=A.useCallback(function(T,x){if("touches"in T&&T.touches.length===2||T.type==="wheel"&&T.ctrlKey)return!i.current.allowPinchZoom;var w=Kg(T),P=a.current,k="deltaX"in T?T.deltaX:P[0]-w[0],E="deltaY"in T?T.deltaY:P[1]-w[1],_,D=T.target,R=Math.abs(k)>Math.abs(E)?"h":"v";if("touches"in T&&R==="h"&&D.type==="range")return!1;var O=window.getSelection(),L=O&&O.anchorNode,q=L?L===D||L.contains(D):!1;if(q)return!1;var B=qO(R,D);if(!B)return!0;if(B?_=R:(_=R==="v"?"h":"v",B=qO(R,D)),!B)return!1;if(!o.current&&"changedTouches"in T&&(k||E)&&(o.current=_),!_)return!0;var z=o.current||_;return Lre(z,x,T,z==="h"?k:E)},[]),d=A.useCallback(function(T){var x=T;if(!(!Yc.length||Yc[Yc.length-1]!==r)){var w="deltaY"in x?$O(x):Kg(x),P=e.current.filter(function(_){return _.name===x.type&&(_.target===x.target||x.target===_.shadowParent)&&Bre(_.delta,w)})[0];if(P&&P.should){x.cancelable&&x.preventDefault();return}if(!P){var k=(i.current.shards||[]).map(VO).filter(Boolean).filter(function(_){return _.contains(x.target)}),E=k.length>0?c(x,k[0]):!i.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),u=A.useCallback(function(T,x,w,P){var k={name:T,delta:x,target:w,should:P,shadowParent:Ure(w)};e.current.push(k),setTimeout(function(){e.current=e.current.filter(function(E){return E!==k})},1)},[]),m=A.useCallback(function(T){a.current=Kg(T),o.current=void 0},[]),h=A.useCallback(function(T){u(T.type,$O(T),T.target,c(T,t.lockRef.current))},[]),f=A.useCallback(function(T){u(T.type,Kg(T),T.target,c(T,t.lockRef.current))},[]);A.useEffect(function(){return Yc.push(r),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",d,Kc),document.addEventListener("touchmove",d,Kc),document.addEventListener("touchstart",m,Kc),function(){Yc=Yc.filter(function(T){return T!==r}),document.removeEventListener("wheel",d,Kc),document.removeEventListener("touchmove",d,Kc),document.removeEventListener("touchstart",m,Kc)}},[]);var b=t.removeScrollBar,y=t.inert;return A.createElement(A.Fragment,null,y?A.createElement(r,{styles:Fre(n)}):null,b?A.createElement(Are,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function Ure(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const qre=fre(jF,zre);var uE=A.forwardRef(function(t,e){return A.createElement(dv,Gr({},t,{ref:e,sideCar:qre}))});uE.classNames=dv.classNames;var U0=["Enter"," "],$re=["ArrowDown","PageUp","Home"],VF=["ArrowUp","PageDown","End"],Vre=[...$re,...VF],Hre={ltr:[...U0,"ArrowRight"],rtl:[...U0,"ArrowLeft"]},Gre={ltr:["ArrowLeft"],rtl:["ArrowRight"]},vm="Menu",[Hp,Wre,Kre]=QB(vm),[Xl,HF]=Ji(vm,[Kre,yF,RF]),ym=yF(),GF=RF(),[WF,Xi]=Xl(vm),[Yre,Tm]=Xl(vm),KF=t=>{const{__scopeMenu:e,open:a=!1,children:o,dir:n,onOpenChange:r,modal:i=!0}=t,c=ym(e),[d,u]=A.useState(null),m=A.useRef(!1),h=Cr(r),f=JB(n);return A.useEffect(()=>{const b=()=>{m.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>m.current=!1;return document.addEventListener("keydown",b,{capture:!0}),()=>{document.removeEventListener("keydown",b,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),v.jsx(_F,{...c,children:v.jsx(WF,{scope:e,open:a,onOpenChange:h,content:d,onContentChange:u,children:v.jsx(Yre,{scope:e,onClose:A.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:m,dir:f,modal:i,children:o})})})};KF.displayName=vm;var Zre="MenuAnchor",pE=A.forwardRef((t,e)=>{const{__scopeMenu:a,...o}=t,n=ym(a);return v.jsx(jne,{...n,...o,ref:e})});pE.displayName=Zre;var mE="MenuPortal",[Qre,YF]=Xl(mE,{forceMount:void 0}),ZF=t=>{const{__scopeMenu:e,forceMount:a,children:o,container:n}=t,r=Xi(mE,e);return v.jsx(Qre,{scope:e,forceMount:a,children:v.jsx(Fs,{present:a||r.open,children:v.jsx(dE,{asChild:!0,container:n,children:o})})})};ZF.displayName=mE;var nr="MenuContent",[Jre,hE]=Xl(nr),QF=A.forwardRef((t,e)=>{const a=YF(nr,t.__scopeMenu),{forceMount:o=a.forceMount,...n}=t,r=Xi(nr,t.__scopeMenu),i=Tm(nr,t.__scopeMenu);return v.jsx(Hp.Provider,{scope:t.__scopeMenu,children:v.jsx(Fs,{present:o||r.open,children:v.jsx(Hp.Slot,{scope:t.__scopeMenu,children:i.modal?v.jsx(Xre,{...n,ref:e}):v.jsx(ese,{...n,ref:e})})})})}),Xre=A.forwardRef((t,e)=>{const a=Xi(nr,t.__scopeMenu),o=A.useRef(null),n=Ua(e,o);return A.useEffect(()=>{const r=o.current;if(r)return LF(r)},[]),v.jsx(gE,{...t,ref:n,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:mt(t.onFocusOutside,r=>r.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})}),ese=A.forwardRef((t,e)=>{const a=Xi(nr,t.__scopeMenu);return v.jsx(gE,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>a.onOpenChange(!1)})}),tse=$p("MenuContent.ScrollLock"),gE=A.forwardRef((t,e)=>{const{__scopeMenu:a,loop:o=!1,trapFocus:n,onOpenAutoFocus:r,onCloseAutoFocus:i,disableOutsidePointerEvents:c,onEntryFocus:d,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:b,disableOutsideScroll:y,...T}=t,x=Xi(nr,a),w=Tm(nr,a),P=ym(a),k=GF(a),E=Wre(a),[_,D]=A.useState(null),R=A.useRef(null),O=Ua(e,R,x.onContentChange),L=A.useRef(0),q=A.useRef(""),B=A.useRef(0),z=A.useRef(null),F=A.useRef("right"),W=A.useRef(0),ae=y?uE:A.Fragment,H=y?{as:tse,allowPinchZoom:!0}:void 0,K=se=>{const Q=q.current+se,M=E().filter(de=>!de.disabled),G=document.activeElement,V=M.find(de=>de.ref.current===G)?.textValue,I=M.map(de=>de.textValue),j=mse(I,Q,V),X=M.find(de=>de.textValue===j)?.ref.current;(function de(ue){q.current=ue,window.clearTimeout(L.current),ue!==""&&(L.current=window.setTimeout(()=>de(""),1e3))})(Q),X&&setTimeout(()=>X.focus())};A.useEffect(()=>()=>window.clearTimeout(L.current),[]),tF();const J=A.useCallback(se=>F.current===z.current?.side&&gse(se,z.current?.area),[]);return v.jsx(Jre,{scope:a,searchRef:q,onItemEnter:A.useCallback(se=>{J(se)&&se.preventDefault()},[J]),onItemLeave:A.useCallback(se=>{J(se)||(R.current?.focus(),D(null))},[J]),onTriggerLeave:A.useCallback(se=>{J(se)&&se.preventDefault()},[J]),pointerGraceTimerRef:B,onPointerGraceIntentChange:A.useCallback(se=>{z.current=se},[]),children:v.jsx(ae,{...H,children:v.jsx(eE,{asChild:!0,trapped:n,onMountAutoFocus:mt(r,se=>{se.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:v.jsx(XP,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:b,children:v.jsx(are,{asChild:!0,...k,dir:w.dir,orientation:"vertical",loop:o,currentTabStopId:_,onCurrentTabStopIdChange:D,onEntryFocus:mt(d,se=>{w.isUsingKeyboardRef.current||se.preventDefault()}),preventScrollOnEntryFocus:!0,children:v.jsx(zne,{role:"menu","aria-orientation":"vertical","data-state":hj(x.open),"data-radix-menu-content":"",dir:w.dir,...P,...T,ref:O,style:{outline:"none",...T.style},onKeyDown:mt(T.onKeyDown,se=>{const M=se.target.closest("[data-radix-menu-content]")===se.currentTarget,G=se.ctrlKey||se.altKey||se.metaKey,V=se.key.length===1;M&&(se.key==="Tab"&&se.preventDefault(),!G&&V&&K(se.key));const I=R.current;if(se.target!==I||!Vre.includes(se.key))return;se.preventDefault();const X=E().filter(de=>!de.disabled).map(de=>de.ref.current);VF.includes(se.key)&&X.reverse(),use(X)}),onBlur:mt(t.onBlur,se=>{se.currentTarget.contains(se.target)||(window.clearTimeout(L.current),q.current="")}),onPointerMove:mt(t.onPointerMove,Gp(se=>{const Q=se.target,M=W.current!==se.clientX;if(se.currentTarget.contains(Q)&&M){const G=se.clientX>W.current?"right":"left";F.current=G,W.current=se.clientX}}))})})})})})})});QF.displayName=nr;var ase="MenuGroup",fE=A.forwardRef((t,e)=>{const{__scopeMenu:a,...o}=t;return v.jsx(Aa.div,{role:"group",...o,ref:e})});fE.displayName=ase;var ose="MenuLabel",JF=A.forwardRef((t,e)=>{const{__scopeMenu:a,...o}=t;return v.jsx(Aa.div,{...o,ref:e})});JF.displayName=ose;var nb="MenuItem",HO="menu.itemSelect",uv=A.forwardRef((t,e)=>{const{disabled:a=!1,onSelect:o,...n}=t,r=A.useRef(null),i=Tm(nb,t.__scopeMenu),c=hE(nb,t.__scopeMenu),d=Ua(e,r),u=A.useRef(!1),m=()=>{const h=r.current;if(!a&&h){const f=new CustomEvent(HO,{bubbles:!0,cancelable:!0});h.addEventListener(HO,b=>o?.(b),{once:!0}),ZB(h,f),f.defaultPrevented?u.current=!1:i.onClose()}};return v.jsx(XF,{...n,ref:d,disabled:a,onClick:mt(t.onClick,m),onPointerDown:h=>{t.onPointerDown?.(h),u.current=!0},onPointerUp:mt(t.onPointerUp,h=>{u.current||h.currentTarget?.click()}),onKeyDown:mt(t.onKeyDown,h=>{const f=c.searchRef.current!=="";a||f&&h.key===" "||U0.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});uv.displayName=nb;var XF=A.forwardRef((t,e)=>{const{__scopeMenu:a,disabled:o=!1,textValue:n,...r}=t,i=hE(nb,a),c=GF(a),d=A.useRef(null),u=Ua(e,d),[m,h]=A.useState(!1),[f,b]=A.useState("");return A.useEffect(()=>{const y=d.current;y&&b((y.textContent??"").trim())},[r.children]),v.jsx(Hp.ItemSlot,{scope:a,disabled:o,textValue:n??f,children:v.jsx(ore,{asChild:!0,...c,focusable:!o,children:v.jsx(Aa.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...r,ref:u,onPointerMove:mt(t.onPointerMove,Gp(y=>{o?i.onItemLeave(y):(i.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:mt(t.onPointerLeave,Gp(y=>i.onItemLeave(y))),onFocus:mt(t.onFocus,()=>h(!0)),onBlur:mt(t.onBlur,()=>h(!1))})})})}),nse="MenuCheckboxItem",ej=A.forwardRef((t,e)=>{const{checked:a=!1,onCheckedChange:o,...n}=t;return v.jsx(rj,{scope:t.__scopeMenu,checked:a,children:v.jsx(uv,{role:"menuitemcheckbox","aria-checked":rb(a)?"mixed":a,...n,ref:e,"data-state":yE(a),onSelect:mt(n.onSelect,()=>o?.(rb(a)?!0:!a),{checkForDefaultPrevented:!1})})})});ej.displayName=nse;var tj="MenuRadioGroup",[rse,sse]=Xl(tj,{value:void 0,onValueChange:()=>{}}),aj=A.forwardRef((t,e)=>{const{value:a,onValueChange:o,...n}=t,r=Cr(o);return v.jsx(rse,{scope:t.__scopeMenu,value:a,onValueChange:r,children:v.jsx(fE,{...n,ref:e})})});aj.displayName=tj;var oj="MenuRadioItem",nj=A.forwardRef((t,e)=>{const{value:a,...o}=t,n=sse(oj,t.__scopeMenu),r=a===n.value;return v.jsx(rj,{scope:t.__scopeMenu,checked:r,children:v.jsx(uv,{role:"menuitemradio","aria-checked":r,...o,ref:e,"data-state":yE(r),onSelect:mt(o.onSelect,()=>n.onValueChange?.(a),{checkForDefaultPrevented:!1})})})});nj.displayName=oj;var bE="MenuItemIndicator",[rj,ise]=Xl(bE,{checked:!1}),sj=A.forwardRef((t,e)=>{const{__scopeMenu:a,forceMount:o,...n}=t,r=ise(bE,a);return v.jsx(Fs,{present:o||rb(r.checked)||r.checked===!0,children:v.jsx(Aa.span,{...n,ref:e,"data-state":yE(r.checked)})})});sj.displayName=bE;var lse="MenuSeparator",ij=A.forwardRef((t,e)=>{const{__scopeMenu:a,...o}=t;return v.jsx(Aa.div,{role:"separator","aria-orientation":"horizontal",...o,ref:e})});ij.displayName=lse;var cse="MenuArrow",lj=A.forwardRef((t,e)=>{const{__scopeMenu:a,...o}=t,n=ym(a);return v.jsx(Une,{...n,...o,ref:e})});lj.displayName=cse;var vE="MenuSub",[dse,cj]=Xl(vE),dj=t=>{const{__scopeMenu:e,children:a,open:o=!1,onOpenChange:n}=t,r=Xi(vE,e),i=ym(e),[c,d]=A.useState(null),[u,m]=A.useState(null),h=Cr(n);return A.useEffect(()=>(r.open===!1&&h(!1),()=>h(!1)),[r.open,h]),v.jsx(_F,{...i,children:v.jsx(WF,{scope:e,open:o,onOpenChange:h,content:u,onContentChange:m,children:v.jsx(dse,{scope:e,contentId:Bi(),triggerId:Bi(),trigger:c,onTriggerChange:d,children:a})})})};dj.displayName=vE;var gp="MenuSubTrigger",uj=A.forwardRef((t,e)=>{const a=Xi(gp,t.__scopeMenu),o=Tm(gp,t.__scopeMenu),n=cj(gp,t.__scopeMenu),r=hE(gp,t.__scopeMenu),i=A.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=r,u={__scopeMenu:t.__scopeMenu},m=A.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return A.useEffect(()=>m,[m]),A.useEffect(()=>{const h=c.current;return()=>{window.clearTimeout(h),d(null)}},[c,d]),v.jsx(pE,{asChild:!0,...u,children:v.jsx(XF,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":n.contentId,"data-state":hj(a.open),...t,ref:hm(e,n.onTriggerChange),onClick:h=>{t.onClick?.(h),!(t.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),a.open||a.onOpenChange(!0))},onPointerMove:mt(t.onPointerMove,Gp(h=>{r.onItemEnter(h),!h.defaultPrevented&&!t.disabled&&!a.open&&!i.current&&(r.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{a.onOpenChange(!0),m()},100))})),onPointerLeave:mt(t.onPointerLeave,Gp(h=>{m();const f=a.content?.getBoundingClientRect();if(f){const b=a.content?.dataset.side,y=b==="right",T=y?-5:5,x=f[y?"left":"right"],w=f[y?"right":"left"];r.onPointerGraceIntentChange({area:[{x:h.clientX+T,y:h.clientY},{x,y:f.top},{x:w,y:f.top},{x:w,y:f.bottom},{x,y:f.bottom}],side:b}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>r.onPointerGraceIntentChange(null),300)}else{if(r.onTriggerLeave(h),h.defaultPrevented)return;r.onPointerGraceIntentChange(null)}})),onKeyDown:mt(t.onKeyDown,h=>{const f=r.searchRef.current!=="";t.disabled||f&&h.key===" "||Hre[o.dir].includes(h.key)&&(a.onOpenChange(!0),a.content?.focus(),h.preventDefault())})})})});uj.displayName=gp;var pj="MenuSubContent",mj=A.forwardRef((t,e)=>{const a=YF(nr,t.__scopeMenu),{forceMount:o=a.forceMount,...n}=t,r=Xi(nr,t.__scopeMenu),i=Tm(nr,t.__scopeMenu),c=cj(pj,t.__scopeMenu),d=A.useRef(null),u=Ua(e,d);return v.jsx(Hp.Provider,{scope:t.__scopeMenu,children:v.jsx(Fs,{present:o||r.open,children:v.jsx(Hp.Slot,{scope:t.__scopeMenu,children:v.jsx(gE,{id:c.contentId,"aria-labelledby":c.triggerId,...n,ref:u,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{i.isUsingKeyboardRef.current&&d.current?.focus(),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:mt(t.onFocusOutside,m=>{m.target!==c.trigger&&r.onOpenChange(!1)}),onEscapeKeyDown:mt(t.onEscapeKeyDown,m=>{i.onClose(),m.preventDefault()}),onKeyDown:mt(t.onKeyDown,m=>{const h=m.currentTarget.contains(m.target),f=Gre[i.dir].includes(m.key);h&&f&&(r.onOpenChange(!1),c.trigger?.focus(),m.preventDefault())})})})})})});mj.displayName=pj;function hj(t){return t?"open":"closed"}function rb(t){return t==="indeterminate"}function yE(t){return rb(t)?"indeterminate":t?"checked":"unchecked"}function use(t){const e=document.activeElement;for(const a of t)if(a===e||(a.focus(),document.activeElement!==e))return}function pse(t,e){return t.map((a,o)=>t[(e+o)%t.length])}function mse(t,e,a){const n=e.length>1&&Array.from(e).every(u=>u===e[0])?e[0]:e,r=a?t.indexOf(a):-1;let i=pse(t,Math.max(r,0));n.length===1&&(i=i.filter(u=>u!==a));const d=i.find(u=>u.toLowerCase().startsWith(n.toLowerCase()));return d!==a?d:void 0}function hse(t,e){const{x:a,y:o}=t;let n=!1;for(let r=0,i=e.length-1;r<e.length;i=r++){const c=e[r],d=e[i],u=c.x,m=c.y,h=d.x,f=d.y;m>o!=f>o&&a<(h-u)*(o-m)/(f-m)+u&&(n=!n)}return n}function gse(t,e){if(!e)return!1;const a={x:t.clientX,y:t.clientY};return hse(a,e)}function Gp(t){return e=>e.pointerType==="mouse"?t(e):void 0}var fse=KF,bse=pE,vse=ZF,yse=QF,Tse=fE,Sse=JF,wse=uv,xse=ej,Pse=aj,Ese=nj,Cse=sj,kse=ij,_se=lj,Ase=dj,Rse=uj,Dse=mj,pv="DropdownMenu",[Ose]=Ji(pv,[HF]),$o=HF(),[Nse,gj]=Ose(pv),fj=t=>{const{__scopeDropdownMenu:e,children:a,dir:o,open:n,defaultOpen:r,onOpenChange:i,modal:c=!0}=t,d=$o(e),u=A.useRef(null),[m,h]=gm({prop:n,defaultProp:r??!1,onChange:i,caller:pv});return v.jsx(Nse,{scope:e,triggerId:Bi(),triggerRef:u,contentId:Bi(),open:m,onOpenChange:h,onOpenToggle:A.useCallback(()=>h(f=>!f),[h]),modal:c,children:v.jsx(fse,{...d,open:m,onOpenChange:h,dir:o,modal:c,children:a})})};fj.displayName=pv;var bj="DropdownMenuTrigger",vj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,disabled:o=!1,...n}=t,r=gj(bj,a),i=$o(a);return v.jsx(bse,{asChild:!0,...i,children:v.jsx(Aa.button,{type:"button",id:r.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":r.open?r.contentId:void 0,"data-state":r.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...n,ref:hm(e,r.triggerRef),onPointerDown:mt(t.onPointerDown,c=>{!o&&c.button===0&&c.ctrlKey===!1&&(r.onOpenToggle(),r.open||c.preventDefault())}),onKeyDown:mt(t.onKeyDown,c=>{o||(["Enter"," "].includes(c.key)&&r.onOpenToggle(),c.key==="ArrowDown"&&r.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});vj.displayName=bj;var Mse="DropdownMenuPortal",yj=t=>{const{__scopeDropdownMenu:e,...a}=t,o=$o(e);return v.jsx(vse,{...o,...a})};yj.displayName=Mse;var Tj="DropdownMenuContent",Sj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=gj(Tj,a),r=$o(a),i=A.useRef(!1);return v.jsx(yse,{id:n.contentId,"aria-labelledby":n.triggerId,...r,...o,ref:e,onCloseAutoFocus:mt(t.onCloseAutoFocus,c=>{i.current||n.triggerRef.current?.focus(),i.current=!1,c.preventDefault()}),onInteractOutside:mt(t.onInteractOutside,c=>{const d=c.detail.originalEvent,u=d.button===0&&d.ctrlKey===!0,m=d.button===2||u;(!n.modal||m)&&(i.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Sj.displayName=Tj;var Ise="DropdownMenuGroup",Lse=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(Tse,{...n,...o,ref:e})});Lse.displayName=Ise;var Bse="DropdownMenuLabel",wj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(Sse,{...n,...o,ref:e})});wj.displayName=Bse;var Fse="DropdownMenuItem",xj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(wse,{...n,...o,ref:e})});xj.displayName=Fse;var jse="DropdownMenuCheckboxItem",Pj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(xse,{...n,...o,ref:e})});Pj.displayName=jse;var zse="DropdownMenuRadioGroup",Ej=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(Pse,{...n,...o,ref:e})});Ej.displayName=zse;var Use="DropdownMenuRadioItem",Cj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(Ese,{...n,...o,ref:e})});Cj.displayName=Use;var qse="DropdownMenuItemIndicator",kj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(Cse,{...n,...o,ref:e})});kj.displayName=qse;var $se="DropdownMenuSeparator",_j=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(kse,{...n,...o,ref:e})});_j.displayName=$se;var Vse="DropdownMenuArrow",Hse=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(_se,{...n,...o,ref:e})});Hse.displayName=Vse;var Gse=t=>{const{__scopeDropdownMenu:e,children:a,open:o,onOpenChange:n,defaultOpen:r}=t,i=$o(e),[c,d]=gm({prop:o,defaultProp:r??!1,onChange:n,caller:"DropdownMenuSub"});return v.jsx(Ase,{...i,open:c,onOpenChange:d,children:a})},Wse="DropdownMenuSubTrigger",Aj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(Rse,{...n,...o,ref:e})});Aj.displayName=Wse;var Kse="DropdownMenuSubContent",Rj=A.forwardRef((t,e)=>{const{__scopeDropdownMenu:a,...o}=t,n=$o(a);return v.jsx(Dse,{...n,...o,ref:e,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Rj.displayName=Kse;var Dj=fj,Oj=vj,Nj=yj,Mj=Sj,Yse=wj,Ij=xj,Zse=Pj,Qse=Ej,Jse=Cj,Lj=kj,Xse=_j,eie=Gse,tie=Aj,aie=Rj;const TE=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M12 9v4m0 4h.01M10.615 3.892 2.39 18.098c-.456.788-.684 1.182-.65 1.506a1 1 0 0 0 .406.705c.263.191.718.191 1.629.191h16.45c.91 0 1.365 0 1.628-.191a1 1 0 0 0 .407-.705c.034-.324-.195-.718-.65-1.506L13.383 3.892c-.454-.785-.681-1.178-.978-1.31a1 1 0 0 0-.813 0c-.296.132-.523.525-.978 1.31Z"}));TE.displayName="AlertTriangle";const Bj=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M4 7.997a2.295 2.295 0 0 1-.39-.035A2 2 0 0 1 2.038 6.39C2 6.197 2 5.965 2 5.5s0-.697.038-.89A2 2 0 0 1 3.61 3.038C3.803 3 4.035 3 4.5 3h15c.465 0 .697 0 .89.038a2 2 0 0 1 1.572 1.572c.038.193.038.425.038.89s0 .697-.038.89a2 2 0 0 1-1.572 1.572c-.107.02-.226.03-.39.035M10 13h4M4 8h16v8.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C17.72 21 16.88 21 15.2 21H8.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C4 18.72 4 17.88 4 16.2V8Z"}));Bj.displayName="Archive";const Fj=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M7 17 17 7m0 0H7m10 0v10"}));Fj.displayName="ArrowUpRight";const jj=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M20 6 9 17l-5-5"}));jj.displayName="Check";const SE=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"m9 18 6-6-6-6"}));SE.displayName="ChevronRight";const zj=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10Z"}));zj.displayName="Circle";const Uj=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M9 2v2m6-2v2M9 20v2m6-2v2m5-13h2m-2 5h2M2 9h2m-2 5h2m4.8 6h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 17.72 20 16.88 20 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 4 16.88 4 15.2 4H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 6.28 4 7.12 4 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 20 7.12 20 8.8 20Zm1.8-5h2.8c.56 0 .84 0 1.054-.109a1 1 0 0 0 .437-.437C15 14.24 15 13.96 15 13.4v-2.8c0-.56 0-.84-.109-1.054a1 1 0 0 0-.437-.437C14.24 9 13.96 9 13.4 9h-2.8c-.56 0-.84 0-1.054.109a1 1 0 0 0-.437.437C9 9.76 9 10.04 9 10.6v2.8c0 .56 0 .84.109 1.054a1 1 0 0 0 .437.437C9.76 15 10.04 15 10.6 15Z"}));Uj.displayName="CpuChip01";const qj=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M12 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm7 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM5 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z"}));qj.displayName="DotsHorizontal";const $j=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M3 3v10.2c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 18 6.12 18 7.8 18H15m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0ZM3 8h12m0 0a3 3 0 1 0 6 0 3 3 0 0 0-6 0Z"}));$j.displayName="GitBranch01";const Vj=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M2.5 12h19M6 16h4M8.967 4h6.066c1.077 0 1.616 0 2.091.164a3 3 0 0 1 1.121.693c.36.352.6.833 1.082 1.796l2.166 4.333c.19.378.284.567.35.765.06.177.102.357.128.541.029.207.029.418.029.841V15.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 20 18.88 20 17.2 20H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 17.72 2 16.88 2 15.2v-2.067c0-.422 0-.634.029-.84.026-.184.068-.365.128-.541.066-.199.16-.388.35-.766l2.166-4.333c.482-.963.723-1.444 1.082-1.796a3 3 0 0 1 1.12-.693C7.352 4 7.89 4 8.968 4Z"}));Vj.displayName="HardDrive";const Hj=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M21 9V3m0 0h-6m6 0-8 8m-3-6H7.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C3 7.28 3 8.12 3 9.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C5.28 21 6.12 21 7.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C19 18.72 19 17.88 19 16.2V14"}));Hj.displayName="LinkExternal01";const Gj=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M17 10V8A5 5 0 0 0 7 8v2m5 4.5v2M8.8 21h6.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C20 18.72 20 17.88 20 16.2v-1.4c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C17.72 10 16.88 10 15.2 10H8.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C4 12.28 4 13.12 4 14.8v1.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C6.28 21 7.12 21 8.8 21Z"}));Gj.displayName="Lock01";const Wj=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));Wj.displayName="RefreshCw01";const Kj=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M6 6h.01M6 18h.01m-.81-8h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 8.48 22 7.92 22 6.8V5.2c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 2 19.92 2 18.8 2H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 3.52 2 4.08 2 5.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 10 4.08 10 5.2 10Zm0 12h13.6c1.12 0 1.68 0 2.108-.218a2 2 0 0 0 .874-.874C22 20.48 22 19.92 22 18.8v-1.6c0-1.12 0-1.68-.218-2.108a2 2 0 0 0-.874-.874C20.48 14 19.92 14 18.8 14H5.2c-1.12 0-1.68 0-2.108.218a2 2 0 0 0-.874.874C2 15.52 2 16.08 2 17.2v1.6c0 1.12 0 1.68.218 2.108a2 2 0 0 0 .874.874C3.52 22 4.08 22 5.2 22Z"}));Kj.displayName="Server01";const Yj=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M11.302 21.615c.221.129.332.194.488.227.122.026.298.026.42 0 .156-.034.267-.098.488-.227C14.646 20.478 20 16.908 20 12V7.217c0-.799 0-1.199-.13-1.542a2 2 0 0 0-.548-.79c-.275-.243-.65-.383-1.398-.664l-5.362-2.01c-.208-.078-.312-.117-.419-.133a1 1 0 0 0-.286 0c-.107.016-.21.055-.419.133L6.076 4.22c-.748.28-1.122.421-1.398.664a2 2 0 0 0-.547.79C4 6.018 4 6.418 4 7.217V12c0 4.908 5.354 8.478 7.302 9.615Z"}));Yj.displayName="Shield01";const Zj=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M20 21c0-1.396 0-2.093-.172-2.661a4 4 0 0 0-2.667-2.667c-.568-.172-1.265-.172-2.661-.172h-5c-1.396 0-2.093 0-2.661.172a4 4 0 0 0-2.667 2.667C4 18.907 4 19.604 4 21M16.5 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0Z"}));Zj.displayName="User01";const Qj=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M18 15.837c1.456.731 2.704 1.905 3.615 3.373.18.29.27.436.302.637.063.409-.216.912-.597 1.073-.188.08-.398.08-.82.08M16 11.532a4.5 4.5 0 0 0 0-8.064M14 7.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM2.56 18.938C4.153 16.545 6.67 15 9.5 15s5.346 1.545 6.94 3.938c.35.525.525.787.505 1.122-.016.26-.187.58-.396.738-.267.202-.635.202-1.371.202H3.822c-.736 0-1.104 0-1.372-.202a1.109 1.109 0 0 1-.395-.738c-.02-.335.155-.597.504-1.122Z"}));Qj.displayName="Users03";const Jj=({size:t=24,color:e="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M17 7 7 17M7 7l10 10"}));Jj.displayName="X";function oie(t){const e=ye.c(4);let a;e[0]!==t?({...a}=t,e[0]=t,e[1]=a):a=e[1];let o;return e[2]!==a?(o=v.jsx(Dj,{"data-slot":"dropdown-menu",...a}),e[2]=a,e[3]=o):o=e[3],o}function nie(t){const e=ye.c(4);let a;e[0]!==t?({...a}=t,e[0]=t,e[1]=a):a=e[1];let o;return e[2]!==a?(o=v.jsx(Oj,{"data-slot":"dropdown-menu-trigger",...a}),e[2]=a,e[3]=o):o=e[3],o}function rie(t){const e=ye.c(10);let a,o,n;e[0]!==t?({className:a,sideOffset:n,...o}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n):(a=e[1],o=e[2],n=e[3]);const r=n===void 0?4:n;let i;e[4]!==a?(i=Qe("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-lg border p-1 shadow-md",a),e[4]=a,e[5]=i):i=e[5];let c;return e[6]!==o||e[7]!==r||e[8]!==i?(c=v.jsx(Nj,{children:v.jsx(Mj,{"data-slot":"dropdown-menu-content",sideOffset:r,translate:"no",className:i,...o})}),e[6]=o,e[7]=r,e[8]=i,e[9]=c):c=e[9],c}function sie(t){const e=ye.c(12);let a,o,n,r;e[0]!==t?({className:a,inset:o,variant:r,...n}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n,e[4]=r):(a=e[1],o=e[2],n=e[3],r=e[4]);const i=r===void 0?"default":r;let c;e[5]!==a?(c=Qe("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",a),e[5]=a,e[6]=c):c=e[6];let d;return e[7]!==o||e[8]!==n||e[9]!==c||e[10]!==i?(d=v.jsx(Ij,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":i,className:c,...n}),e[7]=o,e[8]=n,e[9]=c,e[10]=i,e[11]=d):d=e[11],d}function Owe(t){const e=ye.c(13);let a,o,n,r;e[0]!==t?({className:n,children:o,checked:a,...r}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n,e[4]=r):(a=e[1],o=e[2],n=e[3],r=e[4]);let i;e[5]!==n?(i=Qe("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-lg py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),e[5]=n,e[6]=i):i=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=v.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:v.jsx(Lj,{children:v.jsx(jj,{className:"size-4"})})}),e[7]=c):c=e[7];let d;return e[8]!==a||e[9]!==o||e[10]!==r||e[11]!==i?(d=v.jsxs(Zse,{"data-slot":"dropdown-menu-checkbox-item",className:i,checked:a,...r,children:[c,o]}),e[8]=a,e[9]=o,e[10]=r,e[11]=i,e[12]=d):d=e[12],d}function Nwe(t){const e=ye.c(4);let a;e[0]!==t?({...a}=t,e[0]=t,e[1]=a):a=e[1];let o;return e[2]!==a?(o=v.jsx(Qse,{"data-slot":"dropdown-menu-radio-group",...a}),e[2]=a,e[3]=o):o=e[3],o}function Mwe(t){const e=ye.c(11);let a,o,n;e[0]!==t?({className:o,children:a,...n}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n):(a=e[1],o=e[2],n=e[3]);let r;e[4]!==o?(r=Qe("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-lg py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),e[4]=o,e[5]=r):r=e[5];let i;e[6]===Symbol.for("react.memo_cache_sentinel")?(i=v.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:v.jsx(Lj,{children:v.jsx(zj,{className:"size-2 fill-current"})})}),e[6]=i):i=e[6];let c;return e[7]!==a||e[8]!==n||e[9]!==r?(c=v.jsxs(Jse,{"data-slot":"dropdown-menu-radio-item",className:r,...n,children:[i,a]}),e[7]=a,e[8]=n,e[9]=r,e[10]=c):c=e[10],c}function Iwe(t){const e=ye.c(10);let a,o,n;e[0]!==t?({className:a,inset:o,...n}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n):(a=e[1],o=e[2],n=e[3]);let r;e[4]!==a?(r=Qe("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",a),e[4]=a,e[5]=r):r=e[5];let i;return e[6]!==o||e[7]!==n||e[8]!==r?(i=v.jsx(Yse,{"data-slot":"dropdown-menu-label","data-inset":o,className:r,...n}),e[6]=o,e[7]=n,e[8]=r,e[9]=i):i=e[9],i}function Lwe(t){const e=ye.c(8);let a,o;e[0]!==t?({className:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);let n;e[3]!==a?(n=Qe("bg-border -mx-1 my-1 h-px",a),e[3]=a,e[4]=n):n=e[4];let r;return e[5]!==o||e[6]!==n?(r=v.jsx(Xse,{"data-slot":"dropdown-menu-separator",className:n,...o}),e[5]=o,e[6]=n,e[7]=r):r=e[7],r}function Bwe(t){const e=ye.c(4);let a;e[0]!==t?({...a}=t,e[0]=t,e[1]=a):a=e[1];let o;return e[2]!==a?(o=v.jsx(eie,{"data-slot":"dropdown-menu-sub",...a}),e[2]=a,e[3]=o):o=e[3],o}function Fwe(t){const e=ye.c(13);let a,o,n,r;e[0]!==t?({className:o,inset:n,children:a,...r}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n,e[4]=r):(a=e[1],o=e[2],n=e[3],r=e[4]);let i;e[5]!==o?(i=Qe("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-lg px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o),e[5]=o,e[6]=i):i=e[6];let c;e[7]===Symbol.for("react.memo_cache_sentinel")?(c=v.jsx(SE,{className:"ml-auto size-4"}),e[7]=c):c=e[7];let d;return e[8]!==a||e[9]!==n||e[10]!==r||e[11]!==i?(d=v.jsxs(tie,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:i,...r,children:[a,c]}),e[8]=a,e[9]=n,e[10]=r,e[11]=i,e[12]=d):d=e[12],d}function jwe(t){const e=ye.c(8);let a,o;e[0]!==t?({className:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);let n;e[3]!==a?(n=Qe("notranslate bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",a),e[3]=a,e[4]=n):n=e[4];let r;return e[5]!==o||e[6]!==n?(r=v.jsx(aie,{"data-slot":"dropdown-menu-sub-content",translate:"no",className:n,...o}),e[5]=o,e[6]=n,e[7]=r):r=e[7],r}function iie(){const t=ye.c(3),[e,a]=A.useState(-1);let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=i=>{if(!i)return;const c=()=>a(i.clientWidth);c();const d=new ResizeObserver(c);return d.observe(i),()=>d.disconnect()},t[0]=o):o=t[0];const n=o;let r;return t[1]!==e?(r=[e,n],t[1]=e,t[2]=r):r=t[2],r}function lie(){let t=new Map;const e=new Set,a=()=>e.forEach(o=>o());return{getSnapshot:()=>t,subscribe(o){return e.add(o),()=>{e.delete(o)}},register(o){if(t.has(o.after))throw new Error(`Two components extend breadcrumb: ${o.after}`);return t=new Map(t).set(o.after,o),a(),()=>{if(t.get(o.after)!==o)return;const n=new Map(t);n.delete(o.after),t=n,a()}}}}const wE=A.createContext(null);function cie(t){const e=ye.c(3),{children:a}=t,[o]=A.useState(lie);let n;return e[0]!==a||e[1]!==o?(n=v.jsx(wE,{value:o,children:a}),e[0]=a,e[1]=o,e[2]=n):n=e[2],n}function die(t){const e=ye.c(2),{children:a}=t;let o;return e[0]!==a?(o=v.jsx(wE,{value:null,children:a}),e[0]=a,e[1]=o):o=e[1],o}function mv(){return A.use(wE)}function Xj(t){const e=ye.c(3),a=mv();if(!a)throw new Error("Breadcrumb contributions require Page.Breadcrumbs.Provider");let o;return e[0]!==t||e[1]!==a?(o=v.jsx("span",{hidden:!0,ref:n=>n?a.register(t):void 0}),e[0]=t,e[1]=a,e[2]=o):o=e[2],o}function uie(t,e){const a=new Set,o=n=>{if(a.has(n.key))throw new Error(`Duplicate breadcrumb key: ${n.key}`);a.add(n.key);const r=e.get(n.key);return[{...n,...r?.parent},...r?.items?.flatMap(o)??[]]};return t.flatMap(o)}function pie(t,e){const a=t.map(o=>o.label).filter(o=>typeof o=="string").reverse();return e&&a.push(e),a.map(o=>o.trim()).filter(Boolean).join(" · ")}const e3=5;function mie(t,e=!1,a=e3){const o=t.map(i=>({type:"item",item:i}));if(t.length<=(e?1:a))return o;const n=e?0:1,r=t.length-(e?1:2);return o.splice(n,r-n,{type:"menu",items:t.slice(n,r)}),o}const t3=I$(function(e){return v.jsx("a",{...e,"aria-current":void 0})});function hie(t){const e=ye.c(12),{items:a}=t,o=qo();let n;e[0]!==o?(n=o("page.breadcrumbMenu"),e[0]=o,e[1]=n):n=e[1];let r;e[2]===Symbol.for("react.memo_cache_sentinel")?(r=v.jsx(qj,{"aria-hidden":"true",className:"size-4"}),e[2]=r):r=e[2];let i;e[3]!==n?(i=v.jsx(nie,{asChild:!0,children:v.jsx(vn,{variant:"ghost",size:"icon-xs",className:"shrink-0","aria-label":n,children:r})}),e[3]=n,e[4]=i):i=e[4];let c;e[5]!==a?(c=a.map(gie),e[5]=a,e[6]=c):c=e[6];let d;e[7]!==c?(d=v.jsx(rie,{align:"start",children:c}),e[7]=c,e[8]=d):d=e[8];let u;return e[9]!==i||e[10]!==d?(u=v.jsxs(oie,{children:[i,d]}),e[9]=i,e[10]=d,e[11]=u):u=e[11],u}function gie(t){const e=v.jsx("span",{className:"max-w-64 truncate",title:typeof t.label=="string"?t.label:void 0,children:t.label});return v.jsx(sie,{asChild:!!t.link&&!t.onSelect,onSelect:t.onSelect,disabled:!t.onSelect&&!t.link,children:t.link&&!t.onSelect?v.jsx(t3,{...t.link,children:e}):e},t.key)}function fie(t){const e=ye.c(14),{item:a,current:o}=t,n=typeof a.label=="string"?a.label:void 0;if(o){let i;return e[0]!==a.label||e[1]!==n?(i=v.jsx("h1",{"data-slot":"page-title","aria-current":"page",title:n,className:"truncate text-sm font-medium text-foreground",children:a.label}),e[0]=a.label,e[1]=n,e[2]=i):i=e[2],i}if(a.onSelect){let i;return e[3]!==a.label||e[4]!==a.onSelect||e[5]!==n?(i=v.jsx("button",{type:"button",onClick:a.onSelect,title:n,className:"block max-w-48 truncate rounded-lg hover:text-foreground focus-ring",children:a.label}),e[3]=a.label,e[4]=a.onSelect,e[5]=n,e[6]=i):i=e[6],i}if(a.link){let i;return e[7]!==a.label||e[8]!==a.link||e[9]!==n?(i=v.jsx(t3,{...a.link,title:n,className:"block max-w-48 truncate rounded-lg hover:text-foreground focus-ring",children:a.label}),e[7]=a.label,e[8]=a.link,e[9]=n,e[10]=i):i=e[10],i}let r;return e[11]!==a.label||e[12]!==n?(r=v.jsx("span",{title:n,className:"block max-w-48 truncate",children:a.label}),e[11]=a.label,e[12]=n,e[13]=r):r=e[13],r}function a3(t){const e=ye.c(21),{items:a}=t,o=qo(),[n,r]=iie();let i,c,d,u,m,h;if(e[0]!==a||e[1]!==r||e[2]!==o||e[3]!==n){const y=mie(a,n>=0&&n<320,e3);u=r,e[10]!==o?(m=o("page.breadcrumbs"),e[10]=o,e[11]=m):m=e[11],h='min-w-0 flex-1 first:pl-3 [&:has(~[data-slot="panel-topbar-left-target"]:not(:empty))]:flex-initial',i="page-breadcrumbs",c="flex min-w-0 items-center gap-2 text-sm text-muted-foreground",d=y.map((T,x)=>v.jsxs("li",{className:Qe("flex min-w-0 items-center gap-2",x>0&&"min-w-5",T.type==="item"?"last:min-w-16 last:flex-[1_1_auto]":"shrink-0"),children:[x>0&&v.jsx(SE,{"aria-hidden":"true",className:"size-3 shrink-0 text-muted-foreground/60"}),T.type==="item"?v.jsx(fie,{item:T.item,current:x===y.length-1}):v.jsx(hie,{items:T.items})]},T.type==="item"?`item:${T.item.key}`:"menu")),e[0]=a,e[1]=r,e[2]=o,e[3]=n,e[4]=i,e[5]=c,e[6]=d,e[7]=u,e[8]=m,e[9]=h}else i=e[4],c=e[5],d=e[6],u=e[7],m=e[8],h=e[9];let f;e[12]!==i||e[13]!==c||e[14]!==d?(f=v.jsx("ol",{"data-slot":i,className:c,children:d}),e[12]=i,e[13]=c,e[14]=d,e[15]=f):f=e[15];let b;return e[16]!==u||e[17]!==m||e[18]!==h||e[19]!==f?(b=v.jsx("nav",{ref:u,"aria-label":m,className:h,children:f}),e[16]=u,e[17]=m,e[18]=h,e[19]=f,e[20]=b):b=e[20],b}function bie(t){const e=ye.c(12),{items:a,scope:o}=t,n=mv();if(!n)throw new Error("Page.Header requires Page.Breadcrumbs.Provider");const r=A.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot);let i,c;e[0]!==r||e[1]!==a||e[2]!==o?(i=uie(a,r),c=pie(i,o),e[0]=r,e[1]=a,e[2]=o,e[3]=i,e[4]=c):(i=e[3],c=e[4]);const d=c;let u;e[5]!==d?(u=d&&v.jsx("title",{children:d}),e[5]=d,e[6]=u):u=e[6];let m;e[7]!==i?(m=v.jsx(a3,{items:i}),e[7]=i,e[8]=m):m=e[8];let h;return e[9]!==u||e[10]!==m?(h=v.jsxs(v.Fragment,{children:[u,m]}),e[9]=u,e[10]=m,e[11]=h):h=e[11],h}function vie(t){const e=ye.c(3),a=mv();let o;return e[0]!==t||e[1]!==a?(o=a?v.jsx(Xj,{...t}):v.jsx("div",{className:"min-w-0 shrink-0 border-b px-3 py-2",children:v.jsx(a3,{items:t.items??[]})}),e[0]=t,e[1]=a,e[2]=o):o=e[2],o}const yie=Object.assign(vie,{Provider:cie,Detached:die});function Tie(t){const e=ye.c(8);let a,o;e[0]!==t?({className:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);let n;e[3]!==a?(n=Qe("flex h-full min-h-0 min-w-0 w-full flex-col overflow-hidden",a),e[3]=a,e[4]=n):n=e[4];let r;return e[5]!==o||e[6]!==n?(r=v.jsx("div",{...o,"data-slot":"page",className:n}),e[5]=o,e[6]=n,e[7]=r):r=e[7],r}function Sie(t){const e=ye.c(8);let a,o;e[0]!==t?({className:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);let n;e[3]!==a?(n=Qe("min-h-0 min-w-0 flex-1 overflow-auto",a),e[3]=a,e[4]=n):n=e[4];let r;return e[5]!==o||e[6]!==n?(r=v.jsx("div",{...o,"data-slot":"page-content",className:n}),e[5]=o,e[6]=n,e[7]=r):r=e[7],r}const wie={reading:"max-w-[720px]",standard:"max-w-5xl",wide:"max-w-[1200px]",fluid:"max-w-none"},xie="px-4 md:pl-6 md:pr-8",o3=A.createContext(!1);function Pie(t){const e=ye.c(12);let a,o,n;e[0]!==t?({className:a,width:n,...o}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n):(a=e[1],o=e[2],n=e[3]);const r=n===void 0?"wide":n,i=A.use(o3);let c;e[4]!==a||e[5]!==i||e[6]!==r?(c=Qe("w-full",i?Qe(xie,"pt-4 pb-8"):"mx-auto px-4 py-6 md:px-8 md:py-8",wie[r],a),e[4]=a,e[5]=i,e[6]=r,e[7]=c):c=e[7];let d;return e[8]!==o||e[9]!==c||e[10]!==r?(d=v.jsx("div",{...o,"data-slot":"page-container","data-width":r,className:c}),e[8]=o,e[9]=c,e[10]=r,e[11]=d):d=e[11],d}function Eie(t){const e=ye.c(9),{children:a,actions:o,className:n}=t,r=mv();let i;e[0]!==a||e[1]!==n||e[2]!==r?(i=r?v.jsx(Xj,{after:"page",parent:{label:a}}):v.jsx("div",{"data-slot":"page-title",className:Qe("flex flex-wrap items-center justify-between gap-3",n),children:v.jsx("h1",{className:"min-w-0 text-xl font-medium",children:a})}),e[0]=a,e[1]=n,e[2]=r,e[3]=i):i=e[3];let c;e[4]!==o?(c=o&&v.jsx(n3,{children:o}),e[4]=o,e[5]=c):c=e[5];let d;return e[6]!==i||e[7]!==c?(d=v.jsxs(v.Fragment,{children:[i,c]}),e[6]=i,e[7]=c,e[8]=d):d=e[8],d}function n3(t){const e=ye.c(3),{children:a,secondary:o}=t;let n;if(e[0]!==a||e[1]!==o){const r=v.jsxs("div",{"data-slot":"page-actions",className:"flex shrink-0 items-center gap-2",children:[o,a]});n=v.jsx(pn.Topbar.Right.Portal,{fallback:r,children:r}),e[0]=a,e[1]=o,e[2]=n}else n=e[2];return n}function Cie(t){const e=ye.c(28),{breadcrumbs:a,scope:o,leading:n,actions:r,navigation:i,trailingActions:c}=t;let d;e[0]!==a||e[1]!==o?(d=v.jsx(bie,{items:a,scope:o}),e[0]=a,e[1]=o,e[2]=d):d=e[2];let u;e[3]===Symbol.for("react.memo_cache_sentinel")?(u=v.jsx(pn.Topbar.Left.Target,{}),e[3]=u):u=e[3];let m;e[4]!==n||e[5]!==d?(m=v.jsxs(pn.Topbar.Left,{className:"flex-1 gap-2",children:[n,d,u]}),e[4]=n,e[5]=d,e[6]=m):m=e[6];let h;e[7]!==r?(h=v.jsx("div",{className:"peer flex min-w-0 items-center gap-2 empty:hidden",children:r}),e[7]=r,e[8]=h):h=e[8];let f;e[9]===Symbol.for("react.memo_cache_sentinel")?(f=v.jsx(pn.Topbar.Right.Target,{className:"flex items-center gap-2 before:hidden before:h-4 before:w-px before:shrink-0 before:bg-border peer-[:not(:empty)]:before:block"}),e[9]=f):f=e[9];let b;e[10]!==h||e[11]!==c?(b=v.jsxs(pn.Topbar.Right,{className:"shrink-0 gap-2",children:[h,f,c]}),e[10]=h,e[11]=c,e[12]=b):b=e[12];let y;e[13]!==m||e[14]!==b?(y=v.jsxs(pn.Topbar,{className:"gap-3 border-b border-border/60 px-3","data-testid":"page-header",children:[m,b]}),e[13]=m,e[14]=b,e[15]=y):y=e[15];let T;e[16]!==i?(T=v.jsx("div",{"data-toolbar-content":"",className:"min-w-0 empty:hidden",children:i}),e[16]=i,e[17]=T):T=e[17];let x;e[18]===Symbol.for("react.memo_cache_sentinel")?(x=v.jsx(pn.Toolbar.Left.Target,{}),e[18]=x):x=e[18];let w;e[19]!==T?(w=v.jsxs(pn.Toolbar.Left,{children:[T,x]}),e[19]=T,e[20]=w):w=e[20];let P;e[21]===Symbol.for("react.memo_cache_sentinel")?(P=v.jsx(pn.Toolbar.Center,{className:"@max-xl/panel-toolbar:order-last @max-xl/panel-toolbar:basis-full [&:not(:has([data-toolbar-content]:not(:empty)))]:hidden",children:v.jsx(pn.Toolbar.Center.Target,{})}),e[21]=P):P=e[21];let k;e[22]===Symbol.for("react.memo_cache_sentinel")?(k=v.jsx(pn.Toolbar.Right,{children:v.jsx(pn.Toolbar.Right.Target,{})}),e[22]=k):k=e[22];let E;e[23]!==w?(E=v.jsxs(pn.Toolbar,{children:[w,P,k]}),e[23]=w,e[24]=E):E=e[24];let _;return e[25]!==E||e[26]!==y?(_=v.jsxs(v.Fragment,{children:[y,E]}),e[25]=E,e[26]=y,e[27]=_):_=e[27],_}function kie(t){const e=ye.c(11);let a,o;e[0]!==t?({className:a,...o}=t,e[0]=t,e[1]=a,e[2]=o):(a=e[1],o=e[2]);const n=qo();let r;e[3]!==n?(r=n("page.views"),e[3]=n,e[4]=r):r=e[4];let i;e[5]!==a?(i=Qe("-m-2 flex min-w-0 items-center gap-1 overflow-x-auto p-2 no-scrollbar",a),e[5]=a,e[6]=i):i=e[6];let c;return e[7]!==o||e[8]!==r||e[9]!==i?(c=v.jsx("nav",{"aria-label":r,...o,"data-slot":"page-tabs",className:i}),e[7]=o,e[8]=r,e[9]=i,e[10]=c):c=e[10],c}function _ie(t){const e=ye.c(14);let a,o,n,r;e[0]!==t?({active:a,asChild:r,className:o,...n}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n,e[4]=r):(a=e[1],o=e[2],n=e[3],r=e[4]);const i=r===void 0?!1:r,c=i?void 0:"button",d=i&&a?"page":void 0,u=i?void 0:a;let m;e[5]!==o?(m=Qe("shrink-0",o),e[5]=o,e[6]=m):m=e[6];let h;return e[7]!==i||e[8]!==n||e[9]!==c||e[10]!==d||e[11]!==u||e[12]!==m?(h=v.jsx(vn,{asChild:i,variant:"tab",size:"sm",...n,type:c,"aria-current":d,"aria-pressed":u,"data-slot":"page-tab",className:m}),e[7]=i,e[8]=n,e[9]=c,e[10]=d,e[11]=u,e[12]=m,e[13]=h):h=e[13],h}const xd=Object.assign(Tie,{Header:Cie,Tabs:kie,Tab:_ie,Actions:n3,Content:Sie,Container:Object.assign(Pie,{Inset:o3}),Title:Eie,Breadcrumbs:yie});var ge=typeof window<"u"?window:void 0,lo=typeof globalThis<"u"?globalThis:ge;typeof self>"u"&&(lo.self=lo),typeof File>"u"&&(lo.File=function(){});var Mn=lo?.navigator,ze=lo?.document,xo=lo?.location,q0=lo?.fetch,$0=lo!=null&&lo.XMLHttpRequest&&"withCredentials"in new lo.XMLHttpRequest?lo.XMLHttpRequest:void 0,GO=lo?.AbortController,Aie=lo?.CompressionStream,mn=Mn?.userAgent,at=ge??{},WO="1.372.3",Zo={DEBUG:!1,LIB_VERSION:WO,LIB_NAME:"web",JS_SDK_VERSION:WO};function KO(t,e,a,o,n,r,i){try{var c=t[r](i),d=c.value}catch(u){return void a(u)}c.done?e(d):Promise.resolve(d).then(o,n)}function er(t){return function(){var e=this,a=arguments;return new Promise((function(o,n){var r=t.apply(e,a);function i(d){KO(r,o,n,i,c,"next",d)}function c(d){KO(r,o,n,i,c,"throw",d)}i(void 0)}))}}function Me(){return Me=Object.assign?Object.assign.bind():function(t){for(var e=1;arguments.length>e;e++){var a=arguments[e];for(var o in a)({}).hasOwnProperty.call(a,o)&&(t[o]=a[o])}return t},Me.apply(null,arguments)}function r3(t,e){if(t==null)return{};var a={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)!==-1)continue;a[o]=t[o]}return a}function V0(){return V0=er((function*(t,e,a){e===void 0&&(e=!0);try{var o=new CompressionStream("gzip"),n=o.writable.getWriter(),r=n.write(new TextEncoder().encode(t)).then((()=>n.close())).catch((function(){var d=er((function*(u){try{yield n.abort(u)}catch{}throw u}));return function(u){return d.apply(this,arguments)}})()),i=new Response(o.readable).blob(),[c]=yield Promise.all([i,r]);return c}catch(d){if(a!=null&&a.rethrow)throw d;return e&&console.error("Failed to gzip compress data",d),null}})),V0.apply(this,arguments)}var Rie=["amazonbot","amazonproductbot","app.hypefactors.com","applebot","archive.org_bot","awariobot","backlinksextendedbot","baiduspider","bingbot","bingpreview","chrome-lighthouse","dataforseobot","deepscan","duckduckbot","facebookexternal","facebookcatalog","http://yandex.com/bots","hubspot","ia_archiver","leikibot","linkedinbot","meta-externalagent","mj12bot","msnbot","nessus","petalbot","pinterest","prerender","rogerbot","screaming frog","sebot-wa","sitebulb","slackbot","slurp","trendictionbot","turnitin","twitterbot","vercel-screenshot","vercelbot","yahoo! slurp","yandexbot","zoombot","bot.htm","bot.php","(bot;","bot/","crawler","ahrefsbot","ahrefssiteaudit","semrushbot","siteauditbot","splitsignalbot","gptbot","oai-searchbot","chatgpt-user","perplexitybot","better uptime bot","sentryuptimebot","uptimerobot","headlesschrome","cypress","google-hoteladsverifier","adsbot-google","apis-google","duplexweb-google","feedfetcher-google","google favicon","google web preview","google-read-aloud","googlebot","googleother","google-cloudvertexbot","googleweblight","mediapartners-google","storebot-google","google-inspectiontool","bytespider"],YO=function(t,e){if(e===void 0&&(e=[]),!t)return!1;var a=t.toLowerCase();return Rie.concat(e).some((o=>{var n=o.toLowerCase();return a.indexOf(n)!==-1}))},Die=["$snapshot","$pageview","$pageleave","$set","survey dismissed","survey sent","survey shown","$identify","$groupidentify","$create_alias","$$client_ingestion_warning","$web_experiment_applied","$feature_enrollment_update","$feature_flag_called"];function Ct(t,e){return t.indexOf(e)!==-1}var hv=function(t){return t.trim()},H0=function(t){return t.replace(/^\$/,"")},s3=Object.prototype,i3=s3.hasOwnProperty,gv=s3.toString,Bt=Array.isArray||function(t){return gv.call(t)==="[object Array]"},As=t=>typeof t=="function",La=t=>t===Object(t)&&!Bt(t),gd=t=>{if(La(t)){for(var e in t)if(i3.call(t,e))return!1;return!0}return!1},$e=t=>t===void 0,Ea=t=>gv.call(t)=="[object String]",wf=t=>Ea(t)&&t.trim().length===0,js=t=>t===null,kt=t=>$e(t)||js(t),sr=t=>gv.call(t)=="[object Number]"&&t==t,id=t=>sr(t)&&t>0,Kr=t=>gv.call(t)==="[object Boolean]",Oie=t=>t instanceof FormData,Nie=t=>Ct(Die,t);function l3(t){return t===null||typeof t!="object"}function sb(t,e){return{}.toString.call(t)==="[object "+e+"]"}function xE(t){return typeof Event<"u"&&(function(e,a){try{return e instanceof a}catch{return!1}})(t,Event)}var Mie=[!0,"true",1,"1","yes"],$S=t=>Ct(Mie,t),Iie=[!1,"false",0,"0","no"];function Yr(t,e,a,o,n){return e>a&&(o.warn("min cannot be greater than max."),e=a),sr(t)?t>a?(o.warn(" cannot be greater than max: "+a+". Using max value instead."),a):e>t?(o.warn(" cannot be less than min: "+e+". Using min value instead."),e):t:(o.warn(" must be a number. using max or fallback. max: "+a+", fallback: "+n),Yr(n||a,e,a,o))}let Lie=class{constructor(e){this.$t={},this.zt=e.zt,this.Ut=Yr(e.bucketSize,0,100,e.Gt),this.Wt=Yr(e.refillRate,0,this.Ut,e.Gt),this.Xt=Yr(e.refillInterval,0,864e5,e.Gt)}Jt(e,a){var o=Math.floor((a-e.lastAccess)/this.Xt);o>0&&(e.tokens=Math.min(e.tokens+o*this.Wt,this.Ut),e.lastAccess=e.lastAccess+o*this.Xt)}consumeRateLimit(e){var a,o=Date.now(),n=String(e),r=this.$t[n];return r?this.Jt(r,o):this.$t[n]=r={tokens:this.Ut,lastAccess:o},r.tokens===0||(r.tokens--,r.tokens===0&&((a=this.zt)==null||a.call(this,e)),r.tokens===0)}stop(){this.$t={}}};var Yg,ZO,VS,Ln="Mobile",ib="iOS",Ns="Android",jd="Tablet",c3=Ns+" "+jd,d3="iPad",u3="Apple",p3=u3+" Watch",Ep="Safari",zd="BlackBerry",m3="Samsung",h3=m3+"Browser",g3=m3+" Internet",Fl="Chrome",Bie=Fl+" OS",f3=Fl+" "+ib,PE="Internet Explorer",b3=PE+" "+Ln,EE="Opera",Fie=EE+" Mini",CE="Edge",v3="Microsoft "+CE,Pd="Firefox",y3=Pd+" "+ib,Wp="Nintendo",Kp="PlayStation",Ed="Xbox",T3=Ns+" "+Ln,S3=Ln+" "+Ep,fp="Windows",G0=fp+" Phone",QO="Nokia",W0="Ouya",w3="Generic",jie=w3+" "+Ln.toLowerCase(),x3=w3+" "+jd.toLowerCase(),K0="Konqueror",Yo="(\\d+(\\.\\d+)?)",HS=new RegExp("Version/"+Yo),zie=new RegExp(Ed,"i"),Uie=new RegExp(Kp+" \\w+","i"),qie=new RegExp(Wp+" \\w+","i"),kE=new RegExp(zd+"|PlayBook|BB10","i"),$ie={"NT3.51":"NT 3.11","NT4.0":"NT 4.0","5.0":"2000",5.1:"XP",5.2:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1",6.4:"10","10.0":"10"},P3=function(t,e){return e=e||"",Ct(t," OPR/")&&Ct(t,"Mini")?Fie:Ct(t," OPR/")?EE:kE.test(t)?zd:Ct(t,"IE"+Ln)||Ct(t,"WPDesktop")?b3:Ct(t,h3)?g3:Ct(t,CE)||Ct(t,"Edg/")?v3:Ct(t,"FBIOS")?"Facebook "+Ln:Ct(t,"UCWEB")||Ct(t,"UCBrowser")?"UC Browser":Ct(t,"CriOS")?f3:Ct(t,"CrMo")||Ct(t,Fl)?Fl:Ct(t,Ns)&&Ct(t,Ep)?T3:Ct(t,"FxiOS")?y3:Ct(t.toLowerCase(),K0.toLowerCase())?K0:((a,o)=>o&&Ct(o,u3)||(function(n){return Ct(n,Ep)&&!Ct(n,Fl)&&!Ct(n,Ns)})(a))(t,e)?Ct(t,Ln)?S3:Ep:Ct(t,Pd)?Pd:Ct(t,"MSIE")||Ct(t,"Trident/")?PE:Ct(t,"Gecko")?Pd:""},Vie={[b3]:[new RegExp("rv:"+Yo)],[v3]:[new RegExp(CE+"?\\/"+Yo)],[Fl]:[new RegExp("("+Fl+"|CrMo)\\/"+Yo)],[f3]:[new RegExp("CriOS\\/"+Yo)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Yo)],[Ep]:[HS],[S3]:[HS],[EE]:[new RegExp("(Opera|OPR)\\/"+Yo)],[Pd]:[new RegExp(Pd+"\\/"+Yo)],[y3]:[new RegExp("FxiOS\\/"+Yo)],[K0]:[new RegExp("Konqueror[:/]?"+Yo,"i")],[zd]:[new RegExp(zd+" "+Yo),HS],[T3]:[new RegExp("android\\s"+Yo,"i")],[g3]:[new RegExp(h3+"\\/"+Yo)],[PE]:[new RegExp("(rv:|MSIE )"+Yo)],Mozilla:[new RegExp("rv:"+Yo)]},Hie=function(t,e){var a=P3(t,e),o=Vie[a];if($e(o))return null;for(var n=0;o.length>n;n++){var r=t.match(o[n]);if(r)return parseFloat(r[r.length-2])}return null},JO=[[new RegExp(Ed+"; "+Ed+" (.*?)[);]","i"),t=>[Ed,t&&t[1]||""]],[new RegExp(Wp,"i"),[Wp,""]],[new RegExp(Kp,"i"),[Kp,""]],[kE,[zd,""]],[new RegExp(fp,"i"),(t,e)=>{if(/Phone/.test(e)||/WPDesktop/.test(e))return[G0,""];if(new RegExp(Ln).test(e)&&!/IEMobile\b/.test(e))return[fp+" "+Ln,""];var a=/Windows NT ([0-9.]+)/i.exec(e);if(a&&a[1]){var o=$ie[a[1]]||"";return/arm/i.test(e)&&(o="RT"),[fp,o]}return[fp,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,t=>t&&t[3]?[ib,[t[3],t[4],t[5]||"0"].join(".")]:[ib,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,t=>{var e="";return t&&t.length>=3&&(e=$e(t[2])?t[3]:t[2]),["watchOS",e]}],[new RegExp("("+Ns+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Ns+")","i"),t=>t&&t[2]?[Ns,[t[2],t[3],t[4]||"0"].join(".")]:[Ns,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,t=>{var e=["Mac OS X",""];return t&&t[1]&&(e[1]=[t[1],t[2],t[3]||"0"].join(".")),e}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[Bie,""]],[/Linux|debian/i,["Linux",""]]],XO=function(t){return qie.test(t)?Wp:Uie.test(t)?Kp:zie.test(t)?Ed:new RegExp(W0,"i").test(t)?W0:new RegExp("("+G0+"|WPDesktop)","i").test(t)?G0:/iPad/.test(t)?d3:/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(t)?p3:kE.test(t)?zd:/(kobo)\s(ereader|touch)/i.test(t)?"Kobo":new RegExp(QO,"i").test(t)?QO:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(t)||/(kf[a-z]+)( bui|\)).+silk\//i.test(t)?"Kindle Fire":/(Android|ZTE)/i.test(t)?new RegExp(Ln).test(t)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(t)||/pixel[\daxl ]{1,6}/i.test(t)&&!/pixel c/i.test(t)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(t)||/lmy47v/i.test(t)&&!/QTAQZ3/i.test(t)?Ns:c3:new RegExp("(pda|"+Ln+")","i").test(t)?jie:new RegExp(jd,"i").test(t)&&!new RegExp(jd+" pc","i").test(t)?x3:""},Gie=t=>t instanceof Error,E3={trace:{text:"TRACE",number:1},debug:{text:"DEBUG",number:5},info:{text:"INFO",number:9},warn:{text:"WARN",number:13},error:{text:"ERROR",number:17},fatal:{text:"FATAL",number:21}},Wie=E3.info;function C3(t){if(Kr(t))return{boolValue:t};if(typeof t=="number")return Number.isFinite(t)?Number.isInteger(t)?{intValue:t}:{doubleValue:t}:{stringValue:String(t)};if(typeof t=="string")return{stringValue:t};if(Bt(t))return{arrayValue:{values:t.map((e=>C3(e)))}};try{return{stringValue:JSON.stringify(t)}}catch{return{stringValue:String(t)}}}function e2(t){var e=[];for(var a in t){var o=t[a];js(o)||$e(o)||e.push({key:a,value:C3(o)})}return e}function Kie(t){var e=globalThis._posthogChunkIds;if(e){var a=Object.keys(e);return VS&&a.length===ZO||(ZO=a.length,VS=a.reduce(((o,n)=>{Yg||(Yg={});var r=Yg[n];if(r)o[r[0]]=r[1];else for(var i=t(n),c=i.length-1;c>=0;c--){var d=i[c],u=d?.filename,m=e[n];if(u&&m){o[u]=m,Yg[n]=[u,m];break}}return o}),{})),VS}}class Yie{constructor(e,a,o){o===void 0&&(o=[]),this.coercers=e,this.stackParser=a,this.modifiers=o}buildFromUnknown(e,a){a===void 0&&(a={});var o=a&&a.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(o,a,0).apply(e),r=this.buildParsingContext(a),i=this.parseStacktrace(n,r);return{$exception_list:this.convertToExceptionList(i,o),$exception_level:"error"}}modifyFrames(e){var a=this;return er((function*(){for(var o of e)o.stacktrace&&o.stacktrace.frames&&Bt(o.stacktrace.frames)&&(o.stacktrace.frames=yield a.applyModifiers(o.stacktrace.frames));return e}))()}coerceFallback(e){var a;return{type:"Error",value:"Unknown error",stack:(a=e.syntheticException)==null?void 0:a.stack,synthetic:!0}}parseStacktrace(e,a){var o,n;return e.cause!=null&&(o=this.parseStacktrace(e.cause,a)),e.stack!=""&&e.stack!=null&&(n=this.applyChunkIds(this.stackParser(e.stack,e.synthetic?a.skipFirstLines:0),a.chunkIdMap)),Me({},e,{cause:o,stack:n})}applyChunkIds(e,a){return e.map((o=>(o.filename&&a&&(o.chunk_id=a[o.filename]),o)))}applyCoercers(e,a){for(var o of this.coercers)if(o.match(e))return o.coerce(e,a);return this.coerceFallback(a)}applyModifiers(e){var a=this;return er((function*(){var o=e;for(var n of a.modifiers)o=yield n(o);return o}))()}convertToExceptionList(e,a){var o,n,r,i={type:e.type,value:e.value,mechanism:{type:(o=a.type)!==null&&o!==void 0?o:"generic",handled:(n=a.handled)===null||n===void 0||n,synthetic:(r=e.synthetic)!==null&&r!==void 0&&r}};e.stack&&(i.stacktrace={type:"raw",frames:e.stack});var c=[i];return e.cause!=null&&c.push(...this.convertToExceptionList(e.cause,Me({},a,{handled:!0}))),c}buildParsingContext(e){var a;return{chunkIdMap:Kie(this.stackParser),skipFirstLines:(a=e.skipFirstLines)!==null&&a!==void 0?a:1}}buildCoercingContext(e,a,o){o===void 0&&(o=0);var n=(r,i)=>{if(4>=i){var c=this.buildCoercingContext(e,a,i);return this.applyCoercers(r,c)}};return Me({},a,{syntheticException:o==0?a.syntheticException:void 0,mechanism:e,apply:r=>n(r,o),next:r=>n(r,o+1)})}}var Ud="?";function Y0(t,e,a,o,n){var r={platform:t,filename:e,function:a==="<anonymous>"?Ud:a,in_app:!0};return $e(o)||(r.lineno=o),$e(n)||(r.colno=n),r}var k3=(t,e)=>{var a=t.indexOf("safari-extension")!==-1,o=t.indexOf("safari-web-extension")!==-1;return a||o?[t.indexOf("@")!==-1?t.split("@")[0]:Ud,a?"safari-extension:"+e:"safari-web-extension:"+e]:[t,e]},Zie=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Qie=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Jie=/\((\S*)(?::(\d+))(?::(\d+))\)/,Xie=(t,e)=>{var a=Zie.exec(t);if(a){var[,o,n,r]=a;return Y0(e,o,Ud,+n,+r)}var i=Qie.exec(t);if(i){if(i[2]&&i[2].indexOf("eval")===0){var c=Jie.exec(i[2]);c&&(i[2]=c[1],i[3]=c[2],i[4]=c[3])}var[d,u]=k3(i[1]||Ud,i[2]);return Y0(e,u,d,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}},ele=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tle=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,ale=(t,e)=>{var a=ele.exec(t);if(a){if(a[3]&&a[3].indexOf(" > eval")>-1){var o=tle.exec(a[3]);o&&(a[1]=a[1]||"eval",a[3]=o[1],a[4]=o[2],a[5]="")}var n=a[3],r=a[1]||Ud;return[r,n]=k3(r,n),Y0(e,n,r,a[4]?+a[4]:void 0,a[5]?+a[5]:void 0)}},t2=/\(error: (.*)\)/;let ole=class{match(e){return this.isDOMException(e)||this.isDOMError(e)}coerce(e,a){var o=Ea(e.stack);return{type:this.getType(e),value:this.getValue(e),stack:o?e.stack:void 0,cause:e.cause?a.next(e.cause):void 0,synthetic:!1}}getType(e){return this.isDOMError(e)?"DOMError":"DOMException"}getValue(e){var a=e.name||(this.isDOMError(e)?"DOMError":"DOMException");return e.message?a+": "+e.message:a}isDOMException(e){return sb(e,"DOMException")}isDOMError(e){return sb(e,"DOMError")}};class nle{match(e){return(a=>a instanceof Error)(e)}coerce(e,a){return{type:this.getType(e),value:this.getMessage(e,a),stack:this.getStack(e),cause:e.cause?a.next(e.cause):void 0,synthetic:!1}}getType(e){return e.name||e.constructor.name}getMessage(e,a){var o=e.message;return String(o.error&&typeof o.error.message=="string"?o.error.message:o)}getStack(e){return e.stacktrace||e.stack||void 0}}let rle=class{constructor(){}match(e){return sb(e,"ErrorEvent")&&e.error!=null}coerce(e,a){var o;return a.apply(e.error)||{type:"ErrorEvent",value:e.message,stack:(o=a.syntheticException)==null?void 0:o.stack,synthetic:!0}}};var sle=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let ile=class{match(e){return typeof e=="string"}coerce(e,a){var o,[n,r]=this.getInfos(e);return{type:n??"Error",value:r??e,stack:(o=a.syntheticException)==null?void 0:o.stack,synthetic:!0}}getInfos(e){var a="Error",o=e,n=e.match(sle);return n&&(a=n[1],o=n[2]),[a,o]}};var lle=["fatal","error","warning","log","info","debug"];function _3(t,e){e===void 0&&(e=40);var a=Object.keys(t);if(a.sort(),!a.length)return"[object has no keys]";for(var o=a.length;o>0;o--){var n=a.slice(0,o).join(", ");if(e>=n.length)return o===a.length?n:n.length>e?n.slice(0,e)+"...":n}return""}let cle=class{match(e){return typeof e=="object"&&e!==null}coerce(e,a){var o,n=this.getErrorPropertyFromObject(e);return n?a.apply(n):{type:this.getType(e),value:this.getValue(e),stack:(o=a.syntheticException)==null?void 0:o.stack,level:this.isSeverityLevel(e.level)?e.level:"error",synthetic:!0}}getType(e){return xE(e)?e.constructor.name:"Error"}getValue(e){if("name"in e&&typeof e.name=="string"){var a="'"+e.name+"' captured as exception";return"message"in e&&typeof e.message=="string"&&(a+=" with message: '"+e.message+"'"),a}if("message"in e&&typeof e.message=="string")return e.message;var o=this.getObjectClassName(e);return(o&&o!=="Object"?"'"+o+"'":"Object")+" captured as exception with keys: "+_3(e)}isSeverityLevel(e){return Ea(e)&&!wf(e)&&lle.indexOf(e)>=0}getErrorPropertyFromObject(e){for(var a in e)if({}.hasOwnProperty.call(e,a)){var o=e[a];if(Gie(o))return o}}getObjectClassName(e){try{var a=Object.getPrototypeOf(e);return a?a.constructor.name:void 0}catch{return}}},dle=class{match(e){return xE(e)}coerce(e,a){var o,n=e.constructor.name;return{type:n,value:n+" captured as exception with keys: "+_3(e),stack:(o=a.syntheticException)==null?void 0:o.stack,synthetic:!0}}},ule=class{match(e){return l3(e)}coerce(e,a){var o;return{type:"Error",value:"Primitive value captured as exception: "+String(e),stack:(o=a.syntheticException)==null?void 0:o.stack,synthetic:!0}}},ple=class{match(e){return sb(e,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(e)}isCustomEventWrappingRejection(e){if(!xE(e))return!1;try{var a=e.detail;return a!=null&&typeof a=="object"&&"reason"in a}catch{return!1}}coerce(e,a){var o,n=this.getUnhandledRejectionReason(e);return l3(n)?{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: "+String(n),stack:(o=a.syntheticException)==null?void 0:o.stack,synthetic:!0}:a.apply(n)}getUnhandledRejectionReason(e){try{if("reason"in e)return e.reason;if("detail"in e&&e.detail!=null&&typeof e.detail=="object"&&"reason"in e.detail)return e.detail.reason}catch{}return e}};var lb="$message",cb="$timestamp",mle=new Set([lb,cb]),GS={enabled:!0,max_bytes:32768};function db(t){var e;return t?{enabled:(e=t.enabled)!==null&&e!==void 0?e:GS.enabled,max_bytes:gle(t.max_bytes,GS.max_bytes)}:Me({},GS)}let hle=class{constructor(e){this.Kt=[],this.Qt=0,this.Bt=db(e)}setConfig(e){this.Bt=db(e),this.er()}add(e){var a=(function(n){var r=(function(m){var h=new WeakSet;try{return JSON.stringify(m,((f,b)=>{if(typeof b=="bigint")return b.toString();if(typeof b!="function"&&typeof b!="symbol"){if(b instanceof Date)return b.toISOString();if(b instanceof Error)return{name:b.name,message:b.message,stack:b.stack};if(b&&typeof b=="object"){if(h.has(b))return"[Circular]";h.add(b)}return b}}))}catch{return}})(n);if(r)try{var i=JSON.parse(r);if(!La(i))return;var c=i,d=c[lb],u=c[cb];return!Ea(d)||d.trim().length===0||!Ea(u)&&!sr(u)?void 0:{step:c,json:r}}catch{return}})(e);if(a){var o=(function(n){if(typeof TextEncoder<"u")return new TextEncoder().encode(n).length;for(var r=encodeURIComponent(n),i=0,c=0;r.length>c;c++)r[c]==="%"?(i+=1,c+=2):i+=1;return i})(a.json);o>this.Bt.max_bytes||(this.Kt.push({step:a.step,bytes:o}),this.Qt+=o,this.er())}}getAttachable(){return this.Kt.map((e=>e.step))}clear(){this.Kt=[],this.Qt=0}size(){return this.Kt.length}er(){for(;this.Qt>this.Bt.max_bytes&&this.Kt.length>0;){var e=this.Kt.shift();e&&(this.Qt-=e.bytes)}}};function gle(t,e){if(!sr(t)||t===1/0||t===-1/0)return e;var a=Math.floor(t);return 0>a?e:a}var A3=function(t,e){var{debugEnabled:a}=e===void 0?{}:e,o={C(n){if(ge&&(Zo.DEBUG||at.POSTHOG_DEBUG||a)&&!$e(ge.console)&&ge.console){for(var r=("__rrweb_original__"in ge.console[n])?ge.console[n].__rrweb_original__:ge.console[n],i=arguments.length,c=new Array(i>1?i-1:0),d=1;i>d;d++)c[d-1]=arguments[d];r(t,...c)}},info(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];o.C("log",...r)},warn(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];o.C("warn",...r)},error(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];o.C("error",...r)},critical(){for(var n=arguments.length,r=new Array(n),i=0;n>i;i++)r[i]=arguments[i];console.error(t,...r)},uninitializedWarning(n){o.error("You must initialize PostHog before calling "+n)},createLogger:(n,r)=>A3(t+" "+n,r)};return o},qe=A3("[PostHog.js]"),Sa=qe.createLogger,fle=Sa("[ExternalScriptsLoader]"),WS=(t,e,a)=>{if(t.config.disable_external_dependency_loading)return fle.warn(e+" was requested but loading of external scripts is disabled."),a("Loading of external scripts is disabled");var o=ze?.querySelectorAll("script");if(o){for(var n,r=function(){if(o[i].src===e){var d=o[i];return d.__posthog_loading_callback_fired?{v:a()}:(d.addEventListener("load",(u=>{d.__posthog_loading_callback_fired=!0,a(void 0,u)})),d.onerror=u=>a(u),{v:void 0})}},i=0;o.length>i;i++)if(n=r())return n.v}var c=()=>{if(!ze)return a("document not found");var d=ze.createElement("script");if(d.type="text/javascript",d.crossOrigin="anonymous",d.src=e,d.onload=h=>{d.__posthog_loading_callback_fired=!0,a(void 0,h)},d.onerror=h=>a(h),t.config.prepare_external_dependency_script&&(d=t.config.prepare_external_dependency_script(d)),!d)return a("prepare_external_dependency_script returned null");if(t.config.external_scripts_inject_target==="head")ze.head.appendChild(d);else{var u,m=ze.querySelectorAll("body > script");m.length>0?(u=m[0].parentNode)==null||u.insertBefore(d,m[0]):ze.body.appendChild(d)}};ze!=null&&ze.body?c():ze?.addEventListener("DOMContentLoaded",c)};at.__PosthogExtensions__=at.__PosthogExtensions__||{},at.__PosthogExtensions__.loadExternalDependency=(t,e,a)=>{if(e!=="remote-config"){var o;if(t.config.__preview_external_dependency_versioned_paths)o=t.requestRouter.endpointFor("assets","/static/"+t.version+"/"+e+".js");else{var n="/static/"+e+".js?v="+t.version;if(e==="toolbar"){var r=3e5;n=n+"&t="+Math.floor(Date.now()/r)*r}o=t.requestRouter.endpointFor("assets",n)}WS(t,o,a)}else{var i=t.requestRouter.endpointFor("assets","/array/"+t.config.token+"/config.js");WS(t,i,a)}},at.__PosthogExtensions__.loadSiteApp=(t,e,a)=>{var o=t.requestRouter.endpointFor("api",e);WS(t,o,a)};var R3="$people_distinct_id",ub="$device_id",bp="__alias",vp="__timers",Z0="$autocapture_disabled_server_side",Q0="$heatmaps_enabled_server_side",J0="$exception_capture_enabled_server_side",X0="$error_tracking_suppression_rules",ex="$error_tracking_capture_extension_exceptions",tx="$web_vitals_enabled_server_side",_E="$dead_clicks_enabled_server_side",ax="$product_tours_enabled_server_side",ox="$web_vitals_allowed_metrics",yp="$session_recording_remote_config",D3="$replay_override_sampling",O3="$replay_override_linked_flag",N3="$replay_override_url_trigger",M3="$replay_override_event_trigger",pb="$sesid",AE="$session_is_sampled",fd="$enabled_feature_flags",xf="$active_feature_flags",Tp="$early_access_features",nx="$feature_flag_details",rx="$feature_flag_payloads",sx="$feature_flag_request_id",_s="$override_feature_flags",ld="$override_feature_flag_payloads",Sp="$stored_person_properties",_l="$stored_group_properties",ix="$surveys",lx="$surveys_activated",Pf="ph_product_tours",Cp="$flag_call_reported",cx="$flag_call_reported_session_id",dx="$feature_flag_errors",mb="$feature_flag_evaluated_at",vr="$user_state",ux="$client_session_props",px="$capture_rate_limit",mx="$initial_campaign_params",hx="$initial_referrer_info",hb="$initial_person_info",gb="$epp",I3="__POSTHOG_TOOLBAR__",Zg="$posthog_cookieless",L3="$sdk_debug_extensions_init_method",B3="$sdk_debug_extensions_init_time_ms",F3="$sdk_debug_recording_script_not_loaded",RE="PostHog loadExternalDependency extension not found.",Al="on_reject",Rs="always",Zc="anonymous",Qc="identified",gx="identified_only",fb="visibilitychange",bb="beforeunload",cd="$pageview",KS="$pageleave",YS="$identify",a2="$groupidentify";function Qg(t,e){Bt(t)&&t.forEach(e)}function fa(t,e){if(!kt(t))if(Bt(t))t.forEach(e);else if(Oie(t))t.forEach(((o,n)=>e(o,n)));else for(var a in t)i3.call(t,a)&&e(t[a],a)}var Oa=function(t){for(var e=arguments.length,a=new Array(e>1?e-1:0),o=1;e>o;o++)a[o-1]=arguments[o];for(var n of a)for(var r in n)n[r]!==void 0&&(t[r]=n[r]);return t};function Ef(t){for(var e=Object.keys(t),a=e.length,o=new Array(a);a--;)o[a]=[e[a],t[e[a]]];return o}var o2=function(t){try{return t()}catch{return}},ble=function(t){return function(){try{for(var e=arguments.length,a=new Array(e),o=0;e>o;o++)a[o]=arguments[o];return t.apply(this,a)}catch(n){qe.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),qe.critical(n)}}},DE=function(t){var e={};return fa(t,(function(a,o){(Ea(a)&&a.length>0||sr(a))&&(e[o]=a)})),e},vle=["herokuapp.com","vercel.app","netlify.app"];function yle(t){var e=t?.hostname;if(!Ea(e))return!1;var a=e.split(".").slice(-2).join(".");for(var o of vle)if(a===o)return!1;return!0}function Za(t,e,a,o){var{capture:n=!1,passive:r=!0}=o??{};t?.addEventListener(e,a,{capture:n,passive:r})}function j3(t){return t.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(t){return 0>t?Math.ceil(t):Math.floor(t)}),Number.isInteger||(Number.isInteger=function(t){return sr(t)&&isFinite(t)&&Math.floor(t)===t});class vb{constructor(e){if(this.bytes=e,e.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(e,a,o,n){if(!Number.isInteger(e)||!Number.isInteger(a)||!Number.isInteger(o)||!Number.isInteger(n)||0>e||0>a||0>o||0>n||e>0xffffffffffff||a>4095||o>1073741823||n>4294967295)throw new RangeError("invalid field value");var r=new Uint8Array(16);return r[0]=e/Math.pow(2,40),r[1]=e/Math.pow(2,32),r[2]=e/Math.pow(2,24),r[3]=e/Math.pow(2,16),r[4]=e/Math.pow(2,8),r[5]=e,r[6]=112|a>>>8,r[7]=a,r[8]=128|o>>>24,r[9]=o>>>16,r[10]=o>>>8,r[11]=o,r[12]=n>>>24,r[13]=n>>>16,r[14]=n>>>8,r[15]=n,new vb(r)}toString(){for(var e="",a=0;this.bytes.length>a;a++)e=e+(this.bytes[a]>>>4).toString(16)+(15&this.bytes[a]).toString(16),a!==3&&a!==5&&a!==7&&a!==9||(e+="-");if(e.length!==36)throw new Error("Invalid UUIDv7 was generated");return e}clone(){return new vb(this.bytes.slice(0))}equals(e){return this.compareTo(e)===0}compareTo(e){for(var a=0;16>a;a++){var o=this.bytes[a]-e.bytes[a];if(o!==0)return Math.sign(o)}return 0}}class Tle{constructor(){this.I=0,this.S=0,this.k=new Sle}generate(){var e=this.generateOrAbort();if($e(e)){this.I=0;var a=this.generateOrAbort();if($e(a))throw new Error("Could not generate UUID after timestamp reset");return a}return e}generateOrAbort(){var e=Date.now();if(e>this.I)this.I=e,this.A();else{if(this.I>=e+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return vb.fromFieldsV7(this.I,Math.trunc(this.S/Math.pow(2,30)),this.S&Math.pow(2,30)-1,this.k.nextUint32())}A(){this.S=1024*this.k.nextUint32()+(1023&this.k.nextUint32())}}var n2,z3=t=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var e=0;t.length>e;e++)t[e]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return t};ge&&!$e(ge.crypto)&&crypto.getRandomValues&&(z3=t=>crypto.getRandomValues(t));class Sle{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(z3(this.T),this.N=0),this.T[this.N++]}}var Ai=()=>wle().toString(),wle=()=>(n2||(n2=new Tle)).generate(),Xu="",xle=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Wr={R:()=>!!ze,B(t){qe.error("cookieStore error: "+t)},O(t){if(ze){try{for(var e=t+"=",a=ze.cookie.split(";").filter((r=>r.length)),o=0;a.length>o;o++){for(var n=a[o];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return decodeURIComponent(n.substring(e.length,n.length))}}catch{}return null}},Z(t){var e;try{e=JSON.parse(Wr.O(t))||{}}catch{}return e},M(t,e,a,o,n){if(ze)try{var r="",i="",c=(function(m,h){if(h){var f=(function(y,T){if(T===void 0&&(T=ze),Xu)return Xu;if(!T||["localhost","127.0.0.1"].includes(y))return"";for(var x=y.split("."),w=Math.min(x.length,8),P="dmn_chk_"+Ai();!Xu&&w--;){var k=x.slice(w).join("."),E=P+"=1;domain=."+k+";path=/";T.cookie=E+";max-age=3",T.cookie.includes(P)&&(T.cookie=E+";max-age=0",Xu=k)}return Xu})(m);if(!f){var b=(y=>{var T=y.match(xle);return T?T[0]:""})(m);b!==f&&qe.info("Warning: cookie subdomain discovery mismatch",b,f),f=b}return f?"; domain=."+f:""}return""})(ze.location.hostname,o);if(a){var d=new Date;d.setTime(d.getTime()+864e5*a),r="; expires="+d.toUTCString()}n&&(i="; secure");var u=t+"="+encodeURIComponent(JSON.stringify(e))+r+"; SameSite=Lax; path=/"+c+i;return u.length>3686.4&&qe.warn("cookieStore warning: large cookie, len="+u.length),ze.cookie=u,u}catch{return}},F(t,e){if(ze!=null&&ze.cookie)try{Wr.M(t,"",-1,e)}catch{return}}},ZS=null,Pa={R(){if(!js(ZS))return ZS;var t=!0;if($e(ge))t=!1;else try{var e="__mplssupport__";Pa.M(e,"xyz"),Pa.O(e)!=='"xyz"'&&(t=!1),Pa.F(e)}catch{t=!1}return t||qe.error("localStorage unsupported; falling back to cookie store"),ZS=t,t},B(t){qe.error("localStorage error: "+t)},O(t){try{return ge?.localStorage.getItem(t)}catch(e){Pa.B(e)}return null},Z(t){try{return JSON.parse(Pa.O(t))||{}}catch{}return null},M(t,e){try{ge?.localStorage.setItem(t,JSON.stringify(e))}catch(a){Pa.B(a)}},F(t){try{ge?.localStorage.removeItem(t)}catch(e){Pa.B(e)}}},Ple=[ub,"distinct_id",pb,AE,gb,hb,vr],Jg={},Ele={R:()=>!0,B(t){qe.error("memoryStorage error: "+t)},O:t=>Jg[t]||null,Z:t=>Jg[t]||null,M(t,e){Jg[t]=e},F(t){delete Jg[t]}},xl=null,Po={R(){if(!js(xl))return xl;if(xl=!0,$e(ge))xl=!1;else try{var t="__support__";Po.M(t,"xyz"),Po.O(t)!=='"xyz"'&&(xl=!1),Po.F(t)}catch{xl=!1}return xl},B(t){qe.error("sessionStorage error: ",t)},O(t){try{return ge?.sessionStorage.getItem(t)}catch(e){Po.B(e)}return null},Z(t){try{return JSON.parse(Po.O(t))||null}catch{}return null},M(t,e){try{ge?.sessionStorage.setItem(t,JSON.stringify(e))}catch(a){Po.B(a)}},F(t){try{ge?.sessionStorage.removeItem(t)}catch(e){Po.B(e)}}};class Cle{constructor(e){this._instance=e}get Bt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.Bt.cookieless_mode===Rs||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===Al}isOptedIn(){return!this.isOptedOut()}isExplicitlyOptedOut(){return this.consent===0}isRejected(){return this.consent===0||this.consent===-1&&this.Bt.opt_out_capturing_by_default}optInOut(e){this.nr.M(this.sr,e?1:0,this.Bt.cookie_expiration,this.Bt.cross_subdomain_cookie,this.Bt.secure_cookie)}reset(){this.nr.F(this.sr,this.Bt.cross_subdomain_cookie)}get sr(){var{token:e,opt_out_capturing_cookie_prefix:a,consent_persistence_name:o}=this._instance.config;return o||(a?a+e:"__ph_opt_in_out_"+e)}get ir(){var e=this.nr.O(this.sr);return $S(e)?1:Ct(Iie,e)?0:-1}get nr(){var e=this.Bt.opt_out_capturing_persistence_type,a=e==="localStorage"?Pa:Wr;if(!this.ar||this.ar!==a){this.ar=a;var o=e==="localStorage"?Wr:Pa;o.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut($S(o.O(this.sr))),o.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[Mn?.doNotTrack,Mn?.msDoNotTrack,at.doNotTrack].some((e=>$S(e)))}}var Xg=Sa("[Dead Clicks]"),kle=()=>!0,_le=t=>{var e,a=!((e=t.instance.persistence)==null||!e.get_property(_E)),o=t.instance.config.capture_dead_clicks;return Kr(o)?o:!!La(o)||a};class r2{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(e,a,o){this.instance=e,this.isEnabled=a,this.onCapture=o,this.startIfEnabledOrStop()}onRemoteConfig(e){"captureDeadClicks"in e&&(this.instance.persistence&&this.instance.persistence.register({[_E]:e.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(e){var a,o;(a=at.__PosthogExtensions__)!=null&&a.initDeadClicksAutocapture&&e(),(o=at.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this.instance,"dead-clicks-autocapture",(n=>{n?Xg.error("failed to load script",n):e()}))}hr(){var e;if(ze){if(!this.lr&&(e=at.__PosthogExtensions__)!=null&&e.initDeadClicksAutocapture){var a=La(this.instance.config.capture_dead_clicks)?this.instance.config.capture_dead_clicks:{};a.__onCapture=this.onCapture,this.lr=at.__PosthogExtensions__.initDeadClicksAutocapture(this.instance,a),this.lr.start(ze),Xg.info("starting...")}}else Xg.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,Xg.info("stopping..."))}}var QS=Sa("[SegmentIntegration]"),U3="posthog-js";function q3(t,e){var{organization:a,projectId:o,prefix:n,severityAllowList:r=["error"],sendExceptionsToPostHog:i=!0}=e===void 0?{}:e;return c=>{var d,u,m,h,f;if(r!=="*"&&!r.includes(c.level)||!t.__loaded)return c;c.tags||(c.tags={});var b=t.requestRouter.endpointFor("ui","/project/"+t.config.token+"/person/"+t.get_distinct_id());c.tags["PostHog Person URL"]=b,t.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=t.get_session_replay_url({withTimestamp:!0}));var y,T=((d=c.exception)==null?void 0:d.values)||[],x=T.map((P=>Me({},P,{stacktrace:P.stacktrace?Me({},P.stacktrace,{type:"raw",frames:(P.stacktrace.frames||[]).map((k=>Me({},k,{platform:"web:javascript"})))}):void 0}))),w={$exception_message:((u=T[0])==null?void 0:u.value)||c.message,$exception_type:(m=T[0])==null?void 0:m.type,$exception_level:c.level,$exception_list:x,$sentry_event_id:c.event_id,$sentry_exception:c.exception,$sentry_exception_message:((h=T[0])==null?void 0:h.value)||c.message,$sentry_exception_type:(f=T[0])==null?void 0:f.type,$sentry_tags:c.tags};return a&&o&&(w.$sentry_url=(n||"https://sentry.io/organizations/")+a+"/issues/?project="+o+"&query="+c.event_id),i&&((y=t.exceptions)==null||y.sendExceptionEvent(w)),c}}class Ale{constructor(e,a,o,n,r,i){this.name=U3,this.setupOnce=function(c){c(q3(e,{organization:a,projectId:o,prefix:n,severityAllowList:r,sendExceptionsToPostHog:i==null||i}))}}}class s2{constructor(e){this.cr=(a,o,n)=>{n&&(n.noSessionId||n.activityTimeout||n.sessionPastMaximumLength)&&(qe.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:a,changeReason:n}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=e,this.vr()}vr(){var e;this.pr=(e=this._instance.sessionManager)==null?void 0:e.onSessionId(this.cr)}destroy(){var e;(e=this.pr)==null||e.call(this),this.pr=void 0}doPageView(e,a){var o,n=this.gr(e,a);return this.dr={pathname:(o=ge?.location.pathname)!==null&&o!==void 0?o:"",pageViewId:a,timestamp:e},this._instance.scrollManager.resetContext(),n}doPageLeave(e){var a;return this.gr(e,(a=this.dr)==null?void 0:a.pageViewId)}doEvent(){var e;return{$pageview_id:(e=this.dr)==null?void 0:e.pageViewId}}gr(e,a){var o=this.dr;if(!o)return{$pageview_id:a};var n={$pageview_id:a,$prev_pageview_id:o.pageViewId},r=this._instance.scrollManager.getContext();if(r&&!this._instance.config.disable_scroll_properties){var{maxScrollHeight:i,lastScrollY:c,maxScrollY:d,maxContentHeight:u,lastContentY:m,maxContentY:h}=r;if(!($e(i)||$e(c)||$e(d)||$e(u)||$e(m)||$e(h))){i=Math.ceil(i),c=Math.ceil(c),d=Math.ceil(d),u=Math.ceil(u),m=Math.ceil(m),h=Math.ceil(h);var f=i>1?Yr(c/i,0,1,qe):1,b=i>1?Yr(d/i,0,1,qe):1,y=u>1?Yr(m/u,0,1,qe):1,T=u>1?Yr(h/u,0,1,qe):1;n=Oa(n,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:f,$prev_pageview_max_scroll:d,$prev_pageview_max_scroll_percentage:b,$prev_pageview_last_content:m,$prev_pageview_last_content_percentage:y,$prev_pageview_max_content:h,$prev_pageview_max_content_percentage:T})}}return o.pathname&&(n.$prev_pageview_pathname=o.pathname),o.timestamp&&(n.$prev_pageview_duration=(e.getTime()-o.timestamp.getTime())/1e3),n}}var Rle={[R3]:{exposure:"hidden"},[bp]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[vp]:{exposure:"hidden"},[Z0]:{exposure:"event"},[Q0]:{exposure:"hidden"},[J0]:{exposure:"event"},[X0]:{exposure:"hidden"},[ex]:{exposure:"event"},[tx]:{exposure:"event"},[_E]:{exposure:"event"},[ax]:{exposure:"hidden"},[ox]:{exposure:"event"},[yp]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[pb]:{exposure:"hidden"},[AE]:{exposure:"event"},$session_past_minimum_duration:{exposure:"event"},$session_recording_url_trigger_activated_session:{exposure:"event"},$session_recording_event_trigger_activated_session:{exposure:"event"},$debug_first_full_snapshot_timestamp:{exposure:"event"},[fd]:{exposure:"derived",shouldSkipFromEventProperties:(t,e)=>e(),transformToEventProperties(t){if(!La(t))return{};for(var e={},a=Object.keys(t),o=0;a.length>o;o++)e["$feature/"+a[o]]=t[a[o]];return e}},[xf]:{exposure:"event"},[Tp]:{exposure:"hidden"},[nx]:{exposure:"hidden"},[rx]:{exposure:"event"},[sx]:{exposure:"event"},[_s]:{exposure:"event"},[ld]:{exposure:"hidden"},[Sp]:{exposure:"hidden"},[_l]:{exposure:"hidden"},[ix]:{exposure:"hidden"},[lx]:{exposure:"event"},[Pf]:{exposure:"hidden"},$product_tours_activated:{exposure:"hidden"},$conversations_widget_session_id:{exposure:"event"},$conversations_ticket_id:{exposure:"event"},$conversations_widget_state:{exposure:"event"},$conversations_user_traits:{exposure:"event"},[Cp]:{exposure:"hidden"},[cx]:{exposure:"hidden"},[dx]:{exposure:"hidden"},[mb]:{exposure:"hidden"},[vr]:{exposure:"hidden"},[ux]:{exposure:"hidden"},[px]:{exposure:"hidden"},[mx]:{exposure:"hidden"},[hx]:{exposure:"hidden"},[hb]:{exposure:"hidden"},[gb]:{exposure:"hidden"},[D3]:{exposure:"event"},[O3]:{exposure:"event"},[N3]:{exposure:"event"},[M3]:{exposure:"event"},[L3]:{exposure:"event"},[B3]:{exposure:"event"},[F3]:{exposure:"event"},$sdk_debug_replay_event_trigger_status:{exposure:"event"},$sdk_debug_replay_linked_flag_trigger_status:{exposure:"event"},$sdk_debug_replay_matched_recording_trigger_groups:{exposure:"event"},$sdk_debug_replay_remote_trigger_matching_config:{exposure:"event"},$sdk_debug_replay_trigger_groups_count:{exposure:"event"},$sdk_debug_replay_url_trigger_status:{exposure:"event"},$session_recording_start_reason:{exposure:"event"}},Dle=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],yb=t=>{var e=ze?.createElement("a");return $e(e)?null:(e.href=t,e)},Tb=function(t,e){for(var a,o=((t.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),n=0;o.length>n;n++){var r=o[n].split("=");if(r[0]===e){a=r;break}}if(!Bt(a)||2>a.length)return"";var i=a[1];try{i=decodeURIComponent(i)}catch{qe.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},Yp=function(t,e,a){if(!t||!e||!e.length)return t;for(var o=t.split("#"),n=o[1],r=(o[0]||"").split("?"),i=r[1],c=r[0],d=(i||"").split("&"),u=[],m=0;d.length>m;m++){var h=d[m].split("=");Bt(h)&&(e.includes(h[0])?u.push(h[0]+"="+a):u.push(d[m]))}var f=c;return i!=null&&(f+="?"+u.join("&")),n!=null&&(f+="#"+n),f},Sb=function(t,e){var a=t.match(new RegExp(e+"=([^&]*)"));return a?a[1]:null},ef="https?://(.*)",qd=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],Ole=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...qd],Zp="<masked>",Nle=["li_fat_id"];function $3(t,e,a){if(!ze)return{};var o,n=e?[...qd,...a||[]]:[],r=V3(Yp(ze.URL,n,Zp),t),i=(o={},fa(Nle,(function(c){var d=Wr.O(c);o[c]=d||null})),o);return Oa(i,r)}function V3(t,e){var a=Ole.concat(e||[]),o={};return fa(a,(function(n){var r=Tb(t,n);o[n]=r||null})),o}function H3(t){var e=(function(r){return r?r.search(ef+"google.([^/?]*)")===0?"google":r.search(ef+"bing.com")===0?"bing":r.search(ef+"yahoo.com")===0?"yahoo":r.search(ef+"duckduckgo.com")===0?"duckduckgo":null:null})(t),a=e!="yahoo"?"q":"p",o={};if(!js(e)){o.$search_engine=e;var n=ze?Tb(ze.referrer,a):"";n.length&&(o.ph_keyword=n)}return o}function i2(){return navigator.language||navigator.userLanguage}var wb="$direct";function G3(){return ze?.referrer||wb}function W3(t,e){var a=t?[...qd,...e||[]]:[],o=xo?.href.substring(0,1e3);return{r:G3().substring(0,1e3),u:o?Yp(o,a,Zp):void 0}}function K3(t){var e,{r:a,u:o}=t,n={$referrer:a,$referring_domain:a==null?void 0:a==wb?wb:(e=yb(a))==null?void 0:e.host};if(o){n.$current_url=o;var r=yb(o);n.$host=r?.host,n.$pathname=r?.pathname;var i=V3(o);Oa(n,i)}if(a){var c=H3(a);Oa(n,c)}return n}function Y3(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function Mle(){try{return new Date().getTimezoneOffset()}catch{return}}var Ile=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class JS{constructor(e,a){this.Bt=e,this.props={},this.mr=!1,this.yr=(o=>{var n="";return o.token&&(n=o.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),o.persistence_name?"ph_"+o.persistence_name:"ph_"+n+"_posthog"})(e),this.nr=this.br(e),this.load(),e.debug&&qe.info("Persistence loaded",e.persistence,Me({},this.props)),this.update_config(e,e,a),this.save()}isDisabled(){return!!this._r}br(e){Ile.indexOf(e.persistence.toLowerCase())===-1&&(qe.critical("Unknown persistence type "+e.persistence+"; falling back to localStorage+cookie"),e.persistence="localStorage+cookie");var a=(function(n){n===void 0&&(n=[]);var r=[...Ple,...n];return Me({},Pa,{Z(i){try{var c={};try{c=Wr.Z(i)||{}}catch{}var d=Oa(c,JSON.parse(Pa.O(i)||"{}"));return Pa.M(i,d),d}catch{}return null},M(i,c,d,u,m,h){try{Pa.M(i,c,void 0,void 0,h);var f={};r.forEach((b=>{c[b]&&(f[b]=c[b])})),Object.keys(f).length&&Wr.M(i,f,d,u,m,h)}catch(b){Pa.B(b)}},F(i,c){try{ge?.localStorage.removeItem(i),Wr.F(i,c)}catch(d){Pa.B(d)}}})})(e.cookie_persisted_properties||[]),o=e.persistence.toLowerCase();return o==="localstorage"&&Pa.R()?Pa:o==="localstorage+cookie"&&a.R()?a:o==="sessionstorage"&&Po.R()?Po:o==="memory"?Ele:o==="cookie"?Wr:a.R()?a:Wr}wr(e){var a=e??this.Bt.feature_flag_cache_ttl_ms;if(!a||0>=a)return!1;var o=this.props[mb];return!o||typeof o!="number"||Date.now()-o>a}properties(){var e={};return fa(this.props,((a,o)=>{var n=(r=>{var i=Rle[r];if(i)return i;for(var[c,d]of Dle)if(r.indexOf(c)===0)return d})(o);if(n?.exposure==="derived"){if(n.shouldSkipFromEventProperties!=null&&n.shouldSkipFromEventProperties(a,o===fd?()=>this.wr():()=>!1))return;n.transformToEventProperties&&Oa(e,n.transformToEventProperties(a))}else n&&n.exposure!=="event"||(e[o]=a)})),e}load(){if(!this._r){var e=this.nr.Z(this.yr);e&&(this.props=Oa({},e))}}save(){this._r||this.nr.M(this.yr,this.props,this.Ir,this.Cr,this.Sr,this.Bt.debug)}remove(){this.nr.F(this.yr,!1),this.nr.F(this.yr,!0)}clear(){this.remove(),this.props={}}register_once(e,a,o){if(La(e)){$e(a)&&(a="None"),this.Ir=$e(o)?this.kr:o;var n=!1;if(fa(e,((r,i)=>{this.props.hasOwnProperty(i)&&this.props[i]!==a||(this.Tr(i,r),n=!0)})),n)return this.save(),!0}return!1}register(e,a){if(La(e)){this.Ir=$e(a)?this.kr:a;var o=!1;if(fa(e,((n,r)=>{e.hasOwnProperty(r)&&this.props[r]!==n&&(this.Tr(r,n),o=!0)})),o)return this.save(),!0}return!1}unregister(e){e in this.props&&(this.Ar(e),this.save())}update_campaign_params(){if(!this.mr){var e=$3(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);gd(DE(e))||this.register(e),this.mr=!0}}update_search_keyword(){var e;this.register((e=ze?.referrer)?H3(e):{})}update_referrer_info(){var e;this.register_once({$referrer:G3(),$referring_domain:ze!=null&&ze.referrer&&((e=yb(ze.referrer))==null?void 0:e.host)||wb},void 0)}set_initial_person_info(){this.props[mx]||this.props[hx]||this.register_once({[hb]:W3(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var e={};fa([hx,mx],(i=>{var c=this.props[i];c&&fa(c,(function(d,u){e["$initial_"+H0(u)]=d}))}));var a,o,n=this.props[hb];if(n){var r=(a=K3(n),o={},fa(a,(function(i,c){o["$initial_"+H0(c)]=i})),o);Oa(e,r)}return e}safe_merge(e){return fa(this.props,(function(a,o){o in e||(e[o]=a)})),e}update_config(e,a,o){if(this.kr=this.Ir=e.cookie_expiration,this.set_disabled(e.disable_persistence||!!o),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie),e.persistence!==a.persistence||!((i,c)=>{if(i.length!==c.length)return!1;var d=[...i].sort(),u=[...c].sort();return d.every(((m,h)=>m===u[h]))})(e.cookie_persisted_properties||[],a.cookie_persisted_properties||[])){var n=this.br(e),r=this.props;this.clear(),this.nr=n,this.props=r,this.save()}}set_disabled(e){this._r=e,this._r?this.remove():this.save()}set_cross_subdomain(e){e!==this.Cr&&(this.Cr=e,this.remove(),this.save())}set_secure(e){e!==this.Sr&&(this.Sr=e,this.remove(),this.save())}set_event_timer(e,a){var o=this.props[vp]||{};o[e]=a,this.Tr(vp,o),this.save()}remove_event_timer(e){var a=this.props[vp]||{},o=a[e];return $e(o)||(delete a[e],this.Tr(vp,a),this.save()),o}get_property(e){return this.props[e]}set_property(e,a){this.Tr(e,a),this.save()}Tr(e,a){this.props[e]=a}Ar(e){delete this.props[e]}}var ep={Activation:"events",Cancellation:"cancelEvents"},XS={Popover:"popover",API:"api",Widget:"widget"},wp={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},ew={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},fx={Popover:"popover",Inline:"inline"},Lle={SHOWN:"product tour shown"},l2={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},c2=Sa("[RateLimiter]");class Ble{constructor(e){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=a=>{var o=a.text;if(o&&o.length)try{(JSON.parse(o).quota_limited||[]).forEach((n=>{c2.info((n||"events")+" is quota limited."),this.serverLimits[n]=new Date().getTime()+6e4}))}catch(n){return void c2.warn('could not rate limit - continuing. Error: "'+n?.message+'"',{text:o})}},this.instance=e,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var e;return((e=this.instance.config.rate_limiting)==null?void 0:e.events_per_second)||10}get captureEventsBurstLimit(){var e;return Math.max(((e=this.instance.config.rate_limiting)==null?void 0:e.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(e){var a,o,n;e===void 0&&(e=!1);var{captureEventsBurstLimit:r,captureEventsPerSecond:i}=this,c=new Date().getTime(),d=(a=(o=this.instance.persistence)==null?void 0:o.get_property(px))!==null&&a!==void 0?a:{tokens:r,last:c};d.tokens+=(c-d.last)/1e3*i,d.last=c,d.tokens>r&&(d.tokens=r);var u=1>d.tokens;return u||e||(d.tokens=Math.max(0,d.tokens-1)),!u||this.lastEventRateLimited||e||this.instance.capture("$$client_ingestion_warning",{$$client_ingestion_warning_message:"posthog-js client rate limited. Config is set to "+i+" events per second and "+r+" events burst limit."},{skip_client_rate_limiting:!0}),this.lastEventRateLimited=u,(n=this.instance.persistence)==null||n.set_property(px,d),{isRateLimited:u,remainingTokens:d.tokens}}isServerRateLimited(e){var a=this.serverLimits[e||"events"]||!1;return a!==!1&&new Date().getTime()<a}}var tp=Sa("[RemoteConfig]");class Z3{constructor(e){this._instance=e}get remoteConfig(){var e;return(e=at._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.config}Er(e){var a,o;(a=at.__PosthogExtensions__)!=null&&a.loadExternalDependency?(o=at.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"remote-config",(()=>e(this.remoteConfig))):e()}Rr(e){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(a){e(a.json)}})}load(){try{if(this.remoteConfig)return tp.info("Using preloaded remote config",this.remoteConfig),this.Nr(this.remoteConfig),void this.Mr();if(this._instance.Fr())return void tp.warn("Remote config is disabled. Falling back to local config.");this.Er((e=>{if(!e)return tp.info("No config found after loading remote JS config. Falling back to JSON."),void this.Rr((a=>{this.Nr(a),this.Mr()}));this.Nr(e),this.Mr()}))}catch(e){tp.error("Error loading remote config",e)}}stop(){this.Or&&(clearInterval(this.Or),this.Or=void 0)}refresh(){this._instance.Fr()||ze?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}Mr(){var e;if(!this.Or){var a=(e=this._instance.config.remote_config_refresh_interval_ms)!==null&&e!==void 0?e:3e5;a!==0&&(this.Or=setInterval((()=>{this.refresh()}),a))}}Nr(e){var a;e||tp.error("Failed to fetch remote config from PostHog."),this._instance.Nr(e??{}),e?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(a=this._instance.featureFlags)==null||a.ensureFlagsLoaded())}}var qr={GZipJS:"gzip-js",Base64:"base64"},rr=Uint8Array,fn=Uint16Array,$d=Uint32Array,OE=new rr([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),NE=new rr([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),d2=new rr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Q3=function(t,e){for(var a=new fn(31),o=0;31>o;++o)a[o]=e+=1<<t[o-1];var n=new $d(a[30]);for(o=1;30>o;++o)for(var r=a[o];a[o+1]>r;++r)n[r]=r-a[o]<<5|o;return[a,n]},J3=Q3(OE,2),bx=J3[1];J3[0][28]=258,bx[258]=28;for(var u2=Q3(NE,0)[1],X3=new fn(32768),ba=0;32768>ba;++ba){var Jc=(43690&ba)>>>1|(21845&ba)<<1;X3[ba]=((65280&(Jc=(61680&(Jc=(52428&Jc)>>>2|(13107&Jc)<<2))>>>4|(3855&Jc)<<4))>>>8|(255&Jc)<<8)>>>1}var kp=function(t,e,a){for(var o=t.length,n=0,r=new fn(e);o>n;++n)++r[t[n]-1];var i,c=new fn(e);for(n=0;e>n;++n)c[n]=c[n-1]+r[n-1]<<1;for(i=new fn(o),n=0;o>n;++n)i[n]=X3[c[t[n]-1]++]>>>15-t[n];return i},ql=new rr(288);for(ba=0;144>ba;++ba)ql[ba]=8;for(ba=144;256>ba;++ba)ql[ba]=9;for(ba=256;280>ba;++ba)ql[ba]=7;for(ba=280;288>ba;++ba)ql[ba]=8;var xb=new rr(32);for(ba=0;32>ba;++ba)xb[ba]=5;var Fle=kp(ql,9),jle=kp(xb,5),e4=function(t){return(t/8>>0)+(7&t&&1)},t4=function(t,e,a){(a==null||a>t.length)&&(a=t.length);var o=new(t instanceof fn?fn:t instanceof $d?$d:rr)(a-e);return o.set(t.subarray(e,a)),o},Cs=function(t,e,a){var o=e/8>>0;t[o]|=a<<=7&e,t[o+1]|=a>>>8},ap=function(t,e,a){var o=e/8>>0;t[o]|=a<<=7&e,t[o+1]|=a>>>8,t[o+2]|=a>>>16},tw=function(t,e){for(var a=[],o=0;t.length>o;++o)t[o]&&a.push({s:o,f:t[o]});var n=a.length,r=a.slice();if(!n)return[new rr(0),0];if(n==1){var i=new rr(a[0].s+1);return i[a[0].s]=1,[i,1]}a.sort((function(_,D){return _.f-D.f})),a.push({s:-1,f:25001});var c=a[0],d=a[1],u=0,m=1,h=2;for(a[0]={s:-1,f:c.f+d.f,l:c,r:d};m!=n-1;)c=a[a[h].f>a[u].f?u++:h++],d=a[u!=m&&a[h].f>a[u].f?u++:h++],a[m++]={s:-1,f:c.f+d.f,l:c,r:d};var f=r[0].s;for(o=1;n>o;++o)r[o].s>f&&(f=r[o].s);var b=new fn(f+1),y=vx(a[m-1],b,0);if(y>e){o=0;var T=0,x=y-e,w=1<<x;for(r.sort((function(_,D){return b[D.s]-b[_.s]||_.f-D.f}));n>o;++o){var P=r[o].s;if(e>=b[P])break;T+=w-(1<<y-b[P]),b[P]=e}for(T>>>=x;T>0;){var k=r[o].s;e>b[k]?T-=1<<e-b[k]++-1:++o}for(;o>=0&&T;--o){var E=r[o].s;b[E]==e&&(--b[E],++T)}y=e}return[new rr(b),y]},vx=function(t,e,a){return t.s==-1?Math.max(vx(t.l,e,a+1),vx(t.r,e,a+1)):e[t.s]=a},p2=function(t){for(var e=t.length;e&&!t[--e];);for(var a=new fn(++e),o=0,n=t[0],r=1,i=function(d){a[o++]=d},c=1;e>=c;++c)if(t[c]==n&&c!=e)++r;else{if(!n&&r>2){for(;r>138;r-=138)i(32754);r>2&&(i(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(i(n),--r;r>6;r-=6)i(8304);r>2&&(i(r-3<<5|8208),r=0)}for(;r--;)i(n);r=1,n=t[c]}return[a.subarray(0,o),e]},op=function(t,e){for(var a=0,o=0;e.length>o;++o)a+=t[o]*e[o];return a},yx=function(t,e,a){var o=a.length,n=e4(e+2);t[n]=255&o,t[n+1]=o>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var r=0;o>r;++r)t[n+r+4]=a[r];return 8*(n+4+o)},m2=function(t,e,a,o,n,r,i,c,d,u,m){Cs(e,m++,a),++n[256];for(var h=tw(n,15),f=h[0],b=h[1],y=tw(r,15),T=y[0],x=y[1],w=p2(f),P=w[0],k=w[1],E=p2(T),_=E[0],D=E[1],R=new fn(19),O=0;P.length>O;++O)R[31&P[O]]++;for(O=0;_.length>O;++O)R[31&_[O]]++;for(var L=tw(R,7),q=L[0],B=L[1],z=19;z>4&&!q[d2[z-1]];--z);var F,W,ae,H,K=u+5<<3,J=op(n,ql)+op(r,xb)+i,se=op(n,f)+op(r,T)+i+14+3*z+op(R,q)+(2*R[16]+3*R[17]+7*R[18]);if(J>=K&&se>=K)return yx(e,m,t.subarray(d,d+u));if(Cs(e,m,1+(J>se)),m+=2,J>se){F=kp(f,b),W=f,ae=kp(T,x),H=T;var Q=kp(q,B);for(Cs(e,m,k-257),Cs(e,m+5,D-1),Cs(e,m+10,z-4),m+=14,O=0;z>O;++O)Cs(e,m+3*O,q[d2[O]]);m+=3*z;for(var M=[P,_],G=0;2>G;++G){var V=M[G];for(O=0;V.length>O;++O)Cs(e,m,Q[I=31&V[O]]),m+=q[I],I>15&&(Cs(e,m,V[O]>>>5&127),m+=V[O]>>>12)}}else F=Fle,W=ql,ae=jle,H=xb;for(O=0;c>O;++O)if(o[O]>255){var I;ap(e,m,F[257+(I=o[O]>>>18&31)]),m+=W[I+257],I>7&&(Cs(e,m,o[O]>>>23&31),m+=OE[I]);var j=31&o[O];ap(e,m,ae[j]),m+=H[j],j>3&&(ap(e,m,o[O]>>>5&8191),m+=NE[j])}else ap(e,m,F[o[O]]),m+=W[o[O]];return ap(e,m,F[256]),m+W[256]},zle=new $d([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ule=(function(){for(var t=new $d(256),e=0;256>e;++e){for(var a=e,o=9;--o;)a=(1&a&&3988292384)^a>>>1;t[e]=a}return t})(),aw=function(t,e,a){for(;a;++e)t[e]=a,a>>>=8};function qle(t,e){e===void 0&&(e={});var a=(function(){var h=4294967295;return{p(f){for(var b=h,y=0;f.length>y;++y)b=Ule[255&b^f[y]]^b>>>8;h=b},d(){return 4294967295^h}}})(),o=t.length;a.p(t);var n,r,i,c,d,u=(c=10+((n=e).filename&&n.filename.length+1||0),d=8,(function(h,f,b,y,T,x){var w=h.length,P=new rr(y+w+5*(1+Math.floor(w/7e3))+T),k=P.subarray(y,P.length-T),E=0;if(!f||8>w)for(var _=0;w>=_;_+=65535){var D=_+65535;w>D?E=yx(k,E,h.subarray(_,D)):(k[_]=!0,E=yx(k,E,h.subarray(_,w)))}else{for(var R=zle[f-1],O=R>>>13,L=8191&R,q=(1<<b)-1,B=new fn(32768),z=new fn(q+1),F=Math.ceil(b/3),W=2*F,ae=function(He){return(h[He]^h[He+1]<<F^h[He+2]<<W)&q},H=new $d(25e3),K=new fn(288),J=new fn(32),se=0,Q=0,M=(_=0,0),G=0,V=0;w>_;++_){var I=ae(_),j=32767&_,X=z[I];if(B[j]=X,z[I]=j,_>=G){var de=w-_;if((se>7e3||M>24576)&&de>423){E=m2(h,k,0,H,K,J,Q,M,V,_-V,E),M=se=Q=0,V=_;for(var ue=0;286>ue;++ue)K[ue]=0;for(ue=0;30>ue;++ue)J[ue]=0}var Ee=2,Ue=0,Z=L,ne=j-X&32767;if(de>2&&I==ae(_-ne))for(var be=Math.min(O,de)-1,ie=Math.min(32767,_),xe=Math.min(258,de);ie>=ne&&--Z&&j!=X;){if(h[_+Ee]==h[_+Ee-ne]){for(var ke=0;xe>ke&&h[_+ke]==h[_+ke-ne];++ke);if(ke>Ee){if(Ee=ke,Ue=ne,ke>be)break;var it=Math.min(ne,ke-2),ct=0;for(ue=0;it>ue;++ue){var Ge=_-ne+ue+32768&32767,ot=Ge-B[Ge]+32768&32767;ot>ct&&(ct=ot,X=Ge)}}}ne+=(j=X)-(X=B[j])+32768&32767}if(Ue){H[M++]=268435456|bx[Ee]<<18|u2[Ue];var Ne=31&bx[Ee],Oe=31&u2[Ue];Q+=OE[Ne]+NE[Oe],++K[257+Ne],++J[Oe],G=_+Ee,++se}else H[M++]=h[_],++K[h[_]]}}E=m2(h,k,!0,H,K,J,Q,M,V,_-V,E)}return t4(P,0,y+e4(E)+T)})(r=t,(i=e).level==null?6:i.level,i.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(r.length)))):12+i.mem,c,d)),m=u.length;return(function(h,f){var b=f.filename;if(h[0]=31,h[1]=139,h[2]=8,h[8]=2>f.level?4:f.level==9?2:0,h[9]=3,f.mtime!=0&&aw(h,4,Math.floor(new Date(f.mtime||Date.now())/1e3)),b){h[3]=8;for(var y=0;b.length>=y;++y)h[y+10]=b.charCodeAt(y)}})(u,e),aw(u,m-8,a.d()),aw(u,m-4,o),u}var $le=!!$0||!!q0,a4="text/plain",h2=!1,fv=function(t,e,a){var o;a===void 0&&(a=!0);var[n,r]=t.split("?"),i=Me({},e),c=(o=r?.split("&").map((u=>{var m,[h,f]=u.split("="),b=a&&(m=i[h])!==null&&m!==void 0?m:f;return delete i[h],h+"="+b})))!==null&&o!==void 0?o:[],d=(function(u,m){var h,f;m===void 0&&(m="&");var b=[];return fa(u,(function(y,T){$e(y)||$e(T)||T==="undefined"||(h=encodeURIComponent((x=>x instanceof File)(y)?y.name:y.toString()),f=encodeURIComponent(T),b[b.length]=f+"="+h)})),b.join(m)})(i);return d&&c.push(d),n+"?"+c.join("&")},bd=(t,e)=>JSON.stringify(t,((a,o)=>typeof o=="bigint"?o.toString():o),e),ow=t=>{if(t.tr)return t.tr;var{data:e,compression:a}=t;if(e){if(a===qr.GZipJS){var o=qle((function(c,d){var u=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var m=new rr(c.length+(c.length>>>1)),h=0,f=function(x){m[h++]=x},b=0;u>b;++b){if(h+5>m.length){var y=new rr(h+8+(u-b<<1));y.set(m),m=y}var T=c.charCodeAt(b);128>T?f(T):2048>T?(f(192|T>>>6),f(128|63&T)):T>55295&&57344>T?(f(240|(T=65536+(1047552&T)|1023&c.charCodeAt(++b))>>>18),f(128|T>>>12&63),f(128|T>>>6&63),f(128|63&T)):(f(224|T>>>12),f(128|T>>>6&63),f(128|63&T))}return t4(m,0,h)})(bd(e)),{mtime:0});return{contentType:a4,body:o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength),estimatedSize:o.byteLength}}if(a===qr.Base64){var n=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((d,u)=>String.fromCharCode(parseInt(u,16)))))})(bd(e)),r=(c=>"data="+encodeURIComponent(typeof c=="string"?c:bd(c)))(n);return{contentType:"application/x-www-form-urlencoded",body:r,estimatedSize:new Blob([r]).size}}var i=bd(e);return{contentType:"application/json",body:i,estimatedSize:new Blob([i]).size}}},Vle=(function(){var t=er((function*(e){var a=bd(e.data),o=yield(function(r,i,c){return V0.apply(this,arguments)})(a,Zo.DEBUG,{rethrow:!0});if(!o)return e;var n=yield o.arrayBuffer();return Me({},e,{tr:{contentType:a4,body:n,estimatedSize:n.byteLength}})}));return function(e){return t.apply(this,arguments)}})(),g2=(t,e)=>fv(t,{_:new Date().getTime().toString(),ver:Zo.JS_SDK_VERSION,compression:e}),Cf=[];q0&&Cf.push({transport:"fetch",method(t){var e,a,{contentType:o,body:n,estimatedSize:r}=(e=ow(t))!==null&&e!==void 0?e:{},i=new Headers;fa(t.headers,(function(m,h){i.append(h,m)})),o&&i.append("Content-Type",o);var c=t.url,d=null;if(GO){var u=new GO;d={signal:u.signal,timeout:setTimeout((()=>u.abort()),t.timeout)}}q0(c,Me({method:t?.method||"GET",headers:i,keepalive:t.method==="POST"&&52428.8>(r||0),body:n,signal:(a=d)==null?void 0:a.signal},t.fetchOptions)).then((m=>m.text().then((h=>{var f={statusCode:m.status,text:h};if(m.status===200)try{f.json=JSON.parse(h)}catch(b){qe.error(b)}t.callback==null||t.callback(f)})))).catch((m=>{qe.error(m),t.callback==null||t.callback({statusCode:0,error:m})})).finally((()=>d?clearTimeout(d.timeout):null))}}),$0&&Cf.push({transport:"XHR",method(t){var e,a=new $0;a.open(t.method||"GET",t.url,!0);var{contentType:o,body:n}=(e=ow(t))!==null&&e!==void 0?e:{};fa(t.headers,(function(r,i){a.setRequestHeader(i,r)})),o&&a.setRequestHeader("Content-Type",o),t.timeout&&(a.timeout=t.timeout),t.disableXHRCredentials||(a.withCredentials=!0),a.onreadystatechange=()=>{if(a.readyState===4){var r={statusCode:a.status,text:a.responseText};if(a.status===200)try{r.json=JSON.parse(a.responseText)}catch{}t.callback==null||t.callback(r)}},a.send(n)}}),Mn!=null&&Mn.sendBeacon&&Cf.push({transport:"sendBeacon",method(t){var e=fv(t.url,{beacon:"1"});try{var a,{contentType:o,body:n}=(a=ow(t))!==null&&a!==void 0?a:{};if(!n)return;var r=n instanceof Blob?n:new Blob([n],{type:o});Mn.sendBeacon(e,r)}catch{}}});var Tx=3e3;class Hle{constructor(e,a){this.Pr=!0,this.Lr=[],this.Dr=Yr(a?.flush_interval_ms||Tx,250,5e3,qe.createLogger("flush interval"),Tx),this.Br=e}enqueue(e){this.Lr.push(e),this.jr||this.$r()}unload(){this.qr();var e=this.Lr.length>0?this.Zr():{},a=Object.values(e);[...a.filter((o=>o.url.indexOf("/e")===0)),...a.filter((o=>o.url.indexOf("/e")!==0))].map((o=>{this.Br(Me({},o,{transport:"sendBeacon"}))}))}enable(){this.Pr=!1,this.$r()}$r(){var e=this;this.Pr||(this.jr=setTimeout((()=>{if(this.qr(),this.Lr.length>0){var a=this.Zr(),o=function(){var r=a[n],i=new Date().getTime();r.data&&Bt(r.data)&&fa(r.data,(c=>{c.offset=Math.abs(c.timestamp-i),delete c.timestamp})),e.Br(r)};for(var n in a)o()}}),this.Dr))}qr(){clearTimeout(this.jr),this.jr=void 0}Zr(){var e={};return fa(this.Lr,(a=>{var o,n=a,r=(n?n.batchKey:null)||n.url;$e(e[r])&&(e[r]=Me({},n,{data:[]})),(o=e[r].data)==null||o.push(n.data)})),this.Lr=[],e}}var Gle=["retriesPerformedSoFar"];class Wle{constructor(e){this.Vr=!1,this.Hr=3e3,this.Lr=[],this._instance=e,this.Lr=[],this.zr=!0,!$e(ge)&&"onLine"in ge.navigator&&(this.zr=ge.navigator.onLine,this.Ur=()=>{this.zr=!0,this.Yr()},this.Gr=()=>{this.zr=!1},Za(ge,"online",this.Ur),Za(ge,"offline",this.Gr))}get length(){return this.Lr.length}retriableRequest(e){var{retriesPerformedSoFar:a}=e,o=r3(e,Gle);id(a)&&(o.url=fv(o.url,{retry_count:a})),this._instance._send_request(Me({},o,{callback:n=>{n.statusCode===200||n.statusCode>=400&&500>n.statusCode||(a??0)>=10?o.callback==null||o.callback(n):this.Wr(Me({retriesPerformedSoFar:a},o))}}))}Wr(e){var a=e.retriesPerformedSoFar||0;e.retriesPerformedSoFar=a+1;var o=(function(i){var c=3e3*Math.pow(2,i),d=c/2,u=Math.min(18e5,c),m=Math.random()-.5;return Math.ceil(u+m*(u-d))})(a),n=Date.now()+o;this.Lr.push({retryAt:n,requestOptions:e});var r="Enqueued failed request for retry in "+o;navigator.onLine||(r+=" (Browser is offline)"),qe.warn(r),this.Vr||(this.Vr=!0,this.Xr())}Xr(){if(this.Jr&&clearTimeout(this.Jr),this.Lr.length===0)return this.Vr=!1,void(this.Jr=void 0);this.Jr=setTimeout((()=>{this.zr&&this.Lr.length>0&&this.Yr(),this.Xr()}),this.Hr)}Yr(){var e=Date.now(),a=[],o=this.Lr.filter((r=>e>r.retryAt||(a.push(r),!1)));if(this.Lr=a,o.length>0)for(var{requestOptions:n}of o)this.retriableRequest(n)}unload(){for(var{requestOptions:e}of(this.Jr&&(clearTimeout(this.Jr),this.Jr=void 0),this.Vr=!1,$e(ge)||(this.Ur&&(ge.removeEventListener("online",this.Ur),this.Ur=void 0),this.Gr&&(ge.removeEventListener("offline",this.Gr),this.Gr=void 0)),this.Lr))try{this._instance._send_request(Me({},e,{transport:"sendBeacon"}))}catch(a){qe.error(a)}this.Lr=[]}}class Kle{constructor(e){this.Kr=()=>{var a,o,n,r;this.Qr||(this.Qr={});var i=this.scrollElement(),c=this.scrollY(),d=i?Math.max(0,i.scrollHeight-i.clientHeight):0,u=c+(i?.clientHeight||0),m=i?.scrollHeight||0;this.Qr.lastScrollY=Math.ceil(c),this.Qr.maxScrollY=Math.max(c,(a=this.Qr.maxScrollY)!==null&&a!==void 0?a:0),this.Qr.maxScrollHeight=Math.max(d,(o=this.Qr.maxScrollHeight)!==null&&o!==void 0?o:0),this.Qr.lastContentY=u,this.Qr.maxContentY=Math.max(u,(n=this.Qr.maxContentY)!==null&&n!==void 0?n:0),this.Qr.maxContentHeight=Math.max(m,(r=this.Qr.maxContentHeight)!==null&&r!==void 0?r:0)},this._instance=e}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Qr}resetContext(){var e=this.Qr;return setTimeout(this.Kr,0),e}startMeasuringScrollPosition(){Za(ge,"scroll",this.Kr,{capture:!0}),Za(ge,"scrollend",this.Kr,{capture:!0}),Za(ge,"resize",this.Kr)}scrollElement(){if(!this.ei)return ge?.document.documentElement;var e=Bt(this.ei)?this.ei:[this.ei];for(var a of e){var o=ge?.document.querySelector(a);if(o)return o}}scrollY(){if(this.ei){var e=this.scrollElement();return e&&e.scrollTop||0}return ge&&(ge.scrollY||ge.pageYOffset||ge.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var e=this.scrollElement();return e&&e.scrollLeft||0}return ge&&(ge.scrollX||ge.pageXOffset||ge.document.documentElement.scrollLeft)||0}}var Yle=t=>W3(t?.config.mask_personal_data_properties,t?.config.custom_personal_data_properties);class f2{constructor(e,a,o,n){this.ti=r=>{var i=this.ri();if(!i||i.sessionId!==r){var c={sessionId:r,props:this.ii(this._instance)};this.ni.register({[ux]:c})}},this._instance=e,this.si=a,this.ni=o,this.ii=n||Yle,this.si.onSessionId(this.ti)}ri(){return this.ni.props[ux]}getSetOnceProps(){var e,a=(e=this.ri())==null?void 0:e.props;return a?"r"in a?K3(a):{$referring_domain:a.referringDomain,$pathname:a.initialPathName,utm_source:a.utm_source,utm_campaign:a.utm_campaign,utm_medium:a.utm_medium,utm_content:a.utm_content,utm_term:a.utm_term}:{}}getSessionProps(){var e={};return fa(DE(this.getSetOnceProps()),((a,o)=>{o==="$current_url"&&(o="url"),e["$session_entry_"+H0(o)]=a})),e}}class ME{constructor(){this.oi={}}on(e,a){return this.oi[e]||(this.oi[e]=[]),this.oi[e].push(a),()=>{this.oi[e]=this.oi[e].filter((o=>o!==a))}}emit(e,a){for(var o of this.oi[e]||[])o(a);for(var n of this.oi["*"]||[])n(e,a)}}var nw=Sa("[SessionId]");class b2{on(e,a){return this.ai.on(e,a)}constructor(e,a,o){var n;if(this.li=[],this.ui=void 0,this.ai=new ME,this.hi=(u,m)=>!(!id(u)||!id(m))&&Math.abs(u-m)>this.sessionTimeoutMs,!e.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(e.config.cookieless_mode===Rs)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Bt=e.config,this.ni=e.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=a||Ai,this.fi=o||Ai;var r=this.Bt.persistence_name||this.Bt.token;if(this._sessionTimeoutMs=1e3*Yr(this.Bt.session_idle_timeout_seconds||1800,60,36e3,nw.createLogger("session_idle_timeout_seconds"),1800),e.register({$configured_session_timeout_ms:this._sessionTimeoutMs}),this.pi(),this.gi="ph_"+r+"_window_id",this.mi="ph_"+r+"_primary_window_exists",this.yi()){var i=Po.Z(this.gi),c=Po.Z(this.mi);i&&!c?this.ci=i:Po.F(this.gi),Po.M(this.mi,!0)}if((n=this.Bt.bootstrap)!=null&&n.sessionID)try{var d=(u=>{var m=this.Bt.bootstrap.sessionID.replace(/-/g,"");if(m.length!==32)throw new Error("Not a valid UUID");if(m[12]!=="7")throw new Error("Not a UUIDv7");return parseInt(m.substring(0,12),16)})();this.bi(this.Bt.bootstrap.sessionID,new Date().getTime(),d)}catch(u){nw.error("Invalid sessionID in bootstrap",u)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(e){return $e(this.li)&&(this.li=[]),this.li.push(e),this.di&&e(this.di,this.ci),()=>{this.li=this.li.filter((a=>a!==e))}}yi(){return this.Bt.persistence!=="memory"&&!this.ni._r&&Po.R()}Ii(e){e!==this.ci&&(this.ci=e,this.yi()&&Po.M(this.gi,e))}Ci(){return this.ci?this.ci:this.yi()?Po.Z(this.gi):null}bi(e,a,o){e===this.di&&a===this._sessionActivityTimestamp&&o===this._sessionStartTimestamp||(this._sessionStartTimestamp=o,this._sessionActivityTimestamp=a,this.di=e,this.ni.register({[pb]:[a,e,o]}))}Si(){var e=this.ni.props[pb];return Bt(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.xi),this.xi=void 0,this.ui&&ge&&(ge.removeEventListener(bb,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&Po.F(this.mi)},Za(ge,bb,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(e,a){if(e===void 0&&(e=!1),a===void 0&&(a=null),this.Bt.cookieless_mode===Rs)throw new Error('checkAndGetSessionAndWindowId should not be called with cookieless_mode="always"');var o=a||new Date().getTime(),[n,r,i]=this.Si(),c=this.Ci(),d=id(i)&&Math.abs(o-i)>864e5,u=!1,m=!r,h=!m&&!e&&this.hi(o,n);m||h||d?(r=this.vi(),c=this.fi(),nw.info("new session ID generated",{sessionId:r,windowId:c,changeReason:{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}}),i=o,u=!0):c||(c=this.fi(),u=!0);var f=id(n)&&e&&!d?n:o,b=id(i)?i:new Date().getTime();return this.Ii(c),this.bi(r,f,b),e||this.pi(),u&&this.li.forEach((y=>y(r,c,u?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}:void 0))),{sessionId:r,windowId:c,sessionStartTimestamp:b,changeReason:u?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}:void 0,lastActivityTimestamp:n}}pi(){clearTimeout(this.xi),this.xi=setTimeout((()=>{var[e]=this.Si();if(this.hi(new Date().getTime(),e)){var a=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:a})}}),1.1*this.sessionTimeoutMs)}}var o4=function(t,e){if(!t)return!1;var a=t.userAgent;if(a&&YO(a,e))return!0;try{var o=t?.userAgentData;if(o!=null&&o.brands&&o.brands.some((n=>YO(n?.brand,e))))return!0}catch{}return!!t.webdriver},Pb=function(t,e){if(!(function(a){try{new RegExp(a)}catch{return!1}return!0})(e))return!1;try{return new RegExp(e).test(t)}catch{return!1}};function v2(t,e,a){return bd({distinct_id:t,userPropertiesToSet:e,userPropertiesToSetOnce:a})}var n4={exact:(t,e)=>e.some((a=>t.some((o=>a===o)))),is_not:(t,e)=>e.every((a=>t.every((o=>a!==o)))),regex:(t,e)=>e.some((a=>t.some((o=>Pb(a,o))))),not_regex:(t,e)=>e.every((a=>t.every((o=>!Pb(a,o))))),icontains:(t,e)=>e.map(tf).some((a=>t.map(tf).some((o=>a.includes(o))))),not_icontains:(t,e)=>e.map(tf).every((a=>t.map(tf).every((o=>!a.includes(o))))),gt:(t,e)=>e.some((a=>{var o=parseFloat(a);return!isNaN(o)&&t.some((n=>o>parseFloat(n)))})),lt:(t,e)=>e.some((a=>{var o=parseFloat(a);return!isNaN(o)&&t.some((n=>o<parseFloat(n)))}))},tf=t=>t.toLowerCase();function r4(t,e){return!t||Object.entries(t).every((a=>{var[o,n]=a,r=e?.[o];if($e(r)||js(r))return!1;var i=[String(r)],c=n4[n.operator];return!!c&&c(n.values,i)}))}var Sx="custom",y2="i.posthog.com",Zle=/^\/static\//;class Qle{constructor(e){this.ki={},this.instance=e}get apiHost(){var e=this.instance.config.api_host.trim().replace(/\/$/,"");return e==="https://app.posthog.com"?"https://us.i.posthog.com":e}get flagsApiHost(){var e=this.instance.config.flags_api_host;return e?e.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var e,a=(e=this.instance.config.ui_host)==null?void 0:e.replace(/\/$/,"");return a||(a=this.apiHost.replace("."+y2,".posthog.com")),a==="https://app.posthog.com"?"https://us.posthog.com":a}get region(){return this.ki[this.apiHost]||(this.ki[this.apiHost]=/https:\/\/(app|us|us-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"us":/https:\/\/(eu|eu-assets)(\.i)?\.posthog\.com/i.test(this.apiHost)?"eu":Sx),this.ki[this.apiHost]}Ti(e){var a=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof a=="string"&&Zle.test(e))return a.trim().replace(/\/$/,"")||void 0}endpointFor(e,a){if(a===void 0&&(a=""),a&&(a=a[0]==="/"?a:"/"+a),e==="ui")return this.uiHost+a;if(e==="flags")return this.flagsApiHost+a;if(e==="assets"){var o=this.Ti(a);if(o)return""+o+a}if(this.region===Sx)return this.apiHost+a;var n=y2+a;switch(e){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var aa=Sa("[Surveys]"),wx="seenSurvey_",Jle=[XS.Popover,XS.Widget,XS.API],Xle={ignoreConditions:!1,ignoreDelay:!1,displayType:fx.Popover},ece=Sa("[PostHog ExternalIntegrations]"),tce={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class ace{constructor(e){this._instance=e}ur(e,a){var o;(o=at.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,e,(n=>{if(n)return ece.error("failed to load script",n);a()}))}startIfEnabledOrStop(){var e=this,a=function(i){var c,d,u;!n||(c=at.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[i]||e.ur(tce[i],(()=>{var m;(m=at.__PosthogExtensions__)==null||(m=m.integrations)==null||(m=m[i])==null||m.start(e._instance)})),!n&&(d=at.__PosthogExtensions__)!=null&&(d=d.integrations)!=null&&d[i]&&((u=at.__PosthogExtensions__)==null||(u=u.integrations)==null||(u=u[i])==null||u.stop())};for(var[o,n]of Object.entries((r=this._instance.config.integrations)!==null&&r!==void 0?r:{})){var r;a(o)}}}var Xc,_p={},rw=0,xx=()=>{},T2='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',np="Surveys module not available",S2="sanitize_properties is deprecated. Use before_send instead",s4="Invalid value for property_denylist config: ",dd="posthog",i4=!$le&&mn?.indexOf("MSIE")===-1&&mn?.indexOf("Mozilla")===-1,w2=t=>{var e;return Me({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:yle(ze?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:xx,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:t??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:xo&&Ea(xo?.search)&&xo.search.indexOf("__posthog_debug=true")!==-1||!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_web_experiments:!0,disable_surveys:!1,disable_surveys_automatic_display:!1,disable_conversations:!1,disable_product_tours:!1,disable_external_dependency_loading:!1,enable_recording_console_log:void 0,secure_cookie:(ge==null||(e=ge.location)==null?void 0:e.protocol)==="https:",ip:!1,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_useragent_filter:!1,opt_out_capturing_persistence_type:"localStorage",consent_persistence_name:null,opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_denylist:[],respect_dnt:!1,sanitize_properties:null,request_headers:{},request_batching:!0,properties_string_max_length:65535,mask_all_element_attributes:!1,mask_all_text:!1,mask_personal_data_properties:!1,custom_personal_data_properties:[],advanced_disable_flags:!1,advanced_disable_decide:!1,advanced_disable_feature_flags:!1,advanced_disable_feature_flags_on_first_load:!1,advanced_only_evaluate_survey_feature_flags:!1,advanced_feature_flags_dedup_per_session:!1,advanced_enable_surveys:!1,advanced_disable_toolbar_metrics:!1,feature_flag_request_timeout_ms:3e3,surveys_request_timeout_ms:1e4,on_request_error(a){qe.error("Bad HTTP status: "+a.statusCode+" "+a.text)},get_device_id:a=>a,capture_performance:void 0,name:"posthog",bootstrap:{},disable_compression:!1,session_idle_timeout_seconds:1800,person_profiles:gx,before_send:void 0,request_queue_config:{flush_interval_ms:Tx},error_tracking:{},_onCapture:xx,__preview_eager_load_replay:!1},(a=>({rageclick:!a||"2025-11-30">a||{content_ignorelist:!0},capture_pageview:!a||"2025-05-24">a||"history_change",session_recording:a&&a>="2025-11-30"?{strictMinimumDuration:!0}:{},external_scripts_inject_target:a&&a>="2026-01-30"?"head":"body",internal_or_test_user_hostname:a&&a>="2026-01-30"?/^(localhost|127\.0\.0\.1)$/:void 0}))(t))},oce=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],x2=t=>{var e={};for(var[a,o]of oce)$e(t[a])||(e[o]=t[a]);var n=Oa({},e,t);return Bt(t.property_blacklist)&&($e(t.property_denylist)?n.property_denylist=t.property_blacklist:Bt(t.property_denylist)?n.property_denylist=[...t.property_blacklist,...t.property_denylist]:qe.error(s4+t.property_denylist)),n};class nce{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(e){qe.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=e}}class tr{Ei(e,a){if(e){var o=this.Ri.indexOf(e);o!==-1&&this.Ri.splice(o,1)}return this.Ri.push(a),a.initialize==null||a.initialize(),a}Ni(){return this.config.cookieless_mode===Rs||this.config.cookieless_mode===Al&&this.consent.isRejected()}get decideEndpointWasHit(){var e,a;return(e=(a=this.featureFlags)==null?void 0:a.hasLoadedFlags)!==null&&e!==void 0&&e}get flagsEndpointWasHit(){var e,a;return(e=(a=this.featureFlags)==null?void 0:a.hasLoadedFlags)!==null&&e!==void 0&&e}constructor(){var e;this.webPerformance=new nce,this.Mi=!1,this.version=Zo.LIB_VERSION,this.Fi=new ME,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=w2(),this.SentryIntegration=Ale,this.sentryIntegration=o=>(function(n,r){var i=q3(n,r);return{name:U3,processEvent:c=>i(c)}})(this,o),this.__request_queue=[],this.__loaded=!1,this.analyticsDefaultEndpoint="/e/",this.Oi=!1,this.Pi=null,this.Li=null,this.Di=null,this.scrollManager=new Kle(this),this.pageViewManager=new s2(this),this.rateLimiter=new Ble(this),this.requestRouter=new Qle(this),this.consent=new Cle(this),this.externalIntegrations=new ace(this);var a=(e=tr.__defaultExtensionClasses)!==null&&e!==void 0?e:{};this.featureFlags=a.featureFlags&&new a.featureFlags(this),this.toolbar=a.toolbar&&new a.toolbar(this),this.surveys=a.surveys&&new a.surveys(this),this.conversations=a.conversations&&new a.conversations(this),this.logs=a.logs&&new a.logs(this),this.experiments=a.experiments&&new a.experiments(this),this.exceptions=a.exceptions&&new a.exceptions(this),this.people={set:(o,n,r)=>{var i=Ea(o)?{[o]:n}:o;this.setPersonProperties(i),r?.({})},set_once:(o,n,r)=>{var i=Ea(o)?{[o]:n}:o;this.setPersonProperties(void 0,i),r?.({})}},this.on("eventCaptured",(o=>qe.info('send "'+o?.event+'"',o)))}init(e,a,o){if(o&&o!==dd){var n,r=(n=_p[o])!==null&&n!==void 0?n:new tr;return r._init(e,a,o),_p[o]=r,_p[dd][o]=r,r}return this._init(e,a,o)}_init(e,a,o){var n,r;if(a===void 0&&(a={}),$e(e)||wf(e))return qe.critical("PostHog was initialized without a token. This likely indicates a misconfiguration. Please check the first argument passed to posthog.init()"),this;if(this.__loaded)return console.warn("[PostHog.js]","You have already initialized PostHog! Re-initializing is a no-op"),this;this.__loaded=!0,this.config={},a.debug=this.Bi(a.debug),this.ji=a,this.$i=[],a.person_profiles?this.Li=a.person_profiles:a.process_person&&(this.Li=a.process_person),this.set_config(Oa({},w2(a.defaults),x2(a),{name:o,token:e})),this.config.on_xhr_error&&qe.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=a.disable_compression?void 0:qr.GZipJS;var i=this.qi();this.persistence=new JS(this.config,i),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new JS(Me({},this.config,{persistence:"sessionStorage"}),i);var c=Me({},this.persistence.props),d=Me({},this.sessionPersistence.props);this.register({$initialization_time:new Date().toISOString()}),this.Zi=new Hle((x=>this.Vi(x)),this.config.request_queue_config),this.Hi=new Wle(this),this.__request_queue=[];var u=this.Ni();if(u||(this.sessionManager=new b2(this),this.sessionPropsManager=new f2(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(qe.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(u)}),0)):(qe.info("Initializing extensions synchronously"),this.zi(u)),Zo.DEBUG=Zo.DEBUG||this.config.debug,Zo.DEBUG&&qe.info("Starting in debug mode",{this:this,config:a,thisC:Me({},this.config),p:c,s:d}),!this.config.identity_distinct_id||(n=a.bootstrap)!=null&&n.distinctID||(a.bootstrap=Me({},a.bootstrap,{distinctID:this.config.identity_distinct_id,isIdentifiedID:!0})),((r=a.bootstrap)==null?void 0:r.distinctID)!==void 0){var m=a.bootstrap.distinctID,h=this.get_distinct_id(),f=this.persistence.get_property(vr);if(a.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Zc)this.identify(m);else if(a.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Qc)qe.warn("Bootstrap distinctID differs from an already-identified user. The existing identity is preserved. Call reset() before reinitializing if you intend to switch users.");else{var b=this.config.get_device_id(Ai()),y=a.bootstrap.isIdentifiedID?b:m;this.persistence.set_property(vr,a.bootstrap.isIdentifiedID?Qc:Zc),this.register({distinct_id:m,$device_id:y})}}if(u)this.register_once({distinct_id:Zg,$device_id:null},"");else if(!this.get_distinct_id()){var T=this.config.get_device_id(Ai());this.register_once({distinct_id:T,$device_id:T},""),this.persistence.set_property(vr,Zc)}return Za(ge,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),a.segment?(function(x,w){var P=x.config.segment;if(!P)return w();(function(k,E){var _=k.config.segment;if(!_)return E();var D=O=>{var L=()=>O.anonymousId()||Ai();k.config.get_device_id=L,O.id()&&(k.register({distinct_id:O.id(),$device_id:L()}),k.persistence.set_property(vr,Qc)),E()},R=_.user();"then"in R&&As(R.then)?R.then(D):D(R)})(x,(()=>{P.register((k=>{Promise&&Promise.resolve||QS.warn("This browser does not have Promise support, and can not use the segment integration");var E=(_,D)=>{if(!D)return _;_.event.userId||_.event.anonymousId===k.get_distinct_id()||(QS.info("No userId set, resetting PostHog"),k.reset()),_.event.userId&&_.event.userId!==k.get_distinct_id()&&(QS.info("UserId set, identifying with PostHog"),k.identify(_.event.userId));var R=k.calculateEventProperties(D,_.event.properties);return _.event.properties=Object.assign({},R,_.event.properties),_};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:()=>!0,load:()=>Promise.resolve(),track:_=>E(_,_.event.event),page:_=>E(_,cd),identify:_=>E(_,YS),screen:_=>E(_,"$screen")}})(x)).then((()=>{w()}))}))})(this,(()=>this.Ui())):this.Ui(),As(this.config._onCapture)&&this.config._onCapture!==xx&&(qe.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(x=>this.config._onCapture(x.event,x)))),this.config.ip&&qe.warn('The `ip` config option has NO EFFECT AT ALL and has been deprecated. Use a custom transformation or "Discard IP data" project setting instead. See https://posthog.com/tutorials/web-redact-properties#hiding-customer-ip-address for more information.'),this}zi(e){var a,o,n,r,i,c,d,u=performance.now(),m=Me({},tr.__defaultExtensionClasses,this.config.__extensionClasses),h=[];m.featureFlags&&this.Ri.push(this.featureFlags=(a=this.featureFlags)!==null&&a!==void 0?a:new m.featureFlags(this)),m.exceptions&&this.Ri.push(this.exceptions=(o=this.exceptions)!==null&&o!==void 0?o:new m.exceptions(this)),m.historyAutocapture&&this.Ri.push(this.historyAutocapture=new m.historyAutocapture(this)),m.tracingHeaders&&this.Ri.push(new m.tracingHeaders(this)),m.siteApps&&this.Ri.push(this.siteApps=new m.siteApps(this)),m.sessionRecording&&!e&&this.Ri.push(this.sessionRecording=new m.sessionRecording(this)),this.config.disable_scroll_properties||h.push((()=>{this.scrollManager.startMeasuringScrollPosition()})),m.autocapture&&this.Ri.push(this.autocapture=new m.autocapture(this)),m.surveys&&this.Ri.push(this.surveys=(n=this.surveys)!==null&&n!==void 0?n:new m.surveys(this)),m.logs&&this.Ri.push(this.logs=(r=this.logs)!==null&&r!==void 0?r:new m.logs(this)),m.conversations&&this.Ri.push(this.conversations=(i=this.conversations)!==null&&i!==void 0?i:new m.conversations(this)),m.productTours&&this.Ri.push(this.productTours=new m.productTours(this)),m.heatmaps&&this.Ri.push(this.heatmaps=new m.heatmaps(this)),m.webVitalsAutocapture&&this.Ri.push(this.webVitalsAutocapture=new m.webVitalsAutocapture(this)),m.exceptionObserver&&this.Ri.push(this.exceptionObserver=new m.exceptionObserver(this)),m.deadClicksAutocapture&&this.Ri.push(this.deadClicksAutocapture=new m.deadClicksAutocapture(this,_le)),m.toolbar&&this.Ri.push(this.toolbar=(c=this.toolbar)!==null&&c!==void 0?c:new m.toolbar(this)),m.experiments&&this.Ri.push(this.experiments=(d=this.experiments)!==null&&d!==void 0?d:new m.experiments(this)),this.Ri.forEach((f=>{f.initialize&&h.push((()=>{f.initialize==null||f.initialize()}))})),h.push((()=>{if(this.Yi){var f=this.Yi;this.Yi=void 0,this.Nr(f)}})),this.Gi(h,u)}Gi(e,a){for(;e.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-a>=30&&e.length>0)return void setTimeout((()=>{this.Gi(e,a)}),0);var o=e.shift();if(o)try{o()}catch(r){qe.error("Error initializing extension:",r)}}var n=Math.round(performance.now()-a);this.register_for_session({[L3]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[B3]:n}),this.config.__preview_deferred_init_extensions&&qe.info("PostHog extensions initialized ("+n+"ms)")}Nr(e){var a;if(!ze||!ze.body)return qe.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Nr(e)}),500);this.config.__preview_deferred_init_extensions&&(this.Yi=e),this.Wi=e,this.compression=void 0,e.supportedCompression&&!this.config.disable_compression&&(this.compression=Ct(e.supportedCompression,qr.GZipJS)?qr.GZipJS:Ct(e.supportedCompression,qr.Base64)?qr.Base64:void 0),(a=e.analytics)!=null&&a.endpoint&&(this.analyticsDefaultEndpoint=e.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:gx}),this.Ri.forEach((o=>o.onRemoteConfig==null?void 0:o.onRemoteConfig(e)))}Ui(){try{this.config.loaded(this)}catch(o){qe.critical("`loaded` function failed",o)}if(this.Xi(),this.config.internal_or_test_user_hostname&&xo!=null&&xo.hostname){var e=xo.hostname,a=this.config.internal_or_test_user_hostname;(typeof a=="string"?e===a:a.test(e))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ni())&&this.Ji()}),1),this.Ki=new Z3(this),this.Ki.load()}Xi(){var e;this.is_capturing()&&this.config.request_batching&&((e=this.Zi)==null||e.enable())}_dom_loaded(){this.is_capturing()&&Qg(this.__request_queue,(e=>this.Vi(e))),this.__request_queue=[],this.Xi()}_handle_unload(){var e,a,o,n;(e=this.surveys)==null||e.handlePageUnload(),this.config.request_batching?(this.Qi()&&this.capture(KS),(a=this.logs)==null||a.flushLogs("sendBeacon"),(o=this.Zi)==null||o.unload(),(n=this.Hi)==null||n.unload()):this.Qi()&&this.capture(KS,null,{transport:"sendBeacon"})}_send_request(e){this.__loaded&&(i4?this.__request_queue.push(e):this.rateLimiter.isServerRateLimited(e.batchKey)||(e.transport=e.transport||this.config.api_transport,e.url=fv(e.url,{ip:this.config.ip?1:0}),e.headers=Me({},this.config.request_headers,e.headers),e.compression=e.compression==="best-available"?this.compression:e.compression,e.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(e.disableTransport=["sendBeacon"]),e.fetchOptions=e.fetchOptions||this.config.fetch_options,(a=>{var o,n,r,i=Me({},a);i.timeout=i.timeout||6e4,i.url=g2(i.url,i.compression);var c=(o=i.transport)!==null&&o!==void 0?o:"fetch",d=Cf.filter((m=>!i.disableTransport||!m.transport||!i.disableTransport.includes(m.transport))),u=(n=(r=(function(m,h){for(var f=0;m.length>f;f++)if(m[f].transport===c)return m[f]})(d))==null?void 0:r.method)!==null&&n!==void 0?n:d[0].method;if(!u)throw new Error("No available transport method");c!=="sendBeacon"&&i.data&&i.compression===qr.GZipJS&&Aie&&!h2?Vle(i).then((m=>{u(m)})).catch((m=>{if((h=>!(!h||typeof h!="object")&&("name"in h?String(h.name):"")==="NotReadableError")(m))return h2=!0,void u(Me({},i,{compression:void 0,url:g2(a.url,void 0)}));u(i)})):u(i)})(Me({},e,{callback:a=>{var o,n;this.rateLimiter.checkForLimiting(a),400>a.statusCode||(o=(n=this.config).on_request_error)==null||o.call(n,a),e.callback==null||e.callback(a)}}))))}Vi(e){this.Hi?this.Hi.retriableRequest(e):this._send_request(e)}_execute_array(e){rw++;try{var a,o=[],n=[],r=[];Qg(e,(c=>{c&&(Bt(a=c[0])?r.push(c):As(c)?c.call(this):Bt(c)&&a==="alias"?o.push(c):Bt(c)&&a.indexOf("capture")!==-1&&As(this[a])?r.push(c):n.push(c))}));var i=function(c,d){Qg(c,(function(u){if(Bt(u[0])){var m=d;fa(u,(function(h){m=m[h[0]].apply(m,h.slice(1))}))}else d[u[0]].apply(d,u.slice(1))}))};i(o,this),i(n,this),i(r,this)}finally{rw--}}push(e){if(rw>0&&Bt(e)&&Ea(e[0])){var a=tr.prototype[e[0]];As(a)&&a.apply(this,e.slice(1))}else this._execute_array([e])}capture(e,a,o){var n,r,i,c,d;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!$e(e)&&Ea(e)){var u=!this.config.opt_out_useragent_filter&&this._is_bot();if(!u||this.config.__preview_capture_bot_pageviews){var m=o!=null&&o.skip_client_rate_limiting?void 0:this.rateLimiter.clientRateLimitContext();if(m==null||!m.isRateLimited){a!=null&&a.$current_url&&!Ea(a?.$current_url)&&(qe.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),a==null||delete a.$current_url),e!=="$exception"||o!=null&&o.en||qe.warn("Using `posthog.capture('$exception')` is unreliable because it does not attach required metadata. Use `posthog.captureException(error)` instead, which attaches required metadata automatically."),this.sessionPersistence.update_search_keyword(),this.config.save_campaign_params&&this.sessionPersistence.update_campaign_params(),this.config.save_referrer&&this.sessionPersistence.update_referrer_info(),(this.config.save_campaign_params||this.config.save_referrer)&&this.persistence.set_initial_person_info();var h=new Date,f=o?.timestamp||h,b=Ai(),y={uuid:b,event:e,properties:this.calculateEventProperties(e,a||{},f,b)};e===cd&&this.config.__preview_capture_bot_pageviews&&u&&(y.event="$bot_pageview",y.properties.$browser_type="bot"),m&&(y.properties.$lib_rate_limit_remaining_tokens=m.remainingTokens),o?.$set&&(y.$set=o?.$set);var T,x,w,P=this.tn(o?.$set_once,e!==a2,e===YS);if(P&&(y.$set_once=P),o!=null&&o._noTruncate||(r=this.config.properties_string_max_length,i=y,c=L=>Ea(L)?L.slice(0,r):L,d=new Set,y=(function L(q,B){return q!==Object(q)?c?c(q):q:d.has(q)?void 0:(d.add(q),Bt(q)?(z=[],Qg(q,(F=>{z.push(L(F))}))):(z={},fa(q,((F,W)=>{d.has(F)||(z[W]=L(F))}))),z);var z})(i)),y.timestamp=f,$e(o?.timestamp)||(y.properties.$event_time_override_provided=!0,y.properties.$event_time_override_system_time=h),e===wp.DISMISSED||e===wp.SENT){var k=a?.[ew.SURVEY_ID],E=a?.[ew.SURVEY_ITERATION];(L=>{try{var q=(B=>((z,F)=>{var W=""+wx+F.id;return F.current_iteration&&F.current_iteration>0&&(W=""+wx+F.id+"_"+F.current_iteration),W})(0,B))(L);if(localStorage.getItem(q))return;localStorage.setItem(q,"true")}catch(B){aa.error("Failed to persist survey seen state",B)}})({id:k,current_iteration:E}),y.$set=Me({},y.$set,{[(T={id:k,current_iteration:E},x=e===wp.SENT?"responded":"dismissed",w="$survey_"+x+"/"+T.id,T.current_iteration&&T.current_iteration>0&&(w="$survey_"+x+"/"+T.id+"/"+T.current_iteration),w)]:!0})}else e===wp.SHOWN&&(y.$set=Me({},y.$set,{[ew.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(e===Lle.SHOWN){var _=a?.[l2.TOUR_TYPE];_&&(y.$set=Me({},y.$set,{[l2.TOUR_LAST_SEEN_DATE+"/"+_]:new Date().toISOString()}))}var D=Me({},y.properties.$set,y.$set);if(gd(D)||this.setPersonPropertiesForFlags(D),!kt(this.config.before_send)){var R=this.rn(y);if(!R)return;y=R}this.Fi.emit("eventCaptured",y);var O={method:"POST",url:(n=o?._url)!==null&&n!==void 0?n:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:y,compression:"best-available",batchKey:o?._batchKey};return!this.config.request_batching||o&&(o==null||!o._batchKey)||o!=null&&o.send_instantly?this.Vi(O):this.Zi.enqueue(O),y}qe.critical("This capture call is ignored due to client rate limiting.")}}else qe.error("No event name provided to posthog.capture")}else qe.uninitializedWarning("posthog.capture")}_addCaptureHook(e){return this.on("eventCaptured",(a=>e(a.event,a)))}calculateEventProperties(e,a,o,n,r){if(o=o||new Date,!this.persistence||!this.sessionPersistence)return a;var i=r?void 0:this.persistence.remove_event_timer(e),c=Me({},a);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ni()&&(c.$cookieless_mode=!0),e==="$snapshot"){var d=Me({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!Ea(c.distinct_id)&&!sr(c.distinct_id)||wf(c.distinct_id))&&qe.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var u,m=(function(w,P){var k,E,_,D;if(!mn)return{};var R,O,L,q,B,z,F,W,ae=w?[...qd,...P||[]]:[],[H,K]=(function(J){for(var se=0;JO.length>se;se++){var[Q,M]=JO[se],G=Q.exec(J),V=G&&(As(M)?M(G,J):M);if(V)return V}return["",""]})(mn);return Oa(DE({$os:H,$os_version:K,$browser:P3(mn,navigator.vendor),$device:XO(mn),$device_type:(O=mn,L={userAgentDataPlatform:(k=navigator)==null||(k=k.userAgentData)==null?void 0:k.platform,maxTouchPoints:(E=navigator)==null?void 0:E.maxTouchPoints,screenWidth:ge==null||(_=ge.screen)==null?void 0:_.width,screenHeight:ge==null||(D=ge.screen)==null?void 0:D.height,devicePixelRatio:ge?.devicePixelRatio},W=XO(O),W===d3||W===c3||W==="Kobo"||W==="Kindle Fire"||W===x3?jd:W===Wp||W===Ed||W===Kp||W===W0?"Console":W===p3?"Wearable":W?Ln:L?.userAgentDataPlatform==="Android"&&((q=L?.maxTouchPoints)!==null&&q!==void 0?q:0)>0?600>Math.min((B=L?.screenWidth)!==null&&B!==void 0?B:0,(z=L?.screenHeight)!==null&&z!==void 0?z:0)/((F=L?.devicePixelRatio)!==null&&F!==void 0?F:1)?Ln:jd:"Desktop"),$timezone:Y3(),$timezone_offset:Mle()}),{$current_url:Yp(xo?.href,ae,Zp),$host:xo?.host,$pathname:xo?.pathname,$raw_user_agent:mn.length>1e3?mn.substring(0,997)+"...":mn,$browser_version:Hie(mn,navigator.vendor),$browser_language:i2(),$browser_language_prefix:(R=i2(),typeof R=="string"?R.split("-")[0]:void 0),$screen_height:ge?.screen.height,$screen_width:ge?.screen.width,$viewport_height:ge?.innerHeight,$viewport_width:ge?.innerWidth,$lib:Zo.LIB_NAME,$lib_version:Zo.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Date.now()/1e3})})(this.config.mask_personal_data_properties,this.config.custom_personal_data_properties);if(this.sessionManager){var{sessionId:h,windowId:f}=this.sessionManager.checkAndGetSessionAndWindowId(r,o.getTime());c.$session_id=h,c.$window_id=f}this.sessionPropsManager&&Oa(c,this.sessionPropsManager.getSessionProps());try{var b;this.sessionRecording&&Oa(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(b=this.Hi)==null?void 0:b.length}catch(w){c.$sdk_debug_error_capturing_properties=String(w)}if(this.requestRouter.region===Sx&&(c.$lib_custom_api_host=this.config.api_host),u=e!==cd||r?e!==KS||r?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(o):this.pageViewManager.doPageView(o,n),c=Oa(c,u),e===cd&&ze&&(c.title=ze.title),!$e(i)){var y=o.getTime()-i;c.$duration=parseFloat((y/1e3).toFixed(3))}mn&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=Oa({},m,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),Bt(this.config.property_denylist)?fa(this.config.property_denylist,(function(w){delete c[w]})):qe.error(s4+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var T=this.config.sanitize_properties;T&&(qe.error(S2),c=T(c,e));var x=this.nn();return c.$process_person_profile=x,x&&!r&&this.sn("_calculate_event_properties"),c}tn(e,a,o){var n;if(a===void 0&&(a=!0),o===void 0&&(o=!1),!this.persistence||!this.nn()||this.Mi&&!o)return e;var r=this.persistence.get_initial_props(),i=(n=this.sessionPropsManager)==null?void 0:n.getSetOnceProps(),c=Oa({},r,i||{},e||{}),d=this.config.sanitize_properties;return d&&(qe.error(S2),c=d(c,"$set_once")),a&&(this.Mi=!0),gd(c)?void 0:c}register(e,a){var o;(o=this.persistence)==null||o.register(e,a)}register_once(e,a,o){var n;(n=this.persistence)==null||n.register_once(e,a,o)}register_for_session(e){var a;(a=this.sessionPersistence)==null||a.register(e)}unregister(e){var a;(a=this.persistence)==null||a.unregister(e)}unregister_for_session(e){var a;(a=this.sessionPersistence)==null||a.unregister(e)}an(e,a){this.register({[e]:a})}getFeatureFlag(e,a){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlag(e,a)}getFeatureFlagPayload(e){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlagPayload(e)}getFeatureFlagResult(e,a){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlagResult(e,a)}isFeatureEnabled(e,a){var o;return(o=this.featureFlags)==null?void 0:o.isFeatureEnabled(e,a)}reloadFeatureFlags(){var e;(e=this.featureFlags)==null||e.reloadFeatureFlags()}updateFlags(e,a,o){var n;(n=this.featureFlags)==null||n.updateFlags(e,a,o)}updateEarlyAccessFeatureEnrollment(e,a,o){var n;(n=this.featureFlags)==null||n.updateEarlyAccessFeatureEnrollment(e,a,o)}getEarlyAccessFeatures(e,a,o){var n;return a===void 0&&(a=!1),(n=this.featureFlags)==null?void 0:n.getEarlyAccessFeatures(e,a,o)}on(e,a){return this.Fi.on(e,a)}onFeatureFlags(e){return this.featureFlags?this.featureFlags.onFeatureFlags(e):(e([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(e){return this.surveys?this.surveys.onSurveysLoaded(e):(e([],{isLoaded:!1,error:np}),()=>{})}onSessionId(e){var a,o;return(a=(o=this.sessionManager)==null?void 0:o.onSessionId(e))!==null&&a!==void 0?a:()=>{}}getSurveys(e,a){a===void 0&&(a=!1),this.surveys?this.surveys.getSurveys(e,a):e([],{isLoaded:!1,error:np})}getActiveMatchingSurveys(e,a){a===void 0&&(a=!1),this.surveys?this.surveys.getActiveMatchingSurveys(e,a):e([],{isLoaded:!1,error:np})}renderSurvey(e,a){var o;(o=this.surveys)==null||o.renderSurvey(e,a)}displaySurvey(e,a){var o;a===void 0&&(a=Xle),(o=this.surveys)==null||o.displaySurvey(e,a)}cancelPendingSurvey(e){var a;(a=this.surveys)==null||a.cancelPendingSurvey(e)}canRenderSurvey(e){var a,o;return(a=(o=this.surveys)==null?void 0:o.canRenderSurvey(e))!==null&&a!==void 0?a:{visible:!1,disabledReason:np}}canRenderSurveyAsync(e,a){var o,n;return a===void 0&&(a=!1),(o=(n=this.surveys)==null?void 0:n.canRenderSurveyAsync(e,a))!==null&&o!==void 0?o:Promise.resolve({visible:!1,disabledReason:np})}ln(e){return!e||wf(e)?(qe.critical("Unique user id has not been set in posthog.identify"),!1):e===Zg?(qe.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(e.toLowerCase())&&!["undefined","null"].includes(e.toLowerCase())||(qe.critical('The string "'+e+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(e,a,o){if(!this.__loaded||!this.persistence)return qe.uninitializedWarning("posthog.identify");if(sr(e)&&(e=e.toString(),qe.warn("The first argument to posthog.identify was a number, but it should be a string. It has been converted to a string.")),this.ln(e)&&this.sn("posthog.identify")){var n=this.get_distinct_id();this.register({$user_id:e}),this.get_property(ub)||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),e!==n&&e!==this.get_property(bp)&&(this.unregister(bp),this.register({distinct_id:e}));var r,i=(this.persistence.get_property(vr)||Zc)===Zc;e!==n&&i?(this.persistence.set_property(vr,Qc),this.setPersonPropertiesForFlags({$set:a||{},$set_once:o||{}},!1),this.capture(YS,{distinct_id:e,$anon_distinct_id:n},{$set:a||{},$set_once:o||{}}),this.Di=v2(e,a,o),(r=this.featureFlags)==null||r.setAnonymousDistinctId(n)):(a||o)&&this.setPersonProperties(a,o),e!==n&&(this.reloadFeatureFlags(),this.unregister(Cp))}}setPersonProperties(e,a){if((e||a)&&this.sn("posthog.setPersonProperties")){var o=v2(this.get_distinct_id(),e,a);this.Di!==o?(this.setPersonPropertiesForFlags({$set:e||{},$set_once:a||{}},!0),this.capture("$set",{$set:e||{},$set_once:a||{}}),this.Di=o):qe.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(e,a,o){if(e&&a){var n=this.getGroups(),r=n[e]!==a;if(r&&this.resetGroupPropertiesForFlags(e),this.register({$groups:Me({},n,{[e]:a})}),r||o){var i={$group_type:e,$group_key:a};o&&(i.$group_set=o),this.capture(a2,i)}o&&this.setGroupPropertiesForFlags({[e]:o}),r&&!o&&this.reloadFeatureFlags()}else qe.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(e,a){var o;a===void 0&&(a=!0),(o=this.featureFlags)==null||o.setPersonPropertiesForFlags(e,a)}resetPersonPropertiesForFlags(){var e;(e=this.featureFlags)==null||e.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(e,a){var o;a===void 0&&(a=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((o=this.featureFlags)==null||o.setGroupPropertiesForFlags(e,a))}resetGroupPropertiesForFlags(e){var a;(a=this.featureFlags)==null||a.resetGroupPropertiesForFlags(e)}reset(e){var a,o,n,r,i,c,d,u;if(qe.info("reset"),!this.__loaded)return qe.uninitializedWarning("posthog.reset");var m=this.get_property(ub);if(this.consent.reset(),(a=this.persistence)==null||a.clear(),(o=this.sessionPersistence)==null||o.clear(),(n=this.surveys)==null||n.reset(),(r=this.Ki)==null||r.stop(),(i=this.featureFlags)==null||i.reset(),(c=this.conversations)==null||c.reset(),(d=this.persistence)==null||d.set_property(vr,Zc),(u=this.sessionManager)==null||u.resetSessionId(),this.Di=null,this.config.cookieless_mode===Rs)this.register_once({distinct_id:Zg,$device_id:null},"");else{var h=this.config.get_device_id(Ai());this.register_once({distinct_id:h,$device_id:e?h:m},"")}this.register({$last_posthog_reset:new Date().toISOString()},1),delete this.config.identity_distinct_id,delete this.config.identity_hash,this.reloadFeatureFlags()}setIdentity(e,a){var o;this.config.identity_distinct_id=e,this.config.identity_hash=a,this.alias(e),(o=this.conversations)==null||o.un()}clearIdentity(){var e;delete this.config.identity_distinct_id,delete this.config.identity_hash,(e=this.conversations)==null||e.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var e,a;return(e=(a=this.sessionManager)==null?void 0:a.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&e!==void 0?e:""}get_session_replay_url(e){if(!this.sessionManager)return"";var{sessionId:a,sessionStartTimestamp:o}=this.sessionManager.checkAndGetSessionAndWindowId(!0),n=this.requestRouter.endpointFor("ui","/project/"+this.config.token+"/replay/"+a);if(e!=null&&e.withTimestamp&&o){var r,i=(r=e.timestampLookBack)!==null&&r!==void 0?r:10;if(!o)return n;n+="?t="+Math.max(Math.floor((new Date().getTime()-o)/1e3)-i,0)}return n}alias(e,a){return e===this.get_property(R3)?(qe.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?($e(a)&&(a=this.get_distinct_id()),e!==a?(this.an(bp,e),this.capture("$create_alias",{alias:e,distinct_id:a})):(qe.warn("alias matches current distinct_id - skipping api call."),this.identify(e),-1)):void 0}set_config(e){var a=Me({},this.config);if(La(e)){var o,n,r,i,c,d,u,m,h,f;Oa(this.config,x2(e));var b=this.qi();(o=this.persistence)==null||o.update_config(this.config,a,b),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new JS(Me({},this.config,{persistence:"sessionStorage"}),b);var y=this.Bi(this.config.debug);Kr(y)&&(this.config.debug=y),Kr(this.config.debug)&&(this.config.debug?(Zo.DEBUG=!0,Pa.R()&&Pa.M("ph_debug",!0),qe.info("set_config",{config:e,oldConfig:a,newConfig:Me({},this.config)})):(Zo.DEBUG=!1,Pa.R()&&Pa.F("ph_debug"))),(n=this.exceptionObserver)==null||n.onConfigChange(),(r=this.exceptions)==null||r.onConfigChange(),(i=this.sessionRecording)==null||i.startIfEnabledOrStop(),(c=this.autocapture)==null||c.startIfEnabled(),(d=this.heatmaps)==null||d.startIfEnabled(),(u=this.exceptionObserver)==null||u.startIfEnabledOrStop(),(m=this.deadClicksAutocapture)==null||m.startIfEnabledOrStop(),(h=this.surveys)==null||h.loadIfEnabled(),this.cn(),(f=this.externalIntegrations)==null||f.startIfEnabledOrStop()}}_overrideSDKInfo(e,a){Zo.LIB_NAME=e,Zo.LIB_VERSION=a}startSessionRecording(e){var a,o,n,r,i,c=e===!0,d={sampling:c||!(e==null||!e.sampling),linked_flag:c||!(e==null||!e.linked_flag),url_trigger:c||!(e==null||!e.url_trigger),event_trigger:c||!(e==null||!e.event_trigger)};Object.values(d).some(Boolean)&&((a=this.sessionManager)==null||a.checkAndGetSessionAndWindowId(),d.sampling&&((o=this.sessionRecording)==null||o.overrideSampling()),d.linked_flag&&((n=this.sessionRecording)==null||n.overrideLinkedFlag()),d.url_trigger&&((r=this.sessionRecording)==null||r.overrideTrigger("url")),d.event_trigger&&((i=this.sessionRecording)==null||i.overrideTrigger("event"))),this.set_config({disable_session_recording:!1})}stopSessionRecording(){this.set_config({disable_session_recording:!0})}sessionRecordingStarted(){var e;return!((e=this.sessionRecording)==null||!e.started)}captureException(e,a){if(this.exceptions){var o=new Error("PostHog syntheticException"),n=this.exceptions.buildProperties(e,{handled:!0,syntheticException:o});return this.exceptions.sendExceptionEvent(Me({},n,a))}}addExceptionStep(e,a){var o;(o=this.exceptions)==null||o.addExceptionStep(e,a)}captureLog(e){var a;(a=this.logs)==null||a.captureLog(e)}get logger(){var e,a;return(e=(a=this.logs)==null?void 0:a.logger)!==null&&e!==void 0?e:tr.dn}startExceptionAutocapture(e){this.set_config({capture_exceptions:e==null||e})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(e){var a,o;return(a=(o=this.toolbar)==null?void 0:o.loadToolbar(e))!==null&&a!==void 0&&a}get_property(e){var a;return(a=this.persistence)==null?void 0:a.props[e]}getSessionProperty(e){var a;return(a=this.sessionPersistence)==null?void 0:a.props[e]}toString(){var e,a=(e=this.config.name)!==null&&e!==void 0?e:dd;return a!==dd&&(a=dd+"."+a),a}_isIdentified(){var e,a;return((e=this.persistence)==null?void 0:e.get_property(vr))===Qc||((a=this.sessionPersistence)==null?void 0:a.get_property(vr))===Qc}nn(){var e,a;return!(this.config.person_profiles==="never"||this.config.person_profiles===gx&&!this._isIdentified()&&gd(this.getGroups())&&((e=this.persistence)==null||(e=e.props)==null||!e[bp])&&((a=this.persistence)==null||(a=a.props)==null||!a[gb]))}Qi(){return this.config.capture_pageleave===!0||this.config.capture_pageleave==="if_capture_pageview"&&(this.config.capture_pageview===!0||this.config.capture_pageview==="history_change")}createPersonProfile(){this.nn()||this.sn("posthog.createPersonProfile")&&this.setPersonProperties({},{})}setInternalOrTestUser(){this.sn("posthog.setInternalOrTestUser")&&this.setPersonProperties({$internal_or_test_user:!0})}sn(e){return this.config.person_profiles==="never"?(qe.error(e+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(gb,!0),!0)}qi(){if(this.config.cookieless_mode==="always")return!0;var e=this.consent.isOptedOut();return this.config.disable_persistence||e&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==Al)}cn(){var e,a,o,n,r=this.qi();return((e=this.persistence)==null?void 0:e._r)!==r&&((o=this.persistence)==null||o.set_disabled(r)),((a=this.sessionPersistence)==null?void 0:a._r)!==r&&((n=this.sessionPersistence)==null||n.set_disabled(r)),r}opt_in_capturing(e){var a;if(this.config.cookieless_mode!==Rs){if(this.Ni()){var o,n,r,i,c;this.reset(!0),(o=this.sessionManager)==null||o.destroy(),(n=this.pageViewManager)==null||n.destroy(),this.sessionManager=new b2(this),this.pageViewManager=new s2(this),this.persistence&&(this.sessionPropsManager=new f2(this,this.sessionManager,this.persistence));var d,u=(r=(i=this.config.__extensionClasses)==null?void 0:i.sessionRecording)!==null&&r!==void 0?r:(c=tr.__defaultExtensionClasses)==null?void 0:c.sessionRecording;u&&(this.sessionRecording=this.Ei(this.sessionRecording,new u(this)),this.Wi&&((d=this.sessionRecording)==null||d.onRemoteConfig==null||d.onRemoteConfig(this.Wi)))}var m,h;this.consent.optInOut(!0),this.cn(),this.Xi(),(a=this.sessionRecording)==null||a.startIfEnabledOrStop(),this.config.cookieless_mode==Al&&((m=this.surveys)==null||m.loadIfEnabled()),($e(e?.captureEventName)||e!=null&&e.captureEventName)&&this.capture((h=e?.captureEventName)!==null&&h!==void 0?h:"$opt_in",e?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else qe.warn(T2)}opt_out_capturing(){var e,a,o;this.config.cookieless_mode!==Rs?(this.config.cookieless_mode===Al&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===Al&&(this.register({distinct_id:Zg,$device_id:null}),(e=this.sessionManager)==null||e.destroy(),(a=this.pageViewManager)==null||a.destroy(),this.sessionManager=void 0,this.sessionPropsManager=void 0,(o=this.sessionRecording)==null||o.stopRecording(),this.sessionRecording=void 0,this.Ji())):qe.warn(T2)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var e=this.consent.consent;return e===1?"granted":e===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===Rs||(this.config.cookieless_mode===Al?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return Mn?o4(Mn,this.config.custom_blocked_useragents):void 0}Ji(){ze&&(ze.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(cd,{title:ze.title},{send_instantly:!0}),this.Pi&&(ze.removeEventListener(fb,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),Za(ze,fb,this.Pi)))}debug(e){e===!1?(ge?.console.log("You've disabled debug mode."),this.set_config({debug:!1})):(ge?.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),this.set_config({debug:!0}))}Fr(){var e,a,o,n,r,i,c=this.ji||{};return"advanced_disable_flags"in c?!!c.advanced_disable_flags:this.config.advanced_disable_flags!==!1?!!this.config.advanced_disable_flags:this.config.advanced_disable_decide===!0?(qe.warn("Config field 'advanced_disable_decide' is deprecated. Please use 'advanced_disable_flags' instead. The old field will be removed in a future major version."),!0):(o="advanced_disable_decide",n=qe,r=(a="advanced_disable_flags")in(e=c)&&!kt(e[a]),i=o in e&&!kt(e[o]),r?e[a]:!!i&&(n&&n.warn("Config field '"+o+"' is deprecated. Please use '"+a+"' instead. The old field will be removed in a future major version."),e[o]))}rn(e){if(kt(this.config.before_send))return e;var a=Bt(this.config.before_send)?this.config.before_send:[this.config.before_send],o=e;for(var n of a){if(o=n(o),kt(o)){var r="Event '"+e.event+"' was rejected in beforeSend function";return Nie(e.event)?qe.warn(r+". This can cause unexpected behavior."):qe.info(r),null}o.properties&&!gd(o.properties)||qe.warn("Event '"+e.event+"' has no properties after beforeSend function, this is likely an error.")}return o}getPageViewId(){var e;return(e=this.pageViewManager.dr)==null?void 0:e.pageViewId}captureTraceFeedback(e,a){this.capture("$ai_feedback",{$ai_trace_id:String(e),$ai_feedback_text:a})}captureTraceMetric(e,a,o){this.capture("$ai_metric",{$ai_trace_id:String(e),$ai_metric_name:a,$ai_metric_value:String(o)})}Bi(e){var a=Kr(e)&&!e,o=Pa.R()&&Pa.O("ph_debug")==="true";return!a&&(!!o||e)}}function P2(t){return t instanceof Element&&(t.id===I3||!(t.closest==null||!t.closest(".toolbar-global-fade-container")))}function bv(t){return!!t&&t.nodeType===1}function Fi(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function l4(t){return!!t&&t.nodeType===3}function c4(t){return!!t&&t.nodeType===11}function IE(t){return t?hv(t).split(/\s+/):[]}function E2(t){var e=ge?.location.href;return!!(e&&t&&t.some((a=>e.match(a))))}function Eb(t){var e="";switch(typeof t.className){case"string":e=t.className;break;case"object":e=(t.className&&"baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";break;default:e=""}return IE(e)}function d4(t){return kt(t)?null:hv(t).split(/(\s+)/).filter((e=>Ap(e))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Qp(t){var e="";return Ex(t)&&!p4(t)&&t.childNodes&&t.childNodes.length&&fa(t.childNodes,(function(a){var o;l4(a)&&a.textContent&&(e+=(o=d4(a.textContent))!==null&&o!==void 0?o:"")})),hv(e)}function C2(t){return $e(t.target)?t.srcElement||null:(e=t.target)!=null&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e}tr.__defaultExtensionClasses={},tr.dn={trace:Xc=()=>{},debug:Xc,info:Xc,warn:Xc,error:Xc,fatal:Xc},(function(t,e){for(var a=0;e.length>a;a++)t.prototype[e[a]]=ble(t.prototype[e[a]])})(tr,["identify"]);var LE=["a","button","form","input","select","textarea","label"];function k2(t,e){if($e(e))return!0;var a,o=function(r){if(e.some((i=>r.matches(i))))return{v:!0}};for(var n of t)if(a=o(n))return a.v;return!1}function u4(t){var e=t.parentNode;return!(!e||!bv(e))&&e}var rce=["next","previous","prev",">","<"],_2=[".ph-no-rageclick",".ph-no-capture"],Px=t=>!t||Fi(t,"html")||!bv(t),A2=(t,e)=>{if(!ge||Px(t))return{parentIsUsefulElement:!1,targetElementList:[]};for(var a=!1,o=[t],n=t;n.parentNode&&!Fi(n,"body");)if(c4(n.parentNode))o.push(n.parentNode.host),n=n.parentNode.host;else{var r=u4(n);if(!r)break;if(e||LE.indexOf(r.tagName.toLowerCase())>-1)a=!0;else{var i=ge.getComputedStyle(r);i&&i.getPropertyValue("cursor")==="pointer"&&(a=!0)}o.push(r),n=r}return{parentIsUsefulElement:a,targetElementList:o}};function Ex(t){for(var e=t;e.parentNode&&!Fi(e,"body");e=e.parentNode){var a=Eb(e);if(Ct(a,"ph-sensitive")||Ct(a,"ph-no-capture"))return!1}if(Ct(Eb(t),"ph-include"))return!0;var o=t.type||"";if(Ea(o))switch(o.toLowerCase()){case"hidden":case"password":return!1}var n=t.name||t.id||"";return!Ea(n)||!/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g,""))}function p4(t){return!!(Fi(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||Fi(t,"select")||Fi(t,"textarea")||t.getAttribute("contenteditable")==="true")}var m4="(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11})",sce=new RegExp("^(?:"+m4+")$"),ice=new RegExp(m4),h4="\\d{3}-?\\d{2}-?\\d{4}",lce=new RegExp("^("+h4+")$"),cce=new RegExp("("+h4+")");function Ap(t,e){return e===void 0&&(e=!0),!(kt(t)||Ea(t)&&(t=hv(t),(e?sce:ice).test((t||"").replace(/[- ]/g,""))||(e?lce:cce).test(t)))}function R2(t){var e=Qp(t);return Ap(e=(e+" "+g4(t)).trim())?e:""}function g4(t){var e="";return t&&t.childNodes&&t.childNodes.length&&fa(t.childNodes,(function(a){var o;if(a&&((o=a.tagName)==null?void 0:o.toLowerCase())==="span")try{var n=Qp(a);e=(e+" "+n).trim(),a.childNodes&&a.childNodes.length&&(e=(e+" "+g4(a)).trim())}catch(r){qe.error("[AutoCapture]",r)}})),e}function D2(t){return t.replace(/"|\\"/g,'\\"')}function dce(t){var e=t.attr__class;return e?Bt(e)?e:IE(e):void 0}class O2{constructor(e){this.disabled=e===!1;var a=La(e)?e:{};this.thresholdPx=a.threshold_px||30,this.timeoutMs=a.timeout_ms||1e3,this.clickCount=a.click_count||3,this.clicks=[]}isRageClick(e,a,o){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(a-n.y)<this.thresholdPx&&this.timeoutMs>o-n.timestamp){if(this.clicks.push({x:e,y:a,timestamp:o}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:e,y:a,timestamp:o}];return!1}}var sw="$copy_autocapture",N2=Sa("[AutoCapture]");function iw(t,e){return e.length>t?e.slice(0,t)+"...":e}function uce(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!bv(e));return e}function pce(t,e){for(var a,o,{e:n,maskAllElementAttributes:r,maskAllText:i,elementAttributeIgnoreList:c,elementsChainAsString:d}=e,u=[t],m=t;m.parentNode&&!Fi(m,"body");)c4(m.parentNode)?(u.push(m.parentNode.host),m=m.parentNode.host):(u.push(m.parentNode),m=m.parentNode);var h,f,b=[],y={},T=!1,x=!1;if(fa(u,(_=>{var D=Ex(_);_.tagName.toLowerCase()==="a"&&(T=_.getAttribute("href"),T=D&&T&&Ap(T)&&T),Ct(Eb(_),"ph-no-capture")&&(x=!0),b.push((function(O,L,q,B){var z=O.tagName.toLowerCase(),F={tag_name:z};LE.indexOf(z)>-1&&!q&&(F.$el_text=z.toLowerCase()==="a"||z.toLowerCase()==="button"?iw(1024,R2(O)):iw(1024,Qp(O)));var W=Eb(O);W.length>0&&(F.classes=W.filter((function(J){return J!==""}))),fa(O.attributes,(function(J){var se;if((!p4(O)||["name","id","class","aria-label"].indexOf(J.name)!==-1)&&(B==null||!B.includes(J.name))&&!L&&Ap(J.value)&&(!Ea(se=J.name)||se.substring(0,10)!=="_ngcontent"&&se.substring(0,7)!=="_nghost")){var Q=J.value;J.name==="class"&&(Q=IE(Q).join(" ")),F["attr__"+J.name]=iw(1024,Q)}}));for(var ae=1,H=1,K=O;K=uce(K);)ae++,K.tagName===O.tagName&&H++;return F.nth_child=ae,F.nth_of_type=H,F})(_,r,i,c));var R=(function(O){if(!Ex(O))return{};var L={};return fa(O.attributes,(function(q){if(q.name&&q.name.indexOf("data-ph-capture-attribute")===0){var B=q.name.replace("data-ph-capture-attribute-",""),z=q.value;B&&z&&Ap(z)&&(L[B]=z)}})),L})(_);Oa(y,R)})),x)return{props:{},explicitNoCapture:x};if(i||(b[0].$el_text=t.tagName.toLowerCase()==="a"||t.tagName.toLowerCase()==="button"?R2(t):Qp(t)),T){var w,P;b[0].attr__href=T;var k=(w=yb(T))==null?void 0:w.host,E=ge==null||(P=ge.location)==null?void 0:P.host;k&&E&&k!==E&&(h=T)}return{props:Oa({$event_type:n.type,$ce_version:1},d?{}:{$elements:b},{$elements_chain:(f=b,(function(_){return _.map((D=>{var R,O,L="";if(D.tag_name&&(L+=D.tag_name),D.attr_class)for(var q of(D.attr_class.sort(),D.attr_class))L+="."+q.replace(/"/g,"");var B=Me({},D.text?{text:D.text}:{},{"nth-child":(R=D.nth_child)!==null&&R!==void 0?R:0,"nth-of-type":(O=D.nth_of_type)!==null&&O!==void 0?O:0},D.href?{href:D.href}:{},D.attr_id?{attr_id:D.attr_id}:{},D.attributes),z={};return Ef(B).sort(((F,W)=>{var[ae]=F,[H]=W;return ae.localeCompare(H)})).forEach((F=>{var[W,ae]=F;return z[D2(W.toString())]=D2(ae.toString())})),(L+=":")+Ef(z).map((F=>{var[W,ae]=F;return W+'="'+ae+'"'})).join("")})).join(";")})((function(_){return _.map((D=>{var R,O,L={text:(R=D.$el_text)==null?void 0:R.slice(0,400),tag_name:D.tag_name,href:(O=D.attr__href)==null?void 0:O.slice(0,2048),attr_class:dce(D),attr_id:D.attr__id,nth_child:D.nth_child,nth_of_type:D.nth_of_type,attributes:{}};return Ef(D).filter((q=>{var[B]=q;return B.indexOf("attr__")===0})).forEach((q=>{var[B,z]=q;return L.attributes[B]=z})),L}))})(f)))},(a=b[0])!=null&&a.$el_text?{$el_text:(o=b[0])==null?void 0:o.$el_text}:{},h&&n.type==="click"?{$external_click_url:h}:{},y)}}var rp=Sa("[ExceptionAutocapture]");function M2(t,e,a){try{if(!(e in t))return()=>{};var o=t[e],n=a(o);return As(n)&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__posthog_wrapped__:{enumerable:!1,value:!0}})),t[e]=n,()=>{t[e]=o}}catch{return()=>{}}}var mce=Sa("[TracingHeaders]"),bi=Sa("[Web Vitals]"),I2=9e5,L2="disabled",B2="lazy_loading",sp="awaiting_config",af="missing_config";Sa("[SessionRecording]"),Sa("[SessionRecording]");var Cx="[SessionRecording]",vi=Sa(Cx),hce=Sa("[Heatmaps]");function F2(t){return La(t)&&"clientX"in t&&"clientY"in t&&sr(t.clientX)&&sr(t.clientY)}var j2=Sa("[Product Tours]"),gce=["$set_once","$set"],yi=Sa("[SiteApps]"),z2="Error while initializing PostHog app with config id ";function ed(t,e,a){if(kt(t))return!1;switch(a){case"exact":return t===e;case"contains":var o=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(o,"i").test(t);case"regex":try{return new RegExp(e).test(t)}catch{return!1}default:return!1}}class fce{constructor(e){this.vn=new ME,this.fn=(a,o)=>this.pn(a,o)&&this.gn(a,o)&&this.mn(a,o)&&this.yn(a,o),this.pn=(a,o)=>o==null||!o.event||a?.event===o?.event,this._instance=e,this.bn=new Set,this._n=new Set}init(){var e,a;$e((e=this._instance)==null?void 0:e._addCaptureHook)||(a=this._instance)==null||a._addCaptureHook(((o,n)=>{this.on(o,n)}))}register(e){var a,o;if(!$e((a=this._instance)==null?void 0:a._addCaptureHook)&&(e.forEach((i=>{var c,d;(c=this._n)==null||c.add(i),(d=i.steps)==null||d.forEach((u=>{var m;(m=this.bn)==null||m.add(u?.event||"")}))})),(o=this._instance)!=null&&o.autocapture)){var n,r=new Set;e.forEach((i=>{var c;(c=i.steps)==null||c.forEach((d=>{d!=null&&d.selector&&r.add(d?.selector)}))})),(n=this._instance)==null||n.autocapture.setElementSelectors(r)}}on(e,a){var o;a!=null&&e.length!=0&&(this.bn.has(e)||this.bn.has(a?.event))&&this._n&&((o=this._n)==null?void 0:o.size)>0&&this._n.forEach((n=>{this.wn(a,n)&&this.vn.emit("actionCaptured",n.name)}))}In(e){this.onAction("actionCaptured",(a=>e(a)))}wn(e,a){if(a?.steps==null)return!1;for(var o of a.steps)if(this.fn(e,o))return!0;return!1}onAction(e,a){return this.vn.on(e,a)}gn(e,a){if(a!=null&&a.url){var o,n=e==null||(o=e.properties)==null?void 0:o.$current_url;if(!n||typeof n!="string"||!ed(n,a.url,a.url_matching||"contains"))return!1}return!0}mn(e,a){return!!this.Cn(e,a)&&!!this.Sn(e,a)&&!!this.xn(e,a)}Cn(e,a){var o;if(a==null||!a.href)return!0;var n=this.kn(e);if(n.length>0)return n.some((c=>ed(c.href,a.href,a.href_matching||"exact")));var r,i=(e==null||(o=e.properties)==null?void 0:o.$elements_chain)||"";return!!i&&ed((r=i.match(/(?::|")href="(.*?)"/))?r[1]:"",a.href,a.href_matching||"exact")}Sn(e,a){var o;if(a==null||!a.text)return!0;var n=this.kn(e);if(n.length>0)return n.some((u=>ed(u.text,a.text,a.text_matching||"exact")||ed(u.$el_text,a.text,a.text_matching||"exact")));var r,i,c,d=(e==null||(o=e.properties)==null?void 0:o.$elements_chain)||"";return!!d&&(r=(function(u){for(var m,h=[],f=/(?::|")text="(.*?)"/g;!kt(m=f.exec(u));)h.includes(m[1])||h.push(m[1]);return h})(d),i=a.text,c=a.text_matching||"exact",r.some((u=>ed(u,i,c))))}xn(e,a){var o,n;if(a==null||!a.selector)return!0;var r=e==null||(o=e.properties)==null?void 0:o.$element_selectors;if(r!=null&&r.includes(a.selector))return!0;var i=(e==null||(n=e.properties)==null?void 0:n.$elements_chain)||"";if(a.selector_regex&&i)try{return new RegExp(a.selector_regex).test(i)}catch{return!1}return!1}kn(e){var a;return(e==null||(a=e.properties)==null?void 0:a.$elements)==null?[]:e?.properties.$elements}yn(e,a){return a==null||!a.properties||a.properties.length===0||r4(a.properties.reduce(((o,n)=>{var r=Bt(n.value)?n.value.map(String):n.value!=null?[String(n.value)]:[];return o[n.key]={values:r,operator:n.operator||"exact"},o}),{}),e?.properties)}}class bce{constructor(e){this._instance=e,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(e,a){return!!e&&r4(e.propertyFilters,a?.properties)}Nn(e,a){var o=new Map;return e.forEach((n=>{var r;(r=n.conditions)==null||(r=r[a])==null||(r=r.values)==null||r.forEach((i=>{if(i!=null&&i.name){var c=o.get(i.name)||[];c.push(n.id),o.set(i.name,c)}}))})),o}Mn(e,a,o){var n=(o===ep.Activation?this.Tn:this.An).get(e),r=[];return this.Fn((i=>{r=i.filter((c=>n?.includes(c.id)))})),r.filter((i=>{var c,d=(c=i.conditions)==null||(c=c[o])==null||(c=c.values)==null?void 0:c.find((u=>u.name===e));return this.Rn(d,a)}))}register(e){var a;$e((a=this._instance)==null?void 0:a._addCaptureHook)||(this.On(e),this.Pn(e))}Pn(e){var a=e.filter((o=>{var n,r;return((n=o.conditions)==null?void 0:n.actions)&&((r=o.conditions)==null||(r=r.actions)==null||(r=r.values)==null?void 0:r.length)>0}));a.length!==0&&(this.Ln==null&&(this.Ln=new fce(this._instance),this.Ln.init(),this.Ln.In((o=>{this.onAction(o)}))),a.forEach((o=>{var n,r,i,c,d;o.conditions&&(n=o.conditions)!=null&&n.actions&&(r=o.conditions)!=null&&(r=r.actions)!=null&&r.values&&((i=o.conditions)==null||(i=i.actions)==null||(i=i.values)==null?void 0:i.length)>0&&((c=this.Ln)==null||c.register(o.conditions.actions.values),(d=o.conditions)==null||(d=d.actions)==null||(d=d.values)==null||d.forEach((u=>{if(u&&u.name){var m=this.En.get(u.name);m&&m.push(o.id),this.En.set(u.name,m||[o.id])}})))})))}On(e){var a,o=e.filter((r=>{var i,c;return((i=r.conditions)==null?void 0:i.events)&&((c=r.conditions)==null||(c=c.events)==null||(c=c.values)==null?void 0:c.length)>0})),n=e.filter((r=>{var i,c;return((i=r.conditions)==null?void 0:i.cancelEvents)&&((c=r.conditions)==null||(c=c.cancelEvents)==null||(c=c.values)==null?void 0:c.length)>0}));o.length===0&&n.length===0||((a=this._instance)==null||a._addCaptureHook(((r,i)=>{this.onEvent(r,i)})),this.Tn=this.Nn(e,ep.Activation),this.An=this.Nn(e,ep.Cancellation))}onEvent(e,a){var o,n=this.le(),r=this.Dn(),i=this.Bn(),c=((o=this._instance)==null||(o=o.persistence)==null?void 0:o.props[r])||[];if(i===e&&a&&c.length>0){var d,u;n.info("event matched, removing item from activated items",{event:e,eventPayload:a,existingActivatedItems:c});var m=(a==null||(d=a.properties)==null?void 0:d.$survey_id)||(a==null||(u=a.properties)==null?void 0:u.$product_tour_id);if(m){var h=c.indexOf(m);0>h||(c.splice(h,1),this.jn(c))}}else{if(this.An.has(e)){var f=this.Mn(e,a,ep.Cancellation);f.length>0&&(n.info("cancel event matched, cancelling items",{event:e,itemsToCancel:f.map((y=>y.id))}),f.forEach((y=>{var T=c.indexOf(y.id);0>T||c.splice(T,1),this.$n(y.id)})),this.jn(c))}if(this.Tn.has(e)){n.info("event name matched",{event:e,eventPayload:a,items:this.Tn.get(e)});var b=this.Mn(e,a,ep.Activation);this.jn(c.concat(b.map((y=>y.id))||[]))}}}onAction(e){var a,o=this.Dn(),n=((a=this._instance)==null||(a=a.persistence)==null?void 0:a.props[o])||[];this.En.has(e)&&this.jn(n.concat(this.En.get(e)||[]))}jn(e){var a=this.le(),o=[...new Set(e)].filter((n=>!this.qn(n)));a.info("updating activated items",{activatedItems:o}),this.Zn(o)}getActivatedIds(){var e,a=this.Dn();return((e=this._instance)==null||(e=e.persistence)==null?void 0:e.props[a])||[]}getEventToItemsMap(){return this.Tn}Vn(){return this.Ln}}class vce extends bce{constructor(e){super(e)}Dn(){return lx}Bn(){return wp.SHOWN}Fn(e){var a;(a=this._instance)==null||a.getSurveys(e)}$n(e){var a;(a=this._instance)==null||a.cancelPendingSurvey(e)}le(){return aa}Zn(e){var a;(a=this._instance)==null||(a=a.persistence)==null||a.register({[lx]:e})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var lw="SDK is not enabled or survey functionality is not yet loaded",U2="Disabled. Not loading surveys.",yce=ge!=null&&ge.location?Sb(ge.location.hash,"__posthog")||Sb(location.hash,"state"):null,q2="_postHogToolbarParams",$2=Sa("[Toolbar]"),Wo=Sa("[FeatureFlags]"),Pl=Sa("[FeatureFlags]",{debugEnabled:!0}),cw=`" failed. Feature flags didn't load in time.`,V2=t=>{for(var e={},a=0;t.length>a;a++)e[t[a]]=!0;return e},H2=t=>{var e={};for(var[a,o]of Ef(t||{}))o&&(e[a]=o);return e},ks=Sa("[Error tracking]"),G2="Refusing to render web experiment since the viewer is a likely bot",Tce={icontains:(t,e)=>!!ge&&e.href.toLowerCase().indexOf(t.toLowerCase())>-1,not_icontains:(t,e)=>!!ge&&e.href.toLowerCase().indexOf(t.toLowerCase())===-1,regex:(t,e)=>!!ge&&Pb(e.href,t),not_regex:(t,e)=>!!ge&&!Pb(e.href,t),exact:(t,e)=>e.href===t,is_not:(t,e)=>e.href!==t};class Lo{get Bt(){return this._instance.config}constructor(e){var a=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(o){o===void 0&&(o=!1),a.getWebExperiments((n=>{Lo.Hn("retrieved web experiments from the server"),a.zn=new Map,n.forEach((r=>{if(r.feature_flag_key){var i;a.zn&&(Lo.Hn("setting flag key ",r.feature_flag_key," to web experiment ",r),(i=a.zn)==null||i.set(r.feature_flag_key,r));var c=a._instance.getFeatureFlag(r.feature_flag_key);Ea(c)&&r.variants[c]&&a.Un(r.name,c,r.variants[c].transforms)}else if(r.variants)for(var d in r.variants){var u=r.variants[d];Lo.Yn(u)&&a.Un(r.name,d,u.transforms)}}))}),o)},this._instance=e,this._instance.onFeatureFlags((o=>{this.onFeatureFlags(o)}))}initialize(){}onFeatureFlags(e){if(this._is_bot())Lo.Hn(G2);else if(!this.Bt.disable_web_experiments){if(kt(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Lo.Hn("applying feature flags",e),e.forEach((a=>{var o;if(this.zn&&(o=this.zn)!=null&&o.has(a)){var n,r=this._instance.getFeatureFlag(a),i=(n=this.zn)==null?void 0:n.get(a);r&&i!=null&&i.variants[r]&&this.Un(i.name,r,i.variants[r].transforms)}}))}}previewWebExperiment(){var e=Lo.getWindowLocation();if(e!=null&&e.search){var a=Tb(e?.search,"__experiment_id"),o=Tb(e?.search,"__experiment_variant");a&&o&&(Lo.Hn("previewing web experiments "+a+" && "+o),this.getWebExperiments((n=>{this.Gn(parseInt(a),o,n)}),!1,!0))}}loadIfEnabled(){this.Bt.disable_web_experiments||this.getWebExperimentsAndEvaluateDisplayLogic()}getWebExperiments(e,a,o){if(this.Bt.disable_web_experiments&&!o)return e([]);var n=this._instance.get_property("$web_experiments");if(n&&!a)return e(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Bt.token),method:"GET",callback:r=>e(r.statusCode===200&&r.json&&r.json.experiments||[])})}Gn(e,a,o){var n=o.filter((r=>r.id===e));n&&n.length>0&&(Lo.Hn("Previewing web experiment ["+n[0].name+"] with variant ["+a+"]"),this.Un(n[0].name,a,n[0].variants[a].transforms))}static Yn(e){return!kt(e.conditions)&&Lo.Wn(e)&&Lo.Xn(e)}static Wn(e){var a;if(kt(e.conditions)||kt((a=e.conditions)==null?void 0:a.url))return!0;var o,n,r,i=Lo.getWindowLocation();return!!i&&((o=e.conditions)==null||!o.url||Tce[(n=(r=e.conditions)==null?void 0:r.urlMatchType)!==null&&n!==void 0?n:"icontains"](e.conditions.url,i))}static getWindowLocation(){return ge?.location}static Xn(e){var a;if(kt(e.conditions)||kt((a=e.conditions)==null?void 0:a.utm))return!0;var o=$3();if(o.utm_source){var n,r,i,c,d,u,m,h,f=(n=e.conditions)==null||(n=n.utm)==null||!n.utm_campaign||((r=e.conditions)==null||(r=r.utm)==null?void 0:r.utm_campaign)==o.utm_campaign,b=(i=e.conditions)==null||(i=i.utm)==null||!i.utm_source||((c=e.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==o.utm_source,y=(d=e.conditions)==null||(d=d.utm)==null||!d.utm_medium||((u=e.conditions)==null||(u=u.utm)==null?void 0:u.utm_medium)==o.utm_medium,T=(m=e.conditions)==null||(m=m.utm)==null||!m.utm_term||((h=e.conditions)==null||(h=h.utm)==null?void 0:h.utm_term)==o.utm_term;return f&&y&&T&&b}return!1}static Hn(e){for(var a=arguments.length,o=new Array(a>1?a-1:0),n=1;a>n;n++)o[n-1]=arguments[n];qe.info("[WebExperiments] "+e,o)}Un(e,a,o){this._is_bot()?Lo.Hn(G2):a!=="control"?o.forEach((n=>{if(n.selector){var r;Lo.Hn("applying transform of variant "+a+" for experiment "+e+" ",n);var i=(r=document)==null?void 0:r.querySelectorAll(n.selector);i?.forEach((c=>{var d=c;n.html&&(d.innerHTML=n.html),n.css&&d.setAttribute("style",n.css)}))}})):Lo.Hn("Control variants leave the page unmodified.")}_is_bot(){return Mn&&this._instance?o4(Mn,this.Bt.custom_blocked_useragents):void 0}}var Zn=Sa("[Conversations]"),El="Conversations not available yet.",vv={featureFlags:class{constructor(t){this.Jn=!1,this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.ns=!1,this.ss=!1,this._instance=t,this.featureFlagEventHandlers=[]}get Bt(){return this._instance.config}get ni(){return this._instance.persistence}os(t){return this._instance.get_property(t)}ls(){var t,e;return(t=(e=this.ni)==null?void 0:e.wr(this.Bt.feature_flag_cache_ttl_ms))!==null&&t!==void 0&&t}us(){return!!this.ls()&&(this.ss||this.Qn||(this.ss=!0,Wo.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var t,e=(t=this.Bt.evaluation_contexts)!==null&&t!==void 0?t:this.Bt.evaluation_environments;return!this.Bt.evaluation_environments||this.Bt.evaluation_contexts||this.ns||(Wo.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),e!=null&&e.length?e.filter((a=>{var o=a&&typeof a=="string"&&a.trim().length>0;return o||Wo.error("Invalid evaluation context found:",a,"Expected non-empty string"),o})):[]}cs(){return this.hs().length>0}initialize(){var t,e,{config:a}=this._instance,o=(t=(e=a.bootstrap)==null?void 0:e.featureFlags)!==null&&t!==void 0?t:{};if(Object.keys(o).length){var n,r,i=(n=(r=a.bootstrap)==null?void 0:r.featureFlagPayloads)!==null&&n!==void 0?n:{},c=Object.keys(o).filter((u=>!!o[u])).reduce(((u,m)=>(u[m]=o[m]||!1,u)),{}),d=Object.keys(i).filter((u=>c[u])).reduce(((u,m)=>(i[m]&&(u[m]=i[m]),u)),{});this.receivedFeatureFlags({featureFlags:c,featureFlagPayloads:d})}}updateFlags(t,e,a){var o=a!=null&&a.merge?this.getFlagVariants():{},n=a!=null&&a.merge?this.getFlagPayloads():{},r=Me({},o,t),i=Me({},n,e),c={};for(var[d,u]of Object.entries(r)){var m=typeof u=="string";c[d]={key:d,enabled:!!m||!!u,variant:m?u:void 0,reason:void 0,metadata:$e(i?.[d])?void 0:{id:0,version:void 0,description:void 0,payload:i[d]}}}this.receivedFeatureFlags({flags:c})}get hasLoadedFlags(){return this.Kn}getFlags(){return Object.keys(this.getFlagVariants())}getFlagsWithDetails(){var t=this.os(nx),e=this.os(_s),a=this.os(ld);if(!a&&!e)return t||{};var o=Oa({},t||{}),n=[...new Set([...Object.keys(a||{}),...Object.keys(e||{})])];for(var r of n){var i,c,d=o[r],u=e?.[r],m=$e(u)?(i=d?.enabled)!==null&&i!==void 0&&i:!!u,h=$e(u)?d.variant:typeof u=="string"?u:void 0,f=a?.[r],b=Me({},d,{enabled:m,variant:m?h??d?.variant:void 0});m!==d?.enabled&&(b.original_enabled=d?.enabled),h!==d?.variant&&(b.original_variant=d?.variant),f&&(b.metadata=Me({},d?.metadata,{payload:f,original_payload:d==null||(c=d.metadata)==null?void 0:c.payload})),o[r]=b}return this.Jn||(Wo.warn(" Overriding feature flag details!",{flagDetails:t,overriddenPayloads:a,finalDetails:o}),this.Jn=!0),o}getFlagVariants(){var t=this.os(fd),e=this.os(_s);if(!e)return t||{};for(var a=Oa({},t),o=Object.keys(e),n=0;o.length>n;n++)a[o[n]]=e[o[n]];return this.Jn||(Wo.warn(" Overriding feature flags!",{enabledFlags:t,overriddenFlags:e,finalFlags:a}),this.Jn=!0),a}getFlagPayloads(){var t=this.os(rx),e=this.os(ld);if(!e)return t||{};for(var a=Oa({},t||{}),o=Object.keys(e),n=0;o.length>n;n++)a[o[n]]=e[o[n]];return this.Jn||(Wo.warn(" Overriding feature flag payloads!",{flagPayloads:t,overriddenPayloads:e,finalPayloads:a}),this.Jn=!0),a}reloadFeatureFlags(){this.es||this.Bt.advanced_disable_feature_flags||this.ds||(this._instance.Fi.emit("featureFlagsReloading",!0),this.ds=setTimeout((()=>{this.vs()}),5))}fs(){clearTimeout(this.ds),this.ds=void 0}ensureFlagsLoaded(){this.Kn||this.Qn||this.ds||this.reloadFeatureFlags()}setAnonymousDistinctId(t){this.$anon_distinct_id=t}setReloadingPaused(t){this.es=t}vs(t){var e;if(this.fs(),!this._instance.Fr())if(this.Qn)this.ts=!0;else{var a=this.Bt.token,o=this.os(ub),n={token:a,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Me({},((e=this.ni)==null?void 0:e.get_initial_props())||{},this.os(Sp)||{}),group_properties:this.os(_l),timezone:Y3()};js(o)||$e(o)||(n.$device_id=o),(t!=null&&t.disableFlags||this.Bt.advanced_disable_feature_flags)&&(n.disable_flags=!0),this.cs()&&(n.evaluation_contexts=this.hs());var r=this._instance.requestRouter.endpointFor("flags","/flags/?v=2"+(this.Bt.advanced_only_evaluate_survey_feature_flags?"&only_evaluate_survey_feature_flags=true":""));this.Qn=!0,this._instance._send_request({method:"POST",url:r,data:n,compression:this.Bt.disable_compression?void 0:qr.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback:i=>{var c,d,u,m=!0;if(i.statusCode===200&&(this.ts||(this.$anon_distinct_id=void 0),m=!1),this.Qn=!1,!n.disable_flags||this.ts){this.rs=!m;var h=[];i.error?i.error instanceof Error?h.push(i.error.name==="AbortError"?"timeout":"connection_error"):h.push("unknown_error"):i.statusCode!==200&&h.push("api_error_"+i.statusCode),(c=i.json)!=null&&c.errorsWhileComputingFlags&&h.push("errors_while_computing_flags");var f,b=!((d=i.json)==null||(d=d.quotaLimited)==null||!d.includes("feature_flags"));b&&h.push("quota_limited"),(u=this.ni)==null||u.register({[dx]:h}),b?Wo.warn("You have hit your feature flags quota limit, and will not be able to load feature flags until the quota is reset. Please visit https://posthog.com/docs/billing/limits-alerts to learn more."):(n.disable_flags||this.receivedFeatureFlags((f=i.json)!==null&&f!==void 0?f:{},m,{partialResponse:!!this.Bt.advanced_only_evaluate_survey_feature_flags}),this.ts&&(this.ts=!1,this.vs()))}}})}}getFeatureFlag(t,e){var a;if(e===void 0&&(e={}),!e.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var o=this.getFeatureFlagResult(t,e);return(a=o?.variant)!==null&&a!==void 0?a:o?.enabled}}else Wo.warn('getFeatureFlag for key "'+t+cw)}getFeatureFlagDetails(t){return this.getFlagsWithDetails()[t]}getFeatureFlagPayload(t){var e=this.getFeatureFlagResult(t,{send_event:!1});return e?.payload}getFeatureFlagResult(t,e){if(e===void 0&&(e={}),!e.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var a=this.getFlagVariants(),o=t in a,n=a[t],r=this.getFlagPayloads()[t],i=String(n),c=this.os(sx)||void 0,d=this.os(mb)||void 0,u=this.os(Cp)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var m,h=this._instance.get_session_id(),f=this.os(cx);h&&h!==f&&(u={},(m=this.ni)==null||m.register({[Cp]:u,[cx]:h}))}if((e.send_event||!("send_event"in e))&&(!(t in u)||!u[t].includes(i))){var b,y,T,x,w,P,k,E,_,D;Bt(u[t])?u[t].push(i):u[t]=[i],(b=this.ni)==null||b.register({[Cp]:u});var R=this.getFeatureFlagDetails(t),O=[...(y=this.os(dx))!==null&&y!==void 0?y:[]];$e(n)&&O.push("flag_missing");var L={$feature_flag:t,$feature_flag_response:n,$feature_flag_payload:r||null,$feature_flag_request_id:c,$feature_flag_evaluated_at:d,$feature_flag_bootstrapped_response:((T=this.Bt.bootstrap)==null||(T=T.featureFlags)==null?void 0:T[t])||null,$feature_flag_bootstrapped_payload:((x=this.Bt.bootstrap)==null||(x=x.featureFlagPayloads)==null?void 0:x[t])||null,$used_bootstrap_value:!this.rs};$e(R==null||(w=R.metadata)==null?void 0:w.version)||(L.$feature_flag_version=R.metadata.version);var q,B=(P=R==null||(k=R.reason)==null?void 0:k.description)!==null&&P!==void 0?P:R==null||(E=R.reason)==null?void 0:E.code;B&&(L.$feature_flag_reason=B),R!=null&&(_=R.metadata)!=null&&_.id&&(L.$feature_flag_id=R.metadata.id),$e(R?.original_variant)&&$e(R?.original_enabled)||(L.$feature_flag_original_response=$e(R.original_variant)?R.original_enabled:R.original_variant),R!=null&&(D=R.metadata)!=null&&D.original_payload&&(L.$feature_flag_original_payload=R==null||(q=R.metadata)==null?void 0:q.original_payload),O.length&&(L.$feature_flag_error=O.join(",")),this._instance.capture("$feature_flag_called",L)}if(o){var z=r;if(!$e(r))try{z=JSON.parse(r)}catch{}return{key:t,enabled:!!n,variant:typeof n=="string"?n:void 0,payload:z}}}}else Wo.warn('getFeatureFlagResult for key "'+t+cw)}getRemoteConfigPayload(t,e){var a=this.Bt.token,o={distinct_id:this._instance.get_distinct_id(),token:a};this.cs()&&(o.evaluation_contexts=this.hs()),this._instance._send_request({method:"POST",url:this._instance.requestRouter.endpointFor("flags","/flags/?v=2"),data:o,compression:this.Bt.disable_compression?void 0:qr.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback(n){var r,i=(r=n.json)==null?void 0:r.featureFlagPayloads;e(i?.[t]||void 0)}})}isFeatureEnabled(t,e){if(e===void 0&&(e={}),!e.fresh||this.rs){if(this.Kn||this.getFlags()&&this.getFlags().length>0){var a=this.getFeatureFlag(t,e);return $e(a)?void 0:!!a}Wo.warn('isFeatureEnabled for key "'+t+cw)}}addFeatureFlagsHandler(t){this.featureFlagEventHandlers.push(t)}removeFeatureFlagsHandler(t){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((e=>e!==t))}receivedFeatureFlags(t,e,a){if(this.ni){this.Kn=!0;var o=this.getFlagVariants(),n=this.getFlagPayloads(),r=this.getFlagsWithDetails();(function(i,c,d,u,m,h){d===void 0&&(d={}),u===void 0&&(u={}),m===void 0&&(m={});var f=(O=>{var L=O.flags;return L?(O.featureFlags=Object.fromEntries(Object.keys(L).map((q=>{var B;return[q,(B=L[q].variant)!==null&&B!==void 0?B:L[q].enabled]}))),O.featureFlagPayloads=Object.fromEntries(Object.keys(L).filter((q=>L[q].enabled)).filter((q=>{var B;return(B=L[q].metadata)==null?void 0:B.payload})).map((q=>{var B;return[q,(B=L[q].metadata)==null?void 0:B.payload]})))):Wo.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),O})(i),b=f.flags,y=f.featureFlags,T=f.featureFlagPayloads;if(y){var x=i.requestId,w=i.evaluatedAt;if(Bt(y)){Wo.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var P={};if(y)for(var k=0;y.length>k;k++)P[y[k]]=!0;c&&c.register({[xf]:y,[fd]:P})}else{var E=y,_=T,D=b;if(h!=null&&h.partialResponse)E=Me({},d,E),_=Me({},u,_),D=Me({},m,D);else if(i.errorsWhileComputingFlags)if(b){var R=new Set(Object.keys(b).filter((O=>{var L;return!((L=b[O])!=null&&L.failed)})));E=Me({},d,Object.fromEntries(Object.entries(E).filter((O=>{var[L]=O;return R.has(L)})))),_=Me({},u,Object.fromEntries(Object.entries(_||{}).filter((O=>{var[L]=O;return R.has(L)})))),D=Me({},m,Object.fromEntries(Object.entries(D||{}).filter((O=>{var[L]=O;return R.has(L)}))))}else E=Me({},d,E),_=Me({},u,_),D=Me({},m,D);c&&c.register(Me({[xf]:Object.keys(H2(E)),[fd]:E||{},[rx]:_||{},[nx]:D||{}},x?{[sx]:x}:{},w?{[mb]:w}:{}))}}})(t,this.ni,o,n,r,a),e||(this.ss=!1),this.ps(e)}}override(t,e){e===void 0&&(e=!1),Wo.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:t,suppressWarning:e})}overrideFeatureFlags(t){if(!this._instance.__loaded||!this.ni)return Wo.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(t===!1)return this.ni.unregister(_s),this.ni.unregister(ld),this.ps(),Pl.info("All overrides cleared");if(Bt(t)){var e=V2(t);return this.ni.register({[_s]:e}),this.ps(),Pl.info("Flag overrides set",{flags:t})}if(t&&typeof t=="object"&&("flags"in t||"payloads"in t)){var a,o=t;if(this.Jn=!!((a=o.suppressWarning)!==null&&a!==void 0&&a),"flags"in o){if(o.flags===!1)this.ni.unregister(_s),Pl.info("Flag overrides cleared");else if(o.flags){if(Bt(o.flags)){var n=V2(o.flags);this.ni.register({[_s]:n})}else this.ni.register({[_s]:o.flags});Pl.info("Flag overrides set",{flags:o.flags})}}return"payloads"in o&&(o.payloads===!1?(this.ni.unregister(ld),Pl.info("Payload overrides cleared")):o.payloads&&(this.ni.register({[ld]:o.payloads}),Pl.info("Payload overrides set",{payloads:o.payloads}))),void this.ps()}if(t&&typeof t=="object")return this.ni.register({[_s]:t}),this.ps(),Pl.info("Flag overrides set",{flags:t});Wo.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:t})}onFeatureFlags(t){if(this.addFeatureFlagsHandler(t),this.Kn){var{flags:e,flagVariants:a}=this.gs();t(e,a)}return()=>this.removeFeatureFlagsHandler(t)}updateEarlyAccessFeatureEnrollment(t,e,a){var o,n=(this.os(Tp)||[]).find((d=>d.flagKey===t)),r={["$feature_enrollment/"+t]:e},i={$feature_flag:t,$feature_enrollment:e,$set:r};n&&(i.$early_access_feature_name=n.name),a&&(i.$feature_enrollment_stage=a),this._instance.capture("$feature_enrollment_update",i),this.setPersonPropertiesForFlags(r,!1);var c=Me({},this.getFlagVariants(),{[t]:e});(o=this.ni)==null||o.register({[xf]:Object.keys(H2(c)),[fd]:c}),this.ps()}getEarlyAccessFeatures(t,e,a){e===void 0&&(e=!1);var o=this.os(Tp),n=a?"&"+a.map((r=>"stage="+r)).join("&"):"";if(o&&!e)return t(o);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/early_access_features/?token="+this.Bt.token+n),method:"GET",callback:r=>{var i,c;if(r.json){var d=r.json.earlyAccessFeatures;return(i=this.ni)==null||i.unregister(Tp),(c=this.ni)==null||c.register({[Tp]:d}),t(d)}}})}gs(){var t=this.getFlags(),e=this.getFlagVariants();return{flags:t.filter((a=>e[a])),flagVariants:Object.keys(e).filter((a=>e[a])).reduce(((a,o)=>(a[o]=e[o],a)),{})}}ps(t){var{flags:e,flagVariants:a}=this.gs();this.featureFlagEventHandlers.forEach((o=>o(e,a,{errorsLoading:t})))}setPersonPropertiesForFlags(t,e){e===void 0&&(e=!0);var a=this.os(Sp)||{},o=t?.$set||(t!=null&&t.$set_once?{}:t),n=t?.$set_once,r={};if(n)for(var i in n)({}).hasOwnProperty.call(n,i)&&(i in a||(r[i]=n[i]));this._instance.register({[Sp]:Me({},a,r,o)}),e&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(Sp)}setGroupPropertiesForFlags(t,e){e===void 0&&(e=!0);var a=this.os(_l)||{};Object.keys(a).length!==0&&Object.keys(a).forEach((o=>{a[o]=Me({},a[o],t[o]),delete t[o]})),this._instance.register({[_l]:Me({},a,t)}),e&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(t){if(t){var e=this.os(_l)||{};this._instance.register({[_l]:Me({},e,{[t]:{}})})}else this._instance.unregister(_l)}reset(){this.Kn=!1,this.Qn=!1,this.es=!1,this.ts=!1,this.rs=!1,this.$anon_distinct_id=void 0,this.fs(),this.Jn=!1}}},Sce={sessionRecording:class{get Bt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var t;return!((t=this.ys)==null||!t.isStarted)}get status(){var t,e;return this.bs===sp||this.bs===af?this.bs:(t=(e=this.ys)==null?void 0:e.status)!==null&&t!==void 0?t:this.bs}constructor(t){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=L2,this._s=void 0,this._instance=t,!this._instance.sessionManager)throw vi.error("started without valid sessionManager"),new Error(Cx+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===Rs)throw new Error(Cx+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var t,e=!((t=this._instance.get_property(yp))==null||!t.enabled),a=!this.Bt.disable_session_recording,o=this.Bt.disable_session_recording||this._instance.consent.isOptedOut();return ge&&e&&a&&!o}startIfEnabledOrStop(t){var e;if(!this.ws||(e=this.ys)==null||!e.isStarted){var a=!$e(Object.assign)&&!$e(Array.from);this.ws&&a?(this.Is(t),vi.info("starting")):(this.bs=L2,this.stopRecording())}}Is(t){var e,a,o;this.ws&&(this.bs!==sp&&this.bs!==af&&(this.bs=B2),at!=null&&(e=at.__PosthogExtensions__)!=null&&(e=e.rrweb)!=null&&e.record&&(a=at.__PosthogExtensions__)!=null&&a.initSessionRecording?this.Cs(t):(o=at.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,this.Ss,(n=>{if(n)return vi.error("could not load recorder",n);this.Cs(t)})))}stopRecording(){var t,e;(t=this._s)==null||t.call(this),this._s=void 0,(e=this.ys)==null||e.stop()}xs(){var t,e;(t=this._s)==null||t.call(this),this._s=void 0,(e=this.ys)==null||e.discard()}ks(){var t;(t=this.ni)==null||t.unregister(AE)}Ts(t,e){if(kt(t))return null;var a,o=sr(t)?t:parseFloat(t);return typeof(a=o)!="number"||!Number.isFinite(a)||0>a||a>1?(vi.warn(e+" must be between 0 and 1. Ignoring invalid value:",t),null):o}As(t){if(this.ni){var e,a,o=this.ni,n=()=>{var r,i=t.sessionRecording===!1?void 0:t.sessionRecording,c=this.Ts((r=this.Bt.session_recording)==null?void 0:r.sampleRate,"session_recording.sampleRate"),d=this.Ts(i?.sampleRate,"remote config sampleRate"),u=c??d;kt(u)&&this.ks();var m=i?.minimumDurationMilliseconds;o.register({[yp]:Me({cache_timestamp:Date.now(),enabled:!!i},i,{networkPayloadCapture:Me({capturePerformance:t.capturePerformance},i?.networkPayloadCapture),canvasRecording:{enabled:i?.recordCanvas,fps:i?.canvasFps,quality:i?.canvasQuality},sampleRate:u,minimumDurationMilliseconds:$e(m)?null:m,endpoint:i?.endpoint,triggerMatchType:i?.triggerMatchType,masking:i?.masking,urlTriggers:i?.urlTriggers,version:i?.version,triggerGroups:i?.triggerGroups})})};n(),(e=this._s)==null||e.call(this),this._s=(a=this._instance.sessionManager)==null?void 0:a.onSessionId(n)}}onRemoteConfig(t){return"sessionRecording"in t?t.sessionRecording===!1?(this.As(t),void this.xs()):(this.As(t),void this.startIfEnabledOrStop()):(this.bs===sp&&(this.bs=af,vi.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(t,e){var a;e===void 0&&(e="log"),(a=this.ys)!=null&&a.log?this.ys.log(t,e):vi.warn("log called before recorder was ready")}get Ss(){var t,e,a=(t=this._instance)==null||(t=t.persistence)==null?void 0:t.get_property(yp);return(a==null||(e=a.scriptConfig)==null?void 0:e.script)||"lazy-recorder"}Es(){var t,e=this._instance.get_property(yp);if(!e)return!1;var a=(t=(typeof e=="object"?e:JSON.parse(e)).cache_timestamp)!==null&&t!==void 0?t:Date.now();return 36e5>=Date.now()-a}Cs(t){var e,a;if((e=at.__PosthogExtensions__)==null||!e.initSessionRecording)return vi.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[F3]:!0});if(this.ys||(this.ys=(a=at.__PosthogExtensions__)==null?void 0:a.initSessionRecording(this._instance),this.ys._forceAllowLocalhostNetworkCapture=this._forceAllowLocalhostNetworkCapture),!this.Es())return this.bs===af||this.bs===sp?void 0:(this.bs=sp,vi.info("persisted remote config is stale, requesting fresh config before starting"),void new Z3(this._instance).load());this.bs=B2,this.ys.start(t)}onRRwebEmit(t){var e;(e=this.ys)==null||e.onRRwebEmit==null||e.onRRwebEmit(t)}overrideLinkedFlag(){var t,e;this.ys||(e=this.ni)==null||e.register({[O3]:!0}),(t=this.ys)==null||t.overrideLinkedFlag()}overrideSampling(){var t,e;this.ys||(e=this.ni)==null||e.register({[D3]:!0}),(t=this.ys)==null||t.overrideSampling()}overrideTrigger(t){var e,a;this.ys||(a=this.ni)==null||a.register({[t==="url"?N3:M3]:!0}),(e=this.ys)==null||e.overrideTrigger(t)}get sdkDebugProperties(){var t;return((t=this.ys)==null?void 0:t.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(t,e){var a;return!((a=this.ys)==null||!a.tryAddCustomEvent(t,e))}}},wce={autocapture:class{constructor(t){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=t,this.rageclicks=new O2(t.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var t,e,a=La(this.instance.config.autocapture)?this.instance.config.autocapture:{};return a.url_allowlist=(t=a.url_allowlist)==null?void 0:t.map((o=>new RegExp(o))),a.url_ignorelist=(e=a.url_ignorelist)==null?void 0:e.map((o=>new RegExp(o))),a}Os(){if(this.isBrowserSupported()){if(ge&&ze){var t=a=>{a=a||ge?.event;try{this.Ps(a)}catch(o){N2.error("Failed to capture event",o)}};if(Za(ze,"submit",t,{capture:!0}),Za(ze,"change",t,{capture:!0}),Za(ze,"click",t,{capture:!0}),this.Bt.capture_copied_text){var e=a=>{this.Ps(a=a||ge?.event,sw)};Za(ze,"copy",e,{capture:!0}),Za(ze,"cut",e,{capture:!0})}}}else N2.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Rs&&(this.Os(),this.Rs=!0)}onRemoteConfig(t){t.elementsChainAsString&&(this.Ms=t.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[Z0]:!!t.autocapture_opt_out}),this.Ns=!!t.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(t){this.Fs=t}getElementSelectors(t){var e,a=[];return(e=this.Fs)==null||e.forEach((o=>{var n=ze?.querySelectorAll(o);n?.forEach((r=>{t===r&&a.push(o)}))})),a}get isEnabled(){var t,e,a=(t=this.instance.persistence)==null?void 0:t.props[Z0];if(js(this.Ns)&&!Kr(a)&&!this.instance.Fr())return!1;var o=(e=this.Ns)!==null&&e!==void 0?e:!!a;return!!this.instance.config.autocapture&&!o}Ps(t,e){if(e===void 0&&(e="$autocapture"),this.isEnabled){var a,o=C2(t);l4(o)&&(o=o.parentNode||null),e==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&this.instance.config.rageclick&&(a=this.rageclicks)!=null&&a.isRageClick(t.clientX,t.clientY,t.timeStamp||new Date().getTime())&&(function(h,f){if(!ge||Px(h))return!1;var b,y,T;if(Kr(f)?(b=!!f&&_2,y=void 0):(b=(T=f?.css_selector_ignorelist)!==null&&T!==void 0?T:_2,y=f?.content_ignorelist),b===!1)return!1;var{targetElementList:x}=A2(h,!1);return!(function(w,P){if(w===!1||$e(w))return!1;var k;if(w===!0)k=rce;else{if(!Bt(w))return!1;if(w.length>10)return qe.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;k=w.map((E=>E.toLowerCase()))}return P.some((E=>{var{safeText:_,ariaLabel:D}=E;return k.some((R=>_.includes(R)||D.includes(R)))}))})(y,x.map((w=>{var P;return{safeText:Qp(w).toLowerCase(),ariaLabel:((P=w.getAttribute("aria-label"))==null?void 0:P.toLowerCase().trim())||""}})))&&!k2(x,b)})(o,this.instance.config.rageclick)&&this.Ps(t,"$rageclick");var n=e===sw;if(o&&(function(h,f,b,y,T){var x,w,P,k;if(b===void 0&&(b=void 0),!ge||Px(h)||(x=b)!=null&&x.url_allowlist&&!E2(b.url_allowlist)||(w=b)!=null&&w.url_ignorelist&&E2(b.url_ignorelist))return!1;if((P=b)!=null&&P.dom_event_allowlist){var E=b.dom_event_allowlist;if(E&&!E.some((L=>f.type===L)))return!1}var{parentIsUsefulElement:_,targetElementList:D}=A2(h,y);if(!(function(L,q){var B=q?.element_allowlist;if($e(B))return!0;var z,F=function(ae){if(B.some((H=>ae.tagName.toLowerCase()===H)))return{v:!0}};for(var W of L)if(z=F(W))return z.v;return!1})(D,b)||!k2(D,(k=b)==null?void 0:k.css_selector_allowlist))return!1;var R=ge.getComputedStyle(h);if(R&&R.getPropertyValue("cursor")==="pointer"&&f.type==="click")return!0;var O=h.tagName.toLowerCase();switch(O){case"html":return!1;case"form":return(T||["submit"]).indexOf(f.type)>=0;case"input":case"select":case"textarea":return(T||["change","click"]).indexOf(f.type)>=0;default:return _?(T||["click"]).indexOf(f.type)>=0:(T||["click"]).indexOf(f.type)>=0&&(LE.indexOf(O)>-1||h.getAttribute("contenteditable")==="true")}})(o,t,this.Bt,n,n?["copy","cut"]:void 0)){var{props:r,explicitNoCapture:i}=pce(o,{e:t,maskAllElementAttributes:this.instance.config.mask_all_element_attributes,maskAllText:this.instance.config.mask_all_text,elementAttributeIgnoreList:this.Bt.element_attribute_ignorelist,elementsChainAsString:this.Ms});if(i)return!1;var c=this.getElementSelectors(o);if(c&&c.length>0&&(r.$element_selectors=c),e===sw){var d,u=d4(ge==null||(d=ge.getSelection())==null?void 0:d.toString()),m=t.type||"clipboard";if(!u)return!1;r.$selected_content=u,r.$copy_type=m}return this.instance.capture(e,r),!0}}}isBrowserSupported(){return As(ze?.querySelectorAll)}},historyAutocapture:class{constructor(t){var e;this._instance=t,this.Ls=(ge==null||(e=ge.location)==null?void 0:e.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(qe.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,qe.info("History API monitoring stopped")}monitorHistoryChanges(){var t,e;if(ge&&ge.history){var a=this;(t=ge.history.pushState)!=null&&t.__posthog_wrapped__||M2(ge.history,"pushState",(o=>function(n,r,i){o.call(this,n,r,i),a.Bs("pushState")})),(e=ge.history.replaceState)!=null&&e.__posthog_wrapped__||M2(ge.history,"replaceState",(o=>function(n,r,i){o.call(this,n,r,i),a.Bs("replaceState")})),this.js()}}Bs(t){try{var e,a=ge==null||(e=ge.location)==null?void 0:e.pathname;if(!a)return;a!==this.Ls&&this.isEnabled&&this._instance.capture(cd,{navigation_type:t}),this.Ls=a}catch(o){qe.error("Error capturing "+t+" pageview",o)}}js(){if(!this.Ds){var t=()=>{this.Bs("popstate")};Za(ge,"popstate",t),this.Ds=()=>{ge&&ge.removeEventListener("popstate",t)}}}},heatmaps:class{get Bt(){return this.instance.config}constructor(t){var e;this.$s=!1,this.Rs=!1,this.qs=null,this.instance=t,this.$s=!((e=this.instance.persistence)==null||!e.props[Q0]),this.rageclicks=new O2(t.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var t=5e3;return La(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(t=this.Bt.capture_heatmaps.flush_interval_milliseconds),t}get isEnabled(){return kt(this.Bt.capture_heatmaps)?kt(this.Bt.enable_heatmaps)?this.$s:this.Bt.enable_heatmaps:this.Bt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;hce.info("starting..."),this.Zs(),this.Ft()}else{var t;clearInterval((t=this.qs)!==null&&t!==void 0?t:void 0),this.Vs(),this.getAndClearBuffer()}}onRemoteConfig(t){if("heatmaps"in t){var e=!!t.heatmaps;this.instance.persistence&&this.instance.persistence.register({[Q0]:e}),this.$s=e,this.startIfEnabled()}}getAndClearBuffer(){var t=this.T;return this.T=void 0,t}Hs(t){this.Tt(t.originalEvent,"deadclick")}Ft(){this.qs&&clearInterval(this.qs),this.qs=ze?.visibilityState==="visible"?setInterval(this.Yr.bind(this),this.flushIntervalMilliseconds):null}Zs(){ge&&ze&&(this.zs=this.Yr.bind(this),Za(ge,bb,this.zs),this.Us=t=>this.Tt(t||ge?.event),Za(ze,"click",this.Us,{capture:!0}),this.Ys=t=>this.Gs(t||ge?.event),Za(ze,"mousemove",this.Ys,{capture:!0}),this.Ws=new r2(this.instance,kle,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),Za(ze,fb,this.Xs),this.Rs=!0)}Vs(){var t;ge&&ze&&(this.zs&&ge.removeEventListener(bb,this.zs),this.Us&&ze.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&ze.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&ze.removeEventListener(fb,this.Xs),clearTimeout(this.Js),(t=this.Ws)==null||t.stop(),this.Rs=!1)}Ks(t,e){var a=this.instance.scrollManager.scrollY(),o=this.instance.scrollManager.scrollX(),n=this.instance.scrollManager.scrollElement(),r=(function(i,c,d){for(var u=i;u&&bv(u)&&!Fi(u,"body");){if(u===d)return!1;if(Ct(c,ge?.getComputedStyle(u).position))return!0;u=u4(u)}return!1})(C2(t),["fixed","sticky"],n);return{x:t.clientX+(r?0:o),y:t.clientY+(r?0:a),target_fixed:r,type:e}}Tt(t,e){var a;if(e===void 0&&(e="click"),!P2(t.target)&&F2(t)){var o=this.Ks(t,e);(a=this.rageclicks)!=null&&a.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this.Qs(Me({},o,{type:"rageclick"})),this.Qs(o)}}Gs(t){!P2(t.target)&&F2(t)&&(clearTimeout(this.Js),this.Js=setTimeout((()=>{this.Qs(this.Ks(t,"mousemove"))}),500))}Qs(t){if(ge){var e=ge.location.href,a=this.Bt.custom_personal_data_properties,o=this.Bt.mask_personal_data_properties?[...qd,...a||[]]:[],n=Yp(e,o,Zp);this.T=this.T||{},this.T[n]||(this.T[n]=[]),this.T[n].push(t)}}Yr(){this.T&&!gd(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:r2,webVitalsAutocapture:class{constructor(t){var e;this.$s=!1,this.Rs=!1,this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0},this.eo=()=>{clearTimeout(this.ro),this.T.metrics.length!==0&&(this._instance.capture("$web_vitals",this.T.metrics.reduce(((a,o)=>Me({},a,{["$web_vitals_"+o.name+"_event"]:Me({},o),["$web_vitals_"+o.name+"_value"]:o.value})),{})),this.T={url:void 0,metrics:[],firstMetricTimestamp:void 0})},this.ht=a=>{var o,n=(o=this._instance.sessionManager)==null?void 0:o.checkAndGetSessionAndWindowId(!0);if($e(n))bi.error("Could not read session ID. Dropping metrics!");else{this.T=this.T||{url:void 0,metrics:[],firstMetricTimestamp:void 0};var r=this.io();$e(r)||(kt(a?.name)||kt(a?.value)?bi.error("Invalid metric received",a):!this.no||this.no>a.value?(this.T.url!==r&&(this.eo(),this.ro=setTimeout(this.eo,this.flushToCaptureTimeoutMs)),$e(this.T.url)&&(this.T.url=r),this.T.firstMetricTimestamp=$e(this.T.firstMetricTimestamp)?Date.now():this.T.firstMetricTimestamp,a.attribution&&a.attribution.interactionTargetElement&&(a.attribution.interactionTargetElement=void 0),this.T.metrics.push(Me({},a,{$current_url:r,$session_id:n.sessionId,$window_id:n.windowId,timestamp:Date.now()})),this.T.metrics.length===this.allowedMetrics.length&&this.eo()):bi.error("Ignoring metric with value >= "+this.no,a))}},this.so=()=>{if(!this.Rs){var a,o,n,r,i=at.__PosthogExtensions__;$e(i)||$e(i.postHogWebVitalsCallbacks)||({onLCP:a,onCLS:o,onFCP:n,onINP:r}=i.postHogWebVitalsCallbacks),a&&o&&n&&r?(this.allowedMetrics.indexOf("LCP")>-1&&a(this.ht.bind(this)),this.allowedMetrics.indexOf("CLS")>-1&&o(this.ht.bind(this)),this.allowedMetrics.indexOf("FCP")>-1&&n(this.ht.bind(this)),this.allowedMetrics.indexOf("INP")>-1&&r(this.ht.bind(this)),this.Rs=!0):bi.error("web vitals callbacks not loaded - not starting")}},this._instance=t,this.$s=!((e=this._instance.persistence)==null||!e.props[tx]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var t,e,a=La(this.oo)?(t=this.oo)==null?void 0:t.web_vitals_allowed_metrics:void 0;return kt(a)?((e=this._instance.persistence)==null?void 0:e.props[ox])||["CLS","FCP","INP","LCP"]:a}get flushToCaptureTimeoutMs(){return(La(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var t=La(this.oo)?this.oo.web_vitals_attribution:void 0;return t!=null&&t}get no(){var t=La(this.oo)&&sr(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:I2;return t>0&&6e4>=t?I2:t}get isEnabled(){var t=xo?.protocol;if(t!=="http:"&&t!=="https:")return bi.info("Web Vitals are disabled on non-http/https protocols"),!1;var e=La(this.oo)?this.oo.web_vitals:Kr(this.oo)?this.oo:void 0;return Kr(e)?e:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(bi.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(t){if("capturePerformance"in t){var e=La(t.capturePerformance)&&!!t.capturePerformance.web_vitals,a=La(t.capturePerformance)?t.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[tx]:e}),this._instance.persistence.register({[ox]:a})),this.$s=e,this.startIfEnabled()}}ur(t){var e,a;(e=at.__PosthogExtensions__)!=null&&e.postHogWebVitalsCallbacks?t():(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(o=>{o?bi.error("failed to load script",o):t()}))}io(){var t=ge?ge.location.href:void 0;if(t){var e=this._instance.config.custom_personal_data_properties,a=this._instance.config.mask_personal_data_properties?[...qd,...e||[]]:[];return Yp(t,a,Zp)}bi.error("Could not determine current URL")}}},xce={exceptionObserver:class{constructor(t){var e,a,o;this.so=()=>{var n;if(ge&&this.isEnabled&&(n=at.__PosthogExtensions__)!=null&&n.errorWrappingFunctions){var r=at.__PosthogExtensions__.errorWrappingFunctions.wrapOnError,i=at.__PosthogExtensions__.errorWrappingFunctions.wrapUnhandledRejection,c=at.__PosthogExtensions__.errorWrappingFunctions.wrapConsoleError;try{!this.ao&&this.Bt.capture_unhandled_errors&&(this.ao=r(this.captureException.bind(this))),!this.lo&&this.Bt.capture_unhandled_rejections&&(this.lo=i(this.captureException.bind(this))),!this.uo&&this.Bt.capture_console_errors&&(this.uo=c(this.captureException.bind(this)))}catch(d){rp.error("failed to start",d),this.ho()}}},this._instance=t,this.co=!((e=this._instance.persistence)==null||!e.props[J0]),this.do=new Lie({refillRate:(a=this._instance.config.error_tracking.__exceptionRateLimiterRefillRate)!==null&&a!==void 0?a:1,bucketSize:(o=this._instance.config.error_tracking.__exceptionRateLimiterBucketSize)!==null&&o!==void 0?o:10,refillInterval:1e4,Gt:rp}),this.Bt=this.vo(),this.startIfEnabledOrStop()}vo(){var t=this._instance.config.capture_exceptions,e={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return La(t)?e=Me({},e,t):($e(t)?this.co:t)&&(e=Me({},e,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),e}get isEnabled(){return this.Bt.capture_console_errors||this.Bt.capture_unhandled_errors||this.Bt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(rp.info("enabled"),this.ho(),this.ur(this.so)):this.ho()}ur(t){var e,a;(e=at.__PosthogExtensions__)!=null&&e.errorWrappingFunctions&&t(),(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"exception-autocapture",(o=>{if(o)return rp.error("failed to load script",o);t()}))}ho(){var t,e,a;(t=this.ao)==null||t.call(this),this.ao=void 0,(e=this.lo)==null||e.call(this),this.lo=void 0,(a=this.uo)==null||a.call(this),this.uo=void 0}onRemoteConfig(t){"autocaptureExceptions"in t&&(this.co=!!t.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[J0]:this.co}),this.Bt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.Bt=this.vo()}captureException(t){var e,a,o,n=(e=t==null||(a=t.$exception_list)==null||(a=a[0])==null?void 0:a.type)!==null&&e!==void 0?e:"Exception";this.do.consumeRateLimit(n)?rp.info("Skipping exception capture because of client rate limiting.",{exception:n}):(o=this._instance.exceptions)==null||o.sendExceptionEvent(t)}},exceptions:class{constructor(t){var e,a;this.fo=[],this.po=new Yie([new ole,new ple,new rle,new nle,new dle,new cle,new ile,new ule],(function(o){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;n>i;i++)r[i-1]=arguments[i];return function(c,d){d===void 0&&(d=0);for(var u=[],m=c.split(`
|
|
168
|
-
`),h=d;m.length>h;h++){var f=m[h];if(1024>=f.length){var b=t2.test(f)?f.replace(t2,"$1"):f;if(!b.match(/\S*Error: /)){for(var y of r){var T=y(b,o);if(T){u.push(T);break}}if(u.length>=50)break}}}return(function(x){if(!x.length)return[];var w=Array.from(x);return w.reverse(),w.slice(0,50).map((P=>{return Me({},P,{filename:P.filename||(k=w,k[k.length-1]||{}).filename,function:P.function||Ud});var k}))})(u)}})("web:javascript",Xie,ale)),this._instance=t,this.fo=(e=(a=this._instance.persistence)==null?void 0:a.get_property(X0))!==null&&e!==void 0?e:[],this.mo=db(this.yo()),this.bo=new hle(this.mo)}onConfigChange(){this.mo=db(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(t){var e,a,o;if("errorTracking"in t){var n=(e=(a=t.errorTracking)==null?void 0:a.suppressionRules)!==null&&e!==void 0?e:[],r=(o=t.errorTracking)==null?void 0:o.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[X0]:this.fo,[ex]:r})}}get _o(){var t,e=!!this._instance.get_property(ex),a=this._instance.config.error_tracking.captureExtensionExceptions;return(t=a??e)!==null&&t!==void 0&&t}buildProperties(t,e){return this.po.buildFromUnknown(t,{syntheticException:e?.syntheticException,mechanism:{handled:e?.handled}})}addExceptionStep(t,e){if(this.mo.enabled)try{if(!Ea(t)||t.trim().length===0)return void ks.warn("Ignoring exception step because message must be a non-empty string");var a=this.wo(e),{sanitizedProperties:o,droppedKeys:n}=(function(r){if(!r)return{sanitizedProperties:{},droppedKeys:[]};var i=[];return{sanitizedProperties:Object.keys(r).reduce(((c,d)=>mle.has(d)?(i.push(d),c):(c[d]=r[d],c)),{}),droppedKeys:i}})(a);n.length>0&&ks.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Me({[lb]:t,[cb]:new Date().toISOString()},o))}catch(r){ks.error("Failed to add exception step. Ignoring breadcrumb.",r)}}sendExceptionEvent(t){try{var e=t.$exception_list;if(this.Io(e)){if(this.Co(e))return this.So("Exception dropped: matched a suppression rule"),void ks.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(e))return this.So("Exception dropped: thrown by a browser extension"),void ks.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(e))return this.So("Exception dropped: thrown by the PostHog SDK"),void ks.info("Skipping exception capture because it was thrown by the PostHog SDK")}var a=this.mo.enabled&&kt(t.$exception_steps)?this.To(t):t;try{var o=this._instance.capture("$exception",a,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return o&&this.bo.clear(),o}catch(n){return ks.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void ks.error("Failed to process exception event. Ignoring this exception.",n)}}To(t){try{var e=this.bo.getAttachable();return e.length===0?t:Me({},t,{$exception_steps:e})}catch(a){return ks.error("Failed to read buffered exception steps. Capturing exception without steps.",a),t}}So(t){this.mo.enabled&&this.bo.add({[lb]:t,[cb]:new Date().toISOString()})}wo(t){return La(t)?Me({},t):{}}yo(){var t,e;return(t=(e=this._instance.config.error_tracking)==null?void 0:e.exception_steps)!==null&&t!==void 0?t:{}}Co(t){if(t.length===0)return!1;var e=t.reduce(((a,o)=>{var{type:n,value:r}=o;return Ea(n)&&n.length>0&&a.$exception_types.push(n),Ea(r)&&r.length>0&&a.$exception_values.push(r),a}),{$exception_types:[],$exception_values:[]});return this.fo.some((a=>{var o=a.values.map((n=>{var r,i=n4[n.operator],c=Bt(n.value)?n.value:[n.value],d=(r=e[n.key])!==null&&r!==void 0?r:[];return c.length>0&&i(c,d)}));return a.type==="OR"?o.some(Boolean):o.every(Boolean)}))}xo(t){return t.flatMap((e=>{var a,o;return(a=(o=e.stacktrace)==null?void 0:o.frames)!==null&&a!==void 0?a:[]})).some((e=>e.filename&&e.filename.startsWith("chrome-extension://")))}ko(t){if(t.length>0){var e,a,o,n,r=(e=(a=t[0].stacktrace)==null?void 0:a.frames)!==null&&e!==void 0?e:[],i=r[r.length-1];return(o=i==null||(n=i.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&o!==void 0&&o}return!1}Io(t){return!kt(t)&&Bt(t)}}},Pce=Me({productTours:class{get ni(){return this._instance.persistence}constructor(t){this.Ao=null,this.Eo=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){"productTours"in t&&(this.ni&&this.ni.register({[ax]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.Ao||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(ax)||this.ur((()=>this.Ro()))}ur(t){var e,a;(e=at.__PosthogExtensions__)!=null&&e.generateProductTours?t():(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"product-tours",(o=>{o?j2.error("Could not load product tours script",o):t()}))}Ro(){var t;!this.Ao&&(t=at.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.Ao=at.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!Bt(this.Eo)||e){var a=this.ni;if(a){var o=a.props[Pf];if(Bt(o)&&!e)return this.Eo=o,void t(o,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:n=>{var r=n.statusCode;if(r!==200||!n.json){var i="Product Tours API could not be loaded, status: "+r;return j2.error(i),void t([],{isLoaded:!1,error:i})}var c=Bt(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,a&&a.register({[Pf]:c}),t(c,{isLoaded:!0})}})}else t(this.Eo,{isLoaded:!0})}getActiveProductTours(t){kt(this.Ao)?t([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(t)}showProductTour(t){var e;(e=this.Ao)==null||e.showTourById(t)}previewTour(t){this.Ao?this.Ao.previewTour(t):this.ur((()=>{var e;this.Ro(),(e=this.Ao)==null||e.previewTour(t)}))}dismissProductTour(){var t;(t=this.Ao)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this.Ao)==null||t.nextStep()}previousStep(){var t;(t=this.Ao)==null||t.previousStep()}clearCache(){var t;this.Eo=null,(t=this.ni)==null||t.unregister(Pf)}resetTour(t){var e;(e=this.Ao)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.Ao)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.Ao)==null||e.cancelPendingTour(t)}}},vv),Ece={siteApps:class{constructor(t){this._instance=t,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(t,e){if(e){var a=this.globalsForEvent(e);this.No.push(a),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var t;return(t=at._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}initialize(){if(this.isEnabled){var t=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{t(),this.No=[],this.Fo=void 0}}}globalsForEvent(t){var e,a,o,n,r,i,c;if(!t)throw new Error("Event payload is required");var d={},u=this._instance.get_property("$groups")||[],m=this._instance.get_property("$stored_group_properties")||{};for(var[h,f]of Object.entries(m))d[h]={id:u[h],type:h,properties:f};var{$set_once:b,$set:y}=t;return{event:Me({},r3(t,gce),{properties:Me({},t.properties,y?{$set:Me({},(e=(a=t.properties)==null?void 0:a.$set)!==null&&e!==void 0?e:{},y)}:{},b?{$set_once:Me({},(o=(n=t.properties)==null?void 0:n.$set_once)!==null&&o!==void 0?o:{},b)}:{}),elements_chain:(r=(i=t.properties)==null?void 0:i.$elements_chain)!==null&&r!==void 0?r:"",distinct_id:(c=t.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(t){var e=this.apps[t.id],a=()=>{var i;!e.errored&&this.No.length&&(yi.info("Processing "+this.No.length+" events for site app with id "+t.id),this.No.forEach((c=>e.processEvent==null?void 0:e.processEvent(c))),e.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((i=this.Fo)==null||i.call(this))},o=!1,n=i=>{e.errored=!i,e.loaded=!0,yi.info("Site app with id "+t.id+" "+(i?"loaded":"errored")),o&&a()};try{var{processEvent:r}=t.init({posthog:this._instance,callback(i){n(i)}});r&&(e.processEvent=r),o=!0}catch(i){yi.error(z2+t.id,i),n(!1)}if(o&&e.loaded)try{a()}catch(i){yi.error("Error while processing buffered events PostHog app with config id "+t.id,i),e.errored=!0}}Oo(){var t=this.siteAppLoaders||[];for(var e of t)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var a of t)this.setupSiteApp(a)}Po(t){if(Object.keys(this.apps).length!==0){var e=this.globalsForEvent(t);for(var a of Object.values(this.apps))try{a.processEvent==null||a.processEvent(e)}catch(o){yi.error("Error while processing event "+t.event+" for site app "+a.id,o)}}}onRemoteConfig(t){var e,a,o,n=this;if((e=this.siteAppLoaders)!=null&&e.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void yi.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((a=this.Fo)==null||a.call(this),(o=t.siteApps)!=null&&o.length)if(this.isEnabled){var r=function(d){var u;at["__$$ph_site_app_"+d]=n._instance,(u=at.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(n._instance,c,(m=>{if(m)return yi.error(z2+d,m)}))};for(var{id:i,url:c}of t.siteApps)r(i)}else yi.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},Cce={tracingHeaders:class{constructor(t){this.Lo=void 0,this.Do=void 0,this.so=()=>{var e,a,o=this.Bo()||[];$e(this.Lo)&&((e=at.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchXHR(o,this._instance.get_distinct_id(),this._instance.sessionManager)),$e(this.Do)&&((a=at.__PosthogExtensions__)==null||(a=a.tracingHeadersPatchFns)==null||a._patchFetch(o,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}initialize(){this.startIfEnabledOrStop()}ur(t){var e,a;(e=at.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns&&t(),(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"tracing-headers",(o=>{if(o)return mce.error("failed to load script",o);t()}))}Bo(){var t;return(t=this._instance.config.addTracingHeaders)!==null&&t!==void 0?t:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var t,e;this.Bo()?this.ur(this.so):((t=this.Lo)==null||t.call(this),(e=this.Do)==null||e.call(this),this.Lo=void 0,this.Do=void 0)}}},kce=Me({surveys:class{get Bt(){return this._instance.config}constructor(t){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=t,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this.Bt.disable_surveys){var e=t.surveys;if(kt(e))return aa.warn("Flags not loaded yet. Not loading surveys.");var a=Bt(e);this.jo=a?e.length>0:e,aa.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],e=0;e<localStorage.length;e++){var a=localStorage.key(e);(a!=null&&a.startsWith(wx)||a!=null&&a.startsWith("inProgressSurvey_"))&&t.push(a)}t.forEach((o=>localStorage.removeItem(o)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)aa.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)aa.info(U2);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())aa.info("Not loading surveys in cookieless mode without consent.");else{var t=at?.__PosthogExtensions__;if(t){if(!$e(this.jo)||this.Bt.advanced_enable_surveys){var e=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var a=t.generateSurveys;if(a)return void this.Vo(a,e);var o=t.loadExternalDependency;if(!o)return void this.Ho(RE);o(this._instance,"surveys",(n=>{n||!t.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(t.generateSurveys,e)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else aa.error("PostHog Extensions not found.")}}Vo(t,e){this._surveyManager=t(this._instance,e),this._surveyEventReceiver=new vce(this._instance),aa.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(t,e){aa.error(t,e),this.zo({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.qo.push(t),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((e=>e!==t))}}getSurveys(t,e){if(e===void 0&&(e=!1),this.Bt.disable_surveys)return aa.info(U2),t([]);var a,o=this._instance.get_property(ix);if(o&&!e)return t(o,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:r,context:i}=n;return t(r,i)})):(typeof Promise<"u"&&(this.Zo=new Promise((n=>{a=n}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:n=>{var r;this.Zo=null;var i=n.statusCode;if(i!==200||!n.json){var c="Surveys API could not be loaded, status: "+i;aa.error(c);var d={isLoaded:!1,error:c};return t([],d),void(a==null||a({surveys:[],context:d}))}var u,m=n.json.surveys||[],h=m.filter((b=>(function(y){return!(!y.start_date||y.end_date)})(b)&&((function(y){var T;return!((T=y.conditions)==null||(T=T.events)==null||(T=T.values)==null||!T.length)})(b)||(function(y){var T;return!((T=y.conditions)==null||(T=T.actions)==null||(T=T.values)==null||!T.length)})(b))));h.length>0&&((u=this._surveyEventReceiver)==null||u.register(h)),(r=this._instance.persistence)==null||r.register({[ix]:m});var f={isLoaded:!0};t(m,f),a?.({surveys:m,context:f})}}))}zo(t){for(var e of this.qo)try{if(!t.isLoaded)return e([],t);this.getSurveys(e)}catch(a){aa.error("Error in survey callback",a)}}getActiveMatchingSurveys(t,e){if(e===void 0&&(e=!1),!kt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,e);aa.warn("init was not called")}Uo(t){var e=null;return this.getSurveys((a=>{var o;e=(o=a.find((n=>n.id===t)))!==null&&o!==void 0?o:null})),e}Yo(t){if(kt(this._surveyManager))return{eligible:!1,reason:lw};var e=typeof t=="string"?this.Uo(t):t;return e?this._surveyManager.checkSurveyEligibility(e):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(kt(this._surveyManager))return aa.warn("init was not called"),{visible:!1,disabledReason:lw};var e=this.Yo(t);return{visible:e.eligible,disabledReason:e.reason}}canRenderSurveyAsync(t,e){return kt(this._surveyManager)?(aa.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:lw})):new Promise((a=>{this.getSurveys((o=>{var n,r=(n=o.find((c=>c.id===t)))!==null&&n!==void 0?n:null;if(r){var i=this.Yo(r);a({visible:i.eligible,disabledReason:i.reason})}else a({visible:!1,disabledReason:"Survey not found"})}),e)}))}renderSurvey(t,e,a){var o;if(kt(this._surveyManager))aa.warn("init was not called");else{var n=typeof t=="string"?this.Uo(t):t;if(n!=null&&n.id)if(Jle.includes(n.type)){var r=ze?.querySelector(e);if(r)return(o=n.appearance)!=null&&o.surveyPopupDelaySeconds?(aa.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var i,c;aa.info("Rendering survey "+n.id+" with delay of "+((i=n.appearance)==null?void 0:i.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(n,r,a),aa.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,r,a);aa.warn("Survey element not found")}else aa.warn("Surveys of type "+n.type+" cannot be rendered in the app");else aa.warn("Survey not found")}}displaySurvey(t,e){var a;if(kt(this._surveyManager))aa.warn("init was not called");else{var o=this.Uo(t);if(o){var n=o;if((a=o.appearance)!=null&&a.surveyPopupDelaySeconds&&e.ignoreDelay&&(n=Me({},o,{appearance:Me({},o.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==fx.Popover&&e.initialResponses&&aa.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var r=this.canRenderSurvey(o);if(!r.visible)return void aa.warn("Survey is not eligible to be displayed: ",r.disabledReason)}e.displayType!==fx.Inline?this._surveyManager.handlePopoverSurvey(n,e):this.renderSurvey(n,e.selector,e.properties)}else aa.warn("Survey not found")}}cancelPendingSurvey(t){kt(this._surveyManager)?aa.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},vv),_ce={toolbar:class{constructor(t){this.instance=t}Go(t){at.ph_toolbar_state=t}Wo(){var t;return(t=at.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,a){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),a===void 0&&(a=void 0),j3(this.instance.config)||!ge||!ze)return!1;t=t??ge.location,a=a??ge.history;try{if(!e){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}e=ge?.localStorage}var o,n=yce||Sb(t.hash,"__posthog")||Sb(t.hash,"state"),r=n?o2((()=>JSON.parse(atob(decodeURIComponent(n)))))||o2((()=>JSON.parse(decodeURIComponent(n)))):null;return r&&r.action==="ph_authorize"?((o=r).source="url",o&&Object.keys(o).length>0&&(r.desiredHash?t.hash=r.desiredHash:a?a.replaceState(a.state,"",t.pathname+t.search):t.hash="")):((o=JSON.parse(e.getItem(q2)||"{}")).source="localstorage",delete o.userIntent),!(!o.token||this.instance.config.token!==o.token||(this.loadToolbar(o),0))}catch{return!1}}Xo(t){var e=at.ph_load_toolbar||at.ph_load_editor;!kt(e)&&As(e)?e(t,this.instance):$2.warn("No toolbar load function found")}loadToolbar(t){var e=!(ze==null||!ze.getElementById(I3));if(!ge||e)return!1;var a=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,o=Me({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},a?{instrument:!1}:{});if(ge.localStorage.setItem(q2,JSON.stringify(Me({},o,{source:void 0}))),this.Wo()===2)this.Xo(o);else if(this.Wo()===0){var n;this.Go(1),(n=at.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(r=>{if(r)return $2.error("[Toolbar] Failed to load",r),void this.Go(0);this.Go(2),this.Xo(o)})),Za(ge,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(o)}))}return!0}Jo(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,a){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),a===void 0&&(a=void 0),this.maybeLoadToolbar(t,e,a)}}},Ace=Me({experiments:Lo},vv),Rce={conversations:class{constructor(t){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var e=t.conversations;kt(e)||(Kr(e)?this.Ko=e:(this.Ko=e.enabled,this.ea=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||j3(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var t=at?.__PosthogExtensions__;if(t&&!$e(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var e=t.initConversations;if(e)return this.ta(e),void(this.Qo=!1);var a=t.loadExternalDependency;if(!a)return void this.ra(RE);a(this._instance,"conversations",(o=>{o||!t.initConversations?this.ra("Could not load conversations script",o):this.ta(t.initConversations),this.Qo=!1}))}catch(o){this.ra("Error initializing conversations",o),this.Qo=!1}}else Zn.error("Conversations enabled but missing token in remote config.")}}ta(t){if(this.ea)try{this._conversationsManager=t(this.ea,this._instance),Zn.info("Conversations loaded successfully")}catch(e){this.ra("Error completing conversations initialization",e)}else Zn.error("Cannot complete initialization: remote config is null")}ra(t,e){Zn.error(t,e),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Zn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!js(this._conversationsManager)}isVisible(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.isVisible())!==null&&t!==void 0&&t}sendMessage(t,e,a){var o=this;return er((function*(){return o._conversationsManager?o._conversationsManager.sendMessage(t,e,a):(Zn.warn(El),null)}))()}getMessages(t,e){var a=this;return er((function*(){return a._conversationsManager?a._conversationsManager.getMessages(t,e):(Zn.warn(El),null)}))()}markAsRead(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.markAsRead(t):(Zn.warn(El),null)}))()}getTickets(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.getTickets(t):(Zn.warn(El),null)}))()}requestRestoreLink(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.requestRestoreLink(t):(Zn.warn(El),null)}))()}restoreFromToken(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.restoreFromToken(t):(Zn.warn(El),null)}))()}restoreFromUrlToken(){var t=this;return er((function*(){return t._conversationsManager?t._conversationsManager.restoreFromUrlToken():(Zn.warn(El),null)}))()}getCurrentTicketId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getCurrentTicketId())!==null&&t!==void 0?t:null}getWidgetSessionId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getWidgetSessionId())!==null&&t!==void 0?t:null}un(){var t;(t=this._conversationsManager)==null||t.setIdentity()}hn(){var t;(t=this._conversationsManager)==null||t.clearIdentity()}}},Dce={logs:class{constructor(t){var e;this.ia=!1,this.na=!1,this.Gt=Sa("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=t,this._instance&&(e=this._instance.config.logs)!=null&&e.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(t){var e,a=(e=t.logs)==null?void 0:e.captureConsoleLogs;!kt(a)&&a&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var t=at?.__PosthogExtensions__;if(t){var e=t.loadExternalDependency;e?e(this._instance,"logs",(a=>{var o;a||(o=t.logs)==null||!o.initializeLogs?this.Gt.error("Could not load logs script",a):(t.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(RE)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(t){var e,a,o,n,r,i;if(this._instance.is_capturing())if(t&&t.body){var c=(e=(a=this._instance.config.logs)==null?void 0:a.flushIntervalMs)!==null&&e!==void 0?e:3e3,d=(o=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&o!==void 0?o:1e3,u=Date.now();if(c>u-this.aa||(this.aa=u,this.oa=0,this.la=!1),d>this.oa){this.oa++;var m=(function(h,f){var b=h.level||"info",{text:y,number:T}=E3[b]||Wie,x=String(Date.now())+"000000",w={};f.distinctId&&(w.posthogDistinctId=f.distinctId),f.sessionId&&(w.sessionId=f.sessionId),f.currentUrl&&(w["url.full"]=f.currentUrl),f.screenName&&(w["screen.name"]=f.screenName),f.appState&&(w["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(w.feature_flags=f.activeFeatureFlags);var P=Me({},w,h.attributes||{}),k={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:T,severityText:y,body:{stringValue:h.body},attributes:e2(P)};return h.trace_id&&(k.traceId=h.trace_id),h.span_id&&(k.spanId=h.span_id),$e(h.trace_flags)||(k.flags=h.trace_flags),k})(t,this.ua());this.sa.push({record:m}),((r=(i=this._instance.config.logs)==null?void 0:i.maxBufferSize)!==null&&r!==void 0?r:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+d+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(t,e)=>this.captureLog({body:t,level:"trace",attributes:e}),debug:(t,e)=>this.captureLog({body:t,level:"debug",attributes:e}),info:(t,e)=>this.captureLog({body:t,level:"info",attributes:e}),warn:(t,e)=>this.captureLog({body:t,level:"warn",attributes:e}),error:(t,e)=>this.captureLog({body:t,level:"error",attributes:e}),fatal:(t,e)=>this.captureLog({body:t,level:"fatal",attributes:e})}),this.ca}flushLogs(t){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var e=this.sa;this.sa=[];var a=this._instance.config.logs,o=Me({"service.name":a?.serviceName||"unknown_service"},a?.environment&&{"deployment.environment":a.environment},a?.serviceVersion&&{"service.version":a.serviceVersion},a?.resourceAttributes),n=(function(i,c,d,u){return{resourceLogs:[{resource:{attributes:e2(c)},scopeLogs:[{scope:{name:d,version:u},logRecords:i}]}]}})(e.map((i=>i.record)),o,Zo.LIB_NAME,Zo.LIB_VERSION),r=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:r,data:n,compression:"best-available",batchKey:"logs",transport:t})}}ha(){var t,e;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(t=(e=this._instance.config.logs)==null?void 0:e.flushIntervalMs)!==null&&t!==void 0?t:3e3))}ua(){var t,e={};if(e.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:a}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);e.sessionId=a}if(at!=null&&(t=at.location)!=null&&t.href&&(e.currentUrl=at.location.href),this._instance.featureFlags){var o=this._instance.featureFlags.getFlags();o&&o.length>0&&(e.activeFeatureFlags=o)}return e}}},Oce=Me({},vv,Sce,wce,xce,Pce,Ece,kce,Cce,_ce,Ace,Rce,Dce);tr.__defaultExtensionClasses=Me({},Oce);var W2,zs=(W2=_p[dd]=new tr,(function(){function t(){t.done||(t.done=!0,i4=!1,fa(_p,(function(e){e._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?t():Za(ze,"DOMContentLoaded",t,{capture:!1}):ge&&qe.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),W2);let Is=!1,kx=null,K2=!1;const BE="studio:lp-distinct-id",f4="mesh:lp-distinct-id",dw="/api/_reports/link-token/",Nce=1440*60*1e3;function b4(t){const e="https://analytics.invalid",a=/^[a-z][a-z\d+.-]*:\/\//i.test(t),o=t.startsWith("//");try{const n=new URL(t,e);let r=!1;for(const i of["key","d"])n.searchParams.has(i)&&(n.searchParams.delete(i),r=!0);return n.pathname.startsWith(dw)&&n.pathname!==dw&&(n.pathname=`${dw}redacted`,r=!0),r?a?n.toString():o?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:t}catch{return t}}function uw(t){return Object.fromEntries(Object.entries(t).map(([e,a])=>[e,typeof a=="string"?b4(a):a]))}const Mce=t=>t?(t.properties=uw(t.properties),t.$set&&(t.$set=uw(t.$set)),t.$set_once&&(t.$set_once=uw(t.$set_once)),t):null;function v4(){try{const t=window.localStorage.getItem(BE)??window.localStorage.getItem(f4);if(!t)return;const{id:e,ts:a}=JSON.parse(t);return typeof e!="string"||!e||typeof a!="number"?void 0:Date.now()-a<=Nce?e:void 0}catch{return}}function Ice(){try{window.localStorage.removeItem(BE),window.localStorage.removeItem(f4)}catch{}}function Lce(){try{const t=new URL(window.location.href),e=t.searchParams.get("ph_did");e&&(window.localStorage.setItem(BE,JSON.stringify({id:e,ts:Date.now()})),t.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",t.toString()));const a=e??v4();return a?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:a:void 0}catch{return}}function Bce(t){const e=v4();if(e&&(Ice(),e!==t))try{zs.alias(e)}catch{}}function Fce(t,e){if(Is||typeof window>"u")return;const a=Lce();zs.init(t,{api_host:e,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...a?{bootstrap:{distinctID:a}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:Mce,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture",maskCapturedNetworkRequestFn:o=>({...o,...typeof o.name=="string"?{name:b4(o.name)}:{}})},person_profiles:"identified_only"}),Is=!0}function jce(t,e){Is&&(zs.identify(t,e),Bce(t))}function zce(){Is&&(zs.reset(),kx=null)}function y4(t,e){Is&&zs.capture(t,e)}function Ywe(){return Is}function Zwe(){if(!Is||K2||typeof performance>"u")return;K2=!0;const t=performance.getEntriesByType("navigation")[0],e=a=>{const o=performance.getEntriesByName(a,"measure")[0];return o?Math.round(o.duration):void 0};y4("perf_app_bootstrap",{nav_type:t?.type,ttfb_ms:t?Math.round(t.responseStart):void 0,dom_interactive_ms:t?Math.round(t.domInteractive):void 0,dom_content_loaded_ms:t?Math.round(t.domContentLoadedEventEnd):void 0,config_fetch_ms:e("studio:config-fetch"),active_org_fetch_ms:e("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:lJ(),org_cache_restored:cJ()})}function Qwe(t,e){Is&&t!==kx&&(zs.group("organization",t,e),kx=t)}function T4(t,e){if(Is)try{zs.captureException(t,e)}catch{}}const Uce=["radial-gradient(ellipse 85% 85% at 0% 0%, rgba(165,149,255,0.6) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 100% 100%, rgba(208,236,26,0.52) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 0% 100%, rgba(255,193,22,0.48) 0%, transparent 72%)"].join(", ");function qce(t){const e=ye.c(3),{children:a}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=v.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:Uce}}),e[0]=o):o=e[0];let n;return e[1]!==a?(n=v.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[o,v.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:a})]}),e[1]=a,e[2]=n):n=e[2],n}function S4(t){const e=ye.c(20),{orgName:a}=t,o=qo(),n=$ce;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=v.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:v.jsx(Bj,{className:"h-6 w-6 text-muted-foreground"})}),e[0]=r):r=e[0];let i;e[1]!==o?(i=o("common.archivedOrgScreen.orgUnavailable"),e[1]=o,e[2]=i):i=e[2];let c;e[3]!==i?(c=v.jsx("h3",{className:"text-lg font-medium",children:i}),e[3]=i,e[4]=c):c=e[4];let d;e[5]!==a||e[6]!==o?(d=a?o("common.archivedOrgScreen.deletedWithName",{orgName:a}):o("common.archivedOrgScreen.deletedGeneric"),e[5]=a,e[6]=o,e[7]=d):d=e[7];let u;e[8]!==d?(u=v.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[8]=d,e[9]=u):u=e[9];let m;e[10]!==c||e[11]!==u?(m=v.jsxs("div",{className:"space-y-2",children:[c,u]}),e[10]=c,e[11]=u,e[12]=m):m=e[12];let h;e[13]!==o?(h=o("common.goHome"),e[13]=o,e[14]=h):h=e[14];let f;e[15]!==h?(f=v.jsx(vn,{onClick:n,children:h}),e[15]=h,e[16]=f):f=e[16];let b;return e[17]!==m||e[18]!==f?(b=v.jsxs(qce,{children:[r,m,f]}),e[17]=m,e[18]=f,e[19]=b):b=e[19],b}function $ce(){window.location.href="/"}function Vce(){const t=ye.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:a}=rm(e);let o;return t[1]!==a?(o=v.jsx(vn,{variant:"outline",size:"sm",asChild:!0,children:v.jsx(Kl,{to:"/$org/settings/profile",params:{org:a},children:"Go to your profile"})}),t[1]=a,t[2]=o):o=t[2],o}function Hce(t){const e=ye.c(13),{area:a,description:o,action:n}=t,r=a?`No access to ${a}`:"No access",i=o??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=v.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:v.jsx(Gj,{size:28})}),e[0]=c):c=e[0];let d;e[1]!==r?(d=v.jsx("h3",{className:"text-lg font-medium",children:r}),e[1]=r,e[2]=d):d=e[2];let u;e[3]!==i?(u=v.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:i}),e[3]=i,e[4]=u):u=e[4];let m;e[5]!==d||e[6]!==u?(m=v.jsxs("div",{className:"space-y-1",children:[d,u]}),e[5]=d,e[6]=u,e[7]=m):m=e[7];let h;e[8]!==n?(h=n??v.jsx(Vce,{}),e[8]=n,e[9]=h):h=e[9];let f;return e[10]!==m||e[11]!==h?(f=v.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,m,h]}),e[10]=m,e[11]=h,e[12]=f):f=e[12],f}const Y2="__studio_chunk_reload_ts";function w4(t){return t?.message===BX}function Gce(t){return!!t?.message?.includes("Access denied")}function Z2(t){if(!t)return!1;const e=t.message||"";return e.includes("Failed to fetch dynamically imported module")||e.includes("Importing a module script failed")||e.includes("error loading dynamically imported module")||e.includes("Failed to fetch")&&t.name==="TypeError"}class Wce extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,a){console.error("Uncaught error:",e,a),T4(e,{boundary:"default",error_name:e.name,error_message:e.message,component_stack:a.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:e,t:a}=this.props;return typeof e=="function"?e({error:this.state.error,resetError:this.resetError}):e!==void 0?e:w4(this.state.error)?v.jsx(S4,{}):Gce(this.state.error)?v.jsx(Hce,{}):v.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[v.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:v.jsx(TE,{className:"h-6 w-6 text-destructive"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h3",{className:"text-lg font-medium",children:a("common.errorBoundary.somethingWentWrong")}),v.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||a("common.errorBoundary.unexpectedError")})]}),v.jsx(vn,{variant:"outline",onClick:this.resetError,children:a("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Kce(t){const e=ye.c(3),a=qo();let o;return e[0]!==t||e[1]!==a?(o=v.jsx(Wce,{...t,t:a}),e[0]=t,e[1]=a,e[2]=o):o=e[2],o}class Yce extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,a){console.error("Uncaught error:",e,a);const o=Z2(e);if(T4(e,{boundary:"chunk_root",is_chunk_load_error:o,error_name:e.name,error_message:e.message,component_stack:a.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!o)return;const n=sessionStorage.getItem(Y2),r=Date.now();(!n||r-Number(n)>1e4)&&(sessionStorage.setItem(Y2,String(r)),window.location.reload())}render(){const{t:e}=this.props;return this.state.hasError&&Z2(this.state.error)?v.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[v.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:v.jsx(Wj,{className:"h-6 w-6 text-primary"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.newVersionAvailable")}),v.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e("common.errorBoundary.newVersionDeployed")})]}),v.jsx(vn,{onClick:()=>window.location.reload(),children:e("common.errorBoundary.refresh")})]}):this.state.hasError?w4(this.state.error)?v.jsx(S4,{}):v.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[v.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:v.jsx(TE,{className:"h-6 w-6 text-destructive"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.somethingWentWrong")}),v.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||e("common.errorBoundary.unexpectedError")})]}),v.jsx(vn,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:e("common.errorBoundary.tryAgain")})]}):this.props.children}}function Zce(t){const e=ye.c(3),a=qo();let o;return e[0]!==t||e[1]!==a?(o=v.jsx(Yce,{...t,t:a}),e[0]=t,e[1]=a,e[2]=o):o=e[2],o}const Qce=Ql("surface flex flex-col gap-4",{variants:{size:{default:"p-5",tile:"gap-3 p-4",flush:"p-0"},interactive:{true:"surface-interactive focus-ring cursor-pointer text-left",false:""}},defaultVariants:{size:"default",interactive:!1}});function Jce(t){const e=ye.c(14);let a,o,n,r,i;e[0]!==t?({className:a,size:r,interactive:o,asChild:i,...n}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n,e[4]=r,e[5]=i):(a=e[1],o=e[2],n=e[3],r=e[4],i=e[5]);const d=(i===void 0?!1:i)?rv:"div";let u;e[6]!==a||e[7]!==o||e[8]!==r?(u=Qe(Qce({size:r,interactive:o}),a),e[6]=a,e[7]=o,e[8]=r,e[9]=u):u=e[9];let m;return e[10]!==d||e[11]!==n||e[12]!==u?(m=v.jsx(d,{"data-slot":"card",className:u,...n}),e[10]=d,e[11]=n,e[12]=u,e[13]=m):m=e[13],m}function Jwe(t){const e=ye.c(11),{title:a,description:o,docsHref:n,actions:r,className:i,children:c}=t;let d;e[0]!==i?(d=Qe("flex flex-col gap-3",i),e[0]=i,e[1]=d):d=e[1];let u;e[2]!==r||e[3]!==o||e[4]!==n||e[5]!==a?(u=(a||o||n||r)&&v.jsxs("div",{className:"flex items-center justify-between gap-3 px-4",children:[v.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[a&&v.jsx("h2",{className:"text-base font-medium leading-tight",children:a}),(o||n)&&v.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[o,n&&v.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",v.jsx(Fj,{size:12})]})]})]}),r&&v.jsx("div",{className:"shrink-0",children:r})]}),e[2]=r,e[3]=o,e[4]=n,e[5]=a,e[6]=u):u=e[6];let m;return e[7]!==c||e[8]!==d||e[9]!==u?(m=v.jsxs("section",{className:d,children:[u,c]}),e[7]=c,e[8]=d,e[9]=u,e[10]=m):m=e[10],m}function Xwe(t){const e=ye.c(11),{className:a,children:o}=t;let n,r,i;if(e[0]!==o||e[1]!==a){const d=A.Children.toArray(o).filter(A.isValidElement);n=Jce,e[5]!==a?(r=Qe("p-0 gap-0 overflow-hidden",a),e[5]=a,e[6]=r):r=e[6],i=d.map(Xce),e[0]=o,e[1]=a,e[2]=n,e[3]=r,e[4]=i}else n=e[2],r=e[3],i=e[4];let c;return e[7]!==n||e[8]!==r||e[9]!==i?(c=v.jsx(n,{className:r,children:i}),e[7]=n,e[8]=r,e[9]=i,e[10]=c):c=e[10],c}function Xce(t,e){return v.jsxs("div",{children:[e>0&&v.jsx("div",{className:"h-px bg-border mx-5"}),t]},e)}function e0e(t){const e=ye.c(27),{icon:a,title:o,description:n,action:r,onClick:i,className:c,children:d}=t,u=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",m=i&&"hover:bg-accent cursor-pointer";let h;e[0]!==c||e[1]!==u||e[2]!==m?(h=Qe(u,m,c),e[0]=c,e[1]=u,e[2]=m,e[3]=h):h=e[3];const f=i?"button":void 0,b=i?0:void 0;let y;e[4]!==i?(y=i?_=>{_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),i())}:void 0,e[4]=i,e[5]=y):y=e[5];let T;e[6]!==a?(T=a&&v.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:a}),e[6]=a,e[7]=T):T=e[7];let x;e[8]!==o?(x=v.jsx("div",{className:"text-sm font-medium",children:o}),e[8]=o,e[9]=x):x=e[9];let w;e[10]!==n?(w=n&&v.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),e[10]=n,e[11]=w):w=e[11];let P;e[12]!==d||e[13]!==x||e[14]!==w?(P=v.jsxs("div",{className:"flex-1 min-w-0",children:[x,w,d]}),e[12]=d,e[13]=x,e[14]=w,e[15]=P):P=e[15];let k;e[16]!==r?(k=r&&v.jsx("div",{className:"shrink-0",onClick:ede,children:r}),e[16]=r,e[17]=k):k=e[17];let E;return e[18]!==i||e[19]!==P||e[20]!==k||e[21]!==h||e[22]!==f||e[23]!==b||e[24]!==y||e[25]!==T?(E=v.jsxs("div",{className:h,onClick:i,role:f,tabIndex:b,onKeyDown:y,children:[T,P,k]}),e[18]=i,e[19]=P,e[20]=k,e[21]=h,e[22]=f,e[23]=b,e[24]=y,e[25]=T,e[26]=E):E=e[26],E}function ede(t){return t.stopPropagation()}function t0e(t){const e=ye.c(5),{className:a,children:o}=t;let n;e[0]!==a?(n=Qe("px-4 py-4",a),e[0]=a,e[1]=n):n=e[1];let r;return e[2]!==o||e[3]!==n?(r=v.jsx("div",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=r):r=e[4],r}function a0e(t){const e=ye.c(5),{children:a,className:o}=t;let n;e[0]!==o?(n=Qe("flex items-center justify-end gap-2 px-4 py-4",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=v.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}function tde(t){const e=ye.c(5),{className:a,children:o}=t;let n;e[0]!==a?(n=Qe("flex flex-col gap-10",a),e[0]=a,e[1]=n):n=e[1];let r;return e[2]!==o||e[3]!==n?(r=v.jsx("div",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=r):r=e[4],r}const yv={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:Qj,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:Yj,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:Uj,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:Kj,labelKey:"settings.subnav.infrastructure",to:"/$org/settings/infra-billing",requires:"members:manage",requiresOwnedSites:!0}]},repositories:{key:"repositories",titleKey:"settings.nav.repositories",tabs:[],ownedRoutes:["/$org/settings/repositories"]},storage:{key:"storage",titleKey:"settings.nav.storage",tabs:[{key:"buckets",icon:Vj,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:$j,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function o0e(t){const e=yv[t];return[...e.tabs.map(a=>a.to),...e.ownedRoutes??[]]}function n0e(t){return yv[t].tabs.length>0}const ade=new Set(["owner","admin"]);function x4(){const t=ye.c(11),{org:e,locator:a}=Ki();let o;t[0]!==a?(o=eo.myCapabilities(a),t[0]=a,t[1]=o):o=t[1];let n;t[2]!==e?(n=async()=>{const m=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(e.slug)}`,{credentials:"include"});if(!m.ok)throw new Error(`my-capabilities request failed: ${m.status}`);return await m.json()},t[2]=e,t[3]=n):n=t[3];let r;t[4]!==o||t[5]!==n?(r={queryKey:o,queryFn:n,staleTime:3e4,retry:2},t[4]=o,t[5]=n,t[6]=r):r=t[6];const{data:i,isLoading:c,isError:d}=Hi(r);let u;return t[7]!==i||t[8]!==d||t[9]!==c?(u={data:i,loading:c,error:d},t[7]=i,t[8]=d,t[9]=c,t[10]=u):u=t[10],u}function r0e(t){const e=ye.c(8),{data:a,loading:o,error:n}=x4();if(o){let u;return e[0]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!0,error:!1,reason:"loading"},e[0]=u):u=e[0],u}if(n){let u;return e[1]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!0,reason:"error"},e[1]=u):u=e[1],u}const r=a?.role??null;if(!r){let u;return e[2]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!1,reason:"denied"},e[2]=u):u=e[2],u}if(r==="owner"){let u;return e[3]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"owner"},e[3]=u):u=e[3],u}if(r==="admin"){let u;return e[4]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"admin"},e[4]=u):u=e[4],u}const i=a?.capabilities?.[t]===!0,c=i?"role":"denied";let d;return e[5]!==i||e[6]!==c?(d={granted:i,loading:!1,error:!1,reason:c},e[5]=i,e[6]=c,e[7]=d):d=e[7],d}function P4(){const t=ye.c(10),{data:e,loading:a,error:o}=x4(),n=e?.role??void 0;let r;t[0]!==n?(r=n?ade.has(n):!1,t[0]=n,t[1]=r):r=t[1];const i=r;let c;t[2]!==e?.capabilities?(c=e?.capabilities??{},t[2]=e?.capabilities,t[3]=c):c=t[3];const d=c;let u;return t[4]!==o||t[5]!==i||t[6]!==a||t[7]!==n||t[8]!==d?(u={capabilities:d,loading:a,error:o,isPrivileged:i,roleSlug:n},t[4]=o,t[5]=i,t[6]=a,t[7]=n,t[8]=d,t[9]=u):u=t[9],u}function ode(){const t=ye.c(13),{org:e}=Ki(),a=VP(),{capabilities:o,isPrivileged:n}=P4(),r=n||!!o["members:manage"];let i;t[0]!==e.id?(i=eo.infraBillingSites(e.id),t[0]=e.id,t[1]=i):i=t[1];const c=!!e.id&&r;let d;t[2]!==a?(d=()=>a.call("INFRA_BILLING_SITES_LIST",{}),t[2]=a,t[3]=d):d=t[3];let u;t[4]!==i||t[5]!==c||t[6]!==d?(u={queryKey:i,staleTime:3e5,enabled:c,queryFn:d},t[4]=i,t[5]=c,t[6]=d,t[7]=u):u=t[7];const{data:m,isLoading:h}=Hi(u);let f;t[8]!==m?.sites?(f=m?.sites.map(nde)??[],t[8]=m?.sites,t[9]=f):f=t[9];let b;return t[10]!==h||t[11]!==f?(b={sites:f,isLoading:h},t[10]=h,t[11]=f,t[12]=b):b=t[12],b}function nde(t){return t.slug}function s0e(){const t=ye.c(7),e=VP(),a=qo();let o;t[0]!==e?(o=i=>e.call("INFRA_BILLING_PORTAL",{siteSlugs:i}),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==a?(n=i=>Id.error(a("settings.infraBilling.portalError",{message:i.message})),t[2]=a,t[3]=n):n=t[3];let r;return t[4]!==o||t[5]!==n?(r={mutationFn:o,onSuccess:rde,onError:n},t[4]=o,t[5]=n,t[6]=r):r=t[6],ff(r)}function rde(t){const{url:e}=t;return window.open(e,"_blank","noopener,noreferrer")}function i0e(t,e){const a=ye.c(14),{org:o}=Ki(),n=VP();let r,i,c;a[0]!==o.id||a[1]!==e||a[2]!==t?(r=[...t].sort(),c=Hi,i=eo.infraBilling(o.id,r.join(","),e),a[0]=o.id,a[1]=e,a[2]=t,a[3]=r,a[4]=i,a[5]=c):(r=a[3],i=a[4],c=a[5]);const d=r.length>0;let u;a[6]!==e||a[7]!==r||a[8]!==n?(u=()=>n.call("INFRA_BILLING_GET",{siteSlugs:r,period:e}),a[6]=e,a[7]=r,a[8]=n,a[9]=u):u=a[9];let m;return a[10]!==i||a[11]!==d||a[12]!==u?(m={queryKey:i,enabled:d,staleTime:6e4,queryFn:u},a[10]=i,a[11]=d,a[12]=u,a[13]=m):m=a[13],c(m)}function sde(){const t=ye.c(7),{capabilities:e,isPrivileged:a,loading:o,error:n}=P4(),{sites:r,isLoading:i}=ode(),c=r.length>0;let d;if(t[0]!==e||t[1]!==n||t[2]!==a||t[3]!==o||t[4]!==c||t[5]!==i){const u=m=>m.requiresOwnedSites&&!c&&!i?!1:o||n?!0:m.privilegedOnly?a:m.requires?a||e[m.requires]:!0;d=Object.fromEntries(Object.values(yv).map(m=>[m.key,m.tabs.filter(u)])),t[0]=e,t[1]=n,t[2]=a,t[3]=o,t[4]=c,t[5]=i,t[6]=d}else d=t[6];return d}function ide(t){const e=ye.c(16),{group:a}=t,o=qo();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},e[0]=n):n=e[0];const{org:r}=rm(n);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:lde},e[1]=i):i=e[1];const c=gP(i),d=sde()[a],{titleKey:u}=yv[a];let m;e[2]!==o||e[3]!==u?(m=o(u),e[2]=o,e[3]=u,e[4]=m):m=e[4];let h;e[5]!==m?(h=v.jsx(xd.Title,{children:m}),e[5]=m,e[6]=h):h=e[6];let f;e[7]!==a||e[8]!==r||e[9]!==c||e[10]!==o||e[11]!==d?(f=d.length>1&&v.jsx(pn.Toolbar.Left.Portal,{children:v.jsx(xd.Tabs,{"data-testid":"settings-subnav","aria-label":o("settings.subnav.ariaLabel"),children:d.map(y=>{const T=y.to.replace("$org",r),x=c===T||c.startsWith(`${T}/`);return v.jsx(xd.Tab,{active:x,asChild:!0,children:v.jsx(Kl,{to:y.to,params:{org:r},onClick:()=>y4("settings_subnav_clicked",{group_key:a,tab_key:y.key}),children:o(y.labelKey)})},y.key)})})}),e[7]=a,e[8]=r,e[9]=c,e[10]=o,e[11]=d,e[12]=f):f=e[12];let b;return e[13]!==h||e[14]!==f?(b=v.jsxs(v.Fragment,{children:[h,f]}),e[13]=h,e[14]=f,e[15]=b):b=e[15],b}function lde(t){return t.location.pathname}function E4(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=v.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[v.jsx(vO,{className:"h-32 w-full"}),v.jsx(vO,{className:"h-32 w-full"})]}),t[0]=e):e=t[0],e}function cde(t){const e=ye.c(14),{group:a,fallback:o,errorFallback:n,className:r,children:i}=t;let c;e[0]!==a?(c=v.jsx(ide,{group:a}),e[0]=a,e[1]=c):c=e[1];let d;e[2]!==o?(d=o??v.jsx(E4,{}),e[2]=o,e[3]=d):d=e[3];let u;e[4]!==i||e[5]!==d?(u=v.jsx(A.Suspense,{fallback:d,children:i}),e[4]=i,e[5]=d,e[6]=u):u=e[6];let m;e[7]!==n||e[8]!==u?(m=v.jsx(Kce,{fallback:n,children:u}),e[7]=n,e[8]=u,e[9]=m):m=e[9];let h;return e[10]!==r||e[11]!==c||e[12]!==m?(h=v.jsx(xd,{children:v.jsx(xd.Content,{children:v.jsx(xd.Container,{children:v.jsxs(tde,{className:r,children:[c,m]})})})}),e[10]=r,e[11]=c,e[12]=m,e[13]=h):h=e[13],h}function Us(t){return function(){return v.jsx(cde,{group:t,children:v.jsx(E4,{})})}}function dde(t,e){const a=t&&e?rJ(e,t):null;return{queryKey:eo.activeOrganization(t),queryFn:async()=>{if(!t)return null;const o={organizationSlug:t};performance.mark("mesh:active-org-fetch:start");const{data:n}=await ro.organization.getFullOrganization({query:o}).finally(()=>{performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}),r=TB(n);return n&&!r&&localStorage.setItem(Zi.lastOrgSlug(),t),e&&n&&sJ(e,t,n),n},initialData:a?a.data:void 0,initialDataUpdatedAt:a?.updatedAt,gcTime:1/0,refetchOnWindowFocus:!1}}async function ude(t){await wB();const e=zX();e&&await Zl.ensureQueryData(dde(t,e)).catch(()=>{})}function pde(t){try{localStorage.setItem(Zi.lastLocation(),JSON.stringify(t))}catch{}}function mde(){try{const t=localStorage.getItem(Zi.lastLocation());if(!t)return null;const e=JSON.parse(t);if(typeof e?.org=="string")return{org:e.org}}catch{}return null}function l0e(){try{localStorage.removeItem(Zi.lastLocation())}catch{}}const ft={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",threadAnalytics:"/$org/thread-analytics",discover:"/$org/discover",plan:"/$org/plan",monitoring:"/$org/monitoring",orgIndex:"/$org/"},tt={root:ft.projects,tasks:"/$org/projects/$agentId/tasks/{-$taskKey}",reports:"/$org/projects/$agentId/reports",siteEditor:"/$org/projects/$agentId/site-editor",siteEditorContent:"/$org/projects/$agentId/site-editor/content",siteEditorCode:"/$org/projects/$agentId/site-editor/code",automations:"/$org/projects/$agentId/automations",automation:"/$org/projects/$agentId/automations/$automationId",app:"/$org/projects/$agentId/apps/$connectionId/$toolName",view:"/$org/projects/$agentId/views/$viewId",outputFile:"/$org/projects/$agentId/outputs/file",outputDeck:"/$org/projects/$agentId/outputs/deck",library:"/$org/projects/$agentId/library",libraryFile:"/$org/projects/$agentId/library/file",connectSources:"/$org/projects/$agentId/connect-sources",settings:"/$org/projects/$agentId/settings",assets:"/$org/projects/$agentId/assets",releases:"/$org/projects/$agentId/releases",hosting:"/$org/projects/$agentId/hosting",e2e:"/$org/projects/$agentId/e2e",analytics:"/$org/projects/$agentId/analytics",experiments:"/$org/projects/$agentId/experiments",calendar:"/$org/projects/$agentId/calendar",monitor:"/$org/projects/$agentId/cdn",plan:"/$org/projects/$agentId/plan",monitoring:"/$org/projects/$agentId/monitoring"};function c0e(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:hde},t[0]=e):e=t[0],gP(e)}function hde(t){return t.matches.at(-1)?.fullPath??""}const gde=new Map([[ft.reports,"project-only"],[ft.library,"org-only"],[ft.threadAnalytics,"org-only"]]);function d0e(t,e){const a=gde.get(t);return a===void 0?!0:a==="project-only"?e!==null:e===null}function u0e(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:fde},t[0]=e):e=t[0],gP(e)}function fde(t){return t.matches.findLast(bde)?.staticData.mainView}function bde(t){return t.staticData.mainView}function kf(t){return`agent-view:${encodeURIComponent(t)}`}function vde(t){if(!t?.startsWith("agent-view:"))return null;const e=t.slice(11);if(!e)return null;try{const a=decodeURIComponent(e);return a?{id:a}:null}catch{return null}}function C4(t){if(!t||!t.startsWith("automation:"))return null;const e=t.slice(11);return e?{id:e}:null}function FE(t,e){return`app:${t}:${e}`}function yde(t){if(!t||!t.startsWith("app:"))return null;const e=t.slice(4),a=e.indexOf(":");if(a<=0)return null;const o=e.slice(0,a),n=e.slice(a+1);return!o||!n?null:{connectionId:o,toolName:n}}function k4(t){return`deck:${encodeURIComponent(t)}`}function Tde(t){if(!t||!t.startsWith("deck:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function _4(t){return`file:${encodeURIComponent(t)}`}function Sde(t){if(!t||!t.startsWith("file:"))return null;const e=t.slice(5);if(!e)return null;try{return{key:decodeURIComponent(e)}}catch{return null}}function A4(t){return`library-file:${encodeURIComponent(t)}`}function wde(t){if(!t||!t.startsWith("library-file:"))return null;const e=t.slice(13);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function R4(t){return`code:${encodeURIComponent(t)}`}function xde(t){if(!t)return null;if(t==="code")return{path:null};if(!t.startsWith("code:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}const D4=["overview","settings","automations","site-editor","code","content","assets","hosting","e2e","analytics","cdn"],Pde=new Set(D4),O4=new Set(["hosting","e2e","analytics","cdn"]),Ede=new Set(["board","files","connect-sources","reports"]);function p0e(t){return t.startsWith("app:")||t.startsWith("automation:")||t.startsWith("file:")||t.startsWith("deck:")||t.startsWith("library-file:")||t.startsWith("code:")}const Cde=new Map([["preview","site-editor"],["git","site-editor"]]);function Tv(t){return Cde.get(t)??t}const jE=new Set(["instructions","connections","layout","settings"]);function kde(t){return!!t&&jE.has(t)}const _de=new Set(["overview","board","reports"]);function m0e(t){const e=t?.defaultMainView??null;if(!(!e||e.type==="chat"))return N4(t??null)}function N4(t){const e=t?.defaultMainView??null;if(!e)return"settings";const a=Tv(e.type);if(jE.has(a))return"settings";if(Pde.has(a)||_de.has(a))return a;if(a==="ext-app"||a==="ext-apps"){if(e.id&&e.toolName)return FE(e.id,e.toolName);const n=t?.tabs?.map(r=>r.id)??[];return e.id&&n.includes(e.id)?kf(e.id):n[0]?kf(n[0]):"settings"}const o=t?.tabs?.[0]?.id;return o?kf(o):"settings"}function h0e(t){const e=t.routeDefaultMain||N4(t.metadata),a=t.panelTabId&&jE.has(t.panelTabId)?"settings":t.panelTabId?Tv(t.panelTabId):t.panelTabId,o=t.metadata?.defaultMainView??null,n=o==null||o.type==="chat";return{mainOpen:t.mainPanelParam??(!!a||!!t.routeDefaultMain||!n),activeTab:a??e}}function g0e(t){return t.mainOpen&&t.clickedId===t.activeTab?{close:!0}:{tabId:t.clickedId}}function f0e(t){return t.mainOpen?t.activeTab==="automations"?!0:C4(t.activeTab)!==null:!1}const Ade=new Set([...D4.filter(t=>!O4.has(t)),...Ede,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function Rde(t){return!!t&&Ade.has(t)}function Dde(t,e){if(t)switch(t){case"app":return e.connection&&e.tool?FE(e.connection,e.tool):void 0;case"automations":return e.automation?`automation:${e.automation}`:"automations";case"file":return e.key?_4(e.key):void 0;case"deck":return e.deck?k4(e.deck):void 0;case"library-file":return e.path?A4(e.path):void 0;case"code":return e.file?R4(e.file):"code";default:{const a=Tv(t);return a==="site-editor"&&e.main==="content"?"content":a}}}function b0e(t){const e=t.params??{},a=t.search??{};if(t.siteEditorView==="content")return"content";if(t.siteEditorView==="code")return a.file?R4(a.file):"code";if(t.siteEditorView==="preview")return"site-editor";switch(t.mainView){case"automation":return e.automationId?`automation:${e.automationId}`:"automations";case"app":return e.connectionId&&e.toolName?FE(e.connectionId,e.toolName):void 0;case"view":return e.viewId?kf(e.viewId):void 0;case"file":return a.key?_4(a.key):void 0;case"deck":return a.path?k4(a.path):void 0;case"library-file":return a.path?A4(a.path):void 0;default:return t.mainView}}const Ode={files:"library",discover:"discover"},Nde={board:"tasks",reports:"reports",plan:"plan",monitoring:"monitoring"},Mde={settings:"settings",assets:"assets",releases:"releases",hosting:"hosting",e2e:"e2e",analytics:"analytics",experiments:"experiments",calendar:"calendar",cdn:"monitor"};function M4(t){const e=vde(t);if(e)return{kind:"agent-view",viewId:e.id};const a=yde(t);if(a)return{kind:"app",connectionId:a.connectionId,toolName:a.toolName};const o=C4(t);if(o)return{kind:"automations",automationId:o.id};const n=Sde(t);if(n)return{kind:"output-file",key:n.key};const r=Tde(t);if(r)return{kind:"output-deck",path:r.path};const i=wde(t);if(i)return{kind:"library-file",path:i.path};const c=xde(t);if(c)return{kind:"site-editor",view:"code",...c.path?{file:c.path}:{}};if(kde(t))return{kind:"agent-section",section:"settings"};const d=Tv(t);if(d==="overview")return{kind:"agent-overview"};if(d==="site-editor")return{kind:"site-editor",view:"preview"};if(d==="content")return{kind:"site-editor",view:"content"};if(d==="automations")return{kind:"automations"};if(d==="connect-sources")return{kind:"connect-sources"};const u=Nde[d];if(u)return{kind:"project-destination",destination:u};const m=Ode[d];if(m)return{kind:"org-destination",destination:m};const h=Mde[d];return h?{kind:"agent-section",section:h}:{kind:"agent-view",viewId:d}}function $l(t){const{org:e,agentId:a}=t,o={org:e,agentId:a},n=M4(t.tabId);switch(n.kind){case"project-destination":{const r=t.destinationScope==="organization";switch(n.destination){case"tasks":return r?{to:ft.tasks,params:{org:e,taskKey:t.taskKey},search:{}}:{to:tt.tasks,params:{...o,taskKey:t.taskKey},search:{}};case"reports":return r?{to:ft.reports,params:{org:e},search:{}}:{to:tt.reports,params:o,search:{}};case"plan":return r?{to:ft.plan,params:{org:e},search:{}}:{to:tt.plan,params:o,search:{}};case"monitoring":return r?{to:ft.monitoring,params:{org:e},search:{}}:{to:tt.monitoring,params:o,search:{}}}}case"org-destination":switch(n.destination){case"home":return{to:ft.home,params:{org:e},search:{}};case"discover":return{to:ft.discover,params:{org:e},search:{}};case"library":return{to:ft.library,params:{org:e},search:{}}}case"agent-overview":return{to:tt.root,params:o,search:{}};case"site-editor":return n.view==="content"?{to:tt.siteEditorContent,params:o,search:{}}:n.view==="code"?{to:tt.siteEditorCode,params:o,search:{file:n.file}}:{to:tt.siteEditor,params:o,search:{}};case"agent-section":return{to:tt[n.section],params:o,search:{}};case"automations":return n.automationId?{to:tt.automation,params:{...o,automationId:n.automationId},search:{}}:{to:tt.automations,params:o,search:{}};case"app":return{to:tt.app,params:{...o,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:tt.view,params:{...o,viewId:n.viewId},search:{}};case"output-file":return{to:tt.outputFile,params:o,search:{key:n.key}};case"output-deck":return{to:tt.outputDeck,params:o,search:{path:n.path}};case"library-file":return{to:tt.libraryFile,params:o,search:{path:n.path}};case"connect-sources":return{to:tt.connectSources,params:o,search:{}}}}function v0e(t){if(!t.agentId||t.agentId===t.superAgentId&&(t.tabId===void 0||t.tabId==="overview"))return{to:ft.home,params:{org:t.org},search:{}};const e=t.tabId??"overview",a=t.agentId!==t.superAgentId&&M4(e).kind==="org-destination"?"overview":e;return $l({org:t.org,agentId:t.agentId,tabId:a,destinationScope:t.agentId===t.superAgentId?"organization":"project"})}function Ide(t,e,a={}){const o=r=>({...a.search?.(r)??{},...e.search}),n=a.replace??!0;switch(e.to){case ft.tasks:t({to:ft.tasks,params:e.params,search:o,replace:n});return;case ft.home:t({to:ft.home,params:e.params,search:o,replace:n});return;case ft.reports:t({to:ft.reports,params:e.params,search:o,replace:n});return;case ft.discover:t({to:ft.discover,params:e.params,search:o,replace:n});return;case ft.plan:t({to:ft.plan,params:e.params,search:o,replace:n});return;case ft.monitoring:t({to:ft.monitoring,params:e.params,search:o,replace:n});return;case ft.library:t({to:ft.library,params:e.params,search:o,replace:n});return;case tt.root:t({to:tt.root,params:e.params,search:o,replace:n});return;case tt.tasks:t({to:tt.tasks,params:e.params,search:o,replace:n});return;case tt.reports:t({to:tt.reports,params:e.params,search:o,replace:n});return;case tt.plan:t({to:tt.plan,params:e.params,search:o,replace:n});return;case tt.monitoring:t({to:tt.monitoring,params:e.params,search:o,replace:n});return;case tt.siteEditor:t({to:tt.siteEditor,params:e.params,search:o,replace:n});return;case tt.siteEditorContent:t({to:tt.siteEditorContent,params:e.params,search:o,replace:n});return;case tt.siteEditorCode:t({to:tt.siteEditorCode,params:e.params,search:o,replace:n});return;case tt.automations:t({to:tt.automations,params:e.params,search:o,replace:n});return;case tt.automation:t({to:tt.automation,params:e.params,search:o,replace:n});return;case tt.app:t({to:tt.app,params:e.params,search:o,replace:n});return;case tt.view:t({to:tt.view,params:e.params,search:o,replace:n});return;case tt.outputFile:t({to:tt.outputFile,params:e.params,search:o,replace:n});return;case tt.outputDeck:t({to:tt.outputDeck,params:e.params,search:o,replace:n});return;case tt.libraryFile:t({to:tt.libraryFile,params:e.params,search:o,replace:n});return;case tt.connectSources:t({to:tt.connectSources,params:e.params,search:o,replace:n});return;case tt.settings:case tt.assets:case tt.releases:case tt.hosting:case tt.e2e:case tt.analytics:case tt.experiments:case tt.calendar:case tt.monitor:t({to:e.to,params:e.params,search:o,replace:n})}}function y0e(t,e){Ide(t,$l(e),e)}function Lde(t){const e=/^(\/[^/]+)\/agents(?=\/|$)/.exec(t);return e?.[1]?`${e[1]}/projects${t.slice(e[0].length)}`:null}function Bde(t){const e=t.split("/").filter(Boolean);return(e[1]==="projects"||e[1]==="agents")&&e.length>3}const Fde=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),I4=new Set(["main"]),jde=new Set(["virtualmcpid"]);function Sv(t,e){return Object.fromEntries(Object.entries(t).filter(([a])=>!e.has(a)))}function jl(t,e){return{...Sv(t,Fde),...e.search}}function zde(t){return Sv(t,jde)}function T0e(t){if(t.search.virtualmcpid===void 0)return null;const e=Pr(t.search.virtualmcpid);if(e){const a=t.routePath===ft.tasks?"board":t.routePath===ft.reports?"reports":null;if(t.routePath===ft.home||a){const o=a?$l({org:t.org,agentId:e,tabId:a}):Vd(t.org,e);return{kind:"canonical",route:o,search:jl(t.search,o)}}}return t.routePath===ft.home||t.routePath===ft.tasks||t.routePath===ft.reports||t.routePath===ft.library?{kind:"same-route",search:zde(t.search)}:null}function Pr(t){return t?.trim()||void 0}function L4(t){return Rde(t)||t!==void 0&&O4.has(t)}function B4(t){const e=Pr(t);return e?e.startsWith("vir_")&&e.length>4||zL(e)!==null||MY(e)!==null||IY(e)!==null||qL(e)||$L(e):!1}function Ude(t){const e=Pr(t.agentIdParam),a=L4(e);return e&&!a?e:Pr(t.virtualMcpIdSearch)??Pr(t.fallbackAgentId)}function S0e(t){const e=t.pathAgentId;if(e&&t.pathLegacyView){const i=_x({org:t.org,agentId:e,panel:t.pathLegacyView,source:"project-first",search:t.search});return i?.kind==="canonical"?{route:i.route,search:i.search}:null}if(!e||Bde(t.pathname))return null;const a=t.search.virtualmcpid!==void 0&&!B4(e);if(!(L4(e)||a))return null;const n=Ude({agentIdParam:a?void 0:e,virtualMcpIdSearch:t.search.virtualmcpid,fallbackAgentId:t.fallbackAgentId}),r=_x({org:t.org,agentId:n,panel:e,source:"view-first",search:t.search});return r?.kind==="canonical"?{route:r.route,search:r.search}:null}function qde(t,e,a,o){const n=Pr(o);switch(t){case"board":return n?$l({org:e,agentId:n,tabId:"board"}):{to:ft.tasks,params:{org:e,taskKey:void 0},search:{}};case"files":{const r=Ci(a.path);return{to:ft.library,params:{org:e},search:r?{path:r}:{}}}case"reports":return n?$l({org:e,agentId:n,tabId:"reports"}):{to:ft.reports,params:{org:e},search:{}};case"overview":return{to:ft.home,params:{org:e},search:{}};case"discover":return{to:ft.discover,params:{org:e},search:{}};default:return null}}function Jp(t){const e=qde(t.tabId,t.org,t.search,t.agentId);if(e)return e;if(t.tabId==="chat")return Vd(t.org,t.agentId);const a=Pr(t.agentId);return a?t.tabId==="app"||t.tabId==="file"||t.tabId==="deck"||t.tabId==="library-file"||t.tabId.trim()===""?{to:tt.root,params:{org:t.org,agentId:a},search:{}}:$l({org:t.org,agentId:a,tabId:t.tabId}):null}function Vd(t,e){const a=Pr(e);return a?{to:tt.root,params:{org:t,agentId:a},search:{}}:{to:ft.home,params:{org:t},search:{}}}function $de(t){const{main:e}=t;if(e===void 0)return null;const a=t.search??{};if(e===0||e==="0")return{kind:"same-route",search:{...Sv(a,I4),mainpanel:!1}};if(e==="chat"){const n=Vd(t.org,t.agentId);return{kind:"canonical",route:n,search:{...jl(a,n),sidepanel:!0,mainpanel:!1}}}const o=Jp({org:t.org,agentId:t.agentId,tabId:e,search:a});return o?{kind:"canonical",route:o,search:jl(a,o)}:null}function Ci(t){return typeof t=="string"&&t.length>0?t:void 0}function _x(t){const e=t.search??{};if((e.main===0||e.main==="0")&&t.panel){const i=_x({...t,search:Sv(e,I4)});return i?.kind!=="canonical"?i:{...i,search:{...i.search,mainpanel:!1}}}if(e.main!==void 0)return $de({org:t.org,agentId:t.agentId,main:e.main,search:e});const a=Pr(t.agentId),o=t.panel;if(!o){const i=Vd(t.org,a);return{kind:"canonical",route:i,search:jl(e,i)}}const n=Dde(o,{file:Ci(e.file),key:Ci(e.key),deck:Ci(e.deck),path:Ci(e.path),connection:Ci(e.connection),tool:Ci(e.tool),automation:Ci(e.automation)}),r=n?t.source==="project-first"&&n==="overview"&&a?$l({org:t.org,agentId:a,tabId:n}):Jp({org:t.org,agentId:a,tabId:n,search:e}):Jp({org:t.org,agentId:a,tabId:"",search:e});return r?{kind:"canonical",route:r,search:n==="chat"?{...jl(e,r),sidepanel:!0,mainpanel:!1}:jl(e,r)}:null}function w0e(t){const e=t.search??{},a=Pr(e.virtualmcpid),o=Pr(t.fallbackAgentId),n=e.main;let r;if(n==="chat")r=Vd(t.org,a);else if(n!==void 0&&n!==0&&n!=="0"){const i=Jp({org:t.org,agentId:a,tabId:n,search:e}),c=!i&&n.trim().length>0&&o?Jp({org:t.org,agentId:o,tabId:n,search:e}):null;r=i??c??{to:ft.home,params:{org:t.org},search:{}}}else r=Vd(t.org,a);return{route:r,search:{...jl(e,r),...n===void 0&&e.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:t.taskId}}}function F4(t,e){if(e.task===void 0)return null;const{task:a,...o}=e;return{taskKey:t??(a.trim()||void 0),search:o}}const pw=Rt().int().nonnegative().optional().catch(void 0),Vde={contentPageId:$().optional(),contentPath:$().optional(),contentPathTemplate:$().optional(),contentCollection:$().optional(),contentItem:$().optional(),contentPageVariant:pw,contentSection:pw,contentVariant:pw};function x0e(t){const e={};return t.contentPageVariant!==void 0&&(e.pageVariant=t.contentPageVariant),t.contentSection!==void 0&&(e.section=t.contentSection),t.contentVariant!==void 0&&(e.variant=t.contentVariant),Object.keys(e).length>0?e:null}const j4=Vde,zE={view:$().optional(),group:$().optional(),subgroup:$().optional(),sort:$().optional(),dir:$().optional(),q:$().optional(),assignee:$().optional(),priority:$().optional(),due:$().optional(),tags:$().optional(),repo:$().optional(),sprint:$().optional(),boardOrg:$().optional()},Hde=["files","brand","connections","repositories","skills","memory","instructions","general","site"],Cb={fileView:sa(["all","documents","media"]).catch("all").optional(),modified:sa(["any","today","week","month"]).catch("any").optional(),layout:sa(["list","grid"]).catch("list").optional(),sort:sa(["name","updated","size"]).catch("name").optional(),path:$().optional(),preview:$().optional(),expanded:d0().optional().catch(void 0),skill:$().optional(),brand:$().optional(),section:sa(Hde).catch("files").optional(),scope:sa(["user"]).optional().catch(void 0),action:sa(["create"]).optional().catch(void 0)},Gde={file:$().optional(),key:$().optional(),deck:$().optional(),path:$().optional(),connection:$().optional(),tool:$().optional(),automation:$().optional(),section:$().optional(),preview:$().optional(),autosend:$().optional(),connect:Kb().optional(),siteUrl:$().optional(),...j4},z4={...Gde,task:$().optional(),project:$().optional(),...zE,skill:Cb.skill,brand:Cb.brand},Sm=Se(z4),Xo=z$({component:()=>v.jsx(Zce,{children:v.jsx(hP,{})})}),Wde=De({getParentRoute:()=>Xo,path:"/login",component:Ie(()=>Le(()=>import("./login-BihXJzl3.js"),__vite__mapDeps([0,1,2,3,4]))),validateSearch:Qr(()=>Se({next:$().optional(),client_id:$().optional(),redirect_uri:$().optional(),response_type:$().optional(),state:$().optional(),scope:$().optional(),code_challenge:$().optional(),code_challenge_method:$().optional(),src:$().optional(),ref:$().optional()}))}),Kde=De({getParentRoute:()=>Xo,path:"/cli/auth-success",component:Ie(()=>Le(()=>import("./cli-auth-success-DQbGXBQ8.js"),__vite__mapDeps([5,4])))}),Yde=De({getParentRoute:()=>Xo,path:"/reset-password",component:Ie(()=>Le(()=>import("./reset-password-B5CUoE5L.js"),[])),validateSearch:Qr(()=>Se({token:$().optional(),error:$().optional()}))}),Zde=De({getParentRoute:()=>Xo,path:"/auth/$pathname",component:Ie(()=>Le(()=>import("./auth-catchall-BbRcVR0n.js"),[]))}),Qde=De({getParentRoute:()=>Xo,path:"/oauth/callback",component:Ie(()=>Le(()=>import("./oauth-callback-DaRDGusD.js"),__vite__mapDeps([6,7,8])))}),Jde=De({getParentRoute:()=>Xo,path:"/oauth/callback/ai-provider",component:Ie(()=>Le(()=>import("./oauth-callback-ai-provider-C_3I8nXc.js"),[]))}),wm=De({getParentRoute:()=>Xo,path:"/_admin",component:Ie(()=>Le(()=>import("./layout-w4WJkju6.js"),__vite__mapDeps([9,10,11])))}),Xde=De({getParentRoute:()=>wm,path:"/",beforeLoad:()=>{throw Xa({to:"/_admin/users"})}}),eue=De({getParentRoute:()=>wm,path:"/users",component:Ie(()=>Le(()=>import("./users-Ca9c6XwH.js"),__vite__mapDeps([12,13,14,15,16,17,18,19,20,21])))}),tue=De({getParentRoute:()=>wm,path:"/orgs",component:Ie(()=>Le(()=>import("./orgs-Cjm59vvP.js"),__vite__mapDeps([22,13,14,15,16,17,18,23,20,24,25,26,27,28,29,19,30,31,21])))}),aue=De({getParentRoute:()=>wm,path:"/prompts",component:Ie(()=>Le(()=>import("./prompts-Bq1kaZc4.js"),__vite__mapDeps([32,16,23,29,21])))}),oue=wm.addChildren([Xde,eue,tue,aue]),UE=De({getParentRoute:()=>Xo,id:"shell",component:Ie(()=>Le(()=>import("./shell-layout-DM_Y3Qes.js").then(t=>t.d),__vite__mapDeps([33,34,35,11,21,36,37,38,15,39,40,41,42,43,27,44,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,62,63,64,8,65,66,67,68,69,70,71,72,23,73,74,75,3,2,76,77,30,78,79,80,26,81,82,83,20,84,10,85,86,87])))}),nue=De({getParentRoute:()=>UE,path:"/",beforeLoad:async()=>{const t=mde();if(t)throw Xa({to:"/$org",params:{org:t.org}});const e=localStorage.getItem(Zi.lastOrgSlug());if(e)throw Xa({to:"/$org",params:{org:e}});const{data:a}=await xB();if(!a)return;const o=a[0];throw Xa(o?{to:"/$org",params:{org:o.slug}}:{to:"/onboarding"})}}),rue=De({getParentRoute:()=>Xo,path:"/onboarding",beforeLoad:async()=>{const{data:t}=await xB();if(t&&t.length>0)throw Xa({to:"/"})},component:Ie(()=>Le(()=>import("./onboarding-CJntlshT.js"),__vite__mapDeps([88,10,4,89,57,23,28,34,43,49,59])))}),U4=Qr(()=>Se({org:$().optional(),siteUrl:$().optional(),fix:$().optional()})),sue=De({getParentRoute:()=>Xo,path:"/reports-onboarding",component:Ie(()=>Le(()=>import("./reports-onboarding-C4wftGuh.js"),__vite__mapDeps([90,91,1,2,3,4,89,57,92,93,23,94,64,8,95,70,40,36,37,38,15,39,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,18,58,59,60,61,80,26,96,97,98,99,20,100,101,102,103,7,104,105,106,107,108,109]))),validateSearch:U4}),iue=De({getParentRoute:()=>Xo,path:"/commerce-onboarding",validateSearch:U4,beforeLoad:({search:t})=>{throw Xa({to:"/reports-onboarding",search:t})}}),lue=De({getParentRoute:()=>Xo,path:"/choose-editor",component:Ie(()=>Le(()=>import("./choose-editor-C1_tJgFB.js"),__vite__mapDeps([110,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,10]))),validateSearch:Qr(()=>Se({site:$().optional(),domain:$().optional(),pageId:$().optional(),path:$().optional(),pathTemplate:$().optional()}))}),qE=De({getParentRoute:()=>Xo,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Ie(()=>Le(()=>import("./site-editor-CKJs9UEN.js"),__vite__mapDeps([111,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,116,117,118,119,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,10,86,87,121,122,123,124,125,126,92,93,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,25,161,162,163,164,165,166,16,28,29,167,168,169,170,171,24,172,173,174,175,17,176,177,178,179,180,181,182,183,184,185,101,186,187,107,188,189,190,191,192,193,194,195,196,197,198,19,199,13,14,200,201,202,203,204,205,206,207,208,209,99,210,211,212,213,214,215,216,217,218,219,220,105,97,106,221,222,223,224,102,103,7,225,226,227,228,229,230,231,232,233])))}),cue=De({getParentRoute:()=>qE,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Ie(()=>Le(()=>import("./site-editor-CKJs9UEN.js"),__vite__mapDeps([111,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,116,117,118,119,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,10,86,87,121,122,123,124,125,126,92,93,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,25,161,162,163,164,165,166,16,28,29,167,168,169,170,171,24,172,173,174,175,17,176,177,178,179,180,181,182,183,184,185,101,186,187,107,188,189,190,191,192,193,194,195,196,197,198,19,199,13,14,200,201,202,203,204,205,206,207,208,209,99,210,211,212,213,214,215,216,217,218,219,220,105,97,106,221,222,223,224,102,103,7,225,226,227,228,229,230,231,232,233])),"SiteEditorPreview")}),due=De({getParentRoute:()=>qE,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Ie(()=>Le(()=>import("./site-editor-CKJs9UEN.js"),__vite__mapDeps([111,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,116,117,118,119,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,10,86,87,121,122,123,124,125,126,92,93,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,25,161,162,163,164,165,166,16,28,29,167,168,169,170,171,24,172,173,174,175,17,176,177,178,179,180,181,182,183,184,185,101,186,187,107,188,189,190,191,192,193,194,195,196,197,198,19,199,13,14,200,201,202,203,204,205,206,207,208,209,99,210,211,212,213,214,215,216,217,218,219,220,105,97,106,221,222,223,224,102,103,7,225,226,227,228,229,230,231,232,233])),"SiteEditorContent")}),uue=De({getParentRoute:()=>Xo,path:"/report/$domain",component:Ie(()=>Le(()=>import("./reports-BMYFg9FF.js"),__vite__mapDeps([234,104,3,1,2,235])))}),wv=De({getParentRoute:()=>UE,path:"/$org",beforeLoad:({params:t})=>{pde({org:t.org})},loader:({params:t})=>ude(t.org),pendingMs:1/0,component:Ie(()=>Le(()=>import("./route-Bzw3itzn.js"),__vite__mapDeps([236,123,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,117,121,124,125,126,92,93,127,128,167,208,237,24,25,29,238,211,114,113,219,168,239,240,241,228,242,19,243,132,244,245,179,177,31,246,201,200,247,196,99,28,217])))}),xv=De({getParentRoute:()=>wv,id:"org-shell",pendingComponent:Zd,component:Ie(()=>Le(()=>import("./thread-route-DwmQZrER.js"),__vite__mapDeps([248,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,91,249,96,97,98,40,94,95,70,36,37,38,15,39,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,93,23,99,20,100,101,102,103,7,104,105,106,107,250,108])))}),pue=Se({sidepanel:VB,mainpanel:HB,main:ia([$(),Ze(0)]).optional(),thread:$().optional(),autosend:$().optional(),preview:$().optional(),virtualmcpid:$().optional()}),en=De({getParentRoute:()=>xv,id:"agent-shell",validateSearch:pue,search:{middlewares:[d$(["sidepanel"])]},pendingComponent:Zd,component:Ie(()=>Le(()=>import("./route-D6uy3Peb.js"),__vite__mapDeps([251,37,36,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,117,121,207,112,113,114,115,144,208,152,143,93,145,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,217,218,219,220,105,97,106,107,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,149,150,153,132,205,206,180,135,133,139,16,116,122,252,253,254,201,190,189,245,179,177,31,187,200,127,255,256,257,258,259,134,170,129])))}),mue=Sm.extend({virtualmcpid:$().optional()}),hue=De({getParentRoute:()=>en,path:"/$taskId",validateSearch:mue,component:()=>null}),It=Ie(()=>Le(()=>import("./index-BFVAGcnx.js").then(t=>t.i),__vite__mapDeps([116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122])),"ChatLayoutPending"),Lt=Ie(()=>Le(()=>import("./index-BFVAGcnx.js").then(t=>t.i),__vite__mapDeps([116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122])),"ChatLayoutError"),gue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:Se({connect:Kb().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./home-DJPOySDV.js"),__vite__mapDeps([260,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,209,143,144,93,145,146,142,115,113,112,114,99,154,210,131,24,25,176,174,211,173,212,196,213,167,208,214,215,152,216,217,218,219,220,105,97,106,107,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,261,262,241,242,124,263,163,166,162,127,247,240,264,265,266,161,164,165,267,268,269,239,128,16,244])))}),fue=De({getParentRoute:()=>en,path:"/projects",validateSearch:Sm,beforeLoad:({params:t,search:e})=>{const a=(e.project??e.virtualmcpid)?.trim(),o=r=>({...r,virtualmcpid:void 0,project:void 0,task:void 0});if(!a)throw Xa({to:"/$org/home",params:{org:t.org},search:o,hash:!0,replace:!0});const n=e.task?.trim();throw Xa(n?{to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:a,taskKey:n},search:o,hash:!0,replace:!0}:{to:"/$org/projects/$agentId",params:{org:t.org,agentId:a},search:o,hash:!0,replace:!0})}}),la=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/projects/$agentId",validateSearch:Sm,component:hP}),bue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Ie(()=>Le(()=>import("./agent-overview-geS17XOQ.js"),__vite__mapDeps([270,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,112,113,114,115,209,143,144,93,145,146,142,99,154,210,131,24,25,176,174,211,173,212,196,213,167,208,214,215,152,216,217,218,219,220,105,97,106,107,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,261,262,241,242,124,263,163,166,162,127,247,240,264,265,266,161,164,165,267,268,239,249,96,98,271])))}),vue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Se({task:$().optional(),...zE}),beforeLoad:({params:t,search:e})=>{const a=F4(t.taskKey,e);if(a)throw Xa({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:t.agentId,taskKey:a?.taskKey??t.taskKey},search:a.search,hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./project-tasks-BIbs81vR.js"),__vite__mapDeps([272,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,273,124,125,274,175,167,143,144,93,145,146,142,115,113,112,114,215,275,19,99,28,29,216,276,277,126,241,228,242,24,25,247,240,268,278,171,156,141,279,172,280,139,281,151,98,282,227,140,147,148,149,150,152,153,154,226,252,204,210,283,218,219])))}),yue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Se({connect:Kb().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./project-reports-DmYlC_2H.js"),__vite__mapDeps([284,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,285,91,249,96,97,98,271,108,109,269,244])))}),Pv=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:Se({autosend:$().optional(),...j4}),component:Ie(()=>Le(()=>import("./agent-site-editor-qCYYu7JS.js"),__vite__mapDeps([202,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,203,204,130,131,132,133,134,42,48,135,136,33,34,35,11,21,36,37,38,15,39,40,41,43,27,44,45,46,47,49,50,51,52,53,54,55,56,57,18,58,59,60,61,67,68,69,70,71,72,23,73,74,79,80,26,81,82,83,20,10,86,87,120,167,176,174,205,206,187,107,184,183,185,182,157,207,144,208,117,152,143,93,145,146,142,209,99,154,210,24,25,211,173,212,196,213,214,215,216,217,218,219,220,105,97,106,221,222,29,151,223,224,102,103,7,225,19,226,227,228,119,229,140,141,147,148,149,150,121,153,194,193,230,186,170,155,156,231,232,180,139,116,118,122,233])))}),Tue=De({getParentRoute:()=>Pv,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Ie(()=>Le(()=>import("./agent-site-editor-preview-BtczIPtS.js"),__vite__mapDeps([286,287,253,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,151,254,149,145,132,207,112,85,113,114,115,84,144,80,26,208,83,117,152,143,93,23,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,81,82,217,218,219,220,105,97,106,107,221,222,70,29,223,224,102,103,7,225,19,226,227,228,229,140,141,67,147,148,150,33,11,21,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,201,190,189,245,179,177,31,187,283,137,138,134,139,155,156,157,158,159,160,161,162,163,164,165,166,130,136,16,28,168,169,170,171,172,124,125,175,17,178,180,120,181,182,183,184,185,101,129,122,186,188])))}),Sue=De({getParentRoute:()=>Pv,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Ie(()=>Le(()=>import("./agent-site-editor-content-BDnD2v4K.js"),__vite__mapDeps([288,287,253,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,151,254,149,145,132,207,112,85,113,114,115,84,144,80,26,208,83,117,152,143,93,23,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,81,82,217,218,219,220,105,97,106,107,221,222,70,29,223,224,102,103,7,225,19,226,227,228,229,140,141,67,147,148,150,33,11,21,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,201,190,189,245,179,177,31,187,283,191,158,159,160,161,162,163,164,165,166,157,130,134,136,16,138,139,155,156,28,168,169,170,171,172,124,125,175,17,178,192,193,194,195,180,197,198,199,13,14])))}),wue=De({getParentRoute:()=>Pv,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:Se({file:$().optional()}),component:Ie(()=>Le(()=>import("./agent-site-editor-code-D1UyNZtm.js"),__vite__mapDeps([289,287,253,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,151,254,149,145,132,207,112,85,113,114,115,84,144,80,26,208,83,117,152,143,93,23,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,81,82,217,218,219,220,105,97,106,107,221,222,70,29,223,224,102,103,7,225,19,226,227,228,229,140,141,67,147,148,150,33,11,21,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,201,190,189,245,179,177,31,187,283,16])))}),xue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:t,search:e})=>{const a=e.automation;if(a)throw Xa({to:"/$org/projects/$agentId/automations/$automationId",params:{org:t.org,agentId:t.agentId,automationId:a},search:o=>({...o,automation:void 0}),hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./agent-automations-BmOO-Tn1.js"),__vite__mapDeps([290,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,17,16,276,291,19])))}),Pue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:Se({automationView:sa(["settings","runs"]).optional()}),component:Ie(()=>Le(()=>import("./agent-automation-LVzi2Lv8.js"),__vite__mapDeps([292,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,196,28,167,144,151,254,293,208,112,113,114,115,212,24,25,213,294,276,141,295,214,215,143,93,145,146,142,152,216,296,242,124,297,176,174,169,170,298,14,16,226,252,282,227,140,147,148,149,150,153,154,225])))}),Eue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Ie(()=>Le(()=>import("./agent-settings-DOUtQ-_2.js"),__vite__mapDeps([299,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,300,301,105,97,106,107,112,113,114,115,294,16,302,103,7,29,151,295,220,221,222,208,93,24,25,223,224,102,225,19,226,227,154,216,196,17,303,149,254,152,145,28,167,168,132,245,179,177,31,246,304,142,187,133,305,306,150,188,206])))}),Cue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Se(Cb),component:Ie(()=>Le(()=>import("./agent-library-DCPG9Kzs.js"),__vite__mapDeps([307,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,308,99,17,277,115,112,113,114,216,309,29,146,142,258,167,256,257,259,134,170,154,310,199,173,174,14,311,312,313,304,16,301,105,97,106,107,294,302,103,7,151,295,220,221,222,208,93,24,25,223,224,102,225,19,226,227,196,303,149,254,152,145,28,168,132,245,179,177,31,246,187,133,305,306,150,188,206])))}),kue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Ie(()=>Le(()=>import("./agent-assets-DKyleP_H.js"),__vite__mapDeps([314,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,287,253,151,254,149,145,132,207,112,113,114,115,144,208,152,143,93,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,217,218,219,220,105,97,106,107,221,222,29,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,150,153,135,133,201,190,189,245,179,177,31,187,17,178])))}),_ue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Ie(()=>Le(()=>import("./agent-releases-C3WKDrKT.js"),__vite__mapDeps([315,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,287,253,151,254,149,145,132,207,112,113,114,115,144,208,152,143,93,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,217,218,219,220,105,97,106,107,221,222,29,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,150,153,135,133,201,190,189,245,179,177,31,187,130,134,136,194,232,185])))}),Aue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Ie(()=>Le(()=>import("./agent-hosting-CKUD4fkI.js"),__vite__mapDeps([316,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,199,31,99,14,141,24,25,300,301,105,97,106,107,112,113,114,115,294,16,302,103,7,29,151,295,220,221,222,208,93,223,224,102,225,226,227,154,216,196,17,303,149,254,152,145,28,167,168,132,245,179,177,246,304,142,187,133,305,306,150,188,206])))}),Rue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Ie(()=>Le(()=>import("./agent-e2e-Dxueh7Ni.js"),__vite__mapDeps([317,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,24,25,14,199,31,141,176,174,300,301,105,97,106,107,112,113,114,115,294,16,302,103,7,29,151,295,220,221,222,208,93,223,224,102,225,226,227,154,216,196,17,303,149,254,152,145,28,167,168,132,245,179,177,246,304,142,187,133,305,306,150,188,206])))}),Due=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/analytics",staticData:{pageTitle:"common.mainPanelTabs.analytics",defaultMain:"analytics",mainView:"analytics"},validateSearch:Se({view:$().optional()}),component:Ie(()=>Le(()=>import("./agent-analytics-D4BMyQTS.js"),__vite__mapDeps([318,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,196,14,263,163,166,162,199,31,319,265,300,301,105,97,106,107,112,113,114,115,294,16,302,103,7,29,151,295,220,221,222,208,93,24,25,223,224,102,225,226,227,154,216,17,303,149,254,152,145,28,167,168,132,245,179,177,246,304,142,187,133,305,306,150,188,206])))}),Oue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./taskboard-analytics-l4n34oHf.js"),__vite__mapDeps([320,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,225,19,274,321,167,168,25,171,322,263,163,166,162,14,173,174,242,124,266,161,164,165,267,265,319,247,240,175])))}),Nue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:Se({ui:Ze("legacy").optional()}),component:Ie(()=>Le(()=>import("./agent-experiments-zITjLHxa.js"),__vite__mapDeps([323,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,203,204,112,113,114,115,130,131,132,133,134,135,136,167,176,174,205,206,187,107,184,183,185,182,157,207,144,208,152,143,93,145,146,142,209,99,154,210,24,25,211,173,212,196,213,214,215,216,217,218,219,220,105,97,106,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,149,150,153,194,193,230,186,170,155,156,231,232,180,139,324,14,199,31,158,159,160,161,162,163,164,165,166,16,192,325,326,198,277,281,300,301,294,302,295,17,303,254,28,168,245,179,177,246,304,305,306,188])))}),Mue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/calendar",staticData:{pageTitle:"common.mainPanelTabs.calendar",defaultMain:"calendar",mainView:"calendar"},component:Ie(()=>Le(()=>import("./agent-calendar-Coas2SvP.js"),__vite__mapDeps([327,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,203,204,112,113,114,115,130,131,132,133,134,135,136,167,176,174,205,206,187,107,184,183,185,182,157,207,144,208,152,143,93,145,146,142,209,99,154,210,24,25,211,173,212,196,213,214,215,216,217,218,219,220,105,97,106,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,149,150,153,194,193,230,186,170,155,156,231,232,180,139,168,192,325,158,159,160,161,162,163,164,165,166,16,326,198,199,197,300,301,294,302,295,17,303,254,28,245,179,177,31,246,304,305,306,188])))}),Iue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/cdn",staticData:{pageTitle:"common.mainPanelTabs.cdn",defaultMain:"cdn",mainView:"cdn"},component:Ie(()=>Le(()=>import("./agent-monitor-BOv9jDa-.js"),__vite__mapDeps([328,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,329,263,163,166,162,199,167,24,25,31,132,319,265,264,330,19,171,101,267,164,165,300,301,105,97,106,107,112,113,114,115,294,16,302,103,7,29,151,295,220,221,222,208,93,223,224,102,225,226,227,154,216,196,17,303,149,254,152,145,28,168,245,179,177,246,304,142,187,133,305,306,150,188,206,283,218,219])))}),q4=Se({args:$().optional()}),Lue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/apps/$connectionId/$toolName",validateSearch:q4,staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Ie(()=>Le(()=>import("./agent-app-BmS3KdDh.js"),__vite__mapDeps([331,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,190,332,144,254,147,148,149,112,113,114,115,247,240,124,333,91,95,96,97,98,93,99,100,101,102,103,7,104,105,106,107])))}),Bue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/views/$viewId",validateSearch:q4,staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Ie(()=>Le(()=>import("./agent-view-Dxwprr5s.js"),__vite__mapDeps([334,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,332,144,254,147,148,149,112,113,114,115,247,240,124,333,91,95,96,97,98,93,99,100,101,102,103,7,104,105,106,107,300,301,294,16,302,29,151,295,220,221,222,208,24,25,223,224,225,19,226,227,154,216,196,17,303,152,145,28,167,168,132,245,179,177,31,246,304,142,187,133,305,306,150,188,206])))}),Fue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:Se({key:$().optional()}),component:Ie(()=>Le(()=>import("./agent-file-BtY3mLDK.js"),__vite__mapDeps([335,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,154,259,216,134,170,146,142,115,153,112,113,114,300,301,105,97,106,107,294,16,302,103,7,29,151,295,220,221,222,208,93,24,25,223,224,102,225,19,226,227,196,17,303,149,254,152,145,28,167,168,132,245,179,177,31,246,304,187,133,305,306,150,188,206])))}),jue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:Se({path:$().optional()}),component:Ie(()=>Le(()=>import("./agent-deck-_3gjRxMy.js"),__vite__mapDeps([336,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,258,216,167,300,301,105,97,106,107,112,113,114,115,294,16,302,103,7,29,151,295,220,221,222,208,93,24,25,223,224,102,225,19,226,227,154,196,17,303,149,254,152,145,28,168,132,245,179,177,31,246,304,142,187,133,305,306,150,188,206])))}),zue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:Se({path:$().optional()}),component:Ie(()=>Le(()=>import("./agent-library-file-jDzw9ocZ.js"),__vite__mapDeps([337,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,338,257,99,258,216,167,259,134,170,154,146,142,115,300,301,105,97,106,107,112,113,114,294,16,302,103,7,29,151,295,220,221,222,208,93,24,25,223,224,102,225,19,226,227,196,17,303,149,254,152,145,28,168,132,245,179,177,31,246,304,187,133,305,306,150,188,206])))}),Uue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Ie(()=>Le(()=>import("./agent-connect-sources-ORKDOcWl.js"),__vite__mapDeps([339,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,94,91,95,96,97,98,93,99,100,101,102,103,7,104,105,106,107,250,108])))}),que=De({getParentRoute:()=>la,path:"/$legacyView",component:()=>null}),$ue=De({getParentRoute:()=>en,path:"/agents",validateSearch:Sm,beforeLoad:({params:t,search:e})=>{const a=e.virtualmcpid?.trim();throw Xa(a?{to:"/$org/projects/$agentId",params:{org:t.org,agentId:a},search:o=>o,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:t.org},search:o=>o,hash:!0,replace:!0})}}),Vue=De({getParentRoute:()=>en,path:"/agents/$",validateSearch:Sm,beforeLoad:({params:t,location:e})=>{const a=t._splat?.split("/").find(Boolean);if(!B4(a))return;const o=Lde(e.pathname);if(!o)return;const n=e.hash?`#${e.hash}`:"";throw Xa({href:`${o}${e.searchStr}${n}`,replace:!0})},component:Ie(()=>Le(()=>import("./legacy-agents-deep-CZke_8Pu.js"),__vite__mapDeps([340,255,66])))}),Hue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Se({task:$().optional(),...zE}),beforeLoad:({params:t,search:e})=>{const a=F4(t.taskKey,e);if(a)throw Xa({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:a.taskKey},search:a.search,hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./tasks-DryHdzDR.js"),__vite__mapDeps([341,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,273,124,125,274,175,167,143,144,93,145,146,142,115,113,112,114,215,275,19,99,28,29,216,276,277,126,241,228,242,24,25,247,240,268,278,171,156,141,279,172,280,139,281,151,98,282,227,140,147,148,149,150,152,153,154,226,252,204,210,283,218,219])))}),Gue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./taskboard-analytics-l4n34oHf.js"),__vite__mapDeps([320,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,225,19,274,321,167,168,25,171,322,263,163,166,162,14,173,174,242,124,266,161,164,165,267,265,319,247,240,175])))}),Wue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./thread-analytics-Bniz556X.js"),__vite__mapDeps([342,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,322,263,163,166,162,14,173,174,19,242,124,266,161,164,165,267,265,319,243,175,167,24,25,176,282,227,140,141,142,143,144,93,145,146,115,113,112,114,147,148,149,150,151,152,153,154,226,252])))}),Kue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Se({connect:Kb().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./reports-Cn7qDjQ9.js"),__vite__mapDeps([343,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,285,91,249,96,97,98,271,108,109,269,244])))}),Yue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Se(Cb),component:Ie(()=>Le(()=>import("./library-BylVhS5a.js"),__vite__mapDeps([344,115,117,116,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,308,99,17,277,112,113,114,216,309,29,146,142,258,167,256,257,259,134,170,154,310,199,173,174,14,311,312,313,304,16,338])))}),Zue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Ie(()=>Le(()=>import("./plan-BddLpeau.js"),__vite__mapDeps([345,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19])))}),$4=Se({view:sa(["metrics","deploys","experiments","analytics"]).optional(),date:eL().optional().catch(void 0),store:$().optional(),at:$().optional()}),Que=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:$4,component:Ie(()=>Le(()=>import("./monitoring-BnuosxL6.js"),__vite__mapDeps([346,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,199,167,28,330,263,163,166,162,19,171,101,319,265,267,164,165,264,329,24,25,31,132,322,14,173,174,242,124,266,161,333,91,95,96,97,98,93,99,100,102,103,7,104,105,106,107,151,324,158,159,160,157,130,131,112,113,114,115,133,134,135,136,16,192,325,230,326,198,29,277,281,240])))}),Jue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Ie(()=>Le(()=>import("./plan-BddLpeau.js"),__vite__mapDeps([345,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19])))}),Xue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:$4,component:Ie(()=>Le(()=>import("./monitoring-BnuosxL6.js"),__vite__mapDeps([346,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,199,167,28,330,263,163,166,162,19,171,101,319,265,267,164,165,264,329,24,25,31,132,322,14,173,174,242,124,266,161,333,91,95,96,97,98,93,99,100,102,103,7,104,105,106,107,151,324,158,159,160,157,130,131,112,113,114,115,133,134,135,136,16,192,325,230,326,198,29,277,281,240])))}),epe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Ie(()=>Le(()=>import("./discover-IJwdRz3Z.js"),__vite__mapDeps([347,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,151,177,179,31,187,107])))}),tpe=De({getParentRoute:()=>wv,path:"/members",beforeLoad:({params:t})=>{throw Xa({to:"/$org/settings/members",params:{org:t.org}})}}),ape=Se({main:ia([$(),Ze(0)]).optional(),virtualmcpid:$().optional(),...z4,sidepanel:VB,mainpanel:HB,thread:$().optional()}),ope=De({getParentRoute:()=>xv,path:"/",validateSearch:ape,pendingComponent:Zd,component:Ie(()=>Le(()=>import("./index-CsTWjIHm.js"),__vite__mapDeps([348,255,66])))}),npe=De({getParentRoute:()=>xv,path:"/t/$taskKey",beforeLoad:({params:t})=>{throw Xa({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:t.taskKey},search:e=>e,hash:!0,replace:!0})}}),ca=De({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>wv,path:"/settings",pendingComponent:Zd,component:Ie(()=>Le(()=>import("./route-Dt_XN0n8.js"),__vite__mapDeps([349,117,116,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122])))}),rpe=De({getParentRoute:()=>ca,path:"/",component:Ie(()=>Le(()=>import("./index-redirect-CkISjxg7.js"),__vite__mapDeps([350,313])))}),spe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>ca,path:"/connections",component:Ie(()=>Le(()=>import("./connections-D6aTSSeV.js"),__vite__mapDeps([351,105,97,106,107,352,15,50,80,26,173,174,19,17,18,277,99,225,221,81,82,222,78,70,40,36,37,38,39,41,42,34,43,27,44,35,45,46,47,48,49,51,52,53,54,55,56,57,58,59,60,61,16,353,226,117,208,93,23,24,25,29,151,64,8,63,149,62,223,224,102,103,7,196]))),validateSearch:Qr(()=>Se({action:sa(["create"]).optional(),tab:sa(["all","connected"]).optional()}))}),ipe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>ca,path:"/connections/$appSlug",component:Ie(()=>Le(()=>import("./connection-detail-BynIRAi8.js"),__vite__mapDeps([354,105,97,106,107,16,224,57,58,355,64,8,254,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,18,59,60,61,151,24,25,26,163,160,69,167,80,63,117,356,74,75,3,2,76,77,30,78,223,303,19,149,7,103,70,121,93,23,152,353,357,263,166,162,265,319,161,266,164,165,267,176,174,222,148,83]))),validateSearch:Qr(()=>Se({tab:$().optional()}))}),lpe=De({staticData:{pageTitle:"page.item"},getParentRoute:()=>ca,path:"/connections/$appSlug/$collectionName/$itemId",component:Ie(()=>Le(()=>import("./collection-detail-BiSfoPd5.js"),__vite__mapDeps([358,16,64,8,93,23,29,355,254,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,151,105,97,106,107,24,25,26,163,160,69,167,80,63,117,356,74,75,3,2,76,77,30,78,223,148,149,156,222,303,19,7,147,70,112,65,66,62,85,113,114,115,84,33,11,21,67,68,71,72,73,79,81,82,83,20,10,86,87,169,170,199]))),validateSearch:Qr(()=>Se({replayId:$().optional()}))}),cpe=De({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>ca,path:"/monitor",component:Ie(()=>Le(()=>import("./index-CpdL1Va-.js"),__vite__mapDeps([359,17,18,16,311,312,313,140,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,141,142,143,144,93,23,145,146,115,117,65,66,62,63,64,8,80,26,113,75,3,2,76,77,30,78,112,85,114,84,67,147,148,149,150,33,11,21,68,69,70,71,72,73,74,79,81,82,83,20,10,86,87,121,151,152,153,154,222,19,167,169,170,297,196,24,25,321,168,171,29,225,28,156,357,263,163,166,162,265,319,161,266,164,165,267,282,227,226,252,14,298,276,199,240,330,101,264,283,218,219]))),validateSearch:Qr(()=>Se({tab:sa(["overview","audit","dashboards","threads","automations","stores"]).default("threads"),store:$().optional(),at:$().optional(),from:$().default("now-24h"),to:$().default("now"),connectionId:je($()).optional().default([]),virtualMcpId:je($()).optional().default([]),tool:$().default(""),status:sa(["all","success","errors"]).default("all"),search:$().default(""),page:Rt().optional(),streaming:Vt().default(!0),propertyFilters:$().default(""),hideSystem:Vt().default(!1)}))}),dpe=De({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>ca,path:"/general",component:Ie(()=>Le(()=>import("./general-m7jFsU7f.js"),__vite__mapDeps([360,295,361,28,35,84,30,77,151,64,8,362,19,24,25,26,27,313])))}),upe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>ca,path:"/connect",pendingComponent:Us("connect"),component:Ie(()=>Le(()=>import("./connect-BAxjV2jF.js"),__vite__mapDeps([363,156,19,24,25,26,27,176,174,142,45,51,52,262,364,37,57,58,199,23,64,8,311,312,313])))}),ppe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/ai-providers",pendingComponent:Us("billing"),component:Ie(()=>Le(()=>import("./ai-providers-DOZRUAS-.js"),__vite__mapDeps([365,37,114,43,84,30,77,293,208,117,112,65,66,62,63,64,8,85,75,3,2,76,78,113,115,212,196,53,24,25,26,27,39,44,51,38,18,213,54,48,295,173,174,80,219,57,58,302,28,311,312,313])))}),mpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/billing",beforeLoad:({params:t})=>{throw Xa({to:"/$org/settings/ai-providers",params:{org:t.org}})}}),hpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/infra-billing",pendingComponent:Us("billing"),component:Ie(()=>Le(()=>import("./infra-billing-CrqP3iz7.js"),__vite__mapDeps([366,46,19,297,196,53,27,68,69,18,167,24,25,26,14,265,162,163,165,319,311,312,313])))}),gpe=De({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>ca,path:"/secrets",component:Ie(()=>Le(()=>import("./secrets-BPiOlmvK.js"),__vite__mapDeps([367,37,57,60,199,23,24,25,26,27,29,306,311,312,313])))}),fpe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>ca,path:"/api-keys",pendingComponent:Us("connect"),component:Ie(()=>Le(()=>import("./api-keys-rmPzd4oe.js"),__vite__mapDeps([368,364,37,45,51,57,58,199,23,64,8,311,312,313])))}),bpe=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>ca,path:"/buckets",pendingComponent:Us("storage"),component:Ie(()=>Le(()=>import("./buckets-DPwPMd15.js"),__vite__mapDeps([369,37,57,58,19,199,23,24,25,26,27,28,29,177,311,312,313])))}),vpe=De({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>ca,path:"/repositories",validateSearch:Se({git_error:$().optional().catch(void 0),git_flow:$().uuid().optional().catch(void 0),git_installation:Rt().int().positive().safe().optional().catch(void 0),git_return:Vt().optional().catch(void 0)}),pendingComponent:Us("repositories"),component:Ie(()=>Le(()=>import("./repositories-1U12zsnH.js"),__vite__mapDeps([370,371,79,39,57,80,26,23,81,82,83,18,41,20,84,30,77,40,196,53,60,199,19,156,99,141,24,25,27,29,58,305,306,311,312,313])))}),ype=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>ca,path:"/synced-repos",pendingComponent:Us("storage"),component:Ie(()=>Le(()=>import("./synced-repos-DUczzKfJ.js"),__vite__mapDeps([372,57,199,79,39,80,26,23,81,82,83,18,41,20,84,30,77,309,311,312,313])))}),Tpe=De({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>ca,path:"/task-board",component:Ie(()=>Le(()=>import("./tasks-DLdk0dFO.js"),__vite__mapDeps([373,196,53,29,44,56,57,175,68,69,18,167,297,19,27,24,25,26,28,296,361,35,84,30,77,151,64,8,20,276,275,61,99,80,121,216,81,82,76,2,311,312,313])))}),Spe=De({getParentRoute:()=>ca,path:"/tasks",beforeLoad:({params:t})=>{throw Xa({to:"/$org/settings/task-board",params:{org:t.org}})}}),wpe=De({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>ca,path:"/projects",component:Ie(()=>Le(()=>import("./projects-B8GNDoL6.js"),__vite__mapDeps([374,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,19,17,72,23,73,64,8,74,63,75,3,2,76,77,30,78,79,80,26,81,82,83,20,84,269,302,249,96,97,98,244,62,151])))}),xpe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>ca,path:"/members",pendingComponent:Us("members"),component:Ie(()=>Le(()=>import("./members-C1FmO74U.js"),__vite__mapDeps([375,352,15,50,80,26,173,174,19,17,18,13,14,16,237,93,23,24,25,27,29,238,376,47,51,58,61,196,53,68,69,167,57,278,311,312,313])))}),Ppe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>ca,path:"/roles",pendingComponent:Us("members"),component:Ie(()=>Le(()=>import("./roles-Dl6Vqz_F.js"),__vite__mapDeps([377,238,376,19,47,57,58,13,14,15,16,17,18,213,70,40,36,37,38,39,41,42,34,43,27,44,35,45,46,48,49,50,51,52,53,54,55,56,59,60,61,226,196,227,82,64,8,83,106,107,151,63,114,28,80,26,71,62,312,313]))),validateSearch:Qr(()=>Se({role:$().optional()}))}),Epe=De({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>ca,path:"/sso",component:Ie(()=>Le(()=>import("./sso-DAT9TqUH.js"),__vite__mapDeps([378,362,19,24,25,26,27,28,86,58,311,312,313])))}),Cpe=De({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>ca,path:"/profile",component:Ie(()=>Le(()=>import("./profile-MlOeOB0D.js"),__vite__mapDeps([379,159,160,25,58,59,28,24,26,27,173,174,80,54,55,56,295,217])))}),kpe=De({staticData:{pageTitle:"settings.nav.agents"},getParentRoute:()=>ca,path:"/agents",component:Ie(()=>Le(()=>import("./agents-list-DIOxHByB.js"),__vite__mapDeps([380,63,64,8,47,38,58,36,37,15,39,40,41,42,34,43,27,44,35,45,46,48,49,50,51,52,53,54,55,56,57,18,59,60,61,302,74,75,3,2,76,77,30,78,84,16,356,151,102,103,7,105,97,106,107,79,80,26,23,81,82,83,20,98,100,17,73])))}),_pe=De({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>ca,path:"/automations",component:Ie(()=>Le(()=>import("./automations-C8uUahzu.js"),__vite__mapDeps([381,57,42,17,18,16,276,64,8,74,63,75,3,2,76,77,30,78,291,19,36,37,38,15,39,40,41,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,58,59,60,61,311,312,313])))}),Ape=De({staticData:{pageTitle:"settings.nav.skills"},getParentRoute:()=>ca,path:"/skills",component:Ie(()=>Le(()=>import("./skills-EnKdltF2.js"),__vite__mapDeps([382,47,42,58,59,17,18,277,99,80,26,16,225,19,310,146,142,45,115,117,65,66,62,63,64,8,259,216,81,82,134,48,170,154])))}),Rpe=De({staticData:{pageTitle:"settings.nav.memory"},getParentRoute:()=>ca,path:"/memory",component:Ie(()=>Le(()=>import("./memory-Bk_OycOd.js"),__vite__mapDeps([383,34,156,80,26,225,19,16,67,216,81,82]))),validateSearch:Qr(()=>Se({scope:sa(["user"]).optional()}))}),Dpe=ca.addChildren([rpe,spe,ipe,lpe,kpe,_pe,Ape,Rpe,cpe,dpe,upe,ppe,mpe,hpe,gpe,fpe,bpe,vpe,ype,Tpe,Spe,wpe,xpe,Ppe,Epe,Cpe]),Ope=Pv.addChildren([Tue,Sue,wue]),Npe=la.addChildren([bue,vue,yue,Ope,xue,Pue,Eue,Cue,kue,_ue,Aue,Rue,Due,Oue,Nue,Mue,Iue,Lue,Bue,Fue,jue,zue,Uue,que,Jue,Xue]),Mpe=en.addChildren([hue,gue,fue,Npe,$ue,Vue,Hue,Gue,Wue,Kue,Yue,epe,Zue,Que]),Ipe=xv.addChildren([ope,npe,Mpe]),Lpe=wv.addChildren([Ipe,tpe,Dpe]),Bpe=UE.addChildren([nue,Lpe]),Fpe=Xo.addChildren([Bpe,oue,rue,sue,iue,lue,qE.addChildren([cue,due]),uue,Wde,Kde,Yde,Zde,Qde,Jde]);function jpe(){const t=ye.c(16),e=qo();let a;t[0]!==e?(a=e("common.index.pageNotFound"),t[0]=e,t[1]=a):a=t[1];let o;t[2]!==a?(o=v.jsx("h3",{className:"text-lg font-medium text-foreground",children:a}),t[2]=a,t[3]=o):o=t[3];let n;t[4]!==e?(n=e("common.index.pageNotFoundDescription"),t[4]=e,t[5]=n):n=t[5];let r;t[6]!==n?(r=v.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),t[6]=n,t[7]=r):r=t[7];let i;t[8]!==e?(i=e("common.goBack"),t[8]=e,t[9]=i):i=t[9];let c;t[10]!==i?(c=v.jsx("button",{type:"button",onClick:zpe,className:"text-sm text-primary hover:underline",children:i}),t[10]=i,t[11]=c):c=t[11];let d;return t[12]!==o||t[13]!==r||t[14]!==c?(d=v.jsx("div",{className:"flex h-full items-center justify-center",children:v.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[o,r,c]})}),t[12]=o,t[13]=r,t[14]=c,t[15]=d):d=t[15],d}function zpe(){return window.history.back()}const Ev=Q$({routeTree:Fpe,defaultPendingComponent:Zd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:jpe});function _e(...t){return $B(YP(t))}function Upe(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}function qa({error:t,localization:e,localizeErrors:a=!0}){var o;const n="Request failed";if(!a)return t?.message?t.message:(o=t?.error)!=null&&o.message?t.error.message:n;if(typeof t=="string"&&e?.[t])return e[t];if(t?.error){if(t.error.code){const r=t.error.code;if(e?.[r])return e[r]}return t.error.message||t.error.code||t.error.statusText||e?.REQUEST_FAILED}return t?.message||e?.REQUEST_FAILED||n}function ec(t){return typeof window<"u"?new URLSearchParams(window.location.search).get(t):null}function Ax(t,e){for(const a in t)if(t[a]===e)return a}function Xp(t,e){let a=$().min(1,{message:e?.PASSWORD_REQUIRED});return t?.minLength&&(a=a.min(t.minLength,{message:e?.PASSWORD_TOO_SHORT})),t?.maxLength&&(a=a.max(t.maxLength,{message:e?.PASSWORD_TOO_LONG})),t?.regex&&(a=a.regex(t.regex,{message:e?.INVALID_PASSWORD})),a}var qpe={FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application"},$pe={FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously"},Vpe={INVALID_METADATA_TYPE:"metadata must be an object or undefined",REFILL_AMOUNT_AND_INTERVAL_REQUIRED:"refillAmount is required when refillInterval is provided",REFILL_INTERVAL_AND_AMOUNT_REQUIRED:"refillInterval is required when refillAmount is provided",USER_BANNED:"User is banned",UNAUTHORIZED_SESSION:"Unauthorized or invalid session",KEY_NOT_FOUND:"API Key not found",KEY_DISABLED:"API Key is disabled",KEY_EXPIRED:"API Key has expired",USAGE_EXCEEDED:"API Key has reached its usage limit",KEY_NOT_RECOVERABLE:"API Key is not recoverable",EXPIRES_IN_IS_TOO_SMALL:"The expiresIn is smaller than the predefined minimum value.",EXPIRES_IN_IS_TOO_LARGE:"The expiresIn is larger than the predefined maximum value.",INVALID_REMAINING:"The remaining count is either too large or too small.",INVALID_PREFIX_LENGTH:"The prefix length is either too large or too small.",INVALID_NAME_LENGTH:"The name length is either too large or too small.",METADATA_DISABLED:"Metadata is disabled.",RATE_LIMIT_EXCEEDED:"Rate limit exceeded.",NO_VALUES_TO_UPDATE:"No values to update.",KEY_DISABLED_EXPIRATION:"Custom key expiration values are disabled.",INVALID_API_KEY:"Invalid API key.",INVALID_USER_ID_FROM_API_KEY:"The user id from the API key is invalid.",INVALID_API_KEY_GETTER_RETURN_TYPE:"API Key getter returned an invalid key type. Expected string.",SERVER_ONLY_PROPERTY:"The property you're trying to set can only be set from the server auth instance only."},Hpe={USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account."},Gpe={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Wpe={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Kpe={...Gpe,...Wpe},Ype={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},Zpe={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Qpe={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Jpe={INVALID_SESSION_TOKEN:"Invalid session token"},Xpe={YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"you are not allowed to invite user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached"},eme={CHALLENGE_NOT_FOUND:"Challenge not found",YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:"You are not allowed to register this passkey",FAILED_TO_VERIFY_REGISTRATION:"Failed to verify registration",PASSKEY_NOT_FOUND:"Passkey not found",AUTHENTICATION_FAILED:"Authentication failed",UNABLE_TO_CREATE_SESSION:"Unable to create session",FAILED_TO_UPDATE_PASSKEY:"Failed to update passkey"},tme={INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified"},ame={SUBSCRIPTION_NOT_FOUND:"Subscription not found",SUBSCRIPTION_PLAN_NOT_FOUND:"Subscription plan not found",ALREADY_SUBSCRIBED_PLAN:"You're already subscribed to this plan",UNABLE_TO_CREATE_CUSTOMER:"Unable to create customer",FAILED_TO_FETCH_PLANS:"Failed to fetch plans",EMAIL_VERIFICATION_REQUIRED:"Email verification is required before you can subscribe to a plan",SUBSCRIPTION_NOT_ACTIVE:"Subscription is not active",SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:"Subscription is not scheduled for cancellation"},ome={TEAM_LIMIT_REACHED:"Team limit reached for this organization",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached for this team",TEAM_NOT_FOUND:"Team not found",TEAM_MEMBER_NOT_FOUND:"Team member not found",TEAM_NAME_TOO_LONG:"Team name is too long",CANNOT_REMOVE_LAST_TEAM:"Cannot remove the last team",NOT_ORGANIZATION_MEMBER:"User is not a member of the organization",ALREADY_TEAM_MEMBER:"User is already a member of this team",INSUFFICIENT_TEAM_PERMISSIONS:"Insufficient permissions to perform this action on team"},nme={OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"},rme={INVALID_USERNAME_OR_PASSWORD:"invalid username or password",EMAIL_NOT_VERIFIED:"email not verified",UNEXPECTED_ERROR:"unexpected error",USERNAME_IS_ALREADY_TAKEN:"username is already taken. please try another.",USERNAME_TOO_SHORT:"username is too short",USERNAME_TOO_LONG:"username is too long",INVALID_USERNAME:"username is invalid"},sme={APP:"App",ACCOUNT:"Account",ACCOUNTS:"Accounts",ACCOUNTS_DESCRIPTION:"Switch between your currently signed in accounts.",ACCOUNTS_INSTRUCTIONS:"Sign in to an additional account.",ADD_ACCOUNT:"Add Account",ADD_PASSKEY:"Add Passkey",ALREADY_HAVE_AN_ACCOUNT:"Already have an account?",AVATAR:"Avatar",AVATAR_DESCRIPTION:"Click on the avatar to upload a custom one from your files.",AVATAR_INSTRUCTIONS:"An avatar is optional but strongly recommended.",BACKUP_CODE_REQUIRED:"Backup code is required",BACKUP_CODES:"Backup Codes",BACKUP_CODES_DESCRIPTION:"Save these backup codes in a secure place. You can use them to access your account if you lose your two-factor authentication method.",BACKUP_CODE_PLACEHOLDER:"Backup Code",BACKUP_CODE:"Backup Code",CANCEL:"Cancel",CHANGE_PASSWORD:"Change Password",CHANGE_PASSWORD_DESCRIPTION:"Enter your current password and a new password.",CHANGE_PASSWORD_INSTRUCTIONS:"Please use 8 characters at minimum.",CHANGE_PASSWORD_SUCCESS:"Your password has been changed.",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Confirm Password",CONFIRM_PASSWORD_REQUIRED:"Confirm password is required",CONTINUE_WITH_AUTHENTICATOR:"Continue with Authenticator",COPIED_TO_CLIPBOARD:"Copied to clipboard",COPY_TO_CLIPBOARD:"Copy to clipboard",COPY_ALL_CODES:"Copy all codes",CONTINUE:"Continue",CURRENT_PASSWORD:"Current Password",CURRENT_PASSWORD_PLACEHOLDER:"Current Password",CURRENT_SESSION:"Current Session",UPDATE:"Update",DELETE:"Delete",DELETE_AVATAR:"Delete Avatar",DELETE_ACCOUNT:"Delete Account",DELETE_ACCOUNT_DESCRIPTION:"Permanently remove your account and all of its contents. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_INSTRUCTIONS:"Please confirm the deletion of your account. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_VERIFY:"Please check your email to verify the deletion of your account.",DELETE_ACCOUNT_SUCCESS:"Your account has been deleted.",DISABLE_TWO_FACTOR:"Disable Two-Factor",DISABLED_CREDENTIALS_DESCRIPTION:"Choose a provider to login to your account",DONT_HAVE_AN_ACCOUNT:"Don't have an account?",DONE:"Done",EMAIL:"Email",EMAIL_DESCRIPTION:"Enter the email address you want to use to log in.",EMAIL_INSTRUCTIONS:"Please enter a valid email address.",EMAIL_IS_THE_SAME:"Email is the same",EMAIL_PLACEHOLDER:"m@example.com",EMAIL_REQUIRED:"Email address is required",EMAIL_VERIFY_CHANGE:"Please check your email to verify the change.",EMAIL_VERIFICATION:"Email Verification",EMAIL_VERIFICATION_DESCRIPTION:"Please check your email for the verification code to complete your registration.",EMAIL_VERIFICATION_SUCCESS:"Email verification successful.",ENABLE_TWO_FACTOR:"Enable Two-Factor",IS_INVALID:"is invalid",IS_REQUIRED:"is required",IS_THE_SAME:"is the same",FORGOT_AUTHENTICATOR:"Forgot authenticator?",FORGOT_PASSWORD:"Forgot Password",FORGOT_PASSWORD_ACTION:"Send reset link",FORGOT_PASSWORD_DESCRIPTION:"Enter your email to reset your password",FORGOT_PASSWORD_EMAIL:"Check your email for the password reset link.",FORGOT_PASSWORD_LINK:"Forgot your password?",LINK:"Link",MAGIC_LINK:"Magic Link",MAGIC_LINK_ACTION:"Send magic link",MAGIC_LINK_DESCRIPTION:"Enter your email to receive a magic link",MAGIC_LINK_EMAIL:"Check your email for the magic link",EMAIL_OTP:"Email Code",EMAIL_OTP_SEND_ACTION:"Send code",EMAIL_OTP_VERIFY_ACTION:"Verify code",EMAIL_OTP_DESCRIPTION:"Enter your email to receive a code",EMAIL_OTP_VERIFICATION_SENT:"Please check your email for the verification code.",NAME:"Name",NAME_DESCRIPTION:"Please enter your full name, or a display name.",NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",NAME_PLACEHOLDER:"Name",NEW_PASSWORD:"New Password",NEW_PASSWORD_PLACEHOLDER:"New Password",NEW_PASSWORD_REQUIRED:"New password is required",ONE_TIME_PASSWORD:"One-Time Password",OR_CONTINUE_WITH:"Or continue with",PASSKEY:"Passkey",PASSKEYS:"Passkeys",PASSKEYS_DESCRIPTION:"Manage your passkeys for secure access.",PASSKEYS_INSTRUCTIONS:"Securely access your account without a password.",PERSONAL_ACCOUNT:"Personal Account",API_KEYS:"API Keys",API_KEYS_DESCRIPTION:"Manage your API keys for secure access.",API_KEYS_INSTRUCTIONS:"Generate API keys to access your account programmatically.",CREATE_API_KEY:"Create API Key",CREATE_API_KEY_DESCRIPTION:"Enter a unique name for your API key to differentiate it from other keys.",API_KEY_NAME_PLACEHOLDER:"New API Key",API_KEY_CREATED:"API Key Created",CREATE_API_KEY_SUCCESS:"Please copy your API key and store it in a safe place. For security reasons we cannot show it again.",NEVER_EXPIRES:"Never Expires",EXPIRES:"Expires",NO_EXPIRATION:"No Expiration",CREATE_ORGANIZATION:"Create Organization",ORGANIZATION:"Organization",ORGANIZATION_NAME:"Name",ORGANIZATION_NAME_PLACEHOLDER:"Acme Inc.",ORGANIZATION_NAME_DESCRIPTION:"This is your organization's visible name.",ORGANIZATION_NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",ORGANIZATION_SLUG:"Slug URL",ORGANIZATION_SLUG_DESCRIPTION:"This is your organization's URL namespace.",ORGANIZATION_SLUG_INSTRUCTIONS:"Please use 48 characters at maximum.",ORGANIZATION_SLUG_PLACEHOLDER:"acme-inc",CREATE_ORGANIZATION_SUCCESS:"Organization created successfully",PASSWORD:"Password",PASSWORD_PLACEHOLDER:"Password",PASSWORD_REQUIRED:"Password is required",PASSWORDS_DO_NOT_MATCH:"Passwords do not match",PROVIDERS:"Providers",PROVIDERS_DESCRIPTION:"Connect your account with a third-party service.",RECOVER_ACCOUNT:"Recover Account",RECOVER_ACCOUNT_ACTION:"Recover account",RECOVER_ACCOUNT_DESCRIPTION:"Please enter a backup code to access your account",REMEMBER_ME:"Remember me",RESEND_CODE:"Resend code",RESEND_VERIFICATION_EMAIL:"Resend Verification Email",RESET_PASSWORD:"Reset Password",RESET_PASSWORD_ACTION:"Save new password",RESET_PASSWORD_DESCRIPTION:"Enter your new password below",RESET_PASSWORD_SUCCESS:"Password reset successfully",REQUEST_FAILED:"Request failed",REVOKE:"Revoke",DELETE_API_KEY:"Delete API Key",DELETE_API_KEY_CONFIRM:"Are you sure you want to delete this API key?",API_KEY:"API Key",SIGN_IN:"Sign In",SIGN_IN_ACTION:"Login",SIGN_IN_DESCRIPTION:"Enter your email below to login to your account",SIGN_IN_USERNAME_DESCRIPTION:"Enter your username or email to login to your account",SIGN_IN_WITH:"Sign in with",SIGN_OUT:"Sign Out",SIGN_UP:"Sign Up",SIGN_UP_ACTION:"Create an account",SIGN_UP_DESCRIPTION:"Enter your information to create an account",SIGN_UP_EMAIL:"Check your email for the verification link.",SESSIONS:"Sessions",SESSIONS_DESCRIPTION:"Manage your active sessions and revoke access.",SET_PASSWORD:"Set Password",SET_PASSWORD_DESCRIPTION:"Click the button below to receive an email to set up a password for your account.",SETTINGS:"Settings",SAVE:"Save",SECURITY:"Security",SWITCH_ACCOUNT:"Switch Account",TRUST_DEVICE:"Trust this device",TWO_FACTOR:"Two-Factor",TWO_FACTOR_ACTION:"Verify code",TWO_FACTOR_DESCRIPTION:"Please enter your one-time password to continue",TWO_FACTOR_CARD_DESCRIPTION:"Add an extra layer of security to your account.",TWO_FACTOR_DISABLE_INSTRUCTIONS:"Please enter your password to disable 2FA.",TWO_FACTOR_ENABLE_INSTRUCTIONS:"Please enter your password to enable 2FA.",TWO_FACTOR_ENABLED:"Two-factor authentication has been enabled",TWO_FACTOR_DISABLED:"Two-Factor Authentication has been disabled",TWO_FACTOR_PROMPT:"Two-Factor Authentication",TWO_FACTOR_TOTP_LABEL:"Scan the QR Code with your Authenticator",SEND_VERIFICATION_CODE:"Send verification code",UNLINK:"Unlink",UPDATED_SUCCESSFULLY:"updated successfully",USERNAME:"Username",USERNAME_DESCRIPTION:"Enter the username you want to use to log in.",USERNAME_INSTRUCTIONS:"Please use 32 characters at maximum.",USERNAME_PLACEHOLDER:"Username",OPTIONAL_BRACKETS:"(Optional)",SIGN_IN_USERNAME_PLACEHOLDER:"Username or email",VERIFY_YOUR_EMAIL:"Verify Your Email",VERIFY_YOUR_EMAIL_DESCRIPTION:"Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend.",GO_BACK:"Go back",SESSION_NOT_FRESH:"Your session is not fresh. Please sign in again.",UPLOAD_AVATAR:"Upload Avatar",LOGO:"Logo",LOGO_DESCRIPTION:"Click on the logo to upload a custom one from your files.",LOGO_INSTRUCTIONS:"A logo is optional but strongly recommended.",UPLOAD:"Upload",UPLOAD_LOGO:"Upload Logo",DELETE_LOGO:"Delete Logo",PRIVACY_POLICY:"Privacy Policy",TERMS_OF_SERVICE:"Terms of Service",PROTECTED_BY_RECAPTCHA:"This site is protected by reCAPTCHA.",BY_CONTINUING_YOU_AGREE:"By continuing, you agree to the",USER:"User",ORGANIZATIONS:"Organizations",ORGANIZATIONS_DESCRIPTION:"Manage your organizations and memberships.",ORGANIZATIONS_INSTRUCTIONS:"Create an organization to collaborate with other users.",LEAVE_ORGANIZATION:"Leave Organization",LEAVE_ORGANIZATION_CONFIRM:"Are you sure you want to leave this organization?",LEAVE_ORGANIZATION_SUCCESS:"You have successfully left the organization.",MANAGE_ORGANIZATION:"Manage Organization",REMOVE_MEMBER:"Remove Member",REMOVE_MEMBER_CONFIRM:"Are you sure you want to remove this member from the organization?",REMOVE_MEMBER_SUCCESS:"Member removed successfully",INVITE_MEMBER:"Invite Member",MEMBERS:"Members",MEMBERS_DESCRIPTION:"Add or remove members and manage their roles.",MEMBERS_INSTRUCTIONS:"Invite new members to your organization.",INVITE_MEMBER_DESCRIPTION:"Send an invitation to add a new member to your organization.",ROLE:"Role",SELECT_ROLE:"Select a role",ADMIN:"Admin",MEMBER:"Member",GUEST:"Guest",OWNER:"Owner",UPDATE_ROLE_DESCRIPTION:"Update the role for this member",UPDATE_ROLE:"Update Role",MEMBER_ROLE_UPDATED:"Member role updated successfully",SEND_INVITATION:"Send Invitation",SEND_INVITATION_SUCCESS:"Invitation sent successfully",PENDING_INVITATIONS:"Pending Invitations",PENDING_INVITATIONS_DESCRIPTION:"Manage pending invitations to your organization.",PENDING_USER_INVITATIONS_DESCRIPTION:"Invitations you've received from organizations.",CANCEL_INVITATION:"Cancel Invitation",INVITATION_CANCELLED:"Invitation cancelled successfully",ACCEPT_INVITATION:"Accept Invitation",ACCEPT_INVITATION_DESCRIPTION:"You have been invited to join an organization.",INVITATION_ACCEPTED:"Invitation accepted successfully",INVITATION_REJECTED:"Invitation rejected successfully",ACCEPT:"Accept",REJECT:"Reject",INVITATION_EXPIRED:"This invitation has expired",DELETE_ORGANIZATION:"Delete Organization",DELETE_ORGANIZATION_DESCRIPTION:"Permanently remove your organization and all of its contents. This action is not reversible — please continue with caution.",DELETE_ORGANIZATION_SUCCESS:"Organization deleted successfully",DELETE_ORGANIZATION_INSTRUCTIONS:"Enter the organization slug to continue:",SLUG_REQUIRED:"Organization slug is required",SLUG_DOES_NOT_MATCH:"The slug does not match",TEAM:"Team",TEAMS:"Teams",TEAM_ACTIVE:"Active",TEAM_SET_ACTIVE:"Set Active",CREATE_TEAM:"Create Team",CREATE_TEAM_SUCCESS:"Team created successfully",UPDATE_TEAM:"Update Team",UPDATE_TEAMS:"Update Teams",SELECT_TEAMS:"Select teams",ADD:"Add",REMOVE:"Remove",UPDATE_TEAM_DESCRIPTION:"Update the name for this team",UPDATE_TEAMS_DESCRIPTION:"Add or remove teams for this member",REMOVE_TEAM_CONFIRM:"Are you sure you want to remove this team from the organization?",CREATE_TEAM_INSTRUCTIONS:"Add new team to your organization.",TEAM_NAME:"Team Name",TEAM_NAME_PLACEHOLDER:"Engineering Team",TEAM_NAME_DESCRIPTION:"This is your team's visible name.",TEAM_NAME_INSTRUCTIONS:"Please use 64 characters at maximum.",TEAMS_DESCRIPTION:"Manage your teams within your organization.",USER_TEAMS_DESCRIPTION:"You are a member of the following teams.",DELETE_TEAM:"Delete Team",DELETE_TEAM_DESCRIPTION:"Permanently remove this team and all of its contents.",DELETE_TEAM_SUCCESS:"Team deleted successfully",DELETE_TEAM_INSTRUCTIONS:"Enter the team name to continue:",TEAM_NAME_REQUIRED:"Team name is required",TEAM_NAME_DOES_NOT_MATCH:"The team name does not match",TEAM_MEMBERS:"Team Members",TEAM_MEMBERS_DESCRIPTION:"Manage your team members and their roles.",ADD_TEAM_MEMBER:"Add Team Member",REMOVE_TEAM_MEMBER:"Remove Team Member",REMOVE_TEAM_MEMBER_CONFIRM:"Are you sure you want to remove this member from the team?",REMOVE_TEAM_MEMBER_SUCCESS:"Team member removed successfully",ADD_TEAM_MEMBER_SUCCESS:"Team member added successfully",UPDATE_TEAM_SUCCESS:"Team updated successfully",MANAGE_TEAM_MEMBERS:"Manage Team Members",MANAGE_TEAM_MEMBERS_DESCRIPTION:"Search and add organization members to this team.",NO_TEAMS_FOUND:"No teams found",MEMBER_SINGULAR:"member",MEMBER_PLURAL:"members",UNKNOWN:"Unknown",...Hpe,...qpe,...$pe,...Vpe,...Kpe,...Ype,...Zpe,...Qpe,...Jpe,...Xpe,...eme,...tme,...ame,...ome,...nme,...rme},ime={CALLBACK:"callback",EMAIL_OTP:"email-otp",EMAIL_VERIFICATION:"email-verification",FORGOT_PASSWORD:"forgot-password",MAGIC_LINK:"magic-link",RECOVER_ACCOUNT:"recover-account",RESET_PASSWORD:"reset-password",SIGN_IN:"sign-in",SIGN_OUT:"sign-out",SIGN_UP:"sign-up",TWO_FACTOR:"two-factor",ACCEPT_INVITATION:"accept-invitation"},Q2={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},J2={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const V4=A.createContext({});function H4(){return A.useContext(V4)}var mw,X2;function lme(){if(X2)return mw;X2=1;var t=function(){};return mw=t,mw}var cme=lme();const dme=Wl(cme);function ume({async:t,appendTo:e,defer:a,id:o,nonce:n,src:r}){const i=document.createElement("script");t!==void 0&&(i.async=t),a!==void 0&&(i.defer=a),o&&(i.id=o),n&&i.setAttribute("nonce",n),i.src=r,(e==="head"?document.head:document.body).appendChild(i)}var pme=function(t,e){var a={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(a[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(a[o[n]]=t[o[n]]);return a};let Rp=null,em=!1;const kb=new Set,_b=new Set,mme=typeof window<"u",Cd="___grecaptcha_cfg",G4=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function hme(){if(!mme)return;function t(a){if(em)a();else{window[Cd]||(window[Cd]={});const o=window[Cd];o.fns||(o.fns=[]),o.fns.push(a)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=t,window.grecaptcha.enterprise.ready=t;function e(){em=!0;for(const a of _b)a();_b.clear()}window[G4]=e}function gme({language:t,onLoadCallbackName:e,render:a,useEnterprise:o=!1,useRecaptchaNet:n=!1}){const r=n?"recaptcha.net":"google.com",i=o?"enterprise.js":"api.js",c=new URLSearchParams({render:a});return e&&c.set("onload",e),t&&c.set("hl",t),`https://www.${r}/recaptcha/${i}?${c.toString()}`}function fme({language:t,render:e,scriptProps:a,useEnterprise:o,useRecaptchaNet:n}){const r={id:"google-recaptcha-v3"},i=gme({language:t,onLoadCallbackName:G4,render:e,useEnterprise:o,useRecaptchaNet:n});if(Rp){if(Rp!==i)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}Rp=i,ume(Object.assign(Object.assign(Object.assign({},r),a),{src:i}))}function bme(t){if(!window[Cd])return;const e=window[Cd];e.clients&&delete e.clients[t]}function vme(t,e){var{onLoadCallback:a,onLoadCallbackName:o}=e,n=pme(e,["onLoadCallback","onLoadCallbackName"]);if(kb.size===0&&hme(),fme(n),kb.add(t),a&&(em?a():_b.add(a)),o){let r=function(){if(!o)return;const i=window[o];typeof i=="function"&&i()};em?r():_b.add(r)}}function yme(t){var e,a,o;kb.delete(t),kb.size===0&&(window.grecaptcha=void 0,window[Cd]=void 0,(e=document.querySelector(".grecaptcha-badge"))===null||e===void 0||e.remove(),(a=document.querySelector(`script[src="${Rp}"]`))===null||a===void 0||a.remove(),(o=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||o===void 0||o.remove(),Rp=null,em=!1)}let eN=!1;function Tme({container:t,children:e,language:a,reCaptchaKey:o,scriptProps:n,useEnterprise:r,useRecaptchaNet:i}){var c,d,u,m,h,f,b;const y=A.useId(),[T,x]=A.useState(null),[w,P]=A.useState(null),k=A.useRef(!1);A.useEffect(()=>{function R(){var O;const L=r?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!L)throw new Error("reCAPTCHA not found");if(!L.ready)throw new Error("reCAPTCHA ready callback not found");L.ready(()=>{x(L)})}return vme(y,{language:a,onLoadCallback:R,onLoadCallbackName:n?.onLoadCallbackName,render:t?.element?"explicit":o,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:r,useRecaptchaNet:i}),()=>{yme(y),x(null)}},[t?.element,y,a,o,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,r,i]),A.useEffect(()=>{var R,O,L;if(!t?.element||!T?.render)return;const q={"error-callback":t.parameters.errorCallback,"expired-callback":t.parameters.expiredCallback,badge:((R=t.parameters)===null||R===void 0?void 0:R.badge)||"inline",callback:t.parameters.callback,sitekey:o,size:"invisible",tabindex:t.parameters.tabindex,theme:t.parameters.theme},B=typeof t?.element=="string"?document.getElementById(t.element):t?.element;if(!B)throw new Error("reCAPTCHA container element not found");const z=T.render(B,q);return!((O=t?.parameters)===null||O===void 0)&&O.hidden&&(eN||(dme(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),eN=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),P(z),k.current=!0,()=>{P(null),k.current=!1,bme(z),B.innerHTML=""}},[t?.element,(c=t?.parameters)===null||c===void 0?void 0:c.badge,(d=t?.parameters)===null||d===void 0?void 0:d.hidden,(u=t?.parameters)===null||u===void 0?void 0:u.callback,(m=t?.parameters)===null||m===void 0?void 0:m.errorCallback,(h=t?.parameters)===null||h===void 0?void 0:h.expiredCallback,(f=t?.parameters)===null||f===void 0?void 0:f.tabindex,(b=t?.parameters)===null||b===void 0?void 0:b.theme,T,o]);const E=!!t?.element,_=E?w:o,D=A.useMemo(()=>_!==null&&T?.execute?R=>{if(_===null||!T?.execute)throw new Error("reCAPTCHA has not been loaded");return E&&!k.current?(console.warn("Client ID not mounted"),null):T.execute(_,{action:R})}:void 0,[_,T,E]);return v.jsx(V4.Provider,{value:{container:t?.element,executeRecaptcha:D,reCaptchaInstance:T},children:e})}var Sme=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(t){return this.cache.get(t)}set(t,e){const a={data:e,timestamp:Date.now(),isRefetching:!1};this.cache.set(t,a),this.notify(t)}setRefetching(t,e){const a=this.cache.get(t);a&&(a.isRefetching=e,this.notify(t))}clear(t){if(t)this.cache.delete(t),this.inFlightRequests.delete(t),this.notify(t);else{this.cache.clear(),this.inFlightRequests.clear();const e=Array.from(this.listeners.keys());for(const a of e)this.notify(a)}}getInFlightRequest(t){return this.inFlightRequests.get(t)}setInFlightRequest(t,e){this.inFlightRequests.set(t,e)}removeInFlightRequest(t){this.inFlightRequests.delete(t)}subscribe(t,e){return this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(e),()=>{const a=this.listeners.get(t);a&&(a.delete(e),a.size===0&&this.listeners.delete(t))}}notify(t){const e=this.listeners.get(t);if(e){const a=Array.from(e);for(const o of a)o()}}},Qn=new Sme;function wme(){return()=>{}}function qs(){return A.useSyncExternalStore(wme,()=>!0,()=>!1)}function W4(){const[t,e]=A.useState();return A.useEffect(()=>{const a=()=>{const n=document.documentElement.getAttribute("lang");e(n??void 0)};a();const o=new MutationObserver(n=>{for(const r of n)r.attributeName==="lang"&&a()});return o.observe(document.documentElement,{attributes:!0}),()=>{o.disconnect()}},[]),{lang:t}}function $E(){const[t,e]=A.useState("light");return A.useEffect(()=>{const a=()=>{var n;const r=document.documentElement.classList.contains("dark")||((n=document.documentElement.getAttribute("style"))==null?void 0:n.includes("color-scheme: dark"));e(r?"dark":"light")};a();const o=new MutationObserver(n=>{for(const r of n)(r.attributeName==="style"||r.attributeName==="class")&&a()});return o.observe(document.documentElement,{attributes:!0}),()=>{o.disconnect()}},[]),{theme:t}}function xme({children:t}){const e=qs(),{captcha:a}=A.useContext(St);return a?.provider!=="google-recaptcha-v3"?t:v.jsxs(Tme,{reCaptchaKey:a.siteKey,useEnterprise:a.enterprise,useRecaptchaNet:a.recaptchaNet,children:[e&&v.jsx("style",{children:`
|
|
168
|
+
`),h=d;m.length>h;h++){var f=m[h];if(1024>=f.length){var b=t2.test(f)?f.replace(t2,"$1"):f;if(!b.match(/\S*Error: /)){for(var y of r){var T=y(b,o);if(T){u.push(T);break}}if(u.length>=50)break}}}return(function(x){if(!x.length)return[];var w=Array.from(x);return w.reverse(),w.slice(0,50).map((P=>{return Me({},P,{filename:P.filename||(k=w,k[k.length-1]||{}).filename,function:P.function||Ud});var k}))})(u)}})("web:javascript",Xie,ale)),this._instance=t,this.fo=(e=(a=this._instance.persistence)==null?void 0:a.get_property(X0))!==null&&e!==void 0?e:[],this.mo=db(this.yo()),this.bo=new hle(this.mo)}onConfigChange(){this.mo=db(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(t){var e,a,o;if("errorTracking"in t){var n=(e=(a=t.errorTracking)==null?void 0:a.suppressionRules)!==null&&e!==void 0?e:[],r=(o=t.errorTracking)==null?void 0:o.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[X0]:this.fo,[ex]:r})}}get _o(){var t,e=!!this._instance.get_property(ex),a=this._instance.config.error_tracking.captureExtensionExceptions;return(t=a??e)!==null&&t!==void 0&&t}buildProperties(t,e){return this.po.buildFromUnknown(t,{syntheticException:e?.syntheticException,mechanism:{handled:e?.handled}})}addExceptionStep(t,e){if(this.mo.enabled)try{if(!Ea(t)||t.trim().length===0)return void ks.warn("Ignoring exception step because message must be a non-empty string");var a=this.wo(e),{sanitizedProperties:o,droppedKeys:n}=(function(r){if(!r)return{sanitizedProperties:{},droppedKeys:[]};var i=[];return{sanitizedProperties:Object.keys(r).reduce(((c,d)=>mle.has(d)?(i.push(d),c):(c[d]=r[d],c)),{}),droppedKeys:i}})(a);n.length>0&&ks.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Me({[lb]:t,[cb]:new Date().toISOString()},o))}catch(r){ks.error("Failed to add exception step. Ignoring breadcrumb.",r)}}sendExceptionEvent(t){try{var e=t.$exception_list;if(this.Io(e)){if(this.Co(e))return this.So("Exception dropped: matched a suppression rule"),void ks.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(e))return this.So("Exception dropped: thrown by a browser extension"),void ks.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(e))return this.So("Exception dropped: thrown by the PostHog SDK"),void ks.info("Skipping exception capture because it was thrown by the PostHog SDK")}var a=this.mo.enabled&&kt(t.$exception_steps)?this.To(t):t;try{var o=this._instance.capture("$exception",a,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return o&&this.bo.clear(),o}catch(n){return ks.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void ks.error("Failed to process exception event. Ignoring this exception.",n)}}To(t){try{var e=this.bo.getAttachable();return e.length===0?t:Me({},t,{$exception_steps:e})}catch(a){return ks.error("Failed to read buffered exception steps. Capturing exception without steps.",a),t}}So(t){this.mo.enabled&&this.bo.add({[lb]:t,[cb]:new Date().toISOString()})}wo(t){return La(t)?Me({},t):{}}yo(){var t,e;return(t=(e=this._instance.config.error_tracking)==null?void 0:e.exception_steps)!==null&&t!==void 0?t:{}}Co(t){if(t.length===0)return!1;var e=t.reduce(((a,o)=>{var{type:n,value:r}=o;return Ea(n)&&n.length>0&&a.$exception_types.push(n),Ea(r)&&r.length>0&&a.$exception_values.push(r),a}),{$exception_types:[],$exception_values:[]});return this.fo.some((a=>{var o=a.values.map((n=>{var r,i=n4[n.operator],c=Bt(n.value)?n.value:[n.value],d=(r=e[n.key])!==null&&r!==void 0?r:[];return c.length>0&&i(c,d)}));return a.type==="OR"?o.some(Boolean):o.every(Boolean)}))}xo(t){return t.flatMap((e=>{var a,o;return(a=(o=e.stacktrace)==null?void 0:o.frames)!==null&&a!==void 0?a:[]})).some((e=>e.filename&&e.filename.startsWith("chrome-extension://")))}ko(t){if(t.length>0){var e,a,o,n,r=(e=(a=t[0].stacktrace)==null?void 0:a.frames)!==null&&e!==void 0?e:[],i=r[r.length-1];return(o=i==null||(n=i.filename)==null?void 0:n.includes("posthog.com/static"))!==null&&o!==void 0&&o}return!1}Io(t){return!kt(t)&&Bt(t)}}},Pce=Me({productTours:class{get ni(){return this._instance.persistence}constructor(t){this.Ao=null,this.Eo=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){"productTours"in t&&(this.ni&&this.ni.register({[ax]:!!t.productTours}),this.loadIfEnabled())}loadIfEnabled(){var t,e;this.Ao||(t=this._instance).config.disable_product_tours||(e=t.persistence)==null||!e.get_property(ax)||this.ur((()=>this.Ro()))}ur(t){var e,a;(e=at.__PosthogExtensions__)!=null&&e.generateProductTours?t():(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"product-tours",(o=>{o?j2.error("Could not load product tours script",o):t()}))}Ro(){var t;!this.Ao&&(t=at.__PosthogExtensions__)!=null&&t.generateProductTours&&(this.Ao=at.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(t,e){if(e===void 0&&(e=!1),!Bt(this.Eo)||e){var a=this.ni;if(a){var o=a.props[Pf];if(Bt(o)&&!e)return this.Eo=o,void t(o,{isLoaded:!0})}this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/product_tours/?token="+this._instance.config.token),method:"GET",callback:n=>{var r=n.statusCode;if(r!==200||!n.json){var i="Product Tours API could not be loaded, status: "+r;return j2.error(i),void t([],{isLoaded:!1,error:i})}var c=Bt(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,a&&a.register({[Pf]:c}),t(c,{isLoaded:!0})}})}else t(this.Eo,{isLoaded:!0})}getActiveProductTours(t){kt(this.Ao)?t([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(t)}showProductTour(t){var e;(e=this.Ao)==null||e.showTourById(t)}previewTour(t){this.Ao?this.Ao.previewTour(t):this.ur((()=>{var e;this.Ro(),(e=this.Ao)==null||e.previewTour(t)}))}dismissProductTour(){var t;(t=this.Ao)==null||t.dismissTour("user_clicked_skip")}nextStep(){var t;(t=this.Ao)==null||t.nextStep()}previousStep(){var t;(t=this.Ao)==null||t.previousStep()}clearCache(){var t;this.Eo=null,(t=this.ni)==null||t.unregister(Pf)}resetTour(t){var e;(e=this.Ao)==null||e.resetTour(t)}resetAllTours(){var t;(t=this.Ao)==null||t.resetAllTours()}cancelPendingTour(t){var e;(e=this.Ao)==null||e.cancelPendingTour(t)}}},vv),Ece={siteApps:class{constructor(t){this._instance=t,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(t,e){if(e){var a=this.globalsForEvent(e);this.No.push(a),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var t;return(t=at._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.siteApps}initialize(){if(this.isEnabled){var t=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{t(),this.No=[],this.Fo=void 0}}}globalsForEvent(t){var e,a,o,n,r,i,c;if(!t)throw new Error("Event payload is required");var d={},u=this._instance.get_property("$groups")||[],m=this._instance.get_property("$stored_group_properties")||{};for(var[h,f]of Object.entries(m))d[h]={id:u[h],type:h,properties:f};var{$set_once:b,$set:y}=t;return{event:Me({},r3(t,gce),{properties:Me({},t.properties,y?{$set:Me({},(e=(a=t.properties)==null?void 0:a.$set)!==null&&e!==void 0?e:{},y)}:{},b?{$set_once:Me({},(o=(n=t.properties)==null?void 0:n.$set_once)!==null&&o!==void 0?o:{},b)}:{}),elements_chain:(r=(i=t.properties)==null?void 0:i.$elements_chain)!==null&&r!==void 0?r:"",distinct_id:(c=t.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(t){var e=this.apps[t.id],a=()=>{var i;!e.errored&&this.No.length&&(yi.info("Processing "+this.No.length+" events for site app with id "+t.id),this.No.forEach((c=>e.processEvent==null?void 0:e.processEvent(c))),e.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((i=this.Fo)==null||i.call(this))},o=!1,n=i=>{e.errored=!i,e.loaded=!0,yi.info("Site app with id "+t.id+" "+(i?"loaded":"errored")),o&&a()};try{var{processEvent:r}=t.init({posthog:this._instance,callback(i){n(i)}});r&&(e.processEvent=r),o=!0}catch(i){yi.error(z2+t.id,i),n(!1)}if(o&&e.loaded)try{a()}catch(i){yi.error("Error while processing buffered events PostHog app with config id "+t.id,i),e.errored=!0}}Oo(){var t=this.siteAppLoaders||[];for(var e of t)this.apps[e.id]={id:e.id,loaded:!1,errored:!1,processedBuffer:!1};for(var a of t)this.setupSiteApp(a)}Po(t){if(Object.keys(this.apps).length!==0){var e=this.globalsForEvent(t);for(var a of Object.values(this.apps))try{a.processEvent==null||a.processEvent(e)}catch(o){yi.error("Error while processing event "+t.event+" for site app "+a.id,o)}}}onRemoteConfig(t){var e,a,o,n=this;if((e=this.siteAppLoaders)!=null&&e.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void yi.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((a=this.Fo)==null||a.call(this),(o=t.siteApps)!=null&&o.length)if(this.isEnabled){var r=function(d){var u;at["__$$ph_site_app_"+d]=n._instance,(u=at.__PosthogExtensions__)==null||u.loadSiteApp==null||u.loadSiteApp(n._instance,c,(m=>{if(m)return yi.error(z2+d,m)}))};for(var{id:i,url:c}of t.siteApps)r(i)}else yi.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},Cce={tracingHeaders:class{constructor(t){this.Lo=void 0,this.Do=void 0,this.so=()=>{var e,a,o=this.Bo()||[];$e(this.Lo)&&((e=at.__PosthogExtensions__)==null||(e=e.tracingHeadersPatchFns)==null||e._patchXHR(o,this._instance.get_distinct_id(),this._instance.sessionManager)),$e(this.Do)&&((a=at.__PosthogExtensions__)==null||(a=a.tracingHeadersPatchFns)==null||a._patchFetch(o,this._instance.get_distinct_id(),this._instance.sessionManager))},this._instance=t}initialize(){this.startIfEnabledOrStop()}ur(t){var e,a;(e=at.__PosthogExtensions__)!=null&&e.tracingHeadersPatchFns&&t(),(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"tracing-headers",(o=>{if(o)return mce.error("failed to load script",o);t()}))}Bo(){var t;return(t=this._instance.config.addTracingHeaders)!==null&&t!==void 0?t:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var t,e;this.Bo()?this.ur(this.so):((t=this.Lo)==null||t.call(this),(e=this.Do)==null||e.call(this),this.Lo=void 0,this.Do=void 0)}}},kce=Me({surveys:class{get Bt(){return this._instance.config}constructor(t){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=t,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this.Bt.disable_surveys){var e=t.surveys;if(kt(e))return aa.warn("Flags not loaded yet. Not loading surveys.");var a=Bt(e);this.jo=a?e.length>0:e,aa.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var t=[],e=0;e<localStorage.length;e++){var a=localStorage.key(e);(a!=null&&a.startsWith(wx)||a!=null&&a.startsWith("inProgressSurvey_"))&&t.push(a)}t.forEach((o=>localStorage.removeItem(o)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)aa.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)aa.info(U2);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())aa.info("Not loading surveys in cookieless mode without consent.");else{var t=at?.__PosthogExtensions__;if(t){if(!$e(this.jo)||this.Bt.advanced_enable_surveys){var e=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var a=t.generateSurveys;if(a)return void this.Vo(a,e);var o=t.loadExternalDependency;if(!o)return void this.Ho(RE);o(this._instance,"surveys",(n=>{n||!t.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(t.generateSurveys,e)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else aa.error("PostHog Extensions not found.")}}Vo(t,e){this._surveyManager=t(this._instance,e),this._surveyEventReceiver=new vce(this._instance),aa.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(t,e){aa.error(t,e),this.zo({isLoaded:!1,error:t})}onSurveysLoaded(t){return this.qo.push(t),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((e=>e!==t))}}getSurveys(t,e){if(e===void 0&&(e=!1),this.Bt.disable_surveys)return aa.info(U2),t([]);var a,o=this._instance.get_property(ix);if(o&&!e)return t(o,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:r,context:i}=n;return t(r,i)})):(typeof Promise<"u"&&(this.Zo=new Promise((n=>{a=n}))),this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/surveys/?token="+this.Bt.token),method:"GET",timeout:this.Bt.surveys_request_timeout_ms,callback:n=>{var r;this.Zo=null;var i=n.statusCode;if(i!==200||!n.json){var c="Surveys API could not be loaded, status: "+i;aa.error(c);var d={isLoaded:!1,error:c};return t([],d),void(a==null||a({surveys:[],context:d}))}var u,m=n.json.surveys||[],h=m.filter((b=>(function(y){return!(!y.start_date||y.end_date)})(b)&&((function(y){var T;return!((T=y.conditions)==null||(T=T.events)==null||(T=T.values)==null||!T.length)})(b)||(function(y){var T;return!((T=y.conditions)==null||(T=T.actions)==null||(T=T.values)==null||!T.length)})(b))));h.length>0&&((u=this._surveyEventReceiver)==null||u.register(h)),(r=this._instance.persistence)==null||r.register({[ix]:m});var f={isLoaded:!0};t(m,f),a?.({surveys:m,context:f})}}))}zo(t){for(var e of this.qo)try{if(!t.isLoaded)return e([],t);this.getSurveys(e)}catch(a){aa.error("Error in survey callback",a)}}getActiveMatchingSurveys(t,e){if(e===void 0&&(e=!1),!kt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(t,e);aa.warn("init was not called")}Uo(t){var e=null;return this.getSurveys((a=>{var o;e=(o=a.find((n=>n.id===t)))!==null&&o!==void 0?o:null})),e}Yo(t){if(kt(this._surveyManager))return{eligible:!1,reason:lw};var e=typeof t=="string"?this.Uo(t):t;return e?this._surveyManager.checkSurveyEligibility(e):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(t){if(kt(this._surveyManager))return aa.warn("init was not called"),{visible:!1,disabledReason:lw};var e=this.Yo(t);return{visible:e.eligible,disabledReason:e.reason}}canRenderSurveyAsync(t,e){return kt(this._surveyManager)?(aa.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:lw})):new Promise((a=>{this.getSurveys((o=>{var n,r=(n=o.find((c=>c.id===t)))!==null&&n!==void 0?n:null;if(r){var i=this.Yo(r);a({visible:i.eligible,disabledReason:i.reason})}else a({visible:!1,disabledReason:"Survey not found"})}),e)}))}renderSurvey(t,e,a){var o;if(kt(this._surveyManager))aa.warn("init was not called");else{var n=typeof t=="string"?this.Uo(t):t;if(n!=null&&n.id)if(Jle.includes(n.type)){var r=ze?.querySelector(e);if(r)return(o=n.appearance)!=null&&o.surveyPopupDelaySeconds?(aa.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var i,c;aa.info("Rendering survey "+n.id+" with delay of "+((i=n.appearance)==null?void 0:i.surveyPopupDelaySeconds)+" seconds"),(c=this._surveyManager)==null||c.renderSurvey(n,r,a),aa.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,r,a);aa.warn("Survey element not found")}else aa.warn("Surveys of type "+n.type+" cannot be rendered in the app");else aa.warn("Survey not found")}}displaySurvey(t,e){var a;if(kt(this._surveyManager))aa.warn("init was not called");else{var o=this.Uo(t);if(o){var n=o;if((a=o.appearance)!=null&&a.surveyPopupDelaySeconds&&e.ignoreDelay&&(n=Me({},o,{appearance:Me({},o.appearance,{surveyPopupDelaySeconds:0})})),e.displayType!==fx.Popover&&e.initialResponses&&aa.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),e.ignoreConditions===!1){var r=this.canRenderSurvey(o);if(!r.visible)return void aa.warn("Survey is not eligible to be displayed: ",r.disabledReason)}e.displayType!==fx.Inline?this._surveyManager.handlePopoverSurvey(n,e):this.renderSurvey(n,e.selector,e.properties)}else aa.warn("Survey not found")}}cancelPendingSurvey(t){kt(this._surveyManager)?aa.warn("init was not called"):this._surveyManager.cancelSurvey(t)}handlePageUnload(){var t;(t=this._surveyManager)==null||t.handlePageUnload()}}},vv),_ce={toolbar:class{constructor(t){this.instance=t}Go(t){at.ph_toolbar_state=t}Wo(){var t;return(t=at.ph_toolbar_state)!==null&&t!==void 0?t:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(t,e,a){if(t===void 0&&(t=void 0),e===void 0&&(e=void 0),a===void 0&&(a=void 0),j3(this.instance.config)||!ge||!ze)return!1;t=t??ge.location,a=a??ge.history;try{if(!e){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}e=ge?.localStorage}var o,n=yce||Sb(t.hash,"__posthog")||Sb(t.hash,"state"),r=n?o2((()=>JSON.parse(atob(decodeURIComponent(n)))))||o2((()=>JSON.parse(decodeURIComponent(n)))):null;return r&&r.action==="ph_authorize"?((o=r).source="url",o&&Object.keys(o).length>0&&(r.desiredHash?t.hash=r.desiredHash:a?a.replaceState(a.state,"",t.pathname+t.search):t.hash="")):((o=JSON.parse(e.getItem(q2)||"{}")).source="localstorage",delete o.userIntent),!(!o.token||this.instance.config.token!==o.token||(this.loadToolbar(o),0))}catch{return!1}}Xo(t){var e=at.ph_load_toolbar||at.ph_load_editor;!kt(e)&&As(e)?e(t,this.instance):$2.warn("No toolbar load function found")}loadToolbar(t){var e=!(ze==null||!ze.getElementById(I3));if(!ge||e)return!1;var a=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,o=Me({token:this.instance.config.token},t,{apiURL:this.instance.requestRouter.endpointFor("ui")},a?{instrument:!1}:{});if(ge.localStorage.setItem(q2,JSON.stringify(Me({},o,{source:void 0}))),this.Wo()===2)this.Xo(o);else if(this.Wo()===0){var n;this.Go(1),(n=at.__PosthogExtensions__)==null||n.loadExternalDependency==null||n.loadExternalDependency(this.instance,"toolbar",(r=>{if(r)return $2.error("[Toolbar] Failed to load",r),void this.Go(0);this.Go(2),this.Xo(o)})),Za(ge,"turbolinks:load",(()=>{this.Go(0),this.loadToolbar(o)}))}return!0}Jo(t){return this.loadToolbar(t)}maybeLoadEditor(t,e,a){return t===void 0&&(t=void 0),e===void 0&&(e=void 0),a===void 0&&(a=void 0),this.maybeLoadToolbar(t,e,a)}}},Ace=Me({experiments:Lo},vv),Rce={conversations:class{constructor(t){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=t}initialize(){this.loadIfEnabled()}onRemoteConfig(t){if(!this._instance.config.disable_conversations){var e=t.conversations;kt(e)||(Kr(e)?this.Ko=e:(this.Ko=e.enabled,this.ea=e),this.loadIfEnabled())}}reset(){var t;(t=this._conversationsManager)==null||t.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||j3(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var t=at?.__PosthogExtensions__;if(t&&!$e(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var e=t.initConversations;if(e)return this.ta(e),void(this.Qo=!1);var a=t.loadExternalDependency;if(!a)return void this.ra(RE);a(this._instance,"conversations",(o=>{o||!t.initConversations?this.ra("Could not load conversations script",o):this.ta(t.initConversations),this.Qo=!1}))}catch(o){this.ra("Error initializing conversations",o),this.Qo=!1}}else Zn.error("Conversations enabled but missing token in remote config.")}}ta(t){if(this.ea)try{this._conversationsManager=t(this.ea,this._instance),Zn.info("Conversations loaded successfully")}catch(e){this.ra("Error completing conversations initialization",e)}else Zn.error("Cannot complete initialization: remote config is null")}ra(t,e){Zn.error(t,e),this._conversationsManager=null,this.Qo=!1}show(){this._conversationsManager?this._conversationsManager.show():Zn.warn("Conversations not loaded yet.")}hide(){this._conversationsManager&&this._conversationsManager.hide()}isAvailable(){return this.Ko===!0&&!js(this._conversationsManager)}isVisible(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.isVisible())!==null&&t!==void 0&&t}sendMessage(t,e,a){var o=this;return er((function*(){return o._conversationsManager?o._conversationsManager.sendMessage(t,e,a):(Zn.warn(El),null)}))()}getMessages(t,e){var a=this;return er((function*(){return a._conversationsManager?a._conversationsManager.getMessages(t,e):(Zn.warn(El),null)}))()}markAsRead(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.markAsRead(t):(Zn.warn(El),null)}))()}getTickets(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.getTickets(t):(Zn.warn(El),null)}))()}requestRestoreLink(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.requestRestoreLink(t):(Zn.warn(El),null)}))()}restoreFromToken(t){var e=this;return er((function*(){return e._conversationsManager?e._conversationsManager.restoreFromToken(t):(Zn.warn(El),null)}))()}restoreFromUrlToken(){var t=this;return er((function*(){return t._conversationsManager?t._conversationsManager.restoreFromUrlToken():(Zn.warn(El),null)}))()}getCurrentTicketId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getCurrentTicketId())!==null&&t!==void 0?t:null}getWidgetSessionId(){var t,e;return(t=(e=this._conversationsManager)==null?void 0:e.getWidgetSessionId())!==null&&t!==void 0?t:null}un(){var t;(t=this._conversationsManager)==null||t.setIdentity()}hn(){var t;(t=this._conversationsManager)==null||t.clearIdentity()}}},Dce={logs:class{constructor(t){var e;this.ia=!1,this.na=!1,this.Gt=Sa("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=t,this._instance&&(e=this._instance.config.logs)!=null&&e.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(t){var e,a=(e=t.logs)==null?void 0:e.captureConsoleLogs;!kt(a)&&a&&(this.ia=!0,this.loadIfEnabled())}reset(){this.sa=[],this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.oa=0,this.aa=0,this.la=!1}loadIfEnabled(){if(this.ia&&!this.na){var t=at?.__PosthogExtensions__;if(t){var e=t.loadExternalDependency;e?e(this._instance,"logs",(a=>{var o;a||(o=t.logs)==null||!o.initializeLogs?this.Gt.error("Could not load logs script",a):(t.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(RE)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(t){var e,a,o,n,r,i;if(this._instance.is_capturing())if(t&&t.body){var c=(e=(a=this._instance.config.logs)==null?void 0:a.flushIntervalMs)!==null&&e!==void 0?e:3e3,d=(o=(n=this._instance.config.logs)==null?void 0:n.maxLogsPerInterval)!==null&&o!==void 0?o:1e3,u=Date.now();if(c>u-this.aa||(this.aa=u,this.oa=0,this.la=!1),d>this.oa){this.oa++;var m=(function(h,f){var b=h.level||"info",{text:y,number:T}=E3[b]||Wie,x=String(Date.now())+"000000",w={};f.distinctId&&(w.posthogDistinctId=f.distinctId),f.sessionId&&(w.sessionId=f.sessionId),f.currentUrl&&(w["url.full"]=f.currentUrl),f.screenName&&(w["screen.name"]=f.screenName),f.appState&&(w["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(w.feature_flags=f.activeFeatureFlags);var P=Me({},w,h.attributes||{}),k={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:T,severityText:y,body:{stringValue:h.body},attributes:e2(P)};return h.trace_id&&(k.traceId=h.trace_id),h.span_id&&(k.spanId=h.span_id),$e(h.trace_flags)||(k.flags=h.trace_flags),k})(t,this.ua());this.sa.push({record:m}),((r=(i=this._instance.config.logs)==null?void 0:i.maxBufferSize)!==null&&r!==void 0?r:100)>this.sa.length?this.ha():this.flushLogs()}else this.la||(this.Gt.warn("captureLog dropping logs: exceeded "+d+" logs per "+c+"ms"),this.la=!0)}else this.Gt.warn("captureLog requires a body")}get logger(){return this.ca||(this.ca={trace:(t,e)=>this.captureLog({body:t,level:"trace",attributes:e}),debug:(t,e)=>this.captureLog({body:t,level:"debug",attributes:e}),info:(t,e)=>this.captureLog({body:t,level:"info",attributes:e}),warn:(t,e)=>this.captureLog({body:t,level:"warn",attributes:e}),error:(t,e)=>this.captureLog({body:t,level:"error",attributes:e}),fatal:(t,e)=>this.captureLog({body:t,level:"fatal",attributes:e})}),this.ca}flushLogs(t){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var e=this.sa;this.sa=[];var a=this._instance.config.logs,o=Me({"service.name":a?.serviceName||"unknown_service"},a?.environment&&{"deployment.environment":a.environment},a?.serviceVersion&&{"service.version":a.serviceVersion},a?.resourceAttributes),n=(function(i,c,d,u){return{resourceLogs:[{resource:{attributes:e2(c)},scopeLogs:[{scope:{name:d,version:u},logRecords:i}]}]}})(e.map((i=>i.record)),o,Zo.LIB_NAME,Zo.LIB_VERSION),r=this._instance.requestRouter.endpointFor("api","/i/v1/logs")+"?token="+encodeURIComponent(this._instance.config.token);this._instance.Vi({method:"POST",url:r,data:n,compression:"best-available",batchKey:"logs",transport:t})}}ha(){var t,e;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(t=(e=this._instance.config.logs)==null?void 0:e.flushIntervalMs)!==null&&t!==void 0?t:3e3))}ua(){var t,e={};if(e.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:a}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);e.sessionId=a}if(at!=null&&(t=at.location)!=null&&t.href&&(e.currentUrl=at.location.href),this._instance.featureFlags){var o=this._instance.featureFlags.getFlags();o&&o.length>0&&(e.activeFeatureFlags=o)}return e}}},Oce=Me({},vv,Sce,wce,xce,Pce,Ece,kce,Cce,_ce,Ace,Rce,Dce);tr.__defaultExtensionClasses=Me({},Oce);var W2,zs=(W2=_p[dd]=new tr,(function(){function t(){t.done||(t.done=!0,i4=!1,fa(_p,(function(e){e._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?t():Za(ze,"DOMContentLoaded",t,{capture:!1}):ge&&qe.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),W2);let Is=!1,kx=null,K2=!1;const BE="studio:lp-distinct-id",f4="mesh:lp-distinct-id",dw="/api/_reports/link-token/",Nce=1440*60*1e3;function b4(t){const e="https://analytics.invalid",a=/^[a-z][a-z\d+.-]*:\/\//i.test(t),o=t.startsWith("//");try{const n=new URL(t,e);let r=!1;for(const i of["key","d"])n.searchParams.has(i)&&(n.searchParams.delete(i),r=!0);return n.pathname.startsWith(dw)&&n.pathname!==dw&&(n.pathname=`${dw}redacted`,r=!0),r?a?n.toString():o?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:t}catch{return t}}function uw(t){return Object.fromEntries(Object.entries(t).map(([e,a])=>[e,typeof a=="string"?b4(a):a]))}const Mce=t=>t?(t.properties=uw(t.properties),t.$set&&(t.$set=uw(t.$set)),t.$set_once&&(t.$set_once=uw(t.$set_once)),t):null;function v4(){try{const t=window.localStorage.getItem(BE)??window.localStorage.getItem(f4);if(!t)return;const{id:e,ts:a}=JSON.parse(t);return typeof e!="string"||!e||typeof a!="number"?void 0:Date.now()-a<=Nce?e:void 0}catch{return}}function Ice(){try{window.localStorage.removeItem(BE),window.localStorage.removeItem(f4)}catch{}}function Lce(){try{const t=new URL(window.location.href),e=t.searchParams.get("ph_did");e&&(window.localStorage.setItem(BE,JSON.stringify({id:e,ts:Date.now()})),t.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",t.toString()));const a=e??v4();return a?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:a:void 0}catch{return}}function Bce(t){const e=v4();if(e&&(Ice(),e!==t))try{zs.alias(e)}catch{}}function Fce(t,e){if(Is||typeof window>"u")return;const a=Lce();zs.init(t,{api_host:e,ui_host:"https://us.posthog.com",cross_subdomain_cookie:!0,...a?{bootstrap:{distinctID:a}}:{},capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,before_send:Mce,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture",maskCapturedNetworkRequestFn:o=>({...o,...typeof o.name=="string"?{name:b4(o.name)}:{}})},person_profiles:"identified_only"}),Is=!0}function jce(t,e){Is&&(zs.identify(t,e),Bce(t))}function zce(){Is&&(zs.reset(),kx=null)}function y4(t,e){Is&&zs.capture(t,e)}function Ywe(){return Is}function Zwe(){if(!Is||K2||typeof performance>"u")return;K2=!0;const t=performance.getEntriesByType("navigation")[0],e=a=>{const o=performance.getEntriesByName(a,"measure")[0];return o?Math.round(o.duration):void 0};y4("perf_app_bootstrap",{nav_type:t?.type,ttfb_ms:t?Math.round(t.responseStart):void 0,dom_interactive_ms:t?Math.round(t.domInteractive):void 0,dom_content_loaded_ms:t?Math.round(t.domContentLoadedEventEnd):void 0,config_fetch_ms:e("studio:config-fetch"),active_org_fetch_ms:e("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:lJ(),org_cache_restored:cJ()})}function Qwe(t,e){Is&&t!==kx&&(zs.group("organization",t,e),kx=t)}function T4(t,e){if(Is)try{zs.captureException(t,e)}catch{}}const Uce=["radial-gradient(ellipse 85% 85% at 0% 0%, rgba(165,149,255,0.6) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 100% 100%, rgba(208,236,26,0.52) 0%, transparent 72%)","radial-gradient(ellipse 85% 85% at 0% 100%, rgba(255,193,22,0.48) 0%, transparent 72%)"].join(", ");function qce(t){const e=ye.c(3),{children:a}=t;let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=v.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:Uce}}),e[0]=o):o=e[0];let n;return e[1]!==a?(n=v.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[o,v.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:a})]}),e[1]=a,e[2]=n):n=e[2],n}function S4(t){const e=ye.c(20),{orgName:a}=t,o=qo(),n=$ce;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=v.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:v.jsx(Bj,{className:"h-6 w-6 text-muted-foreground"})}),e[0]=r):r=e[0];let i;e[1]!==o?(i=o("common.archivedOrgScreen.orgUnavailable"),e[1]=o,e[2]=i):i=e[2];let c;e[3]!==i?(c=v.jsx("h3",{className:"text-lg font-medium",children:i}),e[3]=i,e[4]=c):c=e[4];let d;e[5]!==a||e[6]!==o?(d=a?o("common.archivedOrgScreen.deletedWithName",{orgName:a}):o("common.archivedOrgScreen.deletedGeneric"),e[5]=a,e[6]=o,e[7]=d):d=e[7];let u;e[8]!==d?(u=v.jsx("p",{className:"text-sm text-muted-foreground",children:d}),e[8]=d,e[9]=u):u=e[9];let m;e[10]!==c||e[11]!==u?(m=v.jsxs("div",{className:"space-y-2",children:[c,u]}),e[10]=c,e[11]=u,e[12]=m):m=e[12];let h;e[13]!==o?(h=o("common.goHome"),e[13]=o,e[14]=h):h=e[14];let f;e[15]!==h?(f=v.jsx(vn,{onClick:n,children:h}),e[15]=h,e[16]=f):f=e[16];let b;return e[17]!==m||e[18]!==f?(b=v.jsxs(qce,{children:[r,m,f]}),e[17]=m,e[18]=f,e[19]=b):b=e[19],b}function $ce(){window.location.href="/"}function Vce(){const t=ye.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e={from:"/shell/$org"},t[0]=e):e=t[0];const{org:a}=rm(e);let o;return t[1]!==a?(o=v.jsx(vn,{variant:"outline",size:"sm",asChild:!0,children:v.jsx(Kl,{to:"/$org/settings/profile",params:{org:a},children:"Go to your profile"})}),t[1]=a,t[2]=o):o=t[2],o}function Hce(t){const e=ye.c(13),{area:a,description:o,action:n}=t,r=a?`No access to ${a}`:"No access",i=o??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=v.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:v.jsx(Gj,{size:28})}),e[0]=c):c=e[0];let d;e[1]!==r?(d=v.jsx("h3",{className:"text-lg font-medium",children:r}),e[1]=r,e[2]=d):d=e[2];let u;e[3]!==i?(u=v.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:i}),e[3]=i,e[4]=u):u=e[4];let m;e[5]!==d||e[6]!==u?(m=v.jsxs("div",{className:"space-y-1",children:[d,u]}),e[5]=d,e[6]=u,e[7]=m):m=e[7];let h;e[8]!==n?(h=n??v.jsx(Vce,{}),e[8]=n,e[9]=h):h=e[9];let f;return e[10]!==m||e[11]!==h?(f=v.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[c,m,h]}),e[10]=m,e[11]=h,e[12]=f):f=e[12],f}const Y2="__studio_chunk_reload_ts";function w4(t){return t?.message===BX}function Gce(t){return!!t?.message?.includes("Access denied")}function Z2(t){if(!t)return!1;const e=t.message||"";return e.includes("Failed to fetch dynamically imported module")||e.includes("Importing a module script failed")||e.includes("error loading dynamically imported module")||e.includes("Failed to fetch")&&t.name==="TypeError"}class Wce extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,a){console.error("Uncaught error:",e,a),T4(e,{boundary:"default",error_name:e.name,error_message:e.message,component_stack:a.componentStack??null,route:typeof window<"u"?window.location.pathname:null})}resetError=()=>{this.setState({hasError:!1,error:null})};render(){if(this.state.hasError){const{fallback:e,t:a}=this.props;return typeof e=="function"?e({error:this.state.error,resetError:this.resetError}):e!==void 0?e:w4(this.state.error)?v.jsx(S4,{}):Gce(this.state.error)?v.jsx(Hce,{}):v.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[v.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:v.jsx(TE,{className:"h-6 w-6 text-destructive"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h3",{className:"text-lg font-medium",children:a("common.errorBoundary.somethingWentWrong")}),v.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||a("common.errorBoundary.unexpectedError")})]}),v.jsx(vn,{variant:"outline",onClick:this.resetError,children:a("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Kce(t){const e=ye.c(3),a=qo();let o;return e[0]!==t||e[1]!==a?(o=v.jsx(Wce,{...t,t:a}),e[0]=t,e[1]=a,e[2]=o):o=e[2],o}class Yce extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,a){console.error("Uncaught error:",e,a);const o=Z2(e);if(T4(e,{boundary:"chunk_root",is_chunk_load_error:o,error_name:e.name,error_message:e.message,component_stack:a.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!o)return;const n=sessionStorage.getItem(Y2),r=Date.now();(!n||r-Number(n)>1e4)&&(sessionStorage.setItem(Y2,String(r)),window.location.reload())}render(){const{t:e}=this.props;return this.state.hasError&&Z2(this.state.error)?v.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[v.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:v.jsx(Wj,{className:"h-6 w-6 text-primary"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.newVersionAvailable")}),v.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:e("common.errorBoundary.newVersionDeployed")})]}),v.jsx(vn,{onClick:()=>window.location.reload(),children:e("common.errorBoundary.refresh")})]}):this.state.hasError?w4(this.state.error)?v.jsx(S4,{}):v.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[v.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:v.jsx(TE,{className:"h-6 w-6 text-destructive"})}),v.jsxs("div",{className:"space-y-2",children:[v.jsx("h3",{className:"text-lg font-medium",children:e("common.errorBoundary.somethingWentWrong")}),v.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||e("common.errorBoundary.unexpectedError")})]}),v.jsx(vn,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:e("common.errorBoundary.tryAgain")})]}):this.props.children}}function Zce(t){const e=ye.c(3),a=qo();let o;return e[0]!==t||e[1]!==a?(o=v.jsx(Yce,{...t,t:a}),e[0]=t,e[1]=a,e[2]=o):o=e[2],o}const Qce=Ql("surface flex flex-col gap-4",{variants:{size:{default:"p-5",tile:"gap-3 p-4",flush:"p-0"},interactive:{true:"surface-interactive focus-ring cursor-pointer text-left",false:""}},defaultVariants:{size:"default",interactive:!1}});function Jce(t){const e=ye.c(14);let a,o,n,r,i;e[0]!==t?({className:a,size:r,interactive:o,asChild:i,...n}=t,e[0]=t,e[1]=a,e[2]=o,e[3]=n,e[4]=r,e[5]=i):(a=e[1],o=e[2],n=e[3],r=e[4],i=e[5]);const d=(i===void 0?!1:i)?rv:"div";let u;e[6]!==a||e[7]!==o||e[8]!==r?(u=Qe(Qce({size:r,interactive:o}),a),e[6]=a,e[7]=o,e[8]=r,e[9]=u):u=e[9];let m;return e[10]!==d||e[11]!==n||e[12]!==u?(m=v.jsx(d,{"data-slot":"card",className:u,...n}),e[10]=d,e[11]=n,e[12]=u,e[13]=m):m=e[13],m}function Jwe(t){const e=ye.c(11),{title:a,description:o,docsHref:n,actions:r,className:i,children:c}=t;let d;e[0]!==i?(d=Qe("flex flex-col gap-3",i),e[0]=i,e[1]=d):d=e[1];let u;e[2]!==r||e[3]!==o||e[4]!==n||e[5]!==a?(u=(a||o||n||r)&&v.jsxs("div",{className:"flex items-center justify-between gap-3 px-4",children:[v.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[a&&v.jsx("h2",{className:"text-base font-medium leading-tight",children:a}),(o||n)&&v.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[o,n&&v.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",v.jsx(Fj,{size:12})]})]})]}),r&&v.jsx("div",{className:"shrink-0",children:r})]}),e[2]=r,e[3]=o,e[4]=n,e[5]=a,e[6]=u):u=e[6];let m;return e[7]!==c||e[8]!==d||e[9]!==u?(m=v.jsxs("section",{className:d,children:[u,c]}),e[7]=c,e[8]=d,e[9]=u,e[10]=m):m=e[10],m}function Xwe(t){const e=ye.c(11),{className:a,children:o}=t;let n,r,i;if(e[0]!==o||e[1]!==a){const d=A.Children.toArray(o).filter(A.isValidElement);n=Jce,e[5]!==a?(r=Qe("p-0 gap-0 overflow-hidden",a),e[5]=a,e[6]=r):r=e[6],i=d.map(Xce),e[0]=o,e[1]=a,e[2]=n,e[3]=r,e[4]=i}else n=e[2],r=e[3],i=e[4];let c;return e[7]!==n||e[8]!==r||e[9]!==i?(c=v.jsx(n,{className:r,children:i}),e[7]=n,e[8]=r,e[9]=i,e[10]=c):c=e[10],c}function Xce(t,e){return v.jsxs("div",{children:[e>0&&v.jsx("div",{className:"h-px bg-border mx-5"}),t]},e)}function e0e(t){const e=ye.c(27),{icon:a,title:o,description:n,action:r,onClick:i,className:c,children:d}=t,u=d?"flex items-start gap-3 px-4 py-4":"flex items-center gap-3 px-4 py-4",m=i&&"hover:bg-accent cursor-pointer";let h;e[0]!==c||e[1]!==u||e[2]!==m?(h=Qe(u,m,c),e[0]=c,e[1]=u,e[2]=m,e[3]=h):h=e[3];const f=i?"button":void 0,b=i?0:void 0;let y;e[4]!==i?(y=i?_=>{_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),i())}:void 0,e[4]=i,e[5]=y):y=e[5];let T;e[6]!==a?(T=a&&v.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:a}),e[6]=a,e[7]=T):T=e[7];let x;e[8]!==o?(x=v.jsx("div",{className:"text-sm font-medium",children:o}),e[8]=o,e[9]=x):x=e[9];let w;e[10]!==n?(w=n&&v.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),e[10]=n,e[11]=w):w=e[11];let P;e[12]!==d||e[13]!==x||e[14]!==w?(P=v.jsxs("div",{className:"flex-1 min-w-0",children:[x,w,d]}),e[12]=d,e[13]=x,e[14]=w,e[15]=P):P=e[15];let k;e[16]!==r?(k=r&&v.jsx("div",{className:"shrink-0",onClick:ede,children:r}),e[16]=r,e[17]=k):k=e[17];let E;return e[18]!==i||e[19]!==P||e[20]!==k||e[21]!==h||e[22]!==f||e[23]!==b||e[24]!==y||e[25]!==T?(E=v.jsxs("div",{className:h,onClick:i,role:f,tabIndex:b,onKeyDown:y,children:[T,P,k]}),e[18]=i,e[19]=P,e[20]=k,e[21]=h,e[22]=f,e[23]=b,e[24]=y,e[25]=T,e[26]=E):E=e[26],E}function ede(t){return t.stopPropagation()}function t0e(t){const e=ye.c(5),{className:a,children:o}=t;let n;e[0]!==a?(n=Qe("px-4 py-4",a),e[0]=a,e[1]=n):n=e[1];let r;return e[2]!==o||e[3]!==n?(r=v.jsx("div",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=r):r=e[4],r}function a0e(t){const e=ye.c(5),{children:a,className:o}=t;let n;e[0]!==o?(n=Qe("flex items-center justify-end gap-2 px-4 py-4",o),e[0]=o,e[1]=n):n=e[1];let r;return e[2]!==a||e[3]!==n?(r=v.jsx("div",{className:n,children:a}),e[2]=a,e[3]=n,e[4]=r):r=e[4],r}function tde(t){const e=ye.c(5),{className:a,children:o}=t;let n;e[0]!==a?(n=Qe("flex flex-col gap-10",a),e[0]=a,e[1]=n):n=e[1];let r;return e[2]!==o||e[3]!==n?(r=v.jsx("div",{className:n,children:o}),e[2]=o,e[3]=n,e[4]=r):r=e[4],r}const yv={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:Qj,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:Yj,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:Uj,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:Kj,labelKey:"settings.subnav.infrastructure",to:"/$org/settings/infra-billing",requires:"members:manage",requiresOwnedSites:!0}]},repositories:{key:"repositories",titleKey:"settings.nav.repositories",tabs:[],ownedRoutes:["/$org/settings/repositories"]},storage:{key:"storage",titleKey:"settings.nav.storage",tabs:[{key:"buckets",icon:Vj,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:$j,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function o0e(t){const e=yv[t];return[...e.tabs.map(a=>a.to),...e.ownedRoutes??[]]}function n0e(t){return yv[t].tabs.length>0}const ade=new Set(["owner","admin"]);function x4(){const t=ye.c(11),{org:e,locator:a}=Ki();let o;t[0]!==a?(o=eo.myCapabilities(a),t[0]=a,t[1]=o):o=t[1];let n;t[2]!==e?(n=async()=>{const m=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(e.slug)}`,{credentials:"include"});if(!m.ok)throw new Error(`my-capabilities request failed: ${m.status}`);return await m.json()},t[2]=e,t[3]=n):n=t[3];let r;t[4]!==o||t[5]!==n?(r={queryKey:o,queryFn:n,staleTime:3e4,retry:2},t[4]=o,t[5]=n,t[6]=r):r=t[6];const{data:i,isLoading:c,isError:d}=Hi(r);let u;return t[7]!==i||t[8]!==d||t[9]!==c?(u={data:i,loading:c,error:d},t[7]=i,t[8]=d,t[9]=c,t[10]=u):u=t[10],u}function r0e(t){const e=ye.c(8),{data:a,loading:o,error:n}=x4();if(o){let u;return e[0]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!0,error:!1,reason:"loading"},e[0]=u):u=e[0],u}if(n){let u;return e[1]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!0,reason:"error"},e[1]=u):u=e[1],u}const r=a?.role??null;if(!r){let u;return e[2]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!1,reason:"denied"},e[2]=u):u=e[2],u}if(r==="owner"){let u;return e[3]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"owner"},e[3]=u):u=e[3],u}if(r==="admin"){let u;return e[4]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"admin"},e[4]=u):u=e[4],u}const i=a?.capabilities?.[t]===!0,c=i?"role":"denied";let d;return e[5]!==i||e[6]!==c?(d={granted:i,loading:!1,error:!1,reason:c},e[5]=i,e[6]=c,e[7]=d):d=e[7],d}function P4(){const t=ye.c(10),{data:e,loading:a,error:o}=x4(),n=e?.role??void 0;let r;t[0]!==n?(r=n?ade.has(n):!1,t[0]=n,t[1]=r):r=t[1];const i=r;let c;t[2]!==e?.capabilities?(c=e?.capabilities??{},t[2]=e?.capabilities,t[3]=c):c=t[3];const d=c;let u;return t[4]!==o||t[5]!==i||t[6]!==a||t[7]!==n||t[8]!==d?(u={capabilities:d,loading:a,error:o,isPrivileged:i,roleSlug:n},t[4]=o,t[5]=i,t[6]=a,t[7]=n,t[8]=d,t[9]=u):u=t[9],u}function ode(){const t=ye.c(13),{org:e}=Ki(),a=VP(),{capabilities:o,isPrivileged:n}=P4(),r=n||!!o["members:manage"];let i;t[0]!==e.id?(i=eo.infraBillingSites(e.id),t[0]=e.id,t[1]=i):i=t[1];const c=!!e.id&&r;let d;t[2]!==a?(d=()=>a.call("INFRA_BILLING_SITES_LIST",{}),t[2]=a,t[3]=d):d=t[3];let u;t[4]!==i||t[5]!==c||t[6]!==d?(u={queryKey:i,staleTime:3e5,enabled:c,queryFn:d},t[4]=i,t[5]=c,t[6]=d,t[7]=u):u=t[7];const{data:m,isLoading:h}=Hi(u);let f;t[8]!==m?.sites?(f=m?.sites.map(nde)??[],t[8]=m?.sites,t[9]=f):f=t[9];let b;return t[10]!==h||t[11]!==f?(b={sites:f,isLoading:h},t[10]=h,t[11]=f,t[12]=b):b=t[12],b}function nde(t){return t.slug}function s0e(){const t=ye.c(7),e=VP(),a=qo();let o;t[0]!==e?(o=i=>e.call("INFRA_BILLING_PORTAL",{siteSlugs:i}),t[0]=e,t[1]=o):o=t[1];let n;t[2]!==a?(n=i=>Id.error(a("settings.infraBilling.portalError",{message:i.message})),t[2]=a,t[3]=n):n=t[3];let r;return t[4]!==o||t[5]!==n?(r={mutationFn:o,onSuccess:rde,onError:n},t[4]=o,t[5]=n,t[6]=r):r=t[6],ff(r)}function rde(t){const{url:e}=t;return window.open(e,"_blank","noopener,noreferrer")}function i0e(t,e){const a=ye.c(14),{org:o}=Ki(),n=VP();let r,i,c;a[0]!==o.id||a[1]!==e||a[2]!==t?(r=[...t].sort(),c=Hi,i=eo.infraBilling(o.id,r.join(","),e),a[0]=o.id,a[1]=e,a[2]=t,a[3]=r,a[4]=i,a[5]=c):(r=a[3],i=a[4],c=a[5]);const d=r.length>0;let u;a[6]!==e||a[7]!==r||a[8]!==n?(u=()=>n.call("INFRA_BILLING_GET",{siteSlugs:r,period:e}),a[6]=e,a[7]=r,a[8]=n,a[9]=u):u=a[9];let m;return a[10]!==i||a[11]!==d||a[12]!==u?(m={queryKey:i,enabled:d,staleTime:6e4,queryFn:u},a[10]=i,a[11]=d,a[12]=u,a[13]=m):m=a[13],c(m)}function sde(){const t=ye.c(7),{capabilities:e,isPrivileged:a,loading:o,error:n}=P4(),{sites:r,isLoading:i}=ode(),c=r.length>0;let d;if(t[0]!==e||t[1]!==n||t[2]!==a||t[3]!==o||t[4]!==c||t[5]!==i){const u=m=>m.requiresOwnedSites&&!c&&!i?!1:o||n?!0:m.privilegedOnly?a:m.requires?a||e[m.requires]:!0;d=Object.fromEntries(Object.values(yv).map(m=>[m.key,m.tabs.filter(u)])),t[0]=e,t[1]=n,t[2]=a,t[3]=o,t[4]=c,t[5]=i,t[6]=d}else d=t[6];return d}function ide(t){const e=ye.c(16),{group:a}=t,o=qo();let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},e[0]=n):n=e[0];const{org:r}=rm(n);let i;e[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:lde},e[1]=i):i=e[1];const c=gP(i),d=sde()[a],{titleKey:u}=yv[a];let m;e[2]!==o||e[3]!==u?(m=o(u),e[2]=o,e[3]=u,e[4]=m):m=e[4];let h;e[5]!==m?(h=v.jsx(xd.Title,{children:m}),e[5]=m,e[6]=h):h=e[6];let f;e[7]!==a||e[8]!==r||e[9]!==c||e[10]!==o||e[11]!==d?(f=d.length>1&&v.jsx(pn.Toolbar.Left.Portal,{children:v.jsx(xd.Tabs,{"data-testid":"settings-subnav","aria-label":o("settings.subnav.ariaLabel"),children:d.map(y=>{const T=y.to.replace("$org",r),x=c===T||c.startsWith(`${T}/`);return v.jsx(xd.Tab,{active:x,asChild:!0,children:v.jsx(Kl,{to:y.to,params:{org:r},onClick:()=>y4("settings_subnav_clicked",{group_key:a,tab_key:y.key}),children:o(y.labelKey)})},y.key)})})}),e[7]=a,e[8]=r,e[9]=c,e[10]=o,e[11]=d,e[12]=f):f=e[12];let b;return e[13]!==h||e[14]!==f?(b=v.jsxs(v.Fragment,{children:[h,f]}),e[13]=h,e[14]=f,e[15]=b):b=e[15],b}function lde(t){return t.location.pathname}function E4(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=v.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[v.jsx(vO,{className:"h-32 w-full"}),v.jsx(vO,{className:"h-32 w-full"})]}),t[0]=e):e=t[0],e}function cde(t){const e=ye.c(14),{group:a,fallback:o,errorFallback:n,className:r,children:i}=t;let c;e[0]!==a?(c=v.jsx(ide,{group:a}),e[0]=a,e[1]=c):c=e[1];let d;e[2]!==o?(d=o??v.jsx(E4,{}),e[2]=o,e[3]=d):d=e[3];let u;e[4]!==i||e[5]!==d?(u=v.jsx(A.Suspense,{fallback:d,children:i}),e[4]=i,e[5]=d,e[6]=u):u=e[6];let m;e[7]!==n||e[8]!==u?(m=v.jsx(Kce,{fallback:n,children:u}),e[7]=n,e[8]=u,e[9]=m):m=e[9];let h;return e[10]!==r||e[11]!==c||e[12]!==m?(h=v.jsx(xd,{children:v.jsx(xd.Content,{children:v.jsx(xd.Container,{children:v.jsxs(tde,{className:r,children:[c,m]})})})}),e[10]=r,e[11]=c,e[12]=m,e[13]=h):h=e[13],h}function Us(t){return function(){return v.jsx(cde,{group:t,children:v.jsx(E4,{})})}}function dde(t,e){const a=t&&e?rJ(e,t):null;return{queryKey:eo.activeOrganization(t),queryFn:async()=>{if(!t)return null;const o={organizationSlug:t};performance.mark("mesh:active-org-fetch:start");const{data:n}=await ro.organization.getFullOrganization({query:o}).finally(()=>{performance.mark("mesh:active-org-fetch:end"),performance.measure("mesh:active-org-fetch","mesh:active-org-fetch:start","mesh:active-org-fetch:end")}),r=TB(n);return n&&!r&&localStorage.setItem(Zi.lastOrgSlug(),t),e&&n&&sJ(e,t,n),n},initialData:a?a.data:void 0,initialDataUpdatedAt:a?.updatedAt,gcTime:1/0,refetchOnWindowFocus:!1}}async function ude(t){await wB();const e=zX();e&&await Zl.ensureQueryData(dde(t,e)).catch(()=>{})}function pde(t){try{localStorage.setItem(Zi.lastLocation(),JSON.stringify(t))}catch{}}function mde(){try{const t=localStorage.getItem(Zi.lastLocation());if(!t)return null;const e=JSON.parse(t);if(typeof e?.org=="string")return{org:e.org}}catch{}return null}function l0e(){try{localStorage.removeItem(Zi.lastLocation())}catch{}}const ft={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",threadAnalytics:"/$org/thread-analytics",discover:"/$org/discover",plan:"/$org/plan",monitoring:"/$org/monitoring",orgIndex:"/$org/"},tt={root:ft.projects,tasks:"/$org/projects/$agentId/tasks/{-$taskKey}",reports:"/$org/projects/$agentId/reports",siteEditor:"/$org/projects/$agentId/site-editor",siteEditorContent:"/$org/projects/$agentId/site-editor/content",siteEditorCode:"/$org/projects/$agentId/site-editor/code",automations:"/$org/projects/$agentId/automations",automation:"/$org/projects/$agentId/automations/$automationId",app:"/$org/projects/$agentId/apps/$connectionId/$toolName",view:"/$org/projects/$agentId/views/$viewId",outputFile:"/$org/projects/$agentId/outputs/file",outputDeck:"/$org/projects/$agentId/outputs/deck",library:"/$org/projects/$agentId/library",libraryFile:"/$org/projects/$agentId/library/file",connectSources:"/$org/projects/$agentId/connect-sources",settings:"/$org/projects/$agentId/settings",assets:"/$org/projects/$agentId/assets",releases:"/$org/projects/$agentId/releases",hosting:"/$org/projects/$agentId/hosting",e2e:"/$org/projects/$agentId/e2e",analytics:"/$org/projects/$agentId/analytics",experiments:"/$org/projects/$agentId/experiments",calendar:"/$org/projects/$agentId/calendar",monitor:"/$org/projects/$agentId/cdn",plan:"/$org/projects/$agentId/plan",monitoring:"/$org/projects/$agentId/monitoring"};function c0e(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:hde},t[0]=e):e=t[0],gP(e)}function hde(t){return t.matches.at(-1)?.fullPath??""}const gde=new Map([[ft.reports,"project-only"],[ft.library,"org-only"],[ft.threadAnalytics,"org-only"]]);function d0e(t,e){const a=gde.get(t);return a===void 0?!0:a==="project-only"?e!==null:e===null}function u0e(){const t=ye.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e={select:fde},t[0]=e):e=t[0],gP(e)}function fde(t){return t.matches.findLast(bde)?.staticData.mainView}function bde(t){return t.staticData.mainView}function kf(t){return`agent-view:${encodeURIComponent(t)}`}function vde(t){if(!t?.startsWith("agent-view:"))return null;const e=t.slice(11);if(!e)return null;try{const a=decodeURIComponent(e);return a?{id:a}:null}catch{return null}}function C4(t){if(!t||!t.startsWith("automation:"))return null;const e=t.slice(11);return e?{id:e}:null}function FE(t,e){return`app:${t}:${e}`}function yde(t){if(!t||!t.startsWith("app:"))return null;const e=t.slice(4),a=e.indexOf(":");if(a<=0)return null;const o=e.slice(0,a),n=e.slice(a+1);return!o||!n?null:{connectionId:o,toolName:n}}function k4(t){return`deck:${encodeURIComponent(t)}`}function Tde(t){if(!t||!t.startsWith("deck:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function _4(t){return`file:${encodeURIComponent(t)}`}function Sde(t){if(!t||!t.startsWith("file:"))return null;const e=t.slice(5);if(!e)return null;try{return{key:decodeURIComponent(e)}}catch{return null}}function A4(t){return`library-file:${encodeURIComponent(t)}`}function wde(t){if(!t||!t.startsWith("library-file:"))return null;const e=t.slice(13);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}function R4(t){return`code:${encodeURIComponent(t)}`}function xde(t){if(!t)return null;if(t==="code")return{path:null};if(!t.startsWith("code:"))return null;const e=t.slice(5);if(!e)return null;try{return{path:decodeURIComponent(e)}}catch{return null}}const D4=["overview","settings","automations","site-editor","code","content","assets","hosting","e2e","analytics","cdn"],Pde=new Set(D4),O4=new Set(["hosting","e2e","analytics","cdn"]),Ede=new Set(["board","files","connect-sources","reports"]);function p0e(t){return t.startsWith("app:")||t.startsWith("automation:")||t.startsWith("file:")||t.startsWith("deck:")||t.startsWith("library-file:")||t.startsWith("code:")}const Cde=new Map([["preview","site-editor"],["git","site-editor"]]);function Tv(t){return Cde.get(t)??t}const jE=new Set(["instructions","connections","layout","settings"]);function kde(t){return!!t&&jE.has(t)}const _de=new Set(["overview","board","reports"]);function m0e(t){const e=t?.defaultMainView??null;if(!(!e||e.type==="chat"))return N4(t??null)}function N4(t){const e=t?.defaultMainView??null;if(!e)return"settings";const a=Tv(e.type);if(jE.has(a))return"settings";if(Pde.has(a)||_de.has(a))return a;if(a==="ext-app"||a==="ext-apps"){if(e.id&&e.toolName)return FE(e.id,e.toolName);const n=t?.tabs?.map(r=>r.id)??[];return e.id&&n.includes(e.id)?kf(e.id):n[0]?kf(n[0]):"settings"}const o=t?.tabs?.[0]?.id;return o?kf(o):"settings"}function h0e(t){const e=t.routeDefaultMain||N4(t.metadata),a=t.panelTabId&&jE.has(t.panelTabId)?"settings":t.panelTabId?Tv(t.panelTabId):t.panelTabId,o=t.metadata?.defaultMainView??null,n=o==null||o.type==="chat";return{mainOpen:t.mainPanelParam??(!!a||!!t.routeDefaultMain||!n),activeTab:a??e}}function g0e(t){return t.mainOpen&&t.clickedId===t.activeTab?{close:!0}:{tabId:t.clickedId}}function f0e(t){return t.mainOpen?t.activeTab==="automations"?!0:C4(t.activeTab)!==null:!1}const Ade=new Set([...D4.filter(t=>!O4.has(t)),...Ede,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function Rde(t){return!!t&&Ade.has(t)}function Dde(t,e){if(t)switch(t){case"app":return e.connection&&e.tool?FE(e.connection,e.tool):void 0;case"automations":return e.automation?`automation:${e.automation}`:"automations";case"file":return e.key?_4(e.key):void 0;case"deck":return e.deck?k4(e.deck):void 0;case"library-file":return e.path?A4(e.path):void 0;case"code":return e.file?R4(e.file):"code";default:{const a=Tv(t);return a==="site-editor"&&e.main==="content"?"content":a}}}function b0e(t){const e=t.params??{},a=t.search??{};if(t.siteEditorView==="content")return"content";if(t.siteEditorView==="code")return a.file?R4(a.file):"code";if(t.siteEditorView==="preview")return"site-editor";switch(t.mainView){case"automation":return e.automationId?`automation:${e.automationId}`:"automations";case"app":return e.connectionId&&e.toolName?FE(e.connectionId,e.toolName):void 0;case"view":return e.viewId?kf(e.viewId):void 0;case"file":return a.key?_4(a.key):void 0;case"deck":return a.path?k4(a.path):void 0;case"library-file":return a.path?A4(a.path):void 0;default:return t.mainView}}const Ode={files:"library",discover:"discover"},Nde={board:"tasks",reports:"reports",plan:"plan",monitoring:"monitoring"},Mde={settings:"settings",assets:"assets",releases:"releases",hosting:"hosting",e2e:"e2e",analytics:"analytics",experiments:"experiments",calendar:"calendar",cdn:"monitor"};function M4(t){const e=vde(t);if(e)return{kind:"agent-view",viewId:e.id};const a=yde(t);if(a)return{kind:"app",connectionId:a.connectionId,toolName:a.toolName};const o=C4(t);if(o)return{kind:"automations",automationId:o.id};const n=Sde(t);if(n)return{kind:"output-file",key:n.key};const r=Tde(t);if(r)return{kind:"output-deck",path:r.path};const i=wde(t);if(i)return{kind:"library-file",path:i.path};const c=xde(t);if(c)return{kind:"site-editor",view:"code",...c.path?{file:c.path}:{}};if(kde(t))return{kind:"agent-section",section:"settings"};const d=Tv(t);if(d==="overview")return{kind:"agent-overview"};if(d==="site-editor")return{kind:"site-editor",view:"preview"};if(d==="content")return{kind:"site-editor",view:"content"};if(d==="automations")return{kind:"automations"};if(d==="connect-sources")return{kind:"connect-sources"};const u=Nde[d];if(u)return{kind:"project-destination",destination:u};const m=Ode[d];if(m)return{kind:"org-destination",destination:m};const h=Mde[d];return h?{kind:"agent-section",section:h}:{kind:"agent-view",viewId:d}}function $l(t){const{org:e,agentId:a}=t,o={org:e,agentId:a},n=M4(t.tabId);switch(n.kind){case"project-destination":{const r=t.destinationScope==="organization";switch(n.destination){case"tasks":return r?{to:ft.tasks,params:{org:e,taskKey:t.taskKey},search:{}}:{to:tt.tasks,params:{...o,taskKey:t.taskKey},search:{}};case"reports":return r?{to:ft.reports,params:{org:e},search:{}}:{to:tt.reports,params:o,search:{}};case"plan":return r?{to:ft.plan,params:{org:e},search:{}}:{to:tt.plan,params:o,search:{}};case"monitoring":return r?{to:ft.monitoring,params:{org:e},search:{}}:{to:tt.monitoring,params:o,search:{}}}}case"org-destination":switch(n.destination){case"home":return{to:ft.home,params:{org:e},search:{}};case"discover":return{to:ft.discover,params:{org:e},search:{}};case"library":return{to:ft.library,params:{org:e},search:{}}}case"agent-overview":return{to:tt.root,params:o,search:{}};case"site-editor":return n.view==="content"?{to:tt.siteEditorContent,params:o,search:{}}:n.view==="code"?{to:tt.siteEditorCode,params:o,search:{file:n.file}}:{to:tt.siteEditor,params:o,search:{}};case"agent-section":return{to:tt[n.section],params:o,search:{}};case"automations":return n.automationId?{to:tt.automation,params:{...o,automationId:n.automationId},search:{}}:{to:tt.automations,params:o,search:{}};case"app":return{to:tt.app,params:{...o,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:tt.view,params:{...o,viewId:n.viewId},search:{}};case"output-file":return{to:tt.outputFile,params:o,search:{key:n.key}};case"output-deck":return{to:tt.outputDeck,params:o,search:{path:n.path}};case"library-file":return{to:tt.libraryFile,params:o,search:{path:n.path}};case"connect-sources":return{to:tt.connectSources,params:o,search:{}}}}function v0e(t){if(!t.agentId||t.agentId===t.superAgentId&&(t.tabId===void 0||t.tabId==="overview"))return{to:ft.home,params:{org:t.org},search:{}};const e=t.tabId??"overview",a=t.agentId!==t.superAgentId&&M4(e).kind==="org-destination"?"overview":e;return $l({org:t.org,agentId:t.agentId,tabId:a,destinationScope:t.agentId===t.superAgentId?"organization":"project"})}function Ide(t,e,a={}){const o=r=>({...a.search?.(r)??{},...e.search}),n=a.replace??!0;switch(e.to){case ft.tasks:t({to:ft.tasks,params:e.params,search:o,replace:n});return;case ft.home:t({to:ft.home,params:e.params,search:o,replace:n});return;case ft.reports:t({to:ft.reports,params:e.params,search:o,replace:n});return;case ft.discover:t({to:ft.discover,params:e.params,search:o,replace:n});return;case ft.plan:t({to:ft.plan,params:e.params,search:o,replace:n});return;case ft.monitoring:t({to:ft.monitoring,params:e.params,search:o,replace:n});return;case ft.library:t({to:ft.library,params:e.params,search:o,replace:n});return;case tt.root:t({to:tt.root,params:e.params,search:o,replace:n});return;case tt.tasks:t({to:tt.tasks,params:e.params,search:o,replace:n});return;case tt.reports:t({to:tt.reports,params:e.params,search:o,replace:n});return;case tt.plan:t({to:tt.plan,params:e.params,search:o,replace:n});return;case tt.monitoring:t({to:tt.monitoring,params:e.params,search:o,replace:n});return;case tt.siteEditor:t({to:tt.siteEditor,params:e.params,search:o,replace:n});return;case tt.siteEditorContent:t({to:tt.siteEditorContent,params:e.params,search:o,replace:n});return;case tt.siteEditorCode:t({to:tt.siteEditorCode,params:e.params,search:o,replace:n});return;case tt.automations:t({to:tt.automations,params:e.params,search:o,replace:n});return;case tt.automation:t({to:tt.automation,params:e.params,search:o,replace:n});return;case tt.app:t({to:tt.app,params:e.params,search:o,replace:n});return;case tt.view:t({to:tt.view,params:e.params,search:o,replace:n});return;case tt.outputFile:t({to:tt.outputFile,params:e.params,search:o,replace:n});return;case tt.outputDeck:t({to:tt.outputDeck,params:e.params,search:o,replace:n});return;case tt.libraryFile:t({to:tt.libraryFile,params:e.params,search:o,replace:n});return;case tt.connectSources:t({to:tt.connectSources,params:e.params,search:o,replace:n});return;case tt.settings:case tt.assets:case tt.releases:case tt.hosting:case tt.e2e:case tt.analytics:case tt.experiments:case tt.calendar:case tt.monitor:t({to:e.to,params:e.params,search:o,replace:n})}}function y0e(t,e){Ide(t,$l(e),e)}function Lde(t){const e=/^(\/[^/]+)\/agents(?=\/|$)/.exec(t);return e?.[1]?`${e[1]}/projects${t.slice(e[0].length)}`:null}function Bde(t){const e=t.split("/").filter(Boolean);return(e[1]==="projects"||e[1]==="agents")&&e.length>3}const Fde=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),I4=new Set(["main"]),jde=new Set(["virtualmcpid"]);function Sv(t,e){return Object.fromEntries(Object.entries(t).filter(([a])=>!e.has(a)))}function jl(t,e){return{...Sv(t,Fde),...e.search}}function zde(t){return Sv(t,jde)}function T0e(t){if(t.search.virtualmcpid===void 0)return null;const e=Pr(t.search.virtualmcpid);if(e){const a=t.routePath===ft.tasks?"board":t.routePath===ft.reports?"reports":null;if(t.routePath===ft.home||a){const o=a?$l({org:t.org,agentId:e,tabId:a}):Vd(t.org,e);return{kind:"canonical",route:o,search:jl(t.search,o)}}}return t.routePath===ft.home||t.routePath===ft.tasks||t.routePath===ft.reports||t.routePath===ft.library?{kind:"same-route",search:zde(t.search)}:null}function Pr(t){return t?.trim()||void 0}function L4(t){return Rde(t)||t!==void 0&&O4.has(t)}function B4(t){const e=Pr(t);return e?e.startsWith("vir_")&&e.length>4||zL(e)!==null||MY(e)!==null||IY(e)!==null||qL(e)||$L(e):!1}function Ude(t){const e=Pr(t.agentIdParam),a=L4(e);return e&&!a?e:Pr(t.virtualMcpIdSearch)??Pr(t.fallbackAgentId)}function S0e(t){const e=t.pathAgentId;if(e&&t.pathLegacyView){const i=_x({org:t.org,agentId:e,panel:t.pathLegacyView,source:"project-first",search:t.search});return i?.kind==="canonical"?{route:i.route,search:i.search}:null}if(!e||Bde(t.pathname))return null;const a=t.search.virtualmcpid!==void 0&&!B4(e);if(!(L4(e)||a))return null;const n=Ude({agentIdParam:a?void 0:e,virtualMcpIdSearch:t.search.virtualmcpid,fallbackAgentId:t.fallbackAgentId}),r=_x({org:t.org,agentId:n,panel:e,source:"view-first",search:t.search});return r?.kind==="canonical"?{route:r.route,search:r.search}:null}function qde(t,e,a,o){const n=Pr(o);switch(t){case"board":return n?$l({org:e,agentId:n,tabId:"board"}):{to:ft.tasks,params:{org:e,taskKey:void 0},search:{}};case"files":{const r=Ci(a.path);return{to:ft.library,params:{org:e},search:r?{path:r}:{}}}case"reports":return n?$l({org:e,agentId:n,tabId:"reports"}):{to:ft.reports,params:{org:e},search:{}};case"overview":return{to:ft.home,params:{org:e},search:{}};case"discover":return{to:ft.discover,params:{org:e},search:{}};default:return null}}function Jp(t){const e=qde(t.tabId,t.org,t.search,t.agentId);if(e)return e;if(t.tabId==="chat")return Vd(t.org,t.agentId);const a=Pr(t.agentId);return a?t.tabId==="app"||t.tabId==="file"||t.tabId==="deck"||t.tabId==="library-file"||t.tabId.trim()===""?{to:tt.root,params:{org:t.org,agentId:a},search:{}}:$l({org:t.org,agentId:a,tabId:t.tabId}):null}function Vd(t,e){const a=Pr(e);return a?{to:tt.root,params:{org:t,agentId:a},search:{}}:{to:ft.home,params:{org:t},search:{}}}function $de(t){const{main:e}=t;if(e===void 0)return null;const a=t.search??{};if(e===0||e==="0")return{kind:"same-route",search:{...Sv(a,I4),mainpanel:!1}};if(e==="chat"){const n=Vd(t.org,t.agentId);return{kind:"canonical",route:n,search:{...jl(a,n),sidepanel:!0,mainpanel:!1}}}const o=Jp({org:t.org,agentId:t.agentId,tabId:e,search:a});return o?{kind:"canonical",route:o,search:jl(a,o)}:null}function Ci(t){return typeof t=="string"&&t.length>0?t:void 0}function _x(t){const e=t.search??{};if((e.main===0||e.main==="0")&&t.panel){const i=_x({...t,search:Sv(e,I4)});return i?.kind!=="canonical"?i:{...i,search:{...i.search,mainpanel:!1}}}if(e.main!==void 0)return $de({org:t.org,agentId:t.agentId,main:e.main,search:e});const a=Pr(t.agentId),o=t.panel;if(!o){const i=Vd(t.org,a);return{kind:"canonical",route:i,search:jl(e,i)}}const n=Dde(o,{file:Ci(e.file),key:Ci(e.key),deck:Ci(e.deck),path:Ci(e.path),connection:Ci(e.connection),tool:Ci(e.tool),automation:Ci(e.automation)}),r=n?t.source==="project-first"&&n==="overview"&&a?$l({org:t.org,agentId:a,tabId:n}):Jp({org:t.org,agentId:a,tabId:n,search:e}):Jp({org:t.org,agentId:a,tabId:"",search:e});return r?{kind:"canonical",route:r,search:n==="chat"?{...jl(e,r),sidepanel:!0,mainpanel:!1}:jl(e,r)}:null}function w0e(t){const e=t.search??{},a=Pr(e.virtualmcpid),o=Pr(t.fallbackAgentId),n=e.main;let r;if(n==="chat")r=Vd(t.org,a);else if(n!==void 0&&n!==0&&n!=="0"){const i=Jp({org:t.org,agentId:a,tabId:n,search:e}),c=!i&&n.trim().length>0&&o?Jp({org:t.org,agentId:o,tabId:n,search:e}):null;r=i??c??{to:ft.home,params:{org:t.org},search:{}}}else r=Vd(t.org,a);return{route:r,search:{...jl(e,r),...n===void 0&&e.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:t.taskId}}}function F4(t,e){if(e.task===void 0)return null;const{task:a,...o}=e;return{taskKey:t??(a.trim()||void 0),search:o}}const pw=Rt().int().nonnegative().optional().catch(void 0),Vde={contentPageId:$().optional(),contentPath:$().optional(),contentPathTemplate:$().optional(),contentCollection:$().optional(),contentItem:$().optional(),contentPageVariant:pw,contentSection:pw,contentVariant:pw};function x0e(t){const e={};return t.contentPageVariant!==void 0&&(e.pageVariant=t.contentPageVariant),t.contentSection!==void 0&&(e.section=t.contentSection),t.contentVariant!==void 0&&(e.variant=t.contentVariant),Object.keys(e).length>0?e:null}const j4=Vde,zE={view:$().optional(),group:$().optional(),subgroup:$().optional(),sort:$().optional(),dir:$().optional(),q:$().optional(),assignee:$().optional(),priority:$().optional(),due:$().optional(),tags:$().optional(),repo:$().optional(),sprint:$().optional(),boardOrg:$().optional()},Hde=["files","brand","connections","repositories","skills","memory","instructions","general","site"],Cb={fileView:sa(["all","documents","media"]).catch("all").optional(),modified:sa(["any","today","week","month"]).catch("any").optional(),layout:sa(["list","grid"]).catch("list").optional(),sort:sa(["name","updated","size"]).catch("name").optional(),path:$().optional(),preview:$().optional(),expanded:d0().optional().catch(void 0),skill:$().optional(),brand:$().optional(),section:sa(Hde).catch("files").optional(),scope:sa(["user"]).optional().catch(void 0),action:sa(["create"]).optional().catch(void 0)},Gde={file:$().optional(),key:$().optional(),deck:$().optional(),path:$().optional(),connection:$().optional(),tool:$().optional(),automation:$().optional(),section:$().optional(),preview:$().optional(),autosend:$().optional(),connect:Kb().optional(),siteUrl:$().optional(),...j4},z4={...Gde,task:$().optional(),project:$().optional(),...zE,skill:Cb.skill,brand:Cb.brand},Sm=Se(z4),Xo=z$({component:()=>v.jsx(Zce,{children:v.jsx(hP,{})})}),Wde=De({getParentRoute:()=>Xo,path:"/login",component:Ie(()=>Le(()=>import("./login-Q6QzHe98.js"),__vite__mapDeps([0,1,2,3,4]))),validateSearch:Qr(()=>Se({next:$().optional(),client_id:$().optional(),redirect_uri:$().optional(),response_type:$().optional(),state:$().optional(),scope:$().optional(),code_challenge:$().optional(),code_challenge_method:$().optional(),src:$().optional(),ref:$().optional()}))}),Kde=De({getParentRoute:()=>Xo,path:"/cli/auth-success",component:Ie(()=>Le(()=>import("./cli-auth-success-CbU133Cr.js"),__vite__mapDeps([5,4])))}),Yde=De({getParentRoute:()=>Xo,path:"/reset-password",component:Ie(()=>Le(()=>import("./reset-password-qin72Rw_.js"),[])),validateSearch:Qr(()=>Se({token:$().optional(),error:$().optional()}))}),Zde=De({getParentRoute:()=>Xo,path:"/auth/$pathname",component:Ie(()=>Le(()=>import("./auth-catchall-C_KiXSY-.js"),[]))}),Qde=De({getParentRoute:()=>Xo,path:"/oauth/callback",component:Ie(()=>Le(()=>import("./oauth-callback-DcDcp9ht.js"),__vite__mapDeps([6,7,8])))}),Jde=De({getParentRoute:()=>Xo,path:"/oauth/callback/ai-provider",component:Ie(()=>Le(()=>import("./oauth-callback-ai-provider-Bjee7W5B.js"),[]))}),wm=De({getParentRoute:()=>Xo,path:"/_admin",component:Ie(()=>Le(()=>import("./layout-86e7th4n.js"),__vite__mapDeps([9,10,11])))}),Xde=De({getParentRoute:()=>wm,path:"/",beforeLoad:()=>{throw Xa({to:"/_admin/users"})}}),eue=De({getParentRoute:()=>wm,path:"/users",component:Ie(()=>Le(()=>import("./users-CLTHtY95.js"),__vite__mapDeps([12,13,14,15,16,17,18,19,20,21])))}),tue=De({getParentRoute:()=>wm,path:"/orgs",component:Ie(()=>Le(()=>import("./orgs-Cm95p7RP.js"),__vite__mapDeps([22,13,14,15,16,17,18,23,20,24,25,26,27,28,29,19,30,31,21])))}),aue=De({getParentRoute:()=>wm,path:"/prompts",component:Ie(()=>Le(()=>import("./prompts-CYI2Ca4j.js"),__vite__mapDeps([32,16,23,29,21])))}),oue=wm.addChildren([Xde,eue,tue,aue]),UE=De({getParentRoute:()=>Xo,id:"shell",component:Ie(()=>Le(()=>import("./shell-layout-Br0nQ-w1.js").then(t=>t.d),__vite__mapDeps([33,34,35,11,21,36,37,38,15,39,40,41,42,43,27,44,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,62,63,64,8,65,66,67,68,69,70,71,72,23,73,74,75,3,2,76,77,30,78,79,80,26,81,82,83,20,84,10,85,86,87])))}),nue=De({getParentRoute:()=>UE,path:"/",beforeLoad:async()=>{const t=mde();if(t)throw Xa({to:"/$org",params:{org:t.org}});const e=localStorage.getItem(Zi.lastOrgSlug());if(e)throw Xa({to:"/$org",params:{org:e}});const{data:a}=await xB();if(!a)return;const o=a[0];throw Xa(o?{to:"/$org",params:{org:o.slug}}:{to:"/onboarding"})}}),rue=De({getParentRoute:()=>Xo,path:"/onboarding",beforeLoad:async()=>{const{data:t}=await xB();if(t&&t.length>0)throw Xa({to:"/"})},component:Ie(()=>Le(()=>import("./onboarding-DvIF4FSK.js"),__vite__mapDeps([88,10,4,89,57,23,28,34,43,49,59])))}),U4=Qr(()=>Se({org:$().optional(),siteUrl:$().optional(),fix:$().optional()})),sue=De({getParentRoute:()=>Xo,path:"/reports-onboarding",component:Ie(()=>Le(()=>import("./reports-onboarding-6K8tJ5J_.js"),__vite__mapDeps([90,91,1,2,3,4,89,57,92,93,23,94,64,8,95,70,40,36,37,38,15,39,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,18,58,59,60,61,80,26,96,97,98,99,20,100,101,102,103,7,104,105,106,107,108,109]))),validateSearch:U4}),iue=De({getParentRoute:()=>Xo,path:"/commerce-onboarding",validateSearch:U4,beforeLoad:({search:t})=>{throw Xa({to:"/reports-onboarding",search:t})}}),lue=De({getParentRoute:()=>Xo,path:"/choose-editor",component:Ie(()=>Le(()=>import("./choose-editor-B-PLdH8j.js"),__vite__mapDeps([110,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,10]))),validateSearch:Qr(()=>Se({site:$().optional(),domain:$().optional(),pageId:$().optional(),path:$().optional(),pathTemplate:$().optional()}))}),qE=De({getParentRoute:()=>Xo,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Ie(()=>Le(()=>import("./site-editor-CUxt9aeG.js"),__vite__mapDeps([111,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,116,117,118,119,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,10,86,87,121,122,123,124,125,126,92,93,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,25,161,162,163,164,165,166,16,28,29,167,168,169,170,171,24,172,173,174,175,17,176,177,178,179,180,181,182,183,184,185,101,186,187,107,188,189,190,191,192,193,194,195,196,197,198,19,199,13,14,200,201,202,203,204,205,206,207,208,209,99,210,211,212,213,214,215,216,217,218,219,220,105,97,106,221,222,223,224,102,103,7,225,226,227,228,229,230,231,232,233])))}),cue=De({getParentRoute:()=>qE,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Ie(()=>Le(()=>import("./site-editor-CUxt9aeG.js"),__vite__mapDeps([111,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,116,117,118,119,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,10,86,87,121,122,123,124,125,126,92,93,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,25,161,162,163,164,165,166,16,28,29,167,168,169,170,171,24,172,173,174,175,17,176,177,178,179,180,181,182,183,184,185,101,186,187,107,188,189,190,191,192,193,194,195,196,197,198,19,199,13,14,200,201,202,203,204,205,206,207,208,209,99,210,211,212,213,214,215,216,217,218,219,220,105,97,106,221,222,223,224,102,103,7,225,226,227,228,229,230,231,232,233])),"SiteEditorPreview")}),due=De({getParentRoute:()=>qE,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Ie(()=>Le(()=>import("./site-editor-CUxt9aeG.js"),__vite__mapDeps([111,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,116,117,118,119,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,10,86,87,121,122,123,124,125,126,92,93,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,25,161,162,163,164,165,166,16,28,29,167,168,169,170,171,24,172,173,174,175,17,176,177,178,179,180,181,182,183,184,185,101,186,187,107,188,189,190,191,192,193,194,195,196,197,198,19,199,13,14,200,201,202,203,204,205,206,207,208,209,99,210,211,212,213,214,215,216,217,218,219,220,105,97,106,221,222,223,224,102,103,7,225,226,227,228,229,230,231,232,233])),"SiteEditorContent")}),uue=De({getParentRoute:()=>Xo,path:"/report/$domain",component:Ie(()=>Le(()=>import("./reports-CbNZsWyp.js"),__vite__mapDeps([234,104,3,1,2,235])))}),wv=De({getParentRoute:()=>UE,path:"/$org",beforeLoad:({params:t})=>{pde({org:t.org})},loader:({params:t})=>ude(t.org),pendingMs:1/0,component:Ie(()=>Le(()=>import("./route-3yxLu2NB.js"),__vite__mapDeps([236,123,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,117,121,124,125,126,92,93,127,128,167,208,237,24,25,29,238,211,114,113,219,168,239,240,241,228,242,19,243,132,244,245,179,177,31,246,201,200,247,196,99,28,217])))}),xv=De({getParentRoute:()=>wv,id:"org-shell",pendingComponent:Zd,component:Ie(()=>Le(()=>import("./thread-route-DytMtQhr.js"),__vite__mapDeps([248,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,91,249,96,97,98,40,94,95,70,36,37,38,15,39,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,93,23,99,20,100,101,102,103,7,104,105,106,107,250,108])))}),pue=Se({sidepanel:VB,mainpanel:HB,main:ia([$(),Ze(0)]).optional(),thread:$().optional(),autosend:$().optional(),preview:$().optional(),virtualmcpid:$().optional()}),en=De({getParentRoute:()=>xv,id:"agent-shell",validateSearch:pue,search:{middlewares:[d$(["sidepanel"])]},pendingComponent:Zd,component:Ie(()=>Le(()=>import("./route-CgAwr8_y.js"),__vite__mapDeps([251,37,36,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,117,121,207,112,113,114,115,144,208,152,143,93,145,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,217,218,219,220,105,97,106,107,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,149,150,153,132,205,206,180,135,133,139,16,116,122,252,253,254,201,190,189,245,179,177,31,187,200,127,255,256,257,258,259,134,170,129])))}),mue=Sm.extend({virtualmcpid:$().optional()}),hue=De({getParentRoute:()=>en,path:"/$taskId",validateSearch:mue,component:()=>null}),It=Ie(()=>Le(()=>import("./index-DHKvbX-F.js").then(t=>t.i),__vite__mapDeps([116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122])),"ChatLayoutPending"),Lt=Ie(()=>Le(()=>import("./index-DHKvbX-F.js").then(t=>t.i),__vite__mapDeps([116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122])),"ChatLayoutError"),gue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:Se({connect:Kb().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./home-CdpLVlWp.js"),__vite__mapDeps([260,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,209,143,144,93,145,146,142,115,113,112,114,99,154,210,131,24,25,176,174,211,173,212,196,213,167,208,214,215,152,216,217,218,219,220,105,97,106,107,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,261,262,241,242,124,263,163,166,162,127,247,240,264,265,266,161,164,165,267,268,269,239,128,16,244])))}),fue=De({getParentRoute:()=>en,path:"/projects",validateSearch:Sm,beforeLoad:({params:t,search:e})=>{const a=(e.project??e.virtualmcpid)?.trim(),o=r=>({...r,virtualmcpid:void 0,project:void 0,task:void 0});if(!a)throw Xa({to:"/$org/home",params:{org:t.org},search:o,hash:!0,replace:!0});const n=e.task?.trim();throw Xa(n?{to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:a,taskKey:n},search:o,hash:!0,replace:!0}:{to:"/$org/projects/$agentId",params:{org:t.org,agentId:a},search:o,hash:!0,replace:!0})}}),la=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/projects/$agentId",validateSearch:Sm,component:hP}),bue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Ie(()=>Le(()=>import("./agent-overview--3R-F01i.js"),__vite__mapDeps([270,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,112,113,114,115,209,143,144,93,145,146,142,99,154,210,131,24,25,176,174,211,173,212,196,213,167,208,214,215,152,216,217,218,219,220,105,97,106,107,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,261,262,241,242,124,263,163,166,162,127,247,240,264,265,266,161,164,165,267,268,239,249,96,98,271])))}),vue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Se({task:$().optional(),...zE}),beforeLoad:({params:t,search:e})=>{const a=F4(t.taskKey,e);if(a)throw Xa({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:t.org,agentId:t.agentId,taskKey:a?.taskKey??t.taskKey},search:a.search,hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./project-tasks-ItwqddIw.js"),__vite__mapDeps([272,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,273,124,125,274,175,167,143,144,93,145,146,142,115,113,112,114,215,275,19,99,28,29,216,276,277,126,241,228,242,24,25,247,240,268,278,171,156,141,279,172,280,139,281,151,98,282,227,140,147,148,149,150,152,153,154,226,252,204,210,283,218,219])))}),yue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Se({connect:Kb().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./project-reports-DJhPJTRc.js"),__vite__mapDeps([284,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,285,91,249,96,97,98,271,108,109,269,244])))}),Pv=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:Se({autosend:$().optional(),...j4}),component:Ie(()=>Le(()=>import("./agent-site-editor-Cyp35eBO.js"),__vite__mapDeps([202,112,65,66,62,63,64,8,85,75,3,2,76,77,30,78,113,114,115,84,203,204,130,131,132,133,134,42,48,135,136,33,34,35,11,21,36,37,38,15,39,40,41,43,27,44,45,46,47,49,50,51,52,53,54,55,56,57,18,58,59,60,61,67,68,69,70,71,72,23,73,74,79,80,26,81,82,83,20,10,86,87,120,167,176,174,205,206,187,107,184,183,185,182,157,207,144,208,117,152,143,93,145,146,142,209,99,154,210,24,25,211,173,212,196,213,214,215,216,217,218,219,220,105,97,106,221,222,29,151,223,224,102,103,7,225,19,226,227,228,119,229,140,141,147,148,149,150,121,153,194,193,230,186,170,155,156,231,232,180,139,116,118,122,233])))}),Tue=De({getParentRoute:()=>Pv,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Ie(()=>Le(()=>import("./agent-site-editor-preview-Bv1qplXm.js"),__vite__mapDeps([286,287,253,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,151,254,149,145,132,207,112,85,113,114,115,84,144,80,26,208,83,117,152,143,93,23,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,81,82,217,218,219,220,105,97,106,107,221,222,70,29,223,224,102,103,7,225,19,226,227,228,229,140,141,67,147,148,150,33,11,21,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,201,190,189,245,179,177,31,187,283,137,138,134,139,155,156,157,158,159,160,161,162,163,164,165,166,130,136,16,28,168,169,170,171,172,124,125,175,17,178,180,120,181,182,183,184,185,101,129,122,186,188])))}),Sue=De({getParentRoute:()=>Pv,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Ie(()=>Le(()=>import("./agent-site-editor-content-TPfojHsu.js"),__vite__mapDeps([288,287,253,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,151,254,149,145,132,207,112,85,113,114,115,84,144,80,26,208,83,117,152,143,93,23,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,81,82,217,218,219,220,105,97,106,107,221,222,70,29,223,224,102,103,7,225,19,226,227,228,229,140,141,67,147,148,150,33,11,21,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,201,190,189,245,179,177,31,187,283,191,158,159,160,161,162,163,164,165,166,157,130,134,136,16,138,139,155,156,28,168,169,170,171,172,124,125,175,17,178,192,193,194,195,180,197,198,199,13,14])))}),wue=De({getParentRoute:()=>Pv,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:Se({file:$().optional()}),component:Ie(()=>Le(()=>import("./agent-site-editor-code-Ck6tXuvy.js"),__vite__mapDeps([289,287,253,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,151,254,149,145,132,207,112,85,113,114,115,84,144,80,26,208,83,117,152,143,93,23,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,81,82,217,218,219,220,105,97,106,107,221,222,70,29,223,224,102,103,7,225,19,226,227,228,229,140,141,67,147,148,150,33,11,21,68,69,71,72,73,74,79,20,10,86,87,121,153,135,133,201,190,189,245,179,177,31,187,283,16])))}),xue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:t,search:e})=>{const a=e.automation;if(a)throw Xa({to:"/$org/projects/$agentId/automations/$automationId",params:{org:t.org,agentId:t.agentId,automationId:a},search:o=>({...o,automation:void 0}),hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./agent-automations-LxAQfaS1.js"),__vite__mapDeps([290,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,17,16,276,291,19])))}),Pue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:Se({automationView:sa(["settings","runs"]).optional()}),component:Ie(()=>Le(()=>import("./agent-automation-CQUF61n4.js"),__vite__mapDeps([292,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,196,28,167,144,151,254,293,208,112,113,114,115,212,24,25,213,294,276,141,295,214,215,143,93,145,146,142,152,216,296,242,124,297,176,174,169,170,298,14,16,226,252,282,227,140,147,148,149,150,153,154,225])))}),Eue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Ie(()=>Le(()=>import("./agent-settings-DkY2WG9h.js"),__vite__mapDeps([299,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,300,301,105,97,106,107,112,113,114,115,294,16,302,103,7,29,151,295,220,221,222,208,93,24,25,223,224,102,225,19,226,227,154,216,196,17,303,149,254,152,145,28,167,168,132,245,179,177,31,246,304,142,187,133,305,306,150,188,206])))}),Cue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Se(Cb),component:Ie(()=>Le(()=>import("./agent-library-C6xhflxa.js"),__vite__mapDeps([307,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,308,99,17,277,115,112,113,114,216,309,29,146,142,258,167,256,257,259,134,170,154,310,199,173,174,14,311,312,313,304,16,301,105,97,106,107,294,302,103,7,151,295,220,221,222,208,93,24,25,223,224,102,225,19,226,227,196,303,149,254,152,145,28,168,132,245,179,177,31,246,187,133,305,306,150,188,206])))}),kue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Ie(()=>Le(()=>import("./agent-assets-DFlbYpaG.js"),__vite__mapDeps([314,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,287,253,151,254,149,145,132,207,112,113,114,115,144,208,152,143,93,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,217,218,219,220,105,97,106,107,221,222,29,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,150,153,135,133,201,190,189,245,179,177,31,187,17,178])))}),_ue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Ie(()=>Le(()=>import("./agent-releases-CiTUBkUu.js"),__vite__mapDeps([315,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,287,253,151,254,149,145,132,207,112,113,114,115,144,208,152,143,93,146,142,209,99,154,210,131,24,25,176,174,211,173,212,196,213,167,214,215,216,217,218,219,220,105,97,106,107,221,222,29,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,150,153,135,133,201,190,189,245,179,177,31,187,130,134,136,194,232,185])))}),Aue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Ie(()=>Le(()=>import("./agent-hosting-58n6tbGl.js"),__vite__mapDeps([316,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,199,31,99,14,141,24,25,300,301,105,97,106,107,112,113,114,115,294,16,302,103,7,29,151,295,220,221,222,208,93,223,224,102,225,226,227,154,216,196,17,303,149,254,152,145,28,167,168,132,245,179,177,246,304,142,187,133,305,306,150,188,206])))}),Rue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Ie(()=>Le(()=>import("./agent-e2e-Dxeiz6Hg.js"),__vite__mapDeps([317,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,24,25,14,199,31,141,176,174,300,301,105,97,106,107,112,113,114,115,294,16,302,103,7,29,151,295,220,221,222,208,93,223,224,102,225,226,227,154,216,196,17,303,149,254,152,145,28,167,168,132,245,179,177,246,304,142,187,133,305,306,150,188,206])))}),Due=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/analytics",staticData:{pageTitle:"common.mainPanelTabs.analytics",defaultMain:"analytics",mainView:"analytics"},validateSearch:Se({view:$().optional()}),component:Ie(()=>Le(()=>import("./agent-analytics-CSaBErHP.js"),__vite__mapDeps([318,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19,196,14,263,163,166,162,199,31,319,265,300,301,105,97,106,107,112,113,114,115,294,16,302,103,7,29,151,295,220,221,222,208,93,24,25,223,224,102,225,226,227,154,216,17,303,149,254,152,145,28,167,168,132,245,179,177,246,304,142,187,133,305,306,150,188,206])))}),Oue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./taskboard-analytics-CdD0QR2a.js"),__vite__mapDeps([320,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,225,19,274,321,167,168,25,171,322,263,163,166,162,14,173,174,242,124,266,161,164,165,267,265,319,247,240,175])))}),Nue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:Se({ui:Ze("legacy").optional()}),component:Ie(()=>Le(()=>import("./agent-experiments-DgwnRVuo.js"),__vite__mapDeps([323,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,203,204,112,113,114,115,130,131,132,133,134,135,136,167,176,174,205,206,187,107,184,183,185,182,157,207,144,208,152,143,93,145,146,142,209,99,154,210,24,25,211,173,212,196,213,214,215,216,217,218,219,220,105,97,106,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,149,150,153,194,193,230,186,170,155,156,231,232,180,139,324,14,199,31,158,159,160,161,162,163,164,165,166,16,192,325,326,198,277,281,300,301,294,302,295,17,303,254,28,168,245,179,177,246,304,305,306,188])))}),Mue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/calendar",staticData:{pageTitle:"common.mainPanelTabs.calendar",defaultMain:"calendar",mainView:"calendar"},component:Ie(()=>Le(()=>import("./agent-calendar-BOffXUuz.js"),__vite__mapDeps([327,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,203,204,112,113,114,115,130,131,132,133,134,135,136,167,176,174,205,206,187,107,184,183,185,182,157,207,144,208,152,143,93,145,146,142,209,99,154,210,24,25,211,173,212,196,213,214,215,216,217,218,219,220,105,97,106,221,222,29,151,223,224,102,103,7,225,19,226,227,228,229,140,141,147,148,149,150,153,194,193,230,186,170,155,156,231,232,180,139,168,192,325,158,159,160,161,162,163,164,165,166,16,326,198,199,197,300,301,294,302,295,17,303,254,28,245,179,177,31,246,304,305,306,188])))}),Iue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/cdn",staticData:{pageTitle:"common.mainPanelTabs.cdn",defaultMain:"cdn",mainView:"cdn"},component:Ie(()=>Le(()=>import("./agent-monitor-B7Pvzm4h.js"),__vite__mapDeps([328,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,329,263,163,166,162,199,167,24,25,31,132,319,265,264,330,19,171,101,267,164,165,300,301,105,97,106,107,112,113,114,115,294,16,302,103,7,29,151,295,220,221,222,208,93,223,224,102,225,226,227,154,216,196,17,303,149,254,152,145,28,168,245,179,177,246,304,142,187,133,305,306,150,188,206,283,218,219])))}),q4=Se({args:$().optional()}),Lue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/apps/$connectionId/$toolName",validateSearch:q4,staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Ie(()=>Le(()=>import("./agent-app-CpchlFDM.js"),__vite__mapDeps([331,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,190,332,144,254,147,148,149,112,113,114,115,247,240,124,333,91,95,96,97,98,93,99,100,101,102,103,7,104,105,106,107])))}),Bue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/views/$viewId",validateSearch:q4,staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Ie(()=>Le(()=>import("./agent-view-Dy5CpY1v.js"),__vite__mapDeps([334,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,332,144,254,147,148,149,112,113,114,115,247,240,124,333,91,95,96,97,98,93,99,100,101,102,103,7,104,105,106,107,300,301,294,16,302,29,151,295,220,221,222,208,24,25,223,224,225,19,226,227,154,216,196,17,303,152,145,28,167,168,132,245,179,177,31,246,304,142,187,133,305,306,150,188,206])))}),Fue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:Se({key:$().optional()}),component:Ie(()=>Le(()=>import("./agent-file-Btt92on1.js"),__vite__mapDeps([335,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,154,259,216,134,170,146,142,115,153,112,113,114,300,301,105,97,106,107,294,16,302,103,7,29,151,295,220,221,222,208,93,24,25,223,224,102,225,19,226,227,196,17,303,149,254,152,145,28,167,168,132,245,179,177,31,246,304,187,133,305,306,150,188,206])))}),jue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:Se({path:$().optional()}),component:Ie(()=>Le(()=>import("./agent-deck-BsttewCw.js"),__vite__mapDeps([336,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,258,216,167,300,301,105,97,106,107,112,113,114,115,294,16,302,103,7,29,151,295,220,221,222,208,93,24,25,223,224,102,225,19,226,227,154,196,17,303,149,254,152,145,28,168,132,245,179,177,31,246,304,142,187,133,305,306,150,188,206])))}),zue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:Se({path:$().optional()}),component:Ie(()=>Le(()=>import("./agent-library-file-Lh5pI681.js"),__vite__mapDeps([337,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,338,257,99,258,216,167,259,134,170,154,146,142,115,300,301,105,97,106,107,112,113,114,294,16,302,103,7,29,151,295,220,221,222,208,93,24,25,223,224,102,225,19,226,227,196,17,303,149,254,152,145,28,168,132,245,179,177,31,246,304,187,133,305,306,150,188,206])))}),Uue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Ie(()=>Le(()=>import("./agent-connect-sources-Bo6TPGly.js"),__vite__mapDeps([339,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,94,91,95,96,97,98,93,99,100,101,102,103,7,104,105,106,107,250,108])))}),que=De({getParentRoute:()=>la,path:"/$legacyView",component:()=>null}),$ue=De({getParentRoute:()=>en,path:"/agents",validateSearch:Sm,beforeLoad:({params:t,search:e})=>{const a=e.virtualmcpid?.trim();throw Xa(a?{to:"/$org/projects/$agentId",params:{org:t.org,agentId:a},search:o=>o,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:t.org},search:o=>o,hash:!0,replace:!0})}}),Vue=De({getParentRoute:()=>en,path:"/agents/$",validateSearch:Sm,beforeLoad:({params:t,location:e})=>{const a=t._splat?.split("/").find(Boolean);if(!B4(a))return;const o=Lde(e.pathname);if(!o)return;const n=e.hash?`#${e.hash}`:"";throw Xa({href:`${o}${e.searchStr}${n}`,replace:!0})},component:Ie(()=>Le(()=>import("./legacy-agents-deep-DrwenQap.js"),__vite__mapDeps([340,255,66])))}),Hue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Se({task:$().optional(),...zE}),beforeLoad:({params:t,search:e})=>{const a=F4(t.taskKey,e);if(a)throw Xa({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:a.taskKey},search:a.search,hash:!0,replace:!0})},component:Ie(()=>Le(()=>import("./tasks-q9Lrl5hM.js"),__vite__mapDeps([341,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,273,124,125,274,175,167,143,144,93,145,146,142,115,113,112,114,215,275,19,99,28,29,216,276,277,126,241,228,242,24,25,247,240,268,278,171,156,141,279,172,280,139,281,151,98,282,227,140,147,148,149,150,152,153,154,226,252,204,210,283,218,219])))}),Gue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./taskboard-analytics-CdD0QR2a.js"),__vite__mapDeps([320,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,225,19,274,321,167,168,25,171,322,263,163,166,162,14,173,174,242,124,266,161,164,165,267,265,319,247,240,175])))}),Wue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Ie(()=>Le(()=>import("./thread-analytics-CUDgOcLF.js"),__vite__mapDeps([342,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,322,263,163,166,162,14,173,174,19,242,124,266,161,164,165,267,265,319,243,175,167,24,25,176,282,227,140,141,142,143,144,93,145,146,115,113,112,114,147,148,149,150,151,152,153,154,226,252])))}),Kue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Se({connect:Kb().optional(),siteUrl:$().optional()}),component:Ie(()=>Le(()=>import("./reports-CSjngTEz.js"),__vite__mapDeps([343,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,285,91,249,96,97,98,271,108,109,269,244])))}),Yue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Se(Cb),component:Ie(()=>Le(()=>import("./library-3tOBnuzW.js"),__vite__mapDeps([344,115,117,116,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,308,99,17,277,112,113,114,216,309,29,146,142,258,167,256,257,259,134,170,154,310,199,173,174,14,311,312,313,304,16,338])))}),Zue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Ie(()=>Le(()=>import("./plan-Bha3pvLg.js"),__vite__mapDeps([345,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19])))}),$4=Se({view:sa(["metrics","deploys","experiments","analytics"]).optional(),date:eL().optional().catch(void 0),store:$().optional(),at:$().optional()}),Que=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:$4,component:Ie(()=>Le(()=>import("./monitoring-D1EdmxtK.js"),__vite__mapDeps([346,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,199,167,28,330,263,163,166,162,19,171,101,319,265,267,164,165,264,329,24,25,31,132,322,14,173,174,242,124,266,161,333,91,95,96,97,98,93,99,100,102,103,7,104,105,106,107,151,324,158,159,160,157,130,131,112,113,114,115,133,134,135,136,16,192,325,230,326,198,29,277,281,240])))}),Jue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Ie(()=>Le(()=>import("./plan-Bha3pvLg.js"),__vite__mapDeps([345,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,19])))}),Xue=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>la,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:$4,component:Ie(()=>Le(()=>import("./monitoring-D1EdmxtK.js"),__vite__mapDeps([346,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,199,167,28,330,263,163,166,162,19,171,101,319,265,267,164,165,264,329,24,25,31,132,322,14,173,174,242,124,266,161,333,91,95,96,97,98,93,99,100,102,103,7,104,105,106,107,151,324,158,159,160,157,130,131,112,113,114,115,133,134,135,136,16,192,325,230,326,198,29,277,281,240])))}),epe=De({pendingComponent:It,errorComponent:Lt,getParentRoute:()=>en,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Ie(()=>Le(()=>import("./discover-CBj9Ot9k.js"),__vite__mapDeps([347,116,117,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122,151,177,179,31,187,107])))}),tpe=De({getParentRoute:()=>wv,path:"/members",beforeLoad:({params:t})=>{throw Xa({to:"/$org/settings/members",params:{org:t.org}})}}),ape=Se({main:ia([$(),Ze(0)]).optional(),virtualmcpid:$().optional(),...z4,sidepanel:VB,mainpanel:HB,thread:$().optional()}),ope=De({getParentRoute:()=>xv,path:"/",validateSearch:ape,pendingComponent:Zd,component:Ie(()=>Le(()=>import("./index-Bk4q9Kta.js"),__vite__mapDeps([348,255,66])))}),npe=De({getParentRoute:()=>xv,path:"/t/$taskKey",beforeLoad:({params:t})=>{throw Xa({to:"/$org/tasks/{-$taskKey}",params:{org:t.org,taskKey:t.taskKey},search:e=>e,hash:!0,replace:!0})}}),ca=De({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>wv,path:"/settings",pendingComponent:Zd,component:Ie(()=>Le(()=>import("./route-t6Vm8Ywp.js"),__vite__mapDeps([349,117,116,118,119,66,65,62,63,64,8,75,3,2,76,77,30,78,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,80,26,120,33,11,21,67,68,69,70,71,72,23,73,74,79,81,82,83,20,84,10,85,86,87,121,122])))}),rpe=De({getParentRoute:()=>ca,path:"/",component:Ie(()=>Le(()=>import("./index-redirect-BTQYAvyK.js"),__vite__mapDeps([350,313])))}),spe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>ca,path:"/connections",component:Ie(()=>Le(()=>import("./connections-B67BU6-u.js"),__vite__mapDeps([351,105,97,106,107,352,15,50,80,26,173,174,19,17,18,277,99,225,221,81,82,222,78,70,40,36,37,38,39,41,42,34,43,27,44,35,45,46,47,48,49,51,52,53,54,55,56,57,58,59,60,61,16,353,226,117,208,93,23,24,25,29,151,64,8,63,149,62,223,224,102,103,7,196]))),validateSearch:Qr(()=>Se({action:sa(["create"]).optional(),tab:sa(["all","connected"]).optional()}))}),ipe=De({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>ca,path:"/connections/$appSlug",component:Ie(()=>Le(()=>import("./connection-detail-06L9lcjS.js"),__vite__mapDeps([354,105,97,106,107,16,224,57,58,355,64,8,254,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,18,59,60,61,151,24,25,26,163,160,69,167,80,63,117,356,74,75,3,2,76,77,30,78,223,303,19,149,7,103,70,121,93,23,152,353,357,263,166,162,265,319,161,266,164,165,267,176,174,222,148,83]))),validateSearch:Qr(()=>Se({tab:$().optional()}))}),lpe=De({staticData:{pageTitle:"page.item"},getParentRoute:()=>ca,path:"/connections/$appSlug/$collectionName/$itemId",component:Ie(()=>Le(()=>import("./collection-detail-DcUQ1g_5.js"),__vite__mapDeps([358,16,64,8,93,23,29,355,254,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,151,105,97,106,107,24,25,26,163,160,69,167,80,63,117,356,74,75,3,2,76,77,30,78,223,148,149,156,222,303,19,7,147,70,112,65,66,62,85,113,114,115,84,33,11,21,67,68,71,72,73,79,81,82,83,20,10,86,87,169,170,199]))),validateSearch:Qr(()=>Se({replayId:$().optional()}))}),cpe=De({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>ca,path:"/monitor",component:Ie(()=>Le(()=>import("./index-Da57lEgV.js"),__vite__mapDeps([359,17,18,16,311,312,313,140,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,141,142,143,144,93,23,145,146,115,117,65,66,62,63,64,8,80,26,113,75,3,2,76,77,30,78,112,85,114,84,67,147,148,149,150,33,11,21,68,69,70,71,72,73,74,79,81,82,83,20,10,86,87,121,151,152,153,154,222,19,167,169,170,297,196,24,25,321,168,171,29,225,28,156,357,263,163,166,162,265,319,161,266,164,165,267,282,227,226,252,14,298,276,199,240,330,101,264,283,218,219]))),validateSearch:Qr(()=>Se({tab:sa(["overview","audit","dashboards","threads","automations","stores"]).default("threads"),store:$().optional(),at:$().optional(),from:$().default("now-24h"),to:$().default("now"),connectionId:je($()).optional().default([]),virtualMcpId:je($()).optional().default([]),tool:$().default(""),status:sa(["all","success","errors"]).default("all"),search:$().default(""),page:Rt().optional(),streaming:Vt().default(!0),propertyFilters:$().default(""),hideSystem:Vt().default(!1)}))}),dpe=De({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>ca,path:"/general",component:Ie(()=>Le(()=>import("./general-yzYHBZqk.js"),__vite__mapDeps([360,295,361,28,35,84,30,77,151,64,8,362,19,24,25,26,27,313])))}),upe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>ca,path:"/connect",pendingComponent:Us("connect"),component:Ie(()=>Le(()=>import("./connect-1IzEMu95.js"),__vite__mapDeps([363,156,19,24,25,26,27,176,174,142,45,51,52,262,364,37,57,58,199,23,64,8,311,312,313])))}),ppe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/ai-providers",pendingComponent:Us("billing"),component:Ie(()=>Le(()=>import("./ai-providers-Dph9V-S2.js"),__vite__mapDeps([365,37,114,43,84,30,77,293,208,117,112,65,66,62,63,64,8,85,75,3,2,76,78,113,115,212,196,53,24,25,26,27,39,44,51,38,18,213,54,48,295,173,174,80,219,57,58,302,28,311,312,313])))}),mpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/billing",beforeLoad:({params:t})=>{throw Xa({to:"/$org/settings/ai-providers",params:{org:t.org}})}}),hpe=De({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/infra-billing",pendingComponent:Us("billing"),component:Ie(()=>Le(()=>import("./infra-billing-I23Yzx7q.js"),__vite__mapDeps([366,46,19,297,196,53,27,68,69,18,167,24,25,26,14,265,162,163,165,319,311,312,313])))}),gpe=De({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>ca,path:"/secrets",component:Ie(()=>Le(()=>import("./secrets-Cg7YmK1o.js"),__vite__mapDeps([367,37,57,60,199,23,24,25,26,27,29,306,311,312,313])))}),fpe=De({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>ca,path:"/api-keys",pendingComponent:Us("connect"),component:Ie(()=>Le(()=>import("./api-keys-bAkry4Sk.js"),__vite__mapDeps([368,364,37,45,51,57,58,199,23,64,8,311,312,313])))}),bpe=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>ca,path:"/buckets",pendingComponent:Us("storage"),component:Ie(()=>Le(()=>import("./buckets-CvEidzt4.js"),__vite__mapDeps([369,37,57,58,19,199,23,24,25,26,27,28,29,177,311,312,313])))}),vpe=De({staticData:{pageTitle:"settings.nav.repositories"},getParentRoute:()=>ca,path:"/repositories",validateSearch:Se({git_error:$().optional().catch(void 0),git_flow:$().uuid().optional().catch(void 0),git_installation:Rt().int().positive().safe().optional().catch(void 0),git_return:Vt().optional().catch(void 0)}),pendingComponent:Us("repositories"),component:Ie(()=>Le(()=>import("./repositories-CC9x9vTF.js"),__vite__mapDeps([370,371,79,39,57,80,26,23,81,82,83,18,41,20,84,30,77,40,196,53,60,199,19,156,99,141,24,25,27,29,58,305,306,311,312,313])))}),ype=De({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>ca,path:"/synced-repos",pendingComponent:Us("storage"),component:Ie(()=>Le(()=>import("./synced-repos-BVfSxB1w.js"),__vite__mapDeps([372,57,199,79,39,80,26,23,81,82,83,18,41,20,84,30,77,309,311,312,313])))}),Tpe=De({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>ca,path:"/task-board",component:Ie(()=>Le(()=>import("./tasks-CdTDj0OK.js"),__vite__mapDeps([373,196,53,29,44,56,57,175,68,69,18,167,297,19,27,24,25,26,28,296,361,35,84,30,77,151,64,8,20,276,275,61,99,80,121,216,81,82,76,2,311,312,313])))}),Spe=De({getParentRoute:()=>ca,path:"/tasks",beforeLoad:({params:t})=>{throw Xa({to:"/$org/settings/task-board",params:{org:t.org}})}}),wpe=De({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>ca,path:"/projects",component:Ie(()=>Le(()=>import("./projects-D4v4Oq64.js"),__vite__mapDeps([374,36,37,38,15,39,40,41,42,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,57,18,58,59,60,61,19,17,72,23,73,64,8,74,63,75,3,2,76,77,30,78,79,80,26,81,82,83,20,84,269,302,249,96,97,98,244,62,151])))}),xpe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>ca,path:"/members",pendingComponent:Us("members"),component:Ie(()=>Le(()=>import("./members-Bk_T8psV.js"),__vite__mapDeps([375,352,15,50,80,26,173,174,19,17,18,13,14,16,237,93,23,24,25,27,29,238,376,47,51,58,61,196,53,68,69,167,57,278,311,312,313])))}),Ppe=De({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>ca,path:"/roles",pendingComponent:Us("members"),component:Ie(()=>Le(()=>import("./roles-_9O3_in0.js"),__vite__mapDeps([377,238,376,19,47,57,58,13,14,15,16,17,18,213,70,40,36,37,38,39,41,42,34,43,27,44,35,45,46,48,49,50,51,52,53,54,55,56,59,60,61,226,196,227,82,64,8,83,106,107,151,63,114,28,80,26,71,62,312,313]))),validateSearch:Qr(()=>Se({role:$().optional()}))}),Epe=De({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>ca,path:"/sso",component:Ie(()=>Le(()=>import("./sso-CuV4SaSb.js"),__vite__mapDeps([378,362,19,24,25,26,27,28,86,58,311,312,313])))}),Cpe=De({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>ca,path:"/profile",component:Ie(()=>Le(()=>import("./profile-Cmb0Uq9T.js"),__vite__mapDeps([379,159,160,25,58,59,28,24,26,27,173,174,80,54,55,56,295,217])))}),kpe=De({staticData:{pageTitle:"settings.nav.agents"},getParentRoute:()=>ca,path:"/agents",component:Ie(()=>Le(()=>import("./agents-list-vpifaSDW.js"),__vite__mapDeps([380,63,64,8,47,38,58,36,37,15,39,40,41,42,34,43,27,44,35,45,46,48,49,50,51,52,53,54,55,56,57,18,59,60,61,302,74,75,3,2,76,77,30,78,84,16,356,151,102,103,7,105,97,106,107,79,80,26,23,81,82,83,20,98,100,17,73])))}),_pe=De({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>ca,path:"/automations",component:Ie(()=>Le(()=>import("./automations-pErLtBmM.js"),__vite__mapDeps([381,57,42,17,18,16,276,64,8,74,63,75,3,2,76,77,30,78,291,19,36,37,38,15,39,40,41,34,43,27,44,35,45,46,47,48,49,50,51,52,53,54,55,56,58,59,60,61,311,312,313])))}),Ape=De({staticData:{pageTitle:"settings.nav.skills"},getParentRoute:()=>ca,path:"/skills",component:Ie(()=>Le(()=>import("./skills-Nw1X0lYG.js"),__vite__mapDeps([382,47,42,58,59,17,18,277,99,80,26,16,225,19,310,146,142,45,115,117,65,66,62,63,64,8,259,216,81,82,134,48,170,154])))}),Rpe=De({staticData:{pageTitle:"settings.nav.memory"},getParentRoute:()=>ca,path:"/memory",component:Ie(()=>Le(()=>import("./memory-BGQEqAyY.js"),__vite__mapDeps([383,34,156,80,26,225,19,16,67,216,81,82]))),validateSearch:Qr(()=>Se({scope:sa(["user"]).optional()}))}),Dpe=ca.addChildren([rpe,spe,ipe,lpe,kpe,_pe,Ape,Rpe,cpe,dpe,upe,ppe,mpe,hpe,gpe,fpe,bpe,vpe,ype,Tpe,Spe,wpe,xpe,Ppe,Epe,Cpe]),Ope=Pv.addChildren([Tue,Sue,wue]),Npe=la.addChildren([bue,vue,yue,Ope,xue,Pue,Eue,Cue,kue,_ue,Aue,Rue,Due,Oue,Nue,Mue,Iue,Lue,Bue,Fue,jue,zue,Uue,que,Jue,Xue]),Mpe=en.addChildren([hue,gue,fue,Npe,$ue,Vue,Hue,Gue,Wue,Kue,Yue,epe,Zue,Que]),Ipe=xv.addChildren([ope,npe,Mpe]),Lpe=wv.addChildren([Ipe,tpe,Dpe]),Bpe=UE.addChildren([nue,Lpe]),Fpe=Xo.addChildren([Bpe,oue,rue,sue,iue,lue,qE.addChildren([cue,due]),uue,Wde,Kde,Yde,Zde,Qde,Jde]);function jpe(){const t=ye.c(16),e=qo();let a;t[0]!==e?(a=e("common.index.pageNotFound"),t[0]=e,t[1]=a):a=t[1];let o;t[2]!==a?(o=v.jsx("h3",{className:"text-lg font-medium text-foreground",children:a}),t[2]=a,t[3]=o):o=t[3];let n;t[4]!==e?(n=e("common.index.pageNotFoundDescription"),t[4]=e,t[5]=n):n=t[5];let r;t[6]!==n?(r=v.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),t[6]=n,t[7]=r):r=t[7];let i;t[8]!==e?(i=e("common.goBack"),t[8]=e,t[9]=i):i=t[9];let c;t[10]!==i?(c=v.jsx("button",{type:"button",onClick:zpe,className:"text-sm text-primary hover:underline",children:i}),t[10]=i,t[11]=c):c=t[11];let d;return t[12]!==o||t[13]!==r||t[14]!==c?(d=v.jsx("div",{className:"flex h-full items-center justify-center",children:v.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[o,r,c]})}),t[12]=o,t[13]=r,t[14]=c,t[15]=d):d=t[15],d}function zpe(){return window.history.back()}const Ev=Q$({routeTree:Fpe,defaultPendingComponent:Zd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:jpe});function _e(...t){return $B(YP(t))}function Upe(t){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}function qa({error:t,localization:e,localizeErrors:a=!0}){var o;const n="Request failed";if(!a)return t?.message?t.message:(o=t?.error)!=null&&o.message?t.error.message:n;if(typeof t=="string"&&e?.[t])return e[t];if(t?.error){if(t.error.code){const r=t.error.code;if(e?.[r])return e[r]}return t.error.message||t.error.code||t.error.statusText||e?.REQUEST_FAILED}return t?.message||e?.REQUEST_FAILED||n}function ec(t){return typeof window<"u"?new URLSearchParams(window.location.search).get(t):null}function Ax(t,e){for(const a in t)if(t[a]===e)return a}function Xp(t,e){let a=$().min(1,{message:e?.PASSWORD_REQUIRED});return t?.minLength&&(a=a.min(t.minLength,{message:e?.PASSWORD_TOO_SHORT})),t?.maxLength&&(a=a.max(t.maxLength,{message:e?.PASSWORD_TOO_LONG})),t?.regex&&(a=a.regex(t.regex,{message:e?.INVALID_PASSWORD})),a}var qpe={FAILED_TO_CREATE_USER:"Failed to create user",USER_ALREADY_EXISTS:"User already exists",YOU_CANNOT_BAN_YOURSELF:"You cannot ban yourself",YOU_ARE_NOT_ALLOWED_TO_CHANGE_USERS_ROLE:"You are not allowed to change users role",YOU_ARE_NOT_ALLOWED_TO_CREATE_USERS:"You are not allowed to create users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS:"You are not allowed to list users",YOU_ARE_NOT_ALLOWED_TO_LIST_USERS_SESSIONS:"You are not allowed to list users sessions",YOU_ARE_NOT_ALLOWED_TO_BAN_USERS:"You are not allowed to ban users",YOU_ARE_NOT_ALLOWED_TO_IMPERSONATE_USERS:"You are not allowed to impersonate users",YOU_ARE_NOT_ALLOWED_TO_REVOKE_USERS_SESSIONS:"You are not allowed to revoke users sessions",YOU_ARE_NOT_ALLOWED_TO_DELETE_USERS:"You are not allowed to delete users",YOU_ARE_NOT_ALLOWED_TO_SET_USERS_PASSWORD:"You are not allowed to set users password",BANNED_USER:"You have been banned from this application"},$pe={FAILED_TO_CREATE_USER:"Failed to create user",COULD_NOT_CREATE_SESSION:"Could not create session",ANONYMOUS_USERS_CANNOT_SIGN_IN_AGAIN_ANONYMOUSLY:"Anonymous users cannot sign in again anonymously"},Vpe={INVALID_METADATA_TYPE:"metadata must be an object or undefined",REFILL_AMOUNT_AND_INTERVAL_REQUIRED:"refillAmount is required when refillInterval is provided",REFILL_INTERVAL_AND_AMOUNT_REQUIRED:"refillInterval is required when refillAmount is provided",USER_BANNED:"User is banned",UNAUTHORIZED_SESSION:"Unauthorized or invalid session",KEY_NOT_FOUND:"API Key not found",KEY_DISABLED:"API Key is disabled",KEY_EXPIRED:"API Key has expired",USAGE_EXCEEDED:"API Key has reached its usage limit",KEY_NOT_RECOVERABLE:"API Key is not recoverable",EXPIRES_IN_IS_TOO_SMALL:"The expiresIn is smaller than the predefined minimum value.",EXPIRES_IN_IS_TOO_LARGE:"The expiresIn is larger than the predefined maximum value.",INVALID_REMAINING:"The remaining count is either too large or too small.",INVALID_PREFIX_LENGTH:"The prefix length is either too large or too small.",INVALID_NAME_LENGTH:"The name length is either too large or too small.",METADATA_DISABLED:"Metadata is disabled.",RATE_LIMIT_EXCEEDED:"Rate limit exceeded.",NO_VALUES_TO_UPDATE:"No values to update.",KEY_DISABLED_EXPIRATION:"Custom key expiration values are disabled.",INVALID_API_KEY:"Invalid API key.",INVALID_USER_ID_FROM_API_KEY:"The user id from the API key is invalid.",INVALID_API_KEY_GETTER_RETURN_TYPE:"API Key getter returned an invalid key type. Expected string.",SERVER_ONLY_PROPERTY:"The property you're trying to set can only be set from the server auth instance only."},Hpe={USER_NOT_FOUND:"User not found",FAILED_TO_CREATE_USER:"Failed to create user",FAILED_TO_CREATE_SESSION:"Failed to create session",FAILED_TO_UPDATE_USER:"Failed to update user",FAILED_TO_GET_SESSION:"Failed to get session",INVALID_PASSWORD:"Invalid password",INVALID_EMAIL:"Invalid email",INVALID_EMAIL_OR_PASSWORD:"Invalid email or password",SOCIAL_ACCOUNT_ALREADY_LINKED:"Social account already linked",PROVIDER_NOT_FOUND:"Provider not found",INVALID_TOKEN:"Invalid token",ID_TOKEN_NOT_SUPPORTED:"id_token not supported",FAILED_TO_GET_USER_INFO:"Failed to get user info",USER_EMAIL_NOT_FOUND:"User email not found",EMAIL_NOT_VERIFIED:"Email not verified",PASSWORD_TOO_SHORT:"Password too short",PASSWORD_TOO_LONG:"Password too long",USER_ALREADY_EXISTS:"User already exists",EMAIL_CAN_NOT_BE_UPDATED:"Email can not be updated",CREDENTIAL_ACCOUNT_NOT_FOUND:"Credential account not found",SESSION_EXPIRED:"Session expired. Re-authenticate to perform this action.",FAILED_TO_UNLINK_LAST_ACCOUNT:"You can't unlink your last account",ACCOUNT_NOT_FOUND:"Account not found",USER_ALREADY_HAS_PASSWORD:"User already has a password. Provide that to delete the account."},Gpe={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Wpe={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Kpe={...Gpe,...Wpe},Ype={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},Zpe={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},Qpe={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},Jpe={INVALID_SESSION_TOKEN:"Invalid session token"},Xpe={YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_ORGANIZATION:"You are not allowed to create a new organization",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_ORGANIZATIONS:"You have reached the maximum number of organizations",ORGANIZATION_ALREADY_EXISTS:"Organization already exists",ORGANIZATION_NOT_FOUND:"Organization not found",USER_IS_NOT_A_MEMBER_OF_THE_ORGANIZATION:"User is not a member of the organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_ORGANIZATION:"You are not allowed to update this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_ORGANIZATION:"You are not allowed to delete this organization",NO_ACTIVE_ORGANIZATION:"No active organization",USER_IS_ALREADY_A_MEMBER_OF_THIS_ORGANIZATION:"User is already a member of this organization",MEMBER_NOT_FOUND:"Member not found",ROLE_NOT_FOUND:"Role not found",YOU_ARE_NOT_ALLOWED_TO_CREATE_A_NEW_TEAM:"You are not allowed to create a new team",TEAM_ALREADY_EXISTS:"Team already exists",TEAM_NOT_FOUND:"Team not found",YOU_CANNOT_LEAVE_THE_ORGANIZATION_AS_THE_ONLY_OWNER:"You cannot leave the organization as the only owner",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_MEMBER:"You are not allowed to delete this member",YOU_ARE_NOT_ALLOWED_TO_INVITE_USERS_TO_THIS_ORGANIZATION:"You are not allowed to invite users to this organization",USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION:"User is already invited to this organization",INVITATION_NOT_FOUND:"Invitation not found",YOU_ARE_NOT_THE_RECIPIENT_OF_THE_INVITATION:"You are not the recipient of the invitation",YOU_ARE_NOT_ALLOWED_TO_CANCEL_THIS_INVITATION:"You are not allowed to cancel this invitation",INVITER_IS_NO_LONGER_A_MEMBER_OF_THE_ORGANIZATION:"Inviter is no longer a member of the organization",YOU_ARE_NOT_ALLOWED_TO_INVITE_USER_WITH_THIS_ROLE:"you are not allowed to invite user with this role",FAILED_TO_RETRIEVE_INVITATION:"Failed to retrieve invitation",YOU_HAVE_REACHED_THE_MAXIMUM_NUMBER_OF_TEAMS:"You have reached the maximum number of teams",UNABLE_TO_REMOVE_LAST_TEAM:"Unable to remove last team",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_MEMBER:"You are not allowed to update this member",ORGANIZATION_MEMBERSHIP_LIMIT_REACHED:"Organization membership limit reached",YOU_ARE_NOT_ALLOWED_TO_CREATE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to create teams in this organization",YOU_ARE_NOT_ALLOWED_TO_DELETE_TEAMS_IN_THIS_ORGANIZATION:"You are not allowed to delete teams in this organization",YOU_ARE_NOT_ALLOWED_TO_UPDATE_THIS_TEAM:"You are not allowed to update this team",YOU_ARE_NOT_ALLOWED_TO_DELETE_THIS_TEAM:"You are not allowed to delete this team",INVITATION_LIMIT_REACHED:"Invitation limit reached"},eme={CHALLENGE_NOT_FOUND:"Challenge not found",YOU_ARE_NOT_ALLOWED_TO_REGISTER_THIS_PASSKEY:"You are not allowed to register this passkey",FAILED_TO_VERIFY_REGISTRATION:"Failed to verify registration",PASSKEY_NOT_FOUND:"Passkey not found",AUTHENTICATION_FAILED:"Authentication failed",UNABLE_TO_CREATE_SESSION:"Unable to create session",FAILED_TO_UPDATE_PASSKEY:"Failed to update passkey"},tme={INVALID_PHONE_NUMBER:"Invalid phone number",PHONE_NUMBER_EXIST:"Phone number already exists",INVALID_PHONE_NUMBER_OR_PASSWORD:"Invalid phone number or password",UNEXPECTED_ERROR:"Unexpected error",OTP_NOT_FOUND:"OTP not found",OTP_EXPIRED:"OTP expired",INVALID_OTP:"Invalid OTP",PHONE_NUMBER_NOT_VERIFIED:"Phone number not verified"},ame={SUBSCRIPTION_NOT_FOUND:"Subscription not found",SUBSCRIPTION_PLAN_NOT_FOUND:"Subscription plan not found",ALREADY_SUBSCRIBED_PLAN:"You're already subscribed to this plan",UNABLE_TO_CREATE_CUSTOMER:"Unable to create customer",FAILED_TO_FETCH_PLANS:"Failed to fetch plans",EMAIL_VERIFICATION_REQUIRED:"Email verification is required before you can subscribe to a plan",SUBSCRIPTION_NOT_ACTIVE:"Subscription is not active",SUBSCRIPTION_NOT_SCHEDULED_FOR_CANCELLATION:"Subscription is not scheduled for cancellation"},ome={TEAM_LIMIT_REACHED:"Team limit reached for this organization",TEAM_MEMBER_LIMIT_REACHED:"Team member limit reached for this team",TEAM_NOT_FOUND:"Team not found",TEAM_MEMBER_NOT_FOUND:"Team member not found",TEAM_NAME_TOO_LONG:"Team name is too long",CANNOT_REMOVE_LAST_TEAM:"Cannot remove the last team",NOT_ORGANIZATION_MEMBER:"User is not a member of the organization",ALREADY_TEAM_MEMBER:"User is already a member of this team",INSUFFICIENT_TEAM_PERMISSIONS:"Insufficient permissions to perform this action on team"},nme={OTP_NOT_ENABLED:"OTP not enabled",OTP_HAS_EXPIRED:"OTP has expired",TOTP_NOT_ENABLED:"TOTP not enabled",TWO_FACTOR_NOT_ENABLED:"Two factor isn't enabled",BACKUP_CODES_NOT_ENABLED:"Backup codes aren't enabled",INVALID_BACKUP_CODE:"Invalid backup code",INVALID_CODE:"Invalid code",TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE:"Too many attempts. Please request a new code.",INVALID_TWO_FACTOR_COOKIE:"Invalid two factor cookie"},rme={INVALID_USERNAME_OR_PASSWORD:"invalid username or password",EMAIL_NOT_VERIFIED:"email not verified",UNEXPECTED_ERROR:"unexpected error",USERNAME_IS_ALREADY_TAKEN:"username is already taken. please try another.",USERNAME_TOO_SHORT:"username is too short",USERNAME_TOO_LONG:"username is too long",INVALID_USERNAME:"username is invalid"},sme={APP:"App",ACCOUNT:"Account",ACCOUNTS:"Accounts",ACCOUNTS_DESCRIPTION:"Switch between your currently signed in accounts.",ACCOUNTS_INSTRUCTIONS:"Sign in to an additional account.",ADD_ACCOUNT:"Add Account",ADD_PASSKEY:"Add Passkey",ALREADY_HAVE_AN_ACCOUNT:"Already have an account?",AVATAR:"Avatar",AVATAR_DESCRIPTION:"Click on the avatar to upload a custom one from your files.",AVATAR_INSTRUCTIONS:"An avatar is optional but strongly recommended.",BACKUP_CODE_REQUIRED:"Backup code is required",BACKUP_CODES:"Backup Codes",BACKUP_CODES_DESCRIPTION:"Save these backup codes in a secure place. You can use them to access your account if you lose your two-factor authentication method.",BACKUP_CODE_PLACEHOLDER:"Backup Code",BACKUP_CODE:"Backup Code",CANCEL:"Cancel",CHANGE_PASSWORD:"Change Password",CHANGE_PASSWORD_DESCRIPTION:"Enter your current password and a new password.",CHANGE_PASSWORD_INSTRUCTIONS:"Please use 8 characters at minimum.",CHANGE_PASSWORD_SUCCESS:"Your password has been changed.",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Confirm Password",CONFIRM_PASSWORD_REQUIRED:"Confirm password is required",CONTINUE_WITH_AUTHENTICATOR:"Continue with Authenticator",COPIED_TO_CLIPBOARD:"Copied to clipboard",COPY_TO_CLIPBOARD:"Copy to clipboard",COPY_ALL_CODES:"Copy all codes",CONTINUE:"Continue",CURRENT_PASSWORD:"Current Password",CURRENT_PASSWORD_PLACEHOLDER:"Current Password",CURRENT_SESSION:"Current Session",UPDATE:"Update",DELETE:"Delete",DELETE_AVATAR:"Delete Avatar",DELETE_ACCOUNT:"Delete Account",DELETE_ACCOUNT_DESCRIPTION:"Permanently remove your account and all of its contents. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_INSTRUCTIONS:"Please confirm the deletion of your account. This action is not reversible, so please continue with caution.",DELETE_ACCOUNT_VERIFY:"Please check your email to verify the deletion of your account.",DELETE_ACCOUNT_SUCCESS:"Your account has been deleted.",DISABLE_TWO_FACTOR:"Disable Two-Factor",DISABLED_CREDENTIALS_DESCRIPTION:"Choose a provider to login to your account",DONT_HAVE_AN_ACCOUNT:"Don't have an account?",DONE:"Done",EMAIL:"Email",EMAIL_DESCRIPTION:"Enter the email address you want to use to log in.",EMAIL_INSTRUCTIONS:"Please enter a valid email address.",EMAIL_IS_THE_SAME:"Email is the same",EMAIL_PLACEHOLDER:"m@example.com",EMAIL_REQUIRED:"Email address is required",EMAIL_VERIFY_CHANGE:"Please check your email to verify the change.",EMAIL_VERIFICATION:"Email Verification",EMAIL_VERIFICATION_DESCRIPTION:"Please check your email for the verification code to complete your registration.",EMAIL_VERIFICATION_SUCCESS:"Email verification successful.",ENABLE_TWO_FACTOR:"Enable Two-Factor",IS_INVALID:"is invalid",IS_REQUIRED:"is required",IS_THE_SAME:"is the same",FORGOT_AUTHENTICATOR:"Forgot authenticator?",FORGOT_PASSWORD:"Forgot Password",FORGOT_PASSWORD_ACTION:"Send reset link",FORGOT_PASSWORD_DESCRIPTION:"Enter your email to reset your password",FORGOT_PASSWORD_EMAIL:"Check your email for the password reset link.",FORGOT_PASSWORD_LINK:"Forgot your password?",LINK:"Link",MAGIC_LINK:"Magic Link",MAGIC_LINK_ACTION:"Send magic link",MAGIC_LINK_DESCRIPTION:"Enter your email to receive a magic link",MAGIC_LINK_EMAIL:"Check your email for the magic link",EMAIL_OTP:"Email Code",EMAIL_OTP_SEND_ACTION:"Send code",EMAIL_OTP_VERIFY_ACTION:"Verify code",EMAIL_OTP_DESCRIPTION:"Enter your email to receive a code",EMAIL_OTP_VERIFICATION_SENT:"Please check your email for the verification code.",NAME:"Name",NAME_DESCRIPTION:"Please enter your full name, or a display name.",NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",NAME_PLACEHOLDER:"Name",NEW_PASSWORD:"New Password",NEW_PASSWORD_PLACEHOLDER:"New Password",NEW_PASSWORD_REQUIRED:"New password is required",ONE_TIME_PASSWORD:"One-Time Password",OR_CONTINUE_WITH:"Or continue with",PASSKEY:"Passkey",PASSKEYS:"Passkeys",PASSKEYS_DESCRIPTION:"Manage your passkeys for secure access.",PASSKEYS_INSTRUCTIONS:"Securely access your account without a password.",PERSONAL_ACCOUNT:"Personal Account",API_KEYS:"API Keys",API_KEYS_DESCRIPTION:"Manage your API keys for secure access.",API_KEYS_INSTRUCTIONS:"Generate API keys to access your account programmatically.",CREATE_API_KEY:"Create API Key",CREATE_API_KEY_DESCRIPTION:"Enter a unique name for your API key to differentiate it from other keys.",API_KEY_NAME_PLACEHOLDER:"New API Key",API_KEY_CREATED:"API Key Created",CREATE_API_KEY_SUCCESS:"Please copy your API key and store it in a safe place. For security reasons we cannot show it again.",NEVER_EXPIRES:"Never Expires",EXPIRES:"Expires",NO_EXPIRATION:"No Expiration",CREATE_ORGANIZATION:"Create Organization",ORGANIZATION:"Organization",ORGANIZATION_NAME:"Name",ORGANIZATION_NAME_PLACEHOLDER:"Acme Inc.",ORGANIZATION_NAME_DESCRIPTION:"This is your organization's visible name.",ORGANIZATION_NAME_INSTRUCTIONS:"Please use 32 characters at maximum.",ORGANIZATION_SLUG:"Slug URL",ORGANIZATION_SLUG_DESCRIPTION:"This is your organization's URL namespace.",ORGANIZATION_SLUG_INSTRUCTIONS:"Please use 48 characters at maximum.",ORGANIZATION_SLUG_PLACEHOLDER:"acme-inc",CREATE_ORGANIZATION_SUCCESS:"Organization created successfully",PASSWORD:"Password",PASSWORD_PLACEHOLDER:"Password",PASSWORD_REQUIRED:"Password is required",PASSWORDS_DO_NOT_MATCH:"Passwords do not match",PROVIDERS:"Providers",PROVIDERS_DESCRIPTION:"Connect your account with a third-party service.",RECOVER_ACCOUNT:"Recover Account",RECOVER_ACCOUNT_ACTION:"Recover account",RECOVER_ACCOUNT_DESCRIPTION:"Please enter a backup code to access your account",REMEMBER_ME:"Remember me",RESEND_CODE:"Resend code",RESEND_VERIFICATION_EMAIL:"Resend Verification Email",RESET_PASSWORD:"Reset Password",RESET_PASSWORD_ACTION:"Save new password",RESET_PASSWORD_DESCRIPTION:"Enter your new password below",RESET_PASSWORD_SUCCESS:"Password reset successfully",REQUEST_FAILED:"Request failed",REVOKE:"Revoke",DELETE_API_KEY:"Delete API Key",DELETE_API_KEY_CONFIRM:"Are you sure you want to delete this API key?",API_KEY:"API Key",SIGN_IN:"Sign In",SIGN_IN_ACTION:"Login",SIGN_IN_DESCRIPTION:"Enter your email below to login to your account",SIGN_IN_USERNAME_DESCRIPTION:"Enter your username or email to login to your account",SIGN_IN_WITH:"Sign in with",SIGN_OUT:"Sign Out",SIGN_UP:"Sign Up",SIGN_UP_ACTION:"Create an account",SIGN_UP_DESCRIPTION:"Enter your information to create an account",SIGN_UP_EMAIL:"Check your email for the verification link.",SESSIONS:"Sessions",SESSIONS_DESCRIPTION:"Manage your active sessions and revoke access.",SET_PASSWORD:"Set Password",SET_PASSWORD_DESCRIPTION:"Click the button below to receive an email to set up a password for your account.",SETTINGS:"Settings",SAVE:"Save",SECURITY:"Security",SWITCH_ACCOUNT:"Switch Account",TRUST_DEVICE:"Trust this device",TWO_FACTOR:"Two-Factor",TWO_FACTOR_ACTION:"Verify code",TWO_FACTOR_DESCRIPTION:"Please enter your one-time password to continue",TWO_FACTOR_CARD_DESCRIPTION:"Add an extra layer of security to your account.",TWO_FACTOR_DISABLE_INSTRUCTIONS:"Please enter your password to disable 2FA.",TWO_FACTOR_ENABLE_INSTRUCTIONS:"Please enter your password to enable 2FA.",TWO_FACTOR_ENABLED:"Two-factor authentication has been enabled",TWO_FACTOR_DISABLED:"Two-Factor Authentication has been disabled",TWO_FACTOR_PROMPT:"Two-Factor Authentication",TWO_FACTOR_TOTP_LABEL:"Scan the QR Code with your Authenticator",SEND_VERIFICATION_CODE:"Send verification code",UNLINK:"Unlink",UPDATED_SUCCESSFULLY:"updated successfully",USERNAME:"Username",USERNAME_DESCRIPTION:"Enter the username you want to use to log in.",USERNAME_INSTRUCTIONS:"Please use 32 characters at maximum.",USERNAME_PLACEHOLDER:"Username",OPTIONAL_BRACKETS:"(Optional)",SIGN_IN_USERNAME_PLACEHOLDER:"Username or email",VERIFY_YOUR_EMAIL:"Verify Your Email",VERIFY_YOUR_EMAIL_DESCRIPTION:"Please verify your email address. Check your inbox for the verification email. If you haven't received the email, click the button below to resend.",GO_BACK:"Go back",SESSION_NOT_FRESH:"Your session is not fresh. Please sign in again.",UPLOAD_AVATAR:"Upload Avatar",LOGO:"Logo",LOGO_DESCRIPTION:"Click on the logo to upload a custom one from your files.",LOGO_INSTRUCTIONS:"A logo is optional but strongly recommended.",UPLOAD:"Upload",UPLOAD_LOGO:"Upload Logo",DELETE_LOGO:"Delete Logo",PRIVACY_POLICY:"Privacy Policy",TERMS_OF_SERVICE:"Terms of Service",PROTECTED_BY_RECAPTCHA:"This site is protected by reCAPTCHA.",BY_CONTINUING_YOU_AGREE:"By continuing, you agree to the",USER:"User",ORGANIZATIONS:"Organizations",ORGANIZATIONS_DESCRIPTION:"Manage your organizations and memberships.",ORGANIZATIONS_INSTRUCTIONS:"Create an organization to collaborate with other users.",LEAVE_ORGANIZATION:"Leave Organization",LEAVE_ORGANIZATION_CONFIRM:"Are you sure you want to leave this organization?",LEAVE_ORGANIZATION_SUCCESS:"You have successfully left the organization.",MANAGE_ORGANIZATION:"Manage Organization",REMOVE_MEMBER:"Remove Member",REMOVE_MEMBER_CONFIRM:"Are you sure you want to remove this member from the organization?",REMOVE_MEMBER_SUCCESS:"Member removed successfully",INVITE_MEMBER:"Invite Member",MEMBERS:"Members",MEMBERS_DESCRIPTION:"Add or remove members and manage their roles.",MEMBERS_INSTRUCTIONS:"Invite new members to your organization.",INVITE_MEMBER_DESCRIPTION:"Send an invitation to add a new member to your organization.",ROLE:"Role",SELECT_ROLE:"Select a role",ADMIN:"Admin",MEMBER:"Member",GUEST:"Guest",OWNER:"Owner",UPDATE_ROLE_DESCRIPTION:"Update the role for this member",UPDATE_ROLE:"Update Role",MEMBER_ROLE_UPDATED:"Member role updated successfully",SEND_INVITATION:"Send Invitation",SEND_INVITATION_SUCCESS:"Invitation sent successfully",PENDING_INVITATIONS:"Pending Invitations",PENDING_INVITATIONS_DESCRIPTION:"Manage pending invitations to your organization.",PENDING_USER_INVITATIONS_DESCRIPTION:"Invitations you've received from organizations.",CANCEL_INVITATION:"Cancel Invitation",INVITATION_CANCELLED:"Invitation cancelled successfully",ACCEPT_INVITATION:"Accept Invitation",ACCEPT_INVITATION_DESCRIPTION:"You have been invited to join an organization.",INVITATION_ACCEPTED:"Invitation accepted successfully",INVITATION_REJECTED:"Invitation rejected successfully",ACCEPT:"Accept",REJECT:"Reject",INVITATION_EXPIRED:"This invitation has expired",DELETE_ORGANIZATION:"Delete Organization",DELETE_ORGANIZATION_DESCRIPTION:"Permanently remove your organization and all of its contents. This action is not reversible — please continue with caution.",DELETE_ORGANIZATION_SUCCESS:"Organization deleted successfully",DELETE_ORGANIZATION_INSTRUCTIONS:"Enter the organization slug to continue:",SLUG_REQUIRED:"Organization slug is required",SLUG_DOES_NOT_MATCH:"The slug does not match",TEAM:"Team",TEAMS:"Teams",TEAM_ACTIVE:"Active",TEAM_SET_ACTIVE:"Set Active",CREATE_TEAM:"Create Team",CREATE_TEAM_SUCCESS:"Team created successfully",UPDATE_TEAM:"Update Team",UPDATE_TEAMS:"Update Teams",SELECT_TEAMS:"Select teams",ADD:"Add",REMOVE:"Remove",UPDATE_TEAM_DESCRIPTION:"Update the name for this team",UPDATE_TEAMS_DESCRIPTION:"Add or remove teams for this member",REMOVE_TEAM_CONFIRM:"Are you sure you want to remove this team from the organization?",CREATE_TEAM_INSTRUCTIONS:"Add new team to your organization.",TEAM_NAME:"Team Name",TEAM_NAME_PLACEHOLDER:"Engineering Team",TEAM_NAME_DESCRIPTION:"This is your team's visible name.",TEAM_NAME_INSTRUCTIONS:"Please use 64 characters at maximum.",TEAMS_DESCRIPTION:"Manage your teams within your organization.",USER_TEAMS_DESCRIPTION:"You are a member of the following teams.",DELETE_TEAM:"Delete Team",DELETE_TEAM_DESCRIPTION:"Permanently remove this team and all of its contents.",DELETE_TEAM_SUCCESS:"Team deleted successfully",DELETE_TEAM_INSTRUCTIONS:"Enter the team name to continue:",TEAM_NAME_REQUIRED:"Team name is required",TEAM_NAME_DOES_NOT_MATCH:"The team name does not match",TEAM_MEMBERS:"Team Members",TEAM_MEMBERS_DESCRIPTION:"Manage your team members and their roles.",ADD_TEAM_MEMBER:"Add Team Member",REMOVE_TEAM_MEMBER:"Remove Team Member",REMOVE_TEAM_MEMBER_CONFIRM:"Are you sure you want to remove this member from the team?",REMOVE_TEAM_MEMBER_SUCCESS:"Team member removed successfully",ADD_TEAM_MEMBER_SUCCESS:"Team member added successfully",UPDATE_TEAM_SUCCESS:"Team updated successfully",MANAGE_TEAM_MEMBERS:"Manage Team Members",MANAGE_TEAM_MEMBERS_DESCRIPTION:"Search and add organization members to this team.",NO_TEAMS_FOUND:"No teams found",MEMBER_SINGULAR:"member",MEMBER_PLURAL:"members",UNKNOWN:"Unknown",...Hpe,...qpe,...$pe,...Vpe,...Kpe,...Ype,...Zpe,...Qpe,...Jpe,...Xpe,...eme,...tme,...ame,...ome,...nme,...rme},ime={CALLBACK:"callback",EMAIL_OTP:"email-otp",EMAIL_VERIFICATION:"email-verification",FORGOT_PASSWORD:"forgot-password",MAGIC_LINK:"magic-link",RECOVER_ACCOUNT:"recover-account",RESET_PASSWORD:"reset-password",SIGN_IN:"sign-in",SIGN_OUT:"sign-out",SIGN_UP:"sign-up",TWO_FACTOR:"two-factor",ACCEPT_INVITATION:"accept-invitation"},Q2={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},J2={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const V4=A.createContext({});function H4(){return A.useContext(V4)}var mw,X2;function lme(){if(X2)return mw;X2=1;var t=function(){};return mw=t,mw}var cme=lme();const dme=Wl(cme);function ume({async:t,appendTo:e,defer:a,id:o,nonce:n,src:r}){const i=document.createElement("script");t!==void 0&&(i.async=t),a!==void 0&&(i.defer=a),o&&(i.id=o),n&&i.setAttribute("nonce",n),i.src=r,(e==="head"?document.head:document.body).appendChild(i)}var pme=function(t,e){var a={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(a[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(a[o[n]]=t[o[n]]);return a};let Rp=null,em=!1;const kb=new Set,_b=new Set,mme=typeof window<"u",Cd="___grecaptcha_cfg",G4=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function hme(){if(!mme)return;function t(a){if(em)a();else{window[Cd]||(window[Cd]={});const o=window[Cd];o.fns||(o.fns=[]),o.fns.push(a)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=t,window.grecaptcha.enterprise.ready=t;function e(){em=!0;for(const a of _b)a();_b.clear()}window[G4]=e}function gme({language:t,onLoadCallbackName:e,render:a,useEnterprise:o=!1,useRecaptchaNet:n=!1}){const r=n?"recaptcha.net":"google.com",i=o?"enterprise.js":"api.js",c=new URLSearchParams({render:a});return e&&c.set("onload",e),t&&c.set("hl",t),`https://www.${r}/recaptcha/${i}?${c.toString()}`}function fme({language:t,render:e,scriptProps:a,useEnterprise:o,useRecaptchaNet:n}){const r={id:"google-recaptcha-v3"},i=gme({language:t,onLoadCallbackName:G4,render:e,useEnterprise:o,useRecaptchaNet:n});if(Rp){if(Rp!==i)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}Rp=i,ume(Object.assign(Object.assign(Object.assign({},r),a),{src:i}))}function bme(t){if(!window[Cd])return;const e=window[Cd];e.clients&&delete e.clients[t]}function vme(t,e){var{onLoadCallback:a,onLoadCallbackName:o}=e,n=pme(e,["onLoadCallback","onLoadCallbackName"]);if(kb.size===0&&hme(),fme(n),kb.add(t),a&&(em?a():_b.add(a)),o){let r=function(){if(!o)return;const i=window[o];typeof i=="function"&&i()};em?r():_b.add(r)}}function yme(t){var e,a,o;kb.delete(t),kb.size===0&&(window.grecaptcha=void 0,window[Cd]=void 0,(e=document.querySelector(".grecaptcha-badge"))===null||e===void 0||e.remove(),(a=document.querySelector(`script[src="${Rp}"]`))===null||a===void 0||a.remove(),(o=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||o===void 0||o.remove(),Rp=null,em=!1)}let eN=!1;function Tme({container:t,children:e,language:a,reCaptchaKey:o,scriptProps:n,useEnterprise:r,useRecaptchaNet:i}){var c,d,u,m,h,f,b;const y=A.useId(),[T,x]=A.useState(null),[w,P]=A.useState(null),k=A.useRef(!1);A.useEffect(()=>{function R(){var O;const L=r?(O=window.grecaptcha)===null||O===void 0?void 0:O.enterprise:window.grecaptcha;if(!L)throw new Error("reCAPTCHA not found");if(!L.ready)throw new Error("reCAPTCHA ready callback not found");L.ready(()=>{x(L)})}return vme(y,{language:a,onLoadCallback:R,onLoadCallbackName:n?.onLoadCallbackName,render:t?.element?"explicit":o,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:r,useRecaptchaNet:i}),()=>{yme(y),x(null)}},[t?.element,y,a,o,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,r,i]),A.useEffect(()=>{var R,O,L;if(!t?.element||!T?.render)return;const q={"error-callback":t.parameters.errorCallback,"expired-callback":t.parameters.expiredCallback,badge:((R=t.parameters)===null||R===void 0?void 0:R.badge)||"inline",callback:t.parameters.callback,sitekey:o,size:"invisible",tabindex:t.parameters.tabindex,theme:t.parameters.theme},B=typeof t?.element=="string"?document.getElementById(t.element):t?.element;if(!B)throw new Error("reCAPTCHA container element not found");const z=T.render(B,q);return!((O=t?.parameters)===null||O===void 0)&&O.hidden&&(eN||(dme(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),eN=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),P(z),k.current=!0,()=>{P(null),k.current=!1,bme(z),B.innerHTML=""}},[t?.element,(c=t?.parameters)===null||c===void 0?void 0:c.badge,(d=t?.parameters)===null||d===void 0?void 0:d.hidden,(u=t?.parameters)===null||u===void 0?void 0:u.callback,(m=t?.parameters)===null||m===void 0?void 0:m.errorCallback,(h=t?.parameters)===null||h===void 0?void 0:h.expiredCallback,(f=t?.parameters)===null||f===void 0?void 0:f.tabindex,(b=t?.parameters)===null||b===void 0?void 0:b.theme,T,o]);const E=!!t?.element,_=E?w:o,D=A.useMemo(()=>_!==null&&T?.execute?R=>{if(_===null||!T?.execute)throw new Error("reCAPTCHA has not been loaded");return E&&!k.current?(console.warn("Client ID not mounted"),null):T.execute(_,{action:R})}:void 0,[_,T,E]);return v.jsx(V4.Provider,{value:{container:t?.element,executeRecaptcha:D,reCaptchaInstance:T},children:e})}var Sme=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(t){return this.cache.get(t)}set(t,e){const a={data:e,timestamp:Date.now(),isRefetching:!1};this.cache.set(t,a),this.notify(t)}setRefetching(t,e){const a=this.cache.get(t);a&&(a.isRefetching=e,this.notify(t))}clear(t){if(t)this.cache.delete(t),this.inFlightRequests.delete(t),this.notify(t);else{this.cache.clear(),this.inFlightRequests.clear();const e=Array.from(this.listeners.keys());for(const a of e)this.notify(a)}}getInFlightRequest(t){return this.inFlightRequests.get(t)}setInFlightRequest(t,e){this.inFlightRequests.set(t,e)}removeInFlightRequest(t){this.inFlightRequests.delete(t)}subscribe(t,e){return this.listeners.has(t)||this.listeners.set(t,new Set),this.listeners.get(t).add(e),()=>{const a=this.listeners.get(t);a&&(a.delete(e),a.size===0&&this.listeners.delete(t))}}notify(t){const e=this.listeners.get(t);if(e){const a=Array.from(e);for(const o of a)o()}}},Qn=new Sme;function wme(){return()=>{}}function qs(){return A.useSyncExternalStore(wme,()=>!0,()=>!1)}function W4(){const[t,e]=A.useState();return A.useEffect(()=>{const a=()=>{const n=document.documentElement.getAttribute("lang");e(n??void 0)};a();const o=new MutationObserver(n=>{for(const r of n)r.attributeName==="lang"&&a()});return o.observe(document.documentElement,{attributes:!0}),()=>{o.disconnect()}},[]),{lang:t}}function $E(){const[t,e]=A.useState("light");return A.useEffect(()=>{const a=()=>{var n;const r=document.documentElement.classList.contains("dark")||((n=document.documentElement.getAttribute("style"))==null?void 0:n.includes("color-scheme: dark"));e(r?"dark":"light")};a();const o=new MutationObserver(n=>{for(const r of n)(r.attributeName==="style"||r.attributeName==="class")&&a()});return o.observe(document.documentElement,{attributes:!0}),()=>{o.disconnect()}},[]),{theme:t}}function xme({children:t}){const e=qs(),{captcha:a}=A.useContext(St);return a?.provider!=="google-recaptcha-v3"?t:v.jsxs(Tme,{reCaptchaKey:a.siteKey,useEnterprise:a.enterprise,useRecaptchaNet:a.recaptchaNet,children:[e&&v.jsx("style",{children:`
|
|
169
169
|
.grecaptcha-badge {
|
|
170
170
|
visibility: hidden;
|
|
171
171
|
border-radius: var(--radius) !important;
|