decocms 4.619.7 → 4.619.9

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.
Files changed (434) hide show
  1. package/dist/client/assets/{AlertCircle-C5IcBKVv.js → AlertCircle-o1_kumY2.js} +1 -1
  2. package/dist/client/assets/{AreaChart-B2H1WOGA.js → AreaChart-Dcy9GlUk.js} +1 -1
  3. package/dist/client/assets/{ArrowLeft-BZRa3Prb.js → ArrowLeft-BCe632Br.js} +1 -1
  4. package/dist/client/assets/{ArrowRight-CO7t3_mZ.js → ArrowRight-DBXGzd_k.js} +1 -1
  5. package/dist/client/assets/{ArrowUp-D_S-rNcV.js → ArrowUp-CCyShCPF.js} +1 -1
  6. package/dist/client/assets/{BookOpen01-C-0ZZ7xz.js → BookOpen01-C8XO2msc.js} +1 -1
  7. package/dist/client/assets/{CartesianChart-DCfWEjbp.js → CartesianChart-C2c_7V92.js} +1 -1
  8. package/dist/client/assets/{CategoricalChart-Bti1V1bE.js → CategoricalChart-DvKzcgN2.js} +1 -1
  9. package/dist/client/assets/{CheckCircle-B3xnyufs.js → CheckCircle-hoO2Z5VE.js} +1 -1
  10. package/dist/client/assets/{ChevronDown-DtBQPgDr.js → ChevronDown-BpktilMY.js} +1 -1
  11. package/dist/client/assets/{ChevronSelectorVertical-BJY9ZtnD.js → ChevronSelectorVertical-oF1OMynT.js} +1 -1
  12. package/dist/client/assets/{ChevronUp-rDqeU0sa.js → ChevronUp-BHIYb2kG.js} +1 -1
  13. package/dist/client/assets/{CreditCard01-VS59ZHH7.js → CreditCard01-CO1cUXT4.js} +1 -1
  14. package/dist/client/assets/{Eye-D2SrYnw3.js → Eye-ZvUfktry.js} +1 -1
  15. package/dist/client/assets/{File02-CdVrg4Ze.js → File02-Dt8T9Y6v.js} +1 -1
  16. package/dist/client/assets/{Fingerprint04-DYu2trr5.js → Fingerprint04-BZEt5DHL.js} +1 -1
  17. package/dist/client/assets/{Globe04-BdGaHZ3d.js → Globe04-LZvqlcki.js} +1 -1
  18. package/dist/client/assets/{Image01-AcutHfxy.js → Image01-DKuhPLPT.js} +1 -1
  19. package/dist/client/assets/{Key01-BGw6Mss-.js → Key01-CFlh25W7.js} +1 -1
  20. package/dist/client/assets/{LayoutLeft-1Z0D80D0.js → LayoutLeft-C5CdAV8y.js} +1 -1
  21. package/dist/client/assets/{LinkBroken01-CIEsHvum.js → LinkBroken01-c3IryBLP.js} +1 -1
  22. package/dist/client/assets/{MessageCircle01-B60_WqfQ.js → MessageCircle01-CrpH1nuf.js} +1 -1
  23. package/dist/client/assets/{Minus-B0iH16cD.js → Minus-CUSYaIjI.js} +1 -1
  24. package/dist/client/assets/{Monitor01-BVsLU-CT.js → Monitor01-bNOAV-y1.js} +1 -1
  25. package/dist/client/assets/{Play-BmnNNnuq.js → Play-BpB7P0_k.js} +1 -1
  26. package/dist/client/assets/{Plus-CxjsXIQx.js → Plus-f_lZkrQ5.js} +1 -1
  27. package/dist/client/assets/{ReferenceLine-COfwL_ek.js → ReferenceLine-C9XCRj5F.js} +1 -1
  28. package/dist/client/assets/{SearchMd-oUneVOtx.js → SearchMd-CUA_Y2Xs.js} +1 -1
  29. package/dist/client/assets/{ShoppingBag01-DgjlfDxN.js → ShoppingBag01-B-hyZ0GQ.js} +1 -1
  30. package/dist/client/assets/{Sun-B_Ztmr7U.js → Sun-fomphnuk.js} +1 -1
  31. package/dist/client/assets/{SwitchHorizontal01-DptIGy5I.js → SwitchHorizontal01-1PD2KqGq.js} +1 -1
  32. package/dist/client/assets/{Tool01-a2zo_Nh2.js → Tool01-BjVDM-A_.js} +1 -1
  33. package/dist/client/assets/{Tooltip-BUJvjg6p.js → Tooltip-BLjnGNFb.js} +1 -1
  34. package/dist/client/assets/{Trash01-DdWfB3p_.js → Trash01-BIcWnfDR.js} +1 -1
  35. package/dist/client/assets/{Upload01-DDZaKror.js → Upload01-CCzRx3xI.js} +1 -1
  36. package/dist/client/assets/{UserCheck01-BQk8M2vE.js → UserCheck01-D8lYRtyW.js} +1 -1
  37. package/dist/client/assets/{UserSquare-DMtJtFsc.js → UserSquare-IpNUtUwU.js} +1 -1
  38. package/dist/client/assets/{Users01-B7IyHIv3.js → Users01-B1l6VW3c.js} +1 -1
  39. package/dist/client/assets/{XClose-B9QBg8Hw.js → XClose-Bx9gJXBf.js} +1 -1
  40. package/dist/client/assets/{Zap-DvCvOF0f.js → Zap-Bwv03s-s.js} +1 -1
  41. package/dist/client/assets/{access-gate-B_wXNW8_.js → access-gate-BNls_ETO.js} +1 -1
  42. package/dist/client/assets/{add-connection-dialog-DHRN4AlC.js → add-connection-dialog-Dpnv5Hu_.js} +1 -1
  43. package/dist/client/assets/agent-app-WCej8Ohc.js +1 -0
  44. package/dist/client/assets/{agent-assets-V54jktFt.js → agent-assets-UhIpqMpm.js} +1 -1
  45. package/dist/client/assets/{agent-automation-B5Rrh4U5.js → agent-automation-CkM2my-l.js} +1 -1
  46. package/dist/client/assets/{agent-automations-DXdA8yst.js → agent-automations-BurHzRja.js} +1 -1
  47. package/dist/client/assets/{agent-blog-C1s1aL9T.js → agent-blog-DjjfQBNh.js} +2 -2
  48. package/dist/client/assets/{agent-blog-post-CDv4FfL_.js → agent-blog-post-ht1HzHjG.js} +2 -2
  49. package/dist/client/assets/{agent-business-case-rAgsfx68.js → agent-business-case-2p0OVX34.js} +1 -1
  50. package/dist/client/assets/{agent-calendar-CZ3xkWRZ.js → agent-calendar-B31Xb2WF.js} +1 -1
  51. package/dist/client/assets/{agent-capabilities-gnOhsa2o.js → agent-capabilities-DCclMz2f.js} +1 -1
  52. package/dist/client/assets/{agent-connect-sources-CkMKnOID.js → agent-connect-sources-zoO63WyJ.js} +1 -1
  53. package/dist/client/assets/agent-deck-CY5g-mtT.js +1 -0
  54. package/dist/client/assets/{agent-e2e-CLyQ5SdR.js → agent-e2e-Cj_dCYUn.js} +1 -1
  55. package/dist/client/assets/agent-experiments-BpCqOTFB.js +1 -0
  56. package/dist/client/assets/agent-file-C0j8dAw7.js +1 -0
  57. package/dist/client/assets/{agent-hosting-CaM-66SR.js → agent-hosting-BHooSE_7.js} +1 -1
  58. package/dist/client/assets/{agent-icon-usffbRRI.js → agent-icon-7j0_nQ7A.js} +1 -1
  59. package/dist/client/assets/agent-library-BexZfa5-.js +1 -0
  60. package/dist/client/assets/agent-library-file-fgZ_PI8s.js +1 -0
  61. package/dist/client/assets/agent-overview-CU4OxoSh.js +1 -0
  62. package/dist/client/assets/{agent-releases-BreJMe6b.js → agent-releases-CihXHKu6.js} +1 -1
  63. package/dist/client/assets/agent-settings-Bo977gec.js +1 -0
  64. package/dist/client/assets/{agent-site-editor-Czv48wVM.js → agent-site-editor-D86Vpk2I.js} +1 -1
  65. package/dist/client/assets/agent-site-editor-code-DJU6jSgs.js +2 -0
  66. package/dist/client/assets/agent-site-editor-content-Bf0qTV-m.js +1 -0
  67. package/dist/client/assets/agent-site-editor-preview-BnRGLhv2.js +1 -0
  68. package/dist/client/assets/agent-view-DWAXSq2E.js +1 -0
  69. package/dist/client/assets/{agent-view-guard-DH7o6p1h.js → agent-view-guard-BW3zWEZ7.js} +1 -1
  70. package/dist/client/assets/{ai-providers-CMY5OO2Y.js → ai-providers-D-0PR2Pt.js} +1 -1
  71. package/dist/client/assets/{alert-BvmNXhKo.js → alert-CqGhPtK1.js} +1 -1
  72. package/dist/client/assets/{analytics-sections-2K6Q2SWt.js → analytics-sections-DsiL7QoY.js} +1 -1
  73. package/dist/client/assets/{api-keys-3E2OUFN2.js → api-keys-Bah9yWKy.js} +1 -1
  74. package/dist/client/assets/api-keys-D9cHma1w.js +1 -0
  75. package/dist/client/assets/{app-editor-DDHzNHhc.js → app-editor-DdShPNIr.js} +1 -1
  76. package/dist/client/assets/{asset-utils-Bh65EkIi.js → asset-utils-6fMjg_mO.js} +1 -1
  77. package/dist/client/assets/{auth-ljl_IgPN.js → auth-D1tG5tMt.js} +1 -1
  78. package/dist/client/assets/{auth-catchall-BZYdYIWZ.js → auth-catchall-Df0mlf3q.js} +1 -1
  79. package/dist/client/assets/{auth-entry-BBQRIIw6.js → auth-entry-DAVsWFXz.js} +1 -1
  80. package/dist/client/assets/{auth-split-layout-BknvLkhe.js → auth-split-layout-JUvHdZQm.js} +1 -1
  81. package/dist/client/assets/{authenticate-and-persist-oauth-Bs5ASyev.js → authenticate-and-persist-oauth-BDAuxtOP.js} +1 -1
  82. package/dist/client/assets/{automation-list-row-Bdq7_Dhd.js → automation-list-row-DmUh90N4.js} +1 -1
  83. package/dist/client/assets/{automation-runs-0F8FAeok.js → automation-runs-CDb3BuvC.js} +1 -1
  84. package/dist/client/assets/{automations-CFBniQiY.js → automations-CZbtuC2e.js} +1 -1
  85. package/dist/client/assets/{badge-CcLprL9P.js → badge-BJ_vAY2f.js} +1 -1
  86. package/dist/client/assets/{block-document-BLtq_1ET.js → block-document-CqxJTmUK.js} +1 -1
  87. package/dist/client/assets/{blocks-preview-workspace-context-Cwu4UHGR.js → blocks-preview-workspace-context-CNHnyxyL.js} +1 -1
  88. package/dist/client/assets/{blocks-tab-states-BFYpeUrU.js → blocks-tab-states-BY5eWec9.js} +1 -1
  89. package/dist/client/assets/{blog-preview-url-BgP1ZGW2.js → blog-preview-url-DcAMwcUT.js} +1 -1
  90. package/dist/client/assets/{blog-schema-OP3tJznq.js → blog-schema-BDzp5CIL.js} +1 -1
  91. package/dist/client/assets/{blog-source-gate-CEZmhZd5.js → blog-source-gate-DQAj7Q60.js} +1 -1
  92. package/dist/client/assets/{blog-view-gate-BqigEeda.js → blog-view-gate-NbTFHC0t.js} +1 -1
  93. package/dist/client/assets/{buckets-DjlZI89A.js → buckets-CDoJdgAV.js} +1 -1
  94. package/dist/client/assets/{build-improve-prompt-doc-P3f8rCv7.js → build-improve-prompt-doc-DIOWxpaX.js} +1 -1
  95. package/dist/client/assets/{calendar-DKsPNVb-.js → calendar-DpLohaQP.js} +1 -1
  96. package/dist/client/assets/{capability-load-error-D0DSslqz.js → capability-load-error-BgST-3sF.js} +1 -1
  97. package/dist/client/assets/{category-editor-D-iSbA9s.js → category-editor-CiMW38Uo.js} +1 -1
  98. package/dist/client/assets/{category-tree-BkWzLfeb.js → category-tree-bd0q56_K.js} +1 -1
  99. package/dist/client/assets/{chart-CCUaKjCe.js → chart-BeHWLWSH.js} +1 -1
  100. package/dist/client/assets/{chat-context-DvLeIzFQ.js → chat-context-BYkfFziV.js} +1 -1
  101. package/dist/client/assets/{chat-draft-4BFbPpRf.js → chat-draft-CVLwBz17.js} +1 -1
  102. package/dist/client/assets/{checkbox-Bbsio9J6.js → checkbox-BTgQTIJU.js} +1 -1
  103. package/dist/client/assets/{choose-editor-D9QkB389.js → choose-editor-EfVI0Ld9.js} +1 -1
  104. package/dist/client/assets/{cli-auth-success-8s-fzwHw.js → cli-auth-success-CTr9TvqD.js} +1 -1
  105. package/dist/client/assets/{cms-settings-editor-CtiJom4u.js → cms-settings-editor-C58qIc2M.js} +1 -1
  106. package/dist/client/assets/{cms-store-drafts-BfXkPSrC.js → cms-store-drafts-xAlTzUkZ.js} +1 -1
  107. package/dist/client/assets/{collapsible-B-3Qa12p.js → collapsible-BVCmhyXp.js} +1 -1
  108. package/dist/client/assets/{collection-detail-ByynPl98.js → collection-detail-BAQZapxx.js} +1 -1
  109. package/dist/client/assets/{collection-display-button-BaOWrVAr.js → collection-display-button-BqP2_HTa.js} +1 -1
  110. package/dist/client/assets/{collection-search-3nPQayOE.js → collection-search-Dyh_oCCh.js} +1 -1
  111. package/dist/client/assets/{collection-table-wrapper-FdvHf9jQ.js → collection-table-wrapper-BKIPh5iD.js} +1 -1
  112. package/dist/client/assets/{collection-tabs-B-5zgbe0.js → collection-tabs-DBbqhX1I.js} +1 -1
  113. package/dist/client/assets/{combobox-BHxpMQQ6.js → combobox-Cm2irgnK.js} +1 -1
  114. package/dist/client/assets/{command-D2i9KgXa.js → command-CtN7h1NI.js} +1 -1
  115. package/dist/client/assets/{companion-mcps-section-BV9NrKyl.js → companion-mcps-section-BrdbyLXj.js} +1 -1
  116. package/dist/client/assets/{config-Cz2t4Ozn.js → config-DQUAtXro.js} +1 -1
  117. package/dist/client/assets/{connect-CUy2b31t.js → connect-BWbVox-H.js} +1 -1
  118. package/dist/client/assets/{connect-key-BNGUEwiG.js → connect-key-m1glUbL0.js} +1 -1
  119. package/dist/client/assets/{connect-layout-BmKWKTCR.js → connect-layout-DQ5fswkf.js} +1 -1
  120. package/dist/client/assets/{connect-source-dialog-DMjg5PaZ.js → connect-source-dialog-Ctz6byDM.js} +1 -1
  121. package/dist/client/assets/{connection-BsOFHbE4.js → connection-7fwO37ZJ.js} +1 -1
  122. package/dist/client/assets/{connection-card-tE3zrEjD.js → connection-card-C475_xRD.js} +1 -1
  123. package/dist/client/assets/{connection-detail-BQCLs1dX.js → connection-detail-CSA1uvaN.js} +1 -1
  124. package/dist/client/assets/{connection-form-helpers-DGyCREAo.js → connection-form-helpers-BXLKvPK8.js} +1 -1
  125. package/dist/client/assets/{connection-slug-CtIzZ2zc.js → connection-slug-C16WWtfl.js} +1 -1
  126. package/dist/client/assets/{connections-Beq2u3I0.js → connections-D5rs2BKl.js} +1 -1
  127. package/dist/client/assets/{content-changes-D6umA6sC.js → content-changes-Dt3OSrLz.js} +1 -1
  128. package/dist/client/assets/{content-tab-DvJgDgx9.js → content-tab-DlsfkKmi.js} +3 -3
  129. package/dist/client/assets/{context-DG04oOHR.js → context-BvG07Lu2.js} +1 -1
  130. package/dist/client/assets/{context-menu-CfkjHTIG.js → context-menu-Br_sdN4o.js} +1 -1
  131. package/dist/client/assets/{context-shell-Bno9WSee.js → context-shell-DiV-RnYp.js} +3 -3
  132. package/dist/client/assets/{create-organization-dialog-CLND_mWF.js → create-organization-dialog-dkGEglhg.js} +1 -1
  133. package/dist/client/assets/{daily-pulse-DCsFO1ME.js → daily-pulse-Cw2j9EKx.js} +1 -1
  134. package/dist/client/assets/{delete-copy-I9FZA_jS.js → delete-copy-FfgIRuvH.js} +1 -1
  135. package/dist/client/assets/{device-hint-BuUJ2y5W.js → device-hint-8H5574i4.js} +1 -1
  136. package/dist/client/assets/{discover-me98o1cI.js → discover-YpYScJNb.js} +1 -1
  137. package/dist/client/assets/{domain-settings-BWcu6JMC.js → domain-settings-C2Wbat6S.js} +1 -1
  138. package/dist/client/assets/{drawer-DB8NnEGw.js → drawer-DawrJeEW.js} +1 -1
  139. package/dist/client/assets/{editor-DVebT0ZZ.js → editor-CFfquQDP.js} +1 -1
  140. package/dist/client/assets/editor-classes-COX4-736.js +1 -0
  141. package/dist/client/assets/{empty-state-Cn1beEFv.js → empty-state-O4YCHvsc.js} +1 -1
  142. package/dist/client/assets/{empty-state-CaLsechF.js → empty-state-QwpItyno.js} +1 -1
  143. package/dist/client/assets/{experiments-tab-choice-D9M8caAG.js → experiments-tab-choice-CzYYA2vl.js} +1 -1
  144. package/dist/client/assets/{extract-connection-data-ChU2qvHl.js → extract-connection-data-BElr0HYN.js} +1 -1
  145. package/dist/client/assets/{feature-gate-BbI2poNL.js → feature-gate-mTIp9Sjm.js} +1 -1
  146. package/dist/client/assets/{feature-paywall-Nyu1L44W.js → feature-paywall-mmxA4pt4.js} +1 -1
  147. package/dist/client/assets/{file-explorer-D0CY6DpT.js → file-explorer-yU4ERe2b.js} +1 -1
  148. package/dist/client/assets/{file-preview-de0IBQRJ.js → file-preview-BkDdNm10.js} +1 -1
  149. package/dist/client/assets/{file-share-button-XDaD5KdK.js → file-share-button-B2cY2KSx.js} +1 -1
  150. package/dist/client/assets/{file-type-icon-DrEzxhRF.js → file-type-icon-Dso_AgRG.js} +1 -1
  151. package/dist/client/assets/{folder-icon-Vkg55i1f.js → folder-icon-DyVp7_iw.js} +1 -1
  152. package/dist/client/assets/{form-MAQ0_mTx.js → form-C1FU1mj4.js} +1 -1
  153. package/dist/client/assets/{frame-navigation-Bm3emgWE.js → frame-navigation-hCq1R0Jk.js} +1 -1
  154. package/dist/client/assets/{gateway-client-pG1MTCXD.js → gateway-client-B93rfdiw.js} +1 -1
  155. package/dist/client/assets/{general-CGRDtuGl.js → general-DcnCqnTz.js} +1 -1
  156. package/dist/client/assets/{github-icon-DYeDHhFE.js → github-icon-vz45cpwe.js} +1 -1
  157. package/dist/client/assets/{held-block-view-CwEdtPs7.js → held-block-view-BO2jFnOK.js} +3 -3
  158. package/dist/client/assets/{home-BxQjITwz.js → home-Dofusewo.js} +1 -1
  159. package/dist/client/assets/{home-overview-BpQE0z1H.js → home-overview-D49k7xYG.js} +1 -1
  160. package/dist/client/assets/{hosted-reconcile-DGFZMqoq.js → hosted-reconcile-CVtSUd_j.js} +1 -1
  161. package/dist/client/assets/{icon-button-DjKsXZXx.js → icon-button-Bag7go1_.js} +1 -1
  162. package/dist/client/assets/{index-cNtCmRrS.js → index--9Ncyagp.js} +1 -1
  163. package/dist/client/assets/{index-DS7_d1Rd.js → index-1MznTcP1.js} +1 -1
  164. package/dist/client/assets/{index-DOWBPeVo.js → index-BDUOMRF3.js} +1 -1
  165. package/dist/client/assets/{index-BnW8k7YN.js → index-BUddnpll.js} +1 -1
  166. package/dist/client/assets/{index-JoATPvrb.js → index-CQou0XPt.js} +1 -1
  167. package/dist/client/assets/{index-eAr2nu-s.js → index-CVTQyN8K.js} +1 -1
  168. package/dist/client/assets/{index-B8d3Gshb.js → index-Ck4bIDvp.js} +1 -1
  169. package/dist/client/assets/{index-CmchXZ5k.js → index-CsVpFXKd.js} +1 -1
  170. package/dist/client/assets/{index-wu6FYi2a.js → index-D3pPEYVX.js} +1 -1
  171. package/dist/client/assets/{index-BuW9mRX4.js → index-DAaGemAZ.js} +1 -1
  172. package/dist/client/assets/{index-D-btmdmU.js → index-DGRLfv0e.js} +1 -1
  173. package/dist/client/assets/{index-CX5I8d0k.js → index-DLhcfGKF.js} +1 -1
  174. package/dist/client/assets/{index-B8QWcTDF.js → index-DR1MSfdl.js} +3 -3
  175. package/dist/client/assets/{index-N08IYcaA.js → index-DodEqJ0x.js} +1 -1
  176. package/dist/client/assets/{index-D3b-nvLF.js → index-UsVmWsgU.js} +1 -1
  177. package/dist/client/assets/{index-CzrZrSQQ.js → index-YL5h_X6_.js} +1 -1
  178. package/dist/client/assets/{index-BCHsOhCh.js → index-jf5Wqn2s.js} +1 -1
  179. package/dist/client/assets/{index-redirect-BZ2ocOR_.js → index-redirect-BE6X99-K.js} +1 -1
  180. package/dist/client/assets/{infiniteQueryObserver-WCDClAoA.js → infiniteQueryObserver-C5QTnQlG.js} +1 -1
  181. package/dist/client/assets/{infra-billing-r7uDborI.js → infra-billing-BxeNlAa8.js} +1 -1
  182. package/dist/client/assets/{input-CT96cDcm.js → input-BOzfLAlf.js} +3 -3
  183. package/dist/client/assets/{input-oHwODrBP.js → input-U7wrAYxt.js} +1 -1
  184. package/dist/client/assets/{integration-icon-D6d1THcW.js → integration-icon-jpNieIDb.js} +1 -1
  185. package/dist/client/assets/{item-actions-DbjuAZ1b.js → item-actions-DtFGX8oO.js} +1 -1
  186. package/dist/client/assets/{jira-icon-AY_aB_eX.js → jira-icon-DhI0BUZ7.js} +1 -1
  187. package/dist/client/assets/{label-CAxblce3.js → label-DNz0cycQ.js} +1 -1
  188. package/dist/client/assets/{layout-D2pfAJPo.js → layout-Qo2HF2_n.js} +1 -1
  189. package/dist/client/assets/{legacy-admin-welcome-dialog-D93lYLDp.js → legacy-admin-welcome-dialog-bi9Ze4cY.js} +1 -1
  190. package/dist/client/assets/{legacy-agents-deep-BxhffE4E.js → legacy-agents-deep-BWjyNNwC.js} +1 -1
  191. package/dist/client/assets/{legacy-main-redirect-BCdGz2kc.js → legacy-main-redirect-CuUQuBxU.js} +1 -1
  192. package/dist/client/assets/library-BRE4U3sI.js +1 -0
  193. package/dist/client/assets/{library-tab-CJVRmuZx.js → library-tab-By7wNhS2.js} +1 -1
  194. package/dist/client/assets/{login-D5g_ztYq.js → login-ChUKcrxw.js} +1 -1
  195. package/dist/client/assets/{markdown-Dn5BYvjF.js → markdown-BqC1oNCt.js} +1 -1
  196. package/dist/client/assets/{mcp-app-renderer-D5eKPqGN.js → mcp-app-renderer-Dv_H6D39.js} +1 -1
  197. package/dist/client/assets/{mcp-oauth-BVidCgdK.js → mcp-oauth-DLQow66R.js} +1 -1
  198. package/dist/client/assets/{mcp-oauth-BPfeOxs9.js → mcp-oauth-JacWvzc2.js} +1 -1
  199. package/dist/client/assets/{members-DIKOgvUP.js → members-cK9nGyBK.js} +1 -1
  200. package/dist/client/assets/{memory-D3Jwomic.js → memory-CJ0Ycbhx.js} +1 -1
  201. package/dist/client/assets/{mock-board-vv37mdFa.js → mock-board-Rl0OulD3.js} +3 -3
  202. package/dist/client/assets/{monaco-editor-CDUFmvgd.js → monaco-editor-CJDC4QBK.js} +1 -1
  203. package/dist/client/assets/{monitoring-CZlFgIM7.js → monitoring-DYcXu5Mj.js} +1 -1
  204. package/dist/client/assets/{monitoring-stats-row-8WauuBlR.js → monitoring-stats-row-Cli7iIkX.js} +1 -1
  205. package/dist/client/assets/{multi-select-DlzzCHRP.js → multi-select-BqyisIqJ.js} +1 -1
  206. package/dist/client/assets/{mustache-D1772Za6.js → mustache-CrE6lvdu.js} +1 -1
  207. package/dist/client/assets/{named-rule-step-CiW-uewB.js → named-rule-step-CEwl_1DN.js} +1 -1
  208. package/dist/client/assets/{named-rule-view-c6oBP-7h.js → named-rule-view-BoEFc5k8.js} +1 -1
  209. package/dist/client/assets/{new-project-dialog-DCobxduv.js → new-project-dialog-c_nA0JdS.js} +1 -1
  210. package/dist/client/assets/{new-project-store-DMdsfD6k.js → new-project-store-BleHuEEO.js} +1 -1
  211. package/dist/client/assets/{oauth-callback-ai-provider-AHHY1FKA.js → oauth-callback-ai-provider-BFfa7qWJ.js} +1 -1
  212. package/dist/client/assets/{oauth-callback-VzV-8CV_.js → oauth-callback-wNBW4WEA.js} +1 -1
  213. package/dist/client/assets/{oauth-consent-DbMqZt9i.js → oauth-consent-kpGyE2zi.js} +1 -1
  214. package/dist/client/assets/{onboarding-ax89gpqv.js → onboarding-BPFOqXcC.js} +1 -1
  215. package/dist/client/assets/{openai-conversation-CDmIq2kF.js → openai-conversation-Dm7kvD4P.js} +1 -1
  216. package/dist/client/assets/{optimistic-project-sidebar-views-COrJWaog.js → optimistic-project-sidebar-views-BQcJxY2K.js} +1 -1
  217. package/dist/client/assets/{order-monitor-day-BnVK9Ah0.js → order-monitor-day-DESWNets.js} +1 -1
  218. package/dist/client/assets/{organization-choice-CRwFnkUP.js → organization-choice-BsVXjyhR.js} +1 -1
  219. package/dist/client/assets/{orgs-B6C73JF3.js → orgs-D27MiLEE.js} +1 -1
  220. package/dist/client/assets/{own-accounts-section-C_HhR832.js → own-accounts-section-BtZ4QeAr.js} +1 -1
  221. package/dist/client/assets/{pair-BM_IemBe.js → pair-TAuxLb5B.js} +1 -1
  222. package/dist/client/assets/{parse-sections-BBmKlmTK.js → parse-sections-92qm6FNu.js} +2 -2
  223. package/dist/client/assets/plan-D3G368nu.js +1 -0
  224. package/dist/client/assets/{plan-ladder-BXpvk7Fi.js → plan-ladder-BIydkTrx.js} +1 -1
  225. package/dist/client/assets/{plan-page-C9fTwCkQ.js → plan-page-BubZrCqO.js} +1 -1
  226. package/dist/client/assets/{plan-usage-card-CVHfxFDL.js → plan-usage-card-DNq7yIH3.js} +1 -1
  227. package/dist/client/assets/{popover-DAX4UVcw.js → popover-79_XdwPa.js} +1 -1
  228. package/dist/client/assets/{post-calendar-h8wLR1lE.js → post-calendar-C5noorDo.js} +1 -1
  229. package/dist/client/assets/post-editor-BaexJbEI.js +2 -0
  230. package/dist/client/assets/{preview-content-Dzu--ezE.js → preview-content-BcNa9Pqg.js} +1 -1
  231. package/dist/client/assets/{preview-dialog-CuifpLHp.js → preview-dialog-aecky9jU.js} +1 -1
  232. package/dist/client/assets/{preview-panel-BX-CWIf2.js → preview-panel-o3OG-ChG.js} +1 -1
  233. package/dist/client/assets/{preview-tab-BXTC4uZ3.js → preview-tab-D-mSi8g6.js} +3 -3
  234. package/dist/client/assets/{primitives-DfO68oeq.js → primitives-BKDX7uVL.js} +1 -1
  235. package/dist/client/assets/{product-picker-dialog-DxwgZtTm.js → product-picker-dialog-Dz7KhnLI.js} +1 -1
  236. package/dist/client/assets/{profile-BYeC90kh.js → profile-CeRdcgYJ.js} +1 -1
  237. package/dist/client/assets/{project-app-view-D8b_sBWr.js → project-app-view-CFWsUNZP.js} +1 -1
  238. package/dist/client/assets/{project-apps-X3gar6bk.js → project-apps-C4npTaJC.js} +1 -1
  239. package/dist/client/assets/{project-icon-Dp7ZaT9L.js → project-icon-uccKGY0J.js} +1 -1
  240. package/dist/client/assets/{project-index-DcziWicz.js → project-index-Cs_u4cUO.js} +1 -1
  241. package/dist/client/assets/project-reports-BgfXlJKG.js +1 -0
  242. package/dist/client/assets/project-tasks-PqGrMvTf.js +1 -0
  243. package/dist/client/assets/{projects-DjJhykXG.js → projects-DTOK8QNl.js} +1 -1
  244. package/dist/client/assets/{projects-empty-state-DxkD_pQO.js → projects-empty-state-BzEx9wSm.js} +1 -1
  245. package/dist/client/assets/{prompts-CTPqPQuy.js → prompts-HUob4QMN.js} +1 -1
  246. package/dist/client/assets/record-editor-Cfc7lE3W.js +1 -0
  247. package/dist/client/assets/{redirect-editor-NY6BxUAG.js → redirect-editor-BqPgSEoR.js} +1 -1
  248. package/dist/client/assets/reports-27XnI8FT.js +1 -0
  249. package/dist/client/assets/{reports-CMA5fueI.js → reports-_0A_EKdr.js} +1 -1
  250. package/dist/client/assets/{reports-onboarding-DSyA9ZH8.js → reports-onboarding-BMXd4Y_i.js} +1 -1
  251. package/dist/client/assets/{reports-tab-_D4SqVjK.js → reports-tab-BsoWfODk.js} +2 -2
  252. package/dist/client/assets/{repositories-C7EimcZv.js → repositories-DGfcPu--.js} +1 -1
  253. package/dist/client/assets/repositories-ZmUEP2Dl.js +1 -0
  254. package/dist/client/assets/{repository-binding-Cxtw7__X.js → repository-binding-BDyrRBUc.js} +1 -1
  255. package/dist/client/assets/{repository-picker-Bjq9Gq0C.js → repository-picker-DfjhWc-J.js} +1 -1
  256. package/dist/client/assets/{require-capability-Cf4tdfID.js → require-capability-BKVj-uvu.js} +1 -1
  257. package/dist/client/assets/{required-auth-layout-ChaXjU_p.js → required-auth-layout-B_m6lsWz.js} +1 -1
  258. package/dist/client/assets/{reset-password-CdSys6xr.js → reset-password-Bx00RuU6.js} +1 -1
  259. package/dist/client/assets/{resizable-DbC6YHjE.js → resizable-Ve1whvEx.js} +1 -1
  260. package/dist/client/assets/{resolve-tab-icon-B2Eoh0dc.js → resolve-tab-icon-DCNDXGrB.js} +1 -1
  261. package/dist/client/assets/{review-settings-B7AnctqS.js → review-settings-C6tblSu5.js} +1 -1
  262. package/dist/client/assets/{role-color-fnshflgn.js → role-color-DwE1tdBR.js} +1 -1
  263. package/dist/client/assets/{roles-CuiB0-5P.js → roles-C_CISioM.js} +1 -1
  264. package/dist/client/assets/route-C3U_AJJn.js +1 -0
  265. package/dist/client/assets/{route-BCBSysaN.js → route-D4lsDGNx.js} +1 -1
  266. package/dist/client/assets/{route-BHR712ec.js → route-DM277Rmm.js} +1 -1
  267. package/dist/client/assets/{route-page-header--Z4tnJsx.js → route-page-header-3X-p6kw8.js} +1 -1
  268. package/dist/client/assets/{sandbox-git-api-C1PcDxF4.js → sandbox-git-api-nDdEITCe.js} +1 -1
  269. package/dist/client/assets/{sandbox-lifecycle-context-BXPcxNgX.js → sandbox-lifecycle-context-CFCpYpA0.js} +1 -1
  270. package/dist/client/assets/{save-status-DfjczLNO.js → save-status-D3n7mGOS.js} +1 -1
  271. package/dist/client/assets/{schema-c0z3WXBE.js → schema-86eZEJ7_.js} +1 -1
  272. package/dist/client/assets/{schema-CENv2aVJ.js → schema-CoO301Q4.js} +1 -1
  273. package/dist/client/assets/{scroll-area-Dz5gTav2.js → scroll-area-D6PdHpbd.js} +1 -1
  274. package/dist/client/assets/{search-input-CF9v-W5_.js → search-input-BEUNDtgN.js} +1 -1
  275. package/dist/client/assets/{search-toggle-CfPFtBzs.js → search-toggle-Cx3yBnM8.js} +1 -1
  276. package/dist/client/assets/{secret-picker-MDKKtqKl.js → secret-picker-CasdB5lB.js} +1 -1
  277. package/dist/client/assets/{secrets-cVqtN0h2.js → secrets-Dq8SBN86.js} +1 -1
  278. package/dist/client/assets/{section-array-field-Cwe4uEIF.js → section-array-field-W0aSlPD_.js} +1 -1
  279. package/dist/client/assets/{sections-CE_ZxUkL.js → sections-DJ9HVFG0.js} +1 -1
  280. package/dist/client/assets/{sections-editor-BTcXib2t.js → sections-editor-BRzVKSC5.js} +1 -1
  281. package/dist/client/assets/{select-model-DTtc7Byk.js → select-model-DNm7LyBz.js} +1 -1
  282. package/dist/client/assets/{select-DXRCrWOv.js → select-zhrCrgqB.js} +1 -1
  283. package/dist/client/assets/{seo-editor-DcXBwvKf.js → seo-editor-DZ2XEZir.js} +1 -1
  284. package/dist/client/assets/{separator-DMeJ40Py.js → separator-BFmqeaIA.js} +1 -1
  285. package/dist/client/assets/{session-runtime-CzCcXzCd.js → session-runtime-Dw11sqLh.js} +1 -1
  286. package/dist/client/assets/settings-tab-Dqz530k3.js +1 -0
  287. package/dist/client/assets/{sheet-Bj9po_dr.js → sheet-aaWIbSg-.js} +1 -1
  288. package/dist/client/assets/{shell-layout-CidYb71I.js → shell-layout-DY3i-TdN.js} +1 -1
  289. package/dist/client/assets/{site-draft-actions-BRoeP8P1.js → site-draft-actions-DLvbd44f.js} +1 -1
  290. package/dist/client/assets/{site-draft-view-BBOEabzM.js → site-draft-view-DucrCW6m.js} +1 -1
  291. package/dist/client/assets/site-editor-Bfim5DtN.js +1 -0
  292. package/dist/client/assets/{site-editor-toast-DdX2S2iP.js → site-editor-toast-BN4M3xX3.js} +1 -1
  293. package/dist/client/assets/{skills-rn3vnzoJ.js → skills-CeLFiO2q.js} +1 -1
  294. package/dist/client/assets/{slider-Bl1DQvTN.js → slider-Bs34WpSJ.js} +1 -1
  295. package/dist/client/assets/{sortable.esm-DPUvyVgz.js → sortable.esm-B2VMxW3M.js} +1 -1
  296. package/dist/client/assets/{sso-CW55fB88.js → sso-D_WahN_J.js} +1 -1
  297. package/dist/client/assets/{suggestion-BcaAH77j.js → suggestion-zc06s98K.js} +1 -1
  298. package/dist/client/assets/{super-agent-icon-Bu7Hd3UO.js → super-agent-icon-UarcU3IQ.js} +1 -1
  299. package/dist/client/assets/{switch-DPcEaQjC.js → switch-01_uWT1h.js} +1 -1
  300. package/dist/client/assets/{synced-repos-CKmEVjR_.js → synced-repos-DBQkxqEP.js} +1 -1
  301. package/dist/client/assets/{tab-icon-glyph-CrdoHb5a.js → tab-icon-glyph-8Etgs1Nz.js} +1 -1
  302. package/dist/client/assets/{table-BUEd8HXj.js → table-0DoC-qFt.js} +1 -1
  303. package/dist/client/assets/{tabs-BsPo689s.js → tabs-BdZks4yO.js} +1 -1
  304. package/dist/client/assets/{task-board-6jjKwApS.js → task-board-PqfZoEoC.js} +1 -1
  305. package/dist/client/assets/{task-key-Dz9RL1aI.js → task-key-BI8KFWpV.js} +1 -1
  306. package/dist/client/assets/{task-route-CC1eGzrs.js → task-route-mjTxhmAU.js} +1 -1
  307. package/dist/client/assets/{task-status-DNuzWoZM.js → task-status-C3BAI30v.js} +1 -1
  308. package/dist/client/assets/{taskboard-analytics-DDqe9lVM.js → taskboard-analytics-CcpVNWT1.js} +1 -1
  309. package/dist/client/assets/tasks-BI6TiZug.js +1 -0
  310. package/dist/client/assets/{tasks-Cr_MFryu.js → tasks-DgRlt9Jm.js} +1 -1
  311. package/dist/client/assets/{textarea-Bs6mZYew.js → textarea-DsxuKz50.js} +1 -1
  312. package/dist/client/assets/{thread-analytics-D40srXtR.js → thread-analytics-DRdLB3rD.js} +1 -1
  313. package/dist/client/assets/{thread-button-DbXruDUJ.js → thread-button-BuHwQPiF.js} +1 -1
  314. package/dist/client/assets/{thread-intent-rSsi3kJm.js → thread-intent-2OsQpA1Q.js} +1 -1
  315. package/dist/client/assets/{thread-route-Iay6zzQH.js → thread-route-BbYo9_vx.js} +1 -1
  316. package/dist/client/assets/{thread-route-BGvUcmOf.js → thread-route-BtRW4s3r.js} +1 -1
  317. package/dist/client/assets/{thread-sheet-body-ClOY6OwF.js → thread-sheet-body-BkqxKCqe.js} +1 -1
  318. package/dist/client/assets/{time-range-picker-bWMPD9cD.js → time-range-picker-D7HIO7EK.js} +1 -1
  319. package/dist/client/assets/{toggle-group-Diweh86c.js → toggle-group-BpIFjDHl.js} +1 -1
  320. package/dist/client/assets/{tool-set-selector-Bf5EzVA7.js → tool-set-selector-zbFq0Xvb.js} +1 -1
  321. package/dist/client/assets/{toolbar-icon-button-UTqODJtb.js → toolbar-icon-button-BAq0ElpZ.js} +1 -1
  322. package/dist/client/assets/{tooltip-ddzAdkdR.js → tooltip-HND_TgPd.js} +1 -1
  323. package/dist/client/assets/{tooltipContext-DJWVbtf1.js → tooltipContext-PdbLbHCR.js} +1 -1
  324. package/dist/client/assets/{track-I3ijZbSP.js → track-DIv7pHOu.js} +1 -1
  325. package/dist/client/assets/{types-3Ueu7MTE.js → types-DymRLI8-.js} +1 -1
  326. package/dist/client/assets/{url-slug-CGdGNrQ9.js → url-slug-DYzDy-dR.js} +1 -1
  327. package/dist/client/assets/{usage-stats-DS4znXgN.js → usage-stats-DALmlIcd.js} +1 -1
  328. package/dist/client/assets/{use-ai-providers-DeJZuA0q.js → use-ai-providers-BMlF0hSq.js} +1 -1
  329. package/dist/client/assets/{use-api-keys-Ba74bIox.js → use-api-keys-CVQVRRkU.js} +1 -1
  330. package/dist/client/assets/{use-apply-named-rule-CVWe7Mx1.js → use-apply-named-rule-CektKPe6.js} +1 -1
  331. package/dist/client/assets/use-ask-in-chat-DD6s3zya.js +1 -0
  332. package/dist/client/assets/{use-automations-BKSQtoLX.js → use-automations-FuX1dAVU.js} +1 -1
  333. package/dist/client/assets/{use-autosave-DqFoEMt7.js → use-autosave-vfe7XqKP.js} +1 -1
  334. package/dist/client/assets/use-blocks-v8-project-CF7kZxUK.js +1 -0
  335. package/dist/client/assets/use-blog-view-Cvz2Lp59.js +1 -0
  336. package/dist/client/assets/{use-chat-layout-state-RbyZQ3kf.js → use-chat-layout-state-CKyp6Oet.js} +1 -1
  337. package/dist/client/assets/{use-cms-publish-actions-rtaDCYBp.js → use-cms-publish-actions-B-1l0GDJ.js} +1 -1
  338. package/dist/client/assets/{use-connect-companion-7sFr84Xl.js → use-connect-companion-fbYHadQP.js} +1 -1
  339. package/dist/client/assets/{use-connection-DJtAnIHe.js → use-connection-CiM4uZ3a.js} +1 -1
  340. package/dist/client/assets/{use-content-sync-B45bnUth.js → use-content-sync-C--sM12M.js} +1 -1
  341. package/dist/client/assets/{use-copy-CcMqX5Mc.js → use-copy-Dedn-4IX.js} +1 -1
  342. package/dist/client/assets/{use-current-view-B3Oq9mLH.js → use-current-view-tPLkwHsl.js} +1 -1
  343. package/dist/client/assets/{use-date-fns-locale-BlEevBWu.js → use-date-fns-locale-D6ALWiAl.js} +1 -1
  344. package/dist/client/assets/{use-debounced-autosave-Cb4kdMSC.js → use-debounced-autosave-CYF6NqDU.js} +1 -1
  345. package/dist/client/assets/{use-debounced-value-6WtU6EGD.js → use-debounced-value-DAPc0Mfl.js} +1 -1
  346. package/dist/client/assets/{use-deco-credits-asWFZ8FZ.js → use-deco-credits-DhHgt6HY.js} +1 -1
  347. package/dist/client/assets/{use-decopilot-events-BfKY6vx0.js → use-decopilot-events-X-K8qIMF.js} +1 -1
  348. package/dist/client/assets/{use-delete-block-eg-N7BxA.js → use-delete-block-CWhysPJ4.js} +1 -1
  349. package/dist/client/assets/{use-delete-connection-2m27wa7I.js → use-delete-connection-kgOdPsaP.js} +1 -1
  350. package/dist/client/assets/{use-deployment-admin-rUW-u--N.js → use-deployment-admin-CHOjZEld.js} +1 -1
  351. package/dist/client/assets/{use-entitlements-CRw06zNb.js → use-entitlements-D5dWVjq_.js} +1 -1
  352. package/dist/client/assets/{use-fast-preview-draft-url-Du0r3hj1.js → use-fast-preview-draft-url-BeaIqstt.js} +1 -1
  353. package/dist/client/assets/{use-file-configs-D5DRgbYj.js → use-file-configs-C6XdwGoe.js} +1 -1
  354. package/dist/client/assets/{use-id-selection-1D2rFbli.js → use-id-selection-D01aVLAw.js} +1 -1
  355. package/dist/client/assets/{use-in-settings-0_m9Ie8M.js → use-in-settings-B2MRE7iT.js} +1 -1
  356. package/dist/client/assets/{use-inbox-feed-K7pvvTG0.js → use-inbox-feed-ztspKjRq.js} +1 -1
  357. package/dist/client/assets/{use-infinite-scroll-5IcqHhSV.js → use-infinite-scroll-Bi_k3Gcy.js} +1 -1
  358. package/dist/client/assets/{use-join-requests-DZUyR00q.js → use-join-requests-VeJNF7XA.js} +1 -1
  359. package/dist/client/assets/{use-main-panel-tabs-F1ZExQDO.js → use-main-panel-tabs-CCW5A_N2.js} +1 -1
  360. package/dist/client/assets/{use-mcp-auth-status-BmeCbDCs.js → use-mcp-auth-status-DSTCezPw.js} +1 -1
  361. package/dist/client/assets/{use-mcp-client-2GA3JYr0.js → use-mcp-client-AIQeCUo8.js} +1 -1
  362. package/dist/client/assets/{use-mcp-prompts-Ckb81_e4.js → use-mcp-prompts-ISKdgtkd.js} +1 -1
  363. package/dist/client/assets/{use-mcp-tools-GTXWF1lU.js → use-mcp-tools-Cn2oVNto.js} +1 -1
  364. package/dist/client/assets/{use-mobile-BWNIpIib.js → use-mobile-CiBMnpjS.js} +1 -1
  365. package/dist/client/assets/{use-move-blocks-CRGGjB1w.js → use-move-blocks-CN5aaai1.js} +1 -1
  366. package/dist/client/assets/{use-navigate-to-agent-CXGbGghX.js → use-navigate-to-agent-CWNDi6bM.js} +1 -1
  367. package/dist/client/assets/{use-never-published-DVxsFUrB.js → use-never-published-wEmPV0aB.js} +1 -1
  368. package/dist/client/assets/{use-org-fs-0g7bis36.js → use-org-fs-Bu5_TEd6.js} +1 -1
  369. package/dist/client/assets/{use-org-notice-DdZVdYZq.js → use-org-notice-BcWF24cv.js} +1 -1
  370. package/dist/client/assets/{use-org-repo-syncs-C4HrQQ1J.js → use-org-repo-syncs-CcTpFCYW.js} +1 -1
  371. package/dist/client/assets/{use-org-sso-8ZcAsXeH.js → use-org-sso-BeSMMelh.js} +1 -1
  372. package/dist/client/assets/{use-organization-settings-W_UL6Dsk.js → use-organization-settings-Dj4I8LEy.js} +1 -1
  373. package/dist/client/assets/{use-panel-navigate-DomAZd7k.js → use-panel-navigate-BRi2V695.js} +1 -1
  374. package/dist/client/assets/{use-project-native-view-presence-C9055geU.js → use-project-native-view-presence-DHNWHEww.js} +1 -1
  375. package/dist/client/assets/{use-project-scope-AKiXHlRB.js → use-project-scope-YMiZEq1D.js} +1 -1
  376. package/dist/client/assets/{use-recent-apps-CCw03Z3Z.js → use-recent-apps-CuudV9w9.js} +1 -1
  377. package/dist/client/assets/{use-reports-diagnostic-CVsWts3E.js → use-reports-diagnostic-B3a_N7Wf.js} +1 -1
  378. package/dist/client/assets/{use-sandbox-events-BBkst5Ou.js → use-sandbox-events-JB32ZN6M.js} +1 -1
  379. package/dist/client/assets/{use-secrets-D_pl7_Dm.js → use-secrets-CuhqLaNA.js} +1 -1
  380. package/dist/client/assets/{use-section-preview-base-KxnYbN68.js → use-section-preview-base-uz2sa-nS.js} +1 -1
  381. package/dist/client/assets/{use-sidebar-collapsed-CUSRdzNV.js → use-sidebar-collapsed-lZ2rUfAS.js} +1 -1
  382. package/dist/client/assets/{use-tags-D8mm3Zk4.js → use-tags-DwN2OS6c.js} +1 -1
  383. package/dist/client/assets/{use-task-board-analytics-B4UFHV-E.js → use-task-board-analytics-BzFQHjAs.js} +1 -1
  384. package/dist/client/assets/{use-task-board-item-prs-BUUwxVat.js → use-task-board-item-prs-BRGK03jV.js} +1 -1
  385. package/dist/client/assets/{use-task-board-items-CHGGGJoc.js → use-task-board-items-BTS9oZzb.js} +1 -1
  386. package/dist/client/assets/{use-task-board-prompts-D47xAPgf.js → use-task-board-prompts-CtR1KKDj.js} +1 -1
  387. package/dist/client/assets/{use-task-metadata-Bwuo7BMy.js → use-task-metadata-6_K5yX5W.js} +1 -1
  388. package/dist/client/assets/{use-thread-outputs-DWO0K330.js → use-thread-outputs-CXI48sts.js} +1 -1
  389. package/dist/client/assets/{use-view-draft-kind-B6ZbhhVP.js → use-view-draft-kind-B41v78Fl.js} +1 -1
  390. package/dist/client/assets/{use-voice-input-DD19u7J5.js → use-voice-input-Do6cF9BB.js} +1 -1
  391. package/dist/client/assets/useInfiniteQuery-DZqVvPHq.js +1 -0
  392. package/dist/client/assets/{useQueries-DC16AkCX.js → useQueries-BIjYceUI.js} +1 -1
  393. package/dist/client/assets/useSuspenseInfiniteQuery-Do3ddSL8.js +1 -0
  394. package/dist/client/assets/{users-BWVZzazY.js → users-BUPOTLUx.js} +1 -1
  395. package/dist/client/assets/{utils-CgvqLMPd.js → utils-Dj9siiW4.js} +1 -1
  396. package/dist/client/assets/{variant-calendar-BsURWDDY.js → variant-calendar-D3SU5v6l.js} +1 -1
  397. package/dist/client/assets/{variant-matcher-override-cOPSE1XO.js → variant-matcher-override-DLq2zfDc.js} +1 -1
  398. package/dist/client/assets/{view-header-DJnm_qjO.js → view-header-Dgb3xLSr.js} +1 -1
  399. package/dist/client/assets/{virtual-mcp-BbGNYK_v.js → virtual-mcp-DNH0EtUA.js} +1 -1
  400. package/dist/client/assets/{watch-sse-pool-CCL19_hQ.js → watch-sse-pool-yaR7f98X.js} +1 -1
  401. package/dist/client/index.html +1 -1
  402. package/dist/server/server.js +1 -1
  403. package/package.json +1 -1
  404. package/dist/client/assets/agent-app-42Ddv_wD.js +0 -1
  405. package/dist/client/assets/agent-deck-CUHtE8yw.js +0 -1
  406. package/dist/client/assets/agent-experiments-BErFwNsi.js +0 -1
  407. package/dist/client/assets/agent-file-C9cLBrX6.js +0 -1
  408. package/dist/client/assets/agent-library-5k969p_q.js +0 -1
  409. package/dist/client/assets/agent-library-file-Bh10DaAz.js +0 -1
  410. package/dist/client/assets/agent-overview-CNB4WGny.js +0 -1
  411. package/dist/client/assets/agent-settings-D-b8iDX2.js +0 -1
  412. package/dist/client/assets/agent-site-editor-code-rjgbndHa.js +0 -2
  413. package/dist/client/assets/agent-site-editor-content-DZNX_5o_.js +0 -1
  414. package/dist/client/assets/agent-site-editor-preview-DSBZc-f3.js +0 -1
  415. package/dist/client/assets/agent-view-BERAkvOe.js +0 -1
  416. package/dist/client/assets/api-keys-BJkSoBEK.js +0 -1
  417. package/dist/client/assets/editor-classes-C3iWtRWI.js +0 -1
  418. package/dist/client/assets/library-55AwsyF5.js +0 -1
  419. package/dist/client/assets/plan-gt4Fygl0.js +0 -1
  420. package/dist/client/assets/post-editor-DveUCAju.js +0 -2
  421. package/dist/client/assets/project-reports-BBbxgvrY.js +0 -1
  422. package/dist/client/assets/project-tasks-C3W9wGad.js +0 -1
  423. package/dist/client/assets/record-editor-BmtdVay6.js +0 -1
  424. package/dist/client/assets/reports-DacwdMRs.js +0 -1
  425. package/dist/client/assets/repositories-BxFca_8T.js +0 -1
  426. package/dist/client/assets/route-Uynax0ej.js +0 -1
  427. package/dist/client/assets/settings-tab-sJxfCtRG.js +0 -1
  428. package/dist/client/assets/site-editor-CGa5Pnwo.js +0 -1
  429. package/dist/client/assets/tasks-BWSrdTCZ.js +0 -1
  430. package/dist/client/assets/use-ask-in-chat-CcJ7qBgl.js +0 -1
  431. package/dist/client/assets/use-blocks-v8-project-BSd7NF50.js +0 -1
  432. package/dist/client/assets/use-blog-view-w-0_WS9c.js +0 -1
  433. package/dist/client/assets/useInfiniteQuery-Cewdyf6m.js +0 -1
  434. package/dist/client/assets/useSuspenseInfiniteQuery-BUAyRYtS.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-D5g_ztYq.js","assets/auth-entry-BBQRIIw6.js","assets/Fingerprint04-DYu2trr5.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-BknvLkhe.js","assets/legacy-admin-welcome-dialog-D93lYLDp.js","assets/drawer-DB8NnEGw.js","assets/use-mobile-BWNIpIib.js","assets/cli-auth-success-8s-fzwHw.js","assets/oauth-callback-VzV-8CV_.js","assets/mcp-oauth-BPfeOxs9.js","assets/auth-ljl_IgPN.js","assets/oauth-consent-DbMqZt9i.js","assets/layout-D2pfAJPo.js","assets/required-auth-layout-ChaXjU_p.js","assets/use-deployment-admin-rUW-u--N.js","assets/users-BWVZzazY.js","assets/collection-table-wrapper-FdvHf9jQ.js","assets/table-BUEd8HXj.js","assets/ArrowUp-D_S-rNcV.js","assets/empty-state-CaLsechF.js","assets/search-input-CF9v-W5_.js","assets/SearchMd-oUneVOtx.js","assets/badge-CcLprL9P.js","assets/use-debounced-value-6WtU6EGD.js","assets/admin-fetch-BhTJlAsX.js","assets/orgs-B6C73JF3.js","assets/label-CAxblce3.js","assets/select-DXRCrWOv.js","assets/index-BdQq_4o_.js","assets/index-BCHsOhCh.js","assets/ChevronDown-DtBQPgDr.js","assets/ChevronUp-rDqeU0sa.js","assets/switch-DPcEaQjC.js","assets/textarea-Bs6mZYew.js","assets/roles-DW32thi2.js","assets/schema-CENv2aVJ.js","assets/prompts-CTPqPQuy.js","assets/shell-layout-CidYb71I.js","assets/Globe04-BdGaHZ3d.js","assets/UserSquare-DMtJtFsc.js","assets/agent-icon-usffbRRI.js","assets/AlertCircle-C5IcBKVv.js","assets/UserCheck01-BQk8M2vE.js","assets/Tool01-a2zo_Nh2.js","assets/ArrowLeft-BZRa3Prb.js","assets/ArrowRight-CO7t3_mZ.js","assets/BookOpen01-C-0ZZ7xz.js","assets/CheckCircle-B3xnyufs.js","assets/ChevronSelectorVertical-BJY9ZtnD.js","assets/LinkBroken01-CIEsHvum.js","assets/CreditCard01-VS59ZHH7.js","assets/File02-CdVrg4Ze.js","assets/MessageCircle01-B60_WqfQ.js","assets/SwitchHorizontal01-DptIGy5I.js","assets/Eye-D2SrYnw3.js","assets/Image01-AcutHfxy.js","assets/Key01-BGw6Mss-.js","assets/LayoutLeft-1Z0D80D0.js","assets/Minus-B0iH16cD.js","assets/Monitor01-BVsLU-CT.js","assets/Sun-B_Ztmr7U.js","assets/Play-BmnNNnuq.js","assets/Plus-CxjsXIQx.js","assets/ShoppingBag01-DgjlfDxN.js","assets/Trash01-DdWfB3p_.js","assets/Upload01-DDZaKror.js","assets/Users01-B7IyHIv3.js","assets/XClose-B9QBg8Hw.js","assets/Zap-DvCvOF0f.js","assets/use-org-notice-DdZVdYZq.js","assets/thread-intent-rSsi3kJm.js","assets/use-mcp-client-2GA3JYr0.js","assets/watch-sse-pool-CCL19_hQ.js","assets/task-board-6jjKwApS.js","assets/session-runtime-CzCcXzCd.js","assets/use-project-scope-AKiXHlRB.js","assets/repository-binding-Cxtw7__X.js","assets/use-panel-navigate-DomAZd7k.js","assets/thread-route-Iay6zzQH.js","assets/command-D2i9KgXa.js","assets/index-cNtCmRrS.js","assets/integration-icon-D6d1THcW.js","assets/project-icon-Dp7ZaT9L.js","assets/use-navigate-to-agent-CXGbGghX.js","assets/new-project-dialog-DCobxduv.js","assets/repository-picker-Bjq9Gq0C.js","assets/tooltip-ddzAdkdR.js","assets/github-icon-DYeDHhFE.js","assets/useInfiniteQuery-Cewdyf6m.js","assets/infiniteQueryObserver-WCDClAoA.js","assets/collection-search-3nPQayOE.js","assets/use-organization-settings-W_UL6Dsk.js","assets/new-project-store-DMdsfD6k.js","assets/use-view-draft-kind-B6ZbhhVP.js","assets/use-blog-view-w-0_WS9c.js","assets/use-org-sso-8ZcAsXeH.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-ax89gpqv.js","assets/organization-choice-CRwFnkUP.js","assets/reports-onboarding-DSyA9ZH8.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-CLND_mWF.js","assets/form-MAQ0_mTx.js","assets/companion-mcps-section-BV9NrKyl.js","assets/use-connect-companion-7sFr84Xl.js","assets/companions-core-DhUD88pR.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-C58hYmYC.js","assets/icon-button-DjKsXZXx.js","assets/useQueries-DC16AkCX.js","assets/authenticate-and-persist-oauth-Bs5ASyev.js","assets/mcp-oauth-BVidCgdK.js","assets/track-I3ijZbSP.js","assets/extract-connection-data-ChU2qvHl.js","assets/connection-BsOFHbE4.js","assets/url-slug-CGdGNrQ9.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-D9QkB389.js","assets/site-editor-CGa5Pnwo.js","assets/chat-context-DvLeIzFQ.js","assets/use-entitlements-CRw06zNb.js","assets/use-ai-providers-DeJZuA0q.js","assets/use-current-view-B3Oq9mLH.js","assets/use-in-settings-0_m9Ie8M.js","assets/use-decopilot-events-BfKY6vx0.js","assets/use-org-fs-0g7bis36.js","assets/index-DS7_d1Rd.js","assets/thread-button-DbXruDUJ.js","assets/use-sidebar-collapsed-CUSRdzNV.js","assets/sheet-Bj9po_dr.js","assets/use-chat-layout-state-RbyZQ3kf.js","assets/toolbar-icon-button-UTqODJtb.js","assets/resizable-DbC6YHjE.js","assets/route-page-header--Z4tnJsx.js","assets/index-BuW9mRX4.js","assets/task-key-Dz9RL1aI.js","assets/sortable.esm-DPUvyVgz.js","assets/context-menu-CfkjHTIG.js","assets/project-apps-X3gar6bk.js","assets/use-recent-apps-CCw03Z3Z.js","assets/feedback-BqoIMOg7.js","assets/blocks-preview-workspace-context-Cwu4UHGR.js","assets/site-editor-toast-DdX2S2iP.js","assets/content-changes-D6umA6sC.js","assets/sandbox-url-D3mC8qhT.js","assets/use-sandbox-events-BBkst5Ou.js","assets/use-blocks-v8-project-BSd7NF50.js","assets/use-voice-input-DD19u7J5.js","assets/popover-DAX4UVcw.js","assets/index-D3b-nvLF.js","assets/checkbox-Bbsio9J6.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-CgvqLMPd.js","assets/sandbox-git-api-C1PcDxF4.js","assets/preview-tab-BXTC4uZ3.js","assets/save-status-DfjczLNO.js","assets/use-never-published-DVxsFUrB.js","assets/hosted-reconcile-DGFZMqoq.js","assets/blocks-tab-states-BFYpeUrU.js","assets/tabs-BsPo689s.js","assets/active-indicator-CCMhAsc_.js","assets/use-file-configs-D5DRgbYj.js","assets/asset-utils-Bh65EkIi.js","assets/usage-stats-DS4znXgN.js","assets/utils-CVEq3hMx.js","assets/markdown-Dn5BYvjF.js","assets/use-copy-CcMqX5Mc.js","assets/gateway-client-pG1MTCXD.js","assets/toggle-group-Diweh86c.js","assets/match-site-slug-config-B47_xZCi.js","assets/sandbox-lifecycle-context-BXPcxNgX.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/frame-navigation-Bm3emgWE.js","assets/variant-matcher-override-cOPSE1XO.js","assets/section-array-field-Cwe4uEIF.js","assets/use-fast-preview-draft-url-Du0r3hj1.js","assets/parse-sections-BBmKlmTK.js","assets/held-block-view-CwEdtPs7.js","assets/calendar-DKsPNVb-.js","assets/editor-classes-C3iWtRWI.js","assets/category-tree-BkWzLfeb.js","assets/pair-BM_IemBe.js","assets/collapsible-B-3Qa12p.js","assets/use-task-board-items-CHGGGJoc.js","assets/config-Cz2t4Ozn.js","assets/task-route-CC1eGzrs.js","assets/project-index-DcziWicz.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-D5eKPqGN.js","assets/types-3Ueu7MTE.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/use-connection-DJtAnIHe.js","assets/use-mcp-prompts-Ckb81_e4.js","assets/use-thread-outputs-DWO0K330.js","assets/file-type-icon-DrEzxhRF.js","assets/named-rule-step-CiW-uewB.js","assets/slider-Bl1DQvTN.js","assets/index-JoATPvrb.js","assets/tooltipContext-DJWVbtf1.js","assets/CategoricalChart-Bti1V1bE.js","assets/index-eAr2nu-s.js","assets/combobox-BHxpMQQ6.js","assets/scroll-area-Dz5gTav2.js","assets/monaco-editor-CDUFmvgd.js","assets/editor-DVebT0ZZ.js","assets/blog-preview-url-BgP1ZGW2.js","assets/device-hint-BuUJ2y5W.js","assets/alert-BvmNXhKo.js","assets/virtual-mcp-BbGNYK_v.js","assets/app-preview-url-9Od4s8Sz.js","assets/agent-capabilities-gnOhsa2o.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-Bwuo7BMy.js","assets/content-tab-DvJgDgx9.js","assets/delete-copy-I9FZA_jS.js","assets/index-D-btmdmU.js","assets/view-header-DJnm_qjO.js","assets/use-cms-publish-actions-rtaDCYBp.js","assets/use-content-sync-B45bnUth.js","assets/use-delete-block-eg-N7BxA.js","assets/item-actions-DbjuAZ1b.js","assets/date-utils-CrvIKg-s.js","assets/empty-state-Cn1beEFv.js","assets/primitives-DfO68oeq.js","assets/use-move-blocks-CRGGjB1w.js","assets/mustache-D1772Za6.js","assets/tab-icon-glyph-CrdoHb5a.js","assets/resolve-tab-icon-B2Eoh0dc.js","assets/agent-site-editor-Czv48wVM.js","assets/site-draft-actions-BRoeP8P1.js","assets/separator-DMeJ40Py.js","assets/cms-store-drafts-BfXkPSrC.js","assets/serial-task-queue-CGOeQgpr.js","assets/index-BnW8k7YN.js","assets/input-CT96cDcm.js","assets/chat-draft-4BFbPpRf.js","assets/use-deco-credits-asWFZ8FZ.js","assets/input-oHwODrBP.js","assets/suggestion-BcaAH77j.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-Nyu1L44W.js","assets/plan-ladder-BXpvk7Fi.js","assets/add-connection-dialog-DHRN4AlC.js","assets/connection-card-tE3zrEjD.js","assets/connection-slug-CtIzZ2zc.js","assets/schema-c0z3WXBE.js","assets/connection-form-helpers-DGyCREAo.js","assets/collection-tabs-B-5zgbe0.js","assets/use-infinite-scroll-5IcqHhSV.js","assets/useSuspenseInfiniteQuery-BUAyRYtS.js","assets/input-Bwd_JSM8.css","assets/save-changes-debug-nBi-n9eV.js","assets/site-draft-view-BBOEabzM.js","assets/blog-view-gate-BqigEeda.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-CMA5fueI.js","assets/reports-Dl0n8WK0.css","assets/route-BCBSysaN.js","assets/use-inbox-feed-K7pvvTG0.js","assets/super-agent-icon-Bu7Hd3UO.js","assets/optimistic-project-sidebar-views-COrJWaog.js","assets/use-project-native-view-presence-C9055geU.js","assets/own-accounts-section-C_HhR832.js","assets/use-date-fns-locale-BlEevBWu.js","assets/daily-pulse-DCsFO1ME.js","assets/use-join-requests-DZUyR00q.js","assets/thread-route-BGvUcmOf.js","assets/use-reports-diagnostic-CVsWts3E.js","assets/connect-layout-BmKWKTCR.js","assets/route-BHR712ec.js","assets/task-status-DNuzWoZM.js","assets/use-main-panel-tabs-F1ZExQDO.js","assets/use-mcp-tools-GTXWF1lU.js","assets/legacy-main-redirect-BCdGz2kc.js","assets/preview-dialog-CuifpLHp.js","assets/preview-content-Dzu--ezE.js","assets/file-share-button-XDaD5KdK.js","assets/file-preview-de0IBQRJ.js","assets/home-BxQjITwz.js","assets/home-overview-BpQE0z1H.js","assets/connect-key-BNGUEwiG.js","assets/use-api-keys-Ba74bIox.js","assets/chart-CCUaKjCe.js","assets/CartesianChart-DCfWEjbp.js","assets/ReferenceLine-COfwL_ek.js","assets/sprints-C1z9xhcL.js","assets/projects-empty-state-DxkD_pQO.js","assets/agent-overview-CNB4WGny.js","assets/project-tasks-C3W9wGad.js","assets/mock-board-vv37mdFa.js","assets/use-task-board-analytics-B4UFHV-E.js","assets/use-task-board-prompts-D47xAPgf.js","assets/use-automations-BKSQtoLX.js","assets/search-toggle-CfPFtBzs.js","assets/use-tags-D8mm3Zk4.js","assets/index-N08IYcaA.js","assets/index-B8d3Gshb.js","assets/use-task-board-item-prs-BUUwxVat.js","assets/thread-sheet-body-ClOY6OwF.js","assets/feature-gate-BbI2poNL.js","assets/project-reports-BBbxgvrY.js","assets/reports-tab-_D4SqVjK.js","assets/project-profile-dMAv1_XF.js","assets/agent-blog-C1s1aL9T.js","assets/blog-source-gate-CEZmhZd5.js","assets/agent-view-guard-DH7o6p1h.js","assets/agent-blog-post-CDv4FfL_.js","assets/agent-site-editor-preview-DSBZc-f3.js","assets/agent-site-editor-content-DZNX_5o_.js","assets/agent-site-editor-code-rjgbndHa.js","assets/agent-automations-DXdA8yst.js","assets/automation-list-row-Bdq7_Dhd.js","assets/agent-automation-B5Rrh4U5.js","assets/select-model-DTtc7Byk.js","assets/build-improve-prompt-doc-P3f8rCv7.js","assets/use-debounced-autosave-Cb4kdMSC.js","assets/jira-icon-AY_aB_eX.js","assets/multi-select-DlzzCHRP.js","assets/automation-runs-0F8FAeok.js","assets/use-id-selection-1D2rFbli.js","assets/agent-settings-D-b8iDX2.js","assets/context-shell-Bno9WSee.js","assets/require-capability-Cf4tdfID.js","assets/access-gate-B_wXNW8_.js","assets/capability-load-error-D0DSslqz.js","assets/sections-CE_ZxUkL.js","assets/use-ask-in-chat-CcJ7qBgl.js","assets/index-CzrZrSQQ.js","assets/use-mcp-auth-status-BmeCbDCs.js","assets/secret-picker-MDKKtqKl.js","assets/use-secrets-D_pl7_Dm.js","assets/agent-library-5k969p_q.js","assets/library-tab-CJVRmuZx.js","assets/use-org-repo-syncs-C4HrQQ1J.js","assets/folder-icon-Vkg55i1f.js","assets/agent-assets-V54jktFt.js","assets/agent-releases-BreJMe6b.js","assets/agent-hosting-CaM-66SR.js","assets/settings-tab-sJxfCtRG.js","assets/agent-e2e-CLyQ5SdR.js","assets/taskboard-analytics-DDqe9lVM.js","assets/time-range-picker-bWMPD9cD.js","assets/analytics-sections-2K6Q2SWt.js","assets/AreaChart-B2H1WOGA.js","assets/agent-experiments-BErFwNsi.js","assets/experiments-tab-choice-D9M8caAG.js","assets/named-rule-view-c6oBP-7h.js","assets/use-apply-named-rule-CVWe7Mx1.js","assets/agent-calendar-CZ3xkWRZ.js","assets/agent-app-42Ddv_wD.js","assets/project-app-view-D8b_sBWr.js","assets/connect-source-dialog-DMjg5PaZ.js","assets/agent-view-BERAkvOe.js","assets/agent-file-C9cLBrX6.js","assets/agent-deck-CUHtE8yw.js","assets/agent-library-file-Bh10DaAz.js","assets/preview-panel-BX-CWIf2.js","assets/agent-connect-sources-CkMKnOID.js","assets/legacy-agents-deep-BxhffE4E.js","assets/tasks-BWSrdTCZ.js","assets/thread-analytics-D40srXtR.js","assets/reports-DacwdMRs.js","assets/library-55AwsyF5.js","assets/plan-gt4Fygl0.js","assets/plan-page-C9fTwCkQ.js","assets/plan-page-VVoBqnO4.css","assets/monitoring-CZlFgIM7.js","assets/order-monitor-day-BnVK9Ah0.js","assets/Tooltip-BUJvjg6p.js","assets/monitoring-D_tSeZWt.css","assets/agent-business-case-rAgsfx68.js","assets/discover-me98o1cI.js","assets/index-CmchXZ5k.js","assets/route-Uynax0ej.js","assets/plan-usage-card-CVHfxFDL.js","assets/index-redirect-BZ2ocOR_.js","assets/connection-detail-BQCLs1dX.js","assets/index-DOWBPeVo.js","assets/index-CX5I8d0k.js","assets/use-delete-connection-2m27wa7I.js","assets/monitoring-stats-row-8WauuBlR.js","assets/collection-detail-ByynPl98.js","assets/index-wu6FYi2a.js","assets/general-CGRDtuGl.js","assets/review-settings-B7AnctqS.js","assets/domain-settings-BWcu6JMC.js","assets/connect-CUy2b31t.js","assets/api-keys-3E2OUFN2.js","assets/tool-set-selector-Bf5EzVA7.js","assets/ai-providers-CMY5OO2Y.js","assets/infra-billing-r7uDborI.js","assets/secrets-cVqtN0h2.js","assets/api-keys-BJkSoBEK.js","assets/buckets-DjlZI89A.js","assets/repositories-BxFca_8T.js","assets/repositories-C7EimcZv.js","assets/synced-repos-CKmEVjR_.js","assets/tasks-Cr_MFryu.js","assets/projects-DjJhykXG.js","assets/members-DIKOgvUP.js","assets/collection-display-button-BaOWrVAr.js","assets/role-color-fnshflgn.js","assets/roles-CuiB0-5P.js","assets/sso-CW55fB88.js","assets/profile-BYeC90kh.js","assets/automations-CFBniQiY.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/login-ChUKcrxw.js","assets/auth-entry-DAVsWFXz.js","assets/Fingerprint04-BZEt5DHL.js","assets/backoff-CrEUbyZT.js","assets/delay-CnY5UFtP.js","assets/auth-split-layout-JUvHdZQm.js","assets/legacy-admin-welcome-dialog-bi9Ze4cY.js","assets/drawer-DawrJeEW.js","assets/use-mobile-CiBMnpjS.js","assets/cli-auth-success-CTr9TvqD.js","assets/oauth-callback-wNBW4WEA.js","assets/mcp-oauth-JacWvzc2.js","assets/auth-D1tG5tMt.js","assets/oauth-consent-kpGyE2zi.js","assets/layout-Qo2HF2_n.js","assets/required-auth-layout-B_m6lsWz.js","assets/use-deployment-admin-CHOjZEld.js","assets/users-BUPOTLUx.js","assets/collection-table-wrapper-BKIPh5iD.js","assets/table-0DoC-qFt.js","assets/ArrowUp-CCyShCPF.js","assets/empty-state-QwpItyno.js","assets/search-input-BEUNDtgN.js","assets/SearchMd-CUA_Y2Xs.js","assets/badge-BJ_vAY2f.js","assets/use-debounced-value-DAPc0Mfl.js","assets/admin-fetch-BhTJlAsX.js","assets/orgs-D27MiLEE.js","assets/label-DNz0cycQ.js","assets/select-zhrCrgqB.js","assets/index-BdQq_4o_.js","assets/index-jf5Wqn2s.js","assets/ChevronDown-BpktilMY.js","assets/ChevronUp-BHIYb2kG.js","assets/switch-01_uWT1h.js","assets/textarea-DsxuKz50.js","assets/roles-DW32thi2.js","assets/schema-CoO301Q4.js","assets/prompts-HUob4QMN.js","assets/shell-layout-DY3i-TdN.js","assets/Globe04-LZvqlcki.js","assets/UserSquare-IpNUtUwU.js","assets/agent-icon-7j0_nQ7A.js","assets/AlertCircle-o1_kumY2.js","assets/UserCheck01-D8lYRtyW.js","assets/Tool01-BjVDM-A_.js","assets/ArrowLeft-BCe632Br.js","assets/ArrowRight-DBXGzd_k.js","assets/BookOpen01-C8XO2msc.js","assets/CheckCircle-hoO2Z5VE.js","assets/ChevronSelectorVertical-oF1OMynT.js","assets/LinkBroken01-c3IryBLP.js","assets/CreditCard01-CO1cUXT4.js","assets/File02-Dt8T9Y6v.js","assets/MessageCircle01-CrpH1nuf.js","assets/SwitchHorizontal01-1PD2KqGq.js","assets/Eye-ZvUfktry.js","assets/Image01-DKuhPLPT.js","assets/Key01-CFlh25W7.js","assets/LayoutLeft-C5CdAV8y.js","assets/Minus-CUSYaIjI.js","assets/Monitor01-bNOAV-y1.js","assets/Sun-fomphnuk.js","assets/Play-BpB7P0_k.js","assets/Plus-f_lZkrQ5.js","assets/ShoppingBag01-B-hyZ0GQ.js","assets/Trash01-BIcWnfDR.js","assets/Upload01-CCzRx3xI.js","assets/Users01-B1l6VW3c.js","assets/XClose-Bx9gJXBf.js","assets/Zap-Bwv03s-s.js","assets/use-org-notice-BcWF24cv.js","assets/thread-intent-2OsQpA1Q.js","assets/use-mcp-client-AIQeCUo8.js","assets/watch-sse-pool-yaR7f98X.js","assets/task-board-PqfZoEoC.js","assets/session-runtime-Dw11sqLh.js","assets/use-project-scope-YMiZEq1D.js","assets/repository-binding-BDyrRBUc.js","assets/use-panel-navigate-BRi2V695.js","assets/thread-route-BbYo9_vx.js","assets/command-CtN7h1NI.js","assets/index--9Ncyagp.js","assets/integration-icon-jpNieIDb.js","assets/project-icon-uccKGY0J.js","assets/use-navigate-to-agent-CWNDi6bM.js","assets/new-project-dialog-c_nA0JdS.js","assets/repository-picker-DfjhWc-J.js","assets/tooltip-HND_TgPd.js","assets/github-icon-vz45cpwe.js","assets/useInfiniteQuery-DZqVvPHq.js","assets/infiniteQueryObserver-C5QTnQlG.js","assets/collection-search-Dyh_oCCh.js","assets/use-organization-settings-Dj4I8LEy.js","assets/new-project-store-BleHuEEO.js","assets/use-view-draft-kind-B41v78Fl.js","assets/use-blog-view-Cvz2Lp59.js","assets/use-org-sso-BeSMMelh.js","assets/shell-layout-CE2Eihra.css","assets/onboarding-BPFOqXcC.js","assets/organization-choice-BsVXjyhR.js","assets/reports-onboarding-BMXd4Y_i.js","assets/site-url-en5df9c-.js","assets/create-organization-dialog-dkGEglhg.js","assets/form-C1FU1mj4.js","assets/companion-mcps-section-BrdbyLXj.js","assets/use-connect-companion-fbYHadQP.js","assets/companions-core-DhUD88pR.js","assets/metadata-D72DunRR.js","assets/github-repo-scope-C58hYmYC.js","assets/icon-button-Bag7go1_.js","assets/useQueries-BIjYceUI.js","assets/authenticate-and-persist-oauth-BDAuxtOP.js","assets/mcp-oauth-DLQow66R.js","assets/track-DIv7pHOu.js","assets/extract-connection-data-BElr0HYN.js","assets/connection-7fwO37ZJ.js","assets/url-slug-DYzDy-dR.js","assets/self-tool-result-8OxPN9Nm.js","assets/site-error-Da6iapvu.js","assets/choose-editor-EfVI0Ld9.js","assets/site-editor-Bfim5DtN.js","assets/chat-context-BYkfFziV.js","assets/use-entitlements-D5dWVjq_.js","assets/use-ai-providers-BMlF0hSq.js","assets/use-current-view-tPLkwHsl.js","assets/use-in-settings-B2MRE7iT.js","assets/use-decopilot-events-X-K8qIMF.js","assets/use-org-fs-Bu5_TEd6.js","assets/index-1MznTcP1.js","assets/thread-button-BuHwQPiF.js","assets/use-sidebar-collapsed-lZ2rUfAS.js","assets/sheet-aaWIbSg-.js","assets/use-chat-layout-state-CKyp6Oet.js","assets/toolbar-icon-button-BAq0ElpZ.js","assets/resizable-Ve1whvEx.js","assets/route-page-header-3X-p6kw8.js","assets/index-DAaGemAZ.js","assets/task-key-BI8KFWpV.js","assets/sortable.esm-B2VMxW3M.js","assets/context-menu-Br_sdN4o.js","assets/project-apps-C4npTaJC.js","assets/use-recent-apps-CuudV9w9.js","assets/feedback-BqoIMOg7.js","assets/blocks-preview-workspace-context-CNHnyxyL.js","assets/site-editor-toast-BN4M3xX3.js","assets/content-changes-Dt3OSrLz.js","assets/sandbox-url-D3mC8qhT.js","assets/use-sandbox-events-JB32ZN6M.js","assets/use-blocks-v8-project-CF7kZxUK.js","assets/use-voice-input-Do6cF9BB.js","assets/popover-79_XdwPa.js","assets/index-UsVmWsgU.js","assets/checkbox-BTgQTIJU.js","assets/ai-providers-logos-DD3qZ33J.js","assets/openai-compatible-presets-BKGfVqEx.js","assets/utils-Dj9siiW4.js","assets/sandbox-git-api-nDdEITCe.js","assets/preview-tab-D-mSi8g6.js","assets/save-status-D3n7mGOS.js","assets/use-never-published-wEmPV0aB.js","assets/hosted-reconcile-CVtSUd_j.js","assets/blocks-tab-states-BY5eWec9.js","assets/tabs-BdZks4yO.js","assets/active-indicator-CCMhAsc_.js","assets/use-file-configs-C6XdwGoe.js","assets/asset-utils-6fMjg_mO.js","assets/usage-stats-DALmlIcd.js","assets/utils-CVEq3hMx.js","assets/markdown-BqC1oNCt.js","assets/use-copy-Dedn-4IX.js","assets/gateway-client-B93rfdiw.js","assets/toggle-group-BpIFjDHl.js","assets/match-site-slug-config-B47_xZCi.js","assets/sandbox-lifecycle-context-CFCpYpA0.js","assets/sandbox-start-errors-BK_aDCyt.js","assets/frame-navigation-hCq1R0Jk.js","assets/variant-matcher-override-DLq2zfDc.js","assets/section-array-field-W0aSlPD_.js","assets/use-fast-preview-draft-url-BeaIqstt.js","assets/parse-sections-92qm6FNu.js","assets/held-block-view-BO2jFnOK.js","assets/calendar-DpLohaQP.js","assets/editor-classes-COX4-736.js","assets/category-tree-bd0q56_K.js","assets/pair-TAuxLb5B.js","assets/collapsible-BVCmhyXp.js","assets/use-task-board-items-BTS9oZzb.js","assets/config-DQUAtXro.js","assets/task-route-mjTxhmAU.js","assets/project-index-Cs_u4cUO.js","assets/content-blocks-o63cs2vh.js","assets/mcp-app-renderer-Dv_H6D39.js","assets/types-DymRLI8-.js","assets/omit-server-managed-metadata-L5IhjRZB.js","assets/use-connection-CiM4uZ3a.js","assets/use-mcp-prompts-ISKdgtkd.js","assets/use-thread-outputs-CXI48sts.js","assets/file-type-icon-Dso_AgRG.js","assets/named-rule-step-CEwl_1DN.js","assets/slider-Bs34WpSJ.js","assets/index-CQou0XPt.js","assets/tooltipContext-PdbLbHCR.js","assets/CategoricalChart-DvKzcgN2.js","assets/index-CVTQyN8K.js","assets/combobox-Cm2irgnK.js","assets/scroll-area-D6PdHpbd.js","assets/monaco-editor-CJDC4QBK.js","assets/editor-CFfquQDP.js","assets/blog-preview-url-DcAMwcUT.js","assets/device-hint-8H5574i4.js","assets/alert-CqGhPtK1.js","assets/virtual-mcp-DNH0EtUA.js","assets/app-preview-url-9Od4s8Sz.js","assets/agent-capabilities-DCclMz2f.js","assets/preview-source-BsRLGWUP.js","assets/use-task-metadata-6_K5yX5W.js","assets/content-tab-DlsfkKmi.js","assets/delete-copy-FfgIRuvH.js","assets/index-DGRLfv0e.js","assets/view-header-Dgb3xLSr.js","assets/use-cms-publish-actions-B-1l0GDJ.js","assets/use-content-sync-C--sM12M.js","assets/use-delete-block-CWhysPJ4.js","assets/item-actions-DtFGX8oO.js","assets/date-utils-CrvIKg-s.js","assets/empty-state-O4YCHvsc.js","assets/primitives-BKDX7uVL.js","assets/use-move-blocks-CN5aaai1.js","assets/mustache-CrE6lvdu.js","assets/tab-icon-glyph-8Etgs1Nz.js","assets/resolve-tab-icon-DCNDXGrB.js","assets/agent-site-editor-D86Vpk2I.js","assets/site-draft-actions-DLvbd44f.js","assets/separator-BFmqeaIA.js","assets/cms-store-drafts-xAlTzUkZ.js","assets/serial-task-queue-CGOeQgpr.js","assets/index-BUddnpll.js","assets/input-BOzfLAlf.js","assets/chat-draft-CVLwBz17.js","assets/use-deco-credits-DhHgt6HY.js","assets/input-U7wrAYxt.js","assets/suggestion-zc06s98K.js","assets/question-004-sINsf4GQ.js","assets/feature-paywall-mmxA4pt4.js","assets/plan-ladder-BIydkTrx.js","assets/add-connection-dialog-Dpnv5Hu_.js","assets/connection-card-C475_xRD.js","assets/connection-slug-C16WWtfl.js","assets/schema-86eZEJ7_.js","assets/connection-form-helpers-BXLKvPK8.js","assets/collection-tabs-DBbqhX1I.js","assets/use-infinite-scroll-Bi_k3Gcy.js","assets/useSuspenseInfiniteQuery-Do3ddSL8.js","assets/input-Bwd_JSM8.css","assets/save-changes-debug-nBi-n9eV.js","assets/site-draft-view-DucrCW6m.js","assets/blog-view-gate-NbTFHC0t.js","assets/agent-site-editor-DDGTF8rc.css","assets/reports-_0A_EKdr.js","assets/reports-Dl0n8WK0.css","assets/route-D4lsDGNx.js","assets/use-inbox-feed-ztspKjRq.js","assets/super-agent-icon-UarcU3IQ.js","assets/optimistic-project-sidebar-views-BQcJxY2K.js","assets/use-project-native-view-presence-DHNWHEww.js","assets/own-accounts-section-BtZ4QeAr.js","assets/use-date-fns-locale-D6ALWiAl.js","assets/daily-pulse-Cw2j9EKx.js","assets/use-join-requests-VeJNF7XA.js","assets/thread-route-BtRW4s3r.js","assets/use-reports-diagnostic-B3a_N7Wf.js","assets/connect-layout-DQ5fswkf.js","assets/route-DM277Rmm.js","assets/task-status-C3BAI30v.js","assets/use-main-panel-tabs-CCW5A_N2.js","assets/use-mcp-tools-Cn2oVNto.js","assets/legacy-main-redirect-CuUQuBxU.js","assets/preview-dialog-aecky9jU.js","assets/preview-content-BcNa9Pqg.js","assets/file-share-button-B2cY2KSx.js","assets/file-preview-BkDdNm10.js","assets/home-Dofusewo.js","assets/home-overview-D49k7xYG.js","assets/connect-key-m1glUbL0.js","assets/use-api-keys-CVQVRRkU.js","assets/chart-BeHWLWSH.js","assets/CartesianChart-C2c_7V92.js","assets/ReferenceLine-C9XCRj5F.js","assets/sprints-C1z9xhcL.js","assets/projects-empty-state-BzEx9wSm.js","assets/agent-overview-CU4OxoSh.js","assets/project-tasks-PqGrMvTf.js","assets/mock-board-Rl0OulD3.js","assets/use-task-board-analytics-BzFQHjAs.js","assets/use-task-board-prompts-CtR1KKDj.js","assets/use-automations-FuX1dAVU.js","assets/search-toggle-Cx3yBnM8.js","assets/use-tags-DwN2OS6c.js","assets/index-DodEqJ0x.js","assets/index-Ck4bIDvp.js","assets/use-task-board-item-prs-BRGK03jV.js","assets/thread-sheet-body-BkqxKCqe.js","assets/feature-gate-mTIp9Sjm.js","assets/project-reports-BgfXlJKG.js","assets/reports-tab-BsoWfODk.js","assets/project-profile-dMAv1_XF.js","assets/agent-blog-DjjfQBNh.js","assets/blog-source-gate-DQAj7Q60.js","assets/agent-view-guard-BW3zWEZ7.js","assets/agent-blog-post-ht1HzHjG.js","assets/agent-site-editor-preview-BnRGLhv2.js","assets/agent-site-editor-content-Bf0qTV-m.js","assets/agent-site-editor-code-DJU6jSgs.js","assets/agent-automations-BurHzRja.js","assets/automation-list-row-DmUh90N4.js","assets/agent-automation-CkM2my-l.js","assets/select-model-DNm7LyBz.js","assets/build-improve-prompt-doc-DIOWxpaX.js","assets/use-debounced-autosave-CYF6NqDU.js","assets/jira-icon-DhI0BUZ7.js","assets/multi-select-BqyisIqJ.js","assets/automation-runs-CDb3BuvC.js","assets/use-id-selection-D01aVLAw.js","assets/agent-settings-Bo977gec.js","assets/context-shell-DiV-RnYp.js","assets/require-capability-BKVj-uvu.js","assets/access-gate-BNls_ETO.js","assets/capability-load-error-BgST-3sF.js","assets/sections-DJ9HVFG0.js","assets/use-ask-in-chat-DD6s3zya.js","assets/index-YL5h_X6_.js","assets/use-mcp-auth-status-DSTCezPw.js","assets/secret-picker-CasdB5lB.js","assets/use-secrets-CuhqLaNA.js","assets/agent-library-BexZfa5-.js","assets/library-tab-By7wNhS2.js","assets/use-org-repo-syncs-CcTpFCYW.js","assets/folder-icon-DyVp7_iw.js","assets/agent-assets-UhIpqMpm.js","assets/agent-releases-CihXHKu6.js","assets/agent-hosting-BHooSE_7.js","assets/settings-tab-Dqz530k3.js","assets/agent-e2e-Cj_dCYUn.js","assets/taskboard-analytics-CcpVNWT1.js","assets/time-range-picker-D7HIO7EK.js","assets/analytics-sections-DsiL7QoY.js","assets/AreaChart-Dcy9GlUk.js","assets/agent-experiments-BpCqOTFB.js","assets/experiments-tab-choice-CzYYA2vl.js","assets/named-rule-view-BoEFc5k8.js","assets/use-apply-named-rule-CektKPe6.js","assets/agent-calendar-B31Xb2WF.js","assets/agent-app-WCej8Ohc.js","assets/project-app-view-CFWsUNZP.js","assets/connect-source-dialog-Ctz6byDM.js","assets/agent-view-DWAXSq2E.js","assets/agent-file-C0j8dAw7.js","assets/agent-deck-CY5g-mtT.js","assets/agent-library-file-fgZ_PI8s.js","assets/preview-panel-o3OG-ChG.js","assets/agent-connect-sources-zoO63WyJ.js","assets/legacy-agents-deep-BWjyNNwC.js","assets/tasks-BI6TiZug.js","assets/thread-analytics-DRdLB3rD.js","assets/reports-27XnI8FT.js","assets/library-BRE4U3sI.js","assets/plan-D3G368nu.js","assets/plan-page-BubZrCqO.js","assets/plan-page-VVoBqnO4.css","assets/monitoring-DYcXu5Mj.js","assets/order-monitor-day-DESWNets.js","assets/Tooltip-BLjnGNFb.js","assets/monitoring-D_tSeZWt.css","assets/agent-business-case-2p0OVX34.js","assets/discover-YpYScJNb.js","assets/index-CsVpFXKd.js","assets/route-C3U_AJJn.js","assets/plan-usage-card-DNq7yIH3.js","assets/index-redirect-BE6X99-K.js","assets/connection-detail-CSA1uvaN.js","assets/index-BDUOMRF3.js","assets/index-DLhcfGKF.js","assets/use-delete-connection-kgOdPsaP.js","assets/monitoring-stats-row-Cli7iIkX.js","assets/collection-detail-BAQZapxx.js","assets/index-D3pPEYVX.js","assets/general-DcnCqnTz.js","assets/review-settings-C6tblSu5.js","assets/domain-settings-C2Wbat6S.js","assets/connect-BWbVox-H.js","assets/api-keys-Bah9yWKy.js","assets/tool-set-selector-zbFq0Xvb.js","assets/ai-providers-D-0PR2Pt.js","assets/infra-billing-BxeNlAa8.js","assets/secrets-Dq8SBN86.js","assets/api-keys-D9cHma1w.js","assets/buckets-CDoJdgAV.js","assets/repositories-ZmUEP2Dl.js","assets/repositories-DGfcPu--.js","assets/synced-repos-DBQkxqEP.js","assets/tasks-DgRlt9Jm.js","assets/projects-DTOK8QNl.js","assets/members-cK9nGyBK.js","assets/collection-display-button-BqP2_HTa.js","assets/role-color-DwE1tdBR.js","assets/roles-C_CISioM.js","assets/sso-D_WahN_J.js","assets/profile-CeRdcgYJ.js","assets/automations-CZbtuC2e.js"])))=>i.map(i=>d[i]);
2
2
  function SU(e,t){for(var a=0;a<t.length;a++){const o=t[a];if(typeof o!="string"&&!Array.isArray(o)){for(const n in o)if(n!=="default"&&!(n in e)){const r=Object.getOwnPropertyDescriptor(o,n);r&&Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>o[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.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 FTe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yw={exports:{}},Vu={};var AA;function TU(){if(AA)return Vu;AA=1;var e=Symbol.for("react.transitional.element"),t=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:e,type:o,key:i,ref:n!==void 0?n:null,props:r}}return Vu.Fragment=t,Vu.jsx=a,Vu.jsxs=a,Vu}var RA;function xU(){return RA||(RA=1,Yw.exports=TU()),Yw.exports}var y=xU(),Qw={exports:{}},dt={};var DA;function kU(){if(DA)return dt;DA=1;var e=Symbol.for("react.transitional.element"),t=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 v(M){return M===null||typeof M!="object"?null:(M=f&&M[f]||M["@@iterator"],typeof M=="function"?M:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function T(M,G,V){this.props=M,this.context=G,this.refs=x,this.updater=V||b}T.prototype.isReactComponent={},T.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")},T.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function k(){}k.prototype=T.prototype;function C(M,G,V){this.props=M,this.context=G,this.refs=x,this.updater=V||b}var E=C.prototype=new k;E.constructor=C,w(E,T.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:e,type:M,key:G,ref:I!==void 0?I:null,props:V}}function U(M,G){return L(M.type,G,M.props)}function B(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}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 e:case t: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(qe){return qe})):j!=null&&(B(j)&&(j=U(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=v(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)},Z={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=Z,dt.Component=T,dt.Fragment=a,dt.Profiler=n,dt.PureComponent=C,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=w({},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 OA;function Gi(){return OA||(OA=1,Qw.exports=kU()),Qw.exports}var A=Gi();const ee=Yl(A),uk=SU({__proto__:null,default:ee},[A]);var Zw={exports:{}},Hu={},Jw={exports:{}},Xw={};var NA;function EU(){return NA||(NA=1,(function(e){function t(H,K){var J=H.length;H.push(K);e:for(;0<J;){var se=J-1>>>1,Z=H[se];if(0<n(Z,K))H[se]=K,H[J]=Z,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,Z=H.length,M=Z>>>1;se<M;){var G=2*(se+1)-1,V=H[G],I=G+1,j=H[I];if(0>n(V,J))I<Z&&0>n(j,V)?(H[se]=j,H[I]=J,se=I):(H[se]=V,H[G]=J,se=G);else if(I<Z&&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(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var r=performance;e.unstable_now=function(){return r.now()}}else{var i=Date,c=i.now();e.unstable_now=function(){return i.now()-c}}var d=[],u=[],m=1,h=null,f=3,v=!1,b=!1,w=!1,x=!1,T=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,C=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,t(d,K);else break;K=a(u)}}function _(H){if(w=!1,E(H),!b)if(a(d)!==null)b=!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 U(){return x?!0:!(e.unstable_now()-L<O)}function B(){if(x=!1,D){var H=e.unstable_now();L=H;var K=!0;try{e:{b=!1,w&&(w=!1,k(R),R=-1),v=!0;var J=f;try{t:{for(E(H),h=a(d);h!==null&&!(h.expirationTime>H&&U());){var se=h.callback;if(typeof se=="function"){h.callback=null,f=h.priorityLevel;var Z=se(h.expirationTime<=H);if(H=e.unstable_now(),typeof Z=="function"){h.callback=Z,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,v=!1}K=void 0}}finally{K?z():D=!1}}}var z;if(typeof C=="function")z=function(){C(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(){T(B,0)};function ae(H,K){R=T(function(){H(e.unstable_now())},K)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(H){H.callback=null},e.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},e.unstable_getCurrentPriorityLevel=function(){return f},e.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}},e.unstable_requestPaint=function(){x=!0},e.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}},e.unstable_scheduleCallback=function(H,K,J){var se=e.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 Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=J+Z,H={id:m++,callback:K,priorityLevel:H,startTime:J,expirationTime:Z,sortIndex:-1},J>se?(H.sortIndex=J,t(u,H),a(d)===null&&H===a(u)&&(w?(k(R),R=-1):w=!0,ae(_,J-se))):(H.sortIndex=Z,t(d,H),b||v||(b=!0,D||(D=!0,z()))),H},e.unstable_shouldYield=U,e.unstable_wrapCallback=function(H){var K=f;return function(){var J=f;f=K;try{return H.apply(this,arguments)}finally{f=J}}}})(Xw)),Xw}var MA;function CU(){return MA||(MA=1,Jw.exports=EU()),Jw.exports}var eS={exports:{}},Io={};var IA;function PU(){if(IA)return Io;IA=1;var e=Gi();function t(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(t(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=e.__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 Io.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Io.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(t(299));return r(d,u,null,m)},Io.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()}},Io.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))},Io.prefetchDNS=function(d){typeof d=="string"&&o.d.D(d)},Io.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,v=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:v}):m==="script"&&o.d.X(d,{crossOrigin:h,integrity:f,fetchPriority:v,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},Io.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)},Io.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})}},Io.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)},Io.requestFormReset=function(d){o.d.r(d)},Io.unstable_batchedUpdates=function(d,u){return d(u)},Io.useFormState=function(d,u,m){return i.H.useFormState(d,u,m)},Io.useFormStatus=function(){return i.H.useHostTransitionStatus()},Io.version="19.2.6",Io}var LA;function _M(){if(LA)return eS.exports;LA=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),eS.exports=PU(),eS.exports}var BA;function _U(){if(BA)return Hu;BA=1;var e=CU(),t=Gi(),a=_M();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 P=S.alternate;if(P===null){if(g=S.return,g!==null){p=g;continue}break}if(S.child===P.child){for(P=S.child;P;){if(P===p)return d(S),s;if(P===g)return d(S),l;P=P.sibling}throw Error(o(188))}if(p.return!==g.return)p=S,g=P;else{for(var N=!1,q=S.child;q;){if(q===p){N=!0,p=S,g=P;break}if(q===g){N=!0,g=S,p=P;break}q=q.sibling}if(!N){for(q=P.child;q;){if(q===p){N=!0,p=P,g=S;break}if(q===g){N=!0,g=P,p=S;break}q=q.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"),v=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),C=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"),U=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 w:return"Fragment";case T: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 b:return"Portal";case C:return s.displayName||"Context";case k: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=t.__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=[],Z=-1;function M(s){return{current:s}}function G(s){0>Z||(s.current=se[Z],se[Z]=null,Z--)}function V(s,l){Z++,se[Z]=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)?J1(s):0;break;default:if(s=l.tagName,l=l.namespaceURI)l=J1(l),s=X1(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 qe(s){s.memoizedState!==null&&V(de,s);var l=I.current,p=X1(l,s.type);l!==p&&(V(j,s),V(I,p))}function Q(s){j.current===s&&(G(I),G(j)),de.current===s&&(G(de),zu._currentValue=J)}var ne,ve;function ie(s){if(ne===void 0)try{throw Error()}catch(p){var l=p.stack.trim().match(/\n( *(at )?)/);ne=l&&l[1]||"",ve=-1<p.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+ne+s+ve}var xe=!1;function Pe(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 ke=function(){throw Error()};if(Object.defineProperty(ke.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ke,[])}catch(fe){var he=fe}Reflect.construct(s,[],ke)}else{try{ke.call()}catch(fe){he=fe}s.call(ke.prototype)}}else{try{throw Error()}catch(fe){he=fe}(ke=s())&&typeof ke.catch=="function"&&ke.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 P=g.DetermineComponentFrameRoot(),N=P[0],q=P[1];if(N&&q){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:k,parentData:C,parentDataProperty:E},_){k.if((0,o._)`${C} !== undefined`,()=>k.assign((0,o._)`${C}[${E}]`,_))}function v(k,C,E,_=r.Correct){const D=_===r.Correct?o.operators.EQ:o.operators.NEQ;let R;switch(k){case"null":return(0,o._)`${C} ${D} null`;case"array":R=(0,o._)`Array.isArray(${C})`;break;case"object":R=(0,o._)`${C} && typeof ${C} == "object" && !Array.isArray(${C})`;break;case"integer":R=O((0,o._)`!(${C} % 1) && !isNaN(${C})`);break;case"number":R=O();break;default:return(0,o._)`typeof ${C} ${D} ${k}`}return _===r.Correct?R:(0,o.not)(R);function O(L=o.nil){return(0,o.and)((0,o._)`typeof ${C} == "number"`,L,E?(0,o._)`isFinite(${C})`:o.nil)}}xo.checkDataType=v;function b(k,C,E,_){if(k.length===1)return v(k[0],C,E,_);let D;const R=(0,n.toHash)(k);if(R.array&&R.object){const O=(0,o._)`typeof ${C} != "object"`;D=R.null?O:(0,o._)`!${C} || ${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,v(O,C,E,_));return D}xo.checkDataTypes=b;const w={message:({schema:k})=>`must be ${k}`,params:({schema:k,schemaValue:C})=>typeof k=="string"?(0,o._)`{type: ${k}}`:(0,o._)`{type: ${C}}`};function x(k){const C=T(k);(0,a.reportError)(C,w)}xo.reportTypeError=x;function T(k){const{gen:C,data:E,schema:_}=k,D=(0,n.schemaRefOrVal)(k,_,"type");return{gen:C,keyword:"type",data:E,schema:_.type,schemaCode:D,schemaValue:D,parentSchema:_,params:{},it:k}}return xo}var Qu={},oD;function YQ(){if(oD)return Qu;oD=1,Object.defineProperty(Qu,"__esModule",{value:!0}),Qu.assignDefaults=void 0;const e=yt(),t=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))}Qu.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,e._)`${u}${(0,e.getProperty)(r)}`;if(d){(0,t.checkStrictMode)(n,`default is ignored for: ${h}`);return}let f=(0,e._)`${h} === undefined`;m.useDefaults==="empty"&&(f=(0,e._)`${f} || ${h} === null || ${h} === ""`),c.if(f,(0,e._)`${h} = ${(0,e.stringify)(i)}`)}return Qu}var fr={},Jt={},nD;function Or(){if(nD)return Jt;nD=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.validateUnion=Jt.validateArray=Jt.usePattern=Jt.callValidateCode=Jt.schemaProperties=Jt.allSchemaProperties=Jt.noPropertyInData=Jt.propertyInData=Jt.isOwnProperty=Jt.hasPropFunc=Jt.reportMissingProp=Jt.checkMissingProp=Jt.checkReportMissingProp=void 0;const e=yt(),t=Ft(),a=Ji(),o=Ft();function n(k,C){const{gen:E,data:_,it:D}=k;E.if(m(E,_,C,D.opts.ownProperties),()=>{k.setParams({missingProperty:(0,e._)`${C}`},!0),k.error()})}Jt.checkReportMissingProp=n;function r({gen:k,data:C,it:{opts:E}},_,D){return(0,e.or)(..._.map(R=>(0,e.and)(m(k,C,R,E.ownProperties),(0,e._)`${D} = ${R}`)))}Jt.checkMissingProp=r;function i(k,C){k.setParams({missingProperty:C},!0),k.error()}Jt.reportMissingProp=i;function c(k){return k.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Jt.hasPropFunc=c;function d(k,C,E){return(0,e._)`${c(k)}.call(${C}, ${E})`}Jt.isOwnProperty=d;function u(k,C,E,_){const D=(0,e._)`${C}${(0,e.getProperty)(E)} !== undefined`;return _?(0,e._)`${D} && ${d(k,C,E)}`:D}Jt.propertyInData=u;function m(k,C,E,_){const D=(0,e._)`${C}${(0,e.getProperty)(E)} === undefined`;return _?(0,e.or)(D,(0,e.not)(d(k,C,E))):D}Jt.noPropertyInData=m;function h(k){return k?Object.keys(k).filter(C=>C!=="__proto__"):[]}Jt.allSchemaProperties=h;function f(k,C){return h(C).filter(E=>!(0,t.alwaysValidSchema)(k,C[E]))}Jt.schemaProperties=f;function v({schemaCode:k,data:C,it:{gen:E,topSchemaRef:_,schemaPath:D,errorPath:R},it:O},L,U,B){const z=B?(0,e._)`${k}, ${C}, ${_}${D}`:C,F=[[a.default.instancePath,(0,e.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,e._)`${z}, ${E.object(...F)}`;return U!==e.nil?(0,e._)`${L}.call(${U}, ${W})`:(0,e._)`${L}(${W})`}Jt.callValidateCode=v;const b=(0,e._)`new RegExp`;function w({gen:k,it:{opts:C}},E){const _=C.unicodeRegExp?"u":"",{regExp:D}=C.code,R=D(E,_);return k.scopeValue("pattern",{key:R.toString(),ref:R,code:(0,e._)`${D.code==="new RegExp"?b:(0,o.useFunc)(k,D)}(${E}, ${_})`})}Jt.usePattern=w;function x(k){const{gen:C,data:E,keyword:_,it:D}=k,R=C.name("valid");if(D.allErrors){const L=C.let("valid",!0);return O(()=>C.assign(L,!1)),L}return C.var(R,!0),O(()=>C.break()),R;function O(L){const U=C.const("len",(0,e._)`${E}.length`);C.forRange("i",0,U,B=>{k.subschema({keyword:_,dataProp:B,dataPropType:t.Type.Num},R),C.if((0,e.not)(R),L)})}}Jt.validateArray=x;function T(k){const{gen:C,schema:E,keyword:_,it:D}=k;if(!Array.isArray(E))throw new Error("ajv implementation error");if(E.some(U=>(0,t.alwaysValidSchema)(D,U))&&!D.opts.unevaluated)return;const O=C.let("valid",!1),L=C.name("_valid");C.block(()=>E.forEach((U,B)=>{const z=k.subschema({keyword:_,schemaProp:B,compositeRule:!0},L);C.assign(O,(0,e._)`${O} || ${L}`),k.mergeValidEvaluated(z,L)||C.if((0,e.not)(O))})),k.result(O,()=>k.reset(),()=>k.error(!0))}return Jt.validateUnion=T,Jt}var rD;function QQ(){if(rD)return fr;rD=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.validateKeywordUsage=fr.validSchemaType=fr.funcKeywordCode=fr.macroKeywordCode=void 0;const e=yt(),t=Ji(),a=Or(),o=nb();function n(f,v){const{gen:b,keyword:w,schema:x,parentSchema:T,it:k}=f,C=v.macro.call(k.self,x,T,k),E=u(b,w,C);k.opts.validateSchema!==!1&&k.self.validateSchema(C,!0);const _=b.name("valid");f.subschema({schema:C,schemaPath:e.nil,errSchemaPath:`${k.errSchemaPath}/${w}`,topSchemaRef:E,compositeRule:!0},_),f.pass(_,()=>f.error(!0))}fr.macroKeywordCode=n;function r(f,v){var b;const{gen:w,keyword:x,schema:T,parentSchema:k,$data:C,it:E}=f;d(E,v);const _=!C&&v.compile?v.compile.call(E.self,T,k,E):v.validate,D=u(w,x,_),R=w.let("valid");f.block$data(R,O),f.ok((b=v.valid)!==null&&b!==void 0?b:R);function O(){if(v.errors===!1)B(),v.modifying&&i(f),z(()=>f.error());else{const F=v.async?L():U();v.modifying&&i(f),z(()=>c(f,F))}}function L(){const F=w.let("ruleErrs",null);return w.try(()=>B((0,e._)`await `),W=>w.assign(R,!1).if((0,e._)`${W} instanceof ${E.ValidationError}`,()=>w.assign(F,(0,e._)`${W}.errors`),()=>w.throw(W))),F}function U(){const F=(0,e._)`${D}.errors`;return w.assign(F,null),B(e.nil),F}function B(F=v.async?(0,e._)`await `:e.nil){const W=E.opts.passContext?t.default.this:t.default.self,ae=!("compile"in v&&!C||v.schema===!1);w.assign(R,(0,e._)`${F}${(0,a.callValidateCode)(f,D,W,ae)}`,v.modifying)}function z(F){var W;w.if((0,e.not)((W=v.valid)!==null&&W!==void 0?W:R),F)}}fr.funcKeywordCode=r;function i(f){const{gen:v,data:b,it:w}=f;v.if(w.parentData,()=>v.assign(b,(0,e._)`${w.parentData}[${w.parentDataProperty}]`))}function c(f,v){const{gen:b}=f;b.if((0,e._)`Array.isArray(${v})`,()=>{b.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${v} : ${t.default.vErrors}.concat(${v})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,o.extendErrors)(f)},()=>f.error())}function d({schemaEnv:f},v){if(v.async&&!f.$async)throw new Error("async keyword in sync schema")}function u(f,v,b){if(b===void 0)throw new Error(`keyword "${v}" failed to compile`);return f.scopeValue("keyword",typeof b=="function"?{ref:b}:{ref:b,code:(0,e.stringify)(b)})}function m(f,v,b=!1){return!v.length||v.some(w=>w==="array"?Array.isArray(f):w==="object"?f&&typeof f=="object"&&!Array.isArray(f):typeof f==w||b&&typeof f>"u")}fr.validSchemaType=m;function h({schema:f,opts:v,self:b,errSchemaPath:w},x,T){if(Array.isArray(x.keyword)?!x.keyword.includes(T):x.keyword!==T)throw new Error("ajv implementation error");const k=x.dependencies;if(k?.some(C=>!Object.prototype.hasOwnProperty.call(f,C)))throw new Error(`parent schema must have dependencies of ${T}: ${k.join(",")}`);if(x.validateSchema&&!x.validateSchema(f[T])){const E=`keyword "${T}" value is invalid at path "${w}": `+b.errorsText(x.validateSchema.errors);if(v.validateSchema==="log")b.logger.error(E);else throw new Error(E)}}return fr.validateKeywordUsage=h,fr}var Ps={},sD;function ZQ(){if(sD)return Ps;sD=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.extendSubschemaMode=Ps.extendSubschemaData=Ps.getSubschema=void 0;const e=yt(),t=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,e._)`${r.schemaPath}${(0,e.getProperty)(i)}`,errSchemaPath:`${r.errSchemaPath}/${i}`}:{schema:f[c],schemaPath:(0,e._)`${r.schemaPath}${(0,e.getProperty)(i)}${(0,e.getProperty)(c)}`,errSchemaPath:`${r.errSchemaPath}/${i}/${(0,t.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:b,dataPathArr:w,opts:x}=i,T=f.let("data",(0,e._)`${i.data}${(0,e.getProperty)(c)}`,!0);v(T),r.errorPath=(0,e.str)`${b}${(0,t.getErrorPath)(c,d,x.jsPropertySyntax)}`,r.parentDataProperty=(0,e._)`${c}`,r.dataPathArr=[...w,r.parentDataProperty]}if(u!==void 0){const b=u instanceof e.Name?u:f.let("data",u,!0);v(b),h!==void 0&&(r.propertyName=h)}m&&(r.dataTypes=m);function v(b){r.data=b,r.dataLevel=i.dataLevel+1,r.dataTypes=[],i.definedProperties=new Set,r.parentData=i.data,r.dataNames=[...i.dataNames,b]}}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 Ko={},TS,iD;function lB(){return iD||(iD=1,TS=function e(t,a){if(t===a)return!0;if(t&&a&&typeof t=="object"&&typeof a=="object"){if(t.constructor!==a.constructor)return!1;var o,n,r;if(Array.isArray(t)){if(o=t.length,o!=a.length)return!1;for(n=o;n--!==0;)if(!e(t[n],a[n]))return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===a.toString();if(r=Object.keys(t),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(!e(t[i],a[i]))return!1}return!0}return t!==t&&a!==a}),TS}var xS={exports:{}},lD;function JQ(){if(lD)return xS.exports;lD=1;var e=xS.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(){};t(n,i,c,o,"",o)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.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 t(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 v in i){var b=i[v];if(Array.isArray(b)){if(v in e.arrayKeywords)for(var w=0;w<b.length;w++)t(o,n,r,b[w],c+"/"+v+"/"+w,d,c,v,i,w)}else if(v in e.propsKeywords){if(b&&typeof b=="object")for(var x in b)t(o,n,r,b[x],c+"/"+v+"/"+a(x),d,c,v,i,x)}else(v in e.keywords||o.allKeys&&!(v in e.skipKeywords))&&t(o,n,r,b,c+"/"+v,d,c,v,i)}r(i,c,d,u,m,h,f)}}function a(o){return o.replace(/~/g,"~0").replace(/\//g,"~1")}return xS.exports}var cD;function rb(){if(cD)return Ko;cD=1,Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.getSchemaRefs=Ko.resolveUrl=Ko.normalizeId=Ko._getFullPath=Ko.getFullPath=Ko.inlineRef=void 0;const e=Ft(),t=lB(),a=JQ(),o=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function n(w,x=!0){return typeof w=="boolean"?!0:x===!0?!i(w):x?c(w)<=x:!1}Ko.inlineRef=n;const r=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function i(w){for(const x in w){if(r.has(x))return!0;const T=w[x];if(Array.isArray(T)&&T.some(i)||typeof T=="object"&&i(T))return!0}return!1}function c(w){let x=0;for(const T in w){if(T==="$ref")return 1/0;if(x++,!o.has(T)&&(typeof w[T]=="object"&&(0,e.eachItem)(w[T],k=>x+=c(k)),x===1/0))return 1/0}return x}function d(w,x="",T){T!==!1&&(x=h(x));const k=w.parse(x);return u(w,k)}Ko.getFullPath=d;function u(w,x){return w.serialize(x).split("#")[0]+"#"}Ko._getFullPath=u;const m=/#\/?$/;function h(w){return w?w.replace(m,""):""}Ko.normalizeId=h;function f(w,x,T){return T=h(T),w.resolve(x,T)}Ko.resolveUrl=f;const v=/^[a-z_][-a-z0-9._]*$/i;function b(w,x){if(typeof w=="boolean")return{};const{schemaId:T,uriResolver:k}=this.opts,C=h(w[T]||x),E={"":C},_=d(k,C,!1),D={},R=new Set;return a(w,{allKeys:!0},(U,B,z,F)=>{if(F===void 0)return;const W=_+B;let ae=E[F];typeof U[T]=="string"&&(ae=H.call(this,U[T])),K.call(this,U.$anchor),K.call(this,U.$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 Z=this.refs[J];return typeof Z=="string"&&(Z=this.refs[Z]),typeof Z=="object"?O(U,Z.schema,J):J!==h(W)&&(J[0]==="#"?(O(U,D[J],J),D[J]=U):this.refs[J]=W),J}function K(J){if(typeof J=="string"){if(!v.test(J))throw new Error(`invalid anchor "${J}"`);H.call(this,`#${J}`)}}}),D;function O(U,B,z){if(B!==void 0&&!t(U,B))throw L(z)}function L(U){return new Error(`reference "${U}" resolves to more than one schema`)}}return Ko.getSchemaRefs=b,Ko}var dD;function sb(){if(dD)return Es;dD=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es.getData=Es.KeywordCxt=Es.validateFunctionCode=void 0;const e=KQ(),t=Zf(),a=iB(),o=Zf(),n=YQ(),r=QQ(),i=ZQ(),c=yt(),d=Ji(),u=rb(),m=Ft(),h=nb();function f(Q){if(_(Q)&&(R(Q),E(Q))){x(Q);return}v(Q,()=>(0,e.topBoolOrEmptySchema)(Q))}Es.validateFunctionCode=f;function v({gen:Q,validateName:ne,schema:ve,schemaEnv:ie,opts:xe},Pe){xe.code.es5?Q.func(ne,(0,c._)`${d.default.data}, ${d.default.valCxt}`,ie.$async,()=>{Q.code((0,c._)`"use strict"; ${k(ve,xe)}`),w(Q,xe),Q.code(Pe)}):Q.func(ne,(0,c._)`${d.default.data}, ${b(xe)}`,ie.$async,()=>Q.code(k(ve,xe)).code(Pe))}function b(Q){return(0,c._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${Q.dynamicRef?(0,c._)`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`}function w(Q,ne){Q.if(d.default.valCxt,()=>{Q.var(d.default.instancePath,(0,c._)`${d.default.valCxt}.${d.default.instancePath}`),Q.var(d.default.parentData,(0,c._)`${d.default.valCxt}.${d.default.parentData}`),Q.var(d.default.parentDataProperty,(0,c._)`${d.default.valCxt}.${d.default.parentDataProperty}`),Q.var(d.default.rootData,(0,c._)`${d.default.valCxt}.${d.default.rootData}`),ne.dynamicRef&&Q.var(d.default.dynamicAnchors,(0,c._)`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{Q.var(d.default.instancePath,(0,c._)`""`),Q.var(d.default.parentData,(0,c._)`undefined`),Q.var(d.default.parentDataProperty,(0,c._)`undefined`),Q.var(d.default.rootData,d.default.data),ne.dynamicRef&&Q.var(d.default.dynamicAnchors,(0,c._)`{}`)})}function x(Q){const{schema:ne,opts:ve,gen:ie}=Q;v(Q,()=>{ve.$comment&&ne.$comment&&F(Q),U(Q),ie.let(d.default.vErrors,null),ie.let(d.default.errors,0),ve.unevaluated&&T(Q),O(Q),W(Q)})}function T(Q){const{gen:ne,validateName:ve}=Q;Q.evaluated=ne.const("evaluated",(0,c._)`${ve}.evaluated`),ne.if((0,c._)`${Q.evaluated}.dynamicProps`,()=>ne.assign((0,c._)`${Q.evaluated}.props`,(0,c._)`undefined`)),ne.if((0,c._)`${Q.evaluated}.dynamicItems`,()=>ne.assign((0,c._)`${Q.evaluated}.items`,(0,c._)`undefined`))}function k(Q,ne){const ve=typeof Q=="object"&&Q[ne.schemaId];return ve&&(ne.code.source||ne.code.process)?(0,c._)`/*# sourceURL=${ve} */`:c.nil}function C(Q,ne){if(_(Q)&&(R(Q),E(Q))){D(Q,ne);return}(0,e.boolOrEmptySchema)(Q,ne)}function E({schema:Q,self:ne}){if(typeof Q=="boolean")return!Q;for(const ve in Q)if(ne.RULES.all[ve])return!0;return!1}function _(Q){return typeof Q.schema!="boolean"}function D(Q,ne){const{schema:ve,gen:ie,opts:xe}=Q;xe.$comment&&ve.$comment&&F(Q),B(Q),z(Q);const Pe=ie.const("_errs",d.default.errors);O(Q,Pe),ie.var(ne,(0,c._)`${Pe} === ${d.default.errors}`)}function R(Q){(0,m.checkUnknownRules)(Q),L(Q)}function O(Q,ne){if(Q.opts.jtd)return H(Q,[],!1,ne);const ve=(0,t.getSchemaTypes)(Q.schema),ie=(0,t.coerceAndCheckDataType)(Q,ve);H(Q,ve,!ie,ne)}function L(Q){const{schema:ne,errSchemaPath:ve,opts:ie,self:xe}=Q;ne.$ref&&ie.ignoreKeywordsWithRef&&(0,m.schemaHasRulesButRef)(ne,xe.RULES)&&xe.logger.warn(`$ref: keywords ignored in schema at path "${ve}"`)}function U(Q){const{schema:ne,opts:ve}=Q;ne.default!==void 0&&ve.useDefaults&&ve.strictSchema&&(0,m.checkStrictMode)(Q,"default is ignored in the schema root")}function B(Q){const ne=Q.schema[Q.opts.schemaId];ne&&(Q.baseId=(0,u.resolveUrl)(Q.opts.uriResolver,Q.baseId,ne))}function z(Q){if(Q.schema.$async&&!Q.schemaEnv.$async)throw new Error("async schema in sync schema")}function F({gen:Q,schemaEnv:ne,schema:ve,errSchemaPath:ie,opts:xe}){const Pe=ve.$comment;if(xe.$comment===!0)Q.code((0,c._)`${d.default.self}.logger.log(${Pe})`);else if(typeof xe.$comment=="function"){const it=(0,c.str)`${ie}/$comment`,ct=Q.scopeValue("root",{ref:ne.root});Q.code((0,c._)`${d.default.self}.opts.$comment(${Pe}, ${it}, ${ct}.schema)`)}}function W(Q){const{gen:ne,schemaEnv:ve,validateName:ie,ValidationError:xe,opts:Pe}=Q;ve.$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),Pe.unevaluated&&ae(Q),ne.return((0,c._)`${d.default.errors} === 0`))}function ae({gen:Q,evaluated:ne,props:ve,items:ie}){ve instanceof c.Name&&Q.assign((0,c._)`${ne}.props`,ve),ie instanceof c.Name&&Q.assign((0,c._)`${ne}.items`,ie)}function H(Q,ne,ve,ie){const{gen:xe,schema:Pe,data:it,allErrors:ct,opts:Ge,self:ot}=Q,{RULES:Ne}=ot;if(Pe.$ref&&(Ge.ignoreKeywordsWithRef||!(0,m.schemaHasRulesButRef)(Pe,Ne))){xe.block(()=>de(Q,"$ref",Ne.all.$ref.definition));return}Ge.jtd||J(Q,ne),xe.block(()=>{for(const He of Ne.rules)Oe(He);Oe(Ne.post)});function Oe(He){(0,a.shouldUseGroup)(Pe,He)&&(He.type?(xe.if((0,o.checkDataType)(He.type,it,Ge.strictNumbers)),K(Q,He),ne.length===1&&ne[0]===He.type&&ve&&(xe.else(),(0,o.reportTypeError)(Q)),xe.endIf()):K(Q,He),ct||xe.if((0,c._)`${d.default.errors} === ${ie||0}`))}}function K(Q,ne){const{gen:ve,schema:ie,opts:{useDefaults:xe}}=Q;xe&&(0,n.assignDefaults)(Q,ne.type),ve.block(()=>{for(const Pe of ne.rules)(0,a.shouldUseRule)(ie,Pe)&&de(Q,Pe.keyword,Pe.definition,ne.type)})}function J(Q,ne){Q.schemaEnv.meta||!Q.opts.strictTypes||(se(Q,ne),Q.opts.allowUnionTypes||Z(Q,ne),M(Q,Q.dataTypes))}function se(Q,ne){if(ne.length){if(!Q.dataTypes.length){Q.dataTypes=ne;return}ne.forEach(ve=>{V(Q.dataTypes,ve)||j(Q,`type "${ve}" not allowed by context "${Q.dataTypes.join(",")}"`)}),I(Q,ne)}}function Z(Q,ne){ne.length>1&&!(ne.length===2&&ne.includes("null"))&&j(Q,"use allowUnionTypes to allow union type keyword")}function M(Q,ne){const ve=Q.self.RULES.all;for(const ie in ve){const xe=ve[ie];if(typeof xe=="object"&&(0,a.shouldUseRule)(Q.schema,xe)){const{type:Pe}=xe.definition;Pe.length&&!Pe.some(it=>G(ne,it))&&j(Q,`missing type "${Pe.join(",")}" for keyword "${ie}"`)}}}function G(Q,ne){return Q.includes(ne)||ne==="number"&&Q.includes("integer")}function V(Q,ne){return Q.includes(ne)||ne==="integer"&&Q.includes("number")}function I(Q,ne){const ve=[];for(const ie of Q.dataTypes)V(ne,ie)?ve.push(ie):ne.includes("integer")&&ie==="number"&&ve.push("integer");Q.dataTypes=ve}function j(Q,ne){const ve=Q.schemaEnv.baseId+Q.errSchemaPath;ne+=` at "${ve}" (strictTypes)`,(0,m.checkStrictMode)(Q,ne,Q.opts.strictTypes)}class X{constructor(ne,ve,ie){if((0,r.validateKeywordUsage)(ne,ve,ie),this.gen=ne.gen,this.allErrors=ne.allErrors,this.keyword=ie,this.data=ne.data,this.schema=ne.schema[ie],this.$data=ve.$data&&ne.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,m.schemaRefOrVal)(ne,this.schema,ie,this.$data),this.schemaType=ve.schemaType,this.parentSchema=ne.schema,this.params={},this.it=ne,this.def=ve,this.$data)this.schemaCode=ne.gen.const("vSchema",qe(this.$data,ne));else if(this.schemaCode=this.schemaValue,!(0,r.validSchemaType)(this.schema,ve.schemaType,ve.allowUndefined))throw new Error(`${ie} value must be ${JSON.stringify(ve.schemaType)}`);("code"in ve?ve.trackErrors:ve.errors!==!1)&&(this.errsCount=ne.gen.const("_errs",d.default.errors))}result(ne,ve,ie){this.failResult((0,c.not)(ne),ve,ie)}failResult(ne,ve,ie){this.gen.if(ne),ie?ie():this.error(),ve?(this.gen.else(),ve(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(ne,ve){this.failResult((0,c.not)(ne),void 0,ve)}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:ve}=this;this.fail((0,c._)`${ve} !== undefined && (${(0,c.or)(this.invalid$data(),ne)})`)}error(ne,ve,ie){if(ve){this.setParams(ve),this._error(ne,ie),this.setParams({});return}this._error(ne,ie)}_error(ne,ve){(ne?h.reportExtraError:h.reportError)(this,this.def.error,ve)}$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,ve){ve?Object.assign(this.params,ne):this.params=ne}block$data(ne,ve,ie=c.nil){this.gen.block(()=>{this.check$data(ne,ie),ve()})}check$data(ne=c.nil,ve=c.nil){if(!this.$data)return;const{gen:ie,schemaCode:xe,schemaType:Pe,def:it}=this;ie.if((0,c.or)((0,c._)`${xe} === undefined`,ve)),ne!==c.nil&&ie.assign(ne,!0),(Pe.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:ve,schemaType:ie,def:xe,it:Pe}=this;return(0,c.or)(it(),ct());function it(){if(ie.length){if(!(ve instanceof c.Name))throw new Error("ajv implementation error");const Ge=Array.isArray(ie)?ie:[ie];return(0,c._)`${(0,o.checkDataTypes)(Ge,ve,Pe.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}(${ve})`}return c.nil}}subschema(ne,ve){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 C(xe,ve),xe}mergeEvaluated(ne,ve){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,ve)),ie.items!==!0&&ne.items!==void 0&&(ie.items=m.mergeEvaluated.items(xe,ne.items,ie.items,ve)))}mergeValidEvaluated(ne,ve){const{it:ie,gen:xe}=this;if(ie.opts.unevaluated&&(ie.props!==!0||ie.items!==!0))return xe.if(ve,()=>this.mergeEvaluated(ne,c.Name)),!0}}Es.KeywordCxt=X;function de(Q,ne,ve,ie){const xe=new X(Q,ve,ne);"code"in ve?ve.code(xe,ie):xe.$data&&ve.validate?(0,r.funcKeywordCode)(xe,ve):"macro"in ve?(0,r.macroKeywordCode)(xe,ve):(ve.compile||ve.validate)&&(0,r.funcKeywordCode)(xe,ve)}const ue=/^\/(?:[^~]|~0|~1)*$/,Ee=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function qe(Q,{dataLevel:ne,dataNames:ve,dataPathArr:ie}){let xe,Pe;if(Q==="")return d.default.rootData;if(Q[0]==="/"){if(!ue.test(Q))throw new Error(`Invalid JSON-pointer: ${Q}`);xe=Q,Pe=d.default.rootData}else{const ot=Ee.exec(Q);if(!ot)throw new Error(`Invalid JSON-pointer: ${Q}`);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(Pe=ve[ne-Ne],!xe)return Pe}let it=Pe;const ct=xe.split("/");for(const ot of ct)ot&&(Pe=(0,c._)`${Pe}${(0,c.getProperty)((0,m.unescapeJsonPointer)(ot))}`,it=(0,c._)`${it} && ${Pe}`);return it;function Ge(ot,Ne){return`Cannot access ${ot} ${Ne} levels up, current level is ${ne}`}}return Es.getData=qe,Es}var ag={},uD;function Kk(){if(uD)return ag;uD=1,Object.defineProperty(ag,"__esModule",{value:!0});class e extends Error{constructor(a){super("validation failed"),this.errors=a,this.ajv=this.validation=!0}}return ag.default=e,ag}var og={},pD;function ib(){if(pD)return og;pD=1,Object.defineProperty(og,"__esModule",{value:!0});const e=rb();class t extends Error{constructor(o,n,r,i){super(i||`can't resolve reference ${r} from id ${n}`),this.missingRef=(0,e.resolveUrl)(o,n,r),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(o,this.missingRef))}}return og.default=t,og}var _n={},mD;function Yk(){if(mD)return _n;mD=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.resolveSchema=_n.getCompilingSchema=_n.resolveRef=_n.compileSchema=_n.SchemaEnv=void 0;const e=yt(),t=Kk(),a=Ji(),o=rb(),n=Ft(),r=sb();class i{constructor(T){var k;this.refs={},this.dynamicAnchors={};let C;typeof T.schema=="object"&&(C=T.schema),this.schema=T.schema,this.schemaId=T.schemaId,this.root=T.root||this,this.baseId=(k=T.baseId)!==null&&k!==void 0?k:(0,o.normalizeId)(C?.[T.schemaId||"$id"]),this.schemaPath=T.schemaPath,this.localRefs=T.localRefs,this.meta=T.meta,this.$async=C?.$async,this.refs={}}}_n.SchemaEnv=i;function c(x){const T=m.call(this,x);if(T)return T;const k=(0,o.getFullPath)(this.opts.uriResolver,x.root.baseId),{es5:C,lines:E}=this.opts.code,{ownProperties:_}=this.opts,D=new e.CodeGen(this.scope,{es5:C,lines:E,ownProperties:_});let R;x.$async&&(R=D.scopeValue("Error",{ref:t.default,code:(0,e._)`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:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:D.scopeValue("schema",this.opts.code.source===!0?{ref:x.schema,code:(0,e.stringify)(x.schema)}:{ref:x.schema}),validateName:O,ValidationError:R,schema:x.schema,schemaEnv:x,rootId:k,baseId:x.baseId||k,schemaPath:e.nil,errSchemaPath:x.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let U;try{this._compilations.add(x),(0,r.validateFunctionCode)(L),D.optimize(this.opts.code.optimize);const B=D.toString();U=`${D.scopeRefs(a.default.scope)}return ${B}`,this.opts.code.process&&(U=this.opts.code.process(U,x));const F=new Function(`${a.default.self}`,`${a.default.scope}`,U)(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 e.Name?void 0:W,items:ae instanceof e.Name?void 0:ae,dynamicProps:W instanceof e.Name,dynamicItems:ae instanceof e.Name},F.source&&(F.source.evaluated=(0,e.stringify)(F.evaluated))}return x.validate=F,x}catch(B){throw delete x.validate,delete x.validateName,U&&this.logger.error("Error compiling schema, function code:",U),B}finally{this._compilations.delete(x)}}_n.compileSchema=c;function d(x,T,k){var C;k=(0,o.resolveUrl)(this.opts.uriResolver,T,k);const E=x.refs[k];if(E)return E;let _=f.call(this,x,k);if(_===void 0){const D=(C=x.localRefs)===null||C===void 0?void 0:C[k],{schemaId:R}=this.opts;D&&(_=new i({schema:D,schemaId:R,root:x,baseId:T}))}if(_!==void 0)return x.refs[k]=u.call(this,_)}_n.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 T of this._compilations)if(h(T,x))return T}_n.getCompilingSchema=m;function h(x,T){return x.schema===T.schema&&x.root===T.root&&x.baseId===T.baseId}function f(x,T){let k;for(;typeof(k=this.refs[T])=="string";)T=k;return k||this.schemas[T]||v.call(this,x,T)}function v(x,T){const k=this.opts.uriResolver.parse(T),C=(0,o._getFullPath)(this.opts.uriResolver,k);let E=(0,o.getFullPath)(this.opts.uriResolver,x.baseId,void 0);if(Object.keys(x.schema).length>0&&C===E)return w.call(this,k,x);const _=(0,o.normalizeId)(C),D=this.refs[_]||this.schemas[_];if(typeof D=="string"){const R=v.call(this,x,D);return typeof R?.schema!="object"?void 0:w.call(this,k,R)}if(typeof D?.schema=="object"){if(D.validate||c.call(this,D),_===(0,o.normalizeId)(T)){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 w.call(this,k,D)}}_n.resolveSchema=v;const b=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function w(x,{baseId:T,schema:k,root:C}){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 k=="boolean")return;const O=k[(0,n.unescapeFragment)(R)];if(O===void 0)return;k=O;const L=typeof k=="object"&&k[this.opts.schemaId];!b.has(R)&&L&&(T=(0,o.resolveUrl)(this.opts.uriResolver,T,L))}let _;if(typeof k!="boolean"&&k.$ref&&!(0,n.schemaHasRulesButRef)(k,this.RULES)){const R=(0,o.resolveUrl)(this.opts.uriResolver,T,k.$ref);_=v.call(this,C,R)}const{schemaId:D}=this.opts;if(_=_||new i({schema:k,schemaId:D,root:C,baseId:T}),_.schema!==_.root.schema)return _}return _n}const XQ="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",eZ="Meta-schema for $data reference (JSON AnySchema extension proposal)",tZ="object",aZ=["$data"],oZ={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},nZ=!1,rZ={$id:XQ,description:eZ,type:tZ,required:aZ,properties:oZ,additionalProperties:nZ};var ng={},Zu={exports:{}},kS,hD;function cB(){if(hD)return kS;hD=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=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 v="",b=0,w=0;for(w=0;w<f.length;w++)if(b=f[w].charCodeAt(0),b!==48){if(!(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102))return"";v+=f[w];break}for(w+=1;w<f.length;w++){if(b=f[w].charCodeAt(0),!(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102))return"";v+=f[w]}return v}const o=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function n(f){return f.length=0,!0}function r(f,v,b){if(f.length){const w=a(f);if(w!=="")v.push(w);else return b.error=!0,!1;f.length=0}return!0}function i(f){let v=0;const b={error:!1,address:"",zone:""},w=[],x=[];let T=!1,k=!1,C=r;for(let E=0;E<f.length;E++){const _=f[E];if(!(_==="["||_==="]"))if(_===":"){if(T===!0&&(k=!0),!C(x,w,b))break;if(++v>7){b.error=!0;break}E>0&&f[E-1]===":"&&(T=!0),w.push(":");continue}else if(_==="%"){if(!C(x,w,b))break;C=n}else{x.push(_);continue}}return x.length&&(C===n?b.zone=x.join(""):k?w.push(x.join("")):w.push(a(x))),b.address=w.join(""),b}function c(f){if(d(f,":")<2)return{host:f,isIPV6:!1};const v=i(f);if(v.error)return{host:f,isIPV6:!1};{let b=v.address,w=v.address;return v.zone&&(b+="%"+v.zone,w+="%25"+v.zone),{host:b,isIPV6:!0,escapedHost:w}}}function d(f,v){let b=0;for(let w=0;w<f.length;w++)f[w]===v&&b++;return b}function u(f){let v=f;const b=[];let w=-1,x=0;for(;x=v.length;){if(x===1){if(v===".")break;if(v==="/"){b.push("/");break}else{b.push(v);break}}else if(x===2){if(v[0]==="."){if(v[1]===".")break;if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&(v[1]==="."||v[1]==="/")){b.push("/");break}}else if(x===3&&v==="/.."){b.length!==0&&b.pop(),b.push("/");break}if(v[0]==="."){if(v[1]==="."){if(v[2]==="/"){v=v.slice(3);continue}}else if(v[1]==="/"){v=v.slice(2);continue}}else if(v[0]==="/"&&v[1]==="."){if(v[2]==="/"){v=v.slice(2);continue}else if(v[2]==="."&&v[3]==="/"){v=v.slice(3),b.length!==0&&b.pop();continue}}if((w=v.indexOf("/",1))===-1){b.push(v);break}else b.push(v.slice(0,w)),v=v.slice(w)}return b.join("")}function m(f,v){const b=v!==!0?escape:unescape;return f.scheme!==void 0&&(f.scheme=b(f.scheme)),f.userinfo!==void 0&&(f.userinfo=b(f.userinfo)),f.host!==void 0&&(f.host=b(f.host)),f.path!==void 0&&(f.path=b(f.path)),f.query!==void 0&&(f.query=b(f.query)),f.fragment!==void 0&&(f.fragment=b(f.fragment)),f}function h(f){const v=[];if(f.userinfo!==void 0&&(v.push(f.userinfo),v.push("@")),f.host!==void 0){let b=unescape(f.host);if(!t(b)){const w=c(b);w.isIPV6===!0?b=`[${w.escapedHost}]`:b=f.host}v.push(b)}return(typeof f.port=="number"||typeof f.port=="string")&&(v.push(":"),v.push(String(f.port))),v.length?v.join(""):void 0}return kS={nonSimpleDomain:o,recomposeAuthority:h,normalizeComponentEncoding:m,removeDotSegments:u,isIPv4:t,isUUID:e,normalizeIPv6:c,stringArrayToHexStripped:a},kS}var ES,gD;function sZ(){if(gD)return ES;gD=1;const{isUUID:e}=cB(),t=/([\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(t);if(R){const O=D.scheme||_.scheme||"urn";_.nid=R[1].toLowerCase(),_.nss=R[2];const L=`${O}:${D.nid||_.nid}`,U=E(L);_.path=void 0,U&&(_=U.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}`,U=E(L);U&&(_=U.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||!e(R.uuid))&&(R.error=R.error||"UUID is not valid."),R}function f(_){const D=_;return D.nss=(_.uuid||"").toLowerCase(),D}const v={scheme:"http",domainHost:!0,parse:r,serialize:i},b={scheme:"https",domainHost:v.domainHost,parse:r,serialize:i},w={scheme:"ws",domainHost:!0,parse:c,serialize:d},x={scheme:"wss",domainHost:w.domainHost,parse:w.parse,serialize:w.serialize},C={http:v,https:b,ws:w,wss:x,urn:{scheme:"urn",parse:u,serialize:m,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:h,serialize:f,skipNormalize:!0}};Object.setPrototypeOf(C,null);function E(_){return _&&(C[_]||C[_.toLowerCase()])||void 0}return ES={wsIsSecure:n,SCHEMES:C,isValidSchemeName:o,getSchemeHandler:E},ES}var fD;function iZ(){if(fD)return Zu.exports;fD=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:a,normalizeComponentEncoding:o,isIPv4:n,nonSimpleDomain:r}=cB(),{SCHEMES:i,getSchemeHandler:c}=sZ();function d(x,T){return typeof x=="string"?x=f(b(x,T),T):typeof x=="object"&&(x=b(f(x,T),T)),x}function u(x,T,k){const C=k?Object.assign({scheme:"null"},k):{scheme:"null"},E=m(b(x,C),b(T,C),C,!0);return C.skipEscape=!0,f(E,C)}function m(x,T,k,C){const E={};return C||(x=b(f(x,k),k),T=b(f(T,k),k)),k=k||{},!k.tolerant&&T.scheme?(E.scheme=T.scheme,E.userinfo=T.userinfo,E.host=T.host,E.port=T.port,E.path=t(T.path||""),E.query=T.query):(T.userinfo!==void 0||T.host!==void 0||T.port!==void 0?(E.userinfo=T.userinfo,E.host=T.host,E.port=T.port,E.path=t(T.path||""),E.query=T.query):(T.path?(T.path[0]==="/"?E.path=t(T.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?E.path="/"+T.path:x.path?E.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+T.path:E.path=T.path,E.path=t(E.path)),E.query=T.query):(E.path=x.path,T.query!==void 0?E.query=T.query:E.query=x.query),E.userinfo=x.userinfo,E.host=x.host,E.port=x.port),E.scheme=x.scheme),E.fragment=T.fragment,E}function h(x,T,k){return typeof x=="string"?(x=unescape(x),x=f(o(b(x,k),!0),{...k,skipEscape:!0})):typeof x=="object"&&(x=f(o(x,!0),{...k,skipEscape:!0})),typeof T=="string"?(T=unescape(T),T=f(o(b(T,k),!0),{...k,skipEscape:!0})):typeof T=="object"&&(T=f(o(T,!0),{...k,skipEscape:!0})),x.toLowerCase()===T.toLowerCase()}function f(x,T){const k={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:""},C=Object.assign({},T),E=[],_=c(C.scheme||k.scheme);_&&_.serialize&&_.serialize(k,C),k.path!==void 0&&(C.skipEscape?k.path=unescape(k.path):(k.path=escape(k.path),k.scheme!==void 0&&(k.path=k.path.split("%3A").join(":")))),C.reference!=="suffix"&&k.scheme&&E.push(k.scheme,":");const D=a(k);if(D!==void 0&&(C.reference!=="suffix"&&E.push("//"),E.push(D),k.path&&k.path[0]!=="/"&&E.push("/")),k.path!==void 0){let R=k.path;!C.absolutePath&&(!_||!_.absolutePath)&&(R=t(R)),D===void 0&&R[0]==="/"&&R[1]==="/"&&(R="/%2F"+R.slice(2)),E.push(R)}return k.query!==void 0&&E.push("?",k.query),k.fragment!==void 0&&E.push("#",k.fragment),E.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function b(x,T){const k=Object.assign({},T),C={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let E=!1;k.reference==="suffix"&&(k.scheme?x=k.scheme+":"+x:x="//"+x);const _=x.match(v);if(_){if(C.scheme=_[1],C.userinfo=_[3],C.host=_[4],C.port=parseInt(_[5],10),C.path=_[6]||"",C.query=_[7],C.fragment=_[8],isNaN(C.port)&&(C.port=_[5]),C.host)if(n(C.host)===!1){const O=e(C.host);C.host=O.host.toLowerCase(),E=O.isIPV6}else E=!0;C.scheme===void 0&&C.userinfo===void 0&&C.host===void 0&&C.port===void 0&&C.query===void 0&&!C.path?C.reference="same-document":C.scheme===void 0?C.reference="relative":C.fragment===void 0?C.reference="absolute":C.reference="uri",k.reference&&k.reference!=="suffix"&&k.reference!==C.reference&&(C.error=C.error||"URI is not a "+k.reference+" reference.");const D=c(k.scheme||C.scheme);if(!k.unicodeSupport&&(!D||!D.unicodeSupport)&&C.host&&(k.domainHost||D&&D.domainHost)&&E===!1&&r(C.host))try{C.host=URL.domainToASCII(C.host.toLowerCase())}catch(R){C.error=C.error||"Host's domain name can not be converted to ASCII: "+R}(!D||D&&!D.skipNormalize)&&(x.indexOf("%")!==-1&&(C.scheme!==void 0&&(C.scheme=unescape(C.scheme)),C.host!==void 0&&(C.host=unescape(C.host))),C.path&&(C.path=escape(unescape(C.path))),C.fragment&&(C.fragment=encodeURI(decodeURIComponent(C.fragment)))),D&&D.parse&&D.parse(C,k)}else C.error=C.error||"URI can not be parsed.";return C}const w={SCHEMES:i,normalize:d,resolve:u,resolveComponent:m,equal:h,serialize:f,parse:b};return Zu.exports=w,Zu.exports.default=w,Zu.exports.fastUri=w,Zu.exports}var vD;function lZ(){if(vD)return ng;vD=1,Object.defineProperty(ng,"__esModule",{value:!0});const e=iZ();return e.code='require("ajv/dist/runtime/uri").default',ng.default=e,ng}var bD;function cZ(){return bD||(bD=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=sb();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var a=yt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return a.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return a.CodeGen}});const o=Kk(),n=ib(),r=sB(),i=Yk(),c=yt(),d=rb(),u=Zf(),m=Ft(),h=rZ,f=lZ(),v=(Z,M)=>new RegExp(Z,M);v.code="new RegExp";const b=["removeAdditional","useDefaults","coerceTypes"],w=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."},T={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},k=200;function C(Z){var M,G,V,I,j,X,de,ue,Ee,qe,Q,ne,ve,ie,xe,Pe,it,ct,Ge,ot,Ne,Oe,He,Y,oe;const le=Z.strict,Ce=(M=Z.code)===null||M===void 0?void 0:M.optimize,Re=Ce===!0||Ce===void 0?1:Ce||0,De=(V=(G=Z.code)===null||G===void 0?void 0:G.regExp)!==null&&V!==void 0?V:v,Ie=(I=Z.uriResolver)!==null&&I!==void 0?I:f.default;return{strictSchema:(X=(j=Z.strictSchema)!==null&&j!==void 0?j:le)!==null&&X!==void 0?X:!0,strictNumbers:(ue=(de=Z.strictNumbers)!==null&&de!==void 0?de:le)!==null&&ue!==void 0?ue:!0,strictTypes:(qe=(Ee=Z.strictTypes)!==null&&Ee!==void 0?Ee:le)!==null&&qe!==void 0?qe:"log",strictTuples:(ne=(Q=Z.strictTuples)!==null&&Q!==void 0?Q:le)!==null&&ne!==void 0?ne:"log",strictRequired:(ie=(ve=Z.strictRequired)!==null&&ve!==void 0?ve:le)!==null&&ie!==void 0?ie:!1,code:Z.code?{...Z.code,optimize:Re,regExp:De}:{optimize:Re,regExp:De},loopRequired:(xe=Z.loopRequired)!==null&&xe!==void 0?xe:k,loopEnum:(Pe=Z.loopEnum)!==null&&Pe!==void 0?Pe:k,meta:(it=Z.meta)!==null&&it!==void 0?it:!0,messages:(ct=Z.messages)!==null&&ct!==void 0?ct:!0,inlineRefs:(Ge=Z.inlineRefs)!==null&&Ge!==void 0?Ge:!0,schemaId:(ot=Z.schemaId)!==null&&ot!==void 0?ot:"$id",addUsedSchema:(Ne=Z.addUsedSchema)!==null&&Ne!==void 0?Ne:!0,validateSchema:(Oe=Z.validateSchema)!==null&&Oe!==void 0?Oe:!0,validateFormats:(He=Z.validateFormats)!==null&&He!==void 0?He:!0,unicodeRegExp:(Y=Z.unicodeRegExp)!==null&&Y!==void 0?Y:!0,int32range:(oe=Z.int32range)!==null&&oe!==void 0?oe:!0,uriResolver:Ie}}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,...C(M)};const{es5:G,lines:V}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:w,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,T,M,"DEPRECATED","warn"),this._metaOpts=U.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(qe,Q){await j.call(this,qe.$schema);const ne=this._addSchema(qe,Q);return ne.validate||X.call(this,ne)}async function j(qe){qe&&!this.getSchema(qe)&&await I.call(this,{$ref:qe},!0)}async function X(qe){try{return this._compileSchemaEnv(qe)}catch(Q){if(!(Q instanceof n.default))throw Q;return de.call(this,Q),await ue.call(this,Q.missingSchema),X.call(this,qe)}}function de({missingSchema:qe,missingRef:Q}){if(this.refs[qe])throw new Error(`AnySchema ${qe} is loaded but ${Q} cannot be resolved`)}async function ue(qe){const Q=await Ee.call(this,qe);this.refs[qe]||await j.call(this,Q.$schema),this.refs[qe]||this.addSchema(Q,qe,G)}async function Ee(qe){const Q=this._loading[qe];if(Q)return Q;try{return await(this._loading[qe]=V(qe))}finally{delete this._loading[qe]}}}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,qe=X[de];Ee&&qe&&(X[de]=se(qe))}}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,e.default=E;function _(Z,M,G,V="error"){for(const I in Z){const j=I;j in M&&this.logger[V](`${G}: option ${I}. ${Z[j]}`)}}function D(Z){return Z=(0,d.normalizeId)(Z),this.schemas[Z]||this.refs[Z]}function R(){const Z=this.opts.schemas;if(Z)if(Array.isArray(Z))this.addSchema(Z);else for(const M in Z)this.addSchema(Z[M],M)}function O(){for(const Z in this.opts.formats){const M=this.opts.formats[Z];M&&this.addFormat(Z,M)}}function L(Z){if(Array.isArray(Z)){this.addVocabulary(Z);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const M in Z){const G=Z[M];G.keyword||(G.keyword=M),this.addKeyword(G)}}function U(){const Z={...this.opts};for(const M of b)delete Z[M];return Z}const B={log(){},warn(){},error(){}};function z(Z){if(Z===!1)return B;if(Z===void 0)return console;if(Z.log&&Z.warn&&Z.error)return Z;throw new Error("logger must implement log, warn and error methods")}const F=/^[a-z_$][a-z0-9_$:-]*$/i;function W(Z,M){const{RULES:G}=this;if((0,m.eachItem)(Z,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(Z,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[Z]=!0,!M)return;const de={keyword:Z,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[Z]=de,(V=M.implements)===null||V===void 0||V.forEach(ue=>this.addKeyword(ue))}function H(Z,M,G){const V=Z.rules.findIndex(I=>I.keyword===G);V>=0?Z.rules.splice(V,0,M):(Z.rules.push(M),this.logger.warn(`rule ${G} is not defined`))}function K(Z){let{metaSchema:M}=Z;M!==void 0&&(Z.$data&&this.opts.$data&&(M=se(M)),Z.validateSchema=this.compile(M,!0))}const J={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function se(Z){return{anyOf:[Z,J]}}})(vS)),vS}var rg={},sg={},ig={},yD;function dZ(){if(yD)return ig;yD=1,Object.defineProperty(ig,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return ig.default=e,ig}var vi={},wD;function uZ(){if(wD)return vi;wD=1,Object.defineProperty(vi,"__esModule",{value:!0}),vi.callRef=vi.getValidate=void 0;const e=ib(),t=Or(),a=yt(),o=Ji(),n=Yk(),r=Ft(),i={keyword:"$ref",schemaType:"string",code(u){const{gen:m,schema:h,it:f}=u,{baseId:v,schemaEnv:b,validateName:w,opts:x,self:T}=f,{root:k}=b;if((h==="#"||h==="#/")&&v===k.baseId)return E();const C=n.resolveRef.call(T,k,v,h);if(C===void 0)throw new e.default(f.opts.uriResolver,v,h);if(C instanceof n.SchemaEnv)return _(C);return D(C);function E(){if(b===k)return d(u,w,b,b.$async);const R=m.scopeValue("root",{ref:k});return d(u,(0,a._)`${R}.validate`,k,k.$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"),U=u.subschema({schema:R,dataTypes:[],schemaPath:a.nil,topSchemaRef:O,errSchemaPath:h},L);u.mergeEvaluated(U),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`}vi.getValidate=c;function d(u,m,h,f){const{gen:v,it:b}=u,{allErrors:w,schemaEnv:x,opts:T}=b,k=T.passContext?o.default.this:a.nil;f?C():E();function C(){if(!x.$async)throw new Error("async schema referenced by sync schema");const R=v.let("valid");v.try(()=>{v.code((0,a._)`await ${(0,t.callValidateCode)(u,m,k)}`),D(m),w||v.assign(R,!0)},O=>{v.if((0,a._)`!(${O} instanceof ${b.ValidationError})`,()=>v.throw(O)),_(O),w||v.assign(R,!1)}),u.ok(R)}function E(){u.result((0,t.callValidateCode)(u,m,k),()=>D(m),()=>_(m))}function _(R){const O=(0,a._)`${R}.errors`;v.assign(o.default.vErrors,(0,a._)`${o.default.vErrors} === null ? ${O} : ${o.default.vErrors}.concat(${O})`),v.assign(o.default.errors,(0,a._)`${o.default.vErrors}.length`)}function D(R){var O;if(!b.opts.unevaluated)return;const L=(O=h?.validate)===null||O===void 0?void 0:O.evaluated;if(b.props!==!0)if(L&&!L.dynamicProps)L.props!==void 0&&(b.props=r.mergeEvaluated.props(v,L.props,b.props));else{const U=v.var("props",(0,a._)`${R}.evaluated.props`);b.props=r.mergeEvaluated.props(v,U,b.props,a.Name)}if(b.items!==!0)if(L&&!L.dynamicItems)L.items!==void 0&&(b.items=r.mergeEvaluated.items(v,L.items,b.items));else{const U=v.var("items",(0,a._)`${R}.evaluated.items`);b.items=r.mergeEvaluated.items(v,U,b.items,a.Name)}}}return vi.callRef=d,vi.default=i,vi}var SD;function pZ(){if(SD)return sg;SD=1,Object.defineProperty(sg,"__esModule",{value:!0});const e=dZ(),t=uZ(),a=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return sg.default=a,sg}var lg={},cg={},TD;function mZ(){if(TD)return cg;TD=1,Object.defineProperty(cg,"__esModule",{value:!0});const e=yt(),t=e.operators,a={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},o={message:({keyword:r,schemaCode:i})=>(0,e.str)`must be ${a[r].okStr} ${i}`,params:({keyword:r,schemaCode:i})=>(0,e._)`{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,e._)`${c} ${a[i].fail} ${d} || isNaN(${c})`)}};return cg.default=n,cg}var dg={},xD;function hZ(){if(xD)return dg;xD=1,Object.defineProperty(dg,"__esModule",{value:!0});const e=yt(),a={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:o})=>(0,e.str)`must be multiple of ${o}`,params:({schemaCode:o})=>(0,e._)`{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,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${d}`:(0,e._)`${u} !== parseInt(${u})`;o.fail$data((0,e._)`(${i} === 0 || (${u} = ${r}/${i}, ${m}))`)}};return dg.default=a,dg}var ug={},pg={},kD;function gZ(){if(kD)return pg;kD=1,Object.defineProperty(pg,"__esModule",{value:!0});function e(t){const a=t.length;let o=0,n=0,r;for(;n<a;)o++,r=t.charCodeAt(n++),r>=55296&&r<=56319&&n<a&&(r=t.charCodeAt(n),(r&64512)===56320&&n++);return o}return pg.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',pg}var ED;function fZ(){if(ED)return ug;ED=1,Object.defineProperty(ug,"__esModule",{value:!0});const e=yt(),t=Ft(),a=gZ(),n={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:i}){const c=r==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${c} than ${i} characters`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:i,data:c,schemaCode:d,it:u}=r,m=i==="maxLength"?e.operators.GT:e.operators.LT,h=u.opts.unicode===!1?(0,e._)`${c}.length`:(0,e._)`${(0,t.useFunc)(r.gen,a.default)}(${c})`;r.fail$data((0,e._)`${h} ${m} ${d}`)}};return ug.default=n,ug}var mg={},CD;function vZ(){if(CD)return mg;CD=1,Object.defineProperty(mg,"__esModule",{value:!0});const e=Or(),t=Ft(),a=yt(),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:v}=h.opts.code,b=v.code==="new RegExp"?(0,a._)`new RegExp`:(0,t.useFunc)(i,v),w=i.let("valid");i.try(()=>i.assign(w,(0,a._)`${b}(${m}, ${f}).test(${c})`),()=>i.assign(w,!1)),r.fail$data((0,a._)`!${w}`)}else{const v=(0,e.usePattern)(r,u);r.fail$data((0,a._)`!${v}.test(${c})`)}}};return mg.default=n,mg}var hg={},PD;function bZ(){if(PD)return hg;PD=1,Object.defineProperty(hg,"__esModule",{value:!0});const e=yt(),a={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:n}){const r=o==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${r} than ${n} properties`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:n,data:r,schemaCode:i}=o,c=n==="maxProperties"?e.operators.GT:e.operators.LT;o.fail$data((0,e._)`Object.keys(${r}).length ${c} ${i}`)}};return hg.default=a,hg}var gg={},_D;function yZ(){if(_D)return gg;_D=1,Object.defineProperty(gg,"__esModule",{value:!0});const e=Or(),t=yt(),a=Ft(),n={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:r}})=>(0,t.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,t._)`{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 v=c.length>=f.loopRequired;if(h.allErrors?b():w(),f.strictRequired){const k=r.parentSchema.properties,{definedProperties:C}=r.it;for(const E of c)if(k?.[E]===void 0&&!C.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 b(){if(v||m)r.block$data(t.nil,x);else for(const k of c)(0,e.checkReportMissingProp)(r,k)}function w(){const k=i.let("missing");if(v||m){const C=i.let("valid",!0);r.block$data(C,()=>T(k,C)),r.ok(C)}else i.if((0,e.checkMissingProp)(r,c,k)),(0,e.reportMissingProp)(r,k),i.else()}function x(){i.forOf("prop",d,k=>{r.setParams({missingProperty:k}),i.if((0,e.noPropertyInData)(i,u,k,f.ownProperties),()=>r.error())})}function T(k,C){r.setParams({missingProperty:k}),i.forOf(k,d,()=>{i.assign(C,(0,e.propertyInData)(i,u,k,f.ownProperties)),i.if((0,t.not)(C),()=>{r.error(),i.break()})},t.nil)}}};return gg.default=n,gg}var fg={},AD;function wZ(){if(AD)return fg;AD=1,Object.defineProperty(fg,"__esModule",{value:!0});const e=yt(),a={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:n}){const r=o==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${r} than ${n} items`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:n,data:r,schemaCode:i}=o,c=n==="maxItems"?e.operators.GT:e.operators.LT;o.fail$data((0,e._)`${r}.length ${c} ${i}`)}};return fg.default=a,fg}var vg={},bg={},RD;function Qk(){if(RD)return bg;RD=1,Object.defineProperty(bg,"__esModule",{value:!0});const e=lB();return e.code='require("ajv/dist/runtime/equal").default',bg.default=e,bg}var DD;function SZ(){if(DD)return vg;DD=1,Object.defineProperty(vg,"__esModule",{value:!0});const e=Zf(),t=yt(),a=Ft(),o=Qk(),r={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i,j:c}})=>(0,t.str)`must NOT have duplicate items (items ## ${c} and ${i} are identical)`,params:({params:{i,j:c}})=>(0,t._)`{i: ${i}, j: ${c}}`},code(i){const{gen:c,data:d,$data:u,schema:m,parentSchema:h,schemaCode:f,it:v}=i;if(!u&&!m)return;const b=c.let("valid"),w=h.items?(0,e.getSchemaTypes)(h.items):[];i.block$data(b,x,(0,t._)`${f} === false`),i.ok(b);function x(){const E=c.let("i",(0,t._)`${d}.length`),_=c.let("j");i.setParams({i:E,j:_}),c.assign(b,!0),c.if((0,t._)`${E} > 1`,()=>(T()?k:C)(E,_))}function T(){return w.length>0&&!w.some(E=>E==="object"||E==="array")}function k(E,_){const D=c.name("item"),R=(0,e.checkDataTypes)(w,D,v.opts.strictNumbers,e.DataType.Wrong),O=c.const("indices",(0,t._)`{}`);c.for((0,t._)`;${E}--;`,()=>{c.let(D,(0,t._)`${d}[${E}]`),c.if(R,(0,t._)`continue`),w.length>1&&c.if((0,t._)`typeof ${D} == "string"`,(0,t._)`${D} += "_"`),c.if((0,t._)`typeof ${O}[${D}] == "number"`,()=>{c.assign(_,(0,t._)`${O}[${D}]`),i.error(),c.assign(b,!1).break()}).code((0,t._)`${O}[${D}] = ${E}`)})}function C(E,_){const D=(0,a.useFunc)(c,o.default),R=c.name("outer");c.label(R).for((0,t._)`;${E}--;`,()=>c.for((0,t._)`${_} = ${E}; ${_}--;`,()=>c.if((0,t._)`${D}(${d}[${E}], ${d}[${_}])`,()=>{i.error(),c.assign(b,!1).break(R)})))}}};return vg.default=r,vg}var yg={},OD;function TZ(){if(OD)return yg;OD=1,Object.defineProperty(yg,"__esModule",{value:!0});const e=yt(),t=Ft(),a=Qk(),n={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:r})=>(0,e._)`{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,e._)`!${(0,t.useFunc)(i,a.default)}(${c}, ${u})`):r.fail((0,e._)`${m} !== ${c}`)}};return yg.default=n,yg}var wg={},ND;function xZ(){if(ND)return wg;ND=1,Object.defineProperty(wg,"__esModule",{value:!0});const e=yt(),t=Ft(),a=Qk(),n={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,e._)`{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 v;const b=()=>v??(v=(0,t.useFunc)(i,a.default));let w;if(f||d)w=i.let("valid"),r.block$data(w,x);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const k=i.const("vSchema",m);w=(0,e.or)(...u.map((C,E)=>T(k,E)))}r.pass(w);function x(){i.assign(w,!1),i.forOf("v",m,k=>i.if((0,e._)`${b()}(${c}, ${k})`,()=>i.assign(w,!0).break()))}function T(k,C){const E=u[C];return typeof E=="object"&&E!==null?(0,e._)`${b()}(${c}, ${k}[${C}])`:(0,e._)`${c} === ${E}`}}};return wg.default=n,wg}var MD;function kZ(){if(MD)return lg;MD=1,Object.defineProperty(lg,"__esModule",{value:!0});const e=mZ(),t=hZ(),a=fZ(),o=vZ(),n=bZ(),r=yZ(),i=wZ(),c=SZ(),d=TZ(),u=xZ(),m=[e.default,t.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 lg.default=m,lg}var Sg={},Hc={},ID;function dB(){if(ID)return Hc;ID=1,Object.defineProperty(Hc,"__esModule",{value:!0}),Hc.validateAdditionalItems=void 0;const e=yt(),t=Ft(),o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:r}})=>(0,e.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,e._)`{limit: ${r}}`},code(r){const{parentSchema:i,it:c}=r,{items:d}=i;if(!Array.isArray(d)){(0,t.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,e._)`${u}.length`);if(d===!1)r.setParams({len:i.length}),r.pass((0,e._)`${f} <= ${i.length}`);else if(typeof d=="object"&&!(0,t.alwaysValidSchema)(h,d)){const b=c.var("valid",(0,e._)`${f} <= ${i.length}`);c.if((0,e.not)(b),()=>v(b)),r.ok(b)}function v(b){c.forRange("i",i.length,f,w=>{r.subschema({keyword:m,dataProp:w,dataPropType:t.Type.Num},b),h.allErrors||c.if((0,e.not)(b),()=>c.break())})}}return Hc.validateAdditionalItems=n,Hc.default=o,Hc}var Tg={},Gc={},LD;function uB(){if(LD)return Gc;LD=1,Object.defineProperty(Gc,"__esModule",{value:!0}),Gc.validateTuple=void 0;const e=yt(),t=Ft(),a=Or(),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,t.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;w(u),f.opts.unevaluated&&c.length&&f.items!==!0&&(f.items=t.mergeEvaluated.items(d,c.length,f.items));const v=d.name("valid"),b=d.const("len",(0,e._)`${m}.length`);c.forEach((x,T)=>{(0,t.alwaysValidSchema)(f,x)||(d.if((0,e._)`${b} > ${T}`,()=>r.subschema({keyword:h,schemaProp:T,dataProp:T},v)),r.ok(v))});function w(x){const{opts:T,errSchemaPath:k}=f,C=c.length,E=C===x.minItems&&(C===x.maxItems||x[i]===!1);if(T.strictTuples&&!E){const _=`"${h}" is ${C}-tuple, but minItems or maxItems/${i} are not specified or different at path "${k}"`;(0,t.checkStrictMode)(f,_,T.strictTuples)}}}return Gc.validateTuple=n,Gc.default=o,Gc}var BD;function EZ(){if(BD)return Tg;BD=1,Object.defineProperty(Tg,"__esModule",{value:!0});const e=uB(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:a=>(0,e.validateTuple)(a,"items")};return Tg.default=t,Tg}var xg={},FD;function CZ(){if(FD)return xg;FD=1,Object.defineProperty(xg,"__esModule",{value:!0});const e=yt(),t=Ft(),a=Or(),o=dB(),r={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:i}})=>(0,e.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,e._)`{limit: ${i}}`},code(i){const{schema:c,parentSchema:d,it:u}=i,{prefixItems:m}=d;u.items=!0,!(0,t.alwaysValidSchema)(u,c)&&(m?(0,o.validateAdditionalItems)(i,m):i.ok((0,a.validateArray)(i)))}};return xg.default=r,xg}var kg={},jD;function PZ(){if(jD)return kg;jD=1,Object.defineProperty(kg,"__esModule",{value:!0});const e=yt(),t=Ft(),o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:n,max:r}})=>r===void 0?(0,e.str)`must contain at least ${n} valid item(s)`:(0,e.str)`must contain at least ${n} and no more than ${r} valid item(s)`,params:({params:{min:n,max:r}})=>r===void 0?(0,e._)`{minContains: ${n}}`:(0,e._)`{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:v}=c;u.opts.next?(m=f===void 0?1:f,h=v):m=1;const b=r.const("len",(0,e._)`${d}.length`);if(n.setParams({min:m,max:h}),h===void 0&&m===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&m>h){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),n.fail();return}if((0,t.alwaysValidSchema)(u,i)){let C=(0,e._)`${b} >= ${m}`;h!==void 0&&(C=(0,e._)`${C} && ${b} <= ${h}`),n.pass(C);return}u.items=!0;const w=r.name("valid");h===void 0&&m===1?T(w,()=>r.if(w,()=>r.break())):m===0?(r.let(w,!0),h!==void 0&&r.if((0,e._)`${d}.length > 0`,x)):(r.let(w,!1),x()),n.result(w,()=>n.reset());function x(){const C=r.name("_valid"),E=r.let("count",0);T(C,()=>r.if(C,()=>k(E)))}function T(C,E){r.forRange("i",0,b,_=>{n.subschema({keyword:"contains",dataProp:_,dataPropType:t.Type.Num,compositeRule:!0},C),E()})}function k(C){r.code((0,e._)`${C}++`),h===void 0?r.if((0,e._)`${C} >= ${m}`,()=>r.assign(w,!0).break()):(r.if((0,e._)`${C} > ${h}`,()=>r.assign(w,!1).break()),m===1?r.assign(w,!0):r.if((0,e._)`${C} >= ${m}`,()=>r.assign(w,!0)))}}};return kg.default=o,kg}var CS={},zD;function _Z(){return zD||(zD=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=yt(),a=Ft(),o=Or();e.error={message:({params:{property:d,depsCount:u,deps:m}})=>{const h=u===1?"property":"properties";return(0,t.str)`must have ${h} ${m} when property ${d} is present`},params:({params:{property:d,depsCount:u,deps:m,missingProperty:h}})=>(0,t._)`{property: ${d},
53
53
  missingProperty: ${h},
54
54
  depsCount: ${u},
55
- deps: ${m}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:e.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 v=m.let("missing");for(const b in u){const w=u[b];if(w.length===0)continue;const x=(0,o.propertyInData)(m,h,b,f.opts.ownProperties);d.setParams({property:b,depsCount:w.length,deps:w.join(", ")}),f.allErrors?m.if(x,()=>{for(const T of w)(0,o.checkReportMissingProp)(d,T)}):(m.if((0,t._)`${x} && (${(0,o.checkMissingProp)(d,w,v)})`),(0,o.reportMissingProp)(d,v),m.else())}}e.validatePropertyDeps=i;function c(d,u=d.schema){const{gen:m,data:h,keyword:f,it:v}=d,b=m.name("valid");for(const w in u)(0,a.alwaysValidSchema)(v,u[w])||(m.if((0,o.propertyInData)(m,h,w,v.opts.ownProperties),()=>{const x=d.subschema({keyword:f,schemaProp:w},b);d.mergeValidEvaluated(x,b)},()=>m.var(b,!0)),d.ok(b))}e.validateSchemaDeps=c,e.default=n})(CS)),CS}var Eg={},qD;function AZ(){if(qD)return Eg;qD=1,Object.defineProperty(Eg,"__esModule",{value:!0});const e=yt(),t=Ft(),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,e._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:r,schema:i,data:c,it:d}=n;if((0,t.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,e.not)(u),()=>{n.error(!0),d.allErrors||r.break()})}),n.ok(u)}};return Eg.default=o,Eg}var Cg={},UD;function pB(){if(UD)return Cg;UD=1,Object.defineProperty(Cg,"__esModule",{value:!0});const e=Or(),t=yt(),a=Ji(),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,t._)`{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:v,opts:b}=f;if(f.props=!0,b.removeAdditional!=="all"&&(0,o.alwaysValidSchema)(f,d))return;const w=(0,e.allSchemaProperties)(u.properties),x=(0,e.allSchemaProperties)(u.patternProperties);T(),i.ok((0,t._)`${h} === ${a.default.errors}`);function T(){c.forIn("key",m,D=>{!w.length&&!x.length?E(D):c.if(k(D),()=>E(D))})}function k(D){let R;if(w.length>8){const O=(0,o.schemaRefOrVal)(f,u.properties,"properties");R=(0,e.isOwnProperty)(c,O,D)}else w.length?R=(0,t.or)(...w.map(O=>(0,t._)`${D} === ${O}`)):R=t.nil;return x.length&&(R=(0,t.or)(R,...x.map(O=>(0,t._)`${(0,e.usePattern)(i,O)}.test(${D})`))),(0,t.not)(R)}function C(D){c.code((0,t._)`delete ${m}[${D}]`)}function E(D){if(b.removeAdditional==="all"||b.removeAdditional&&d===!1){C(D);return}if(d===!1){i.setParams({additionalProperty:D}),i.error(),v||c.break();return}if(typeof d=="object"&&!(0,o.alwaysValidSchema)(f,d)){const R=c.name("valid");b.removeAdditional==="failing"?(_(D,R,!1),c.if((0,t.not)(R),()=>{i.reset(),C(D)})):(_(D,R),v||c.if((0,t.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 Cg.default=r,Cg}var Pg={},$D;function RZ(){if($D)return Pg;$D=1,Object.defineProperty(Pg,"__esModule",{value:!0});const e=sb(),t=Or(),a=Ft(),o=pB(),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 e.KeywordCxt(m,o.default,"additionalProperties"));const h=(0,t.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 v=i.name("valid");for(const x of f)b(x)?w(x):(i.if((0,t.propertyInData)(i,u,x,m.opts.ownProperties)),w(x),m.allErrors||i.else().var(v,!0),i.endIf()),r.it.definedProperties.add(x),r.ok(v);function b(x){return m.opts.useDefaults&&!m.compositeRule&&c[x].default!==void 0}function w(x){r.subschema({keyword:"properties",schemaProp:x,dataProp:x},v)}}};return Pg.default=n,Pg}var _g={},VD;function DZ(){if(VD)return _g;VD=1,Object.defineProperty(_g,"__esModule",{value:!0});const e=Or(),t=yt(),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,e.allSchemaProperties)(c),v=f.filter(E=>(0,a.alwaysValidSchema)(m,c[E]));if(f.length===0||v.length===f.length&&(!m.opts.unevaluated||m.props===!0))return;const b=h.strictSchema&&!h.allowMatchingProperties&&u.properties,w=i.name("valid");m.props!==!0&&!(m.props instanceof t.Name)&&(m.props=(0,o.evaluatedPropsToName)(i,m.props));const{props:x}=m;T();function T(){for(const E of f)b&&k(E),m.allErrors?C(E):(i.var(w,!0),C(E),i.if(w))}function k(E){for(const _ in b)new RegExp(E).test(_)&&(0,a.checkStrictMode)(m,`property ${_} matches pattern ${E} (use allowMatchingProperties)`)}function C(E){i.forIn("key",d,_=>{i.if((0,t._)`${(0,e.usePattern)(r,E)}.test(${_})`,()=>{const D=v.includes(E);D||r.subschema({keyword:"patternProperties",schemaProp:E,dataProp:_,dataPropType:o.Type.Str},w),m.opts.unevaluated&&x!==!0?i.assign((0,t._)`${x}[${_}]`,!0):!D&&!m.allErrors&&i.if((0,t.not)(w),()=>i.break())})})}}};return _g.default=n,_g}var Ag={},HD;function OZ(){if(HD)return Ag;HD=1,Object.defineProperty(Ag,"__esModule",{value:!0});const e=Ft(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(a){const{gen:o,schema:n,it:r}=a;if((0,e.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 Ag.default=t,Ag}var Rg={},GD;function NZ(){if(GD)return Rg;GD=1,Object.defineProperty(Rg,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Or().validateUnion,error:{message:"must match a schema in anyOf"}};return Rg.default=t,Rg}var Dg={},WD;function MZ(){if(WD)return Dg;WD=1,Object.defineProperty(Dg,"__esModule",{value:!0});const e=yt(),t=Ft(),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,e._)`{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(v),n.result(m,()=>n.reset(),()=>n.error(!0));function v(){u.forEach((b,w)=>{let x;(0,t.alwaysValidSchema)(d,b)?r.var(f,!0):x=n.subschema({keyword:"oneOf",schemaProp:w,compositeRule:!0},f),w>0&&r.if((0,e._)`${f} && ${m}`).assign(m,!1).assign(h,(0,e._)`[${h}, ${w}]`).else(),r.if(f,()=>{r.assign(m,!0),r.assign(h,w),x&&n.mergeEvaluated(x,e.Name)})})}}};return Dg.default=o,Dg}var Og={},KD;function IZ(){if(KD)return Og;KD=1,Object.defineProperty(Og,"__esModule",{value:!0});const e=Ft(),t={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,e.alwaysValidSchema)(r,c))return;const u=a.subschema({keyword:"allOf",schemaProp:d},i);a.ok(i),a.mergeEvaluated(u)})}};return Og.default=t,Og}var Ng={},YD;function LZ(){if(YD)return Ng;YD=1,Object.defineProperty(Ng,"__esModule",{value:!0});const e=yt(),t=Ft(),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>(0,e.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,e._)`{failingKeyword: ${r.ifClause}}`},code(r){const{gen:i,parentSchema:c,it:d}=r;c.then===void 0&&c.else===void 0&&(0,t.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(v(),r.reset(),u&&m){const w=i.let("ifClause");r.setParams({ifClause:w}),i.if(f,b("then",w),b("else",w))}else u?i.if(f,b("then")):i.if((0,e.not)(f),b("else"));r.pass(h,()=>r.error(!0));function v(){const w=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);r.mergeEvaluated(w)}function b(w,x){return()=>{const T=r.subschema({keyword:w},f);i.assign(h,f),r.mergeValidEvaluated(T,h),x?i.assign(x,(0,e._)`${w}`):r.setParams({ifClause:w})}}}};function n(r,i){const c=r.schema[i];return c!==void 0&&!(0,t.alwaysValidSchema)(r,c)}return Ng.default=o,Ng}var Mg={},QD;function BZ(){if(QD)return Mg;QD=1,Object.defineProperty(Mg,"__esModule",{value:!0});const e=Ft(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:a,parentSchema:o,it:n}){o.if===void 0&&(0,e.checkStrictMode)(n,`"${a}" without "if" is ignored`)}};return Mg.default=t,Mg}var ZD;function FZ(){if(ZD)return Sg;ZD=1,Object.defineProperty(Sg,"__esModule",{value:!0});const e=dB(),t=EZ(),a=uB(),o=CZ(),n=PZ(),r=_Z(),i=AZ(),c=pB(),d=RZ(),u=DZ(),m=OZ(),h=NZ(),f=MZ(),v=IZ(),b=LZ(),w=BZ();function x(T=!1){const k=[m.default,h.default,f.default,v.default,b.default,w.default,i.default,c.default,r.default,d.default,u.default];return T?k.push(t.default,o.default):k.push(e.default,a.default),k.push(n.default),k}return Sg.default=x,Sg}var Ig={},Lg={},JD;function jZ(){if(JD)return Lg;JD=1,Object.defineProperty(Lg,"__esModule",{value:!0});const e=yt(),a={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,e.str)`must match format "${o}"`,params:({schemaCode:o})=>(0,e._)`{format: ${o}}`},code(o,n){const{gen:r,data:i,$data:c,schema:d,schemaCode:u,it:m}=o,{opts:h,errSchemaPath:f,schemaEnv:v,self:b}=m;if(!h.validateFormats)return;c?w():x();function w(){const T=r.scopeValue("formats",{ref:b.formats,code:h.code.formats}),k=r.const("fDef",(0,e._)`${T}[${u}]`),C=r.let("fType"),E=r.let("format");r.if((0,e._)`typeof ${k} == "object" && !(${k} instanceof RegExp)`,()=>r.assign(C,(0,e._)`${k}.type || "string"`).assign(E,(0,e._)`${k}.validate`),()=>r.assign(C,(0,e._)`"string"`).assign(E,k)),o.fail$data((0,e.or)(_(),D()));function _(){return h.strictSchema===!1?e.nil:(0,e._)`${u} && !${E}`}function D(){const R=v.$async?(0,e._)`(${k}.async ? await ${E}(${i}) : ${E}(${i}))`:(0,e._)`${E}(${i})`,O=(0,e._)`(typeof ${E} == "function" ? ${R} : ${E}.test(${i}))`;return(0,e._)`${E} && ${E} !== true && ${C} === ${n} && !${O}`}}function x(){const T=b.formats[d];if(!T){_();return}if(T===!0)return;const[k,C,E]=D(T);k===n&&o.pass(R());function _(){if(h.strictSchema===!1){b.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,e.regexpCode)(O):h.code.formats?(0,e._)`${h.code.formats}${(0,e.getProperty)(d)}`:void 0,U=r.scopeValue("formats",{key:d,ref:O,code:L});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,e._)`${U}.validate`]:["string",O,U]}function R(){if(typeof T=="object"&&!(T instanceof RegExp)&&T.async){if(!v.$async)throw new Error("async format in sync schema");return(0,e._)`await ${E}(${i})`}return typeof C=="function"?(0,e._)`${E}(${i})`:(0,e._)`${E}.test(${i})`}}}};return Lg.default=a,Lg}var XD;function zZ(){if(XD)return Ig;XD=1,Object.defineProperty(Ig,"__esModule",{value:!0});const t=[jZ().default];return Ig.default=t,Ig}var Tl={},eO;function qZ(){return eO||(eO=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 tO;function UZ(){if(tO)return rg;tO=1,Object.defineProperty(rg,"__esModule",{value:!0});const e=pZ(),t=kZ(),a=FZ(),o=zZ(),n=qZ(),r=[e.default,t.default,(0,a.default)(),o.default,n.metadataVocabulary,n.contentVocabulary];return rg.default=r,rg}var Bg={},Ju={},aO;function $Z(){if(aO)return Ju;aO=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Ju.DiscrError=e={})),Ju}var oO;function VZ(){if(oO)return Bg;oO=1,Object.defineProperty(Bg,"__esModule",{value:!0});const e=yt(),t=$Z(),a=Yk(),o=ib(),n=Ft(),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:d}})=>c===t.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:c,tag:d,tagName:u}})=>(0,e._)`{error: ${c}, tag: ${u}, tagValue: ${d}}`},code(c){const{gen:d,data:u,schema:m,parentSchema:h,it:f}=c,{oneOf:v}=h;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const b=m.propertyName;if(typeof b!="string")throw new Error("discriminator: requires propertyName");if(m.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const w=d.let("valid",!1),x=d.const("tag",(0,e._)`${u}${(0,e.getProperty)(b)}`);d.if((0,e._)`typeof ${x} == "string"`,()=>T(),()=>c.error(!1,{discrError:t.DiscrError.Tag,tag:x,tagName:b})),c.ok(w);function T(){const E=C();d.if(!1);for(const _ in E)d.elseIf((0,e._)`${x} === ${_}`),d.assign(w,k(E[_]));d.else(),c.error(!1,{discrError:t.DiscrError.Mapping,tag:x,tagName:b}),d.endIf()}function k(E){const _=d.name("valid"),D=c.subschema({keyword:"oneOf",schemaProp:E},_);return c.mergeEvaluated(D,e.Name),_}function C(){var E;const _={},D=O(h);let R=!0;for(let B=0;B<v.length;B++){let z=v[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[b];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${b}"`);R=R&&(D||O(z)),L(F,B)}if(!R)throw new Error(`discriminator: "${b}" must be required`);return _;function O({required:B}){return Array.isArray(B)&&B.includes(b)}function L(B,z){if(B.const)U(B.const,z);else if(B.enum)for(const F of B.enum)U(F,z);else throw new Error(`discriminator: "properties/${b}" must have "const" or "enum"`)}function U(B,z){if(typeof B!="string"||B in _)throw new Error(`discriminator: "${b}" values must be unique strings`);_[B]=z}}}};return Bg.default=i,Bg}const HZ="http://json-schema.org/draft-07/schema#",GZ="http://json-schema.org/draft-07/schema#",WZ="Core schema meta-schema",KZ={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:[]}},YZ=["object","boolean"],QZ={$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:"#"}},ZZ={$schema:HZ,$id:GZ,title:WZ,definitions:KZ,type:YZ,properties:QZ,default:!0};var nO;function JZ(){return nO||(nO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const a=cZ(),o=UZ(),n=VZ(),r=ZZ,i=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends a.default{_addVocabularies(){super._addVocabularies(),o.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(r,i):r;this.addMetaSchema(b,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=d,e.exports=t=d,e.exports.Ajv=d,Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var u=sb();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var m=yt();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return m._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return m.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return m.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return m.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return m.CodeGen}});var h=Kk();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=ib();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(eg,eg.exports)),eg.exports}var Fg={exports:{}},PS={},rO;function XZ(){return rO||(rO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(B,z){return{validate:B,compare:z}}e.fullFormats={date:t(r,i),time:t(d(!0),u),"date-time":t(f(!0),v),"iso-time":t(d(),m),"iso-date-time":t(f(),b),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:T,"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:U,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:C,int32:{type:"number",validate:D},int64:{type:"number",validate:R},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":t(/^\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,v),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),"iso-date-time":t(/^\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,b),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},e.formatNames=Object.keys(e.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,Z=+(W[6]||0),M=+(W[7]||0);if(Z>23||M>59||B&&!J)return!1;if(ae<=23&&H<=59&&K<60)return!0;const G=H-M*se,V=ae-Z*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 v(B,z){if(!(B&&z))return;const F=new Date(B).valueOf(),W=new Date(z).valueOf();if(F&&W)return F-W}function b(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 w=/\/|:/,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 T(B){return w.test(B)&&x.test(B)}const k=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function C(B){return k.lastIndex=0,k.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 U(B){if(L.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(PS)),PS}var _S={},sO;function eJ(){return sO||(sO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=JZ(),a=yt(),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}}`};e.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:v,self:b}=f;if(!v.validateFormats)return;const w=new t.KeywordCxt(f,b.RULES.all.format.definition,"format");w.$data?x():T();function x(){const C=d.scopeValue("formats",{ref:b.formats,code:v.code.formats}),E=d.const("fmt",(0,a._)`${C}[${w.schemaCode}]`);c.fail$data((0,a.or)((0,a._)`typeof ${E} != "object"`,(0,a._)`${E} instanceof RegExp`,(0,a._)`typeof ${E}.compare != "function"`,k(E)))}function T(){const C=w.schema,E=b.formats[C];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${h}": format "${C}" does not define "compare" function`);const _=d.scopeValue("formats",{key:C,ref:E,code:v.code.formats?(0,a._)`${v.code.formats}${(0,a.getProperty)(C)}`:void 0});c.fail$data(k(_))}function k(C){return(0,a._)`${C}.compare(${u}, ${m}) ${n[h].fail} 0`}},dependencies:["format"]};const i=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=i})(_S)),_S}var iO;function tJ(){return iO||(iO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const a=XZ(),o=eJ(),n=yt(),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],v=m.formats||a.formatNames;return d(u,v,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 v,b;(v=(b=u.opts.code).formats)!==null&&v!==void 0||(b.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const w of m)u.addFormat(w,h[w])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(Fg,Fg.exports)),Fg.exports}var aJ=tJ();const Axe=Yl(aJ);function oJ({studioUrl:e,meshUrl:t},a){return e??t??a}let Zk;Zk=globalThis.crypto;async function nJ(e){return(await Zk).getRandomValues(new Uint8Array(e))}async function rJ(e){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",a=Math.pow(2,8)-Math.pow(2,8)%t.length;let o="";for(;o.length<e;){const n=await nJ(e-o.length);for(const r of n)r<a&&(o+=t[r%t.length])}return o}async function sJ(e){return await rJ(e)}async function iJ(e){const t=await(await Zk).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Rxe(e){if(e||(e=43),e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;const t=await sJ(e),a=await iJ(t);return{code_verifier:t,code_challenge:a}}const Po=yL().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:iK.custom,message:"URL must be parseable",fatal:!0}),m7}).refine(e=>{const t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Dxe=_o({resource:$().url(),authorization_servers:je(Po).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()}),lJ=_o({issuer:$(),authorization_endpoint:Po,token_endpoint:Po,registration_endpoint:Po.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:Po.optional(),revocation_endpoint:Po.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()}),cJ=_o({issuer:$(),authorization_endpoint:Po,token_endpoint:Po,userinfo_endpoint:Po.optional(),jwks_uri:Po,registration_endpoint:Po.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:Po.optional(),op_tos_uri:Po.optional(),client_id_metadata_document_supported:Vt().optional()}),Oxe=Se({...cJ.shape,...lJ.pick({code_challenge_methods_supported:!0}).shape}),Nxe=Se({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:PL().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),Mxe=Se({error:$(),error_description:$().optional(),error_uri:$().optional()}),lO=Po.optional().or(Ze("").transform(()=>{})),dJ=Se({redirect_uris:je(Po),token_endpoint_auth_method:$().optional(),grant_types:je($()).optional(),response_types:je($()).optional(),client_name:$().optional(),client_uri:Po.optional(),logo_uri:lO,scope:$().optional(),contacts:je($()).optional(),tos_uri:lO,policy_uri:$().optional(),jwks_uri:Po.optional(),jwks:NW().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),uJ=Se({client_id:$(),client_secret:$().optional(),client_id_issued_at:Lt().optional(),client_secret_expires_at:Lt().optional()}).strip(),Ixe=dJ.merge(uJ);Se({error:$(),error_description:$().optional()}).strip();Se({token:$(),token_type_hint:$().optional()}).strip();class No extends Error{constructor(t,a){super(t),this.errorUri=a,this.name=this.constructor.name}toResponseObject(){const t={error:this.errorCode,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}get errorCode(){return this.constructor.errorCode}}class bx extends No{}bx.errorCode="invalid_request";class yx extends No{}yx.errorCode="invalid_client";class wx extends No{}wx.errorCode="invalid_grant";class Sx extends No{}Sx.errorCode="unauthorized_client";class Tx extends No{}Tx.errorCode="unsupported_grant_type";class xx extends No{}xx.errorCode="invalid_scope";class kx extends No{}kx.errorCode="access_denied";class Ex extends No{}Ex.errorCode="server_error";class Cx extends No{}Cx.errorCode="temporarily_unavailable";class Px extends No{}Px.errorCode="unsupported_response_type";class _x extends No{}_x.errorCode="unsupported_token_type";class Ax extends No{}Ax.errorCode="invalid_token";class Rx extends No{}Rx.errorCode="method_not_allowed";class Dx extends No{}Dx.errorCode="too_many_requests";class Ox extends No{}Ox.errorCode="invalid_client_metadata";class Nx extends No{}Nx.errorCode="insufficient_scope";class Mx extends No{}Mx.errorCode="invalid_target";const Lxe={[bx.errorCode]:bx,[yx.errorCode]:yx,[wx.errorCode]:wx,[Sx.errorCode]:Sx,[Tx.errorCode]:Tx,[xx.errorCode]:xx,[kx.errorCode]:kx,[Ex.errorCode]:Ex,[Cx.errorCode]:Cx,[Px.errorCode]:Px,[_x.errorCode]:_x,[Ax.errorCode]:Ax,[Rx.errorCode]:Rx,[Dx.errorCode]:Dx,[Ox.errorCode]:Ox,[Nx.errorCode]:Nx,[Mx.errorCode]:Mx};async function mB(e){if(!e.getServerCapabilities()?.resources)return{resources:[]};try{return await e.listResources()}catch(a){if(a instanceof ob&&a.code===$p.MethodNotFound)return{resources:[]};throw a}}async function pJ(e,t){return await e.readResource({uri:t})}function Bxe(e){const t=ye.c(12);let a,o;t[0]!==e?({client:a,...o}=e,t[0]=e,t[1]=a,t[2]=o):(a=t[1],o=t[2]);let n;t[3]!==a?(n=lo.mcpResourcesList(a),t[3]=a,t[4]=n):n=t[4];let r;t[5]!==a?(r=()=>mB(a),t[5]=a,t[6]=r):r=t[6];const i=o.staleTime??3e4;let c;return t[7]!==o||t[8]!==n||t[9]!==r||t[10]!==i?(c={...o,queryKey:n,queryFn:r,staleTime:i,retry:!1},t[7]=o,t[8]=n,t[9]=r,t[10]=i,t[11]=c):c=t[11],Yi(c)}function Fxe(e){const t=ye.c(12);let a,o;t[0]!==e?({client:a,...o}=e,t[0]=e,t[1]=a,t[2]=o):(a=t[1],o=t[2]);let n;t[3]!==a?(n=lo.mcpResourcesList(a),t[3]=a,t[4]=n):n=t[4];let r;t[5]!==a?(r=()=>mB(a),t[5]=a,t[6]=r):r=t[6];const i=o.staleTime??3e4;let c;return t[7]!==o||t[8]!==n||t[9]!==r||t[10]!==i?(c={...o,queryKey:n,queryFn:r,staleTime:i,retry:!1},t[7]=o,t[8]=n,t[9]=r,t[10]=i,t[11]=c):c=t[11],Ki(c)}function jxe(e){const t=ye.c(15);let a,o,n;t[0]!==e?({client:a,uri:n,...o}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=n):(a=t[1],o=t[2],n=t[3]);let r;t[4]!==a||t[5]!==n?(r=lo.mcpReadResource(a,n),t[4]=a,t[5]=n,t[6]=r):r=t[6];let i;t[7]!==a||t[8]!==n?(i=()=>pJ(a,n),t[7]=a,t[8]=n,t[9]=i):i=t[9];const c=o.staleTime??3e4;let d;return t[10]!==o||t[11]!==r||t[12]!==i||t[13]!==c?(d={...o,queryKey:r,queryFn:i,staleTime:c,retry:!1},t[10]=o,t[11]=r,t[12]=i,t[13]=c,t[14]=d):d=t[14],Yi(d)}const hB="ui-resource-html";function zxe(e){const t=ye.c(22);let a,o,n,r,i,c;t[0]!==e?({orgSlug:n,connectionId:a,uri:c,studioUrl:i,meshUrl:o,...r}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=n,t[4]=r,t[5]=i,t[6]=c):(a=t[1],o=t[2],n=t[3],r=t[4],i=t[5],c=t[6]);let d;t[7]!==a||t[8]!==n||t[9]!==c?(d=lo.mcpUiResourceHtml(n,a,c),t[7]=a,t[8]=n,t[9]=c,t[10]=d):d=t[10];let u;t[11]!==a||t[12]!==o||t[13]!==n||t[14]!==i||t[15]!==c?(u=async()=>{const v=`${oJ({studioUrl:i,meshUrl:o},typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(n)}/mcp/${encodeURIComponent(a)}/ui-resource?uri=${encodeURIComponent(c)}`,b=await fetch(v,{credentials:"include"});if(!b.ok)throw new Error(`Failed to read UI resource (${b.status})`);return b.text()},t[11]=a,t[12]=o,t[13]=n,t[14]=i,t[15]=c,t[16]=u):u=t[16];const m=r.staleTime??3e4;let h;return t[17]!==r||t[18]!==d||t[19]!==u||t[20]!==m?(h={...r,queryKey:d,queryFn:u,staleTime:m,retry:!1},t[17]=r,t[18]=d,t[19]=u,t[20]=m,t[21]=h):h=t[21],Yi(h)}const gB={featureNotInPlan:"feature_not_in_plan",aiBudgetExhausted:"ai_budget_exhausted"};class Jf extends Error{constructor(t,a,o,n){super(t),this.status=a,this.code=o,this.retryAfterMs=n,this.name="StudioToolError"}status;code;retryAfterMs}function fB(e){return e instanceof Jf&&Object.values(gB).includes(e.code??"")?e.code:null}const mJ=6e4;function hJ(e){return!(e instanceof Jf)||e.status!==429?null:e.retryAfterMs??mJ}function gJ(e,t){if(typeof t=="object"&&t!==null&&"retryAfterMs"in t&&typeof t.retryAfterMs=="number"&&Number.isFinite(t.retryAfterMs))return Math.max(0,t.retryAfterMs);const a=e.headers.get("retry-after"),o=a?Number(a):Number.NaN;return Number.isFinite(o)?Math.max(0,o*1e3):void 0}async function fJ(e,t,a){const o=await fetch(`/api/${encodeURIComponent(e)}/tools/${encodeURIComponent(t)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a??{})});if(!o.ok){let n=`${t} failed (${o.status})`,r,i=null;try{i=await o.json();const c=i;c?.error&&(n=c.error),typeof c?.code=="string"&&(r=c.code)}catch{}throw new Jf(n,o.status,r,o.status===429?gJ(o,i):void 0)}try{return await o.json()}catch{throw new Jf(`${t} returned a non-JSON response`,o.status)}}function Jk(){const e=ye.c(5),{org:t}=Zi(),a=t.slug;let o;e[0]!==a?(o=(r,i)=>fJ(a,r,i),e[0]=a,e[1]=o):o=e[1];let n;return e[2]!==a||e[3]!==o?(n={orgSlug:a,call:o},e[2]=a,e[3]=o,e[4]=n):n=e[4],n}function vJ(e){for(const t of["content-revision","content-versions","content-changes","content-draft-tombstones","content-index"])e.getQueryDefaults([t]).gcTime!==1/0&&e.setQueryDefaults([t],{gcTime:1/0})}const bJ="studio-ui-resources",Xf="html",yJ=10080*60*1e3,wJ=50,SJ=16*1024*1024;function TJ(e){return e[0]==="mcp"&&e[1]===hB}function lb(){return new Promise((e,t)=>{const a=indexedDB.open(bJ,1);a.onupgradeneeded=()=>{a.result.objectStoreNames.contains(Xf)||a.result.createObjectStore(Xf)},a.onsuccess=()=>e(a.result),a.onerror=()=>t(a.error)})}function jd(e,t){return e.transaction(Xf,t).objectStore(Xf)}function Ix(e){return new Promise((t,a)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>a(e.error)})}async function xJ(e){if(!(typeof indexedDB>"u"))try{const t=await lb(),a=jd(t,"readonly"),o=await Ix(a.getAllKeys()),n=await Ix(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>yJ||d>=wJ){c.push(u);continue}d++;try{const f=JSON.parse(String(u));e.getQueryData(f)===void 0&&e.setQueryData(f,m.html,{updatedAt:0})}catch{c.push(u)}}if(c.length>0){const u=jd(t,"readwrite");for(const m of c)u.delete(m)}}catch{}}function kJ(e){if(typeof indexedDB>"u")return()=>{};const t=lb().catch(()=>null);return e.getQueryCache().subscribe(a=>{const o=a.query;if(!Array.isArray(o.queryKey)||!TJ(o.queryKey)||o.state.status!=="success")return;const n=o.state.data;typeof n!="string"||n.length>SJ||t.then(r=>{if(r)try{jd(r,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(o.queryKey))}catch{}})})}function EJ(){typeof indexedDB>"u"||lb().then(e=>jd(e,"readwrite").clear()).catch(()=>{})}async function qxe(e){if(!(typeof indexedDB>"u"))try{const t=await lb(),a=await Ix(jd(t,"readonly").getAllKeys()),o=jd(t,"readwrite");for(const n of a)try{const r=JSON.parse(String(n));r[1]===hB&&r[3]===e&&o.delete(n)}catch{}}catch{}}const ev="studio:rq-cache",Xk=1440*60*1e3,CJ=1e3,PJ=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions","order-monitor"]),_J=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let vB=!1,bB=!1;function AJ(e){const t=e[0];return typeof t=="string"&&PJ.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&_J.has(e[4])}function RJ(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(ev);if(!t)return;const a=JSON.parse(t),o=!a.timestamp||Date.now()-a.timestamp>Xk;if(a.buster!=="4.619.7"||o||!a.state){window.localStorage.removeItem(ev);return}VV(e,a.state),e.invalidateQueries({queryKey:lo.publicConfig(),refetchType:"none"}),vB=!0}catch{LJ()}}function DJ(e){if(typeof window>"u")return()=>{};let t=null;const a=()=>{t=null;try{const r=$V(e,{shouldDehydrateQuery:i=>i.state.status==="success"&&AJ(i.queryKey)});window.localStorage.setItem(ev,JSON.stringify({buster:"4.619.7",timestamp:Date.now(),state:r}))}catch{}},o=e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(a,CJ))}),n=()=>{t!=null&&(clearTimeout(t),a())};return window.addEventListener("pagehide",n),()=>{t!=null&&clearTimeout(t),window.removeEventListener("pagehide",n),o()}}const yB="studio:org-cache:",OJ=20;function NJ(e){const t=Date.now(),a=Object.entries(e).filter(([,o])=>t-o.updatedAt<=Xk);for(a.sort(([,o],[,n])=>o.updatedAt-n.updatedAt);a.length>OJ;)a.shift();return Object.fromEntries(a)}function wB(e){return`${yB}${e}`}function MJ(e,t){if(typeof window>"u")return null;try{const a=window.localStorage.getItem(wB(e));if(!a)return null;const o=JSON.parse(a)[t];return!o||Date.now()-o.updatedAt>Xk?null:(bB=!0,o)}catch{return null}}function IJ(e,t,a){if(!(typeof window>"u"))try{const o=wB(e),n=window.localStorage.getItem(o),r=n?JSON.parse(n):{};r[t]={data:a,updatedAt:Date.now()},window.localStorage.setItem(o,JSON.stringify(NJ(r)))}catch{}}function LJ(){if(EJ(),!(typeof window>"u"))try{window.localStorage.removeItem(ev);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(yB)&&window.localStorage.removeItem(t)}}catch{}}function BJ(){return vB}function FJ(){return bB}function cO(e){const t=fB(e);if(!t)return;const a=t===gB.aiBudgetExhausted?tv.budget||"This organization's AI allowance is used up.":tv.feature||"This organization's plan does not include that.";Fd.error(a,{id:`plan-refusal:${t}`})}const tv={feature:"",budget:""},Jl=new t7({queryCache:new pI({onError:cO}),mutationCache:new uI({onError:cO}),defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:(e,t)=>fB(t)===null&&hJ(t)===null&&e<1,gcTime:300*1e3}}});vJ(Jl);RJ(Jl);DJ(Jl);xJ(Jl);kJ(Jl);const eE=5*6e4;async function SB(){return(await(await fetch("/api/config")).json()).config}function TB(){const e=ye.c(1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:lo.publicConfig(),queryFn:SB,staleTime:eE},e[0]=t):t=e[0];const{data:a}=Yi(t);return a}function Uxe(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:lo.publicConfig(),queryFn:SB,staleTime:eE},e[0]=t):t=e[0],Ki(t).data}const xB=A.createContext(void 0);function jJ(e){const t=ye.c(3),{children:a}=e,o=TB();let n;return t[0]!==a||t[1]!==o.auth?(n=y.jsx(xB.Provider,{value:o.auth,children:a}),t[0]=a,t[1]=o.auth,t[2]=n):n=t[2],n}function $xe(){const e=A.useContext(xB);if(e===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return e}var zJ={},dO={};const wf=Object.create(null),Xu=e=>zJ||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?wf:globalThis),er=new Proxy(wf,{get(e,t){return Xu()[t]??wf[t]},has(e,t){return t in Xu()||t in wf},set(e,t,a){const o=Xu(!0);return o[t]=a,!0},deleteProperty(e,t){if(!t)return!1;const a=Xu(!0);return delete a[t],!0},ownKeys(){const e=Xu(!0);return Object.keys(e)}});function Ya(e,t){return typeof process<"u"&&dO?dO[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const ep=1,mo=4,Gr=8,Mn=24,uO={eterm:mo,cons25:mo,console:mo,cygwin:mo,dtterm:mo,gnome:mo,hurd:mo,jfbterm:mo,konsole:mo,kterm:mo,mlterm:mo,mosh:Mn,putty:mo,st:mo,"rxvt-unicode-24bit":Mn,terminator:Mn,"xterm-kitty":Mn},qJ=new Map(Object.entries({APPVEYOR:Gr,BUILDKITE:Gr,CIRCLECI:Mn,DRONE:Gr,GITEA_ACTIONS:Mn,GITHUB_ACTIONS:Mn,GITLAB_CI:Gr,TRAVIS:Gr})),UJ=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function $J(){if(Ya("FORCE_COLOR")!==void 0)switch(Ya("FORCE_COLOR")){case"":case"1":case"true":return mo;case"2":return Gr;case"3":return Mn;default:return ep}if(Ya("NODE_DISABLE_COLORS")!==void 0&&Ya("NODE_DISABLE_COLORS")!==""||Ya("NO_COLOR")!==void 0&&Ya("NO_COLOR")!==""||Ya("TERM")==="dumb")return ep;if(Ya("TMUX"))return Mn;if("TF_BUILD"in er&&"AGENT_NAME"in er)return mo;if("CI"in er){for(const{0:e,1:t}of qJ)if(e in er)return t;return Ya("CI_NAME")==="codeship"?Gr:ep}if("TEAMCITY_VERSION"in er)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Ya("TEAMCITY_VERSION"))!==null?mo:ep;switch(Ya("TERM_PROGRAM")){case"iTerm.app":return!Ya("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Ya("TERM_PROGRAM_VERSION"))!==null?Gr:Mn;case"HyperTerm":case"MacTerm":return Mn;case"Apple_Terminal":return Gr}if(Ya("COLORTERM")==="truecolor"||Ya("COLORTERM")==="24bit")return Mn;if(Ya("TERM")){if(/truecolor/.exec(Ya("TERM"))!==null)return Mn;if(/^xterm-256/.exec(Ya("TERM"))!==null)return Gr;const e=Ya("TERM").toLowerCase();if(uO[e])return uO[e];if(UJ.some(t=>t.exec(e)!==null))return mo}return Ya("COLORTERM")?mo:ep}const Wr={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"}},Lx=["debug","info","success","warn","error"];function VJ(e,t){return Lx.indexOf(t)>=Lx.indexOf(e)}const HJ={info:Wr.fg.blue,success:Wr.fg.green,warn:Wr.fg.yellow,error:Wr.fg.red,debug:Wr.fg.magenta},GJ=(e,t,a)=>{const o=new Date().toISOString();return a?`${Wr.dim}${o}${Wr.reset} ${HJ[e]}${e.toUpperCase()}${Wr.reset} ${Wr.bright}[Better Auth]:${Wr.reset} ${t}`:`${o} ${e.toUpperCase()} [Better Auth]: ${t}`},WJ=e=>{const t="warn",a=$J()!==1,o=(n,r,i=[])=>{if(!VJ(t,n))return;const c=GJ(n,r,a);{n==="error"?console.error(c,...i):n==="warn"?console.warn(c,...i):console.log(c,...i);return}};return{...Object.fromEntries(Lx.map(n=>[n,(...[r,...i])=>o(n,r,i)])),get level(){return t}}};WJ();function KJ(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Cp=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack=""}};function YJ(e){try{return(new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new Cp(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function QJ(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Cp(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof Cp?t:new Cp(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function AS(e,t="/api/auth"){if(QJ(e),YJ(e))return e;const a=e.replace(/\/+$/,"");return!t||t==="/"?a:(t=t.startsWith("/")?t:`/${t}`,`${a}${t}`)}function ZJ(e,t,a,o,n){if(e)return AS(e,t);{const r=er.BETTER_AUTH_URL||er.NEXT_PUBLIC_BETTER_AUTH_URL||er.PUBLIC_BETTER_AUTH_URL||er.NUXT_PUBLIC_BETTER_AUTH_URL||er.NUXT_PUBLIC_AUTH_URL||(er.BASE_URL!=="/"?er.BASE_URL:void 0);if(r)return AS(r,t)}if(typeof window<"u"&&window.location)return AS(window.location.origin,t)}const JJ={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}},XJ={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*:/},eX=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,pO={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},tX=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function aX(e){return e instanceof Date&&!isNaN(e.getTime())}function oX(e){const t=tX.exec(e);if(!t)return null;const[,a,o,n,r,i,c,d,u,m,h]=t,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 v=(parseInt(m,10)*60+parseInt(h,10))*(u==="+"?-1:1);f.setUTCMinutes(f.getUTCMinutes()+v)}return aX(f)?f:null}function nX(e,t={}){const{strict:a=!1,warnings:o=!1,reviver:n,parseDates:r=!0}=t;if(typeof e!="string")return e;const i=e.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 pO)return pO[c];if(!eX.test(i)){if(a)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(XJ).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=oX(m);if(h)return h}return n?n(u,m):m})}catch(d){if(a)throw d;return e}}function rX(e,t={strict:!0}){return nX(e,t)}let vr=[],bi=0;const jg=4,sX=globalThis.nanostoresGlobal||={epoch:0},Il=e=>{let t=[],a={get(){return a.lc||a.listen(()=>{})(),a.value},init:e,lc:0,listen(o){return a.lc=t.push(o),()=>{for(let r=bi+jg;r<vr.length;)vr[r]===o?vr.splice(r,jg):r+=jg;let n=t.indexOf(o);~n&&(t.splice(n,1),--a.lc||a.off())}},notify(o,n){sX.epoch++;let r=!vr.length;for(let i of t)vr.push(i,a.value,o,n);if(r){for(bi=0;bi<vr.length;bi+=jg)vr[bi](vr[bi+1],vr[bi+2],vr[bi+3]);vr.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:e};return a},iX=5,zg=6,qg=10;let lX=(e,t,a,o)=>(e.events=e.events||{},e.events[a+qg]||(e.events[a+qg]=o(n=>{e.events[a].reduceRight((r,i)=>(i(r),r),{shared:{},...n})})),e.events[a]=e.events[a]||[],e.events[a].push(t),()=>{let n=e.events[a],r=n.indexOf(t);n.splice(r,1),n.length||(delete e.events[a],e.events[a+qg](),delete e.events[a+qg])});const cX=1e3;let kB=(e,t)=>lX(e,o=>{let n=t(o);n&&e.events[zg].push(n)},iX,o=>{let n=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,o()),n(...i));let r=e.off;return e.events[zg]=[],e.off=()=>{r(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[zg])i();e.events[zg]=[]}},cX)},()=>{e.listen=n,e.off=r}});function dX(e,t,a){let o=new Set(t).add(void 0);return e.listen((n,r,i)=>{o.has(i)&&a(n,r,i)})}const uX=()=>typeof window>"u",fd=(e,t,a,o)=>{const n=Il({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(t,{...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,v=h.retryAttempt||0;f&&v<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)})});e=Array.isArray(e)?e:[e];let i=!1;for(const c of e)c.subscribe(async()=>{uX()||(i?await r():kB(n,()=>{const d=setTimeout(async()=>{i||(await r(),i=!0)},0);return()=>{n.off(),c.off(),clearTimeout(d)}}))});return n},RS=Symbol.for("better-auth:broadcast-channel"),pX=()=>Math.floor(Date.now()/1e3);var mX=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:pX()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const a=JSON.parse(t.newValue??"{}");a?.event!=="session"||!a?.data||this.listeners.forEach(o=>o(a))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function DS(e="better-auth.message"){return globalThis[RS]||(globalThis[RS]=new mX(e)),globalThis[RS]}const OS=Symbol.for("better-auth:focus-manager");var hX=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function mO(){return globalThis[OS]||(globalThis[OS]=new hX),globalThis[OS]}const NS=Symbol.for("better-auth:online-manager");var gX=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function MS(){return globalThis[NS]||(globalThis[NS]=new gX),globalThis[NS]}const Wc=()=>Math.floor(Date.now()/1e3),fX=5;function vX(e){const{sessionAtom:t,sessionSignal:a,$fetch:o,options:n={}}=e,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||MS().isOnline,m=k=>{if(!u())return;if(k?.event==="storage"){d.lastSync=Wc(),a.set(!a.get());return}const C=t.get();if(k?.event==="poll"){d.lastSessionRequest=Wc(),o("/get-session").then(E=>{E.error?t.set({...C,data:null,error:E.error}):t.set({...C,data:E.data,error:null}),d.lastSync=Wc(),a.set(!a.get())}).catch(()=>{});return}if(k?.event==="visibilitychange"){if(Wc()-d.lastSessionRequest<fX)return;d.lastSessionRequest=Wc()}(C?.data===null||C?.data===void 0||k?.event==="visibilitychange")&&(d.lastSync=Wc(),a.set(!a.get()))},h=k=>{DS().post({event:"session",data:{trigger:k},clientId:Math.random().toString(36).substring(7)})},f=()=>{r&&r>0&&(d.pollInterval=setInterval(()=>{t.get()?.data&&m({event:"poll"})},r*1e3))},v=()=>{d.unsubscribeBroadcast=DS().subscribe(()=>{m({event:"storage"})})},b=()=>{i&&(d.unsubscribeFocus=mO().subscribe(()=>{m({event:"visibilitychange"})}))},w=()=>{d.unsubscribeOnline=MS().subscribe(k=>{k&&m({event:"visibilitychange"})})};return{init:()=>{f(),v(),b(),w(),DS().setup(),mO().setup(),MS().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 bX(e,t){const a=Il(!1),o=fd(a,"/get-session",e,{method:"GET"});return kB(o,()=>{const n=vX({sessionAtom:o,sessionSignal:a,$fetch:e,options:t});return n.init(),()=>{n.cleanup()}}),{session:o,$sessionSignal:a}}function IS(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Bx(e,t,a=".",o){if(!IS(t))return Bx(e,{},a,o);const n={...t};for(const r of Object.keys(e)){if(r==="__proto__"||r==="constructor")continue;const i=e[r];i!=null&&(o&&o(n,r,i,a)||(Array.isArray(i)&&Array.isArray(n[r])?n[r]=[...i,...n[r]]:IS(i)&&IS(n[r])?n[r]=Bx(i,n[r],(a?`${a}.`:"")+r.toString(),o):n[r]=i))}return n}function yX(e){return(...t)=>t.reduce((a,o)=>Bx(a,o,"",e),{})}const wX=yX();var SX=Object.defineProperty,TX=Object.defineProperties,xX=Object.getOwnPropertyDescriptors,hO=Object.getOwnPropertySymbols,kX=Object.prototype.hasOwnProperty,EX=Object.prototype.propertyIsEnumerable,gO=(e,t,a)=>t in e?SX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Sr=(e,t)=>{for(var a in t||(t={}))kX.call(t,a)&&gO(e,a,t[a]);if(hO)for(var a of hO(t))EX.call(t,a)&&gO(e,a,t[a]);return e},$r=(e,t)=>TX(e,xX(t)),CX=class extends Error{constructor(e,t,a){super(t||e.toString(),{cause:a}),this.status=e,this.statusText=t,this.error=a,Error.captureStackTrace(this,this.constructor)}},PX=async(e,t)=>{var a,o,n,r,i,c;let d=t||{};const u={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:d,hooks:u};for(const m of t?.plugins||[]){if(m.init){const h=await((a=m.init)==null?void 0:a.call(m,e.toString(),t));d=h.options||d,e=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:e,options:d,hooks:u}},fO=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},_X=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function AX(e){if(typeof e=="number")return new fO({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new fO(e);case"exponential":return new _X(e);default:throw new Error("Invalid retry strategy")}}var RX=async e=>{const t={},a=async o=>typeof o=="function"?await o():o;if(e?.auth){if(e.auth.type==="Bearer"){const o=await a(e.auth.token);if(!o)return t;t.authorization=`Bearer ${o}`}else if(e.auth.type==="Basic"){const[o,n]=await Promise.all([a(e.auth.username),a(e.auth.password)]);if(!o||!n)return t;t.authorization=`Basic ${btoa(`${o}:${n}`)}`}else if(e.auth.type==="Custom"){const[o,n]=await Promise.all([a(e.auth.prefix),a(e.auth.value)]);if(!n)return t;t.authorization=`${o??""} ${n}`}}return t},DX=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function OX(e){const t=e.headers.get("content-type"),a=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const o=t.split(";").shift()||"";return DX.test(o)?"json":a.has(o)||o.startsWith("text/")?"text":"blob"}function NX(e){try{return JSON.parse(e),!0}catch{return!1}}function Fx(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function vO(e){try{return JSON.parse(e)}catch{return e}}function bO(e){return typeof e=="function"}function MX(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&bO(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&bO(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function IX(e){const t=new Headers(e?.headers),a=await RX(e);for(const[o,n]of Object.entries(a||{}))t.set(o,n);if(!t.has("content-type")){const o=LX(e?.body);o&&t.set("content-type",o)}return t}function LX(e){return Fx(e)?"application/json":null}function BX(e){if(!e?.body)return null;const t=new Headers(e?.headers);if(Fx(e.body)&&!t.has("content-type")){for(const[a,o]of Object.entries(e?.body))o instanceof Date&&(e.body[a]=o.toISOString());return JSON.stringify(e.body)}return t.has("content-type")&&t.get("content-type")==="application/x-www-form-urlencoded"&&Fx(e.body)?new URLSearchParams(e.body).toString():e.body}function FX(e,t){var a;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){const o=(a=e.split("@")[1])==null?void 0:a.split("/")[0];return CB.includes(o)?o.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function jX(e,t){let a;return!e?.signal&&e?.timeout&&(a=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:a,clearTimeout:()=>{a&&clearTimeout(a)}}}var zX=class EB extends Error{constructor(t,a){super(a||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,EB.prototype)}};async function Sf(e,t){const a=await e["~standard"].validate(t);if(a.issues)throw new zX(a.issues);return a.value}var CB=["get","post","put","patch","delete"],qX=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,a){var o,n,r,i;const c=((n=(o=e.plugins)==null?void 0:o.find(d=>{var u;return(u=d.schema)!=null&&u.config?t.startsWith(d.schema.config.baseURL||"")||t.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:n.schema)||e.schema;if(c){let d=t;(r=c.config)!=null&&r.prefix&&d.startsWith(c.config.prefix)&&(d=d.replace(c.config.prefix,""),c.config.baseURL&&(t=t.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=$r(Sr({},a),{method:u.method,output:u.output});return a?.disableValidation||(m=$r(Sr({},m),{body:u.input?await Sf(u.input,a?.body):a?.body,params:u.params?await Sf(u.params,a?.params):a?.params,query:u.query?await Sf(u.query,a?.query):a?.query})),{url:t,options:m}}}return{url:t,options:a}}}),UX=e=>{async function t(a,o){const n=$r(Sr(Sr({},e),o),{plugins:[...e?.plugins||[],qX(e||{}),...o?.plugins||[]]});if(e?.catchAllError)try{return await jx(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 jx(a,n)}return t};function $X(e,t){const{baseURL:a,params:o,query:n}=t||{query:{},params:{},baseURL:""};let r=e.startsWith("http")?e.split("/").slice(0,3).join("/"):a||"";if(e.startsWith("@")){const h=e.toString().split("@")[1].split("/")[0];CB.includes(h)&&(e=e.replace(`@${h}/`,"/"))}r.endsWith("/")||(r+="/");let[i,c]=e.replace(r,"").split("?");const d=new URLSearchParams(c);for(const[h,f]of Object.entries(n||{})){if(f==null)continue;let v;if(typeof f=="string")v=f;else if(Array.isArray(f)){for(const b of f)d.append(h,b);continue}else v=JSON.stringify(f);d.set(h,v)}if(o)if(Array.isArray(o)){const h=i.split("/").filter(f=>f.startsWith(":"));for(const[f,v]of h.entries()){const b=o[f];i=i.replace(v,b)}}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 jx=async(e,t)=>{var a,o,n,r,i,c,d,u;const{hooks:m,url:h,options:f}=await PX(e,t),v=MX(f),b=new AbortController,w=(a=f.signal)!=null?a:b.signal,x=$X(h,f),T=BX(f),k=await IX(f),C=FX(h,f);let E=$r(Sr({},f),{url:x,headers:k,body:T,method:C,signal:w});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=t?.body)==null?void 0:o.pipe)=="function")&&("duplex"in E||(E.duplex="half"));const{clearTimeout:_}=jX(f,b);let D=await v(E.url,E);_();const R={response:D,request:E};for(const F of m.onResponse)if(F){const W=await F($r(Sr({},R),{response:(n=t?.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:vO;ae.data=await K(H)}else ae.data=await D[W]();E?.output&&E.output&&!E.disableValidation&&(ae.data=await Sf(E.output,ae.data));for(const H of m.onSuccess)H&&await H($r(Sr({},ae),{response:(i=t?.hookOptions)!=null&&i.cloneResponse?D.clone():D}));return t?.throw?ae.data:{data:ae.data,error:null}}const O=(c=t?.jsonParser)!=null?c:vO,L=await D.text(),U=NX(L),B=U?await O(L):null,z={response:D,responseText:L,request:E,error:$r(Sr({},B),{status:D.status,statusText:D.statusText})};for(const F of m.onError)F&&await F($r(Sr({},z),{response:(d=t?.hookOptions)!=null&&d.cloneResponse?D.clone():D}));if(t?.retry){const F=AX(t.retry),W=(u=t.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 jx(e,$r(Sr({},t),{retryAttempt:W+1}))}}if(t?.throw)throw new CX(D.status,D.statusText,U?B:L);return{data:null,error:$r(Sr({},B),{status:D.status,statusText:D.statusText})}};const VX=(e,t)=>{const a="credentials"in Request.prototype,o=ZJ(e?.baseURL,e?.basePath)??"/api/auth",n=e?.plugins?.flatMap(E=>E.fetchPlugins).filter(E=>E!==void 0)||[],r={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:i,onError:c,onRequest:d,onResponse:u,...m}=e?.fetchOptions||{},h=UX({baseURL:o,...a?{credentials:"include"}:{},method:"GET",jsonParser(E){return E?rX(E,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[r,...m.plugins||[],...e?.disableDefaultFetchPlugins?[]:[JJ],...n]}),{$sessionSignal:f,session:v}=bX(h,e),b=e?.plugins||[];let w={};const x={$sessionSignal:f,session:v},T={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},k=[{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 b)E.getAtoms&&Object.assign(x,E.getAtoms?.(h)),E.pathMethods&&Object.assign(T,E.pathMethods),E.atomListeners&&k.push(...E.atomListeners);const C={notify:E=>{x[E].set(!x[E].get())},listen:(E,_)=>{x[E].subscribe(_)},atoms:x};for(const E of b)E.getActions&&(w=wX(E.getActions?.(h,C,e)??{},w));return{get baseURL(){return o},pluginsActions:w,pluginsAtoms:x,pluginPathMethods:T,atomListeners:k,$fetch:h,$store:C}};function HX(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function GX(e,t,a){const o=t[e],{fetchOptions:n,query:r,...i}=a||{};return o||(n?.method?n.method:i&&Object.keys(i).length>0?"POST":"GET")}function WX(e,t,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=e;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"||HX(m)?m:r(u)},apply:async(c,d,u)=>{const m="/"+i.map(k=>k.replace(/[A-Z]/g,C=>`-${C.toLowerCase()}`)).join("/"),h=u[0]||{},f=u[1]||{},{query:v,fetchOptions:b,...w}=h,x={...f,...b},T=GX(m,a,h);return await t(m,{...x,body:T==="GET"?void 0:{...w,...x?.body||{}},query:v||x?.query,method:T,async onSuccess(k){if(await x?.onSuccess?.(k),!n||x.disableSignal)return;const C=n.filter(_=>_.matcher(m));if(!C.length)return;const E=new Set;for(const _ of C){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 KX(e,t={}){const a=A.useRef(e.get()),{keys:o,deps:n=[e,o]}=t,r=A.useCallback(c=>{const d=u=>{a.current!==u&&(a.current=u,c())};return d(e.value),o?.length?dX(e,o,d):e.listen(d)},n),i=()=>a.current;return A.useSyncExternalStore(r,i,i)}function YX(e){return`use${KJ(e)}`}function QX(e){const{pluginPathMethods:t,pluginsActions:a,pluginsAtoms:o,$fetch:n,$store:r,atomListeners:i}=VX(e),c={};for(const[d,u]of Object.entries(o))c[YX(d)]=()=>KX(u);return WX({...a,...c,$fetch:n,$store:r},n,t,o,i)}function ZX(e){return{authorize(t,a="AND"){let o=!1;for(const[n,r]of Object.entries(t)){const i=e[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 Cp("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:e}}function PB(e){return{newRole(t){return ZX(t)},statements:e}}const JX={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},_B=PB(JX),AB=_B.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),RB=_B.newRole({user:[],session:[]}),XX={admin:AB,user:RB},eee=e=>{if(e.userId&&e.options?.adminUserIds?.includes(e.userId))return!0;if(!e.permissions&&!e.permission)return!1;const t=(e.role||e.options?.defaultRole||"user").split(","),a=e.options?.roles||XX;for(const o of t)if(a[o]?.authorize(e.permission??e.permissions)?.success)return!0;return!1},tee=e=>{const t={admin:AB,user:RB,...e?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:a=>eee({role:a.role,options:{ac:e?.ac,roles:t},permissions:a.permissions??a.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},aee=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:e=>e==="/email-otp/verify-email"||e==="/sign-in/email-otp",signal:"$sessionSignal"}]}),oee=()=>({id:"magic-link",$InferServerPlugin:{}}),nee={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},tE=PB(nee),DB=tE.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),OB=tE.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),NB=tE.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),ree={admin:DB,owner:OB,member:NB},see=(e,t)=>{if(!e.permissions&&!e.permission)return!1;const a=e.role.split(","),o=e.options.creatorRole||"owner",n=a.includes(o),r=e.allowCreatorAllPermissions||!1;if(n&&r)return!0;for(const i of a)if(t[i]?.authorize(e.permissions??e.permission)?.success)return!0;return!1},iee=e=>see(e,e.options.roles||ree),lee=e=>{const t=Il(!1),a=Il(!1),o=Il(!1),n=Il(!1),r={admin:DB,member:NB,owner:OB,...e?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(i,c,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:u=>iee({role:u.role,options:{ac:e?.ac,roles:r},permissions:u.permissions??u.permission})}}),getAtoms:i=>{const c=fd(t,"/organization/list",i,{method:"GET"});return{$listOrg:t,$activeOrgSignal:a,$activeMemberSignal:o,$activeMemberRoleSignal:n,activeOrganization:fd([a],"/organization/get-full-organization",i,()=>({method:"GET"})),listOrganizations:c,activeMember:fd([o],"/organization/get-active-member",i,{method:"GET"}),activeMemberRole:fd([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"}]}},cee="1.6.11",dee=e=>({id:"sso-client",version:cee,$InferServerPlugin:{},pathMethods:{"/sso/providers":"GET","/sso/get-provider":"GET"}});function Kr(e){const t=new Uint8Array(e);let a="";for(const n of t)a+=String.fromCharCode(n);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function av(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),a=(4-t.length%4)%4,o=t.padEnd(t.length+a,"="),n=atob(o),r=new ArrayBuffer(n.length),i=new Uint8Array(r);for(let c=0;c<n.length;c++)i[c]=n.charCodeAt(c);return r}function aE(){return uee.stubThis(globalThis?.PublicKeyCredential!==void 0&&typeof globalThis.PublicKeyCredential=="function")}const uee={stubThis:e=>e};function MB(e){const{id:t}=e;return{...e,id:av(t),transports:e.transports}}function IB(e){return e==="localhost"||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(e)}class ho extends Error{constructor({message:t,code:a,cause:o,name:n}){super(t,{cause:o}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=n??o.name,this.code=a}}function pee({error:e,options:t}){const{publicKey:a}=t;if(!a)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new ho({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(a.authenticatorSelection?.requireResidentKey===!0)return new ho({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&a.authenticatorSelection?.userVerification==="required")return new ho({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(a.authenticatorSelection?.userVerification==="required")return new ho({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new ho({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new ho({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return a.pubKeyCredParams.filter(n=>n.type==="public-key").length===0?new ho({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new ho({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=globalThis.location.hostname;if(IB(o)){if(a.rp.id!==o)return new ho({message:`The RP ID "${a.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new ho({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(a.user.id.byteLength<1||a.user.id.byteLength>64)return new ho({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new ho({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}class mee{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){const a=new Error("Cancelling existing WebAuthn API call for new one");a.name="AbortError",this.controller.abort(a)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const LB=new mee,hee=["cross-platform","platform"];function BB(e){if(e&&!(hee.indexOf(e)<0))return e}async function gee(e){!e.optionsJSON&&e.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});const{optionsJSON:t,useAutoRegister:a=!1}=e;if(!aE())throw new Error("WebAuthn is not supported in this browser");const o={...t,challenge:av(t.challenge),user:{...t.user,id:av(t.user.id)},excludeCredentials:t.excludeCredentials?.map(MB)},n={};a&&(n.mediation="conditional"),n.publicKey=o,n.signal=LB.createNewAbortSignal();let r;try{r=await navigator.credentials.create(n)}catch(b){throw pee({error:b,options:n})}if(!r)throw new Error("Registration was not completed");const{id:i,rawId:c,response:d,type:u}=r;let m;typeof d.getTransports=="function"&&(m=d.getTransports());let h;if(typeof d.getPublicKeyAlgorithm=="function")try{h=d.getPublicKeyAlgorithm()}catch(b){LS("getPublicKeyAlgorithm()",b)}let f;if(typeof d.getPublicKey=="function")try{const b=d.getPublicKey();b!==null&&(f=Kr(b))}catch(b){LS("getPublicKey()",b)}let v;if(typeof d.getAuthenticatorData=="function")try{v=Kr(d.getAuthenticatorData())}catch(b){LS("getAuthenticatorData()",b)}return{id:i,rawId:Kr(c),response:{attestationObject:Kr(d.attestationObject),clientDataJSON:Kr(d.clientDataJSON),transports:m,publicKeyAlgorithm:h,publicKey:f,authenticatorData:v},type:u,clientExtensionResults:r.getClientExtensionResults(),authenticatorAttachment:BB(r.authenticatorAttachment)}}function LS(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
55
+ deps: ${m}}`};const n={keyword:"dependencies",type:"object",schemaType:"object",error:e.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 v=m.let("missing");for(const b in u){const w=u[b];if(w.length===0)continue;const x=(0,o.propertyInData)(m,h,b,f.opts.ownProperties);d.setParams({property:b,depsCount:w.length,deps:w.join(", ")}),f.allErrors?m.if(x,()=>{for(const T of w)(0,o.checkReportMissingProp)(d,T)}):(m.if((0,t._)`${x} && (${(0,o.checkMissingProp)(d,w,v)})`),(0,o.reportMissingProp)(d,v),m.else())}}e.validatePropertyDeps=i;function c(d,u=d.schema){const{gen:m,data:h,keyword:f,it:v}=d,b=m.name("valid");for(const w in u)(0,a.alwaysValidSchema)(v,u[w])||(m.if((0,o.propertyInData)(m,h,w,v.opts.ownProperties),()=>{const x=d.subschema({keyword:f,schemaProp:w},b);d.mergeValidEvaluated(x,b)},()=>m.var(b,!0)),d.ok(b))}e.validateSchemaDeps=c,e.default=n})(CS)),CS}var Eg={},qD;function AZ(){if(qD)return Eg;qD=1,Object.defineProperty(Eg,"__esModule",{value:!0});const e=yt(),t=Ft(),o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:n})=>(0,e._)`{propertyName: ${n.propertyName}}`},code(n){const{gen:r,schema:i,data:c,it:d}=n;if((0,t.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,e.not)(u),()=>{n.error(!0),d.allErrors||r.break()})}),n.ok(u)}};return Eg.default=o,Eg}var Cg={},UD;function pB(){if(UD)return Cg;UD=1,Object.defineProperty(Cg,"__esModule",{value:!0});const e=Or(),t=yt(),a=Ji(),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,t._)`{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:v,opts:b}=f;if(f.props=!0,b.removeAdditional!=="all"&&(0,o.alwaysValidSchema)(f,d))return;const w=(0,e.allSchemaProperties)(u.properties),x=(0,e.allSchemaProperties)(u.patternProperties);T(),i.ok((0,t._)`${h} === ${a.default.errors}`);function T(){c.forIn("key",m,D=>{!w.length&&!x.length?E(D):c.if(k(D),()=>E(D))})}function k(D){let R;if(w.length>8){const O=(0,o.schemaRefOrVal)(f,u.properties,"properties");R=(0,e.isOwnProperty)(c,O,D)}else w.length?R=(0,t.or)(...w.map(O=>(0,t._)`${D} === ${O}`)):R=t.nil;return x.length&&(R=(0,t.or)(R,...x.map(O=>(0,t._)`${(0,e.usePattern)(i,O)}.test(${D})`))),(0,t.not)(R)}function C(D){c.code((0,t._)`delete ${m}[${D}]`)}function E(D){if(b.removeAdditional==="all"||b.removeAdditional&&d===!1){C(D);return}if(d===!1){i.setParams({additionalProperty:D}),i.error(),v||c.break();return}if(typeof d=="object"&&!(0,o.alwaysValidSchema)(f,d)){const R=c.name("valid");b.removeAdditional==="failing"?(_(D,R,!1),c.if((0,t.not)(R),()=>{i.reset(),C(D)})):(_(D,R),v||c.if((0,t.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 Cg.default=r,Cg}var Pg={},$D;function RZ(){if($D)return Pg;$D=1,Object.defineProperty(Pg,"__esModule",{value:!0});const e=sb(),t=Or(),a=Ft(),o=pB(),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 e.KeywordCxt(m,o.default,"additionalProperties"));const h=(0,t.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 v=i.name("valid");for(const x of f)b(x)?w(x):(i.if((0,t.propertyInData)(i,u,x,m.opts.ownProperties)),w(x),m.allErrors||i.else().var(v,!0),i.endIf()),r.it.definedProperties.add(x),r.ok(v);function b(x){return m.opts.useDefaults&&!m.compositeRule&&c[x].default!==void 0}function w(x){r.subschema({keyword:"properties",schemaProp:x,dataProp:x},v)}}};return Pg.default=n,Pg}var _g={},VD;function DZ(){if(VD)return _g;VD=1,Object.defineProperty(_g,"__esModule",{value:!0});const e=Or(),t=yt(),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,e.allSchemaProperties)(c),v=f.filter(E=>(0,a.alwaysValidSchema)(m,c[E]));if(f.length===0||v.length===f.length&&(!m.opts.unevaluated||m.props===!0))return;const b=h.strictSchema&&!h.allowMatchingProperties&&u.properties,w=i.name("valid");m.props!==!0&&!(m.props instanceof t.Name)&&(m.props=(0,o.evaluatedPropsToName)(i,m.props));const{props:x}=m;T();function T(){for(const E of f)b&&k(E),m.allErrors?C(E):(i.var(w,!0),C(E),i.if(w))}function k(E){for(const _ in b)new RegExp(E).test(_)&&(0,a.checkStrictMode)(m,`property ${_} matches pattern ${E} (use allowMatchingProperties)`)}function C(E){i.forIn("key",d,_=>{i.if((0,t._)`${(0,e.usePattern)(r,E)}.test(${_})`,()=>{const D=v.includes(E);D||r.subschema({keyword:"patternProperties",schemaProp:E,dataProp:_,dataPropType:o.Type.Str},w),m.opts.unevaluated&&x!==!0?i.assign((0,t._)`${x}[${_}]`,!0):!D&&!m.allErrors&&i.if((0,t.not)(w),()=>i.break())})})}}};return _g.default=n,_g}var Ag={},HD;function OZ(){if(HD)return Ag;HD=1,Object.defineProperty(Ag,"__esModule",{value:!0});const e=Ft(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(a){const{gen:o,schema:n,it:r}=a;if((0,e.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 Ag.default=t,Ag}var Rg={},GD;function NZ(){if(GD)return Rg;GD=1,Object.defineProperty(Rg,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Or().validateUnion,error:{message:"must match a schema in anyOf"}};return Rg.default=t,Rg}var Dg={},WD;function MZ(){if(WD)return Dg;WD=1,Object.defineProperty(Dg,"__esModule",{value:!0});const e=yt(),t=Ft(),o={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:n})=>(0,e._)`{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(v),n.result(m,()=>n.reset(),()=>n.error(!0));function v(){u.forEach((b,w)=>{let x;(0,t.alwaysValidSchema)(d,b)?r.var(f,!0):x=n.subschema({keyword:"oneOf",schemaProp:w,compositeRule:!0},f),w>0&&r.if((0,e._)`${f} && ${m}`).assign(m,!1).assign(h,(0,e._)`[${h}, ${w}]`).else(),r.if(f,()=>{r.assign(m,!0),r.assign(h,w),x&&n.mergeEvaluated(x,e.Name)})})}}};return Dg.default=o,Dg}var Og={},KD;function IZ(){if(KD)return Og;KD=1,Object.defineProperty(Og,"__esModule",{value:!0});const e=Ft(),t={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,e.alwaysValidSchema)(r,c))return;const u=a.subschema({keyword:"allOf",schemaProp:d},i);a.ok(i),a.mergeEvaluated(u)})}};return Og.default=t,Og}var Ng={},YD;function LZ(){if(YD)return Ng;YD=1,Object.defineProperty(Ng,"__esModule",{value:!0});const e=yt(),t=Ft(),o={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>(0,e.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,e._)`{failingKeyword: ${r.ifClause}}`},code(r){const{gen:i,parentSchema:c,it:d}=r;c.then===void 0&&c.else===void 0&&(0,t.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(v(),r.reset(),u&&m){const w=i.let("ifClause");r.setParams({ifClause:w}),i.if(f,b("then",w),b("else",w))}else u?i.if(f,b("then")):i.if((0,e.not)(f),b("else"));r.pass(h,()=>r.error(!0));function v(){const w=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},f);r.mergeEvaluated(w)}function b(w,x){return()=>{const T=r.subschema({keyword:w},f);i.assign(h,f),r.mergeValidEvaluated(T,h),x?i.assign(x,(0,e._)`${w}`):r.setParams({ifClause:w})}}}};function n(r,i){const c=r.schema[i];return c!==void 0&&!(0,t.alwaysValidSchema)(r,c)}return Ng.default=o,Ng}var Mg={},QD;function BZ(){if(QD)return Mg;QD=1,Object.defineProperty(Mg,"__esModule",{value:!0});const e=Ft(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:a,parentSchema:o,it:n}){o.if===void 0&&(0,e.checkStrictMode)(n,`"${a}" without "if" is ignored`)}};return Mg.default=t,Mg}var ZD;function FZ(){if(ZD)return Sg;ZD=1,Object.defineProperty(Sg,"__esModule",{value:!0});const e=dB(),t=EZ(),a=uB(),o=CZ(),n=PZ(),r=_Z(),i=AZ(),c=pB(),d=RZ(),u=DZ(),m=OZ(),h=NZ(),f=MZ(),v=IZ(),b=LZ(),w=BZ();function x(T=!1){const k=[m.default,h.default,f.default,v.default,b.default,w.default,i.default,c.default,r.default,d.default,u.default];return T?k.push(t.default,o.default):k.push(e.default,a.default),k.push(n.default),k}return Sg.default=x,Sg}var Ig={},Lg={},JD;function jZ(){if(JD)return Lg;JD=1,Object.defineProperty(Lg,"__esModule",{value:!0});const e=yt(),a={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,e.str)`must match format "${o}"`,params:({schemaCode:o})=>(0,e._)`{format: ${o}}`},code(o,n){const{gen:r,data:i,$data:c,schema:d,schemaCode:u,it:m}=o,{opts:h,errSchemaPath:f,schemaEnv:v,self:b}=m;if(!h.validateFormats)return;c?w():x();function w(){const T=r.scopeValue("formats",{ref:b.formats,code:h.code.formats}),k=r.const("fDef",(0,e._)`${T}[${u}]`),C=r.let("fType"),E=r.let("format");r.if((0,e._)`typeof ${k} == "object" && !(${k} instanceof RegExp)`,()=>r.assign(C,(0,e._)`${k}.type || "string"`).assign(E,(0,e._)`${k}.validate`),()=>r.assign(C,(0,e._)`"string"`).assign(E,k)),o.fail$data((0,e.or)(_(),D()));function _(){return h.strictSchema===!1?e.nil:(0,e._)`${u} && !${E}`}function D(){const R=v.$async?(0,e._)`(${k}.async ? await ${E}(${i}) : ${E}(${i}))`:(0,e._)`${E}(${i})`,O=(0,e._)`(typeof ${E} == "function" ? ${R} : ${E}.test(${i}))`;return(0,e._)`${E} && ${E} !== true && ${C} === ${n} && !${O}`}}function x(){const T=b.formats[d];if(!T){_();return}if(T===!0)return;const[k,C,E]=D(T);k===n&&o.pass(R());function _(){if(h.strictSchema===!1){b.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,e.regexpCode)(O):h.code.formats?(0,e._)`${h.code.formats}${(0,e.getProperty)(d)}`:void 0,U=r.scopeValue("formats",{key:d,ref:O,code:L});return typeof O=="object"&&!(O instanceof RegExp)?[O.type||"string",O.validate,(0,e._)`${U}.validate`]:["string",O,U]}function R(){if(typeof T=="object"&&!(T instanceof RegExp)&&T.async){if(!v.$async)throw new Error("async format in sync schema");return(0,e._)`await ${E}(${i})`}return typeof C=="function"?(0,e._)`${E}(${i})`:(0,e._)`${E}.test(${i})`}}}};return Lg.default=a,Lg}var XD;function zZ(){if(XD)return Ig;XD=1,Object.defineProperty(Ig,"__esModule",{value:!0});const t=[jZ().default];return Ig.default=t,Ig}var Tl={},eO;function qZ(){return eO||(eO=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 tO;function UZ(){if(tO)return rg;tO=1,Object.defineProperty(rg,"__esModule",{value:!0});const e=pZ(),t=kZ(),a=FZ(),o=zZ(),n=qZ(),r=[e.default,t.default,(0,a.default)(),o.default,n.metadataVocabulary,n.contentVocabulary];return rg.default=r,rg}var Bg={},Ju={},aO;function $Z(){if(aO)return Ju;aO=1,Object.defineProperty(Ju,"__esModule",{value:!0}),Ju.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Ju.DiscrError=e={})),Ju}var oO;function VZ(){if(oO)return Bg;oO=1,Object.defineProperty(Bg,"__esModule",{value:!0});const e=yt(),t=$Z(),a=Yk(),o=ib(),n=Ft(),i={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:c,tagName:d}})=>c===t.DiscrError.Tag?`tag "${d}" must be string`:`value of tag "${d}" must be in oneOf`,params:({params:{discrError:c,tag:d,tagName:u}})=>(0,e._)`{error: ${c}, tag: ${u}, tagValue: ${d}}`},code(c){const{gen:d,data:u,schema:m,parentSchema:h,it:f}=c,{oneOf:v}=h;if(!f.opts.discriminator)throw new Error("discriminator: requires discriminator option");const b=m.propertyName;if(typeof b!="string")throw new Error("discriminator: requires propertyName");if(m.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const w=d.let("valid",!1),x=d.const("tag",(0,e._)`${u}${(0,e.getProperty)(b)}`);d.if((0,e._)`typeof ${x} == "string"`,()=>T(),()=>c.error(!1,{discrError:t.DiscrError.Tag,tag:x,tagName:b})),c.ok(w);function T(){const E=C();d.if(!1);for(const _ in E)d.elseIf((0,e._)`${x} === ${_}`),d.assign(w,k(E[_]));d.else(),c.error(!1,{discrError:t.DiscrError.Mapping,tag:x,tagName:b}),d.endIf()}function k(E){const _=d.name("valid"),D=c.subschema({keyword:"oneOf",schemaProp:E},_);return c.mergeEvaluated(D,e.Name),_}function C(){var E;const _={},D=O(h);let R=!0;for(let B=0;B<v.length;B++){let z=v[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[b];if(typeof F!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${b}"`);R=R&&(D||O(z)),L(F,B)}if(!R)throw new Error(`discriminator: "${b}" must be required`);return _;function O({required:B}){return Array.isArray(B)&&B.includes(b)}function L(B,z){if(B.const)U(B.const,z);else if(B.enum)for(const F of B.enum)U(F,z);else throw new Error(`discriminator: "properties/${b}" must have "const" or "enum"`)}function U(B,z){if(typeof B!="string"||B in _)throw new Error(`discriminator: "${b}" values must be unique strings`);_[B]=z}}}};return Bg.default=i,Bg}const HZ="http://json-schema.org/draft-07/schema#",GZ="http://json-schema.org/draft-07/schema#",WZ="Core schema meta-schema",KZ={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:[]}},YZ=["object","boolean"],QZ={$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:"#"}},ZZ={$schema:HZ,$id:GZ,title:WZ,definitions:KZ,type:YZ,properties:QZ,default:!0};var nO;function JZ(){return nO||(nO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const a=cZ(),o=UZ(),n=VZ(),r=ZZ,i=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends a.default{_addVocabularies(){super._addVocabularies(),o.default.forEach(b=>this.addVocabulary(b)),this.opts.discriminator&&this.addKeyword(n.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const b=this.opts.$data?this.$dataMetaSchema(r,i):r;this.addMetaSchema(b,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=d,e.exports=t=d,e.exports.Ajv=d,Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var u=sb();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var m=yt();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return m._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return m.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return m.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return m.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return m.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return m.CodeGen}});var h=Kk();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=ib();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(eg,eg.exports)),eg.exports}var Fg={exports:{}},PS={},rO;function XZ(){return rO||(rO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(B,z){return{validate:B,compare:z}}e.fullFormats={date:t(r,i),time:t(d(!0),u),"date-time":t(f(!0),v),"iso-time":t(d(),m),"iso-date-time":t(f(),b),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:T,"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:U,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:C,int32:{type:"number",validate:D},int64:{type:"number",validate:R},float:{type:"number",validate:O},double:{type:"number",validate:O},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,i),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"date-time":t(/^\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,v),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,m),"iso-date-time":t(/^\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,b),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},e.formatNames=Object.keys(e.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,Z=+(W[6]||0),M=+(W[7]||0);if(Z>23||M>59||B&&!J)return!1;if(ae<=23&&H<=59&&K<60)return!0;const G=H-M*se,V=ae-Z*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 v(B,z){if(!(B&&z))return;const F=new Date(B).valueOf(),W=new Date(z).valueOf();if(F&&W)return F-W}function b(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 w=/\/|:/,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 T(B){return w.test(B)&&x.test(B)}const k=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function C(B){return k.lastIndex=0,k.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 U(B){if(L.test(B))return!1;try{return new RegExp(B),!0}catch{return!1}}})(PS)),PS}var _S={},sO;function eJ(){return sO||(sO=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=JZ(),a=yt(),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}}`};e.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:v,self:b}=f;if(!v.validateFormats)return;const w=new t.KeywordCxt(f,b.RULES.all.format.definition,"format");w.$data?x():T();function x(){const C=d.scopeValue("formats",{ref:b.formats,code:v.code.formats}),E=d.const("fmt",(0,a._)`${C}[${w.schemaCode}]`);c.fail$data((0,a.or)((0,a._)`typeof ${E} != "object"`,(0,a._)`${E} instanceof RegExp`,(0,a._)`typeof ${E}.compare != "function"`,k(E)))}function T(){const C=w.schema,E=b.formats[C];if(!E||E===!0)return;if(typeof E!="object"||E instanceof RegExp||typeof E.compare!="function")throw new Error(`"${h}": format "${C}" does not define "compare" function`);const _=d.scopeValue("formats",{key:C,ref:E,code:v.code.formats?(0,a._)`${v.code.formats}${(0,a.getProperty)(C)}`:void 0});c.fail$data(k(_))}function k(C){return(0,a._)`${C}.compare(${u}, ${m}) ${n[h].fail} 0`}},dependencies:["format"]};const i=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=i})(_S)),_S}var iO;function tJ(){return iO||(iO=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const a=XZ(),o=eJ(),n=yt(),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],v=m.formats||a.formatNames;return d(u,v,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 v,b;(v=(b=u.opts.code).formats)!==null&&v!==void 0||(b.formats=(0,n._)`require("ajv-formats/dist/formats").${f}`);for(const w of m)u.addFormat(w,h[w])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(Fg,Fg.exports)),Fg.exports}var aJ=tJ();const Axe=Yl(aJ);function oJ({studioUrl:e,meshUrl:t},a){return e??t??a}let Zk;Zk=globalThis.crypto;async function nJ(e){return(await Zk).getRandomValues(new Uint8Array(e))}async function rJ(e){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",a=Math.pow(2,8)-Math.pow(2,8)%t.length;let o="";for(;o.length<e;){const n=await nJ(e-o.length);for(const r of n)r<a&&(o+=t[r%t.length])}return o}async function sJ(e){return await rJ(e)}async function iJ(e){const t=await(await Zk).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Rxe(e){if(e||(e=43),e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;const t=await sJ(e),a=await iJ(t);return{code_verifier:t,code_challenge:a}}const Po=yL().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:iK.custom,message:"URL must be parseable",fatal:!0}),m7}).refine(e=>{const t=new URL(e);return t.protocol!=="javascript:"&&t.protocol!=="data:"&&t.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Dxe=_o({resource:$().url(),authorization_servers:je(Po).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()}),lJ=_o({issuer:$(),authorization_endpoint:Po,token_endpoint:Po,registration_endpoint:Po.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:Po.optional(),revocation_endpoint:Po.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()}),cJ=_o({issuer:$(),authorization_endpoint:Po,token_endpoint:Po,userinfo_endpoint:Po.optional(),jwks_uri:Po,registration_endpoint:Po.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:Po.optional(),op_tos_uri:Po.optional(),client_id_metadata_document_supported:Vt().optional()}),Oxe=Se({...cJ.shape,...lJ.pick({code_challenge_methods_supported:!0}).shape}),Nxe=Se({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:PL().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),Mxe=Se({error:$(),error_description:$().optional(),error_uri:$().optional()}),lO=Po.optional().or(Ze("").transform(()=>{})),dJ=Se({redirect_uris:je(Po),token_endpoint_auth_method:$().optional(),grant_types:je($()).optional(),response_types:je($()).optional(),client_name:$().optional(),client_uri:Po.optional(),logo_uri:lO,scope:$().optional(),contacts:je($()).optional(),tos_uri:lO,policy_uri:$().optional(),jwks_uri:Po.optional(),jwks:NW().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),uJ=Se({client_id:$(),client_secret:$().optional(),client_id_issued_at:Lt().optional(),client_secret_expires_at:Lt().optional()}).strip(),Ixe=dJ.merge(uJ);Se({error:$(),error_description:$().optional()}).strip();Se({token:$(),token_type_hint:$().optional()}).strip();class No extends Error{constructor(t,a){super(t),this.errorUri=a,this.name=this.constructor.name}toResponseObject(){const t={error:this.errorCode,error_description:this.message};return this.errorUri&&(t.error_uri=this.errorUri),t}get errorCode(){return this.constructor.errorCode}}class bx extends No{}bx.errorCode="invalid_request";class yx extends No{}yx.errorCode="invalid_client";class wx extends No{}wx.errorCode="invalid_grant";class Sx extends No{}Sx.errorCode="unauthorized_client";class Tx extends No{}Tx.errorCode="unsupported_grant_type";class xx extends No{}xx.errorCode="invalid_scope";class kx extends No{}kx.errorCode="access_denied";class Ex extends No{}Ex.errorCode="server_error";class Cx extends No{}Cx.errorCode="temporarily_unavailable";class Px extends No{}Px.errorCode="unsupported_response_type";class _x extends No{}_x.errorCode="unsupported_token_type";class Ax extends No{}Ax.errorCode="invalid_token";class Rx extends No{}Rx.errorCode="method_not_allowed";class Dx extends No{}Dx.errorCode="too_many_requests";class Ox extends No{}Ox.errorCode="invalid_client_metadata";class Nx extends No{}Nx.errorCode="insufficient_scope";class Mx extends No{}Mx.errorCode="invalid_target";const Lxe={[bx.errorCode]:bx,[yx.errorCode]:yx,[wx.errorCode]:wx,[Sx.errorCode]:Sx,[Tx.errorCode]:Tx,[xx.errorCode]:xx,[kx.errorCode]:kx,[Ex.errorCode]:Ex,[Cx.errorCode]:Cx,[Px.errorCode]:Px,[_x.errorCode]:_x,[Ax.errorCode]:Ax,[Rx.errorCode]:Rx,[Dx.errorCode]:Dx,[Ox.errorCode]:Ox,[Nx.errorCode]:Nx,[Mx.errorCode]:Mx};async function mB(e){if(!e.getServerCapabilities()?.resources)return{resources:[]};try{return await e.listResources()}catch(a){if(a instanceof ob&&a.code===$p.MethodNotFound)return{resources:[]};throw a}}async function pJ(e,t){return await e.readResource({uri:t})}function Bxe(e){const t=ye.c(12);let a,o;t[0]!==e?({client:a,...o}=e,t[0]=e,t[1]=a,t[2]=o):(a=t[1],o=t[2]);let n;t[3]!==a?(n=lo.mcpResourcesList(a),t[3]=a,t[4]=n):n=t[4];let r;t[5]!==a?(r=()=>mB(a),t[5]=a,t[6]=r):r=t[6];const i=o.staleTime??3e4;let c;return t[7]!==o||t[8]!==n||t[9]!==r||t[10]!==i?(c={...o,queryKey:n,queryFn:r,staleTime:i,retry:!1},t[7]=o,t[8]=n,t[9]=r,t[10]=i,t[11]=c):c=t[11],Yi(c)}function Fxe(e){const t=ye.c(12);let a,o;t[0]!==e?({client:a,...o}=e,t[0]=e,t[1]=a,t[2]=o):(a=t[1],o=t[2]);let n;t[3]!==a?(n=lo.mcpResourcesList(a),t[3]=a,t[4]=n):n=t[4];let r;t[5]!==a?(r=()=>mB(a),t[5]=a,t[6]=r):r=t[6];const i=o.staleTime??3e4;let c;return t[7]!==o||t[8]!==n||t[9]!==r||t[10]!==i?(c={...o,queryKey:n,queryFn:r,staleTime:i,retry:!1},t[7]=o,t[8]=n,t[9]=r,t[10]=i,t[11]=c):c=t[11],Ki(c)}function jxe(e){const t=ye.c(15);let a,o,n;t[0]!==e?({client:a,uri:n,...o}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=n):(a=t[1],o=t[2],n=t[3]);let r;t[4]!==a||t[5]!==n?(r=lo.mcpReadResource(a,n),t[4]=a,t[5]=n,t[6]=r):r=t[6];let i;t[7]!==a||t[8]!==n?(i=()=>pJ(a,n),t[7]=a,t[8]=n,t[9]=i):i=t[9];const c=o.staleTime??3e4;let d;return t[10]!==o||t[11]!==r||t[12]!==i||t[13]!==c?(d={...o,queryKey:r,queryFn:i,staleTime:c,retry:!1},t[10]=o,t[11]=r,t[12]=i,t[13]=c,t[14]=d):d=t[14],Yi(d)}const hB="ui-resource-html";function zxe(e){const t=ye.c(22);let a,o,n,r,i,c;t[0]!==e?({orgSlug:n,connectionId:a,uri:c,studioUrl:i,meshUrl:o,...r}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=n,t[4]=r,t[5]=i,t[6]=c):(a=t[1],o=t[2],n=t[3],r=t[4],i=t[5],c=t[6]);let d;t[7]!==a||t[8]!==n||t[9]!==c?(d=lo.mcpUiResourceHtml(n,a,c),t[7]=a,t[8]=n,t[9]=c,t[10]=d):d=t[10];let u;t[11]!==a||t[12]!==o||t[13]!==n||t[14]!==i||t[15]!==c?(u=async()=>{const v=`${oJ({studioUrl:i,meshUrl:o},typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(n)}/mcp/${encodeURIComponent(a)}/ui-resource?uri=${encodeURIComponent(c)}`,b=await fetch(v,{credentials:"include"});if(!b.ok)throw new Error(`Failed to read UI resource (${b.status})`);return b.text()},t[11]=a,t[12]=o,t[13]=n,t[14]=i,t[15]=c,t[16]=u):u=t[16];const m=r.staleTime??3e4;let h;return t[17]!==r||t[18]!==d||t[19]!==u||t[20]!==m?(h={...r,queryKey:d,queryFn:u,staleTime:m,retry:!1},t[17]=r,t[18]=d,t[19]=u,t[20]=m,t[21]=h):h=t[21],Yi(h)}const gB={featureNotInPlan:"feature_not_in_plan",aiBudgetExhausted:"ai_budget_exhausted"};class Jf extends Error{constructor(t,a,o,n){super(t),this.status=a,this.code=o,this.retryAfterMs=n,this.name="StudioToolError"}status;code;retryAfterMs}function fB(e){return e instanceof Jf&&Object.values(gB).includes(e.code??"")?e.code:null}const mJ=6e4;function hJ(e){return!(e instanceof Jf)||e.status!==429?null:e.retryAfterMs??mJ}function gJ(e,t){if(typeof t=="object"&&t!==null&&"retryAfterMs"in t&&typeof t.retryAfterMs=="number"&&Number.isFinite(t.retryAfterMs))return Math.max(0,t.retryAfterMs);const a=e.headers.get("retry-after"),o=a?Number(a):Number.NaN;return Number.isFinite(o)?Math.max(0,o*1e3):void 0}async function fJ(e,t,a){const o=await fetch(`/api/${encodeURIComponent(e)}/tools/${encodeURIComponent(t)}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(a??{})});if(!o.ok){let n=`${t} failed (${o.status})`,r,i=null;try{i=await o.json();const c=i;c?.error&&(n=c.error),typeof c?.code=="string"&&(r=c.code)}catch{}throw new Jf(n,o.status,r,o.status===429?gJ(o,i):void 0)}try{return await o.json()}catch{throw new Jf(`${t} returned a non-JSON response`,o.status)}}function Jk(){const e=ye.c(5),{org:t}=Zi(),a=t.slug;let o;e[0]!==a?(o=(r,i)=>fJ(a,r,i),e[0]=a,e[1]=o):o=e[1];let n;return e[2]!==a||e[3]!==o?(n={orgSlug:a,call:o},e[2]=a,e[3]=o,e[4]=n):n=e[4],n}function vJ(e){for(const t of["content-revision","content-versions","content-changes","content-draft-tombstones","content-index"])e.getQueryDefaults([t]).gcTime!==1/0&&e.setQueryDefaults([t],{gcTime:1/0})}const bJ="studio-ui-resources",Xf="html",yJ=10080*60*1e3,wJ=50,SJ=16*1024*1024;function TJ(e){return e[0]==="mcp"&&e[1]===hB}function lb(){return new Promise((e,t)=>{const a=indexedDB.open(bJ,1);a.onupgradeneeded=()=>{a.result.objectStoreNames.contains(Xf)||a.result.createObjectStore(Xf)},a.onsuccess=()=>e(a.result),a.onerror=()=>t(a.error)})}function jd(e,t){return e.transaction(Xf,t).objectStore(Xf)}function Ix(e){return new Promise((t,a)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>a(e.error)})}async function xJ(e){if(!(typeof indexedDB>"u"))try{const t=await lb(),a=jd(t,"readonly"),o=await Ix(a.getAllKeys()),n=await Ix(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>yJ||d>=wJ){c.push(u);continue}d++;try{const f=JSON.parse(String(u));e.getQueryData(f)===void 0&&e.setQueryData(f,m.html,{updatedAt:0})}catch{c.push(u)}}if(c.length>0){const u=jd(t,"readwrite");for(const m of c)u.delete(m)}}catch{}}function kJ(e){if(typeof indexedDB>"u")return()=>{};const t=lb().catch(()=>null);return e.getQueryCache().subscribe(a=>{const o=a.query;if(!Array.isArray(o.queryKey)||!TJ(o.queryKey)||o.state.status!=="success")return;const n=o.state.data;typeof n!="string"||n.length>SJ||t.then(r=>{if(r)try{jd(r,"readwrite").put({html:n,updatedAt:Date.now()},JSON.stringify(o.queryKey))}catch{}})})}function EJ(){typeof indexedDB>"u"||lb().then(e=>jd(e,"readwrite").clear()).catch(()=>{})}async function qxe(e){if(!(typeof indexedDB>"u"))try{const t=await lb(),a=await Ix(jd(t,"readonly").getAllKeys()),o=jd(t,"readwrite");for(const n of a)try{const r=JSON.parse(String(n));r[1]===hB&&r[3]===e&&o.delete(n)}catch{}}catch{}}const ev="studio:rq-cache",Xk=1440*60*1e3,CJ=1e3,PJ=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions","order-monitor"]),_J=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let vB=!1,bB=!1;function AJ(e){const t=e[0];return typeof t=="string"&&PJ.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&_J.has(e[4])}function RJ(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(ev);if(!t)return;const a=JSON.parse(t),o=!a.timestamp||Date.now()-a.timestamp>Xk;if(a.buster!=="4.619.9"||o||!a.state){window.localStorage.removeItem(ev);return}VV(e,a.state),e.invalidateQueries({queryKey:lo.publicConfig(),refetchType:"none"}),vB=!0}catch{LJ()}}function DJ(e){if(typeof window>"u")return()=>{};let t=null;const a=()=>{t=null;try{const r=$V(e,{shouldDehydrateQuery:i=>i.state.status==="success"&&AJ(i.queryKey)});window.localStorage.setItem(ev,JSON.stringify({buster:"4.619.9",timestamp:Date.now(),state:r}))}catch{}},o=e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(a,CJ))}),n=()=>{t!=null&&(clearTimeout(t),a())};return window.addEventListener("pagehide",n),()=>{t!=null&&clearTimeout(t),window.removeEventListener("pagehide",n),o()}}const yB="studio:org-cache:",OJ=20;function NJ(e){const t=Date.now(),a=Object.entries(e).filter(([,o])=>t-o.updatedAt<=Xk);for(a.sort(([,o],[,n])=>o.updatedAt-n.updatedAt);a.length>OJ;)a.shift();return Object.fromEntries(a)}function wB(e){return`${yB}${e}`}function MJ(e,t){if(typeof window>"u")return null;try{const a=window.localStorage.getItem(wB(e));if(!a)return null;const o=JSON.parse(a)[t];return!o||Date.now()-o.updatedAt>Xk?null:(bB=!0,o)}catch{return null}}function IJ(e,t,a){if(!(typeof window>"u"))try{const o=wB(e),n=window.localStorage.getItem(o),r=n?JSON.parse(n):{};r[t]={data:a,updatedAt:Date.now()},window.localStorage.setItem(o,JSON.stringify(NJ(r)))}catch{}}function LJ(){if(EJ(),!(typeof window>"u"))try{window.localStorage.removeItem(ev);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(yB)&&window.localStorage.removeItem(t)}}catch{}}function BJ(){return vB}function FJ(){return bB}function cO(e){const t=fB(e);if(!t)return;const a=t===gB.aiBudgetExhausted?tv.budget||"This organization's AI allowance is used up.":tv.feature||"This organization's plan does not include that.";Fd.error(a,{id:`plan-refusal:${t}`})}const tv={feature:"",budget:""},Jl=new t7({queryCache:new pI({onError:cO}),mutationCache:new uI({onError:cO}),defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:(e,t)=>fB(t)===null&&hJ(t)===null&&e<1,gcTime:300*1e3}}});vJ(Jl);RJ(Jl);DJ(Jl);xJ(Jl);kJ(Jl);const eE=5*6e4;async function SB(){return(await(await fetch("/api/config")).json()).config}function TB(){const e=ye.c(1);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:lo.publicConfig(),queryFn:SB,staleTime:eE},e[0]=t):t=e[0];const{data:a}=Yi(t);return a}function Uxe(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={queryKey:lo.publicConfig(),queryFn:SB,staleTime:eE},e[0]=t):t=e[0],Ki(t).data}const xB=A.createContext(void 0);function jJ(e){const t=ye.c(3),{children:a}=e,o=TB();let n;return t[0]!==a||t[1]!==o.auth?(n=y.jsx(xB.Provider,{value:o.auth,children:a}),t[0]=a,t[1]=o.auth,t[2]=n):n=t[2],n}function $xe(){const e=A.useContext(xB);if(e===void 0)throw new Error("useAuthConfig must be used within AuthConfigProvider");return e}var zJ={},dO={};const wf=Object.create(null),Xu=e=>zJ||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?wf:globalThis),er=new Proxy(wf,{get(e,t){return Xu()[t]??wf[t]},has(e,t){return t in Xu()||t in wf},set(e,t,a){const o=Xu(!0);return o[t]=a,!0},deleteProperty(e,t){if(!t)return!1;const a=Xu(!0);return delete a[t],!0},ownKeys(){const e=Xu(!0);return Object.keys(e)}});function Ya(e,t){return typeof process<"u"&&dO?dO[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const ep=1,mo=4,Gr=8,Mn=24,uO={eterm:mo,cons25:mo,console:mo,cygwin:mo,dtterm:mo,gnome:mo,hurd:mo,jfbterm:mo,konsole:mo,kterm:mo,mlterm:mo,mosh:Mn,putty:mo,st:mo,"rxvt-unicode-24bit":Mn,terminator:Mn,"xterm-kitty":Mn},qJ=new Map(Object.entries({APPVEYOR:Gr,BUILDKITE:Gr,CIRCLECI:Mn,DRONE:Gr,GITEA_ACTIONS:Mn,GITHUB_ACTIONS:Mn,GITLAB_CI:Gr,TRAVIS:Gr})),UJ=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function $J(){if(Ya("FORCE_COLOR")!==void 0)switch(Ya("FORCE_COLOR")){case"":case"1":case"true":return mo;case"2":return Gr;case"3":return Mn;default:return ep}if(Ya("NODE_DISABLE_COLORS")!==void 0&&Ya("NODE_DISABLE_COLORS")!==""||Ya("NO_COLOR")!==void 0&&Ya("NO_COLOR")!==""||Ya("TERM")==="dumb")return ep;if(Ya("TMUX"))return Mn;if("TF_BUILD"in er&&"AGENT_NAME"in er)return mo;if("CI"in er){for(const{0:e,1:t}of qJ)if(e in er)return t;return Ya("CI_NAME")==="codeship"?Gr:ep}if("TEAMCITY_VERSION"in er)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Ya("TEAMCITY_VERSION"))!==null?mo:ep;switch(Ya("TERM_PROGRAM")){case"iTerm.app":return!Ya("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Ya("TERM_PROGRAM_VERSION"))!==null?Gr:Mn;case"HyperTerm":case"MacTerm":return Mn;case"Apple_Terminal":return Gr}if(Ya("COLORTERM")==="truecolor"||Ya("COLORTERM")==="24bit")return Mn;if(Ya("TERM")){if(/truecolor/.exec(Ya("TERM"))!==null)return Mn;if(/^xterm-256/.exec(Ya("TERM"))!==null)return Gr;const e=Ya("TERM").toLowerCase();if(uO[e])return uO[e];if(UJ.some(t=>t.exec(e)!==null))return mo}return Ya("COLORTERM")?mo:ep}const Wr={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"}},Lx=["debug","info","success","warn","error"];function VJ(e,t){return Lx.indexOf(t)>=Lx.indexOf(e)}const HJ={info:Wr.fg.blue,success:Wr.fg.green,warn:Wr.fg.yellow,error:Wr.fg.red,debug:Wr.fg.magenta},GJ=(e,t,a)=>{const o=new Date().toISOString();return a?`${Wr.dim}${o}${Wr.reset} ${HJ[e]}${e.toUpperCase()}${Wr.reset} ${Wr.bright}[Better Auth]:${Wr.reset} ${t}`:`${o} ${e.toUpperCase()} [Better Auth]: ${t}`},WJ=e=>{const t="warn",a=$J()!==1,o=(n,r,i=[])=>{if(!VJ(t,n))return;const c=GJ(n,r,a);{n==="error"?console.error(c,...i):n==="warn"?console.warn(c,...i):console.log(c,...i);return}};return{...Object.fromEntries(Lx.map(n=>[n,(...[r,...i])=>o(n,r,i)])),get level(){return t}}};WJ();function KJ(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Cp=class extends Error{constructor(e,t){super(e,t),this.name="BetterAuthError",this.message=e,this.stack=""}};function YJ(e){try{return(new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new Cp(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function QJ(e){try{const t=new URL(e);if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Cp(`Invalid base URL: ${e}. URL must include 'http://' or 'https://'`)}catch(t){throw t instanceof Cp?t:new Cp(`Invalid base URL: ${e}. Please provide a valid base URL.`,{cause:t})}}function AS(e,t="/api/auth"){if(QJ(e),YJ(e))return e;const a=e.replace(/\/+$/,"");return!t||t==="/"?a:(t=t.startsWith("/")?t:`/${t}`,`${a}${t}`)}function ZJ(e,t,a,o,n){if(e)return AS(e,t);{const r=er.BETTER_AUTH_URL||er.NEXT_PUBLIC_BETTER_AUTH_URL||er.PUBLIC_BETTER_AUTH_URL||er.NUXT_PUBLIC_BETTER_AUTH_URL||er.NUXT_PUBLIC_AUTH_URL||(er.BASE_URL!=="/"?er.BASE_URL:void 0);if(r)return AS(r,t)}if(typeof window<"u"&&window.location)return AS(window.location.origin,t)}const JJ={id:"redirect",name:"Redirect",hooks:{onSuccess(e){if(e.data?.url&&e.data?.redirect&&typeof window<"u"&&window.location&&window.location)try{window.location.href=e.data.url}catch{}}}},XJ={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*:/},eX=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,pO={true:!0,false:!1,null:null,undefined:void 0,nan:NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},tX=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function aX(e){return e instanceof Date&&!isNaN(e.getTime())}function oX(e){const t=tX.exec(e);if(!t)return null;const[,a,o,n,r,i,c,d,u,m,h]=t,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 v=(parseInt(m,10)*60+parseInt(h,10))*(u==="+"?-1:1);f.setUTCMinutes(f.getUTCMinutes()+v)}return aX(f)?f:null}function nX(e,t={}){const{strict:a=!1,warnings:o=!1,reviver:n,parseDates:r=!0}=t;if(typeof e!="string")return e;const i=e.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 pO)return pO[c];if(!eX.test(i)){if(a)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(XJ).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=oX(m);if(h)return h}return n?n(u,m):m})}catch(d){if(a)throw d;return e}}function rX(e,t={strict:!0}){return nX(e,t)}let vr=[],bi=0;const jg=4,sX=globalThis.nanostoresGlobal||={epoch:0},Il=e=>{let t=[],a={get(){return a.lc||a.listen(()=>{})(),a.value},init:e,lc:0,listen(o){return a.lc=t.push(o),()=>{for(let r=bi+jg;r<vr.length;)vr[r]===o?vr.splice(r,jg):r+=jg;let n=t.indexOf(o);~n&&(t.splice(n,1),--a.lc||a.off())}},notify(o,n){sX.epoch++;let r=!vr.length;for(let i of t)vr.push(i,a.value,o,n);if(r){for(bi=0;bi<vr.length;bi+=jg)vr[bi](vr[bi+1],vr[bi+2],vr[bi+3]);vr.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:e};return a},iX=5,zg=6,qg=10;let lX=(e,t,a,o)=>(e.events=e.events||{},e.events[a+qg]||(e.events[a+qg]=o(n=>{e.events[a].reduceRight((r,i)=>(i(r),r),{shared:{},...n})})),e.events[a]=e.events[a]||[],e.events[a].push(t),()=>{let n=e.events[a],r=n.indexOf(t);n.splice(r,1),n.length||(delete e.events[a],e.events[a+qg](),delete e.events[a+qg])});const cX=1e3;let kB=(e,t)=>lX(e,o=>{let n=t(o);n&&e.events[zg].push(n)},iX,o=>{let n=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,o()),n(...i));let r=e.off;return e.events[zg]=[],e.off=()=>{r(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[zg])i();e.events[zg]=[]}},cX)},()=>{e.listen=n,e.off=r}});function dX(e,t,a){let o=new Set(t).add(void 0);return e.listen((n,r,i)=>{o.has(i)&&a(n,r,i)})}const uX=()=>typeof window>"u",fd=(e,t,a,o)=>{const n=Il({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(t,{...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,v=h.retryAttempt||0;f&&v<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)})});e=Array.isArray(e)?e:[e];let i=!1;for(const c of e)c.subscribe(async()=>{uX()||(i?await r():kB(n,()=>{const d=setTimeout(async()=>{i||(await r(),i=!0)},0);return()=>{n.off(),c.off(),clearTimeout(d)}}))});return n},RS=Symbol.for("better-auth:broadcast-channel"),pX=()=>Math.floor(Date.now()/1e3);var mX=class{listeners=new Set;name;constructor(e="better-auth.message"){this.name=e}subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}post(e){if(!(typeof window>"u"))try{localStorage.setItem(this.name,JSON.stringify({...e,timestamp:pX()}))}catch{}}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=t=>{if(t.key!==this.name)return;const a=JSON.parse(t.newValue??"{}");a?.event!=="session"||!a?.data||this.listeners.forEach(o=>o(a))};return window.addEventListener("storage",e),()=>{window.removeEventListener("storage",e)}}};function DS(e="better-auth.message"){return globalThis[RS]||(globalThis[RS]=new mX(e)),globalThis[RS]}const OS=Symbol.for("better-auth:focus-manager");var hX=class{listeners=new Set;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setFocused(e){this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof document>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>{document.visibilityState==="visible"&&this.setFocused(!0)};return document.addEventListener("visibilitychange",e,!1),()=>{document.removeEventListener("visibilitychange",e,!1)}}};function mO(){return globalThis[OS]||(globalThis[OS]=new hX),globalThis[OS]}const NS=Symbol.for("better-auth:online-manager");var gX=class{listeners=new Set;isOnline=typeof navigator<"u"?navigator.onLine:!0;subscribe(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}setOnline(e){this.isOnline=e,this.listeners.forEach(t=>t(e))}setup(){if(typeof window>"u"||typeof window.addEventListener>"u")return()=>{};const e=()=>this.setOnline(!0),t=()=>this.setOnline(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e,!1),window.removeEventListener("offline",t,!1)}}};function MS(){return globalThis[NS]||(globalThis[NS]=new gX),globalThis[NS]}const Wc=()=>Math.floor(Date.now()/1e3),fX=5;function vX(e){const{sessionAtom:t,sessionSignal:a,$fetch:o,options:n={}}=e,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||MS().isOnline,m=k=>{if(!u())return;if(k?.event==="storage"){d.lastSync=Wc(),a.set(!a.get());return}const C=t.get();if(k?.event==="poll"){d.lastSessionRequest=Wc(),o("/get-session").then(E=>{E.error?t.set({...C,data:null,error:E.error}):t.set({...C,data:E.data,error:null}),d.lastSync=Wc(),a.set(!a.get())}).catch(()=>{});return}if(k?.event==="visibilitychange"){if(Wc()-d.lastSessionRequest<fX)return;d.lastSessionRequest=Wc()}(C?.data===null||C?.data===void 0||k?.event==="visibilitychange")&&(d.lastSync=Wc(),a.set(!a.get()))},h=k=>{DS().post({event:"session",data:{trigger:k},clientId:Math.random().toString(36).substring(7)})},f=()=>{r&&r>0&&(d.pollInterval=setInterval(()=>{t.get()?.data&&m({event:"poll"})},r*1e3))},v=()=>{d.unsubscribeBroadcast=DS().subscribe(()=>{m({event:"storage"})})},b=()=>{i&&(d.unsubscribeFocus=mO().subscribe(()=>{m({event:"visibilitychange"})}))},w=()=>{d.unsubscribeOnline=MS().subscribe(k=>{k&&m({event:"visibilitychange"})})};return{init:()=>{f(),v(),b(),w(),DS().setup(),mO().setup(),MS().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 bX(e,t){const a=Il(!1),o=fd(a,"/get-session",e,{method:"GET"});return kB(o,()=>{const n=vX({sessionAtom:o,sessionSignal:a,$fetch:e,options:t});return n.init(),()=>{n.cleanup()}}),{session:o,$sessionSignal:a}}function IS(e){if(e===null||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);return t!==null&&t!==Object.prototype&&Object.getPrototypeOf(t)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function Bx(e,t,a=".",o){if(!IS(t))return Bx(e,{},a,o);const n={...t};for(const r of Object.keys(e)){if(r==="__proto__"||r==="constructor")continue;const i=e[r];i!=null&&(o&&o(n,r,i,a)||(Array.isArray(i)&&Array.isArray(n[r])?n[r]=[...i,...n[r]]:IS(i)&&IS(n[r])?n[r]=Bx(i,n[r],(a?`${a}.`:"")+r.toString(),o):n[r]=i))}return n}function yX(e){return(...t)=>t.reduce((a,o)=>Bx(a,o,"",e),{})}const wX=yX();var SX=Object.defineProperty,TX=Object.defineProperties,xX=Object.getOwnPropertyDescriptors,hO=Object.getOwnPropertySymbols,kX=Object.prototype.hasOwnProperty,EX=Object.prototype.propertyIsEnumerable,gO=(e,t,a)=>t in e?SX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,Sr=(e,t)=>{for(var a in t||(t={}))kX.call(t,a)&&gO(e,a,t[a]);if(hO)for(var a of hO(t))EX.call(t,a)&&gO(e,a,t[a]);return e},$r=(e,t)=>TX(e,xX(t)),CX=class extends Error{constructor(e,t,a){super(t||e.toString(),{cause:a}),this.status=e,this.statusText=t,this.error=a,Error.captureStackTrace(this,this.constructor)}},PX=async(e,t)=>{var a,o,n,r,i,c;let d=t||{};const u={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:d,hooks:u};for(const m of t?.plugins||[]){if(m.init){const h=await((a=m.init)==null?void 0:a.call(m,e.toString(),t));d=h.options||d,e=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:e,options:d,hooks:u}},fO=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(){return this.options.delay}},_X=class{constructor(e){this.options=e}shouldAttemptRetry(e,t){return this.options.shouldRetry?Promise.resolve(e<this.options.attempts&&this.options.shouldRetry(t)):Promise.resolve(e<this.options.attempts)}getDelay(e){return Math.min(this.options.maxDelay,this.options.baseDelay*2**e)}};function AX(e){if(typeof e=="number")return new fO({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new fO(e);case"exponential":return new _X(e);default:throw new Error("Invalid retry strategy")}}var RX=async e=>{const t={},a=async o=>typeof o=="function"?await o():o;if(e?.auth){if(e.auth.type==="Bearer"){const o=await a(e.auth.token);if(!o)return t;t.authorization=`Bearer ${o}`}else if(e.auth.type==="Basic"){const[o,n]=await Promise.all([a(e.auth.username),a(e.auth.password)]);if(!o||!n)return t;t.authorization=`Basic ${btoa(`${o}:${n}`)}`}else if(e.auth.type==="Custom"){const[o,n]=await Promise.all([a(e.auth.prefix),a(e.auth.value)]);if(!n)return t;t.authorization=`${o??""} ${n}`}}return t},DX=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function OX(e){const t=e.headers.get("content-type"),a=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const o=t.split(";").shift()||"";return DX.test(o)?"json":a.has(o)||o.startsWith("text/")?"text":"blob"}function NX(e){try{return JSON.parse(e),!0}catch{return!1}}function Fx(e){if(e===void 0)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"||t===null?!0:t!=="object"?!1:Array.isArray(e)?!0:e.buffer?!1:e.constructor&&e.constructor.name==="Object"||typeof e.toJSON=="function"}function vO(e){try{return JSON.parse(e)}catch{return e}}function bO(e){return typeof e=="function"}function MX(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&bO(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&bO(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function IX(e){const t=new Headers(e?.headers),a=await RX(e);for(const[o,n]of Object.entries(a||{}))t.set(o,n);if(!t.has("content-type")){const o=LX(e?.body);o&&t.set("content-type",o)}return t}function LX(e){return Fx(e)?"application/json":null}function BX(e){if(!e?.body)return null;const t=new Headers(e?.headers);if(Fx(e.body)&&!t.has("content-type")){for(const[a,o]of Object.entries(e?.body))o instanceof Date&&(e.body[a]=o.toISOString());return JSON.stringify(e.body)}return t.has("content-type")&&t.get("content-type")==="application/x-www-form-urlencoded"&&Fx(e.body)?new URLSearchParams(e.body).toString():e.body}function FX(e,t){var a;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){const o=(a=e.split("@")[1])==null?void 0:a.split("/")[0];return CB.includes(o)?o.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function jX(e,t){let a;return!e?.signal&&e?.timeout&&(a=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:a,clearTimeout:()=>{a&&clearTimeout(a)}}}var zX=class EB extends Error{constructor(t,a){super(a||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,EB.prototype)}};async function Sf(e,t){const a=await e["~standard"].validate(t);if(a.issues)throw new zX(a.issues);return a.value}var CB=["get","post","put","patch","delete"],qX=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,a){var o,n,r,i;const c=((n=(o=e.plugins)==null?void 0:o.find(d=>{var u;return(u=d.schema)!=null&&u.config?t.startsWith(d.schema.config.baseURL||"")||t.startsWith(d.schema.config.prefix||""):!1}))==null?void 0:n.schema)||e.schema;if(c){let d=t;(r=c.config)!=null&&r.prefix&&d.startsWith(c.config.prefix)&&(d=d.replace(c.config.prefix,""),c.config.baseURL&&(t=t.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=$r(Sr({},a),{method:u.method,output:u.output});return a?.disableValidation||(m=$r(Sr({},m),{body:u.input?await Sf(u.input,a?.body):a?.body,params:u.params?await Sf(u.params,a?.params):a?.params,query:u.query?await Sf(u.query,a?.query):a?.query})),{url:t,options:m}}}return{url:t,options:a}}}),UX=e=>{async function t(a,o){const n=$r(Sr(Sr({},e),o),{plugins:[...e?.plugins||[],qX(e||{}),...o?.plugins||[]]});if(e?.catchAllError)try{return await jx(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 jx(a,n)}return t};function $X(e,t){const{baseURL:a,params:o,query:n}=t||{query:{},params:{},baseURL:""};let r=e.startsWith("http")?e.split("/").slice(0,3).join("/"):a||"";if(e.startsWith("@")){const h=e.toString().split("@")[1].split("/")[0];CB.includes(h)&&(e=e.replace(`@${h}/`,"/"))}r.endsWith("/")||(r+="/");let[i,c]=e.replace(r,"").split("?");const d=new URLSearchParams(c);for(const[h,f]of Object.entries(n||{})){if(f==null)continue;let v;if(typeof f=="string")v=f;else if(Array.isArray(f)){for(const b of f)d.append(h,b);continue}else v=JSON.stringify(f);d.set(h,v)}if(o)if(Array.isArray(o)){const h=i.split("/").filter(f=>f.startsWith(":"));for(const[f,v]of h.entries()){const b=o[f];i=i.replace(v,b)}}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 jx=async(e,t)=>{var a,o,n,r,i,c,d,u;const{hooks:m,url:h,options:f}=await PX(e,t),v=MX(f),b=new AbortController,w=(a=f.signal)!=null?a:b.signal,x=$X(h,f),T=BX(f),k=await IX(f),C=FX(h,f);let E=$r(Sr({},f),{url:x,headers:k,body:T,method:C,signal:w});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=t?.body)==null?void 0:o.pipe)=="function")&&("duplex"in E||(E.duplex="half"));const{clearTimeout:_}=jX(f,b);let D=await v(E.url,E);_();const R={response:D,request:E};for(const F of m.onResponse)if(F){const W=await F($r(Sr({},R),{response:(n=t?.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:vO;ae.data=await K(H)}else ae.data=await D[W]();E?.output&&E.output&&!E.disableValidation&&(ae.data=await Sf(E.output,ae.data));for(const H of m.onSuccess)H&&await H($r(Sr({},ae),{response:(i=t?.hookOptions)!=null&&i.cloneResponse?D.clone():D}));return t?.throw?ae.data:{data:ae.data,error:null}}const O=(c=t?.jsonParser)!=null?c:vO,L=await D.text(),U=NX(L),B=U?await O(L):null,z={response:D,responseText:L,request:E,error:$r(Sr({},B),{status:D.status,statusText:D.statusText})};for(const F of m.onError)F&&await F($r(Sr({},z),{response:(d=t?.hookOptions)!=null&&d.cloneResponse?D.clone():D}));if(t?.retry){const F=AX(t.retry),W=(u=t.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 jx(e,$r(Sr({},t),{retryAttempt:W+1}))}}if(t?.throw)throw new CX(D.status,D.statusText,U?B:L);return{data:null,error:$r(Sr({},B),{status:D.status,statusText:D.statusText})}};const VX=(e,t)=>{const a="credentials"in Request.prototype,o=ZJ(e?.baseURL,e?.basePath)??"/api/auth",n=e?.plugins?.flatMap(E=>E.fetchPlugins).filter(E=>E!==void 0)||[],r={id:"lifecycle-hooks",name:"lifecycle-hooks",hooks:{onSuccess:e?.fetchOptions?.onSuccess,onError:e?.fetchOptions?.onError,onRequest:e?.fetchOptions?.onRequest,onResponse:e?.fetchOptions?.onResponse}},{onSuccess:i,onError:c,onRequest:d,onResponse:u,...m}=e?.fetchOptions||{},h=UX({baseURL:o,...a?{credentials:"include"}:{},method:"GET",jsonParser(E){return E?rX(E,{strict:!1}):null},customFetchImpl:fetch,...m,plugins:[r,...m.plugins||[],...e?.disableDefaultFetchPlugins?[]:[JJ],...n]}),{$sessionSignal:f,session:v}=bX(h,e),b=e?.plugins||[];let w={};const x={$sessionSignal:f,session:v},T={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"},k=[{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 b)E.getAtoms&&Object.assign(x,E.getAtoms?.(h)),E.pathMethods&&Object.assign(T,E.pathMethods),E.atomListeners&&k.push(...E.atomListeners);const C={notify:E=>{x[E].set(!x[E].get())},listen:(E,_)=>{x[E].subscribe(_)},atoms:x};for(const E of b)E.getActions&&(w=wX(E.getActions?.(h,C,e)??{},w));return{get baseURL(){return o},pluginsActions:w,pluginsAtoms:x,pluginPathMethods:T,atomListeners:k,$fetch:h,$store:C}};function HX(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function GX(e,t,a){const o=t[e],{fetchOptions:n,query:r,...i}=a||{};return o||(n?.method?n.method:i&&Object.keys(i).length>0?"POST":"GET")}function WX(e,t,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=e;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"||HX(m)?m:r(u)},apply:async(c,d,u)=>{const m="/"+i.map(k=>k.replace(/[A-Z]/g,C=>`-${C.toLowerCase()}`)).join("/"),h=u[0]||{},f=u[1]||{},{query:v,fetchOptions:b,...w}=h,x={...f,...b},T=GX(m,a,h);return await t(m,{...x,body:T==="GET"?void 0:{...w,...x?.body||{}},query:v||x?.query,method:T,async onSuccess(k){if(await x?.onSuccess?.(k),!n||x.disableSignal)return;const C=n.filter(_=>_.matcher(m));if(!C.length)return;const E=new Set;for(const _ of C){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 KX(e,t={}){const a=A.useRef(e.get()),{keys:o,deps:n=[e,o]}=t,r=A.useCallback(c=>{const d=u=>{a.current!==u&&(a.current=u,c())};return d(e.value),o?.length?dX(e,o,d):e.listen(d)},n),i=()=>a.current;return A.useSyncExternalStore(r,i,i)}function YX(e){return`use${KJ(e)}`}function QX(e){const{pluginPathMethods:t,pluginsActions:a,pluginsAtoms:o,$fetch:n,$store:r,atomListeners:i}=VX(e),c={};for(const[d,u]of Object.entries(o))c[YX(d)]=()=>KX(u);return WX({...a,...c,$fetch:n,$store:r},n,t,o,i)}function ZX(e){return{authorize(t,a="AND"){let o=!1;for(const[n,r]of Object.entries(t)){const i=e[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 Cp("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:e}}function PB(e){return{newRole(t){return ZX(t)},statements:e}}const JX={user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]},_B=PB(JX),AB=_B.newRole({user:["create","list","set-role","ban","impersonate","delete","set-password","get","update"],session:["list","revoke","delete"]}),RB=_B.newRole({user:[],session:[]}),XX={admin:AB,user:RB},eee=e=>{if(e.userId&&e.options?.adminUserIds?.includes(e.userId))return!0;if(!e.permissions&&!e.permission)return!1;const t=(e.role||e.options?.defaultRole||"user").split(","),a=e.options?.roles||XX;for(const o of t)if(a[o]?.authorize(e.permission??e.permissions)?.success)return!0;return!1},tee=e=>{const t={admin:AB,user:RB,...e?.roles};return{id:"admin-client",$InferServerPlugin:{},getActions:()=>({admin:{checkRolePermission:a=>eee({role:a.role,options:{ac:e?.ac,roles:t},permissions:a.permissions??a.permission})}}),pathMethods:{"/admin/list-users":"GET","/admin/stop-impersonating":"POST"}}},aee=()=>({id:"email-otp",$InferServerPlugin:{},atomListeners:[{matcher:e=>e==="/email-otp/verify-email"||e==="/sign-in/email-otp",signal:"$sessionSignal"}]}),oee=()=>({id:"magic-link",$InferServerPlugin:{}}),nee={organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]},tE=PB(nee),DB=tE.newRole({organization:["update"],invitation:["create","cancel"],member:["create","update","delete"],team:["create","update","delete"],ac:["create","read","update","delete"]}),OB=tE.newRole({organization:["update","delete"],member:["create","update","delete"],invitation:["create","cancel"],team:["create","update","delete"],ac:["create","read","update","delete"]}),NB=tE.newRole({organization:[],member:[],invitation:[],team:[],ac:["read"]}),ree={admin:DB,owner:OB,member:NB},see=(e,t)=>{if(!e.permissions&&!e.permission)return!1;const a=e.role.split(","),o=e.options.creatorRole||"owner",n=a.includes(o),r=e.allowCreatorAllPermissions||!1;if(n&&r)return!0;for(const i of a)if(t[i]?.authorize(e.permissions??e.permission)?.success)return!0;return!1},iee=e=>see(e,e.options.roles||ree),lee=e=>{const t=Il(!1),a=Il(!1),o=Il(!1),n=Il(!1),r={admin:DB,member:NB,owner:OB,...e?.roles};return{id:"organization",$InferServerPlugin:{},getActions:(i,c,d)=>({$Infer:{ActiveOrganization:{},Organization:{},Invitation:{},Member:{},Team:{}},organization:{checkRolePermission:u=>iee({role:u.role,options:{ac:e?.ac,roles:r},permissions:u.permissions??u.permission})}}),getAtoms:i=>{const c=fd(t,"/organization/list",i,{method:"GET"});return{$listOrg:t,$activeOrgSignal:a,$activeMemberSignal:o,$activeMemberRoleSignal:n,activeOrganization:fd([a],"/organization/get-full-organization",i,()=>({method:"GET"})),listOrganizations:c,activeMember:fd([o],"/organization/get-active-member",i,{method:"GET"}),activeMemberRole:fd([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"}]}},cee="1.6.11",dee=e=>({id:"sso-client",version:cee,$InferServerPlugin:{},pathMethods:{"/sso/providers":"GET","/sso/get-provider":"GET"}});function Kr(e){const t=new Uint8Array(e);let a="";for(const n of t)a+=String.fromCharCode(n);return btoa(a).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function av(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),a=(4-t.length%4)%4,o=t.padEnd(t.length+a,"="),n=atob(o),r=new ArrayBuffer(n.length),i=new Uint8Array(r);for(let c=0;c<n.length;c++)i[c]=n.charCodeAt(c);return r}function aE(){return uee.stubThis(globalThis?.PublicKeyCredential!==void 0&&typeof globalThis.PublicKeyCredential=="function")}const uee={stubThis:e=>e};function MB(e){const{id:t}=e;return{...e,id:av(t),transports:e.transports}}function IB(e){return e==="localhost"||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(e)}class ho extends Error{constructor({message:t,code:a,cause:o,name:n}){super(t,{cause:o}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=n??o.name,this.code=a}}function pee({error:e,options:t}){const{publicKey:a}=t;if(!a)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new ho({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(a.authenticatorSelection?.requireResidentKey===!0)return new ho({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&a.authenticatorSelection?.userVerification==="required")return new ho({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(a.authenticatorSelection?.userVerification==="required")return new ho({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new ho({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new ho({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return a.pubKeyCredParams.filter(n=>n.type==="public-key").length===0?new ho({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new ho({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){const o=globalThis.location.hostname;if(IB(o)){if(a.rp.id!==o)return new ho({message:`The RP ID "${a.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new ho({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(a.user.id.byteLength<1||a.user.id.byteLength>64)return new ho({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new ho({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}class mee{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){const a=new Error("Cancelling existing WebAuthn API call for new one");a.name="AbortError",this.controller.abort(a)}const t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){const t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}}const LB=new mee,hee=["cross-platform","platform"];function BB(e){if(e&&!(hee.indexOf(e)<0))return e}async function gee(e){!e.optionsJSON&&e.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});const{optionsJSON:t,useAutoRegister:a=!1}=e;if(!aE())throw new Error("WebAuthn is not supported in this browser");const o={...t,challenge:av(t.challenge),user:{...t.user,id:av(t.user.id)},excludeCredentials:t.excludeCredentials?.map(MB)},n={};a&&(n.mediation="conditional"),n.publicKey=o,n.signal=LB.createNewAbortSignal();let r;try{r=await navigator.credentials.create(n)}catch(b){throw pee({error:b,options:n})}if(!r)throw new Error("Registration was not completed");const{id:i,rawId:c,response:d,type:u}=r;let m;typeof d.getTransports=="function"&&(m=d.getTransports());let h;if(typeof d.getPublicKeyAlgorithm=="function")try{h=d.getPublicKeyAlgorithm()}catch(b){LS("getPublicKeyAlgorithm()",b)}let f;if(typeof d.getPublicKey=="function")try{const b=d.getPublicKey();b!==null&&(f=Kr(b))}catch(b){LS("getPublicKey()",b)}let v;if(typeof d.getAuthenticatorData=="function")try{v=Kr(d.getAuthenticatorData())}catch(b){LS("getAuthenticatorData()",b)}return{id:i,rawId:Kr(c),response:{attestationObject:Kr(d.attestationObject),clientDataJSON:Kr(d.clientDataJSON),transports:m,publicKeyAlgorithm:h,publicKey:f,authenticatorData:v},type:u,clientExtensionResults:r.getClientExtensionResults(),authenticatorAttachment:BB(r.authenticatorAttachment)}}function LS(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
56
56
  `,t)}function fee(){if(!aE())return BS.stubThis(new Promise(t=>t(!1)));const e=globalThis.PublicKeyCredential;return e?.isConditionalMediationAvailable===void 0?BS.stubThis(new Promise(t=>t(!1))):BS.stubThis(e.isConditionalMediationAvailable())}const BS={stubThis:e=>e};function vee({error:e,options:t}){const{publicKey:a}=t;if(!a)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new ho({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new ho({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){const o=globalThis.location.hostname;if(IB(o)){if(a.rpId!==o)return new ho({message:`The RP ID "${a.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new ho({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new ho({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}async function bee(e){!e.optionsJSON&&e.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});const{optionsJSON:t,useBrowserAutofill:a=!1,verifyBrowserAutofillInput:o=!0}=e;if(!aE())throw new Error("WebAuthn is not supported in this browser");let n;t.allowCredentials?.length!==0&&(n=t.allowCredentials?.map(MB));const r={...t,challenge:av(t.challenge),allowCredentials:n},i={};if(a){if(!await fee())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&o)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');i.mediation="conditional",r.allowCredentials=[]}i.publicKey=r,i.signal=LB.createNewAbortSignal();let c;try{c=await navigator.credentials.get(i)}catch(v){throw vee({error:v,options:i})}if(!c)throw new Error("Authentication was not completed");const{id:d,rawId:u,response:m,type:h}=c;let f;return m.userHandle&&(f=Kr(m.userHandle)),{id:d,rawId:Kr(u),response:{authenticatorData:Kr(m.authenticatorData),clientDataJSON:Kr(m.clientDataJSON),signature:Kr(m.signature),userHandle:f},type:h,clientExtensionResults:c.getClientExtensionResults(),authenticatorAttachment:BB(c.authenticatorAttachment)}}const yee=(e,{$listPasskeys:t,$store:a})=>({signIn:{passkey:async(r,i)=>{const c=await e("/passkey/generate-authenticate-options",{method:"GET",throw:!1});if(!c.data)return c;try{const d=await e("/passkey/verify-authentication",{body:{response:await bee({optionsJSON:c.data,useBrowserAutofill:r?.autoFill})},...r?.fetchOptions,...i,method:"POST",throw:!1});return t.set(Math.random()),a.notify("$sessionSignal"),d}catch(d){return console.error("[Better Auth] Error verifying passkey",d),{data:null,error:{code:"AUTH_CANCELLED",message:"auth cancelled",status:400,statusText:"BAD_REQUEST"}}}}},passkey:{addPasskey:async(r,i)=>{const c=await e("/passkey/generate-register-options",{method:"GET",query:{...r?.authenticatorAttachment&&{authenticatorAttachment:r.authenticatorAttachment},...r?.name&&{name:r.name}},throw:!1});if(!c.data)return c;try{const d=await gee({optionsJSON:c.data,useAutoRegister:r?.useAutoRegister}),u=await e("/passkey/verify-registration",{...r?.fetchOptions,...i,body:{response:d,name:r?.name},method:"POST",throw:!1});return u.data&&t.set(Math.random()),u}catch(d){return d instanceof ho?d.code==="ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED"?{data:null,error:{code:d.code,message:"previously registered",status:400,statusText:"BAD_REQUEST"}}:d.code==="ERROR_CEREMONY_ABORTED"?{data:null,error:{code:d.code,message:"registration cancelled",status:400,statusText:"BAD_REQUEST"}}:{data:null,error:{code:d.code,message:d.message,status:400,statusText:"BAD_REQUEST"}}:{data:null,error:{code:"UNKNOWN_ERROR",message:d instanceof Error?d.message:"unknown error",status:500,statusText:"INTERNAL_SERVER_ERROR"}}}}},$Infer:{}}),wee=()=>{const e=Il();return{id:"passkey",$InferServerPlugin:{},getActions:(t,a)=>yee(t,{$listPasskeys:e,$store:a}),getAtoms(t){return{listPasskeys:fd(e,"/passkey/list-user-passkeys",t,{method:"GET"}),$listPasskeys:e}},pathMethods:{"/passkey/register":"POST","/passkey/authenticate":"POST"},atomListeners:[{matcher(t){return t==="/passkey/verify-registration"||t==="/passkey/delete-passkey"||t==="/passkey/update-passkey"||t==="/sign-out"},signal:"$listPasskeys"},{matcher:t=>t==="/passkey/verify-authentication",signal:"$sessionSignal"}]}};function See(e){let t=e;if(typeof e=="string")try{t=JSON.parse(e)}catch{return{}}return t&&typeof t=="object"&&!Array.isArray(t)?Object.fromEntries(Object.entries(t)):{}}function oE(e){return See(e?.metadata).archived===!0}function FB(e){const t=new Set;return e.filter(a=>oE(a)||t.has(a.id)?!1:(t.add(a.id),!0))}const Tee="Organization is archived",fo=QX({plugins:[lee({}),tee(),dee(),oee(),aee(),wee()]}),xee=8e3;let yO;function jB(){return yO??=new Promise(e=>{const t=setTimeout(e,xee);fo.$store.listen("session",a=>{a&&typeof a=="object"&&"isPending"in a&&(a.isPending||(clearTimeout(t),e()))})}),yO}const kee=Se({data:Se({user:Se({id:$()})}).nullish()});function Eee(){const e=kee.safeParse(fo.$store.atoms.session?.get());return e.success?e.data.data?.user.id:void 0}const Cee=3e4;let fp=null,Ug=null;function zB(){if(fp&&fp.expiresAt>Date.now())return Promise.resolve(fp.result);if(Ug)return Ug;const e=fo.organization.list().then(t=>{const a=t.data?{...t,data:FB(t.data)}:t;return a.data&&(fp={result:a,expiresAt:Date.now()+Cee}),a}).finally(()=>{Ug=null});return Ug=e,e}function Vxe(){const e=fo.useListOrganizations(),t=e.data?FB(e.data):void 0;return{...e,data:t}}function Hxe(){fp=null}const Pee="modulepreload",_ee=function(e){return"/"+e},wO={},Fe=function(t,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=_ee(u),u in wO)return;wO[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":Pee,m||(f.as="script"),f.crossOrigin="",f.href=u,d&&f.setAttribute("nonce",d),document.head.appendChild(f),m)return new Promise((v,b)=>{f.addEventListener("load",v),f.addEventListener("error",()=>b(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 t().catch(r)})};function Aee(e){try{return JSON.parse(e)}catch{return}}function SO(e,t){if(typeof localStorage>"u")return typeof t=="function"?t(void 0):t;const a=localStorage.getItem(e),o=a?Aee(a):void 0,n=typeof t=="function"?t(o):o??t;if(o===void 0||n!==o)try{const r=JSON.stringify(n);localStorage.setItem(e,r)}catch{}return n}function Ree(e,t){const a=ye.c(17),o=Qd();let n;a[0]!==e?(n=["localStorage",e],a[0]=e,a[1]=n):n=a[1];const r=n;let i,c;a[2]!==t||a[3]!==e?(i=()=>SO(e,t),c=()=>SO(e,t),a[2]=t,a[3]=e,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}=Ki(d);let m;a[10]!==e||a[11]!==o||a[12]!==r?(m=b=>{const w=o.getQueryData(r),x=typeof b=="function"?b(w):b;if(typeof localStorage<"u")try{localStorage.setItem(e,JSON.stringify(x))}catch{}o.setQueryData(r,x)},a[10]=e,a[11]=o,a[12]=r,a[13]=m):m=a[13];const h=m,f=u;let v;return a[14]!==h||a[15]!==f?(v=[f,h],a[14]=h,a[15]=f,a[16]=v):v=a[16],v}const Nr={chatSelectedImageModel:e=>`studio:chat:selectedImageModel:${e}`,chatSelectedWebSearchModel:e=>`studio:chat:selectedWebSearchModel:${e}`,chatSelectedDeepResearchModel:e=>`studio:chat:selectedDeepResearchModel:${e}`,chatSimpleModeTier:e=>`studio:chat:simpleModeTier:${e}`,chatAutosend:(e,t)=>`studio:chat:autosend:${e}:${t}`,chatThreadIntent:(e,t)=>`studio:chat:threadIntent:${e}:${t}`,homeTaskMode:e=>`home-task-mode:${e}`,chatDraft:(e,t)=>`studio:chat:draft:${e}:${t}`,taskBoardPrs:e=>`studio:task-board-prs:${e}`,taskFeedBehindTheScenes:()=>"studio:task-feed:behind-the-scenes",taskBoardAssignee:(e,t)=>`studio:task-board-assignee:${e}:${t}`,recentApps:e=>`studio:recent-apps:${e}`,recentProjects:e=>`studio:recent-projects:${e}`,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:e=>`studio:connections:tab:${e}`,taskLastViewed:e=>`studio:chat:task-last-viewed:${e}`,sidebarSectionOpen:(e,t)=>`studio:sidebar:section-open:${e}:${t}`,ptBrAnnouncementSeen:e=>`studio:announcement:pt-br:${e}`,legacyAdminArrival:()=>"studio:legacy-admin-arrival",localPreviewUrl:e=>`studio:local-preview-url:${e}`,previewDeviceSize:e=>`studio:preview:device-size:${e}`,previewEditingMode:e=>`studio:preview:editing-mode:${e}`,previewAppLayout:e=>`studio:preview:app-layout:${e}`,arrayFieldLayout:()=>"studio:cms:array-field-layout",decoServeConnection:(e,t)=>`studio:deco-serve-connection:${e}:${t}`,decoServeEndpoint:(e,t)=>`studio:deco-serve-endpoint:${e}:${t}`},qB=["en","pt-BR"],Gxe={en:"en-US","pt-BR":"pt-BR"};function nE(){return typeof navigator<"u"&&navigator.language?.toLowerCase().startsWith("pt")?"pt-BR":"en"}const Dee={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system",language:nE(),taskBoardLaneVisibility:{},collapsedTaskBoardLanes:[],contentFullscreen:!1},UB=["auto","readonly"],Wxe=[{value:"readonly",labelKey:"settings.preferences.toolApprovalAsk",shortKey:"settings.preferences.toolApprovalAskShort"},{value:"auto",labelKey:"settings.preferences.toolApprovalAuto",shortKey:"settings.preferences.toolApprovalAutoShort"}],Oee=["light","dark","system"];function Kxe(){try{const e=JSON.parse(localStorage.getItem(Nr.preferences())??"{}");if(UB.includes(e.toolApprovalLevel))return e.toolApprovalLevel}catch{}return"auto"}function cb(){try{const e=JSON.parse(localStorage.getItem(Nr.preferences())??"{}");if(qB.includes(e.language))return e.language}catch{}return nE()}function Nee(e){const t={};if(Array.isArray(e.shownTaskBoardLanes))for(const o of e.shownTaskBoardLanes)typeof o=="string"&&(t[o]=!0);const a=e.taskBoardLaneVisibility;if(a&&typeof a=="object"&&!Array.isArray(a))for(const[o,n]of Object.entries(a))typeof n=="boolean"&&(t[o]=n);return t}function rE(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=Nr.preferences(),e[0]=t):t=e[0],Ree(t,Mee)}function Mee(e){const t={...Dee,...e};return"showProjectSettingsGear"in t&&delete t.showProjectSettingsGear,"compactPageLayout"in t&&delete t.compactPageLayout,"projectFirstNav"in t&&delete t.projectFirstNav,UB.includes(t.toolApprovalLevel)||(t.toolApprovalLevel="auto"),Oee.includes(t.theme)||(t.theme="system"),qB.includes(t.language)||(t.language=nE()),t.taskBoardLaneVisibility=Nee(t),"shownTaskBoardLanes"in t&&delete t.shownTaskBoardLanes,Array.isArray(t.collapsedTaskBoardLanes)||(t.collapsedTaskBoardLanes=[]),typeof t.contentFullscreen!="boolean"&&(t.contentFullscreen=!1),t}const Iee={"page.overview":"Overview","page.app":"App","page.view":"View","page.file":"File","page.document":"Document","page.businessCase":"Business case","page.item":"Item","page.breadcrumbs":"Breadcrumbs","page.breadcrumbMenu":"Show navigation path","page.views":"Page views","page.openThread":"Open chat","page.closeThread":"Close chat","page.enterFullscreen":"Expand","page.exitFullscreen":"Show chat","page.openMainPanel":"Open panel","page.closeMainPanel":"Close","page.collapseSidebar":"Collapse sidebar","page.expandSidebar":"Expand sidebar"},Lee={"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.blog":"Blog","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.automations":"Automations","projects.apps.calendar":"Calendar","projects.apps.experiments":"Experiments"},Bee={"virtualMcp.settings.assetStorage.label":"CMS Asset Storage","virtualMcp.settings.assetStorage.description":"Choose where this project browses and uploads images and files. Existing content URLs stay unchanged.","virtualMcp.settings.assetStorage.automatic":"Automatic (match the site)","virtualMcp.settings.assetStorage.missing":"The selected asset storage is unavailable. Choose another storage in project settings.","virtualMcp.settings.assetStorage.loading":"Loading storage configurations…","virtualMcp.settings.assetStorage.loadError":"Could not load storage configurations.","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.repository.title":"Repository","virtualMcp.settings.repository.description":"The code this project is, and how its sandbox runs it.","virtualMcp.settings.repository.repoTitle":"Repository","virtualMcp.settings.repository.runtimeTitle":"How it runs","virtualMcp.settings.repository.runtimeDescription":"What the sandbox installs and starts to preview this project.","virtualMcp.settings.pageTitle":"Project settings","virtualMcp.settings.views.title":"Views","virtualMcp.settings.views.description":"What opens first, and which views the sidebar shows.","virtualMcp.settings.cmsEmptyTitle":"No site content yet","virtualMcp.settings.repository.open":"Go to Repository","virtualMcp.settings.repository.none":"No repository connected","virtualMcp.settings.repository.noneDescription":"Connect a GitHub repository to edit and preview this project's site.","virtualMcp.settings.repository.connect":"Connect repository","virtualMcp.settings.repository.change":"Change","virtualMcp.settings.repository.connected":"Connected {name}","virtualMcp.settings.cmsEmpty":"Connect the site's repository to turn the CMS on.","virtualMcp.settings.general.title":"General","virtualMcp.settings.site.title":"CMS","virtualMcp.settings.site.classicTitle":"Site and sandbox","virtualMcp.settings.blocksV8Site.label":"Blocks v8 site","virtualMcp.settings.blocksV8Site.description":"Edit this site with the Blocks v8 editor and hosted CMS. Off: v7, git-backed.","virtualMcp.settings.groups.advanced":"Advanced","virtualMcp.settings.groups.details":"Details","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.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.createdBy":"Created by","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.lastUsedLabel":"Last used","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>
57
57
  Define who this agent is and what it specializes in.
58
58
  Example: You are a support triage agent for B2B merchants.
@@ -186,7 +186,7 @@ Pedido: {idea}`,"plan.case.waiting":"Abrindo o business case…","plan.case.buil
186
186
  .block-interactivity-`.concat(e,` {pointer-events: none;}
187
187
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
188
188
  `)},Ase=0,Zc=[];function Rse(e){var t=A.useRef([]),a=A.useRef([0,0]),o=A.useRef(),n=A.useState(Ase++)[0],r=A.useState(oj)[0],i=A.useRef(e);A.useEffect(function(){i.current=e},[e]),A.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(n));var w=Zre([e.lockRef.current],(e.shards||[]).map(a2),!0).filter(Boolean);return w.forEach(function(x){return x.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),w.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(n))})}}},[e.inert,e.lockRef.current,e.shards]);var c=A.useCallback(function(w,x){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!i.current.allowPinchZoom;var T=Qg(w),k=a.current,C="deltaX"in w?w.deltaX:k[0]-T[0],E="deltaY"in w?w.deltaY:k[1]-T[1],_,D=w.target,R=Math.abs(C)>Math.abs(E)?"h":"v";if("touches"in w&&R==="h"&&D.type==="range")return!1;var O=window.getSelection(),L=O&&O.anchorNode,U=L?L===D||L.contains(D):!1;if(U)return!1;var B=e2(R,D);if(!B)return!0;if(B?_=R:(_=R==="v"?"h":"v",B=e2(R,D)),!B)return!1;if(!o.current&&"changedTouches"in w&&(C||E)&&(o.current=_),!_)return!0;var z=o.current||_;return Cse(z,x,w,z==="h"?C:E)},[]),d=A.useCallback(function(w){var x=w;if(!(!Zc.length||Zc[Zc.length-1]!==r)){var T="deltaY"in x?t2(x):Qg(x),k=t.current.filter(function(_){return _.name===x.type&&(_.target===x.target||x.target===_.shadowParent)&&Pse(_.delta,T)})[0];if(k&&k.should){x.cancelable&&x.preventDefault();return}if(!k){var C=(i.current.shards||[]).map(a2).filter(Boolean).filter(function(_){return _.contains(x.target)}),E=C.length>0?c(x,C[0]):!i.current.noIsolation;E&&x.cancelable&&x.preventDefault()}}},[]),u=A.useCallback(function(w,x,T,k){var C={name:w,delta:x,target:T,should:k,shadowParent:Dse(T)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(E){return E!==C})},1)},[]),m=A.useCallback(function(w){a.current=Qg(w),o.current=void 0},[]),h=A.useCallback(function(w){u(w.type,t2(w),w.target,c(w,e.lockRef.current))},[]),f=A.useCallback(function(w){u(w.type,Qg(w),w.target,c(w,e.lockRef.current))},[]);A.useEffect(function(){return Zc.push(r),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",d,Qc),document.addEventListener("touchmove",d,Qc),document.addEventListener("touchstart",m,Qc),function(){Zc=Zc.filter(function(w){return w!==r}),document.removeEventListener("wheel",d,Qc),document.removeEventListener("touchmove",d,Qc),document.removeEventListener("touchstart",m,Qc)}},[]);var v=e.removeScrollBar,b=e.inert;return A.createElement(A.Fragment,null,b?A.createElement(r,{styles:_se(n)}):null,v?A.createElement(yse,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Dse(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Ose=sse(aj,Rse);var TE=A.forwardRef(function(e,t){return A.createElement(gb,Yr({},e,{ref:t,sideCar:Ose}))});TE.classNames=gb.classNames;var Gx=["Enter"," "],Nse=["ArrowDown","PageUp","Home"],ij=["ArrowUp","PageDown","End"],Mse=[...Nse,...ij],Ise={ltr:[...Gx,"ArrowRight"],rtl:[...Gx,"ArrowLeft"]},Lse={ltr:["ArrowLeft"],rtl:["ArrowRight"]},wm="Menu",[Wp,Bse,Fse]=hF(wm),[tc,lj]=el(wm,[Fse,LF,WF]),Sm=LF(),cj=WF(),[dj,tl]=tc(wm),[jse,Tm]=tc(wm),uj=e=>{const{__scopeMenu:t,open:a=!1,children:o,dir:n,onOpenChange:r,modal:i=!0}=e,c=Sm(t),[d,u]=A.useState(null),m=A.useRef(!1),h=Pr(r),f=gF(n);return A.useEffect(()=>{const v=()=>{m.current=!0,document.addEventListener("pointerdown",b,{capture:!0,once:!0}),document.addEventListener("pointermove",b,{capture:!0,once:!0})},b=()=>m.current=!1;return document.addEventListener("keydown",v,{capture:!0}),()=>{document.removeEventListener("keydown",v,{capture:!0}),document.removeEventListener("pointerdown",b,{capture:!0}),document.removeEventListener("pointermove",b,{capture:!0})}},[]),y.jsx(HF,{...c,children:y.jsx(dj,{scope:t,open:a,onOpenChange:h,content:d,onContentChange:u,children:y.jsx(jse,{scope:t,onClose:A.useCallback(()=>h(!1),[h]),isUsingKeyboardRef:m,dir:f,modal:i,children:o})})})};uj.displayName=wm;var zse="MenuAnchor",xE=A.forwardRef((e,t)=>{const{__scopeMenu:a,...o}=e,n=Sm(a);return y.jsx(Are,{...n,...o,ref:t})});xE.displayName=zse;var kE="MenuPortal",[qse,pj]=tc(kE,{forceMount:void 0}),mj=e=>{const{__scopeMenu:t,forceMount:a,children:o,container:n}=e,r=tl(kE,t);return y.jsx(qse,{scope:t,forceMount:a,children:y.jsx(qs,{present:a||r.open,children:y.jsx(SE,{asChild:!0,container:n,children:o})})})};mj.displayName=kE;var rr="MenuContent",[Use,EE]=tc(rr),hj=A.forwardRef((e,t)=>{const a=pj(rr,e.__scopeMenu),{forceMount:o=a.forceMount,...n}=e,r=tl(rr,e.__scopeMenu),i=Tm(rr,e.__scopeMenu);return y.jsx(Wp.Provider,{scope:e.__scopeMenu,children:y.jsx(qs,{present:o||r.open,children:y.jsx(Wp.Slot,{scope:e.__scopeMenu,children:i.modal?y.jsx($se,{...n,ref:t}):y.jsx(Vse,{...n,ref:t})})})})}),$se=A.forwardRef((e,t)=>{const a=tl(rr,e.__scopeMenu),o=A.useRef(null),n=Ua(t,o);return A.useEffect(()=>{const r=o.current;if(r)return XF(r)},[]),y.jsx(CE,{...e,ref:n,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:mt(e.onFocusOutside,r=>r.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})}),Vse=A.forwardRef((e,t)=>{const a=tl(rr,e.__scopeMenu);return y.jsx(CE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>a.onOpenChange(!1)})}),Hse=Hp("MenuContent.ScrollLock"),CE=A.forwardRef((e,t)=>{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:v,disableOutsideScroll:b,...w}=e,x=tl(rr,a),T=Tm(rr,a),k=Sm(a),C=cj(a),E=Bse(a),[_,D]=A.useState(null),R=A.useRef(null),O=Ua(t,R,x.onContentChange),L=A.useRef(0),U=A.useRef(""),B=A.useRef(0),z=A.useRef(null),F=A.useRef("right"),W=A.useRef(0),ae=b?TE:A.Fragment,H=b?{as:Hse,allowPinchZoom:!0}:void 0,K=se=>{const Z=U.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=oie(I,Z,V),X=M.find(de=>de.textValue===j)?.ref.current;(function de(ue){U.current=ue,window.clearTimeout(L.current),ue!==""&&(L.current=window.setTimeout(()=>de(""),1e3))})(Z),X&&setTimeout(()=>X.focus())};A.useEffect(()=>()=>window.clearTimeout(L.current),[]),bF();const J=A.useCallback(se=>F.current===z.current?.side&&rie(se,z.current?.area),[]);return y.jsx(Use,{scope:a,searchRef:U,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:y.jsx(ae,{...H,children:y.jsx(uE,{asChild:!0,trapped:n,onMountAutoFocus:mt(r,se=>{se.preventDefault(),R.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:y.jsx(dE,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:u,onPointerDownOutside:m,onFocusOutside:h,onInteractOutside:f,onDismiss:v,children:y.jsx(Gre,{asChild:!0,...C,dir:T.dir,orientation:"vertical",loop:o,currentTabStopId:_,onCurrentTabStopIdChange:D,onEntryFocus:mt(d,se=>{T.isUsingKeyboardRef.current||se.preventDefault()}),preventScrollOnEntryFocus:!0,children:y.jsx(Rre,{role:"menu","aria-orientation":"vertical","data-state":Dj(x.open),"data-radix-menu-content":"",dir:T.dir,...k,...w,ref:O,style:{outline:"none",...w.style},onKeyDown:mt(w.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||!Mse.includes(se.key))return;se.preventDefault();const X=E().filter(de=>!de.disabled).map(de=>de.ref.current);ij.includes(se.key)&&X.reverse(),tie(X)}),onBlur:mt(e.onBlur,se=>{se.currentTarget.contains(se.target)||(window.clearTimeout(L.current),U.current="")}),onPointerMove:mt(e.onPointerMove,Kp(se=>{const Z=se.target,M=W.current!==se.clientX;if(se.currentTarget.contains(Z)&&M){const G=se.clientX>W.current?"right":"left";F.current=G,W.current=se.clientX}}))})})})})})})});hj.displayName=rr;var Gse="MenuGroup",PE=A.forwardRef((e,t)=>{const{__scopeMenu:a,...o}=e;return y.jsx(Ra.div,{role:"group",...o,ref:t})});PE.displayName=Gse;var Wse="MenuLabel",gj=A.forwardRef((e,t)=>{const{__scopeMenu:a,...o}=e;return y.jsx(Ra.div,{...o,ref:t})});gj.displayName=Wse;var cv="MenuItem",o2="menu.itemSelect",fb=A.forwardRef((e,t)=>{const{disabled:a=!1,onSelect:o,...n}=e,r=A.useRef(null),i=Tm(cv,e.__scopeMenu),c=EE(cv,e.__scopeMenu),d=Ua(t,r),u=A.useRef(!1),m=()=>{const h=r.current;if(!a&&h){const f=new CustomEvent(o2,{bubbles:!0,cancelable:!0});h.addEventListener(o2,v=>o?.(v),{once:!0}),mF(h,f),f.defaultPrevented?u.current=!1:i.onClose()}};return y.jsx(fj,{...n,ref:d,disabled:a,onClick:mt(e.onClick,m),onPointerDown:h=>{e.onPointerDown?.(h),u.current=!0},onPointerUp:mt(e.onPointerUp,h=>{u.current||h.currentTarget?.click()}),onKeyDown:mt(e.onKeyDown,h=>{const f=c.searchRef.current!=="";a||f&&h.key===" "||Gx.includes(h.key)&&(h.currentTarget.click(),h.preventDefault())})})});fb.displayName=cv;var fj=A.forwardRef((e,t)=>{const{__scopeMenu:a,disabled:o=!1,textValue:n,...r}=e,i=EE(cv,a),c=cj(a),d=A.useRef(null),u=Ua(t,d),[m,h]=A.useState(!1),[f,v]=A.useState("");return A.useEffect(()=>{const b=d.current;b&&v((b.textContent??"").trim())},[r.children]),y.jsx(Wp.ItemSlot,{scope:a,disabled:o,textValue:n??f,children:y.jsx(Wre,{asChild:!0,...c,focusable:!o,children:y.jsx(Ra.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...r,ref:u,onPointerMove:mt(e.onPointerMove,Kp(b=>{o?i.onItemLeave(b):(i.onItemEnter(b),b.defaultPrevented||b.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:mt(e.onPointerLeave,Kp(b=>i.onItemLeave(b))),onFocus:mt(e.onFocus,()=>h(!0)),onBlur:mt(e.onBlur,()=>h(!1))})})})}),Kse="MenuCheckboxItem",vj=A.forwardRef((e,t)=>{const{checked:a=!1,onCheckedChange:o,...n}=e;return y.jsx(Tj,{scope:e.__scopeMenu,checked:a,children:y.jsx(fb,{role:"menuitemcheckbox","aria-checked":dv(a)?"mixed":a,...n,ref:t,"data-state":RE(a),onSelect:mt(n.onSelect,()=>o?.(dv(a)?!0:!a),{checkForDefaultPrevented:!1})})})});vj.displayName=Kse;var bj="MenuRadioGroup",[Yse,Qse]=tc(bj,{value:void 0,onValueChange:()=>{}}),yj=A.forwardRef((e,t)=>{const{value:a,onValueChange:o,...n}=e,r=Pr(o);return y.jsx(Yse,{scope:e.__scopeMenu,value:a,onValueChange:r,children:y.jsx(PE,{...n,ref:t})})});yj.displayName=bj;var wj="MenuRadioItem",Sj=A.forwardRef((e,t)=>{const{value:a,...o}=e,n=Qse(wj,e.__scopeMenu),r=a===n.value;return y.jsx(Tj,{scope:e.__scopeMenu,checked:r,children:y.jsx(fb,{role:"menuitemradio","aria-checked":r,...o,ref:t,"data-state":RE(r),onSelect:mt(o.onSelect,()=>n.onValueChange?.(a),{checkForDefaultPrevented:!1})})})});Sj.displayName=wj;var _E="MenuItemIndicator",[Tj,Zse]=tc(_E,{checked:!1}),xj=A.forwardRef((e,t)=>{const{__scopeMenu:a,forceMount:o,...n}=e,r=Zse(_E,a);return y.jsx(qs,{present:o||dv(r.checked)||r.checked===!0,children:y.jsx(Ra.span,{...n,ref:t,"data-state":RE(r.checked)})})});xj.displayName=_E;var Jse="MenuSeparator",kj=A.forwardRef((e,t)=>{const{__scopeMenu:a,...o}=e;return y.jsx(Ra.div,{role:"separator","aria-orientation":"horizontal",...o,ref:t})});kj.displayName=Jse;var Xse="MenuArrow",Ej=A.forwardRef((e,t)=>{const{__scopeMenu:a,...o}=e,n=Sm(a);return y.jsx(Dre,{...n,...o,ref:t})});Ej.displayName=Xse;var AE="MenuSub",[eie,Cj]=tc(AE),Pj=e=>{const{__scopeMenu:t,children:a,open:o=!1,onOpenChange:n}=e,r=tl(AE,t),i=Sm(t),[c,d]=A.useState(null),[u,m]=A.useState(null),h=Pr(n);return A.useEffect(()=>(r.open===!1&&h(!1),()=>h(!1)),[r.open,h]),y.jsx(HF,{...i,children:y.jsx(dj,{scope:t,open:o,onOpenChange:h,content:u,onContentChange:m,children:y.jsx(eie,{scope:t,contentId:zi(),triggerId:zi(),trigger:c,onTriggerChange:d,children:a})})})};Pj.displayName=AE;var vp="MenuSubTrigger",_j=A.forwardRef((e,t)=>{const a=tl(vp,e.__scopeMenu),o=Tm(vp,e.__scopeMenu),n=Cj(vp,e.__scopeMenu),r=EE(vp,e.__scopeMenu),i=A.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=r,u={__scopeMenu:e.__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]),y.jsx(xE,{asChild:!0,...u,children:y.jsx(fj,{id:n.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":n.contentId,"data-state":Dj(a.open),...e,ref:fm(t,n.onTriggerChange),onClick:h=>{e.onClick?.(h),!(e.disabled||h.defaultPrevented)&&(h.currentTarget.focus(),a.open||a.onOpenChange(!0))},onPointerMove:mt(e.onPointerMove,Kp(h=>{r.onItemEnter(h),!h.defaultPrevented&&!e.disabled&&!a.open&&!i.current&&(r.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{a.onOpenChange(!0),m()},100))})),onPointerLeave:mt(e.onPointerLeave,Kp(h=>{m();const f=a.content?.getBoundingClientRect();if(f){const v=a.content?.dataset.side,b=v==="right",w=b?-5:5,x=f[b?"left":"right"],T=f[b?"right":"left"];r.onPointerGraceIntentChange({area:[{x:h.clientX+w,y:h.clientY},{x,y:f.top},{x:T,y:f.top},{x:T,y:f.bottom},{x,y:f.bottom}],side:v}),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(e.onKeyDown,h=>{const f=r.searchRef.current!=="";e.disabled||f&&h.key===" "||Ise[o.dir].includes(h.key)&&(a.onOpenChange(!0),a.content?.focus(),h.preventDefault())})})})});_j.displayName=vp;var Aj="MenuSubContent",Rj=A.forwardRef((e,t)=>{const a=pj(rr,e.__scopeMenu),{forceMount:o=a.forceMount,...n}=e,r=tl(rr,e.__scopeMenu),i=Tm(rr,e.__scopeMenu),c=Cj(Aj,e.__scopeMenu),d=A.useRef(null),u=Ua(t,d);return y.jsx(Wp.Provider,{scope:e.__scopeMenu,children:y.jsx(qs,{present:o||r.open,children:y.jsx(Wp.Slot,{scope:e.__scopeMenu,children:y.jsx(CE,{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(e.onFocusOutside,m=>{m.target!==c.trigger&&r.onOpenChange(!1)}),onEscapeKeyDown:mt(e.onEscapeKeyDown,m=>{i.onClose(),m.preventDefault()}),onKeyDown:mt(e.onKeyDown,m=>{const h=m.currentTarget.contains(m.target),f=Lse[i.dir].includes(m.key);h&&f&&(r.onOpenChange(!1),c.trigger?.focus(),m.preventDefault())})})})})})});Rj.displayName=Aj;function Dj(e){return e?"open":"closed"}function dv(e){return e==="indeterminate"}function RE(e){return dv(e)?"indeterminate":e?"checked":"unchecked"}function tie(e){const t=document.activeElement;for(const a of e)if(a===t||(a.focus(),document.activeElement!==t))return}function aie(e,t){return e.map((a,o)=>e[(t+o)%e.length])}function oie(e,t,a){const n=t.length>1&&Array.from(t).every(u=>u===t[0])?t[0]:t,r=a?e.indexOf(a):-1;let i=aie(e,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 nie(e,t){const{x:a,y:o}=e;let n=!1;for(let r=0,i=t.length-1;r<t.length;i=r++){const c=t[r],d=t[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 rie(e,t){if(!t)return!1;const a={x:e.clientX,y:e.clientY};return nie(a,t)}function Kp(e){return t=>t.pointerType==="mouse"?e(t):void 0}var sie=uj,iie=xE,lie=mj,cie=hj,die=PE,uie=gj,pie=fb,mie=vj,hie=yj,gie=Sj,fie=xj,vie=kj,bie=Ej,yie=Pj,wie=_j,Sie=Rj,vb="DropdownMenu",[Tie]=el(vb,[lj]),Vo=lj(),[xie,Oj]=Tie(vb),Nj=e=>{const{__scopeDropdownMenu:t,children:a,dir:o,open:n,defaultOpen:r,onOpenChange:i,modal:c=!0}=e,d=Vo(t),u=A.useRef(null),[m,h]=vm({prop:n,defaultProp:r??!1,onChange:i,caller:vb});return y.jsx(xie,{scope:t,triggerId:zi(),triggerRef:u,contentId:zi(),open:m,onOpenChange:h,onOpenToggle:A.useCallback(()=>h(f=>!f),[h]),modal:c,children:y.jsx(sie,{...d,open:m,onOpenChange:h,dir:o,modal:c,children:a})})};Nj.displayName=vb;var Mj="DropdownMenuTrigger",Ij=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,disabled:o=!1,...n}=e,r=Oj(Mj,a),i=Vo(a);return y.jsx(iie,{asChild:!0,...i,children:y.jsx(Ra.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:fm(t,r.triggerRef),onPointerDown:mt(e.onPointerDown,c=>{!o&&c.button===0&&c.ctrlKey===!1&&(r.onOpenToggle(),r.open||c.preventDefault())}),onKeyDown:mt(e.onKeyDown,c=>{o||(["Enter"," "].includes(c.key)&&r.onOpenToggle(),c.key==="ArrowDown"&&r.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});Ij.displayName=Mj;var kie="DropdownMenuPortal",Lj=e=>{const{__scopeDropdownMenu:t,...a}=e,o=Vo(t);return y.jsx(lie,{...o,...a})};Lj.displayName=kie;var Bj="DropdownMenuContent",Fj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...o}=e,n=Oj(Bj,a),r=Vo(a),i=A.useRef(!1);return y.jsx(cie,{id:n.contentId,"aria-labelledby":n.triggerId,...r,...o,ref:t,onCloseAutoFocus:mt(e.onCloseAutoFocus,c=>{i.current||n.triggerRef.current?.focus(),i.current=!1,c.preventDefault()}),onInteractOutside:mt(e.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:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Fj.displayName=Bj;var Eie="DropdownMenuGroup",Cie=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...o}=e,n=Vo(a);return y.jsx(die,{...n,...o,ref:t})});Cie.displayName=Eie;var Pie="DropdownMenuLabel",jj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...o}=e,n=Vo(a);return y.jsx(uie,{...n,...o,ref:t})});jj.displayName=Pie;var _ie="DropdownMenuItem",zj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...o}=e,n=Vo(a);return y.jsx(pie,{...n,...o,ref:t})});zj.displayName=_ie;var Aie="DropdownMenuCheckboxItem",qj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...o}=e,n=Vo(a);return y.jsx(mie,{...n,...o,ref:t})});qj.displayName=Aie;var Rie="DropdownMenuRadioGroup",Uj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...o}=e,n=Vo(a);return y.jsx(hie,{...n,...o,ref:t})});Uj.displayName=Rie;var Die="DropdownMenuRadioItem",$j=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...o}=e,n=Vo(a);return y.jsx(gie,{...n,...o,ref:t})});$j.displayName=Die;var Oie="DropdownMenuItemIndicator",Vj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...o}=e,n=Vo(a);return y.jsx(fie,{...n,...o,ref:t})});Vj.displayName=Oie;var Nie="DropdownMenuSeparator",Hj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...o}=e,n=Vo(a);return y.jsx(vie,{...n,...o,ref:t})});Hj.displayName=Nie;var Mie="DropdownMenuArrow",Iie=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...o}=e,n=Vo(a);return y.jsx(bie,{...n,...o,ref:t})});Iie.displayName=Mie;var Lie=e=>{const{__scopeDropdownMenu:t,children:a,open:o,onOpenChange:n,defaultOpen:r}=e,i=Vo(t),[c,d]=vm({prop:o,defaultProp:r??!1,onChange:n,caller:"DropdownMenuSub"});return y.jsx(yie,{...i,open:c,onOpenChange:d,children:a})},Bie="DropdownMenuSubTrigger",Gj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...o}=e,n=Vo(a);return y.jsx(wie,{...n,...o,ref:t})});Gj.displayName=Bie;var Fie="DropdownMenuSubContent",Wj=A.forwardRef((e,t)=>{const{__scopeDropdownMenu:a,...o}=e,n=Vo(a);return y.jsx(Sie,{...n,...o,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Wj.displayName=Fie;var Kj=Nj,Yj=Ij,Qj=Lj,Zj=Fj,jie=jj,Jj=zj,zie=qj,qie=Uj,Uie=$j,Xj=Vj,$ie=Hj,Vie=Lie,Hie=Gj,Gie=Wj;const DE=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,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"}));DE.displayName="AlertTriangle";const e3=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,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"}));e3.displayName="Archive";const t3=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M7 17 17 7m0 0H7m10 0v10"}));t3.displayName="ArrowUpRight";const a3=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M20 6 9 17l-5-5"}));a3.displayName="Check";const OE=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"m9 18 6-6-6-6"}));OE.displayName="ChevronRight";const o3=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,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"}));o3.displayName="Circle";const n3=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,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"}));n3.displayName="CpuChip01";const r3=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,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"}));r3.displayName="DotsHorizontal";const s3=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,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"}));s3.displayName="GitBranch01";const i3=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,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"}));i3.displayName="HardDrive";const l3=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,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"}));l3.displayName="LinkExternal01";const c3=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,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"}));c3.displayName="Lock01";const d3=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,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"}));d3.displayName="RefreshCw01";const u3=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,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"}));u3.displayName="Server01";const p3=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,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"}));p3.displayName="Shield01";const m3=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,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"}));m3.displayName="User01";const h3=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,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"}));h3.displayName="Users03";const g3=({size:e=24,color:t="currentColor",...a})=>A.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...a},A.createElement("path",{d:"M17 7 7 17M7 7l10 10"}));g3.displayName="X";function Wie(e){const t=ye.c(4);let a;t[0]!==e?({...a}=e,t[0]=e,t[1]=a):a=t[1];let o;return t[2]!==a?(o=y.jsx(Kj,{"data-slot":"dropdown-menu",...a}),t[2]=a,t[3]=o):o=t[3],o}function Kie(e){const t=ye.c(4);let a;t[0]!==e?({...a}=e,t[0]=e,t[1]=a):a=t[1];let o;return t[2]!==a?(o=y.jsx(Yj,{"data-slot":"dropdown-menu-trigger",...a}),t[2]=a,t[3]=o):o=t[3],o}function Yie(e){const t=ye.c(10);let a,o,n;t[0]!==e?({className:a,sideOffset:n,...o}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=n):(a=t[1],o=t[2],n=t[3]);const r=n===void 0?4:n;let i;t[4]!==a?(i=Je("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),t[4]=a,t[5]=i):i=t[5];let c;return t[6]!==o||t[7]!==r||t[8]!==i?(c=y.jsx(Qj,{children:y.jsx(Zj,{"data-slot":"dropdown-menu-content",sideOffset:r,translate:"no",className:i,...o})}),t[6]=o,t[7]=r,t[8]=i,t[9]=c):c=t[9],c}function Qie(e){const t=ye.c(12);let a,o,n,r;t[0]!==e?({className:a,inset:o,variant:r,...n}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=n,t[4]=r):(a=t[1],o=t[2],n=t[3],r=t[4]);const i=r===void 0?"default":r;let c;t[5]!==a?(c=Je("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),t[5]=a,t[6]=c):c=t[6];let d;return t[7]!==o||t[8]!==n||t[9]!==c||t[10]!==i?(d=y.jsx(Jj,{"data-slot":"dropdown-menu-item","data-inset":o,"data-variant":i,className:c,...n}),t[7]=o,t[8]=n,t[9]=c,t[10]=i,t[11]=d):d=t[11],d}function Xxe(e){const t=ye.c(13);let a,o,n,r;t[0]!==e?({className:n,children:o,checked:a,...r}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=n,t[4]=r):(a=t[1],o=t[2],n=t[3],r=t[4]);let i;t[5]!==n?(i=Je("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),t[5]=n,t[6]=i):i=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=y.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:y.jsx(Xj,{children:y.jsx(a3,{className:"size-4"})})}),t[7]=c):c=t[7];let d;return t[8]!==a||t[9]!==o||t[10]!==r||t[11]!==i?(d=y.jsxs(zie,{"data-slot":"dropdown-menu-checkbox-item",className:i,checked:a,...r,children:[c,o]}),t[8]=a,t[9]=o,t[10]=r,t[11]=i,t[12]=d):d=t[12],d}function e0e(e){const t=ye.c(4);let a;t[0]!==e?({...a}=e,t[0]=e,t[1]=a):a=t[1];let o;return t[2]!==a?(o=y.jsx(qie,{"data-slot":"dropdown-menu-radio-group",...a}),t[2]=a,t[3]=o):o=t[3],o}function t0e(e){const t=ye.c(11);let a,o,n;t[0]!==e?({className:o,children:a,...n}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=n):(a=t[1],o=t[2],n=t[3]);let r;t[4]!==o?(r=Je("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),t[4]=o,t[5]=r):r=t[5];let i;t[6]===Symbol.for("react.memo_cache_sentinel")?(i=y.jsx("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:y.jsx(Xj,{children:y.jsx(o3,{className:"size-2 fill-current"})})}),t[6]=i):i=t[6];let c;return t[7]!==a||t[8]!==n||t[9]!==r?(c=y.jsxs(Uie,{"data-slot":"dropdown-menu-radio-item",className:r,...n,children:[i,a]}),t[7]=a,t[8]=n,t[9]=r,t[10]=c):c=t[10],c}function a0e(e){const t=ye.c(10);let a,o,n;t[0]!==e?({className:a,inset:o,...n}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=n):(a=t[1],o=t[2],n=t[3]);let r;t[4]!==a?(r=Je("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",a),t[4]=a,t[5]=r):r=t[5];let i;return t[6]!==o||t[7]!==n||t[8]!==r?(i=y.jsx(jie,{"data-slot":"dropdown-menu-label","data-inset":o,className:r,...n}),t[6]=o,t[7]=n,t[8]=r,t[9]=i):i=t[9],i}function o0e(e){const t=ye.c(8);let a,o;t[0]!==e?({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o):(a=t[1],o=t[2]);let n;t[3]!==a?(n=Je("bg-border -mx-1 my-1 h-px",a),t[3]=a,t[4]=n):n=t[4];let r;return t[5]!==o||t[6]!==n?(r=y.jsx($ie,{"data-slot":"dropdown-menu-separator",className:n,...o}),t[5]=o,t[6]=n,t[7]=r):r=t[7],r}function n0e(e){const t=ye.c(4);let a;t[0]!==e?({...a}=e,t[0]=e,t[1]=a):a=t[1];let o;return t[2]!==a?(o=y.jsx(Vie,{"data-slot":"dropdown-menu-sub",...a}),t[2]=a,t[3]=o):o=t[3],o}function r0e(e){const t=ye.c(13);let a,o,n,r;t[0]!==e?({className:o,inset:n,children:a,...r}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=n,t[4]=r):(a=t[1],o=t[2],n=t[3],r=t[4]);let i;t[5]!==o?(i=Je("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),t[5]=o,t[6]=i):i=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=y.jsx(OE,{className:"ml-auto size-4"}),t[7]=c):c=t[7];let d;return t[8]!==a||t[9]!==n||t[10]!==r||t[11]!==i?(d=y.jsxs(Hie,{"data-slot":"dropdown-menu-sub-trigger","data-inset":n,className:i,...r,children:[a,c]}),t[8]=a,t[9]=n,t[10]=r,t[11]=i,t[12]=d):d=t[12],d}function s0e(e){const t=ye.c(8);let a,o;t[0]!==e?({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o):(a=t[1],o=t[2]);let n;t[3]!==a?(n=Je("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),t[3]=a,t[4]=n):n=t[4];let r;return t[5]!==o||t[6]!==n?(r=y.jsx(Gie,{"data-slot":"dropdown-menu-sub-content",translate:"no",className:n,...o}),t[5]=o,t[6]=n,t[7]=r):r=t[7],r}function Zie(){const e=ye.c(3),[t,a]=A.useState(-1);let o;e[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()},e[0]=o):o=e[0];const n=o;let r;return e[1]!==t?(r=[t,n],e[1]=t,e[2]=r):r=e[2],r}function Jie(){let e=new Map;const t=new Set,a=()=>t.forEach(o=>o());return{getSnapshot:()=>e,subscribe(o){return t.add(o),()=>{t.delete(o)}},register(o){if(e.has(o.after))throw new Error(`Two components extend breadcrumb: ${o.after}`);return e=new Map(e).set(o.after,o),a(),()=>{if(e.get(o.after)!==o)return;const n=new Map(e);n.delete(o.after),e=n,a()}}}}const NE=A.createContext(null);function Xie(e){const t=ye.c(3),{children:a}=e,[o]=A.useState(Jie);let n;return t[0]!==a||t[1]!==o?(n=y.jsx(NE,{value:o,children:a}),t[0]=a,t[1]=o,t[2]=n):n=t[2],n}function ele(e){const t=ye.c(2),{children:a}=e;let o;return t[0]!==a?(o=y.jsx(NE,{value:null,children:a}),t[0]=a,t[1]=o):o=t[1],o}function bb(){return A.use(NE)}function f3(e){const t=ye.c(3),a=bb();if(!a)throw new Error("Breadcrumb contributions require Page.Breadcrumbs.Provider");let o;return t[0]!==e||t[1]!==a?(o=y.jsx("span",{hidden:!0,ref:n=>n?a.register(e):void 0}),t[0]=e,t[1]=a,t[2]=o):o=t[2],o}function tle(e,t){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=t.get(n.key);return[{...n,...r?.parent},...r?.items?.flatMap(o)??[]]};return e.flatMap(o)}function ale(e,t){const a=e.map(o=>o.label).filter(o=>typeof o=="string").reverse();return t&&a.push(t),a.map(o=>o.trim()).filter(Boolean).join(" · ")}const v3=5;function ole(e,t=!1,a=v3){const o=e.map(i=>({type:"item",item:i}));if(e.length<=(t?1:a))return o;const n=t?0:1,r=e.length-(t?1:2);return o.splice(n,r-n,{type:"menu",items:e.slice(n,r)}),o}const b3=nV(function(t){return y.jsx("a",{...t,"aria-current":void 0})});function nle(e){const t=ye.c(12),{items:a}=e,o=$o();let n;t[0]!==o?(n=o("page.breadcrumbMenu"),t[0]=o,t[1]=n):n=t[1];let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx(r3,{"aria-hidden":"true",className:"size-4"}),t[2]=r):r=t[2];let i;t[3]!==n?(i=y.jsx(Kie,{asChild:!0,children:y.jsx(yn,{variant:"ghost",size:"icon-xs",className:"shrink-0","aria-label":n,children:r})}),t[3]=n,t[4]=i):i=t[4];let c;t[5]!==a?(c=a.map(rle),t[5]=a,t[6]=c):c=t[6];let d;t[7]!==c?(d=y.jsx(Yie,{align:"start",children:c}),t[7]=c,t[8]=d):d=t[8];let u;return t[9]!==i||t[10]!==d?(u=y.jsxs(Wie,{children:[i,d]}),t[9]=i,t[10]=d,t[11]=u):u=t[11],u}function rle(e){const t=y.jsx("span",{className:"max-w-64 truncate",title:typeof e.label=="string"?e.label:void 0,children:e.label});return y.jsx(Qie,{asChild:!!e.link&&!e.onSelect,onSelect:e.onSelect,disabled:!e.onSelect&&!e.link,children:e.link&&!e.onSelect?y.jsx(b3,{...e.link,children:t}):t},e.key)}function sle(e){const t=ye.c(14),{item:a,current:o}=e,n=typeof a.label=="string"?a.label:void 0;if(o){let i;return t[0]!==a.label||t[1]!==n?(i=y.jsx("h1",{"data-slot":"page-title","aria-current":"page",title:n,className:"truncate text-sm font-medium text-foreground",children:a.label}),t[0]=a.label,t[1]=n,t[2]=i):i=t[2],i}if(a.onSelect){let i;return t[3]!==a.label||t[4]!==a.onSelect||t[5]!==n?(i=y.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}),t[3]=a.label,t[4]=a.onSelect,t[5]=n,t[6]=i):i=t[6],i}if(a.link){let i;return t[7]!==a.label||t[8]!==a.link||t[9]!==n?(i=y.jsx(b3,{...a.link,title:n,className:"block max-w-48 truncate rounded-lg hover:text-foreground focus-ring",children:a.label}),t[7]=a.label,t[8]=a.link,t[9]=n,t[10]=i):i=t[10],i}let r;return t[11]!==a.label||t[12]!==n?(r=y.jsx("span",{title:n,className:"block max-w-48 truncate",children:a.label}),t[11]=a.label,t[12]=n,t[13]=r):r=t[13],r}function y3(e){const t=ye.c(21),{items:a}=e,o=$o(),[n,r]=Zie();let i,c,d,u,m,h;if(t[0]!==a||t[1]!==r||t[2]!==o||t[3]!==n){const b=ole(a,n>=0&&n<200,v3);u=r,t[10]!==o?(m=o("page.breadcrumbs"),t[10]=o,t[11]=m):m=t[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=b.map((w,x)=>y.jsxs("li",{className:Je("flex min-w-0 items-center gap-2",x>0&&"min-w-5",w.type==="item"?"last:min-w-16 last:flex-[1_1_auto]":"shrink-0"),children:[x>0&&y.jsx(OE,{"aria-hidden":"true",className:"size-3 shrink-0 text-muted-foreground/60"}),w.type==="item"?y.jsx(sle,{item:w.item,current:x===b.length-1}):y.jsx(nle,{items:w.items})]},w.type==="item"?`item:${w.item.key}`:"menu")),t[0]=a,t[1]=r,t[2]=o,t[3]=n,t[4]=i,t[5]=c,t[6]=d,t[7]=u,t[8]=m,t[9]=h}else i=t[4],c=t[5],d=t[6],u=t[7],m=t[8],h=t[9];let f;t[12]!==i||t[13]!==c||t[14]!==d?(f=y.jsx("ol",{"data-slot":i,className:c,children:d}),t[12]=i,t[13]=c,t[14]=d,t[15]=f):f=t[15];let v;return t[16]!==u||t[17]!==m||t[18]!==h||t[19]!==f?(v=y.jsx("nav",{ref:u,"aria-label":m,className:h,children:f}),t[16]=u,t[17]=m,t[18]=h,t[19]=f,t[20]=v):v=t[20],v}function ile(e){const t=ye.c(12),{items:a,scope:o}=e,n=bb();if(!n)throw new Error("Page.Header requires Page.Breadcrumbs.Provider");const r=A.useSyncExternalStore(n.subscribe,n.getSnapshot,n.getSnapshot);let i,c;t[0]!==r||t[1]!==a||t[2]!==o?(i=tle(a,r),c=ale(i,o),t[0]=r,t[1]=a,t[2]=o,t[3]=i,t[4]=c):(i=t[3],c=t[4]);const d=c;let u;t[5]!==d?(u=d&&y.jsx("title",{children:d}),t[5]=d,t[6]=u):u=t[6];let m;t[7]!==i?(m=y.jsx(y3,{items:i}),t[7]=i,t[8]=m):m=t[8];let h;return t[9]!==u||t[10]!==m?(h=y.jsxs(y.Fragment,{children:[u,m]}),t[9]=u,t[10]=m,t[11]=h):h=t[11],h}function lle(e){const t=ye.c(3),a=bb();let o;return t[0]!==e||t[1]!==a?(o=a?y.jsx(f3,{...e}):y.jsx("div",{className:"min-w-0 shrink-0 border-b px-3 py-2",children:y.jsx(y3,{items:e.items??[]})}),t[0]=e,t[1]=a,t[2]=o):o=t[2],o}const cle=Object.assign(lle,{Provider:Xie,Detached:ele});function dle(e){const t=ye.c(8);let a,o;t[0]!==e?({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o):(a=t[1],o=t[2]);let n;t[3]!==a?(n=Je("flex h-full min-h-0 min-w-0 w-full flex-col overflow-hidden",a),t[3]=a,t[4]=n):n=t[4];let r;return t[5]!==o||t[6]!==n?(r=y.jsx("div",{...o,"data-slot":"page",className:n}),t[5]=o,t[6]=n,t[7]=r):r=t[7],r}function ule(e){const t=ye.c(8);let a,o;t[0]!==e?({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o):(a=t[1],o=t[2]);let n;t[3]!==a?(n=Je("min-h-0 min-w-0 flex-1 overflow-auto",a),t[3]=a,t[4]=n):n=t[4];let r;return t[5]!==o||t[6]!==n?(r=y.jsx("div",{...o,"data-slot":"page-content",className:n}),t[5]=o,t[6]=n,t[7]=r):r=t[7],r}const ple={reading:"max-w-[720px]",standard:"max-w-5xl",wide:"max-w-[1200px]",fluid:"max-w-none"},mle="px-4 md:pl-6 md:pr-8",w3=A.createContext(!1);function hle(e){const t=ye.c(12);let a,o,n;t[0]!==e?({className:a,width:n,...o}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=n):(a=t[1],o=t[2],n=t[3]);const r=n===void 0?"wide":n,i=A.use(w3);let c;t[4]!==a||t[5]!==i||t[6]!==r?(c=Je("w-full",i?Je(mle,"pt-4 pb-8"):"mx-auto px-4 py-6 md:px-8 md:py-8",ple[r],a),t[4]=a,t[5]=i,t[6]=r,t[7]=c):c=t[7];let d;return t[8]!==o||t[9]!==c||t[10]!==r?(d=y.jsx("div",{...o,"data-slot":"page-container","data-width":r,className:c}),t[8]=o,t[9]=c,t[10]=r,t[11]=d):d=t[11],d}function gle(e){const t=ye.c(9),{children:a,actions:o,className:n}=e,r=bb();let i;t[0]!==a||t[1]!==n||t[2]!==r?(i=r?y.jsx(f3,{after:"page",parent:{label:a}}):y.jsx("div",{"data-slot":"page-title",className:Je("flex flex-wrap items-center justify-between gap-3",n),children:y.jsx("h1",{className:"min-w-0 text-xl font-medium",children:a})}),t[0]=a,t[1]=n,t[2]=r,t[3]=i):i=t[3];let c;t[4]!==o?(c=o&&y.jsx(S3,{children:o}),t[4]=o,t[5]=c):c=t[5];let d;return t[6]!==i||t[7]!==c?(d=y.jsxs(y.Fragment,{children:[i,c]}),t[6]=i,t[7]=c,t[8]=d):d=t[8],d}function S3(e){const t=ye.c(3),{children:a,secondary:o}=e;let n;if(t[0]!==a||t[1]!==o){const r=y.jsxs("div",{"data-slot":"page-actions",className:"flex shrink-0 items-center gap-2",children:[o,a]});n=y.jsx(mn.Topbar.Right.Portal,{fallback:r,children:r}),t[0]=a,t[1]=o,t[2]=n}else n=t[2];return n}function fle(e){const t=ye.c(28),{breadcrumbs:a,scope:o,leading:n,actions:r,navigation:i,trailingActions:c}=e;let d;t[0]!==a||t[1]!==o?(d=y.jsx(ile,{items:a,scope:o}),t[0]=a,t[1]=o,t[2]=d):d=t[2];let u;t[3]===Symbol.for("react.memo_cache_sentinel")?(u=y.jsx(mn.Topbar.Left.Target,{}),t[3]=u):u=t[3];let m;t[4]!==n||t[5]!==d?(m=y.jsxs(mn.Topbar.Left,{className:"flex-1 gap-2",children:[n,d,u]}),t[4]=n,t[5]=d,t[6]=m):m=t[6];let h;t[7]!==r?(h=y.jsx("div",{className:"peer flex min-w-0 items-center gap-2 empty:hidden",children:r}),t[7]=r,t[8]=h):h=t[8];let f;t[9]===Symbol.for("react.memo_cache_sentinel")?(f=y.jsx(mn.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"}),t[9]=f):f=t[9];let v;t[10]!==h||t[11]!==c?(v=y.jsxs(mn.Topbar.Right,{className:"shrink-0 gap-2",children:[h,f,c]}),t[10]=h,t[11]=c,t[12]=v):v=t[12];let b;t[13]!==m||t[14]!==v?(b=y.jsxs(mn.Topbar,{className:"gap-3 border-b border-border/60 px-3","data-testid":"page-header",children:[m,v]}),t[13]=m,t[14]=v,t[15]=b):b=t[15];let w;t[16]!==i?(w=y.jsx("div",{"data-toolbar-content":"",className:"min-w-0 empty:hidden",children:i}),t[16]=i,t[17]=w):w=t[17];let x;t[18]===Symbol.for("react.memo_cache_sentinel")?(x=y.jsx(mn.Toolbar.Left.Target,{}),t[18]=x):x=t[18];let T;t[19]!==w?(T=y.jsxs(mn.Toolbar.Left,{children:[w,x]}),t[19]=w,t[20]=T):T=t[20];let k;t[21]===Symbol.for("react.memo_cache_sentinel")?(k=y.jsx(mn.Toolbar.Center,{className:"max-md:@max-xl/panel-toolbar:order-last max-md:@max-xl/panel-toolbar:basis-full md:min-w-48 md:@max-[22rem]/panel-toolbar:order-last md:@max-[22rem]/panel-toolbar:basis-full [&:not(:has([data-toolbar-content]:not(:empty)))]:hidden",children:y.jsx(mn.Toolbar.Center.Target,{})}),t[21]=k):k=t[21];let C;t[22]===Symbol.for("react.memo_cache_sentinel")?(C=y.jsx(mn.Toolbar.Right,{children:y.jsx(mn.Toolbar.Right.Target,{})}),t[22]=C):C=t[22];let E;t[23]!==T?(E=y.jsxs(mn.Toolbar,{children:[T,k,C]}),t[23]=T,t[24]=E):E=t[24];let _;return t[25]!==E||t[26]!==b?(_=y.jsxs(y.Fragment,{children:[b,E]}),t[25]=E,t[26]=b,t[27]=_):_=t[27],_}function vle(e){const t=ye.c(11);let a,o;t[0]!==e?({className:a,...o}=e,t[0]=e,t[1]=a,t[2]=o):(a=t[1],o=t[2]);const n=$o();let r;t[3]!==n?(r=n("page.views"),t[3]=n,t[4]=r):r=t[4];let i;t[5]!==a?(i=Je("-m-2 flex min-w-0 items-center gap-1 overflow-x-auto p-2 no-scrollbar",a),t[5]=a,t[6]=i):i=t[6];let c;return t[7]!==o||t[8]!==r||t[9]!==i?(c=y.jsx("nav",{"aria-label":r,...o,"data-slot":"page-tabs",className:i}),t[7]=o,t[8]=r,t[9]=i,t[10]=c):c=t[10],c}function ble(e){const t=ye.c(14);let a,o,n,r;t[0]!==e?({active:a,asChild:r,className:o,...n}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=n,t[4]=r):(a=t[1],o=t[2],n=t[3],r=t[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;t[5]!==o?(m=Je("shrink-0",o),t[5]=o,t[6]=m):m=t[6];let h;return t[7]!==i||t[8]!==n||t[9]!==c||t[10]!==d||t[11]!==u||t[12]!==m?(h=y.jsx(yn,{asChild:i,variant:"tab",size:"sm",...n,type:c,"aria-current":d,"aria-pressed":u,"data-slot":"page-tab",className:m}),t[7]=i,t[8]=n,t[9]=c,t[10]=d,t[11]=u,t[12]=m,t[13]=h):h=t[13],h}const Cd=Object.assign(dle,{Header:fle,Tabs:vle,Tab:ble,Actions:S3,Content:ule,Container:Object.assign(hle,{Inset:w3}),Title:gle,Breadcrumbs:cle});var ge=typeof window<"u"?window:void 0,so=typeof globalThis<"u"?globalThis:ge;typeof self>"u"&&(so.self=so),typeof File>"u"&&(so.File=function(){});var In=so?.navigator,ze=so?.document,Eo=so?.location,Wx=so?.fetch,Kx=so!=null&&so.XMLHttpRequest&&"withCredentials"in new so.XMLHttpRequest?so.XMLHttpRequest:void 0,n2=so?.AbortController,yle=so?.CompressionStream,hn=In?.userAgent,at=ge??{},r2="1.372.3",Jo={DEBUG:!1,LIB_VERSION:r2,LIB_NAME:"web",JS_SDK_VERSION:r2};function s2(e,t,a,o,n,r,i){try{var c=e[r](i),d=c.value}catch(u){return void a(u)}c.done?t(d):Promise.resolve(d).then(o,n)}function tr(e){return function(){var t=this,a=arguments;return new Promise((function(o,n){var r=e.apply(t,a);function i(d){s2(r,o,n,i,c,"next",d)}function c(d){s2(r,o,n,i,c,"throw",d)}i(void 0)}))}}function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;arguments.length>t;t++){var a=arguments[t];for(var o in a)({}).hasOwnProperty.call(a,o)&&(e[o]=a[o])}return e},Me.apply(null,arguments)}function T3(e,t){if(e==null)return{};var a={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;a[o]=e[o]}return a}function Yx(){return Yx=tr((function*(e,t,a){t===void 0&&(t=!0);try{var o=new CompressionStream("gzip"),n=o.writable.getWriter(),r=n.write(new TextEncoder().encode(e)).then((()=>n.close())).catch((function(){var d=tr((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 t&&console.error("Failed to gzip compress data",d),null}})),Yx.apply(this,arguments)}var wle=["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"],i2=function(e,t){if(t===void 0&&(t=[]),!e)return!1;var a=e.toLowerCase();return wle.concat(t).some((o=>{var n=o.toLowerCase();return a.indexOf(n)!==-1}))},Sle=["$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 Et(e,t){return e.indexOf(t)!==-1}var yb=function(e){return e.trim()},Qx=function(e){return e.replace(/^\$/,"")},x3=Object.prototype,k3=x3.hasOwnProperty,wb=x3.toString,Bt=Array.isArray||function(e){return wb.call(e)==="[object Array]"},Os=e=>typeof e=="function",Ba=e=>e===Object(e)&&!Bt(e),vd=e=>{if(Ba(e)){for(var t in e)if(k3.call(e,t))return!1;return!0}return!1},$e=e=>e===void 0,Ca=e=>wb.call(e)=="[object String]",Ef=e=>Ca(e)&&e.trim().length===0,Us=e=>e===null,Pt=e=>$e(e)||Us(e),ir=e=>wb.call(e)=="[object Number]"&&e==e,cd=e=>ir(e)&&e>0,Zr=e=>wb.call(e)==="[object Boolean]",Tle=e=>e instanceof FormData,xle=e=>Et(Sle,e);function E3(e){return e===null||typeof e!="object"}function uv(e,t){return{}.toString.call(e)==="[object "+t+"]"}function ME(e){return typeof Event<"u"&&(function(t,a){try{return t instanceof a}catch{return!1}})(e,Event)}var kle=[!0,"true",1,"1","yes"],QS=e=>Et(kle,e),Ele=[!1,"false",0,"0","no"];function Jr(e,t,a,o,n){return t>a&&(o.warn("min cannot be greater than max."),t=a),ir(e)?e>a?(o.warn(" cannot be greater than max: "+a+". Using max value instead."),a):t>e?(o.warn(" cannot be less than min: "+t+". Using min value instead."),t):e:(o.warn(" must be a number. using max or fallback. max: "+a+", fallback: "+n),Jr(n||a,t,a,o))}let Cle=class{constructor(t){this.$t={},this.zt=t.zt,this.Ut=Jr(t.bucketSize,0,100,t.Gt),this.Wt=Jr(t.refillRate,0,this.Ut,t.Gt),this.Xt=Jr(t.refillInterval,0,864e5,t.Gt)}Jt(t,a){var o=Math.floor((a-t.lastAccess)/this.Xt);o>0&&(t.tokens=Math.min(t.tokens+o*this.Wt,this.Ut),t.lastAccess=t.lastAccess+o*this.Xt)}consumeRateLimit(t){var a,o=Date.now(),n=String(t),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,t)),r.tokens===0)}stop(){this.$t={}}};var Zg,l2,ZS,Bn="Mobile",pv="iOS",Ls="Android",Ud="Tablet",C3=Ls+" "+Ud,P3="iPad",_3="Apple",A3=_3+" Watch",Pp="Safari",$d="BlackBerry",R3="Samsung",D3=R3+"Browser",O3=R3+" Internet",zl="Chrome",Ple=zl+" OS",N3=zl+" "+pv,IE="Internet Explorer",M3=IE+" "+Bn,LE="Opera",_le=LE+" Mini",BE="Edge",I3="Microsoft "+BE,Pd="Firefox",L3=Pd+" "+pv,Yp="Nintendo",Qp="PlayStation",_d="Xbox",B3=Ls+" "+Bn,F3=Bn+" "+Pp,bp="Windows",Zx=bp+" Phone",c2="Nokia",Jx="Ouya",j3="Generic",Ale=j3+" "+Bn.toLowerCase(),z3=j3+" "+Ud.toLowerCase(),Xx="Konqueror",Zo="(\\d+(\\.\\d+)?)",JS=new RegExp("Version/"+Zo),Rle=new RegExp(_d,"i"),Dle=new RegExp(Qp+" \\w+","i"),Ole=new RegExp(Yp+" \\w+","i"),FE=new RegExp($d+"|PlayBook|BB10","i"),Nle={"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"},q3=function(e,t){return t=t||"",Et(e," OPR/")&&Et(e,"Mini")?_le:Et(e," OPR/")?LE:FE.test(e)?$d:Et(e,"IE"+Bn)||Et(e,"WPDesktop")?M3:Et(e,D3)?O3:Et(e,BE)||Et(e,"Edg/")?I3:Et(e,"FBIOS")?"Facebook "+Bn:Et(e,"UCWEB")||Et(e,"UCBrowser")?"UC Browser":Et(e,"CriOS")?N3:Et(e,"CrMo")||Et(e,zl)?zl:Et(e,Ls)&&Et(e,Pp)?B3:Et(e,"FxiOS")?L3:Et(e.toLowerCase(),Xx.toLowerCase())?Xx:((a,o)=>o&&Et(o,_3)||(function(n){return Et(n,Pp)&&!Et(n,zl)&&!Et(n,Ls)})(a))(e,t)?Et(e,Bn)?F3:Pp:Et(e,Pd)?Pd:Et(e,"MSIE")||Et(e,"Trident/")?IE:Et(e,"Gecko")?Pd:""},Mle={[M3]:[new RegExp("rv:"+Zo)],[I3]:[new RegExp(BE+"?\\/"+Zo)],[zl]:[new RegExp("("+zl+"|CrMo)\\/"+Zo)],[N3]:[new RegExp("CriOS\\/"+Zo)],"UC Browser":[new RegExp("(UCBrowser|UCWEB)\\/"+Zo)],[Pp]:[JS],[F3]:[JS],[LE]:[new RegExp("(Opera|OPR)\\/"+Zo)],[Pd]:[new RegExp(Pd+"\\/"+Zo)],[L3]:[new RegExp("FxiOS\\/"+Zo)],[Xx]:[new RegExp("Konqueror[:/]?"+Zo,"i")],[$d]:[new RegExp($d+" "+Zo),JS],[B3]:[new RegExp("android\\s"+Zo,"i")],[O3]:[new RegExp(D3+"\\/"+Zo)],[IE]:[new RegExp("(rv:|MSIE )"+Zo)],Mozilla:[new RegExp("rv:"+Zo)]},Ile=function(e,t){var a=q3(e,t),o=Mle[a];if($e(o))return null;for(var n=0;o.length>n;n++){var r=e.match(o[n]);if(r)return parseFloat(r[r.length-2])}return null},d2=[[new RegExp(_d+"; "+_d+" (.*?)[);]","i"),e=>[_d,e&&e[1]||""]],[new RegExp(Yp,"i"),[Yp,""]],[new RegExp(Qp,"i"),[Qp,""]],[FE,[$d,""]],[new RegExp(bp,"i"),(e,t)=>{if(/Phone/.test(t)||/WPDesktop/.test(t))return[Zx,""];if(new RegExp(Bn).test(t)&&!/IEMobile\b/.test(t))return[bp+" "+Bn,""];var a=/Windows NT ([0-9.]+)/i.exec(t);if(a&&a[1]){var o=Nle[a[1]]||"";return/arm/i.test(t)&&(o="RT"),[bp,o]}return[bp,""]}],[/((iPhone|iPad|iPod).*?OS (\d+)_(\d+)_?(\d+)?|iPhone)/,e=>e&&e[3]?[pv,[e[3],e[4],e[5]||"0"].join(".")]:[pv,""]],[/(watch.*\/(\d+\.\d+\.\d+)|watch os,(\d+\.\d+),)/i,e=>{var t="";return e&&e.length>=3&&(t=$e(e[2])?e[3]:e[2]),["watchOS",t]}],[new RegExp("("+Ls+" (\\d+)\\.(\\d+)\\.?(\\d+)?|"+Ls+")","i"),e=>e&&e[2]?[Ls,[e[2],e[3],e[4]||"0"].join(".")]:[Ls,""]],[/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i,e=>{var t=["Mac OS X",""];return e&&e[1]&&(t[1]=[e[1],e[2],e[3]||"0"].join(".")),t}],[/Mac/i,["Mac OS X",""]],[/CrOS/,[Ple,""]],[/Linux|debian/i,["Linux",""]]],u2=function(e){return Ole.test(e)?Yp:Dle.test(e)?Qp:Rle.test(e)?_d:new RegExp(Jx,"i").test(e)?Jx:new RegExp("("+Zx+"|WPDesktop)","i").test(e)?Zx:/iPad/.test(e)?P3:/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(watch)(?: ?os[,/]|\d,\d\/)[\d.]+/i.test(e)?A3:FE.test(e)?$d:/(kobo)\s(ereader|touch)/i.test(e)?"Kobo":new RegExp(c2,"i").test(e)?c2:/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i.test(e)||/(kf[a-z]+)( bui|\)).+silk\//i.test(e)?"Kindle Fire":/(Android|ZTE)/i.test(e)?new RegExp(Bn).test(e)&&!/(9138B|TB782B|Nexus [97]|pixel c|HUAWEISHT|BTV|noble nook|smart ultra 6)/i.test(e)||/pixel[\daxl ]{1,6}/i.test(e)&&!/pixel c/i.test(e)||/(huaweimed-al00|tah-|APA|SM-G92|i980|zte|U304AA)/i.test(e)||/lmy47v/i.test(e)&&!/QTAQZ3/i.test(e)?Ls:C3:new RegExp("(pda|"+Bn+")","i").test(e)?Ale:new RegExp(Ud,"i").test(e)&&!new RegExp(Ud+" pc","i").test(e)?z3:""},Lle=e=>e instanceof Error,U3={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}},Ble=U3.info;function $3(e){if(Zr(e))return{boolValue:e};if(typeof e=="number")return Number.isFinite(e)?Number.isInteger(e)?{intValue:e}:{doubleValue:e}:{stringValue:String(e)};if(typeof e=="string")return{stringValue:e};if(Bt(e))return{arrayValue:{values:e.map((t=>$3(t)))}};try{return{stringValue:JSON.stringify(e)}}catch{return{stringValue:String(e)}}}function p2(e){var t=[];for(var a in e){var o=e[a];Us(o)||$e(o)||t.push({key:a,value:$3(o)})}return t}function Fle(e){var t=globalThis._posthogChunkIds;if(t){var a=Object.keys(t);return ZS&&a.length===l2||(l2=a.length,ZS=a.reduce(((o,n)=>{Zg||(Zg={});var r=Zg[n];if(r)o[r[0]]=r[1];else for(var i=e(n),c=i.length-1;c>=0;c--){var d=i[c],u=d?.filename,m=t[n];if(u&&m){o[u]=m,Zg[n]=[u,m];break}}return o}),{})),ZS}}class jle{constructor(t,a,o){o===void 0&&(o=[]),this.coercers=t,this.stackParser=a,this.modifiers=o}buildFromUnknown(t,a){a===void 0&&(a={});var o=a&&a.mechanism||{handled:!0,type:"generic"},n=this.buildCoercingContext(o,a,0).apply(t),r=this.buildParsingContext(a),i=this.parseStacktrace(n,r);return{$exception_list:this.convertToExceptionList(i,o),$exception_level:"error"}}modifyFrames(t){var a=this;return tr((function*(){for(var o of t)o.stacktrace&&o.stacktrace.frames&&Bt(o.stacktrace.frames)&&(o.stacktrace.frames=yield a.applyModifiers(o.stacktrace.frames));return t}))()}coerceFallback(t){var a;return{type:"Error",value:"Unknown error",stack:(a=t.syntheticException)==null?void 0:a.stack,synthetic:!0}}parseStacktrace(t,a){var o,n;return t.cause!=null&&(o=this.parseStacktrace(t.cause,a)),t.stack!=""&&t.stack!=null&&(n=this.applyChunkIds(this.stackParser(t.stack,t.synthetic?a.skipFirstLines:0),a.chunkIdMap)),Me({},t,{cause:o,stack:n})}applyChunkIds(t,a){return t.map((o=>(o.filename&&a&&(o.chunk_id=a[o.filename]),o)))}applyCoercers(t,a){for(var o of this.coercers)if(o.match(t))return o.coerce(t,a);return this.coerceFallback(a)}applyModifiers(t){var a=this;return tr((function*(){var o=t;for(var n of a.modifiers)o=yield n(o);return o}))()}convertToExceptionList(t,a){var o,n,r,i={type:t.type,value:t.value,mechanism:{type:(o=a.type)!==null&&o!==void 0?o:"generic",handled:(n=a.handled)===null||n===void 0||n,synthetic:(r=t.synthetic)!==null&&r!==void 0&&r}};t.stack&&(i.stacktrace={type:"raw",frames:t.stack});var c=[i];return t.cause!=null&&c.push(...this.convertToExceptionList(t.cause,Me({},a,{handled:!0}))),c}buildParsingContext(t){var a;return{chunkIdMap:Fle(this.stackParser),skipFirstLines:(a=t.skipFirstLines)!==null&&a!==void 0?a:1}}buildCoercingContext(t,a,o){o===void 0&&(o=0);var n=(r,i)=>{if(4>=i){var c=this.buildCoercingContext(t,a,i);return this.applyCoercers(r,c)}};return Me({},a,{syntheticException:o==0?a.syntheticException:void 0,mechanism:t,apply:r=>n(r,o),next:r=>n(r,o+1)})}}var Vd="?";function e0(e,t,a,o,n){var r={platform:e,filename:t,function:a==="<anonymous>"?Vd:a,in_app:!0};return $e(o)||(r.lineno=o),$e(n)||(r.colno=n),r}var V3=(e,t)=>{var a=e.indexOf("safari-extension")!==-1,o=e.indexOf("safari-web-extension")!==-1;return a||o?[e.indexOf("@")!==-1?e.split("@")[0]:Vd,a?"safari-extension:"+t:"safari-web-extension:"+t]:[e,t]},zle=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,qle=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Ule=/\((\S*)(?::(\d+))(?::(\d+))\)/,$le=(e,t)=>{var a=zle.exec(e);if(a){var[,o,n,r]=a;return e0(t,o,Vd,+n,+r)}var i=qle.exec(e);if(i){if(i[2]&&i[2].indexOf("eval")===0){var c=Ule.exec(i[2]);c&&(i[2]=c[1],i[3]=c[2],i[4]=c[3])}var[d,u]=V3(i[1]||Vd,i[2]);return e0(t,u,d,i[3]?+i[3]:void 0,i[4]?+i[4]:void 0)}},Vle=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Hle=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Gle=(e,t)=>{var a=Vle.exec(e);if(a){if(a[3]&&a[3].indexOf(" > eval")>-1){var o=Hle.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]||Vd;return[r,n]=V3(r,n),e0(t,n,r,a[4]?+a[4]:void 0,a[5]?+a[5]:void 0)}},m2=/\(error: (.*)\)/;let Wle=class{match(t){return this.isDOMException(t)||this.isDOMError(t)}coerce(t,a){var o=Ca(t.stack);return{type:this.getType(t),value:this.getValue(t),stack:o?t.stack:void 0,cause:t.cause?a.next(t.cause):void 0,synthetic:!1}}getType(t){return this.isDOMError(t)?"DOMError":"DOMException"}getValue(t){var a=t.name||(this.isDOMError(t)?"DOMError":"DOMException");return t.message?a+": "+t.message:a}isDOMException(t){return uv(t,"DOMException")}isDOMError(t){return uv(t,"DOMError")}};class Kle{match(t){return(a=>a instanceof Error)(t)}coerce(t,a){return{type:this.getType(t),value:this.getMessage(t,a),stack:this.getStack(t),cause:t.cause?a.next(t.cause):void 0,synthetic:!1}}getType(t){return t.name||t.constructor.name}getMessage(t,a){var o=t.message;return String(o.error&&typeof o.error.message=="string"?o.error.message:o)}getStack(t){return t.stacktrace||t.stack||void 0}}let Yle=class{constructor(){}match(t){return uv(t,"ErrorEvent")&&t.error!=null}coerce(t,a){var o;return a.apply(t.error)||{type:"ErrorEvent",value:t.message,stack:(o=a.syntheticException)==null?void 0:o.stack,synthetic:!0}}};var Qle=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let Zle=class{match(t){return typeof t=="string"}coerce(t,a){var o,[n,r]=this.getInfos(t);return{type:n??"Error",value:r??t,stack:(o=a.syntheticException)==null?void 0:o.stack,synthetic:!0}}getInfos(t){var a="Error",o=t,n=t.match(Qle);return n&&(a=n[1],o=n[2]),[a,o]}};var Jle=["fatal","error","warning","log","info","debug"];function H3(e,t){t===void 0&&(t=40);var a=Object.keys(e);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(t>=n.length)return o===a.length?n:n.length>t?n.slice(0,t)+"...":n}return""}let Xle=class{match(t){return typeof t=="object"&&t!==null}coerce(t,a){var o,n=this.getErrorPropertyFromObject(t);return n?a.apply(n):{type:this.getType(t),value:this.getValue(t),stack:(o=a.syntheticException)==null?void 0:o.stack,level:this.isSeverityLevel(t.level)?t.level:"error",synthetic:!0}}getType(t){return ME(t)?t.constructor.name:"Error"}getValue(t){if("name"in t&&typeof t.name=="string"){var a="'"+t.name+"' captured as exception";return"message"in t&&typeof t.message=="string"&&(a+=" with message: '"+t.message+"'"),a}if("message"in t&&typeof t.message=="string")return t.message;var o=this.getObjectClassName(t);return(o&&o!=="Object"?"'"+o+"'":"Object")+" captured as exception with keys: "+H3(t)}isSeverityLevel(t){return Ca(t)&&!Ef(t)&&Jle.indexOf(t)>=0}getErrorPropertyFromObject(t){for(var a in t)if({}.hasOwnProperty.call(t,a)){var o=t[a];if(Lle(o))return o}}getObjectClassName(t){try{var a=Object.getPrototypeOf(t);return a?a.constructor.name:void 0}catch{return}}},ece=class{match(t){return ME(t)}coerce(t,a){var o,n=t.constructor.name;return{type:n,value:n+" captured as exception with keys: "+H3(t),stack:(o=a.syntheticException)==null?void 0:o.stack,synthetic:!0}}},tce=class{match(t){return E3(t)}coerce(t,a){var o;return{type:"Error",value:"Primitive value captured as exception: "+String(t),stack:(o=a.syntheticException)==null?void 0:o.stack,synthetic:!0}}},ace=class{match(t){return uv(t,"PromiseRejectionEvent")||this.isCustomEventWrappingRejection(t)}isCustomEventWrappingRejection(t){if(!ME(t))return!1;try{var a=t.detail;return a!=null&&typeof a=="object"&&"reason"in a}catch{return!1}}coerce(t,a){var o,n=this.getUnhandledRejectionReason(t);return E3(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(t){try{if("reason"in t)return t.reason;if("detail"in t&&t.detail!=null&&typeof t.detail=="object"&&"reason"in t.detail)return t.detail.reason}catch{}return t}};var mv="$message",hv="$timestamp",oce=new Set([mv,hv]),XS={enabled:!0,max_bytes:32768};function gv(e){var t;return e?{enabled:(t=e.enabled)!==null&&t!==void 0?t:XS.enabled,max_bytes:rce(e.max_bytes,XS.max_bytes)}:Me({},XS)}let nce=class{constructor(t){this.Kt=[],this.Qt=0,this.Bt=gv(t)}setConfig(t){this.Bt=gv(t),this.er()}add(t){var a=(function(n){var r=(function(m){var h=new WeakSet;try{return JSON.stringify(m,((f,v)=>{if(typeof v=="bigint")return v.toString();if(typeof v!="function"&&typeof v!="symbol"){if(v instanceof Date)return v.toISOString();if(v instanceof Error)return{name:v.name,message:v.message,stack:v.stack};if(v&&typeof v=="object"){if(h.has(v))return"[Circular]";h.add(v)}return v}}))}catch{return}})(n);if(r)try{var i=JSON.parse(r);if(!Ba(i))return;var c=i,d=c[mv],u=c[hv];return!Ca(d)||d.trim().length===0||!Ca(u)&&!ir(u)?void 0:{step:c,json:r}}catch{return}})(t);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((t=>t.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 t=this.Kt.shift();t&&(this.Qt-=t.bytes)}}};function rce(e,t){if(!ir(e)||e===1/0||e===-1/0)return t;var a=Math.floor(e);return 0>a?t:a}var G3=function(e,t){var{debugEnabled:a}=t===void 0?{}:t,o={C(n){if(ge&&(Jo.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(e,...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(e,...r)},uninitializedWarning(n){o.error("You must initialize PostHog before calling "+n)},createLogger:(n,r)=>G3(e+" "+n,r)};return o},Ue=G3("[PostHog.js]"),Ta=Ue.createLogger,sce=Ta("[ExternalScriptsLoader]"),eT=(e,t,a)=>{if(e.config.disable_external_dependency_loading)return sce.warn(t+" 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===t){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=t,d.onload=h=>{d.__posthog_loading_callback_fired=!0,a(void 0,h)},d.onerror=h=>a(h),e.config.prepare_external_dependency_script&&(d=e.config.prepare_external_dependency_script(d)),!d)return a("prepare_external_dependency_script returned null");if(e.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=(e,t,a)=>{if(t!=="remote-config"){var o;if(e.config.__preview_external_dependency_versioned_paths)o=e.requestRouter.endpointFor("assets","/static/"+e.version+"/"+t+".js");else{var n="/static/"+t+".js?v="+e.version;if(t==="toolbar"){var r=3e5;n=n+"&t="+Math.floor(Date.now()/r)*r}o=e.requestRouter.endpointFor("assets",n)}eT(e,o,a)}else{var i=e.requestRouter.endpointFor("assets","/array/"+e.config.token+"/config.js");eT(e,i,a)}},at.__PosthogExtensions__.loadSiteApp=(e,t,a)=>{var o=e.requestRouter.endpointFor("api",t);eT(e,o,a)};var W3="$people_distinct_id",fv="$device_id",yp="__alias",wp="__timers",t0="$autocapture_disabled_server_side",a0="$heatmaps_enabled_server_side",o0="$exception_capture_enabled_server_side",n0="$error_tracking_suppression_rules",r0="$error_tracking_capture_extension_exceptions",s0="$web_vitals_enabled_server_side",jE="$dead_clicks_enabled_server_side",i0="$product_tours_enabled_server_side",l0="$web_vitals_allowed_metrics",Sp="$session_recording_remote_config",K3="$replay_override_sampling",Y3="$replay_override_linked_flag",Q3="$replay_override_url_trigger",Z3="$replay_override_event_trigger",vv="$sesid",zE="$session_is_sampled",bd="$enabled_feature_flags",Cf="$active_feature_flags",Tp="$early_access_features",c0="$feature_flag_details",d0="$feature_flag_payloads",u0="$feature_flag_request_id",Ds="$override_feature_flags",dd="$override_feature_flag_payloads",xp="$stored_person_properties",Rl="$stored_group_properties",p0="$surveys",m0="$surveys_activated",Pf="ph_product_tours",_p="$flag_call_reported",h0="$flag_call_reported_session_id",g0="$feature_flag_errors",bv="$feature_flag_evaluated_at",yr="$user_state",f0="$client_session_props",v0="$capture_rate_limit",b0="$initial_campaign_params",y0="$initial_referrer_info",yv="$initial_person_info",wv="$epp",J3="__POSTHOG_TOOLBAR__",Jg="$posthog_cookieless",X3="$sdk_debug_extensions_init_method",e4="$sdk_debug_extensions_init_time_ms",t4="$sdk_debug_recording_script_not_loaded",qE="PostHog loadExternalDependency extension not found.",Dl="on_reject",Ns="always",Jc="anonymous",Xc="identified",w0="identified_only",Sv="visibilitychange",Tv="beforeunload",ud="$pageview",tT="$pageleave",aT="$identify",h2="$groupidentify";function Xg(e,t){Bt(e)&&e.forEach(t)}function va(e,t){if(!Pt(e))if(Bt(e))e.forEach(t);else if(Tle(e))e.forEach(((o,n)=>t(o,n)));else for(var a in e)k3.call(e,a)&&t(e[a],a)}var Na=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),o=1;t>o;o++)a[o-1]=arguments[o];for(var n of a)for(var r in n)n[r]!==void 0&&(e[r]=n[r]);return e};function _f(e){for(var t=Object.keys(e),a=t.length,o=new Array(a);a--;)o[a]=[t[a],e[t[a]]];return o}var g2=function(e){try{return e()}catch{return}},ice=function(e){return function(){try{for(var t=arguments.length,a=new Array(t),o=0;t>o;o++)a[o]=arguments[o];return e.apply(this,a)}catch(n){Ue.critical("Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A."),Ue.critical(n)}}},UE=function(e){var t={};return va(e,(function(a,o){(Ca(a)&&a.length>0||ir(a))&&(t[o]=a)})),t},lce=["herokuapp.com","vercel.app","netlify.app"];function cce(e){var t=e?.hostname;if(!Ca(t))return!1;var a=t.split(".").slice(-2).join(".");for(var o of lce)if(a===o)return!1;return!0}function Za(e,t,a,o){var{capture:n=!1,passive:r=!0}=o??{};e?.addEventListener(t,a,{capture:n,passive:r})}function a4(e){return e.name==="ph_toolbar_internal"}Math.trunc||(Math.trunc=function(e){return 0>e?Math.ceil(e):Math.floor(e)}),Number.isInteger||(Number.isInteger=function(e){return ir(e)&&isFinite(e)&&Math.floor(e)===e});class xv{constructor(t){if(this.bytes=t,t.length!==16)throw new TypeError("not 128-bit length")}static fromFieldsV7(t,a,o,n){if(!Number.isInteger(t)||!Number.isInteger(a)||!Number.isInteger(o)||!Number.isInteger(n)||0>t||0>a||0>o||0>n||t>0xffffffffffff||a>4095||o>1073741823||n>4294967295)throw new RangeError("invalid field value");var r=new Uint8Array(16);return r[0]=t/Math.pow(2,40),r[1]=t/Math.pow(2,32),r[2]=t/Math.pow(2,24),r[3]=t/Math.pow(2,16),r[4]=t/Math.pow(2,8),r[5]=t,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 xv(r)}toString(){for(var t="",a=0;this.bytes.length>a;a++)t=t+(this.bytes[a]>>>4).toString(16)+(15&this.bytes[a]).toString(16),a!==3&&a!==5&&a!==7&&a!==9||(t+="-");if(t.length!==36)throw new Error("Invalid UUIDv7 was generated");return t}clone(){return new xv(this.bytes.slice(0))}equals(t){return this.compareTo(t)===0}compareTo(t){for(var a=0;16>a;a++){var o=this.bytes[a]-t.bytes[a];if(o!==0)return Math.sign(o)}return 0}}class dce{constructor(){this.I=0,this.S=0,this.k=new uce}generate(){var t=this.generateOrAbort();if($e(t)){this.I=0;var a=this.generateOrAbort();if($e(a))throw new Error("Could not generate UUID after timestamp reset");return a}return t}generateOrAbort(){var t=Date.now();if(t>this.I)this.I=t,this.A();else{if(this.I>=t+1e4)return;this.S++,this.S>4398046511103&&(this.I++,this.A())}return xv.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 f2,o4=e=>{if(typeof UUIDV7_DENY_WEAK_RNG<"u"&&UUIDV7_DENY_WEAK_RNG)throw new Error("no cryptographically strong RNG available");for(var t=0;e.length>t;t++)e[t]=65536*Math.trunc(65536*Math.random())+Math.trunc(65536*Math.random());return e};ge&&!$e(ge.crypto)&&crypto.getRandomValues&&(o4=e=>crypto.getRandomValues(e));class uce{constructor(){this.T=new Uint32Array(8),this.N=1/0}nextUint32(){return this.T.length>this.N||(o4(this.T),this.N=0),this.T[this.N++]}}var Oi=()=>pce().toString(),pce=()=>(f2||(f2=new dce)).generate(),ap="",mce=/[a-z0-9][a-z0-9-]+\.[a-z]{2,}$/i,Qr={R:()=>!!ze,B(e){Ue.error("cookieStore error: "+e)},O(e){if(ze){try{for(var t=e+"=",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(t)===0)return decodeURIComponent(n.substring(t.length,n.length))}}catch{}return null}},Z(e){var t;try{t=JSON.parse(Qr.O(e))||{}}catch{}return t},M(e,t,a,o,n){if(ze)try{var r="",i="",c=(function(m,h){if(h){var f=(function(b,w){if(w===void 0&&(w=ze),ap)return ap;if(!w||["localhost","127.0.0.1"].includes(b))return"";for(var x=b.split("."),T=Math.min(x.length,8),k="dmn_chk_"+Oi();!ap&&T--;){var C=x.slice(T).join("."),E=k+"=1;domain=."+C+";path=/";w.cookie=E+";max-age=3",w.cookie.includes(k)&&(w.cookie=E+";max-age=0",ap=C)}return ap})(m);if(!f){var v=(b=>{var w=b.match(mce);return w?w[0]:""})(m);v!==f&&Ue.info("Warning: cookie subdomain discovery mismatch",v,f),f=v}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=e+"="+encodeURIComponent(JSON.stringify(t))+r+"; SameSite=Lax; path=/"+c+i;return u.length>3686.4&&Ue.warn("cookieStore warning: large cookie, len="+u.length),ze.cookie=u,u}catch{return}},F(e,t){if(ze!=null&&ze.cookie)try{Qr.M(e,"",-1,t)}catch{return}}},oT=null,Ea={R(){if(!Us(oT))return oT;var e=!0;if($e(ge))e=!1;else try{var t="__mplssupport__";Ea.M(t,"xyz"),Ea.O(t)!=='"xyz"'&&(e=!1),Ea.F(t)}catch{e=!1}return e||Ue.error("localStorage unsupported; falling back to cookie store"),oT=e,e},B(e){Ue.error("localStorage error: "+e)},O(e){try{return ge?.localStorage.getItem(e)}catch(t){Ea.B(t)}return null},Z(e){try{return JSON.parse(Ea.O(e))||{}}catch{}return null},M(e,t){try{ge?.localStorage.setItem(e,JSON.stringify(t))}catch(a){Ea.B(a)}},F(e){try{ge?.localStorage.removeItem(e)}catch(t){Ea.B(t)}}},hce=[fv,"distinct_id",vv,zE,wv,yv,yr],ef={},gce={R:()=>!0,B(e){Ue.error("memoryStorage error: "+e)},O:e=>ef[e]||null,Z:e=>ef[e]||null,M(e,t){ef[e]=t},F(e){delete ef[e]}},El=null,Co={R(){if(!Us(El))return El;if(El=!0,$e(ge))El=!1;else try{var e="__support__";Co.M(e,"xyz"),Co.O(e)!=='"xyz"'&&(El=!1),Co.F(e)}catch{El=!1}return El},B(e){Ue.error("sessionStorage error: ",e)},O(e){try{return ge?.sessionStorage.getItem(e)}catch(t){Co.B(t)}return null},Z(e){try{return JSON.parse(Co.O(e))||null}catch{}return null},M(e,t){try{ge?.sessionStorage.setItem(e,JSON.stringify(t))}catch(a){Co.B(a)}},F(e){try{ge?.sessionStorage.removeItem(e)}catch(t){Co.B(t)}}};class fce{constructor(t){this._instance=t}get Bt(){return this._instance.config}get consent(){return this.rr()?0:this.ir}isOptedOut(){return this.Bt.cookieless_mode===Ns||this.isRejected()||this.consent===-1&&this.Bt.cookieless_mode===Dl}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(t){this.nr.M(this.sr,t?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:t,opt_out_capturing_cookie_prefix:a,consent_persistence_name:o}=this._instance.config;return o||(a?a+t:"__ph_opt_in_out_"+t)}get ir(){var t=this.nr.O(this.sr);return QS(t)?1:Et(Ele,t)?0:-1}get nr(){var t=this.Bt.opt_out_capturing_persistence_type,a=t==="localStorage"?Ea:Qr;if(!this.ar||this.ar!==a){this.ar=a;var o=t==="localStorage"?Qr:Ea;o.O(this.sr)&&(this.ar.O(this.sr)||this.optInOut(QS(o.O(this.sr))),o.F(this.sr,this.Bt.cross_subdomain_cookie))}return this.ar}rr(){return!!this.Bt.respect_dnt&&[In?.doNotTrack,In?.msDoNotTrack,at.doNotTrack].some((t=>QS(t)))}}var tf=Ta("[Dead Clicks]"),vce=()=>!0,bce=e=>{var t,a=!((t=e.instance.persistence)==null||!t.get_property(jE)),o=e.instance.config.capture_dead_clicks;return Zr(o)?o:!!Ba(o)||a};class v2{get lazyLoadedDeadClicksAutocapture(){return this.lr}constructor(t,a,o){this.instance=t,this.isEnabled=a,this.onCapture=o,this.startIfEnabledOrStop()}onRemoteConfig(t){"captureDeadClicks"in t&&(this.instance.persistence&&this.instance.persistence.register({[jE]:t.captureDeadClicks}),this.startIfEnabledOrStop())}startIfEnabledOrStop(){this.isEnabled(this)?this.ur((()=>{this.hr()})):this.stop()}ur(t){var a,o;(a=at.__PosthogExtensions__)!=null&&a.initDeadClicksAutocapture&&t(),(o=at.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this.instance,"dead-clicks-autocapture",(n=>{n?tf.error("failed to load script",n):t()}))}hr(){var t;if(ze){if(!this.lr&&(t=at.__PosthogExtensions__)!=null&&t.initDeadClicksAutocapture){var a=Ba(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),tf.info("starting...")}}else tf.error("`document` not found. Cannot start.")}stop(){this.lr&&(this.lr.stop(),this.lr=void 0,tf.info("stopping..."))}}var nT=Ta("[SegmentIntegration]"),n4="posthog-js";function r4(e,t){var{organization:a,projectId:o,prefix:n,severityAllowList:r=["error"],sendExceptionsToPostHog:i=!0}=t===void 0?{}:t;return c=>{var d,u,m,h,f;if(r!=="*"&&!r.includes(c.level)||!e.__loaded)return c;c.tags||(c.tags={});var v=e.requestRouter.endpointFor("ui","/project/"+e.config.token+"/person/"+e.get_distinct_id());c.tags["PostHog Person URL"]=v,e.sessionRecordingStarted()&&(c.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var b,w=((d=c.exception)==null?void 0:d.values)||[],x=w.map((k=>Me({},k,{stacktrace:k.stacktrace?Me({},k.stacktrace,{type:"raw",frames:(k.stacktrace.frames||[]).map((C=>Me({},C,{platform:"web:javascript"})))}):void 0}))),T={$exception_message:((u=w[0])==null?void 0:u.value)||c.message,$exception_type:(m=w[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=w[0])==null?void 0:h.value)||c.message,$sentry_exception_type:(f=w[0])==null?void 0:f.type,$sentry_tags:c.tags};return a&&o&&(T.$sentry_url=(n||"https://sentry.io/organizations/")+a+"/issues/?project="+o+"&query="+c.event_id),i&&((b=e.exceptions)==null||b.sendExceptionEvent(T)),c}}class yce{constructor(t,a,o,n,r,i){this.name=n4,this.setupOnce=function(c){c(r4(t,{organization:a,projectId:o,prefix:n,severityAllowList:r,sendExceptionsToPostHog:i==null||i}))}}}class b2{constructor(t){this.cr=(a,o,n)=>{n&&(n.noSessionId||n.activityTimeout||n.sessionPastMaximumLength)&&(Ue.info("[PageViewManager] Session rotated, clearing pageview state",{sessionId:a,changeReason:n}),this.dr=void 0,this._instance.scrollManager.resetContext())},this._instance=t,this.vr()}vr(){var t;this.pr=(t=this._instance.sessionManager)==null?void 0:t.onSessionId(this.cr)}destroy(){var t;(t=this.pr)==null||t.call(this),this.pr=void 0}doPageView(t,a){var o,n=this.gr(t,a);return this.dr={pathname:(o=ge?.location.pathname)!==null&&o!==void 0?o:"",pageViewId:a,timestamp:t},this._instance.scrollManager.resetContext(),n}doPageLeave(t){var a;return this.gr(t,(a=this.dr)==null?void 0:a.pageViewId)}doEvent(){var t;return{$pageview_id:(t=this.dr)==null?void 0:t.pageViewId}}gr(t,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?Jr(c/i,0,1,Ue):1,v=i>1?Jr(d/i,0,1,Ue):1,b=u>1?Jr(m/u,0,1,Ue):1,w=u>1?Jr(h/u,0,1,Ue):1;n=Na(n,{$prev_pageview_last_scroll:c,$prev_pageview_last_scroll_percentage:f,$prev_pageview_max_scroll:d,$prev_pageview_max_scroll_percentage:v,$prev_pageview_last_content:m,$prev_pageview_last_content_percentage:b,$prev_pageview_max_content:h,$prev_pageview_max_content_percentage:w})}}return o.pathname&&(n.$prev_pageview_pathname=o.pathname),o.timestamp&&(n.$prev_pageview_duration=(t.getTime()-o.timestamp.getTime())/1e3),n}}var wce={[W3]:{exposure:"hidden"},[yp]:{exposure:"hidden"},__cmpns:{exposure:"hidden"},[wp]:{exposure:"hidden"},[t0]:{exposure:"event"},[a0]:{exposure:"hidden"},[o0]:{exposure:"event"},[n0]:{exposure:"hidden"},[r0]:{exposure:"event"},[s0]:{exposure:"event"},[jE]:{exposure:"event"},[i0]:{exposure:"hidden"},[l0]:{exposure:"event"},[Sp]:{exposure:"hidden"},$session_recording_enabled_server_side:{exposure:"hidden"},[vv]:{exposure:"hidden"},[zE]:{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"},[bd]:{exposure:"derived",shouldSkipFromEventProperties:(e,t)=>t(),transformToEventProperties(e){if(!Ba(e))return{};for(var t={},a=Object.keys(e),o=0;a.length>o;o++)t["$feature/"+a[o]]=e[a[o]];return t}},[Cf]:{exposure:"event"},[Tp]:{exposure:"hidden"},[c0]:{exposure:"hidden"},[d0]:{exposure:"event"},[u0]:{exposure:"event"},[Ds]:{exposure:"event"},[dd]:{exposure:"hidden"},[xp]:{exposure:"hidden"},[Rl]:{exposure:"hidden"},[p0]:{exposure:"hidden"},[m0]:{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"},[_p]:{exposure:"hidden"},[h0]:{exposure:"hidden"},[g0]:{exposure:"hidden"},[bv]:{exposure:"hidden"},[yr]:{exposure:"hidden"},[f0]:{exposure:"hidden"},[v0]:{exposure:"hidden"},[b0]:{exposure:"hidden"},[y0]:{exposure:"hidden"},[yv]:{exposure:"hidden"},[wv]:{exposure:"hidden"},[K3]:{exposure:"event"},[Y3]:{exposure:"event"},[Q3]:{exposure:"event"},[Z3]:{exposure:"event"},[X3]:{exposure:"event"},[e4]:{exposure:"event"},[t4]:{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"}},Sce=[["$posthog_sr_group_event_trigger_",{exposure:"hidden"}],["$posthog_sr_group_url_trigger_",{exposure:"hidden"}],["$posthog_sr_group_sampling_",{exposure:"hidden"}]],kv=e=>{var t=ze?.createElement("a");return $e(t)?null:(t.href=e,t)},Ev=function(e,t){for(var a,o=((e.split("#")[0]||"").split(/\?(.*)/)[1]||"").replace(/^\?+/g,"").split("&"),n=0;o.length>n;n++){var r=o[n].split("=");if(r[0]===t){a=r;break}}if(!Bt(a)||2>a.length)return"";var i=a[1];try{i=decodeURIComponent(i)}catch{Ue.error("Skipping decoding for malformed query param: "+i)}return i.replace(/\+/g," ")},Zp=function(e,t,a){if(!e||!t||!t.length)return e;for(var o=e.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)&&(t.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},Cv=function(e,t){var a=e.match(new RegExp(t+"=([^&]*)"));return a?a[1]:null},af="https?://(.*)",Hd=["gclid","gclsrc","dclid","gbraid","wbraid","fbclid","msclkid","twclid","li_fat_id","igshid","ttclid","rdt_cid","epik","qclid","sccid","irclid","_kx"],Tce=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gad_source","mc_cid",...Hd],Jp="<masked>",xce=["li_fat_id"];function s4(e,t,a){if(!ze)return{};var o,n=t?[...Hd,...a||[]]:[],r=i4(Zp(ze.URL,n,Jp),e),i=(o={},va(xce,(function(c){var d=Qr.O(c);o[c]=d||null})),o);return Na(i,r)}function i4(e,t){var a=Tce.concat(t||[]),o={};return va(a,(function(n){var r=Ev(e,n);o[n]=r||null})),o}function l4(e){var t=(function(r){return r?r.search(af+"google.([^/?]*)")===0?"google":r.search(af+"bing.com")===0?"bing":r.search(af+"yahoo.com")===0?"yahoo":r.search(af+"duckduckgo.com")===0?"duckduckgo":null:null})(e),a=t!="yahoo"?"q":"p",o={};if(!Us(t)){o.$search_engine=t;var n=ze?Ev(ze.referrer,a):"";n.length&&(o.ph_keyword=n)}return o}function y2(){return navigator.language||navigator.userLanguage}var Pv="$direct";function c4(){return ze?.referrer||Pv}function d4(e,t){var a=e?[...Hd,...t||[]]:[],o=Eo?.href.substring(0,1e3);return{r:c4().substring(0,1e3),u:o?Zp(o,a,Jp):void 0}}function u4(e){var t,{r:a,u:o}=e,n={$referrer:a,$referring_domain:a==null?void 0:a==Pv?Pv:(t=kv(a))==null?void 0:t.host};if(o){n.$current_url=o;var r=kv(o);n.$host=r?.host,n.$pathname=r?.pathname;var i=i4(o);Na(n,i)}if(a){var c=l4(a);Na(n,c)}return n}function p4(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch{return}}function kce(){try{return new Date().getTimezoneOffset()}catch{return}}var Ece=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"];class rT{constructor(t,a){this.Bt=t,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"})(t),this.nr=this.br(t),this.load(),t.debug&&Ue.info("Persistence loaded",t.persistence,Me({},this.props)),this.update_config(t,t,a),this.save()}isDisabled(){return!!this._r}br(t){Ece.indexOf(t.persistence.toLowerCase())===-1&&(Ue.critical("Unknown persistence type "+t.persistence+"; falling back to localStorage+cookie"),t.persistence="localStorage+cookie");var a=(function(n){n===void 0&&(n=[]);var r=[...hce,...n];return Me({},Ea,{Z(i){try{var c={};try{c=Qr.Z(i)||{}}catch{}var d=Na(c,JSON.parse(Ea.O(i)||"{}"));return Ea.M(i,d),d}catch{}return null},M(i,c,d,u,m,h){try{Ea.M(i,c,void 0,void 0,h);var f={};r.forEach((v=>{c[v]&&(f[v]=c[v])})),Object.keys(f).length&&Qr.M(i,f,d,u,m,h)}catch(v){Ea.B(v)}},F(i,c){try{ge?.localStorage.removeItem(i),Qr.F(i,c)}catch(d){Ea.B(d)}}})})(t.cookie_persisted_properties||[]),o=t.persistence.toLowerCase();return o==="localstorage"&&Ea.R()?Ea:o==="localstorage+cookie"&&a.R()?a:o==="sessionstorage"&&Co.R()?Co:o==="memory"?gce:o==="cookie"?Qr:a.R()?a:Qr}wr(t){var a=t??this.Bt.feature_flag_cache_ttl_ms;if(!a||0>=a)return!1;var o=this.props[bv];return!o||typeof o!="number"||Date.now()-o>a}properties(){var t={};return va(this.props,((a,o)=>{var n=(r=>{var i=wce[r];if(i)return i;for(var[c,d]of Sce)if(r.indexOf(c)===0)return d})(o);if(n?.exposure==="derived"){if(n.shouldSkipFromEventProperties!=null&&n.shouldSkipFromEventProperties(a,o===bd?()=>this.wr():()=>!1))return;n.transformToEventProperties&&Na(t,n.transformToEventProperties(a))}else n&&n.exposure!=="event"||(t[o]=a)})),t}load(){if(!this._r){var t=this.nr.Z(this.yr);t&&(this.props=Na({},t))}}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(t,a,o){if(Ba(t)){$e(a)&&(a="None"),this.Ir=$e(o)?this.kr:o;var n=!1;if(va(t,((r,i)=>{this.props.hasOwnProperty(i)&&this.props[i]!==a||(this.Tr(i,r),n=!0)})),n)return this.save(),!0}return!1}register(t,a){if(Ba(t)){this.Ir=$e(a)?this.kr:a;var o=!1;if(va(t,((n,r)=>{t.hasOwnProperty(r)&&this.props[r]!==n&&(this.Tr(r,n),o=!0)})),o)return this.save(),!0}return!1}unregister(t){t in this.props&&(this.Ar(t),this.save())}update_campaign_params(){if(!this.mr){var t=s4(this.Bt.custom_campaign_params,this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties);vd(UE(t))||this.register(t),this.mr=!0}}update_search_keyword(){var t;this.register((t=ze?.referrer)?l4(t):{})}update_referrer_info(){var t;this.register_once({$referrer:c4(),$referring_domain:ze!=null&&ze.referrer&&((t=kv(ze.referrer))==null?void 0:t.host)||Pv},void 0)}set_initial_person_info(){this.props[b0]||this.props[y0]||this.register_once({[yv]:d4(this.Bt.mask_personal_data_properties,this.Bt.custom_personal_data_properties)},void 0)}get_initial_props(){var t={};va([y0,b0],(i=>{var c=this.props[i];c&&va(c,(function(d,u){t["$initial_"+Qx(u)]=d}))}));var a,o,n=this.props[yv];if(n){var r=(a=u4(n),o={},va(a,(function(i,c){o["$initial_"+Qx(c)]=i})),o);Na(t,r)}return t}safe_merge(t){return va(this.props,(function(a,o){o in t||(t[o]=a)})),t}update_config(t,a,o){if(this.kr=this.Ir=t.cookie_expiration,this.set_disabled(t.disable_persistence||!!o),this.set_cross_subdomain(t.cross_subdomain_cookie),this.set_secure(t.secure_cookie),t.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]))})(t.cookie_persisted_properties||[],a.cookie_persisted_properties||[])){var n=this.br(t),r=this.props;this.clear(),this.nr=n,this.props=r,this.save()}}set_disabled(t){this._r=t,this._r?this.remove():this.save()}set_cross_subdomain(t){t!==this.Cr&&(this.Cr=t,this.remove(),this.save())}set_secure(t){t!==this.Sr&&(this.Sr=t,this.remove(),this.save())}set_event_timer(t,a){var o=this.props[wp]||{};o[t]=a,this.Tr(wp,o),this.save()}remove_event_timer(t){var a=this.props[wp]||{},o=a[t];return $e(o)||(delete a[t],this.Tr(wp,a),this.save()),o}get_property(t){return this.props[t]}set_property(t,a){this.Tr(t,a),this.save()}Tr(t,a){this.props[t]=a}Ar(t){delete this.props[t]}}var op={Activation:"events",Cancellation:"cancelEvents"},sT={Popover:"popover",API:"api",Widget:"widget"},kp={SHOWN:"survey shown",DISMISSED:"survey dismissed",SENT:"survey sent"},iT={SURVEY_ID:"$survey_id",SURVEY_ITERATION:"$survey_iteration",SURVEY_LAST_SEEN_DATE:"$survey_last_seen_date"},S0={Popover:"popover",Inline:"inline"},Cce={SHOWN:"product tour shown"},w2={TOUR_LAST_SEEN_DATE:"$product_tour_last_seen_date",TOUR_TYPE:"$product_tour_type"},S2=Ta("[RateLimiter]");class Pce{constructor(t){this.serverLimits={},this.lastEventRateLimited=!1,this.checkForLimiting=a=>{var o=a.text;if(o&&o.length)try{(JSON.parse(o).quota_limited||[]).forEach((n=>{S2.info((n||"events")+" is quota limited."),this.serverLimits[n]=new Date().getTime()+6e4}))}catch(n){return void S2.warn('could not rate limit - continuing. Error: "'+n?.message+'"',{text:o})}},this.instance=t,this.lastEventRateLimited=this.clientRateLimitContext(!0).isRateLimited}get captureEventsPerSecond(){var t;return((t=this.instance.config.rate_limiting)==null?void 0:t.events_per_second)||10}get captureEventsBurstLimit(){var t;return Math.max(((t=this.instance.config.rate_limiting)==null?void 0:t.events_burst_limit)||10*this.captureEventsPerSecond,this.captureEventsPerSecond)}clientRateLimitContext(t){var a,o,n;t===void 0&&(t=!1);var{captureEventsBurstLimit:r,captureEventsPerSecond:i}=this,c=new Date().getTime(),d=(a=(o=this.instance.persistence)==null?void 0:o.get_property(v0))!==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||t||(d.tokens=Math.max(0,d.tokens-1)),!u||this.lastEventRateLimited||t||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(v0,d),{isRateLimited:u,remainingTokens:d.tokens}}isServerRateLimited(t){var a=this.serverLimits[t||"events"]||!1;return a!==!1&&new Date().getTime()<a}}var np=Ta("[RemoteConfig]");class m4{constructor(t){this._instance=t}get remoteConfig(){var t;return(t=at._POSTHOG_REMOTE_CONFIG)==null||(t=t[this._instance.config.token])==null?void 0:t.config}Er(t){var a,o;(a=at.__PosthogExtensions__)!=null&&a.loadExternalDependency?(o=at.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,"remote-config",(()=>t(this.remoteConfig))):t()}Rr(t){this._instance._send_request({method:"GET",url:this._instance.requestRouter.endpointFor("assets","/array/"+this._instance.config.token+"/config"),callback(a){t(a.json)}})}load(){try{if(this.remoteConfig)return np.info("Using preloaded remote config",this.remoteConfig),this.Nr(this.remoteConfig),void this.Mr();if(this._instance.Fr())return void np.warn("Remote config is disabled. Falling back to local config.");this.Er((t=>{if(!t)return np.info("No config found after loading remote JS config. Falling back to JSON."),void this.Rr((a=>{this.Nr(a),this.Mr()}));this.Nr(t),this.Mr()}))}catch(t){np.error("Error loading remote config",t)}}stop(){this.Or&&(clearInterval(this.Or),this.Or=void 0)}refresh(){this._instance.Fr()||ze?.visibilityState==="hidden"||this._instance.reloadFeatureFlags()}Mr(){var t;if(!this.Or){var a=(t=this._instance.config.remote_config_refresh_interval_ms)!==null&&t!==void 0?t:3e5;a!==0&&(this.Or=setInterval((()=>{this.refresh()}),a))}}Nr(t){var a;t||np.error("Failed to fetch remote config from PostHog."),this._instance.Nr(t??{}),t?.hasFeatureFlags!==!1&&(this._instance.config.advanced_disable_feature_flags_on_first_load||(a=this._instance.featureFlags)==null||a.ensureFlagsLoaded())}}var Vr={GZipJS:"gzip-js",Base64:"base64"},sr=Uint8Array,vn=Uint16Array,Gd=Uint32Array,$E=new sr([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]),VE=new sr([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]),T2=new sr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h4=function(e,t){for(var a=new vn(31),o=0;31>o;++o)a[o]=t+=1<<e[o-1];var n=new Gd(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]},g4=h4($E,2),T0=g4[1];g4[0][28]=258,T0[258]=28;for(var x2=h4(VE,0)[1],f4=new vn(32768),ba=0;32768>ba;++ba){var ed=(43690&ba)>>>1|(21845&ba)<<1;f4[ba]=((65280&(ed=(61680&(ed=(52428&ed)>>>2|(13107&ed)<<2))>>>4|(3855&ed)<<4))>>>8|(255&ed)<<8)>>>1}var Ap=function(e,t,a){for(var o=e.length,n=0,r=new vn(t);o>n;++n)++r[e[n]-1];var i,c=new vn(t);for(n=0;t>n;++n)c[n]=c[n-1]+r[n-1]<<1;for(i=new vn(o),n=0;o>n;++n)i[n]=f4[c[e[n]-1]++]>>>15-e[n];return i},Vl=new sr(288);for(ba=0;144>ba;++ba)Vl[ba]=8;for(ba=144;256>ba;++ba)Vl[ba]=9;for(ba=256;280>ba;++ba)Vl[ba]=7;for(ba=280;288>ba;++ba)Vl[ba]=8;var _v=new sr(32);for(ba=0;32>ba;++ba)_v[ba]=5;var _ce=Ap(Vl,9),Ace=Ap(_v,5),v4=function(e){return(e/8>>0)+(7&e&&1)},b4=function(e,t,a){(a==null||a>e.length)&&(a=e.length);var o=new(e instanceof vn?vn:e instanceof Gd?Gd:sr)(a-t);return o.set(e.subarray(t,a)),o},As=function(e,t,a){var o=t/8>>0;e[o]|=a<<=7&t,e[o+1]|=a>>>8},rp=function(e,t,a){var o=t/8>>0;e[o]|=a<<=7&t,e[o+1]|=a>>>8,e[o+2]|=a>>>16},lT=function(e,t){for(var a=[],o=0;e.length>o;++o)e[o]&&a.push({s:o,f:e[o]});var n=a.length,r=a.slice();if(!n)return[new sr(0),0];if(n==1){var i=new sr(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 v=new vn(f+1),b=x0(a[m-1],v,0);if(b>t){o=0;var w=0,x=b-t,T=1<<x;for(r.sort((function(_,D){return v[D.s]-v[_.s]||_.f-D.f}));n>o;++o){var k=r[o].s;if(t>=v[k])break;w+=T-(1<<b-v[k]),v[k]=t}for(w>>>=x;w>0;){var C=r[o].s;t>v[C]?w-=1<<t-v[C]++-1:++o}for(;o>=0&&w;--o){var E=r[o].s;v[E]==t&&(--v[E],++w)}b=t}return[new sr(v),b]},x0=function(e,t,a){return e.s==-1?Math.max(x0(e.l,t,a+1),x0(e.r,t,a+1)):t[e.s]=a},k2=function(e){for(var t=e.length;t&&!e[--t];);for(var a=new vn(++t),o=0,n=e[0],r=1,i=function(d){a[o++]=d},c=1;t>=c;++c)if(e[c]==n&&c!=t)++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=e[c]}return[a.subarray(0,o),t]},sp=function(e,t){for(var a=0,o=0;t.length>o;++o)a+=e[o]*t[o];return a},k0=function(e,t,a){var o=a.length,n=v4(t+2);e[n]=255&o,e[n+1]=o>>>8,e[n+2]=255^e[n],e[n+3]=255^e[n+1];for(var r=0;o>r;++r)e[n+r+4]=a[r];return 8*(n+4+o)},E2=function(e,t,a,o,n,r,i,c,d,u,m){As(t,m++,a),++n[256];for(var h=lT(n,15),f=h[0],v=h[1],b=lT(r,15),w=b[0],x=b[1],T=k2(f),k=T[0],C=T[1],E=k2(w),_=E[0],D=E[1],R=new vn(19),O=0;k.length>O;++O)R[31&k[O]]++;for(O=0;_.length>O;++O)R[31&_[O]]++;for(var L=lT(R,7),U=L[0],B=L[1],z=19;z>4&&!U[T2[z-1]];--z);var F,W,ae,H,K=u+5<<3,J=sp(n,Vl)+sp(r,_v)+i,se=sp(n,f)+sp(r,w)+i+14+3*z+sp(R,U)+(2*R[16]+3*R[17]+7*R[18]);if(J>=K&&se>=K)return k0(t,m,e.subarray(d,d+u));if(As(t,m,1+(J>se)),m+=2,J>se){F=Ap(f,v),W=f,ae=Ap(w,x),H=w;var Z=Ap(U,B);for(As(t,m,C-257),As(t,m+5,D-1),As(t,m+10,z-4),m+=14,O=0;z>O;++O)As(t,m+3*O,U[T2[O]]);m+=3*z;for(var M=[k,_],G=0;2>G;++G){var V=M[G];for(O=0;V.length>O;++O)As(t,m,Z[I=31&V[O]]),m+=U[I],I>15&&(As(t,m,V[O]>>>5&127),m+=V[O]>>>12)}}else F=_ce,W=Vl,ae=Ace,H=_v;for(O=0;c>O;++O)if(o[O]>255){var I;rp(t,m,F[257+(I=o[O]>>>18&31)]),m+=W[I+257],I>7&&(As(t,m,o[O]>>>23&31),m+=$E[I]);var j=31&o[O];rp(t,m,ae[j]),m+=H[j],j>3&&(rp(t,m,o[O]>>>5&8191),m+=VE[j])}else rp(t,m,F[o[O]]),m+=W[o[O]];return rp(t,m,F[256]),m+W[256]},Rce=new Gd([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Dce=(function(){for(var e=new Gd(256),t=0;256>t;++t){for(var a=t,o=9;--o;)a=(1&a&&3988292384)^a>>>1;e[t]=a}return e})(),cT=function(e,t,a){for(;a;++t)e[t]=a,a>>>=8};function Oce(e,t){t===void 0&&(t={});var a=(function(){var h=4294967295;return{p(f){for(var v=h,b=0;f.length>b;++b)v=Dce[255&v^f[b]]^v>>>8;h=v},d(){return 4294967295^h}}})(),o=e.length;a.p(e);var n,r,i,c,d,u=(c=10+((n=t).filename&&n.filename.length+1||0),d=8,(function(h,f,v,b,w,x){var T=h.length,k=new sr(b+T+5*(1+Math.floor(T/7e3))+w),C=k.subarray(b,k.length-w),E=0;if(!f||8>T)for(var _=0;T>=_;_+=65535){var D=_+65535;T>D?E=k0(C,E,h.subarray(_,D)):(C[_]=!0,E=k0(C,E,h.subarray(_,T)))}else{for(var R=Rce[f-1],O=R>>>13,L=8191&R,U=(1<<v)-1,B=new vn(32768),z=new vn(U+1),F=Math.ceil(v/3),W=2*F,ae=function(He){return(h[He]^h[He+1]<<F^h[He+2]<<W)&U},H=new Gd(25e3),K=new vn(288),J=new vn(32),se=0,Z=0,M=(_=0,0),G=0,V=0;T>_;++_){var I=ae(_),j=32767&_,X=z[I];if(B[j]=X,z[I]=j,_>=G){var de=T-_;if((se>7e3||M>24576)&&de>423){E=E2(h,C,0,H,K,J,Z,M,V,_-V,E),M=se=Z=0,V=_;for(var ue=0;286>ue;++ue)K[ue]=0;for(ue=0;30>ue;++ue)J[ue]=0}var Ee=2,qe=0,Q=L,ne=j-X&32767;if(de>2&&I==ae(_-ne))for(var ve=Math.min(O,de)-1,ie=Math.min(32767,_),xe=Math.min(258,de);ie>=ne&&--Q&&j!=X;){if(h[_+Ee]==h[_+Ee-ne]){for(var Pe=0;xe>Pe&&h[_+Pe]==h[_+Pe-ne];++Pe);if(Pe>Ee){if(Ee=Pe,qe=ne,Pe>ve)break;var it=Math.min(ne,Pe-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(qe){H[M++]=268435456|T0[Ee]<<18|x2[qe];var Ne=31&T0[Ee],Oe=31&x2[qe];Z+=$E[Ne]+VE[Oe],++K[257+Ne],++J[Oe],G=_+Ee,++se}else H[M++]=h[_],++K[h[_]]}}E=E2(h,C,!0,H,K,J,Z,M,V,_-V,E)}return b4(k,0,b+v4(E)+w)})(r=e,(i=t).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 v=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&&cT(h,4,Math.floor(new Date(f.mtime||Date.now())/1e3)),v){h[3]=8;for(var b=0;v.length>=b;++b)h[b+10]=v.charCodeAt(b)}})(u,t),cT(u,m-8,a.d()),cT(u,m-4,o),u}var Nce=!!Kx||!!Wx,y4="text/plain",C2=!1,Sb=function(e,t,a){var o;a===void 0&&(a=!0);var[n,r]=e.split("?"),i=Me({},t),c=(o=r?.split("&").map((u=>{var m,[h,f]=u.split("="),v=a&&(m=i[h])!==null&&m!==void 0?m:f;return delete i[h],h+"="+v})))!==null&&o!==void 0?o:[],d=(function(u,m){var h,f;m===void 0&&(m="&");var v=[];return va(u,(function(b,w){$e(b)||$e(w)||w==="undefined"||(h=encodeURIComponent((x=>x instanceof File)(b)?b.name:b.toString()),f=encodeURIComponent(w),v[v.length]=f+"="+h)})),v.join(m)})(i);return d&&c.push(d),n+"?"+c.join("&")},yd=(e,t)=>JSON.stringify(e,((a,o)=>typeof o=="bigint"?o.toString():o),t),dT=e=>{if(e.tr)return e.tr;var{data:t,compression:a}=e;if(t){if(a===Vr.GZipJS){var o=Oce((function(c,d){var u=c.length;if(typeof TextEncoder<"u")return new TextEncoder().encode(c);for(var m=new sr(c.length+(c.length>>>1)),h=0,f=function(x){m[h++]=x},v=0;u>v;++v){if(h+5>m.length){var b=new sr(h+8+(u-v<<1));b.set(m),m=b}var w=c.charCodeAt(v);128>w?f(w):2048>w?(f(192|w>>>6),f(128|63&w)):w>55295&&57344>w?(f(240|(w=65536+(1047552&w)|1023&c.charCodeAt(++v))>>>18),f(128|w>>>12&63),f(128|w>>>6&63),f(128|63&w)):(f(224|w>>>12),f(128|w>>>6&63),f(128|63&w))}return b4(m,0,h)})(yd(t)),{mtime:0});return{contentType:y4,body:o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength),estimatedSize:o.byteLength}}if(a===Vr.Base64){var n=(function(c){return c&&btoa(encodeURIComponent(c).replace(/%([0-9A-F]{2})/g,((d,u)=>String.fromCharCode(parseInt(u,16)))))})(yd(t)),r=(c=>"data="+encodeURIComponent(typeof c=="string"?c:yd(c)))(n);return{contentType:"application/x-www-form-urlencoded",body:r,estimatedSize:new Blob([r]).size}}var i=yd(t);return{contentType:"application/json",body:i,estimatedSize:new Blob([i]).size}}},Mce=(function(){var e=tr((function*(t){var a=yd(t.data),o=yield(function(r,i,c){return Yx.apply(this,arguments)})(a,Jo.DEBUG,{rethrow:!0});if(!o)return t;var n=yield o.arrayBuffer();return Me({},t,{tr:{contentType:y4,body:n,estimatedSize:n.byteLength}})}));return function(t){return e.apply(this,arguments)}})(),P2=(e,t)=>Sb(e,{_:new Date().getTime().toString(),ver:Jo.JS_SDK_VERSION,compression:t}),Af=[];Wx&&Af.push({transport:"fetch",method(e){var t,a,{contentType:o,body:n,estimatedSize:r}=(t=dT(e))!==null&&t!==void 0?t:{},i=new Headers;va(e.headers,(function(m,h){i.append(h,m)})),o&&i.append("Content-Type",o);var c=e.url,d=null;if(n2){var u=new n2;d={signal:u.signal,timeout:setTimeout((()=>u.abort()),e.timeout)}}Wx(c,Me({method:e?.method||"GET",headers:i,keepalive:e.method==="POST"&&52428.8>(r||0),body:n,signal:(a=d)==null?void 0:a.signal},e.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(v){Ue.error(v)}e.callback==null||e.callback(f)})))).catch((m=>{Ue.error(m),e.callback==null||e.callback({statusCode:0,error:m})})).finally((()=>d?clearTimeout(d.timeout):null))}}),Kx&&Af.push({transport:"XHR",method(e){var t,a=new Kx;a.open(e.method||"GET",e.url,!0);var{contentType:o,body:n}=(t=dT(e))!==null&&t!==void 0?t:{};va(e.headers,(function(r,i){a.setRequestHeader(i,r)})),o&&a.setRequestHeader("Content-Type",o),e.timeout&&(a.timeout=e.timeout),e.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{}e.callback==null||e.callback(r)}},a.send(n)}}),In!=null&&In.sendBeacon&&Af.push({transport:"sendBeacon",method(e){var t=Sb(e.url,{beacon:"1"});try{var a,{contentType:o,body:n}=(a=dT(e))!==null&&a!==void 0?a:{};if(!n)return;var r=n instanceof Blob?n:new Blob([n],{type:o});In.sendBeacon(t,r)}catch{}}});var E0=3e3;class Ice{constructor(t,a){this.Pr=!0,this.Lr=[],this.Dr=Jr(a?.flush_interval_ms||E0,250,5e3,Ue.createLogger("flush interval"),E0),this.Br=t}enqueue(t){this.Lr.push(t),this.jr||this.$r()}unload(){this.qr();var t=this.Lr.length>0?this.Zr():{},a=Object.values(t);[...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 t=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)&&va(r.data,(c=>{c.offset=Math.abs(c.timestamp-i),delete c.timestamp})),t.Br(r)};for(var n in a)o()}}),this.Dr))}qr(){clearTimeout(this.jr),this.jr=void 0}Zr(){var t={};return va(this.Lr,(a=>{var o,n=a,r=(n?n.batchKey:null)||n.url;$e(t[r])&&(t[r]=Me({},n,{data:[]})),(o=t[r].data)==null||o.push(n.data)})),this.Lr=[],t}}var Lce=["retriesPerformedSoFar"];class Bce{constructor(t){this.Vr=!1,this.Hr=3e3,this.Lr=[],this._instance=t,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(t){var{retriesPerformedSoFar:a}=t,o=T3(t,Lce);cd(a)&&(o.url=Sb(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(t){var a=t.retriesPerformedSoFar||0;t.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:t});var r="Enqueued failed request for retry in "+o;navigator.onLine||(r+=" (Browser is offline)"),Ue.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 t=Date.now(),a=[],o=this.Lr.filter((r=>t>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:t}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({},t,{transport:"sendBeacon"}))}catch(a){Ue.error(a)}this.Lr=[]}}class Fce{constructor(t){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=t}get ei(){return this._instance.config.scroll_root_selector}getContext(){return this.Qr}resetContext(){var t=this.Qr;return setTimeout(this.Kr,0),t}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 t=Bt(this.ei)?this.ei:[this.ei];for(var a of t){var o=ge?.document.querySelector(a);if(o)return o}}scrollY(){if(this.ei){var t=this.scrollElement();return t&&t.scrollTop||0}return ge&&(ge.scrollY||ge.pageYOffset||ge.document.documentElement.scrollTop)||0}scrollX(){if(this.ei){var t=this.scrollElement();return t&&t.scrollLeft||0}return ge&&(ge.scrollX||ge.pageXOffset||ge.document.documentElement.scrollLeft)||0}}var jce=e=>d4(e?.config.mask_personal_data_properties,e?.config.custom_personal_data_properties);class _2{constructor(t,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({[f0]:c})}},this._instance=t,this.si=a,this.ni=o,this.ii=n||jce,this.si.onSessionId(this.ti)}ri(){return this.ni.props[f0]}getSetOnceProps(){var t,a=(t=this.ri())==null?void 0:t.props;return a?"r"in a?u4(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 t={};return va(UE(this.getSetOnceProps()),((a,o)=>{o==="$current_url"&&(o="url"),t["$session_entry_"+Qx(o)]=a})),t}}class HE{constructor(){this.oi={}}on(t,a){return this.oi[t]||(this.oi[t]=[]),this.oi[t].push(a),()=>{this.oi[t]=this.oi[t].filter((o=>o!==a))}}emit(t,a){for(var o of this.oi[t]||[])o(a);for(var n of this.oi["*"]||[])n(t,a)}}var uT=Ta("[SessionId]");class A2{on(t,a){return this.ai.on(t,a)}constructor(t,a,o){var n;if(this.li=[],this.ui=void 0,this.ai=new HE,this.hi=(u,m)=>!(!cd(u)||!cd(m))&&Math.abs(u-m)>this.sessionTimeoutMs,!t.persistence)throw new Error("SessionIdManager requires a PostHogPersistence instance");if(t.config.cookieless_mode===Ns)throw new Error('SessionIdManager cannot be used with cookieless_mode="always"');this.Bt=t.config,this.ni=t.persistence,this.ci=void 0,this.di=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null,this.vi=a||Oi,this.fi=o||Oi;var r=this.Bt.persistence_name||this.Bt.token;if(this._sessionTimeoutMs=1e3*Jr(this.Bt.session_idle_timeout_seconds||1800,60,36e3,uT.createLogger("session_idle_timeout_seconds"),1800),t.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=Co.Z(this.gi),c=Co.Z(this.mi);i&&!c?this.ci=i:Co.F(this.gi),Co.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){uT.error("Invalid sessionID in bootstrap",u)}this.wi()}get sessionTimeoutMs(){return this._sessionTimeoutMs}onSessionId(t){return $e(this.li)&&(this.li=[]),this.li.push(t),this.di&&t(this.di,this.ci),()=>{this.li=this.li.filter((a=>a!==t))}}yi(){return this.Bt.persistence!=="memory"&&!this.ni._r&&Co.R()}Ii(t){t!==this.ci&&(this.ci=t,this.yi()&&Co.M(this.gi,t))}Ci(){return this.ci?this.ci:this.yi()?Co.Z(this.gi):null}bi(t,a,o){t===this.di&&a===this._sessionActivityTimestamp&&o===this._sessionStartTimestamp||(this._sessionStartTimestamp=o,this._sessionActivityTimestamp=a,this.di=t,this.ni.register({[vv]:[a,t,o]}))}Si(){var t=this.ni.props[vv];return Bt(t)&&t.length===2&&t.push(t[0]),t||[0,null,0]}resetSessionId(){this.bi(null,null,null)}destroy(){clearTimeout(this.xi),this.xi=void 0,this.ui&&ge&&(ge.removeEventListener(Tv,this.ui,{capture:!1}),this.ui=void 0),this.li=[]}wi(){this.ui=()=>{this.yi()&&Co.F(this.mi)},Za(ge,Tv,this.ui,{capture:!1})}checkAndGetSessionAndWindowId(t,a){if(t===void 0&&(t=!1),a===void 0&&(a=null),this.Bt.cookieless_mode===Ns)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=cd(i)&&Math.abs(o-i)>864e5,u=!1,m=!r,h=!m&&!t&&this.hi(o,n);m||h||d?(r=this.vi(),c=this.fi(),uT.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=cd(n)&&t&&!d?n:o,v=cd(i)?i:new Date().getTime();return this.Ii(c),this.bi(r,f,v),t||this.pi(),u&&this.li.forEach((b=>b(r,c,u?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}:void 0))),{sessionId:r,windowId:c,sessionStartTimestamp:v,changeReason:u?{noSessionId:m,activityTimeout:h,sessionPastMaximumLength:d}:void 0,lastActivityTimestamp:n}}pi(){clearTimeout(this.xi),this.xi=setTimeout((()=>{var[t]=this.Si();if(this.hi(new Date().getTime(),t)){var a=this.di;this.resetSessionId(),this.ai.emit("forcedIdleReset",{idleSessionId:a})}}),1.1*this.sessionTimeoutMs)}}var w4=function(e,t){if(!e)return!1;var a=e.userAgent;if(a&&i2(a,t))return!0;try{var o=e?.userAgentData;if(o!=null&&o.brands&&o.brands.some((n=>i2(n?.brand,t))))return!0}catch{}return!!e.webdriver},Av=function(e,t){if(!(function(a){try{new RegExp(a)}catch{return!1}return!0})(t))return!1;try{return new RegExp(t).test(e)}catch{return!1}};function R2(e,t,a){return yd({distinct_id:e,userPropertiesToSet:t,userPropertiesToSetOnce:a})}var S4={exact:(e,t)=>t.some((a=>e.some((o=>a===o)))),is_not:(e,t)=>t.every((a=>e.every((o=>a!==o)))),regex:(e,t)=>t.some((a=>e.some((o=>Av(a,o))))),not_regex:(e,t)=>t.every((a=>e.every((o=>!Av(a,o))))),icontains:(e,t)=>t.map(of).some((a=>e.map(of).some((o=>a.includes(o))))),not_icontains:(e,t)=>t.map(of).every((a=>e.map(of).every((o=>!a.includes(o))))),gt:(e,t)=>t.some((a=>{var o=parseFloat(a);return!isNaN(o)&&e.some((n=>o>parseFloat(n)))})),lt:(e,t)=>t.some((a=>{var o=parseFloat(a);return!isNaN(o)&&e.some((n=>o<parseFloat(n)))}))},of=e=>e.toLowerCase();function T4(e,t){return!e||Object.entries(e).every((a=>{var[o,n]=a,r=t?.[o];if($e(r)||Us(r))return!1;var i=[String(r)],c=S4[n.operator];return!!c&&c(n.values,i)}))}var C0="custom",D2="i.posthog.com",zce=/^\/static\//;class qce{constructor(t){this.ki={},this.instance=t}get apiHost(){var t=this.instance.config.api_host.trim().replace(/\/$/,"");return t==="https://app.posthog.com"?"https://us.i.posthog.com":t}get flagsApiHost(){var t=this.instance.config.flags_api_host;return t?t.trim().replace(/\/$/,""):this.apiHost}get uiHost(){var t,a=(t=this.instance.config.ui_host)==null?void 0:t.replace(/\/$/,"");return a||(a=this.apiHost.replace("."+D2,".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":C0),this.ki[this.apiHost]}Ti(t){var a=this.instance.config.__preview_external_dependency_versioned_paths;if(typeof a=="string"&&zce.test(t))return a.trim().replace(/\/$/,"")||void 0}endpointFor(t,a){if(a===void 0&&(a=""),a&&(a=a[0]==="/"?a:"/"+a),t==="ui")return this.uiHost+a;if(t==="flags")return this.flagsApiHost+a;if(t==="assets"){var o=this.Ti(a);if(o)return""+o+a}if(this.region===C0)return this.apiHost+a;var n=D2+a;switch(t){case"assets":return"https://"+this.region+"-assets."+n;case"api":return"https://"+this.region+"."+n}}}var na=Ta("[Surveys]"),P0="seenSurvey_",Uce=[sT.Popover,sT.Widget,sT.API],$ce={ignoreConditions:!1,ignoreDelay:!1,displayType:S0.Popover},Vce=Ta("[PostHog ExternalIntegrations]"),Hce={intercom:"intercom-integration",crispChat:"crisp-chat-integration"};class Gce{constructor(t){this._instance=t}ur(t,a){var o;(o=at.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,t,(n=>{if(n)return Vce.error("failed to load script",n);a()}))}startIfEnabledOrStop(){var t=this,a=function(i){var c,d,u;!n||(c=at.__PosthogExtensions__)!=null&&(c=c.integrations)!=null&&c[i]||t.ur(Hce[i],(()=>{var m;(m=at.__PosthogExtensions__)==null||(m=m.integrations)==null||(m=m[i])==null||m.start(t._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 td,Rp={},pT=0,_0=()=>{},O2='Consent opt in/out is not valid with cookieless_mode="always" and will be ignored',ip="Surveys module not available",N2="sanitize_properties is deprecated. Use before_send instead",x4="Invalid value for property_denylist config: ",pd="posthog",k4=!Nce&&hn?.indexOf("MSIE")===-1&&hn?.indexOf("Mozilla")===-1,M2=e=>{var t;return Me({api_host:"https://us.i.posthog.com",flags_api_host:null,ui_host:null,token:"",autocapture:!0,cross_subdomain_cookie:cce(ze?.location),persistence:"localStorage+cookie",persistence_name:"",cookie_persisted_properties:[],loaded:_0,save_campaign_params:!0,custom_campaign_params:[],custom_blocked_useragents:[],save_referrer:!0,capture_pageleave:"if_capture_pageview",defaults:e??"unset",__preview_deferred_init_extensions:!1,__preview_external_dependency_versioned_paths:!1,debug:Eo&&Ca(Eo?.search)&&Eo.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||(t=ge.location)==null?void 0:t.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){Ue.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:w0,before_send:void 0,request_queue_config:{flush_interval_ms:E0},error_tracking:{},_onCapture:_0,__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}))(e))},Wce=[["process_person","person_profiles"],["xhr_headers","request_headers"],["cookie_name","persistence_name"],["disable_cookie","disable_persistence"],["store_google","save_campaign_params"],["verbose","debug"]],I2=e=>{var t={};for(var[a,o]of Wce)$e(e[a])||(t[o]=e[a]);var n=Na({},t,e);return Bt(e.property_blacklist)&&($e(e.property_denylist)?n.property_denylist=e.property_blacklist:Bt(e.property_denylist)?n.property_denylist=[...e.property_blacklist,...e.property_denylist]:Ue.error(x4+e.property_denylist)),n};class Kce{constructor(){this.__forceAllowLocalhost=!1}get Ai(){return this.__forceAllowLocalhost}set Ai(t){Ue.error("WebPerformanceObserver is deprecated and has no impact on network capture. Use `_forceAllowLocalhostNetworkCapture` on `posthog.sessionRecording`"),this.__forceAllowLocalhost=t}}class ar{Ei(t,a){if(t){var o=this.Ri.indexOf(t);o!==-1&&this.Ri.splice(o,1)}return this.Ri.push(a),a.initialize==null||a.initialize(),a}Ni(){return this.config.cookieless_mode===Ns||this.config.cookieless_mode===Dl&&this.consent.isRejected()}get decideEndpointWasHit(){var t,a;return(t=(a=this.featureFlags)==null?void 0:a.hasLoadedFlags)!==null&&t!==void 0&&t}get flagsEndpointWasHit(){var t,a;return(t=(a=this.featureFlags)==null?void 0:a.hasLoadedFlags)!==null&&t!==void 0&&t}constructor(){var t;this.webPerformance=new Kce,this.Mi=!1,this.version=Jo.LIB_VERSION,this.Fi=new HE,this.Ri=[],this._calculate_event_properties=this.calculateEventProperties.bind(this),this.config=M2(),this.SentryIntegration=yce,this.sentryIntegration=o=>(function(n,r){var i=r4(n,r);return{name:n4,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 Fce(this),this.pageViewManager=new b2(this),this.rateLimiter=new Pce(this),this.requestRouter=new qce(this),this.consent=new fce(this),this.externalIntegrations=new Gce(this);var a=(t=ar.__defaultExtensionClasses)!==null&&t!==void 0?t:{};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=Ca(o)?{[o]:n}:o;this.setPersonProperties(i),r?.({})},set_once:(o,n,r)=>{var i=Ca(o)?{[o]:n}:o;this.setPersonProperties(void 0,i),r?.({})}},this.on("eventCaptured",(o=>Ue.info('send "'+o?.event+'"',o)))}init(t,a,o){if(o&&o!==pd){var n,r=(n=Rp[o])!==null&&n!==void 0?n:new ar;return r._init(t,a,o),Rp[o]=r,Rp[pd][o]=r,r}return this._init(t,a,o)}_init(t,a,o){var n,r;if(a===void 0&&(a={}),$e(t)||Ef(t))return Ue.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(Na({},M2(a.defaults),I2(a),{name:o,token:t})),this.config.on_xhr_error&&Ue.error("on_xhr_error is deprecated. Use on_request_error instead"),this.compression=a.disable_compression?void 0:Vr.GZipJS;var i=this.qi();this.persistence=new rT(this.config,i),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new rT(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 Ice((x=>this.Vi(x)),this.config.request_queue_config),this.Hi=new Bce(this),this.__request_queue=[];var u=this.Ni();if(u||(this.sessionManager=new A2(this),this.sessionPropsManager=new _2(this,this.sessionManager,this.persistence)),this.config.__preview_deferred_init_extensions?(Ue.info("Deferring extension initialization to improve startup performance"),setTimeout((()=>{this.zi(u)}),0)):(Ue.info("Initializing extensions synchronously"),this.zi(u)),Jo.DEBUG=Jo.DEBUG||this.config.debug,Jo.DEBUG&&Ue.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(yr);if(a.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Jc)this.identify(m);else if(a.bootstrap.isIdentifiedID&&h!=null&&h!==m&&f===Xc)Ue.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 v=this.config.get_device_id(Oi()),b=a.bootstrap.isIdentifiedID?v:m;this.persistence.set_property(yr,a.bootstrap.isIdentifiedID?Xc:Jc),this.register({distinct_id:m,$device_id:b})}}if(u)this.register_once({distinct_id:Jg,$device_id:null},"");else if(!this.get_distinct_id()){var w=this.config.get_device_id(Oi());this.register_once({distinct_id:w,$device_id:w},""),this.persistence.set_property(yr,Jc)}return Za(ge,"onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this),{passive:!1}),a.segment?(function(x,T){var k=x.config.segment;if(!k)return T();(function(C,E){var _=C.config.segment;if(!_)return E();var D=O=>{var L=()=>O.anonymousId()||Oi();C.config.get_device_id=L,O.id()&&(C.register({distinct_id:O.id(),$device_id:L()}),C.persistence.set_property(yr,Xc)),E()},R=_.user();"then"in R&&Os(R.then)?R.then(D):D(R)})(x,(()=>{k.register((C=>{Promise&&Promise.resolve||nT.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===C.get_distinct_id()||(nT.info("No userId set, resetting PostHog"),C.reset()),_.event.userId&&_.event.userId!==C.get_distinct_id()&&(nT.info("UserId set, identifying with PostHog"),C.identify(_.event.userId));var R=C.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(_,ud),identify:_=>E(_,aT),screen:_=>E(_,"$screen")}})(x)).then((()=>{T()}))}))})(this,(()=>this.Ui())):this.Ui(),Os(this.config._onCapture)&&this.config._onCapture!==_0&&(Ue.warn("onCapture is deprecated. Please use `before_send` instead"),this.on("eventCaptured",(x=>this.config._onCapture(x.event,x)))),this.config.ip&&Ue.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(t){var a,o,n,r,i,c,d,u=performance.now(),m=Me({},ar.__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&&!t&&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,bce)),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(t,a){for(;t.length>0;){if(this.config.__preview_deferred_init_extensions&&performance.now()-a>=30&&t.length>0)return void setTimeout((()=>{this.Gi(t,a)}),0);var o=t.shift();if(o)try{o()}catch(r){Ue.error("Error initializing extension:",r)}}var n=Math.round(performance.now()-a);this.register_for_session({[X3]:this.config.__preview_deferred_init_extensions?"deferred":"synchronous",[e4]:n}),this.config.__preview_deferred_init_extensions&&Ue.info("PostHog extensions initialized ("+n+"ms)")}Nr(t){var a;if(!ze||!ze.body)return Ue.info("document not ready yet, trying again in 500 milliseconds..."),void setTimeout((()=>{this.Nr(t)}),500);this.config.__preview_deferred_init_extensions&&(this.Yi=t),this.Wi=t,this.compression=void 0,t.supportedCompression&&!this.config.disable_compression&&(this.compression=Et(t.supportedCompression,Vr.GZipJS)?Vr.GZipJS:Et(t.supportedCompression,Vr.Base64)?Vr.Base64:void 0),(a=t.analytics)!=null&&a.endpoint&&(this.analyticsDefaultEndpoint=t.analytics.endpoint),this.set_config({person_profiles:this.Li?this.Li:w0}),this.Ri.forEach((o=>o.onRemoteConfig==null?void 0:o.onRemoteConfig(t)))}Ui(){try{this.config.loaded(this)}catch(o){Ue.critical("`loaded` function failed",o)}if(this.Xi(),this.config.internal_or_test_user_hostname&&Eo!=null&&Eo.hostname){var t=Eo.hostname,a=this.config.internal_or_test_user_hostname;(typeof a=="string"?t===a:a.test(t))&&this.setInternalOrTestUser()}this.config.capture_pageview&&setTimeout((()=>{(this.consent.isOptedIn()||this.Ni())&&this.Ji()}),1),this.Ki=new m4(this),this.Ki.load()}Xi(){var t;this.is_capturing()&&this.config.request_batching&&((t=this.Zi)==null||t.enable())}_dom_loaded(){this.is_capturing()&&Xg(this.__request_queue,(t=>this.Vi(t))),this.__request_queue=[],this.Xi()}_handle_unload(){var t,a,o,n;(t=this.surveys)==null||t.handlePageUnload(),this.config.request_batching?(this.Qi()&&this.capture(tT),(a=this.logs)==null||a.flushLogs("sendBeacon"),(o=this.Zi)==null||o.unload(),(n=this.Hi)==null||n.unload()):this.Qi()&&this.capture(tT,null,{transport:"sendBeacon"})}_send_request(t){this.__loaded&&(k4?this.__request_queue.push(t):this.rateLimiter.isServerRateLimited(t.batchKey)||(t.transport=t.transport||this.config.api_transport,t.url=Sb(t.url,{ip:this.config.ip?1:0}),t.headers=Me({},this.config.request_headers,t.headers),t.compression=t.compression==="best-available"?this.compression:t.compression,t.disableXHRCredentials=this.config.__preview_disable_xhr_credentials,this.config.__preview_disable_beacon&&(t.disableTransport=["sendBeacon"]),t.fetchOptions=t.fetchOptions||this.config.fetch_options,(a=>{var o,n,r,i=Me({},a);i.timeout=i.timeout||6e4,i.url=P2(i.url,i.compression);var c=(o=i.transport)!==null&&o!==void 0?o:"fetch",d=Af.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===Vr.GZipJS&&yle&&!C2?Mce(i).then((m=>{u(m)})).catch((m=>{if((h=>!(!h||typeof h!="object")&&("name"in h?String(h.name):"")==="NotReadableError")(m))return C2=!0,void u(Me({},i,{compression:void 0,url:P2(a.url,void 0)}));u(i)})):u(i)})(Me({},t,{callback:a=>{var o,n;this.rateLimiter.checkForLimiting(a),400>a.statusCode||(o=(n=this.config).on_request_error)==null||o.call(n,a),t.callback==null||t.callback(a)}}))))}Vi(t){this.Hi?this.Hi.retriableRequest(t):this._send_request(t)}_execute_array(t){pT++;try{var a,o=[],n=[],r=[];Xg(t,(c=>{c&&(Bt(a=c[0])?r.push(c):Os(c)?c.call(this):Bt(c)&&a==="alias"?o.push(c):Bt(c)&&a.indexOf("capture")!==-1&&Os(this[a])?r.push(c):n.push(c))}));var i=function(c,d){Xg(c,(function(u){if(Bt(u[0])){var m=d;va(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{pT--}}push(t){if(pT>0&&Bt(t)&&Ca(t[0])){var a=ar.prototype[t[0]];Os(a)&&a.apply(this,t.slice(1))}else this._execute_array([t])}capture(t,a,o){var n,r,i,c,d;if(this.__loaded&&this.persistence&&this.sessionPersistence&&this.Zi){if(this.is_capturing())if(!$e(t)&&Ca(t)){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&&!Ca(a?.$current_url)&&(Ue.error("Invalid `$current_url` property provided to `posthog.capture`. Input must be a string. Ignoring provided value."),a==null||delete a.$current_url),t!=="$exception"||o!=null&&o.en||Ue.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,v=Oi(),b={uuid:v,event:t,properties:this.calculateEventProperties(t,a||{},f,v)};t===ud&&this.config.__preview_capture_bot_pageviews&&u&&(b.event="$bot_pageview",b.properties.$browser_type="bot"),m&&(b.properties.$lib_rate_limit_remaining_tokens=m.remainingTokens),o?.$set&&(b.$set=o?.$set);var w,x,T,k=this.tn(o?.$set_once,t!==h2,t===aT);if(k&&(b.$set_once=k),o!=null&&o._noTruncate||(r=this.config.properties_string_max_length,i=b,c=L=>Ca(L)?L.slice(0,r):L,d=new Set,b=(function L(U,B){return U!==Object(U)?c?c(U):U:d.has(U)?void 0:(d.add(U),Bt(U)?(z=[],Xg(U,(F=>{z.push(L(F))}))):(z={},va(U,((F,W)=>{d.has(F)||(z[W]=L(F))}))),z);var z})(i)),b.timestamp=f,$e(o?.timestamp)||(b.properties.$event_time_override_provided=!0,b.properties.$event_time_override_system_time=h),t===kp.DISMISSED||t===kp.SENT){var C=a?.[iT.SURVEY_ID],E=a?.[iT.SURVEY_ITERATION];(L=>{try{var U=(B=>((z,F)=>{var W=""+P0+F.id;return F.current_iteration&&F.current_iteration>0&&(W=""+P0+F.id+"_"+F.current_iteration),W})(0,B))(L);if(localStorage.getItem(U))return;localStorage.setItem(U,"true")}catch(B){na.error("Failed to persist survey seen state",B)}})({id:C,current_iteration:E}),b.$set=Me({},b.$set,{[(w={id:C,current_iteration:E},x=t===kp.SENT?"responded":"dismissed",T="$survey_"+x+"/"+w.id,w.current_iteration&&w.current_iteration>0&&(T="$survey_"+x+"/"+w.id+"/"+w.current_iteration),T)]:!0})}else t===kp.SHOWN&&(b.$set=Me({},b.$set,{[iT.SURVEY_LAST_SEEN_DATE]:new Date().toISOString()}));if(t===Cce.SHOWN){var _=a?.[w2.TOUR_TYPE];_&&(b.$set=Me({},b.$set,{[w2.TOUR_LAST_SEEN_DATE+"/"+_]:new Date().toISOString()}))}var D=Me({},b.properties.$set,b.$set);if(vd(D)||this.setPersonPropertiesForFlags(D),!Pt(this.config.before_send)){var R=this.rn(b);if(!R)return;b=R}this.Fi.emit("eventCaptured",b);var O={method:"POST",url:(n=o?._url)!==null&&n!==void 0?n:this.requestRouter.endpointFor("api",this.analyticsDefaultEndpoint),data:b,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),b}Ue.critical("This capture call is ignored due to client rate limiting.")}}else Ue.error("No event name provided to posthog.capture")}else Ue.uninitializedWarning("posthog.capture")}_addCaptureHook(t){return this.on("eventCaptured",(a=>t(a.event,a)))}calculateEventProperties(t,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(t),c=Me({},a);if(c.token=this.config.token,c.$config_defaults=this.config.defaults,this.Ni()&&(c.$cookieless_mode=!0),t==="$snapshot"){var d=Me({},this.persistence.properties(),this.sessionPersistence.properties());return c.distinct_id=d.distinct_id,(!Ca(c.distinct_id)&&!ir(c.distinct_id)||Ef(c.distinct_id))&&Ue.error("Invalid distinct_id for replay event. This indicates a bug in your implementation"),c}var u,m=(function(T,k){var C,E,_,D;if(!hn)return{};var R,O,L,U,B,z,F,W,ae=T?[...Hd,...k||[]]:[],[H,K]=(function(J){for(var se=0;d2.length>se;se++){var[Z,M]=d2[se],G=Z.exec(J),V=G&&(Os(M)?M(G,J):M);if(V)return V}return["",""]})(hn);return Na(UE({$os:H,$os_version:K,$browser:q3(hn,navigator.vendor),$device:u2(hn),$device_type:(O=hn,L={userAgentDataPlatform:(C=navigator)==null||(C=C.userAgentData)==null?void 0:C.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=u2(O),W===P3||W===C3||W==="Kobo"||W==="Kindle Fire"||W===z3?Ud:W===Yp||W===_d||W===Qp||W===Jx?"Console":W===A3?"Wearable":W?Bn:L?.userAgentDataPlatform==="Android"&&((U=L?.maxTouchPoints)!==null&&U!==void 0?U: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)?Bn:Ud:"Desktop"),$timezone:p4(),$timezone_offset:kce()}),{$current_url:Zp(Eo?.href,ae,Jp),$host:Eo?.host,$pathname:Eo?.pathname,$raw_user_agent:hn.length>1e3?hn.substring(0,997)+"...":hn,$browser_version:Ile(hn,navigator.vendor),$browser_language:y2(),$browser_language_prefix:(R=y2(),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:Jo.LIB_NAME,$lib_version:Jo.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&&Na(c,this.sessionPropsManager.getSessionProps());try{var v;this.sessionRecording&&Na(c,this.sessionRecording.sdkDebugProperties),c.$sdk_debug_retry_queue_size=(v=this.Hi)==null?void 0:v.length}catch(T){c.$sdk_debug_error_capturing_properties=String(T)}if(this.requestRouter.region===C0&&(c.$lib_custom_api_host=this.config.api_host),u=t!==ud||r?t!==tT||r?this.pageViewManager.doEvent():this.pageViewManager.doPageLeave(o):this.pageViewManager.doPageView(o,n),c=Na(c,u),t===ud&&ze&&(c.title=ze.title),!$e(i)){var b=o.getTime()-i;c.$duration=parseFloat((b/1e3).toFixed(3))}hn&&this.config.opt_out_useragent_filter&&(c.$browser_type=this._is_bot()?"bot":"browser"),(c=Na({},m,this.persistence.properties(),this.sessionPersistence.properties(),c)).$is_identified=this._isIdentified(),Bt(this.config.property_denylist)?va(this.config.property_denylist,(function(T){delete c[T]})):Ue.error(x4+this.config.property_denylist+" or property_blacklist config: "+this.config.property_blacklist);var w=this.config.sanitize_properties;w&&(Ue.error(N2),c=w(c,t));var x=this.nn();return c.$process_person_profile=x,x&&!r&&this.sn("_calculate_event_properties"),c}tn(t,a,o){var n;if(a===void 0&&(a=!0),o===void 0&&(o=!1),!this.persistence||!this.nn()||this.Mi&&!o)return t;var r=this.persistence.get_initial_props(),i=(n=this.sessionPropsManager)==null?void 0:n.getSetOnceProps(),c=Na({},r,i||{},t||{}),d=this.config.sanitize_properties;return d&&(Ue.error(N2),c=d(c,"$set_once")),a&&(this.Mi=!0),vd(c)?void 0:c}register(t,a){var o;(o=this.persistence)==null||o.register(t,a)}register_once(t,a,o){var n;(n=this.persistence)==null||n.register_once(t,a,o)}register_for_session(t){var a;(a=this.sessionPersistence)==null||a.register(t)}unregister(t){var a;(a=this.persistence)==null||a.unregister(t)}unregister_for_session(t){var a;(a=this.sessionPersistence)==null||a.unregister(t)}an(t,a){this.register({[t]:a})}getFeatureFlag(t,a){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlag(t,a)}getFeatureFlagPayload(t){var a;return(a=this.featureFlags)==null?void 0:a.getFeatureFlagPayload(t)}getFeatureFlagResult(t,a){var o;return(o=this.featureFlags)==null?void 0:o.getFeatureFlagResult(t,a)}isFeatureEnabled(t,a){var o;return(o=this.featureFlags)==null?void 0:o.isFeatureEnabled(t,a)}reloadFeatureFlags(){var t;(t=this.featureFlags)==null||t.reloadFeatureFlags()}updateFlags(t,a,o){var n;(n=this.featureFlags)==null||n.updateFlags(t,a,o)}updateEarlyAccessFeatureEnrollment(t,a,o){var n;(n=this.featureFlags)==null||n.updateEarlyAccessFeatureEnrollment(t,a,o)}getEarlyAccessFeatures(t,a,o){var n;return a===void 0&&(a=!1),(n=this.featureFlags)==null?void 0:n.getEarlyAccessFeatures(t,a,o)}on(t,a){return this.Fi.on(t,a)}onFeatureFlags(t){return this.featureFlags?this.featureFlags.onFeatureFlags(t):(t([],{},{errorsLoading:!0}),()=>{})}onSurveysLoaded(t){return this.surveys?this.surveys.onSurveysLoaded(t):(t([],{isLoaded:!1,error:ip}),()=>{})}onSessionId(t){var a,o;return(a=(o=this.sessionManager)==null?void 0:o.onSessionId(t))!==null&&a!==void 0?a:()=>{}}getSurveys(t,a){a===void 0&&(a=!1),this.surveys?this.surveys.getSurveys(t,a):t([],{isLoaded:!1,error:ip})}getActiveMatchingSurveys(t,a){a===void 0&&(a=!1),this.surveys?this.surveys.getActiveMatchingSurveys(t,a):t([],{isLoaded:!1,error:ip})}renderSurvey(t,a){var o;(o=this.surveys)==null||o.renderSurvey(t,a)}displaySurvey(t,a){var o;a===void 0&&(a=$ce),(o=this.surveys)==null||o.displaySurvey(t,a)}cancelPendingSurvey(t){var a;(a=this.surveys)==null||a.cancelPendingSurvey(t)}canRenderSurvey(t){var a,o;return(a=(o=this.surveys)==null?void 0:o.canRenderSurvey(t))!==null&&a!==void 0?a:{visible:!1,disabledReason:ip}}canRenderSurveyAsync(t,a){var o,n;return a===void 0&&(a=!1),(o=(n=this.surveys)==null?void 0:n.canRenderSurveyAsync(t,a))!==null&&o!==void 0?o:Promise.resolve({visible:!1,disabledReason:ip})}ln(t){return!t||Ef(t)?(Ue.critical("Unique user id has not been set in posthog.identify"),!1):t===Jg?(Ue.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID is only used as a sentinel value.'),!1):!["distinct_id","distinctid"].includes(t.toLowerCase())&&!["undefined","null"].includes(t.toLowerCase())||(Ue.critical('The string "'+t+'" was set in posthog.identify which indicates an error. This ID should be unique to the user and not a hardcoded string.'),!1)}identify(t,a,o){if(!this.__loaded||!this.persistence)return Ue.uninitializedWarning("posthog.identify");if(ir(t)&&(t=t.toString(),Ue.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(t)&&this.sn("posthog.identify")){var n=this.get_distinct_id();this.register({$user_id:t}),this.get_property(fv)||this.register_once({$had_persisted_distinct_id:!0,$device_id:n},""),t!==n&&t!==this.get_property(yp)&&(this.unregister(yp),this.register({distinct_id:t}));var r,i=(this.persistence.get_property(yr)||Jc)===Jc;t!==n&&i?(this.persistence.set_property(yr,Xc),this.setPersonPropertiesForFlags({$set:a||{},$set_once:o||{}},!1),this.capture(aT,{distinct_id:t,$anon_distinct_id:n},{$set:a||{},$set_once:o||{}}),this.Di=R2(t,a,o),(r=this.featureFlags)==null||r.setAnonymousDistinctId(n)):(a||o)&&this.setPersonProperties(a,o),t!==n&&(this.reloadFeatureFlags(),this.unregister(_p))}}setPersonProperties(t,a){if((t||a)&&this.sn("posthog.setPersonProperties")){var o=R2(this.get_distinct_id(),t,a);this.Di!==o?(this.setPersonPropertiesForFlags({$set:t||{},$set_once:a||{}},!0),this.capture("$set",{$set:t||{},$set_once:a||{}}),this.Di=o):Ue.info("A duplicate setPersonProperties call was made with the same properties. It has been ignored.")}}group(t,a,o){if(t&&a){var n=this.getGroups(),r=n[t]!==a;if(r&&this.resetGroupPropertiesForFlags(t),this.register({$groups:Me({},n,{[t]:a})}),r||o){var i={$group_type:t,$group_key:a};o&&(i.$group_set=o),this.capture(h2,i)}o&&this.setGroupPropertiesForFlags({[t]:o}),r&&!o&&this.reloadFeatureFlags()}else Ue.error("posthog.group requires a group type and group key")}resetGroups(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}setPersonPropertiesForFlags(t,a){var o;a===void 0&&(a=!0),(o=this.featureFlags)==null||o.setPersonPropertiesForFlags(t,a)}resetPersonPropertiesForFlags(){var t;(t=this.featureFlags)==null||t.resetPersonPropertiesForFlags()}setGroupPropertiesForFlags(t,a){var o;a===void 0&&(a=!0),this.sn("posthog.setGroupPropertiesForFlags")&&((o=this.featureFlags)==null||o.setGroupPropertiesForFlags(t,a))}resetGroupPropertiesForFlags(t){var a;(a=this.featureFlags)==null||a.resetGroupPropertiesForFlags(t)}reset(t){var a,o,n,r,i,c,d,u;if(Ue.info("reset"),!this.__loaded)return Ue.uninitializedWarning("posthog.reset");var m=this.get_property(fv);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(yr,Jc),(u=this.sessionManager)==null||u.resetSessionId(),this.Di=null,this.config.cookieless_mode===Ns)this.register_once({distinct_id:Jg,$device_id:null},"");else{var h=this.config.get_device_id(Oi());this.register_once({distinct_id:h,$device_id:t?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(t,a){var o;this.config.identity_distinct_id=t,this.config.identity_hash=a,this.alias(t),(o=this.conversations)==null||o.un()}clearIdentity(){var t;delete this.config.identity_distinct_id,delete this.config.identity_hash,(t=this.conversations)==null||t.hn()}get_distinct_id(){return this.get_property("distinct_id")}getGroups(){return this.get_property("$groups")||{}}get_session_id(){var t,a;return(t=(a=this.sessionManager)==null?void 0:a.checkAndGetSessionAndWindowId(!0).sessionId)!==null&&t!==void 0?t:""}get_session_replay_url(t){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(t!=null&&t.withTimestamp&&o){var r,i=(r=t.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(t,a){return t===this.get_property(W3)?(Ue.critical("Attempting to create alias for existing People user - aborting."),-2):this.sn("posthog.alias")?($e(a)&&(a=this.get_distinct_id()),t!==a?(this.an(yp,t),this.capture("$create_alias",{alias:t,distinct_id:a})):(Ue.warn("alias matches current distinct_id - skipping api call."),this.identify(t),-1)):void 0}set_config(t){var a=Me({},this.config);if(Ba(t)){var o,n,r,i,c,d,u,m,h,f;Na(this.config,I2(t));var v=this.qi();(o=this.persistence)==null||o.update_config(this.config,a,v),this.sessionPersistence=this.config.persistence==="sessionStorage"||this.config.persistence==="memory"?this.persistence:new rT(Me({},this.config,{persistence:"sessionStorage"}),v);var b=this.Bi(this.config.debug);Zr(b)&&(this.config.debug=b),Zr(this.config.debug)&&(this.config.debug?(Jo.DEBUG=!0,Ea.R()&&Ea.M("ph_debug",!0),Ue.info("set_config",{config:t,oldConfig:a,newConfig:Me({},this.config)})):(Jo.DEBUG=!1,Ea.R()&&Ea.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(t,a){Jo.LIB_NAME=t,Jo.LIB_VERSION=a}startSessionRecording(t){var a,o,n,r,i,c=t===!0,d={sampling:c||!(t==null||!t.sampling),linked_flag:c||!(t==null||!t.linked_flag),url_trigger:c||!(t==null||!t.url_trigger),event_trigger:c||!(t==null||!t.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 t;return!((t=this.sessionRecording)==null||!t.started)}captureException(t,a){if(this.exceptions){var o=new Error("PostHog syntheticException"),n=this.exceptions.buildProperties(t,{handled:!0,syntheticException:o});return this.exceptions.sendExceptionEvent(Me({},n,a))}}addExceptionStep(t,a){var o;(o=this.exceptions)==null||o.addExceptionStep(t,a)}captureLog(t){var a;(a=this.logs)==null||a.captureLog(t)}get logger(){var t,a;return(t=(a=this.logs)==null?void 0:a.logger)!==null&&t!==void 0?t:ar.dn}startExceptionAutocapture(t){this.set_config({capture_exceptions:t==null||t})}stopExceptionAutocapture(){this.set_config({capture_exceptions:!1})}loadToolbar(t){var a,o;return(a=(o=this.toolbar)==null?void 0:o.loadToolbar(t))!==null&&a!==void 0&&a}get_property(t){var a;return(a=this.persistence)==null?void 0:a.props[t]}getSessionProperty(t){var a;return(a=this.sessionPersistence)==null?void 0:a.props[t]}toString(){var t,a=(t=this.config.name)!==null&&t!==void 0?t:pd;return a!==pd&&(a=pd+"."+a),a}_isIdentified(){var t,a;return((t=this.persistence)==null?void 0:t.get_property(yr))===Xc||((a=this.sessionPersistence)==null?void 0:a.get_property(yr))===Xc}nn(){var t,a;return!(this.config.person_profiles==="never"||this.config.person_profiles===w0&&!this._isIdentified()&&vd(this.getGroups())&&((t=this.persistence)==null||(t=t.props)==null||!t[yp])&&((a=this.persistence)==null||(a=a.props)==null||!a[wv]))}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(t){return this.config.person_profiles==="never"?(Ue.error(t+' was called, but process_person is set to "never". This call will be ignored.'),!1):(this.an(wv,!0),!0)}qi(){if(this.config.cookieless_mode==="always")return!0;var t=this.consent.isOptedOut();return this.config.disable_persistence||t&&!(!this.config.opt_out_persistence_by_default&&this.config.cookieless_mode!==Dl)}cn(){var t,a,o,n,r=this.qi();return((t=this.persistence)==null?void 0:t._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(t){var a;if(this.config.cookieless_mode!==Ns){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 A2(this),this.pageViewManager=new b2(this),this.persistence&&(this.sessionPropsManager=new _2(this,this.sessionManager,this.persistence));var d,u=(r=(i=this.config.__extensionClasses)==null?void 0:i.sessionRecording)!==null&&r!==void 0?r:(c=ar.__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==Dl&&((m=this.surveys)==null||m.loadIfEnabled()),($e(t?.captureEventName)||t!=null&&t.captureEventName)&&this.capture((h=t?.captureEventName)!==null&&h!==void 0?h:"$opt_in",t?.captureProperties,{send_instantly:!0}),this.config.capture_pageview&&this.Ji()}else Ue.warn(O2)}opt_out_capturing(){var t,a,o;this.config.cookieless_mode!==Ns?(this.config.cookieless_mode===Dl&&this.consent.isOptedIn()&&this.reset(!0),this.consent.optInOut(!1),this.cn(),this.config.cookieless_mode===Dl&&(this.register({distinct_id:Jg,$device_id:null}),(t=this.sessionManager)==null||t.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())):Ue.warn(O2)}has_opted_in_capturing(){return this.consent.isOptedIn()}has_opted_out_capturing(){return this.consent.isOptedOut()}get_explicit_consent_status(){var t=this.consent.consent;return t===1?"granted":t===0?"denied":"pending"}is_capturing(){return this.config.cookieless_mode===Ns||(this.config.cookieless_mode===Dl?this.consent.isRejected()||this.consent.isOptedIn():!this.has_opted_out_capturing())}clear_opt_in_out_capturing(){this.consent.reset(),this.cn()}_is_bot(){return In?w4(In,this.config.custom_blocked_useragents):void 0}Ji(){ze&&(ze.visibilityState==="visible"?this.Oi||(this.Oi=!0,this.capture(ud,{title:ze.title},{send_instantly:!0}),this.Pi&&(ze.removeEventListener(Sv,this.Pi),this.Pi=null)):this.Pi||(this.Pi=this.Ji.bind(this),Za(ze,Sv,this.Pi)))}debug(t){t===!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 t,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?(Ue.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=Ue,r=(a="advanced_disable_flags")in(t=c)&&!Pt(t[a]),i=o in t&&!Pt(t[o]),r?t[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."),t[o]))}rn(t){if(Pt(this.config.before_send))return t;var a=Bt(this.config.before_send)?this.config.before_send:[this.config.before_send],o=t;for(var n of a){if(o=n(o),Pt(o)){var r="Event '"+t.event+"' was rejected in beforeSend function";return xle(t.event)?Ue.warn(r+". This can cause unexpected behavior."):Ue.info(r),null}o.properties&&!vd(o.properties)||Ue.warn("Event '"+t.event+"' has no properties after beforeSend function, this is likely an error.")}return o}getPageViewId(){var t;return(t=this.pageViewManager.dr)==null?void 0:t.pageViewId}captureTraceFeedback(t,a){this.capture("$ai_feedback",{$ai_trace_id:String(t),$ai_feedback_text:a})}captureTraceMetric(t,a,o){this.capture("$ai_metric",{$ai_trace_id:String(t),$ai_metric_name:a,$ai_metric_value:String(o)})}Bi(t){var a=Zr(t)&&!t,o=Ea.R()&&Ea.O("ph_debug")==="true";return!a&&(!!o||t)}}function L2(e){return e instanceof Element&&(e.id===J3||!(e.closest==null||!e.closest(".toolbar-global-fade-container")))}function Tb(e){return!!e&&e.nodeType===1}function qi(e,t){return!!e&&!!e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()}function E4(e){return!!e&&e.nodeType===3}function C4(e){return!!e&&e.nodeType===11}function GE(e){return e?yb(e).split(/\s+/):[]}function B2(e){var t=ge?.location.href;return!!(t&&e&&e.some((a=>t.match(a))))}function Rv(e){var t="";switch(typeof e.className){case"string":t=e.className;break;case"object":t=(e.className&&"baseVal"in e.className?e.className.baseVal:null)||e.getAttribute("class")||"";break;default:t=""}return GE(t)}function P4(e){return Pt(e)?null:yb(e).split(/(\s+)/).filter((t=>Dp(t))).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}function Xp(e){var t="";return R0(e)&&!A4(e)&&e.childNodes&&e.childNodes.length&&va(e.childNodes,(function(a){var o;E4(a)&&a.textContent&&(t+=(o=P4(a.textContent))!==null&&o!==void 0?o:"")})),yb(t)}function F2(e){return $e(e.target)?e.srcElement||null:(t=e.target)!=null&&t.shadowRoot?e.composedPath()[0]||null:e.target||null;var t}ar.__defaultExtensionClasses={},ar.dn={trace:td=()=>{},debug:td,info:td,warn:td,error:td,fatal:td},(function(e,t){for(var a=0;t.length>a;a++)e.prototype[t[a]]=ice(e.prototype[t[a]])})(ar,["identify"]);var WE=["a","button","form","input","select","textarea","label"];function j2(e,t){if($e(t))return!0;var a,o=function(r){if(t.some((i=>r.matches(i))))return{v:!0}};for(var n of e)if(a=o(n))return a.v;return!1}function _4(e){var t=e.parentNode;return!(!t||!Tb(t))&&t}var Yce=["next","previous","prev",">","<"],z2=[".ph-no-rageclick",".ph-no-capture"],A0=e=>!e||qi(e,"html")||!Tb(e),q2=(e,t)=>{if(!ge||A0(e))return{parentIsUsefulElement:!1,targetElementList:[]};for(var a=!1,o=[e],n=e;n.parentNode&&!qi(n,"body");)if(C4(n.parentNode))o.push(n.parentNode.host),n=n.parentNode.host;else{var r=_4(n);if(!r)break;if(t||WE.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 R0(e){for(var t=e;t.parentNode&&!qi(t,"body");t=t.parentNode){var a=Rv(t);if(Et(a,"ph-sensitive")||Et(a,"ph-no-capture"))return!1}if(Et(Rv(e),"ph-include"))return!0;var o=e.type||"";if(Ca(o))switch(o.toLowerCase()){case"hidden":case"password":return!1}var n=e.name||e.id||"";return!Ca(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 A4(e){return!!(qi(e,"input")&&!["button","checkbox","submit","reset"].includes(e.type)||qi(e,"select")||qi(e,"textarea")||e.getAttribute("contenteditable")==="true")}var R4="(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})",Qce=new RegExp("^(?:"+R4+")$"),Zce=new RegExp(R4),D4="\\d{3}-?\\d{2}-?\\d{4}",Jce=new RegExp("^("+D4+")$"),Xce=new RegExp("("+D4+")");function Dp(e,t){return t===void 0&&(t=!0),!(Pt(e)||Ca(e)&&(e=yb(e),(t?Qce:Zce).test((e||"").replace(/[- ]/g,""))||(t?Jce:Xce).test(e)))}function U2(e){var t=Xp(e);return Dp(t=(t+" "+O4(e)).trim())?t:""}function O4(e){var t="";return e&&e.childNodes&&e.childNodes.length&&va(e.childNodes,(function(a){var o;if(a&&((o=a.tagName)==null?void 0:o.toLowerCase())==="span")try{var n=Xp(a);t=(t+" "+n).trim(),a.childNodes&&a.childNodes.length&&(t=(t+" "+O4(a)).trim())}catch(r){Ue.error("[AutoCapture]",r)}})),t}function $2(e){return e.replace(/"|\\"/g,'\\"')}function ede(e){var t=e.attr__class;return t?Bt(t)?t:GE(t):void 0}class V2{constructor(t){this.disabled=t===!1;var a=Ba(t)?t:{};this.thresholdPx=a.threshold_px||30,this.timeoutMs=a.timeout_ms||1e3,this.clickCount=a.click_count||3,this.clicks=[]}isRageClick(t,a,o){if(this.disabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(t-n.x)+Math.abs(a-n.y)<this.thresholdPx&&this.timeoutMs>o-n.timestamp){if(this.clicks.push({x:t,y:a,timestamp:o}),this.clicks.length===this.clickCount)return!0}else this.clicks=[{x:t,y:a,timestamp:o}];return!1}}var mT="$copy_autocapture",H2=Ta("[AutoCapture]");function hT(e,t){return t.length>e?t.slice(0,e)+"...":t}function tde(e){if(e.previousElementSibling)return e.previousElementSibling;var t=e;do t=t.previousSibling;while(t&&!Tb(t));return t}function ade(e,t){for(var a,o,{e:n,maskAllElementAttributes:r,maskAllText:i,elementAttributeIgnoreList:c,elementsChainAsString:d}=t,u=[e],m=e;m.parentNode&&!qi(m,"body");)C4(m.parentNode)?(u.push(m.parentNode.host),m=m.parentNode.host):(u.push(m.parentNode),m=m.parentNode);var h,f,v=[],b={},w=!1,x=!1;if(va(u,(_=>{var D=R0(_);_.tagName.toLowerCase()==="a"&&(w=_.getAttribute("href"),w=D&&w&&Dp(w)&&w),Et(Rv(_),"ph-no-capture")&&(x=!0),v.push((function(O,L,U,B){var z=O.tagName.toLowerCase(),F={tag_name:z};WE.indexOf(z)>-1&&!U&&(F.$el_text=z.toLowerCase()==="a"||z.toLowerCase()==="button"?hT(1024,U2(O)):hT(1024,Xp(O)));var W=Rv(O);W.length>0&&(F.classes=W.filter((function(J){return J!==""}))),va(O.attributes,(function(J){var se;if((!A4(O)||["name","id","class","aria-label"].indexOf(J.name)!==-1)&&(B==null||!B.includes(J.name))&&!L&&Dp(J.value)&&(!Ca(se=J.name)||se.substring(0,10)!=="_ngcontent"&&se.substring(0,7)!=="_nghost")){var Z=J.value;J.name==="class"&&(Z=GE(Z).join(" ")),F["attr__"+J.name]=hT(1024,Z)}}));for(var ae=1,H=1,K=O;K=tde(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(!R0(O))return{};var L={};return va(O.attributes,(function(U){if(U.name&&U.name.indexOf("data-ph-capture-attribute")===0){var B=U.name.replace("data-ph-capture-attribute-",""),z=U.value;B&&z&&Dp(z)&&(L[B]=z)}})),L})(_);Na(b,R)})),x)return{props:{},explicitNoCapture:x};if(i||(v[0].$el_text=e.tagName.toLowerCase()==="a"||e.tagName.toLowerCase()==="button"?U2(e):Xp(e)),w){var T,k;v[0].attr__href=w;var C=(T=kv(w))==null?void 0:T.host,E=ge==null||(k=ge.location)==null?void 0:k.host;C&&E&&C!==E&&(h=w)}return{props:Na({$event_type:n.type,$ce_version:1},d?{}:{$elements:v},{$elements_chain:(f=v,(function(_){return _.map((D=>{var R,O,L="";if(D.tag_name&&(L+=D.tag_name),D.attr_class)for(var U of(D.attr_class.sort(),D.attr_class))L+="."+U.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 _f(B).sort(((F,W)=>{var[ae]=F,[H]=W;return ae.localeCompare(H)})).forEach((F=>{var[W,ae]=F;return z[$2(W.toString())]=$2(ae.toString())})),(L+=":")+_f(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:ede(D),attr_id:D.attr__id,nth_child:D.nth_child,nth_of_type:D.nth_of_type,attributes:{}};return _f(D).filter((U=>{var[B]=U;return B.indexOf("attr__")===0})).forEach((U=>{var[B,z]=U;return L.attributes[B]=z})),L}))})(f)))},(a=v[0])!=null&&a.$el_text?{$el_text:(o=v[0])==null?void 0:o.$el_text}:{},h&&n.type==="click"?{$external_click_url:h}:{},b)}}var lp=Ta("[ExceptionAutocapture]");function G2(e,t,a){try{if(!(t in e))return()=>{};var o=e[t],n=a(o);return Os(n)&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__posthog_wrapped__:{enumerable:!1,value:!0}})),e[t]=n,()=>{e[t]=o}}catch{return()=>{}}}var ode=Ta("[TracingHeaders]"),wi=Ta("[Web Vitals]"),W2=9e5,K2="disabled",Y2="lazy_loading",cp="awaiting_config",nf="missing_config";Ta("[SessionRecording]"),Ta("[SessionRecording]");var D0="[SessionRecording]",Si=Ta(D0),nde=Ta("[Heatmaps]");function Q2(e){return Ba(e)&&"clientX"in e&&"clientY"in e&&ir(e.clientX)&&ir(e.clientY)}var Z2=Ta("[Product Tours]"),rde=["$set_once","$set"],Ti=Ta("[SiteApps]"),J2="Error while initializing PostHog app with config id ";function ad(e,t,a){if(Pt(e))return!1;switch(a){case"exact":return e===t;case"contains":var o=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/_/g,".").replace(/%/g,".*");return new RegExp(o,"i").test(e);case"regex":try{return new RegExp(t).test(e)}catch{return!1}default:return!1}}class sde{constructor(t){this.vn=new HE,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=t,this.bn=new Set,this._n=new Set}init(){var t,a;$e((t=this._instance)==null?void 0:t._addCaptureHook)||(a=this._instance)==null||a._addCaptureHook(((o,n)=>{this.on(o,n)}))}register(t){var a,o;if(!$e((a=this._instance)==null?void 0:a._addCaptureHook)&&(t.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;t.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(t,a){var o;a!=null&&t.length!=0&&(this.bn.has(t)||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(t){this.onAction("actionCaptured",(a=>t(a)))}wn(t,a){if(a?.steps==null)return!1;for(var o of a.steps)if(this.fn(t,o))return!0;return!1}onAction(t,a){return this.vn.on(t,a)}gn(t,a){if(a!=null&&a.url){var o,n=t==null||(o=t.properties)==null?void 0:o.$current_url;if(!n||typeof n!="string"||!ad(n,a.url,a.url_matching||"contains"))return!1}return!0}mn(t,a){return!!this.Cn(t,a)&&!!this.Sn(t,a)&&!!this.xn(t,a)}Cn(t,a){var o;if(a==null||!a.href)return!0;var n=this.kn(t);if(n.length>0)return n.some((c=>ad(c.href,a.href,a.href_matching||"exact")));var r,i=(t==null||(o=t.properties)==null?void 0:o.$elements_chain)||"";return!!i&&ad((r=i.match(/(?::|")href="(.*?)"/))?r[1]:"",a.href,a.href_matching||"exact")}Sn(t,a){var o;if(a==null||!a.text)return!0;var n=this.kn(t);if(n.length>0)return n.some((u=>ad(u.text,a.text,a.text_matching||"exact")||ad(u.$el_text,a.text,a.text_matching||"exact")));var r,i,c,d=(t==null||(o=t.properties)==null?void 0:o.$elements_chain)||"";return!!d&&(r=(function(u){for(var m,h=[],f=/(?::|")text="(.*?)"/g;!Pt(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=>ad(u,i,c))))}xn(t,a){var o,n;if(a==null||!a.selector)return!0;var r=t==null||(o=t.properties)==null?void 0:o.$element_selectors;if(r!=null&&r.includes(a.selector))return!0;var i=(t==null||(n=t.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(t){var a;return(t==null||(a=t.properties)==null?void 0:a.$elements)==null?[]:t?.properties.$elements}yn(t,a){return a==null||!a.properties||a.properties.length===0||T4(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}),{}),t?.properties)}}class ide{constructor(t){this._instance=t,this.Tn=new Map,this.An=new Map,this.En=new Map}Rn(t,a){return!!t&&T4(t.propertyFilters,a?.properties)}Nn(t,a){var o=new Map;return t.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(t,a,o){var n=(o===op.Activation?this.Tn:this.An).get(t),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===t));return this.Rn(d,a)}))}register(t){var a;$e((a=this._instance)==null?void 0:a._addCaptureHook)||(this.On(t),this.Pn(t))}Pn(t){var a=t.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 sde(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(t){var a,o=t.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=t.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(t,op.Activation),this.An=this.Nn(t,op.Cancellation))}onEvent(t,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===t&&a&&c.length>0){var d,u;n.info("event matched, removing item from activated items",{event:t,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(t)){var f=this.Mn(t,a,op.Cancellation);f.length>0&&(n.info("cancel event matched, cancelling items",{event:t,itemsToCancel:f.map((b=>b.id))}),f.forEach((b=>{var w=c.indexOf(b.id);0>w||c.splice(w,1),this.$n(b.id)})),this.jn(c))}if(this.Tn.has(t)){n.info("event name matched",{event:t,eventPayload:a,items:this.Tn.get(t)});var v=this.Mn(t,a,op.Activation);this.jn(c.concat(v.map((b=>b.id))||[]))}}}onAction(t){var a,o=this.Dn(),n=((a=this._instance)==null||(a=a.persistence)==null?void 0:a.props[o])||[];this.En.has(t)&&this.jn(n.concat(this.En.get(t)||[]))}jn(t){var a=this.le(),o=[...new Set(t)].filter((n=>!this.qn(n)));a.info("updating activated items",{activatedItems:o}),this.Zn(o)}getActivatedIds(){var t,a=this.Dn();return((t=this._instance)==null||(t=t.persistence)==null?void 0:t.props[a])||[]}getEventToItemsMap(){return this.Tn}Vn(){return this.Ln}}class lde extends ide{constructor(t){super(t)}Dn(){return m0}Bn(){return kp.SHOWN}Fn(t){var a;(a=this._instance)==null||a.getSurveys(t)}$n(t){var a;(a=this._instance)==null||a.cancelPendingSurvey(t)}le(){return na}Zn(t){var a;(a=this._instance)==null||(a=a.persistence)==null||a.register({[m0]:t})}qn(){return!1}getSurveys(){return this.getActivatedIds()}getEventToSurveys(){return this.getEventToItemsMap()}}var gT="SDK is not enabled or survey functionality is not yet loaded",X2="Disabled. Not loading surveys.",cde=ge!=null&&ge.location?Cv(ge.location.hash,"__posthog")||Cv(location.hash,"state"):null,eN="_postHogToolbarParams",tN=Ta("[Toolbar]"),Yo=Ta("[FeatureFlags]"),Cl=Ta("[FeatureFlags]",{debugEnabled:!0}),fT=`" failed. Feature flags didn't load in time.`,aN=e=>{for(var t={},a=0;e.length>a;a++)t[e[a]]=!0;return t},oN=e=>{var t={};for(var[a,o]of _f(e||{}))o&&(t[a]=o);return t},Rs=Ta("[Error tracking]"),nN="Refusing to render web experiment since the viewer is a likely bot",dde={icontains:(e,t)=>!!ge&&t.href.toLowerCase().indexOf(e.toLowerCase())>-1,not_icontains:(e,t)=>!!ge&&t.href.toLowerCase().indexOf(e.toLowerCase())===-1,regex:(e,t)=>!!ge&&Av(t.href,e),not_regex:(e,t)=>!!ge&&!Av(t.href,e),exact:(e,t)=>t.href===e,is_not:(e,t)=>t.href!==e};class Bo{get Bt(){return this._instance.config}constructor(t){var a=this;this.getWebExperimentsAndEvaluateDisplayLogic=function(o){o===void 0&&(o=!1),a.getWebExperiments((n=>{Bo.Hn("retrieved web experiments from the server"),a.zn=new Map,n.forEach((r=>{if(r.feature_flag_key){var i;a.zn&&(Bo.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);Ca(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];Bo.Yn(u)&&a.Un(r.name,d,u.transforms)}}))}),o)},this._instance=t,this._instance.onFeatureFlags((o=>{this.onFeatureFlags(o)}))}initialize(){}onFeatureFlags(t){if(this._is_bot())Bo.Hn(nN);else if(!this.Bt.disable_web_experiments){if(Pt(this.zn))return this.zn=new Map,this.loadIfEnabled(),void this.previewWebExperiment();Bo.Hn("applying feature flags",t),t.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 t=Bo.getWindowLocation();if(t!=null&&t.search){var a=Ev(t?.search,"__experiment_id"),o=Ev(t?.search,"__experiment_variant");a&&o&&(Bo.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(t,a,o){if(this.Bt.disable_web_experiments&&!o)return t([]);var n=this._instance.get_property("$web_experiments");if(n&&!a)return t(n);this._instance._send_request({url:this._instance.requestRouter.endpointFor("api","/api/web_experiments/?token="+this.Bt.token),method:"GET",callback:r=>t(r.statusCode===200&&r.json&&r.json.experiments||[])})}Gn(t,a,o){var n=o.filter((r=>r.id===t));n&&n.length>0&&(Bo.Hn("Previewing web experiment ["+n[0].name+"] with variant ["+a+"]"),this.Un(n[0].name,a,n[0].variants[a].transforms))}static Yn(t){return!Pt(t.conditions)&&Bo.Wn(t)&&Bo.Xn(t)}static Wn(t){var a;if(Pt(t.conditions)||Pt((a=t.conditions)==null?void 0:a.url))return!0;var o,n,r,i=Bo.getWindowLocation();return!!i&&((o=t.conditions)==null||!o.url||dde[(n=(r=t.conditions)==null?void 0:r.urlMatchType)!==null&&n!==void 0?n:"icontains"](t.conditions.url,i))}static getWindowLocation(){return ge?.location}static Xn(t){var a;if(Pt(t.conditions)||Pt((a=t.conditions)==null?void 0:a.utm))return!0;var o=s4();if(o.utm_source){var n,r,i,c,d,u,m,h,f=(n=t.conditions)==null||(n=n.utm)==null||!n.utm_campaign||((r=t.conditions)==null||(r=r.utm)==null?void 0:r.utm_campaign)==o.utm_campaign,v=(i=t.conditions)==null||(i=i.utm)==null||!i.utm_source||((c=t.conditions)==null||(c=c.utm)==null?void 0:c.utm_source)==o.utm_source,b=(d=t.conditions)==null||(d=d.utm)==null||!d.utm_medium||((u=t.conditions)==null||(u=u.utm)==null?void 0:u.utm_medium)==o.utm_medium,w=(m=t.conditions)==null||(m=m.utm)==null||!m.utm_term||((h=t.conditions)==null||(h=h.utm)==null?void 0:h.utm_term)==o.utm_term;return f&&b&&w&&v}return!1}static Hn(t){for(var a=arguments.length,o=new Array(a>1?a-1:0),n=1;a>n;n++)o[n-1]=arguments[n];Ue.info("[WebExperiments] "+t,o)}Un(t,a,o){this._is_bot()?Bo.Hn(nN):a!=="control"?o.forEach((n=>{if(n.selector){var r;Bo.Hn("applying transform of variant "+a+" for experiment "+t+" ",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)}))}})):Bo.Hn("Control variants leave the page unmodified.")}_is_bot(){return In&&this._instance?w4(In,this.Bt.custom_blocked_useragents):void 0}}var Zn=Ta("[Conversations]"),Pl="Conversations not available yet.",xb={featureFlags:class{constructor(e){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=e,this.featureFlagEventHandlers=[]}get Bt(){return this._instance.config}get ni(){return this._instance.persistence}os(e){return this._instance.get_property(e)}ls(){var e,t;return(e=(t=this.ni)==null?void 0:t.wr(this.Bt.feature_flag_cache_ttl_ms))!==null&&e!==void 0&&e}us(){return!!this.ls()&&(this.ss||this.Qn||(this.ss=!0,Yo.warn("Feature flag cache is stale, triggering refresh..."),this.reloadFeatureFlags()),!0)}hs(){var e,t=(e=this.Bt.evaluation_contexts)!==null&&e!==void 0?e:this.Bt.evaluation_environments;return!this.Bt.evaluation_environments||this.Bt.evaluation_contexts||this.ns||(Yo.warn("evaluation_environments is deprecated. Use evaluation_contexts instead. evaluation_environments will be removed in a future version."),this.ns=!0),t!=null&&t.length?t.filter((a=>{var o=a&&typeof a=="string"&&a.trim().length>0;return o||Yo.error("Invalid evaluation context found:",a,"Expected non-empty string"),o})):[]}cs(){return this.hs().length>0}initialize(){var e,t,{config:a}=this._instance,o=(e=(t=a.bootstrap)==null?void 0:t.featureFlags)!==null&&e!==void 0?e:{};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(e,t,a){var o=a!=null&&a.merge?this.getFlagVariants():{},n=a!=null&&a.merge?this.getFlagPayloads():{},r=Me({},o,e),i=Me({},n,t),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 e=this.os(c0),t=this.os(Ds),a=this.os(dd);if(!a&&!t)return e||{};var o=Na({},e||{}),n=[...new Set([...Object.keys(a||{}),...Object.keys(t||{})])];for(var r of n){var i,c,d=o[r],u=t?.[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],v=Me({},d,{enabled:m,variant:m?h??d?.variant:void 0});m!==d?.enabled&&(v.original_enabled=d?.enabled),h!==d?.variant&&(v.original_variant=d?.variant),f&&(v.metadata=Me({},d?.metadata,{payload:f,original_payload:d==null||(c=d.metadata)==null?void 0:c.payload})),o[r]=v}return this.Jn||(Yo.warn(" Overriding feature flag details!",{flagDetails:e,overriddenPayloads:a,finalDetails:o}),this.Jn=!0),o}getFlagVariants(){var e=this.os(bd),t=this.os(Ds);if(!t)return e||{};for(var a=Na({},e),o=Object.keys(t),n=0;o.length>n;n++)a[o[n]]=t[o[n]];return this.Jn||(Yo.warn(" Overriding feature flags!",{enabledFlags:e,overriddenFlags:t,finalFlags:a}),this.Jn=!0),a}getFlagPayloads(){var e=this.os(d0),t=this.os(dd);if(!t)return e||{};for(var a=Na({},e||{}),o=Object.keys(t),n=0;o.length>n;n++)a[o[n]]=t[o[n]];return this.Jn||(Yo.warn(" Overriding feature flag payloads!",{flagPayloads:e,overriddenPayloads:t,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(e){this.$anon_distinct_id=e}setReloadingPaused(e){this.es=e}vs(e){var t;if(this.fs(),!this._instance.Fr())if(this.Qn)this.ts=!0;else{var a=this.Bt.token,o=this.os(fv),n={token:a,distinct_id:this._instance.get_distinct_id(),groups:this._instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:Me({},((t=this.ni)==null?void 0:t.get_initial_props())||{},this.os(xp)||{}),group_properties:this.os(Rl),timezone:p4()};Us(o)||$e(o)||(n.$device_id=o),(e!=null&&e.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:Vr.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,v=!((d=i.json)==null||(d=d.quotaLimited)==null||!d.includes("feature_flags"));v&&h.push("quota_limited"),(u=this.ni)==null||u.register({[g0]:h}),v?Yo.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(e,t){var a;if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var o=this.getFeatureFlagResult(e,t);return(a=o?.variant)!==null&&a!==void 0?a:o?.enabled}}else Yo.warn('getFeatureFlag for key "'+e+fT)}getFeatureFlagDetails(e){return this.getFlagsWithDetails()[e]}getFeatureFlagPayload(e){var t=this.getFeatureFlagResult(e,{send_event:!1});return t?.payload}getFeatureFlagResult(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs)if(this.Kn||this.getFlags()&&this.getFlags().length>0){if(!this.us()){var a=this.getFlagVariants(),o=e in a,n=a[e],r=this.getFlagPayloads()[e],i=String(n),c=this.os(u0)||void 0,d=this.os(bv)||void 0,u=this.os(_p)||{};if(this.Bt.advanced_feature_flags_dedup_per_session){var m,h=this._instance.get_session_id(),f=this.os(h0);h&&h!==f&&(u={},(m=this.ni)==null||m.register({[_p]:u,[h0]:h}))}if((t.send_event||!("send_event"in t))&&(!(e in u)||!u[e].includes(i))){var v,b,w,x,T,k,C,E,_,D;Bt(u[e])?u[e].push(i):u[e]=[i],(v=this.ni)==null||v.register({[_p]:u});var R=this.getFeatureFlagDetails(e),O=[...(b=this.os(g0))!==null&&b!==void 0?b:[]];$e(n)&&O.push("flag_missing");var L={$feature_flag:e,$feature_flag_response:n,$feature_flag_payload:r||null,$feature_flag_request_id:c,$feature_flag_evaluated_at:d,$feature_flag_bootstrapped_response:((w=this.Bt.bootstrap)==null||(w=w.featureFlags)==null?void 0:w[e])||null,$feature_flag_bootstrapped_payload:((x=this.Bt.bootstrap)==null||(x=x.featureFlagPayloads)==null?void 0:x[e])||null,$used_bootstrap_value:!this.rs};$e(R==null||(T=R.metadata)==null?void 0:T.version)||(L.$feature_flag_version=R.metadata.version);var U,B=(k=R==null||(C=R.reason)==null?void 0:C.description)!==null&&k!==void 0?k: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||(U=R.metadata)==null?void 0:U.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:e,enabled:!!n,variant:typeof n=="string"?n:void 0,payload:z}}}}else Yo.warn('getFeatureFlagResult for key "'+e+fT)}getRemoteConfigPayload(e,t){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:Vr.Base64,timeout:this.Bt.feature_flag_request_timeout_ms,callback(n){var r,i=(r=n.json)==null?void 0:r.featureFlagPayloads;t(i?.[e]||void 0)}})}isFeatureEnabled(e,t){if(t===void 0&&(t={}),!t.fresh||this.rs){if(this.Kn||this.getFlags()&&this.getFlags().length>0){var a=this.getFeatureFlag(e,t);return $e(a)?void 0:!!a}Yo.warn('isFeatureEnabled for key "'+e+fT)}}addFeatureFlagsHandler(e){this.featureFlagEventHandlers.push(e)}removeFeatureFlagsHandler(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter((t=>t!==e))}receivedFeatureFlags(e,t,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((U=>{var B;return[U,(B=L[U].variant)!==null&&B!==void 0?B:L[U].enabled]}))),O.featureFlagPayloads=Object.fromEntries(Object.keys(L).filter((U=>L[U].enabled)).filter((U=>{var B;return(B=L[U].metadata)==null?void 0:B.payload})).map((U=>{var B;return[U,(B=L[U].metadata)==null?void 0:B.payload]})))):Yo.warn("Using an older version of the feature flags endpoint. Please upgrade your PostHog server to the latest version"),O})(i),v=f.flags,b=f.featureFlags,w=f.featureFlagPayloads;if(b){var x=i.requestId,T=i.evaluatedAt;if(Bt(b)){Yo.warn("v1 of the feature flags endpoint is deprecated. Please use the latest version.");var k={};if(b)for(var C=0;b.length>C;C++)k[b[C]]=!0;c&&c.register({[Cf]:b,[bd]:k})}else{var E=b,_=w,D=v;if(h!=null&&h.partialResponse)E=Me({},d,E),_=Me({},u,_),D=Me({},m,D);else if(i.errorsWhileComputingFlags)if(v){var R=new Set(Object.keys(v).filter((O=>{var L;return!((L=v[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({[Cf]:Object.keys(oN(E)),[bd]:E||{},[d0]:_||{},[c0]:D||{}},x?{[u0]:x}:{},T?{[bv]:T}:{}))}}})(e,this.ni,o,n,r,a),t||(this.ss=!1),this.ps(t)}}override(e,t){t===void 0&&(t=!1),Yo.warn("override is deprecated. Please use overrideFeatureFlags instead."),this.overrideFeatureFlags({flags:e,suppressWarning:t})}overrideFeatureFlags(e){if(!this._instance.__loaded||!this.ni)return Yo.uninitializedWarning("posthog.featureFlags.overrideFeatureFlags");if(e===!1)return this.ni.unregister(Ds),this.ni.unregister(dd),this.ps(),Cl.info("All overrides cleared");if(Bt(e)){var t=aN(e);return this.ni.register({[Ds]:t}),this.ps(),Cl.info("Flag overrides set",{flags:e})}if(e&&typeof e=="object"&&("flags"in e||"payloads"in e)){var a,o=e;if(this.Jn=!!((a=o.suppressWarning)!==null&&a!==void 0&&a),"flags"in o){if(o.flags===!1)this.ni.unregister(Ds),Cl.info("Flag overrides cleared");else if(o.flags){if(Bt(o.flags)){var n=aN(o.flags);this.ni.register({[Ds]:n})}else this.ni.register({[Ds]:o.flags});Cl.info("Flag overrides set",{flags:o.flags})}}return"payloads"in o&&(o.payloads===!1?(this.ni.unregister(dd),Cl.info("Payload overrides cleared")):o.payloads&&(this.ni.register({[dd]:o.payloads}),Cl.info("Payload overrides set",{payloads:o.payloads}))),void this.ps()}if(e&&typeof e=="object")return this.ni.register({[Ds]:e}),this.ps(),Cl.info("Flag overrides set",{flags:e});Yo.warn("Invalid overrideOptions provided to overrideFeatureFlags",{overrideOptions:e})}onFeatureFlags(e){if(this.addFeatureFlagsHandler(e),this.Kn){var{flags:t,flagVariants:a}=this.gs();e(t,a)}return()=>this.removeFeatureFlagsHandler(e)}updateEarlyAccessFeatureEnrollment(e,t,a){var o,n=(this.os(Tp)||[]).find((d=>d.flagKey===e)),r={["$feature_enrollment/"+e]:t},i={$feature_flag:e,$feature_enrollment:t,$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(),{[e]:t});(o=this.ni)==null||o.register({[Cf]:Object.keys(oN(c)),[bd]:c}),this.ps()}getEarlyAccessFeatures(e,t,a){t===void 0&&(t=!1);var o=this.os(Tp),n=a?"&"+a.map((r=>"stage="+r)).join("&"):"";if(o&&!t)return e(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}),e(d)}}})}gs(){var e=this.getFlags(),t=this.getFlagVariants();return{flags:e.filter((a=>t[a])),flagVariants:Object.keys(t).filter((a=>t[a])).reduce(((a,o)=>(a[o]=t[o],a)),{})}}ps(e){var{flags:t,flagVariants:a}=this.gs();this.featureFlagEventHandlers.forEach((o=>o(t,a,{errorsLoading:e})))}setPersonPropertiesForFlags(e,t){t===void 0&&(t=!0);var a=this.os(xp)||{},o=e?.$set||(e!=null&&e.$set_once?{}:e),n=e?.$set_once,r={};if(n)for(var i in n)({}).hasOwnProperty.call(n,i)&&(i in a||(r[i]=n[i]));this._instance.register({[xp]:Me({},a,r,o)}),t&&this._instance.reloadFeatureFlags()}resetPersonPropertiesForFlags(){this._instance.unregister(xp)}setGroupPropertiesForFlags(e,t){t===void 0&&(t=!0);var a=this.os(Rl)||{};Object.keys(a).length!==0&&Object.keys(a).forEach((o=>{a[o]=Me({},a[o],e[o]),delete e[o]})),this._instance.register({[Rl]:Me({},a,e)}),t&&this._instance.reloadFeatureFlags()}resetGroupPropertiesForFlags(e){if(e){var t=this.os(Rl)||{};this._instance.register({[Rl]:Me({},t,{[e]:{}})})}else this._instance.unregister(Rl)}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}}},ude={sessionRecording:class{get Bt(){return this._instance.config}get ni(){return this._instance.persistence}get started(){var e;return!((e=this.ys)==null||!e.isStarted)}get status(){var e,t;return this.bs===cp||this.bs===nf?this.bs:(e=(t=this.ys)==null?void 0:t.status)!==null&&e!==void 0?e:this.bs}constructor(e){if(this._forceAllowLocalhostNetworkCapture=!1,this.bs=K2,this._s=void 0,this._instance=e,!this._instance.sessionManager)throw Si.error("started without valid sessionManager"),new Error(D0+" started without valid sessionManager. This is a bug.");if(this.Bt.cookieless_mode===Ns)throw new Error(D0+' cannot be used with cookieless_mode="always"')}initialize(){this.startIfEnabledOrStop()}get ws(){var e,t=!((e=this._instance.get_property(Sp))==null||!e.enabled),a=!this.Bt.disable_session_recording,o=this.Bt.disable_session_recording||this._instance.consent.isOptedOut();return ge&&t&&a&&!o}startIfEnabledOrStop(e){var t;if(!this.ws||(t=this.ys)==null||!t.isStarted){var a=!$e(Object.assign)&&!$e(Array.from);this.ws&&a?(this.Is(e),Si.info("starting")):(this.bs=K2,this.stopRecording())}}Is(e){var t,a,o;this.ws&&(this.bs!==cp&&this.bs!==nf&&(this.bs=Y2),at!=null&&(t=at.__PosthogExtensions__)!=null&&(t=t.rrweb)!=null&&t.record&&(a=at.__PosthogExtensions__)!=null&&a.initSessionRecording?this.Cs(e):(o=at.__PosthogExtensions__)==null||o.loadExternalDependency==null||o.loadExternalDependency(this._instance,this.Ss,(n=>{if(n)return Si.error("could not load recorder",n);this.Cs(e)})))}stopRecording(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.stop()}xs(){var e,t;(e=this._s)==null||e.call(this),this._s=void 0,(t=this.ys)==null||t.discard()}ks(){var e;(e=this.ni)==null||e.unregister(zE)}Ts(e,t){if(Pt(e))return null;var a,o=ir(e)?e:parseFloat(e);return typeof(a=o)!="number"||!Number.isFinite(a)||0>a||a>1?(Si.warn(t+" must be between 0 and 1. Ignoring invalid value:",e),null):o}As(e){if(this.ni){var t,a,o=this.ni,n=()=>{var r,i=e.sessionRecording===!1?void 0:e.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;Pt(u)&&this.ks();var m=i?.minimumDurationMilliseconds;o.register({[Sp]:Me({cache_timestamp:Date.now(),enabled:!!i},i,{networkPayloadCapture:Me({capturePerformance:e.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(),(t=this._s)==null||t.call(this),this._s=(a=this._instance.sessionManager)==null?void 0:a.onSessionId(n)}}onRemoteConfig(e){return"sessionRecording"in e?e.sessionRecording===!1?(this.As(e),void this.xs()):(this.As(e),void this.startIfEnabledOrStop()):(this.bs===cp&&(this.bs=nf,Si.warn("config refresh failed, recording will not start until page reload")),void this.startIfEnabledOrStop())}log(e,t){var a;t===void 0&&(t="log"),(a=this.ys)!=null&&a.log?this.ys.log(e,t):Si.warn("log called before recorder was ready")}get Ss(){var e,t,a=(e=this._instance)==null||(e=e.persistence)==null?void 0:e.get_property(Sp);return(a==null||(t=a.scriptConfig)==null?void 0:t.script)||"lazy-recorder"}Es(){var e,t=this._instance.get_property(Sp);if(!t)return!1;var a=(e=(typeof t=="object"?t:JSON.parse(t)).cache_timestamp)!==null&&e!==void 0?e:Date.now();return 36e5>=Date.now()-a}Cs(e){var t,a;if((t=at.__PosthogExtensions__)==null||!t.initSessionRecording)return Si.warn("Called on script loaded before session recording is available. This can be caused by adblockers."),void this._instance.register_for_session({[t4]:!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===nf||this.bs===cp?void 0:(this.bs=cp,Si.info("persisted remote config is stale, requesting fresh config before starting"),void new m4(this._instance).load());this.bs=Y2,this.ys.start(e)}onRRwebEmit(e){var t;(t=this.ys)==null||t.onRRwebEmit==null||t.onRRwebEmit(e)}overrideLinkedFlag(){var e,t;this.ys||(t=this.ni)==null||t.register({[Y3]:!0}),(e=this.ys)==null||e.overrideLinkedFlag()}overrideSampling(){var e,t;this.ys||(t=this.ni)==null||t.register({[K3]:!0}),(e=this.ys)==null||e.overrideSampling()}overrideTrigger(e){var t,a;this.ys||(a=this.ni)==null||a.register({[e==="url"?Q3:Z3]:!0}),(t=this.ys)==null||t.overrideTrigger(e)}get sdkDebugProperties(){var e;return((e=this.ys)==null?void 0:e.sdkDebugProperties)||{$recording_status:this.status}}tryAddCustomEvent(e,t){var a;return!((a=this.ys)==null||!a.tryAddCustomEvent(e,t))}}},pde={autocapture:class{constructor(e){this.Rs=!1,this.Ns=null,this.Ms=!1,this.instance=e,this.rageclicks=new V2(e.config.rageclick),this.Fs=null}initialize(){this.startIfEnabled()}get Bt(){var e,t,a=Ba(this.instance.config.autocapture)?this.instance.config.autocapture:{};return a.url_allowlist=(e=a.url_allowlist)==null?void 0:e.map((o=>new RegExp(o))),a.url_ignorelist=(t=a.url_ignorelist)==null?void 0:t.map((o=>new RegExp(o))),a}Os(){if(this.isBrowserSupported()){if(ge&&ze){var e=a=>{a=a||ge?.event;try{this.Ps(a)}catch(o){H2.error("Failed to capture event",o)}};if(Za(ze,"submit",e,{capture:!0}),Za(ze,"change",e,{capture:!0}),Za(ze,"click",e,{capture:!0}),this.Bt.capture_copied_text){var t=a=>{this.Ps(a=a||ge?.event,mT)};Za(ze,"copy",t,{capture:!0}),Za(ze,"cut",t,{capture:!0})}}}else H2.info("Disabling Automatic Event Collection because this browser is not supported")}startIfEnabled(){this.isEnabled&&!this.Rs&&(this.Os(),this.Rs=!0)}onRemoteConfig(e){e.elementsChainAsString&&(this.Ms=e.elementsChainAsString),this.instance.persistence&&this.instance.persistence.register({[t0]:!!e.autocapture_opt_out}),this.Ns=!!e.autocapture_opt_out,this.startIfEnabled()}setElementSelectors(e){this.Fs=e}getElementSelectors(e){var t,a=[];return(t=this.Fs)==null||t.forEach((o=>{var n=ze?.querySelectorAll(o);n?.forEach((r=>{e===r&&a.push(o)}))})),a}get isEnabled(){var e,t,a=(e=this.instance.persistence)==null?void 0:e.props[t0];if(Us(this.Ns)&&!Zr(a)&&!this.instance.Fr())return!1;var o=(t=this.Ns)!==null&&t!==void 0?t:!!a;return!!this.instance.config.autocapture&&!o}Ps(e,t){if(t===void 0&&(t="$autocapture"),this.isEnabled){var a,o=F2(e);E4(o)&&(o=o.parentNode||null),t==="$autocapture"&&e.type==="click"&&e instanceof MouseEvent&&this.instance.config.rageclick&&(a=this.rageclicks)!=null&&a.isRageClick(e.clientX,e.clientY,e.timeStamp||new Date().getTime())&&(function(h,f){if(!ge||A0(h))return!1;var v,b,w;if(Zr(f)?(v=!!f&&z2,b=void 0):(v=(w=f?.css_selector_ignorelist)!==null&&w!==void 0?w:z2,b=f?.content_ignorelist),v===!1)return!1;var{targetElementList:x}=q2(h,!1);return!(function(T,k){if(T===!1||$e(T))return!1;var C;if(T===!0)C=Yce;else{if(!Bt(T))return!1;if(T.length>10)return Ue.error("[PostHog] content_ignorelist array cannot exceed 10 items. Use css_selector_ignorelist for more complex matching."),!1;C=T.map((E=>E.toLowerCase()))}return k.some((E=>{var{safeText:_,ariaLabel:D}=E;return C.some((R=>_.includes(R)||D.includes(R)))}))})(b,x.map((T=>{var k;return{safeText:Xp(T).toLowerCase(),ariaLabel:((k=T.getAttribute("aria-label"))==null?void 0:k.toLowerCase().trim())||""}})))&&!j2(x,v)})(o,this.instance.config.rageclick)&&this.Ps(e,"$rageclick");var n=t===mT;if(o&&(function(h,f,v,b,w){var x,T,k,C;if(v===void 0&&(v=void 0),!ge||A0(h)||(x=v)!=null&&x.url_allowlist&&!B2(v.url_allowlist)||(T=v)!=null&&T.url_ignorelist&&B2(v.url_ignorelist))return!1;if((k=v)!=null&&k.dom_event_allowlist){var E=v.dom_event_allowlist;if(E&&!E.some((L=>f.type===L)))return!1}var{parentIsUsefulElement:_,targetElementList:D}=q2(h,b);if(!(function(L,U){var B=U?.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,v)||!j2(D,(C=v)==null?void 0:C.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(w||["submit"]).indexOf(f.type)>=0;case"input":case"select":case"textarea":return(w||["change","click"]).indexOf(f.type)>=0;default:return _?(w||["click"]).indexOf(f.type)>=0:(w||["click"]).indexOf(f.type)>=0&&(WE.indexOf(O)>-1||h.getAttribute("contenteditable")==="true")}})(o,e,this.Bt,n,n?["copy","cut"]:void 0)){var{props:r,explicitNoCapture:i}=ade(o,{e,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),t===mT){var d,u=P4(ge==null||(d=ge.getSelection())==null?void 0:d.toString()),m=e.type||"clipboard";if(!u)return!1;r.$selected_content=u,r.$copy_type=m}return this.instance.capture(t,r),!0}}}isBrowserSupported(){return Os(ze?.querySelectorAll)}},historyAutocapture:class{constructor(e){var t;this._instance=e,this.Ls=(ge==null||(t=ge.location)==null?void 0:t.pathname)||""}initialize(){this.startIfEnabled()}get isEnabled(){return this._instance.config.capture_pageview==="history_change"}startIfEnabled(){this.isEnabled&&(Ue.info("History API monitoring enabled, starting..."),this.monitorHistoryChanges())}stop(){this.Ds&&this.Ds(),this.Ds=void 0,Ue.info("History API monitoring stopped")}monitorHistoryChanges(){var e,t;if(ge&&ge.history){var a=this;(e=ge.history.pushState)!=null&&e.__posthog_wrapped__||G2(ge.history,"pushState",(o=>function(n,r,i){o.call(this,n,r,i),a.Bs("pushState")})),(t=ge.history.replaceState)!=null&&t.__posthog_wrapped__||G2(ge.history,"replaceState",(o=>function(n,r,i){o.call(this,n,r,i),a.Bs("replaceState")})),this.js()}}Bs(e){try{var t,a=ge==null||(t=ge.location)==null?void 0:t.pathname;if(!a)return;a!==this.Ls&&this.isEnabled&&this._instance.capture(ud,{navigation_type:e}),this.Ls=a}catch(o){Ue.error("Error capturing "+e+" pageview",o)}}js(){if(!this.Ds){var e=()=>{this.Bs("popstate")};Za(ge,"popstate",e),this.Ds=()=>{ge&&ge.removeEventListener("popstate",e)}}}},heatmaps:class{get Bt(){return this.instance.config}constructor(e){var t;this.$s=!1,this.Rs=!1,this.qs=null,this.instance=e,this.$s=!((t=this.instance.persistence)==null||!t.props[a0]),this.rageclicks=new V2(e.config.rageclick)}initialize(){this.startIfEnabled()}get flushIntervalMilliseconds(){var e=5e3;return Ba(this.Bt.capture_heatmaps)&&this.Bt.capture_heatmaps.flush_interval_milliseconds&&(e=this.Bt.capture_heatmaps.flush_interval_milliseconds),e}get isEnabled(){return Pt(this.Bt.capture_heatmaps)?Pt(this.Bt.enable_heatmaps)?this.$s:this.Bt.enable_heatmaps:this.Bt.capture_heatmaps!==!1}startIfEnabled(){if(this.isEnabled){if(this.Rs)return;nde.info("starting..."),this.Zs(),this.Ft()}else{var e;clearInterval((e=this.qs)!==null&&e!==void 0?e:void 0),this.Vs(),this.getAndClearBuffer()}}onRemoteConfig(e){if("heatmaps"in e){var t=!!e.heatmaps;this.instance.persistence&&this.instance.persistence.register({[a0]:t}),this.$s=t,this.startIfEnabled()}}getAndClearBuffer(){var e=this.T;return this.T=void 0,e}Hs(e){this.Tt(e.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,Tv,this.zs),this.Us=e=>this.Tt(e||ge?.event),Za(ze,"click",this.Us,{capture:!0}),this.Ys=e=>this.Gs(e||ge?.event),Za(ze,"mousemove",this.Ys,{capture:!0}),this.Ws=new v2(this.instance,vce,this.Hs.bind(this)),this.Ws.startIfEnabledOrStop(),this.Xs=this.Ft.bind(this),Za(ze,Sv,this.Xs),this.Rs=!0)}Vs(){var e;ge&&ze&&(this.zs&&ge.removeEventListener(Tv,this.zs),this.Us&&ze.removeEventListener("click",this.Us,{capture:!0}),this.Ys&&ze.removeEventListener("mousemove",this.Ys,{capture:!0}),this.Xs&&ze.removeEventListener(Sv,this.Xs),clearTimeout(this.Js),(e=this.Ws)==null||e.stop(),this.Rs=!1)}Ks(e,t){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&&Tb(u)&&!qi(u,"body");){if(u===d)return!1;if(Et(c,ge?.getComputedStyle(u).position))return!0;u=_4(u)}return!1})(F2(e),["fixed","sticky"],n);return{x:e.clientX+(r?0:o),y:e.clientY+(r?0:a),target_fixed:r,type:t}}Tt(e,t){var a;if(t===void 0&&(t="click"),!L2(e.target)&&Q2(e)){var o=this.Ks(e,t);(a=this.rageclicks)!=null&&a.isRageClick(e.clientX,e.clientY,new Date().getTime())&&this.Qs(Me({},o,{type:"rageclick"})),this.Qs(o)}}Gs(e){!L2(e.target)&&Q2(e)&&(clearTimeout(this.Js),this.Js=setTimeout((()=>{this.Qs(this.Ks(e,"mousemove"))}),500))}Qs(e){if(ge){var t=ge.location.href,a=this.Bt.custom_personal_data_properties,o=this.Bt.mask_personal_data_properties?[...Hd,...a||[]]:[],n=Zp(t,o,Jp);this.T=this.T||{},this.T[n]||(this.T[n]=[]),this.T[n].push(e)}}Yr(){this.T&&!vd(this.T)&&this.instance.capture("$$heatmap",{$heatmap_data:this.getAndClearBuffer()})}},deadClicksAutocapture:v2,webVitalsAutocapture:class{constructor(e){var t;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))wi.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)||(Pt(a?.name)||Pt(a?.value)?wi.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()):wi.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):wi.error("web vitals callbacks not loaded - not starting")}},this._instance=e,this.$s=!((t=this._instance.persistence)==null||!t.props[s0]),this.startIfEnabled()}get oo(){return this._instance.config.capture_performance}get allowedMetrics(){var e,t,a=Ba(this.oo)?(e=this.oo)==null?void 0:e.web_vitals_allowed_metrics:void 0;return Pt(a)?((t=this._instance.persistence)==null?void 0:t.props[l0])||["CLS","FCP","INP","LCP"]:a}get flushToCaptureTimeoutMs(){return(Ba(this.oo)?this.oo.web_vitals_delayed_flush_ms:void 0)||5e3}get useAttribution(){var e=Ba(this.oo)?this.oo.web_vitals_attribution:void 0;return e!=null&&e}get no(){var e=Ba(this.oo)&&ir(this.oo.__web_vitals_max_value)?this.oo.__web_vitals_max_value:W2;return e>0&&6e4>=e?W2:e}get isEnabled(){var e=Eo?.protocol;if(e!=="http:"&&e!=="https:")return wi.info("Web Vitals are disabled on non-http/https protocols"),!1;var t=Ba(this.oo)?this.oo.web_vitals:Zr(this.oo)?this.oo:void 0;return Zr(t)?t:this.$s}startIfEnabled(){this.isEnabled&&!this.Rs&&(wi.info("enabled, starting..."),this.ur(this.so))}onRemoteConfig(e){if("capturePerformance"in e){var t=Ba(e.capturePerformance)&&!!e.capturePerformance.web_vitals,a=Ba(e.capturePerformance)?e.capturePerformance.web_vitals_allowed_metrics:void 0;this._instance.persistence&&(this._instance.persistence.register({[s0]:t}),this._instance.persistence.register({[l0]:a})),this.$s=t,this.startIfEnabled()}}ur(e){var t,a;(t=at.__PosthogExtensions__)!=null&&t.postHogWebVitalsCallbacks?e():(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,this.useAttribution?"web-vitals-with-attribution":"web-vitals",(o=>{o?wi.error("failed to load script",o):e()}))}io(){var e=ge?ge.location.href:void 0;if(e){var t=this._instance.config.custom_personal_data_properties,a=this._instance.config.mask_personal_data_properties?[...Hd,...t||[]]:[];return Zp(e,a,Jp)}wi.error("Could not determine current URL")}}},mde={exceptionObserver:class{constructor(e){var t,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){lp.error("failed to start",d),this.ho()}}},this._instance=e,this.co=!((t=this._instance.persistence)==null||!t.props[o0]),this.do=new Cle({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:lp}),this.Bt=this.vo(),this.startIfEnabledOrStop()}vo(){var e=this._instance.config.capture_exceptions,t={capture_unhandled_errors:!1,capture_unhandled_rejections:!1,capture_console_errors:!1};return Ba(e)?t=Me({},t,e):($e(e)?this.co:e)&&(t=Me({},t,{capture_unhandled_errors:!0,capture_unhandled_rejections:!0})),t}get isEnabled(){return this.Bt.capture_console_errors||this.Bt.capture_unhandled_errors||this.Bt.capture_unhandled_rejections}startIfEnabledOrStop(){this.isEnabled?(lp.info("enabled"),this.ho(),this.ur(this.so)):this.ho()}ur(e){var t,a;(t=at.__PosthogExtensions__)!=null&&t.errorWrappingFunctions&&e(),(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"exception-autocapture",(o=>{if(o)return lp.error("failed to load script",o);e()}))}ho(){var e,t,a;(e=this.ao)==null||e.call(this),this.ao=void 0,(t=this.lo)==null||t.call(this),this.lo=void 0,(a=this.uo)==null||a.call(this),this.uo=void 0}onRemoteConfig(e){"autocaptureExceptions"in e&&(this.co=!!e.autocaptureExceptions||!1,this._instance.persistence&&this._instance.persistence.register({[o0]:this.co}),this.Bt=this.vo(),this.startIfEnabledOrStop())}onConfigChange(){this.Bt=this.vo()}captureException(e){var t,a,o,n=(t=e==null||(a=e.$exception_list)==null||(a=a[0])==null?void 0:a.type)!==null&&t!==void 0?t:"Exception";this.do.consumeRateLimit(n)?lp.info("Skipping exception capture because of client rate limiting.",{exception:n}):(o=this._instance.exceptions)==null||o.sendExceptionEvent(e)}},exceptions:class{constructor(e){var t,a;this.fo=[],this.po=new jle([new Wle,new ace,new Yle,new Kle,new ece,new Xle,new Zle,new tce],(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(`
189
- `),h=d;m.length>h;h++){var f=m[h];if(1024>=f.length){var v=m2.test(f)?f.replace(m2,"$1"):f;if(!v.match(/\S*Error: /)){for(var b of r){var w=b(v,o);if(w){u.push(w);break}}if(u.length>=50)break}}}return(function(x){if(!x.length)return[];var T=Array.from(x);return T.reverse(),T.slice(0,50).map((k=>{return Me({},k,{filename:k.filename||(C=T,C[C.length-1]||{}).filename,function:k.function||Vd});var C}))})(u)}})("web:javascript",$le,Gle)),this._instance=e,this.fo=(t=(a=this._instance.persistence)==null?void 0:a.get_property(n0))!==null&&t!==void 0?t:[],this.mo=gv(this.yo()),this.bo=new nce(this.mo)}onConfigChange(){this.mo=gv(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,a,o;if("errorTracking"in e){var n=(t=(a=e.errorTracking)==null?void 0:a.suppressionRules)!==null&&t!==void 0?t:[],r=(o=e.errorTracking)==null?void 0:o.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[n0]:this.fo,[r0]:r})}}get _o(){var e,t=!!this._instance.get_property(r0),a=this._instance.config.error_tracking.captureExtensionExceptions;return(e=a??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!Ca(e)||e.trim().length===0)return void Rs.warn("Ignoring exception step because message must be a non-empty string");var a=this.wo(t),{sanitizedProperties:o,droppedKeys:n}=(function(r){if(!r)return{sanitizedProperties:{},droppedKeys:[]};var i=[];return{sanitizedProperties:Object.keys(r).reduce(((c,d)=>oce.has(d)?(i.push(d),c):(c[d]=r[d],c)),{}),droppedKeys:i}})(a);n.length>0&&Rs.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Me({[mv]:e,[hv]:new Date().toISOString()},o))}catch(r){Rs.error("Failed to add exception step. Ignoring breadcrumb.",r)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void Rs.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void Rs.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void Rs.info("Skipping exception capture because it was thrown by the PostHog SDK")}var a=this.mo.enabled&&Pt(e.$exception_steps)?this.To(e):e;try{var o=this._instance.capture("$exception",a,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return o&&this.bo.clear(),o}catch(n){return Rs.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void Rs.error("Failed to process exception event. Ignoring this exception.",n)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Me({},e,{$exception_steps:t})}catch(a){return Rs.error("Failed to read buffered exception steps. Capturing exception without steps.",a),e}}So(e){this.mo.enabled&&this.bo.add({[mv]:e,[hv]:new Date().toISOString()})}wo(e){return Ba(e)?Me({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((a,o)=>{var{type:n,value:r}=o;return Ca(n)&&n.length>0&&a.$exception_types.push(n),Ca(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=S4[n.operator],c=Bt(n.value)?n.value:[n.value],d=(r=t[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(e){return e.flatMap((t=>{var a,o;return(a=(o=t.stacktrace)==null?void 0:o.frames)!==null&&a!==void 0?a:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,a,o,n,r=(t=(a=e[0].stacktrace)==null?void 0:a.frames)!==null&&t!==void 0?t:[],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(e){return!Pt(e)&&Bt(e)}}},hde=Me({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[i0]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(i0)||this.ur((()=>this.Ro()))}ur(e){var t,a;(t=at.__PosthogExtensions__)!=null&&t.generateProductTours?e():(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"product-tours",(o=>{o?Z2.error("Could not load product tours script",o):e()}))}Ro(){var e;!this.Ao&&(e=at.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=at.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Bt(this.Eo)||t){var a=this.ni;if(a){var o=a.props[Pf];if(Bt(o)&&!t)return this.Eo=o,void e(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 Z2.error(i),void e([],{isLoaded:!1,error:i})}var c=Bt(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,a&&a.register({[Pf]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){Pt(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(Pf)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},xb),gde={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var a=this.globalsForEvent(t);this.No.push(a),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=at._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,a,o,n,r,i,c;if(!e)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:v,$set:b}=e;return{event:Me({},T3(e,rde),{properties:Me({},e.properties,b?{$set:Me({},(t=(a=e.properties)==null?void 0:a.$set)!==null&&t!==void 0?t:{},b)}:{},v?{$set_once:Me({},(o=(n=e.properties)==null?void 0:n.$set_once)!==null&&o!==void 0?o:{},v)}:{}),elements_chain:(r=(i=e.properties)==null?void 0:i.$elements_chain)!==null&&r!==void 0?r:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(e){var t=this.apps[e.id],a=()=>{var i;!t.errored&&this.No.length&&(Ti.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((i=this.Fo)==null||i.call(this))},o=!1,n=i=>{t.errored=!i,t.loaded=!0,Ti.info("Site app with id "+e.id+" "+(i?"loaded":"errored")),o&&a()};try{var{processEvent:r}=e.init({posthog:this._instance,callback(i){n(i)}});r&&(t.processEvent=r),o=!0}catch(i){Ti.error(J2+e.id,i),n(!1)}if(o&&t.loaded)try{a()}catch(i){Ti.error("Error while processing buffered events PostHog app with config id "+e.id,i),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var a of e)this.setupSiteApp(a)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var a of Object.values(this.apps))try{a.processEvent==null||a.processEvent(t)}catch(o){Ti.error("Error while processing event "+e.event+" for site app "+a.id,o)}}}onRemoteConfig(e){var t,a,o,n=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void Ti.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((a=this.Fo)==null||a.call(this),(o=e.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 Ti.error(J2+d,m)}))};for(var{id:i,url:c}of e.siteApps)r(i)}else Ti.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},fde={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,a,o=this.Bo()||[];$e(this.Lo)&&((t=at.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._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=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,a;(t=at.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"tracing-headers",(o=>{if(o)return ode.error("failed to load script",o);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},vde=Me({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(Pt(t))return na.warn("Flags not loaded yet. Not loading surveys.");var a=Bt(t);this.jo=a?t.length>0:t,na.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var a=localStorage.key(t);(a!=null&&a.startsWith(P0)||a!=null&&a.startsWith("inProgressSurvey_"))&&e.push(a)}e.forEach((o=>localStorage.removeItem(o)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)na.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)na.info(X2);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())na.info("Not loading surveys in cookieless mode without consent.");else{var e=at?.__PosthogExtensions__;if(e){if(!$e(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var a=e.generateSurveys;if(a)return void this.Vo(a,t);var o=e.loadExternalDependency;if(!o)return void this.Ho(qE);o(this._instance,"surveys",(n=>{n||!e.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(e.generateSurveys,t)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else na.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new lde(this._instance),na.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){na.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return na.info(X2),e([]);var a,o=this._instance.get_property(p0);if(o&&!t)return e(o,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:r,context:i}=n;return e(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;na.error(c);var d={isLoaded:!1,error:c};return e([],d),void(a==null||a({surveys:[],context:d}))}var u,m=n.json.surveys||[],h=m.filter((v=>(function(b){return!(!b.start_date||b.end_date)})(v)&&((function(b){var w;return!((w=b.conditions)==null||(w=w.events)==null||(w=w.values)==null||!w.length)})(v)||(function(b){var w;return!((w=b.conditions)==null||(w=w.actions)==null||(w=w.values)==null||!w.length)})(v))));h.length>0&&((u=this._surveyEventReceiver)==null||u.register(h)),(r=this._instance.persistence)==null||r.register({[p0]:m});var f={isLoaded:!0};e(m,f),a?.({surveys:m,context:f})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(a){na.error("Error in survey callback",a)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Pt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);na.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((a=>{var o;t=(o=a.find((n=>n.id===e)))!==null&&o!==void 0?o:null})),t}Yo(e){if(Pt(this._surveyManager))return{eligible:!1,reason:gT};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Pt(this._surveyManager))return na.warn("init was not called"),{visible:!1,disabledReason:gT};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Pt(this._surveyManager)?(na.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:gT})):new Promise((a=>{this.getSurveys((o=>{var n,r=(n=o.find((c=>c.id===e)))!==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"})}),t)}))}renderSurvey(e,t,a){var o;if(Pt(this._surveyManager))na.warn("init was not called");else{var n=typeof e=="string"?this.Uo(e):e;if(n!=null&&n.id)if(Uce.includes(n.type)){var r=ze?.querySelector(t);if(r)return(o=n.appearance)!=null&&o.surveyPopupDelaySeconds?(na.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var i,c;na.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),na.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,r,a);na.warn("Survey element not found")}else na.warn("Surveys of type "+n.type+" cannot be rendered in the app");else na.warn("Survey not found")}}displaySurvey(e,t){var a;if(Pt(this._surveyManager))na.warn("init was not called");else{var o=this.Uo(e);if(o){var n=o;if((a=o.appearance)!=null&&a.surveyPopupDelaySeconds&&t.ignoreDelay&&(n=Me({},o,{appearance:Me({},o.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==S0.Popover&&t.initialResponses&&na.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var r=this.canRenderSurvey(o);if(!r.visible)return void na.warn("Survey is not eligible to be displayed: ",r.disabledReason)}t.displayType!==S0.Inline?this._surveyManager.handlePopoverSurvey(n,t):this.renderSurvey(n,t.selector,t.properties)}else na.warn("Survey not found")}}cancelPendingSurvey(e){Pt(this._surveyManager)?na.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},xb),bde={toolbar:class{constructor(e){this.instance=e}Go(e){at.ph_toolbar_state=e}Wo(){var e;return(e=at.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,a){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),a===void 0&&(a=void 0),a4(this.instance.config)||!ge||!ze)return!1;e=e??ge.location,a=a??ge.history;try{if(!t){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}t=ge?.localStorage}var o,n=cde||Cv(e.hash,"__posthog")||Cv(e.hash,"state"),r=n?g2((()=>JSON.parse(atob(decodeURIComponent(n)))))||g2((()=>JSON.parse(decodeURIComponent(n)))):null;return r&&r.action==="ph_authorize"?((o=r).source="url",o&&Object.keys(o).length>0&&(r.desiredHash?e.hash=r.desiredHash:a?a.replaceState(a.state,"",e.pathname+e.search):e.hash="")):((o=JSON.parse(t.getItem(eN)||"{}")).source="localstorage",delete o.userIntent),!(!o.token||this.instance.config.token!==o.token||(this.loadToolbar(o),0))}catch{return!1}}Xo(e){var t=at.ph_load_toolbar||at.ph_load_editor;!Pt(t)&&Os(t)?t(e,this.instance):tN.warn("No toolbar load function found")}loadToolbar(e){var t=!(ze==null||!ze.getElementById(J3));if(!ge||t)return!1;var a=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,o=Me({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},a?{instrument:!1}:{});if(ge.localStorage.setItem(eN,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 tN.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(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,a){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),a===void 0&&(a=void 0),this.maybeLoadToolbar(e,t,a)}}},yde=Me({experiments:Bo},xb),wde={conversations:class{constructor(e){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Pt(t)||(Zr(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||a4(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=at?.__PosthogExtensions__;if(e&&!$e(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var a=e.loadExternalDependency;if(!a)return void this.ra(qE);a(this._instance,"conversations",(o=>{o||!e.initConversations?this.ra("Could not load conversations script",o):this.ta(e.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(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Zn.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Zn.error("Cannot complete initialization: remote config is null")}ra(e,t){Zn.error(e,t),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&&!Us(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,a){var o=this;return tr((function*(){return o._conversationsManager?o._conversationsManager.sendMessage(e,t,a):(Zn.warn(Pl),null)}))()}getMessages(e,t){var a=this;return tr((function*(){return a._conversationsManager?a._conversationsManager.getMessages(e,t):(Zn.warn(Pl),null)}))()}markAsRead(e){var t=this;return tr((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Zn.warn(Pl),null)}))()}getTickets(e){var t=this;return tr((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Zn.warn(Pl),null)}))()}requestRestoreLink(e){var t=this;return tr((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Zn.warn(Pl),null)}))()}restoreFromToken(e){var t=this;return tr((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Zn.warn(Pl),null)}))()}restoreFromUrlToken(){var e=this;return tr((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Zn.warn(Pl),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},Sde={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=Ta("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,a=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Pt(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 e=at?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(a=>{var o;a||(o=e.logs)==null||!o.initializeLogs?this.Gt.error("Could not load logs script",a):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(qE)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,a,o,n,r,i;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(a=this._instance.config.logs)==null?void 0:a.flushIntervalMs)!==null&&t!==void 0?t: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 v=h.level||"info",{text:b,number:w}=U3[v]||Ble,x=String(Date.now())+"000000",T={};f.distinctId&&(T.posthogDistinctId=f.distinctId),f.sessionId&&(T.sessionId=f.sessionId),f.currentUrl&&(T["url.full"]=f.currentUrl),f.screenName&&(T["screen.name"]=f.screenName),f.appState&&(T["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(T.feature_flags=f.activeFeatureFlags);var k=Me({},T,h.attributes||{}),C={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:w,severityText:b,body:{stringValue:h.body},attributes:p2(k)};return h.trace_id&&(C.traceId=h.trace_id),h.span_id&&(C.spanId=h.span_id),$e(h.trace_flags)||(C.flags=h.trace_flags),C})(e,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:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=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:p2(c)},scopeLogs:[{scope:{name:d,version:u},logRecords:i}]}]}})(t.map((i=>i.record)),o,Jo.LIB_NAME,Jo.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:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:a}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=a}if(at!=null&&(e=at.location)!=null&&e.href&&(t.currentUrl=at.location.href),this._instance.featureFlags){var o=this._instance.featureFlags.getFlags();o&&o.length>0&&(t.activeFeatureFlags=o)}return t}}},Tde=Me({},xb,ude,pde,mde,hde,gde,vde,fde,bde,yde,wde,Sde);ar.__defaultExtensionClasses=Me({},Tde);var rN,$s=(rN=Rp[pd]=new ar,(function(){function e(){e.done||(e.done=!0,k4=!1,va(Rp,(function(t){t._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?e():Za(ze,"DOMContentLoaded",e,{capture:!1}):ge&&Ue.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),rN);let Fs=!1,O0=null,sN=!1;const KE="studio:lp-distinct-id",N4="mesh:lp-distinct-id",vT="/api/_reports/link-token/",xde=1440*60*1e3;function M4(e){const t="https://analytics.invalid",a=/^[a-z][a-z\d+.-]*:\/\//i.test(e),o=e.startsWith("//");try{const n=new URL(e,t);let r=!1;for(const i of["key","d"])n.searchParams.has(i)&&(n.searchParams.delete(i),r=!0);return n.pathname.startsWith(vT)&&n.pathname!==vT&&(n.pathname=`${vT}redacted`,r=!0),r?a?n.toString():o?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:e}catch{return e}}function bT(e){return Object.fromEntries(Object.entries(e).map(([t,a])=>[t,typeof a=="string"?M4(a):a]))}const kde=e=>e?(e.properties=bT(e.properties),e.$set&&(e.$set=bT(e.$set)),e.$set_once&&(e.$set_once=bT(e.$set_once)),e):null;function I4(){try{const e=window.localStorage.getItem(KE)??window.localStorage.getItem(N4);if(!e)return;const{id:t,ts:a}=JSON.parse(e);return typeof t!="string"||!t||typeof a!="number"?void 0:Date.now()-a<=xde?t:void 0}catch{return}}function Ede(){try{window.localStorage.removeItem(KE),window.localStorage.removeItem(N4)}catch{}}function Cde(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(KE,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const a=t??I4();return a?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:a:void 0}catch{return}}function Pde(e){const t=I4();if(t&&(Ede(),t!==e))try{$s.alias(t)}catch{}}function _de(e,t){if(Fs||typeof window>"u")return;const a=Cde();$s.init(e,{api_host:t,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:kde,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:M4(o.name)}:{}})},person_profiles:"identified_only"}),Fs=!0}function Ade(e,t){Fs&&($s.identify(e,t),Pde(e))}function Rde(){Fs&&($s.reset(),O0=null)}function L4(e,t){Fs&&$s.capture(e,t)}function f0e(){return Fs}function v0e(){if(!Fs||sN||typeof performance>"u")return;sN=!0;const e=performance.getEntriesByType("navigation")[0],t=a=>{const o=performance.getEntriesByName(a,"measure")[0];return o?Math.round(o.duration):void 0};L4("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("studio:config-fetch"),active_org_fetch_ms:t("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:BJ(),org_cache_restored:FJ()})}function b0e(e,t){Fs&&e!==O0&&($s.group("organization",e,t),O0=e)}function B4(e,t){if(Fs)try{$s.captureException(e,t)}catch{}}const Dde=["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 Ode(e){const t=ye.c(3),{children:a}=e;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=y.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:Dde}}),t[0]=o):o=t[0];let n;return t[1]!==a?(n=y.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[o,y.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:a})]}),t[1]=a,t[2]=n):n=t[2],n}function F4(e){const t=ye.c(20),{orgName:a}=e,o=$o(),n=Nde;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:y.jsx(e3,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=r):r=t[0];let i;t[1]!==o?(i=o("common.archivedOrgScreen.orgUnavailable"),t[1]=o,t[2]=i):i=t[2];let c;t[3]!==i?(c=y.jsx("h3",{className:"text-lg font-medium",children:i}),t[3]=i,t[4]=c):c=t[4];let d;t[5]!==a||t[6]!==o?(d=a?o("common.archivedOrgScreen.deletedWithName",{orgName:a}):o("common.archivedOrgScreen.deletedGeneric"),t[5]=a,t[6]=o,t[7]=d):d=t[7];let u;t[8]!==d?(u=y.jsx("p",{className:"text-sm text-muted-foreground",children:d}),t[8]=d,t[9]=u):u=t[9];let m;t[10]!==c||t[11]!==u?(m=y.jsxs("div",{className:"space-y-2",children:[c,u]}),t[10]=c,t[11]=u,t[12]=m):m=t[12];let h;t[13]!==o?(h=o("common.goHome"),t[13]=o,t[14]=h):h=t[14];let f;t[15]!==h?(f=y.jsx(yn,{onClick:n,children:h}),t[15]=h,t[16]=f):f=t[16];let v;return t[17]!==m||t[18]!==f?(v=y.jsxs(Ode,{children:[r,m,f]}),t[17]=m,t[18]=f,t[19]=v):v=t[19],v}function Nde(){window.location.href="/"}function Mde(){const e=ye.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:a}=im(t);let o;return e[1]!==a?(o=y.jsx(yn,{variant:"outline",size:"sm",asChild:!0,children:y.jsx(Ql,{to:"/$org/settings/profile",params:{org:a},children:"Go to your profile"})}),e[1]=a,e[2]=o):o=e[2],o}function Ide(e){const t=ye.c(13),{area:a,description:o,action:n}=e,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;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=y.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:y.jsx(c3,{size:28})}),t[0]=c):c=t[0];let d;t[1]!==r?(d=y.jsx("h3",{className:"text-lg font-medium",children:r}),t[1]=r,t[2]=d):d=t[2];let u;t[3]!==i?(u=y.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:i}),t[3]=i,t[4]=u):u=t[4];let m;t[5]!==d||t[6]!==u?(m=y.jsxs("div",{className:"space-y-1",children:[d,u]}),t[5]=d,t[6]=u,t[7]=m):m=t[7];let h;t[8]!==n?(h=n??y.jsx(Mde,{}),t[8]=n,t[9]=h):h=t[9];let f;return t[10]!==m||t[11]!==h?(f=y.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]}),t[10]=m,t[11]=h,t[12]=f):f=t[12],f}const iN="__studio_chunk_reload_ts";function j4(e){return e?.message===Tee}function Lde(e){return!!e?.message?.includes("Access denied")}function lN(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class Bde extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,a){console.error("Uncaught error:",t,a),B4(t,{boundary:"default",error_name:t.name,error_message:t.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:t,t:a}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:j4(this.state.error)?y.jsx(F4,{}):Lde(this.state.error)?y.jsx(Ide,{}):y.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:y.jsx(DE,{className:"h-6 w-6 text-destructive"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:a("common.errorBoundary.somethingWentWrong")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||a("common.errorBoundary.unexpectedError")})]}),y.jsx(yn,{variant:"outline",onClick:this.resetError,children:a("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Fde(e){const t=ye.c(3),a=$o();let o;return t[0]!==e||t[1]!==a?(o=y.jsx(Bde,{...e,t:a}),t[0]=e,t[1]=a,t[2]=o):o=t[2],o}class jde extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,a){console.error("Uncaught error:",t,a);const o=lN(t);if(B4(t,{boundary:"chunk_root",is_chunk_load_error:o,error_name:t.name,error_message:t.message,component_stack:a.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!o)return;const n=sessionStorage.getItem(iN),r=Date.now();(!n||r-Number(n)>1e4)&&(sessionStorage.setItem(iN,String(r)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&lN(this.state.error)?y.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:y.jsx(d3,{className:"h-6 w-6 text-primary"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),y.jsx(yn,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?j4(this.state.error)?y.jsx(F4,{}):y.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:y.jsx(DE,{className:"h-6 w-6 text-destructive"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),y.jsx(yn,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function zde(e){const t=ye.c(3),a=$o();let o;return t[0]!==e||t[1]!==a?(o=y.jsx(jde,{...e,t:a}),t[0]=e,t[1]=a,t[2]=o):o=t[2],o}const qde=Xl("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 Ude(e){const t=ye.c(14);let a,o,n,r,i;t[0]!==e?({className:a,size:r,interactive:o,asChild:i,...n}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=n,t[4]=r,t[5]=i):(a=t[1],o=t[2],n=t[3],r=t[4],i=t[5]);const d=(i===void 0?!1:i)?db:"div";let u;t[6]!==a||t[7]!==o||t[8]!==r?(u=Je(qde({size:r,interactive:o}),a),t[6]=a,t[7]=o,t[8]=r,t[9]=u):u=t[9];let m;return t[10]!==d||t[11]!==n||t[12]!==u?(m=y.jsx(d,{"data-slot":"card",className:u,...n}),t[10]=d,t[11]=n,t[12]=u,t[13]=m):m=t[13],m}function y0e(e){const t=ye.c(11),{title:a,description:o,docsHref:n,actions:r,className:i,children:c}=e;let d;t[0]!==i?(d=Je("flex flex-col gap-3",i),t[0]=i,t[1]=d):d=t[1];let u;t[2]!==r||t[3]!==o||t[4]!==n||t[5]!==a?(u=(a||o||n||r)&&y.jsxs("div",{className:"flex items-center justify-between gap-3 px-4",children:[y.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[a&&y.jsx("h2",{className:"text-base font-medium leading-tight",children:a}),(o||n)&&y.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[o,n&&y.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",y.jsx(t3,{size:12})]})]})]}),r&&y.jsx("div",{className:"shrink-0",children:r})]}),t[2]=r,t[3]=o,t[4]=n,t[5]=a,t[6]=u):u=t[6];let m;return t[7]!==c||t[8]!==d||t[9]!==u?(m=y.jsxs("section",{className:d,children:[u,c]}),t[7]=c,t[8]=d,t[9]=u,t[10]=m):m=t[10],m}function w0e(e){const t=ye.c(11),{className:a,children:o}=e;let n,r,i;if(t[0]!==o||t[1]!==a){const d=A.Children.toArray(o).filter(A.isValidElement);n=Ude,t[5]!==a?(r=Je("p-0 gap-0 overflow-hidden",a),t[5]=a,t[6]=r):r=t[6],i=d.map($de),t[0]=o,t[1]=a,t[2]=n,t[3]=r,t[4]=i}else n=t[2],r=t[3],i=t[4];let c;return t[7]!==n||t[8]!==r||t[9]!==i?(c=y.jsx(n,{className:r,children:i}),t[7]=n,t[8]=r,t[9]=i,t[10]=c):c=t[10],c}function $de(e,t){return y.jsxs("div",{children:[t>0&&y.jsx("div",{className:"h-px bg-border mx-5"}),e]},t)}function S0e(e){const t=ye.c(27),{icon:a,title:o,description:n,action:r,onClick:i,className:c,children:d}=e,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;t[0]!==c||t[1]!==u||t[2]!==m?(h=Je(u,m,c),t[0]=c,t[1]=u,t[2]=m,t[3]=h):h=t[3];const f=i?"button":void 0,v=i?0:void 0;let b;t[4]!==i?(b=i?_=>{_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),i())}:void 0,t[4]=i,t[5]=b):b=t[5];let w;t[6]!==a?(w=a&&y.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:a}),t[6]=a,t[7]=w):w=t[7];let x;t[8]!==o?(x=y.jsx("div",{className:"text-sm font-medium",children:o}),t[8]=o,t[9]=x):x=t[9];let T;t[10]!==n?(T=n&&y.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),t[10]=n,t[11]=T):T=t[11];let k;t[12]!==d||t[13]!==x||t[14]!==T?(k=y.jsxs("div",{className:"flex-1 min-w-0",children:[x,T,d]}),t[12]=d,t[13]=x,t[14]=T,t[15]=k):k=t[15];let C;t[16]!==r?(C=r&&y.jsx("div",{className:"shrink-0",onClick:Vde,children:r}),t[16]=r,t[17]=C):C=t[17];let E;return t[18]!==i||t[19]!==k||t[20]!==C||t[21]!==h||t[22]!==f||t[23]!==v||t[24]!==b||t[25]!==w?(E=y.jsxs("div",{className:h,onClick:i,role:f,tabIndex:v,onKeyDown:b,children:[w,k,C]}),t[18]=i,t[19]=k,t[20]=C,t[21]=h,t[22]=f,t[23]=v,t[24]=b,t[25]=w,t[26]=E):E=t[26],E}function Vde(e){return e.stopPropagation()}function T0e(e){const t=ye.c(5),{className:a,children:o}=e;let n;t[0]!==a?(n=Je("px-4 py-4",a),t[0]=a,t[1]=n):n=t[1];let r;return t[2]!==o||t[3]!==n?(r=y.jsx("div",{className:n,children:o}),t[2]=o,t[3]=n,t[4]=r):r=t[4],r}function x0e(e){const t=ye.c(5),{children:a,className:o}=e;let n;t[0]!==o?(n=Je("flex items-center justify-end gap-2 px-4 py-4",o),t[0]=o,t[1]=n):n=t[1];let r;return t[2]!==a||t[3]!==n?(r=y.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=r):r=t[4],r}function Hde(e){const t=ye.c(5),{className:a,children:o}=e;let n;t[0]!==a?(n=Je("flex flex-col gap-10",a),t[0]=a,t[1]=n):n=t[1];let r;return t[2]!==o||t[3]!==n?(r=y.jsx("div",{className:n,children:o}),t[2]=o,t[3]=n,t[4]=r):r=t[4],r}const kb={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:h3,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:p3,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:n3,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:u3,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:i3,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:s3,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function k0e(e){const t=kb[e];return[...t.tabs.map(a=>a.to),...t.ownedRoutes??[]]}function E0e(e){return kb[e].tabs.length>0}const Gde=new Set(["owner","admin"]);function z4(){const e=ye.c(11),{org:t,locator:a}=Zi();let o;e[0]!==a?(o=lo.myCapabilities(a),e[0]=a,e[1]=o):o=e[1];let n;e[2]!==t?(n=async()=>{const m=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(t.slug)}`,{credentials:"include"});if(!m.ok)throw new Error(`my-capabilities request failed: ${m.status}`);return await m.json()},e[2]=t,e[3]=n):n=e[3];let r;e[4]!==o||e[5]!==n?(r={queryKey:o,queryFn:n,staleTime:3e4,retry:2},e[4]=o,e[5]=n,e[6]=r):r=e[6];const{data:i,isLoading:c,isError:d}=Ki(r);let u;return e[7]!==i||e[8]!==d||e[9]!==c?(u={data:i,loading:c,error:d},e[7]=i,e[8]=d,e[9]=c,e[10]=u):u=e[10],u}function C0e(e){const t=ye.c(8),{data:a,loading:o,error:n}=z4();if(o){let u;return t[0]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!0,error:!1,reason:"loading"},t[0]=u):u=t[0],u}if(n){let u;return t[1]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!0,reason:"error"},t[1]=u):u=t[1],u}const r=a?.role??null;if(!r){let u;return t[2]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!1,reason:"denied"},t[2]=u):u=t[2],u}if(r==="owner"){let u;return t[3]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"owner"},t[3]=u):u=t[3],u}if(r==="admin"){let u;return t[4]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"admin"},t[4]=u):u=t[4],u}const i=a?.capabilities?.[e]===!0,c=i?"role":"denied";let d;return t[5]!==i||t[6]!==c?(d={granted:i,loading:!1,error:!1,reason:c},t[5]=i,t[6]=c,t[7]=d):d=t[7],d}function q4(){const e=ye.c(10),{data:t,loading:a,error:o}=z4(),n=t?.role??void 0;let r;e[0]!==n?(r=n?Gde.has(n):!1,e[0]=n,e[1]=r):r=e[1];const i=r;let c;e[2]!==t?.capabilities?(c=t?.capabilities??{},e[2]=t?.capabilities,e[3]=c):c=e[3];const d=c;let u;return e[4]!==o||e[5]!==i||e[6]!==a||e[7]!==n||e[8]!==d?(u={capabilities:d,loading:a,error:o,isPrivileged:i,roleSlug:n},e[4]=o,e[5]=i,e[6]=a,e[7]=n,e[8]=d,e[9]=u):u=e[9],u}function Wde(){const e=ye.c(13),{org:t}=Zi(),a=Jk(),{capabilities:o,isPrivileged:n}=q4(),r=n||!!o["members:manage"];let i;e[0]!==t.id?(i=lo.infraBillingSites(t.id),e[0]=t.id,e[1]=i):i=e[1];const c=!!t.id&&r;let d;e[2]!==a?(d=()=>a.call("INFRA_BILLING_SITES_LIST",{}),e[2]=a,e[3]=d):d=e[3];let u;e[4]!==i||e[5]!==c||e[6]!==d?(u={queryKey:i,staleTime:3e5,enabled:c,queryFn:d},e[4]=i,e[5]=c,e[6]=d,e[7]=u):u=e[7];const{data:m,isLoading:h}=Ki(u);let f;e[8]!==m?.sites?(f=m?.sites.map(Kde)??[],e[8]=m?.sites,e[9]=f):f=e[9];let v;return e[10]!==h||e[11]!==f?(v={sites:f,isLoading:h},e[10]=h,e[11]=f,e[12]=v):v=e[12],v}function Kde(e){return e.slug}function P0e(){const e=ye.c(7),t=Jk(),a=$o();let o;e[0]!==t?(o=i=>t.call("INFRA_BILLING_PORTAL",{siteSlugs:i}),e[0]=t,e[1]=o):o=e[1];let n;e[2]!==a?(n=i=>Fd.error(a("settings.infraBilling.portalError",{message:i.message})),e[2]=a,e[3]=n):n=e[3];let r;return e[4]!==o||e[5]!==n?(r={mutationFn:o,onSuccess:Yde,onError:n},e[4]=o,e[5]=n,e[6]=r):r=e[6],yf(r)}function Yde(e){const{url:t}=e;return window.open(t,"_blank","noopener,noreferrer")}function _0e(e,t){const a=ye.c(14),{org:o}=Zi(),n=Jk();let r,i,c;a[0]!==o.id||a[1]!==t||a[2]!==e?(r=[...e].sort(),c=Ki,i=lo.infraBilling(o.id,r.join(","),t),a[0]=o.id,a[1]=t,a[2]=e,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]!==t||a[7]!==r||a[8]!==n?(u=()=>n.call("INFRA_BILLING_GET",{siteSlugs:r,period:t}),a[6]=t,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 Qde(){const e=ye.c(7),{capabilities:t,isPrivileged:a,loading:o,error:n}=q4(),{sites:r,isLoading:i}=Wde(),c=r.length>0;let d;if(e[0]!==t||e[1]!==n||e[2]!==a||e[3]!==o||e[4]!==c||e[5]!==i){const u=m=>m.requiresOwnedSites&&!c&&!i?!1:o||n?!0:m.privilegedOnly?a:m.requires?a||t[m.requires]:!0;d=Object.fromEntries(Object.values(kb).map(m=>[m.key,m.tabs.filter(u)])),e[0]=t,e[1]=n,e[2]=a,e[3]=o,e[4]=c,e[5]=i,e[6]=d}else d=e[6];return d}function Zde(e){const t=ye.c(16),{group:a}=e,o=$o();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},t[0]=n):n=t[0];const{org:r}=im(n);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:Jde},t[1]=i):i=t[1];const c=Tk(i),d=Qde()[a],{titleKey:u}=kb[a];let m;t[2]!==o||t[3]!==u?(m=o(u),t[2]=o,t[3]=u,t[4]=m):m=t[4];let h;t[5]!==m?(h=y.jsx(Cd.Title,{children:m}),t[5]=m,t[6]=h):h=t[6];let f;t[7]!==a||t[8]!==r||t[9]!==c||t[10]!==o||t[11]!==d?(f=d.length>1&&y.jsx(mn.Toolbar.Left.Portal,{children:y.jsx(Cd.Tabs,{"data-testid":"settings-subnav","aria-label":o("settings.subnav.ariaLabel"),children:d.map(b=>{const w=b.to.replace("$org",r),x=c===w||c.startsWith(`${w}/`);return y.jsx(Cd.Tab,{active:x,asChild:!0,children:y.jsx(Ql,{to:b.to,params:{org:r},onClick:()=>L4("settings_subnav_clicked",{group_key:a,tab_key:b.key}),children:o(b.labelKey)})},b.key)})})}),t[7]=a,t[8]=r,t[9]=c,t[10]=o,t[11]=d,t[12]=f):f=t[12];let v;return t[13]!==h||t[14]!==f?(v=y.jsxs(y.Fragment,{children:[h,f]}),t[13]=h,t[14]=f,t[15]=v):v=t[15],v}function Jde(e){return e.location.pathname}function U4(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=y.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[y.jsx(RO,{className:"h-32 w-full"}),y.jsx(RO,{className:"h-32 w-full"})]}),e[0]=t):t=e[0],t}function Xde(e){const t=ye.c(14),{group:a,fallback:o,errorFallback:n,className:r,children:i}=e;let c;t[0]!==a?(c=y.jsx(Zde,{group:a}),t[0]=a,t[1]=c):c=t[1];let d;t[2]!==o?(d=o??y.jsx(U4,{}),t[2]=o,t[3]=d):d=t[3];let u;t[4]!==i||t[5]!==d?(u=y.jsx(A.Suspense,{fallback:d,children:i}),t[4]=i,t[5]=d,t[6]=u):u=t[6];let m;t[7]!==n||t[8]!==u?(m=y.jsx(Fde,{fallback:n,children:u}),t[7]=n,t[8]=u,t[9]=m):m=t[9];let h;return t[10]!==r||t[11]!==c||t[12]!==m?(h=y.jsx(Cd,{children:y.jsx(Cd.Content,{children:y.jsx(Cd.Container,{children:y.jsxs(Hde,{className:r,children:[c,m]})})})}),t[10]=r,t[11]=c,t[12]=m,t[13]=h):h=t[13],h}function Vs(e){return function(){return y.jsx(Xde,{group:e,children:y.jsx(U4,{})})}}function eue(e){try{localStorage.setItem(Nr.lastLocation(),JSON.stringify(e))}catch{}}function tue(){try{const e=localStorage.getItem(Nr.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org}}catch{}return null}function A0e(){try{localStorage.removeItem(Nr.lastLocation())}catch{}}function aue(e,t){const a=e&&t?MJ(t,e):null;return{queryKey:lo.activeOrganization(e),queryFn:async()=>{if(!e)return null;const o={organizationSlug:e};performance.mark("mesh:active-org-fetch:start");const{data:n}=await fo.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=oE(n);return n&&!r&&localStorage.setItem(Nr.lastOrgSlug(),e),t&&n&&IJ(t,e,n),n},initialData:a?a.data:void 0,initialDataUpdatedAt:a?.updatedAt,gcTime:1/0,refetchOnWindowFocus:!1}}let cN;async function oue(e){cN=e,await jB();const t=Eee();if(!t)return;const a=await Jl.ensureQueryData(aue(e,t)).catch(()=>null);a&&!oE(a)&&cN===e&&eue({org:e})}const Ct={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",discover:"/$org/discover",plan:"/$org/plan",monitoring:"/$org/monitoring",orgIndex:"/$org/"},Ke={root:Ct.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",blog:"/$org/projects/$agentId/blog",blogPost:"/$org/projects/$agentId/blog/posts/$postId",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",calendar:"/$org/projects/$agentId/calendar",experiments:"/$org/projects/$agentId/experiments",plan:"/$org/projects/$agentId/plan",businessCase:"/$org/projects/$agentId/plan/case",monitoring:"/$org/projects/$agentId/monitoring"};function R0e(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:nue},e[0]=t):t=e[0],Tk(t)}function nue(e){return e.matches.at(-1)?.fullPath??""}function D0e(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:rue},e[0]=t):t=e[0],Tk(t)}function rue(e){return e.matches.findLast(sue)?.staticData.mainView}function sue(e){return e.staticData.mainView}function Rf(e){return`agent-view:${encodeURIComponent(e)}`}function iue(e){if(!e?.startsWith("agent-view:"))return null;const t=e.slice(11);if(!t)return null;try{const a=decodeURIComponent(t);return a?{id:a}:null}catch{return null}}function $4(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function lue(e){return`blog-post:${encodeURIComponent(e)}`}function cue(e){if(!e?.startsWith("blog-post:"))return null;const t=e.slice(10);if(!t)return null;try{const a=decodeURIComponent(t);return a?{id:a}:null}catch{return null}}function YE(e,t){return`app:${e}:${t}`}function due(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),a=t.indexOf(":");if(a<=0)return null;const o=t.slice(0,a),n=t.slice(a+1);return!o||!n?null:{connectionId:o,toolName:n}}function V4(e){return`deck:${encodeURIComponent(e)}`}function uue(e){if(!e||!e.startsWith("deck:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function pue(e){return`case:${encodeURIComponent(e)}`}function mue(e){if(!e||!e.startsWith("case:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function H4(e){return`file:${encodeURIComponent(e)}`}function hue(e){if(!e||!e.startsWith("file:"))return null;const t=e.slice(5);if(!t)return null;try{return{key:decodeURIComponent(t)}}catch{return null}}function G4(e){return`library-file:${encodeURIComponent(e)}`}function gue(e){if(!e||!e.startsWith("library-file:"))return null;const t=e.slice(13);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function W4(e){return`code:${encodeURIComponent(e)}`}function fue(e){if(!e)return null;if(e==="code")return{path:null};if(!e.startsWith("code:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}const K4=["overview","settings","automations","site-editor","code","content","blog","assets","hosting","e2e","analytics","cdn"],vue=new Set(K4),Y4=new Set(["hosting","e2e","analytics","cdn"]),bue=new Set(["board","files","connect-sources","reports"]);function O0e(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("case:")||e.startsWith("library-file:")||e.startsWith("code:")}const yue=new Map([["preview","site-editor"],["git","site-editor"]]);function Eb(e){return yue.get(e)??e}const QE=new Set(["instructions","connections","layout","settings"]);function wue(e){return!!e&&QE.has(e)}const Sue=new Set(["overview","board","reports"]);function Q4(e){const t=e?.defaultMainView??null;if(!t)return"settings";const a=Eb(t.type);if(QE.has(a))return"settings";if(vue.has(a)||Sue.has(a))return a;if(a==="ext-app"||a==="ext-apps"){if(t.id&&t.toolName)return YE(t.id,t.toolName);const n=e?.tabs?.map(r=>r.id)??[];return t.id&&n.includes(t.id)?Rf(t.id):n[0]?Rf(n[0]):"settings"}const o=e?.tabs?.[0]?.id;return o?Rf(o):"settings"}function Z4(e){const t={...e};return Reflect.deleteProperty(t,"projectOverview"),Reflect.deleteProperty(t,"appTakeover"),t}const N0e=e=>({...Z4(e),projectOverview:!0});function Tue(e){return typeof e=="object"&&e!==null&&"projectOverview"in e&&e.projectOverview===!0}const M0e=e=>({...Z4(e),appTakeover:!0});function I0e(e){return typeof e=="object"&&e!==null&&"appTakeover"in e&&e.appTakeover===!0}function L0e(e){const t=e?.defaultMainView?.type;if(!t||t==="chat")return null;const a=Q4(e);return a==="overview"?null:a}function B0e(e){const t=e.routeDefaultMain||Q4(e.metadata),a=e.panelTabId&&QE.has(e.panelTabId)?"settings":e.panelTabId?Eb(e.panelTabId):e.panelTabId,o=e.metadata?.defaultMainView??null,n=o==null||o.type==="chat";return{mainOpen:e.mainPanelParam??(!!a||!!e.routeDefaultMain||!n),activeTab:a??t}}function F0e(e){return e.mainOpen&&e.clickedId===e.activeTab?{close:!0}:{tabId:e.clickedId}}function j0e(e){return e.mainOpen?e.activeTab==="automations"?!0:$4(e.activeTab)!==null:!1}const xue=new Set([...K4.filter(e=>!Y4.has(e)),...bue,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function kue(e){return!!e&&xue.has(e)}function Eue(e,t){if(e)switch(e){case"app":return t.connection&&t.tool?YE(t.connection,t.tool):void 0;case"automations":return t.automation?`automation:${t.automation}`:"automations";case"file":return t.key?H4(t.key):void 0;case"deck":return t.deck?V4(t.deck):void 0;case"library-file":return t.path?G4(t.path):void 0;case"code":return t.file?W4(t.file):"code";default:{const a=Eb(e);return a==="site-editor"&&t.main==="content"?"content":a}}}function z0e(e){const t=e.params??{},a=e.search??{};if(e.siteEditorView==="content")return"content";if(e.siteEditorView==="code")return a.file?W4(a.file):"code";if(e.siteEditorView==="preview")return"site-editor";switch(e.mainView){case"blog-post":return t.postId?lue(t.postId):"blog";case"automation":return t.automationId?`automation:${t.automationId}`:"automations";case"app":return t.connectionId&&t.toolName?YE(t.connectionId,t.toolName):void 0;case"view":return t.viewId?Rf(t.viewId):void 0;case"file":return a.key?H4(a.key):void 0;case"deck":return a.path?V4(a.path):void 0;case"business-case":return a.path?pue(a.path):void 0;case"library-file":return a.path?G4(a.path):void 0;default:return e.mainView}}const Cue={files:"library",discover:"discover"},Pue={board:"tasks",reports:"reports",plan:"plan",monitoring:"monitoring",analytics:"monitoring",cdn:"monitoring"},_ue={analytics:"audience",cdn:"performance"},Aue={settings:"settings",assets:"assets",releases:"releases",hosting:"hosting",e2e:"e2e",calendar:"calendar",experiments:"experiments"};function J4(e){const t=iue(e);if(t)return{kind:"agent-view",viewId:t.id};const a=due(e);if(a)return{kind:"app",connectionId:a.connectionId,toolName:a.toolName};const o=$4(e);if(o)return{kind:"automations",automationId:o.id};const n=cue(e);if(n)return{kind:"blog",postId:n.id};const r=hue(e);if(r)return{kind:"output-file",key:r.key};const i=uue(e);if(i)return{kind:"output-deck",path:i.path};const c=mue(e);if(c)return{kind:"business-case",path:c.path};const d=gue(e);if(d)return{kind:"library-file",path:d.path};const u=fue(e);if(u)return{kind:"site-editor",view:"code",...u.path?{file:u.path}:{}};if(wue(e))return{kind:"agent-section",section:"settings"};const m=Eb(e);if(m==="overview")return{kind:"agent-overview"};if(m==="site-editor")return{kind:"site-editor",view:"preview"};if(m==="content")return{kind:"site-editor",view:"content"};if(m==="blog")return{kind:"blog"};if(m==="automations")return{kind:"automations"};if(m==="connect-sources")return{kind:"connect-sources"};const h=Pue[m];if(h){const b=_ue[m];return{kind:"project-destination",destination:h,...b?{monitorView:b}:{}}}const f=Cue[m];if(f)return{kind:"org-destination",destination:f};const v=Aue[m];return v?{kind:"agent-section",section:v}:{kind:"agent-view",viewId:m}}function Hl(e){const{org:t,agentId:a}=e,o={org:t,agentId:a},n=J4(e.tabId);switch(n.kind){case"project-destination":{const r=e.destinationScope==="organization";switch(n.destination){case"tasks":return r?{to:Ct.tasks,params:{org:t,taskKey:e.taskKey},search:{}}:{to:Ke.tasks,params:{...o,taskKey:e.taskKey},search:{}};case"reports":return r?{to:Ct.reports,params:{org:t},search:{}}:{to:Ke.reports,params:o,search:{}};case"plan":return r?{to:Ct.plan,params:{org:t},search:{}}:{to:Ke.plan,params:o,search:{}};case"monitoring":{const i=n.monitorView?{view:n.monitorView}:{};return r?{to:Ct.monitoring,params:{org:t},search:i}:{to:Ke.monitoring,params:o,search:i}}}}case"org-destination":switch(n.destination){case"home":return{to:Ct.home,params:{org:t},search:{}};case"discover":return{to:Ct.discover,params:{org:t},search:{}};case"library":return{to:Ct.library,params:{org:t},search:{}}}case"agent-overview":return{to:Ke.root,params:o,search:{}};case"site-editor":return n.view==="content"?{to:Ke.siteEditorContent,params:o,search:{}}:n.view==="code"?{to:Ke.siteEditorCode,params:o,search:{file:n.file}}:{to:Ke.siteEditor,params:o,search:{}};case"agent-section":return{to:Ke[n.section],params:o,search:{}};case"blog":return n.postId?{to:Ke.blogPost,params:{...o,postId:n.postId},search:{}}:{to:Ke.blog,params:o,search:{}};case"automations":return n.automationId?{to:Ke.automation,params:{...o,automationId:n.automationId},search:{}}:{to:Ke.automations,params:o,search:{}};case"app":return{to:Ke.app,params:{...o,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:Ke.view,params:{...o,viewId:n.viewId},search:{}};case"output-file":return{to:Ke.outputFile,params:o,search:{key:n.key}};case"output-deck":return{to:Ke.outputDeck,params:o,search:{path:n.path}};case"business-case":return{to:Ke.businessCase,params:o,search:{path:n.path}};case"library-file":return{to:Ke.libraryFile,params:o,search:{path:n.path}};case"connect-sources":return{to:Ke.connectSources,params:o,search:{}}}}function q0e(e){if(!e.agentId||e.agentId===e.superAgentId&&(e.tabId===void 0||e.tabId==="overview"))return{to:Ct.home,params:{org:e.org},search:{}};const t=e.tabId??"overview",a=e.agentId!==e.superAgentId&&J4(t).kind==="org-destination"?"overview":t;return Hl({org:e.org,agentId:e.agentId,tabId:a,destinationScope:e.agentId===e.superAgentId?"organization":"project"})}function Rue(e,t,a={}){const o=r=>({...a.search?.(r)??{},...t.search}),n=a.replace??!0;switch(t.to){case Ct.tasks:e({to:Ct.tasks,params:t.params,search:o,replace:n});return;case Ct.home:e({to:Ct.home,params:t.params,search:o,replace:n});return;case Ct.reports:e({to:Ct.reports,params:t.params,search:o,replace:n});return;case Ct.discover:e({to:Ct.discover,params:t.params,search:o,replace:n});return;case Ct.plan:e({to:Ct.plan,params:t.params,search:o,replace:n});return;case Ct.monitoring:e({to:Ct.monitoring,params:t.params,search:o,replace:n});return;case Ct.library:e({to:Ct.library,params:t.params,search:o,replace:n});return;case Ke.root:e({to:Ke.root,params:t.params,search:o,replace:n});return;case Ke.tasks:e({to:Ke.tasks,params:t.params,search:o,replace:n});return;case Ke.reports:e({to:Ke.reports,params:t.params,search:o,replace:n});return;case Ke.plan:e({to:Ke.plan,params:t.params,search:o,replace:n});return;case Ke.monitoring:e({to:Ke.monitoring,params:t.params,search:o,replace:n});return;case Ke.siteEditor:e({to:Ke.siteEditor,params:t.params,search:o,replace:n});return;case Ke.siteEditorContent:e({to:Ke.siteEditorContent,params:t.params,search:o,replace:n});return;case Ke.siteEditorCode:e({to:Ke.siteEditorCode,params:t.params,search:o,replace:n});return;case Ke.automations:e({to:Ke.automations,params:t.params,search:o,replace:n});return;case Ke.automation:e({to:Ke.automation,params:t.params,search:o,replace:n});return;case Ke.app:e({to:Ke.app,params:t.params,search:o,replace:n});return;case Ke.view:e({to:Ke.view,params:t.params,search:o,replace:n});return;case Ke.outputFile:e({to:Ke.outputFile,params:t.params,search:o,replace:n});return;case Ke.outputDeck:e({to:Ke.outputDeck,params:t.params,search:o,replace:n});return;case Ke.businessCase:e({to:Ke.businessCase,params:t.params,search:o,replace:n});return;case Ke.libraryFile:e({to:Ke.libraryFile,params:t.params,search:o,replace:n});return;case Ke.connectSources:e({to:Ke.connectSources,params:t.params,search:o,replace:n});return;case Ke.blog:e({to:Ke.blog,params:t.params,search:o,replace:n});return;case Ke.blogPost:e({to:Ke.blogPost,params:t.params,search:o,replace:n});return;case Ke.settings:case Ke.assets:case Ke.releases:case Ke.hosting:case Ke.e2e:case Ke.calendar:case Ke.experiments:e({to:t.to,params:t.params,search:o,replace:n});return;default:return Due(t)}}function Due(e){throw new Error(`Unhandled tab route target: ${JSON.stringify(e)}`)}function U0e(e,t){Rue(e,Hl(t),t)}function Oue(e){const t=/^(\/[^/]+)\/agents(?=\/|$)/.exec(e);return t?.[1]?`${t[1]}/projects${e.slice(t[0].length)}`:null}function Nue(e){const t=e.split("/").filter(Boolean);return(t[1]==="projects"||t[1]==="agents")&&t.length>3}const Mue=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),X4=new Set(["main"]),Iue=new Set(["virtualmcpid"]);function Cb(e,t){return Object.fromEntries(Object.entries(e).filter(([a])=>!t.has(a)))}function ql(e,t){return{...Cb(e,Mue),...t.search}}function Lue(e){return Cb(e,Iue)}function $0e(e){if(e.search.virtualmcpid===void 0)return null;const t=Er(e.search.virtualmcpid);if(t){const a=e.routePath===Ct.tasks?"board":e.routePath===Ct.reports?"reports":null;if(e.routePath===Ct.home||a){const o=a?Hl({org:e.org,agentId:t,tabId:a}):Wd(e.org,t);return{kind:"canonical",route:o,search:ql(e.search,o)}}}return e.routePath===Ct.home||e.routePath===Ct.tasks||e.routePath===Ct.reports||e.routePath===Ct.library?{kind:"same-route",search:Lue(e.search)}:null}function Er(e){return e?.trim()||void 0}function e5(e){return kue(e)||e!==void 0&&Y4.has(e)}function t5(e){const t=Er(e);return t?t.startsWith("vir_")&&t.length>4||tB(t)!==null||rQ(t)!==null||sQ(t)!==null||oB(t)||nB(t):!1}function Bue(e){const t=Er(e.agentIdParam),a=e5(t);return t&&!a?t:Er(e.virtualMcpIdSearch)??Er(e.fallbackAgentId)}function V0e(e){const t=e.pathAgentId;if(t&&e.pathLegacyView){const i=N0({org:e.org,agentId:t,panel:e.pathLegacyView,source:"project-first",search:e.search});return i?.kind==="canonical"?{route:i.route,search:i.search}:null}if(!t||Nue(e.pathname))return null;const a=e.search.virtualmcpid!==void 0&&!t5(t);if(!(e5(t)||a))return null;const n=Bue({agentIdParam:a?void 0:t,virtualMcpIdSearch:e.search.virtualmcpid,fallbackAgentId:e.fallbackAgentId}),r=N0({org:e.org,agentId:n,panel:t,source:"view-first",search:e.search});return r?.kind==="canonical"?{route:r.route,search:r.search}:null}function Fue(e,t,a,o){const n=Er(o);switch(e){case"board":return n?Hl({org:t,agentId:n,tabId:"board"}):{to:Ct.tasks,params:{org:t,taskKey:void 0},search:{}};case"files":{const r=Ai(a.path);return{to:Ct.library,params:{org:t},search:r?{path:r}:{}}}case"reports":return n?Hl({org:t,agentId:n,tabId:"reports"}):{to:Ct.reports,params:{org:t},search:{}};case"overview":return{to:Ct.home,params:{org:t},search:{}};case"discover":return{to:Ct.discover,params:{org:t},search:{}};default:return null}}function em(e){const t=Fue(e.tabId,e.org,e.search,e.agentId);if(t)return t;if(e.tabId==="chat")return Wd(e.org,e.agentId);const a=Er(e.agentId);return a?e.tabId==="app"||e.tabId==="file"||e.tabId==="deck"||e.tabId==="library-file"||e.tabId.trim()===""?{to:Ke.root,params:{org:e.org,agentId:a},search:{}}:Hl({org:e.org,agentId:a,tabId:e.tabId}):null}function Wd(e,t){const a=Er(t);return a?{to:Ke.root,params:{org:e,agentId:a},search:{}}:{to:Ct.home,params:{org:e},search:{}}}function jue(e){const{main:t}=e;if(t===void 0)return null;const a=e.search??{};if(t===0||t==="0")return{kind:"same-route",search:{...Cb(a,X4),mainpanel:!1}};if(t==="chat"){const n=Wd(e.org,e.agentId);return{kind:"canonical",route:n,search:{...ql(a,n),sidepanel:!0,mainpanel:!1}}}const o=em({org:e.org,agentId:e.agentId,tabId:t,search:a});return o?{kind:"canonical",route:o,search:ql(a,o)}:null}function Ai(e){return typeof e=="string"&&e.length>0?e:void 0}function N0(e){const t=e.search??{};if((t.main===0||t.main==="0")&&e.panel){const i=N0({...e,search:Cb(t,X4)});return i?.kind!=="canonical"?i:{...i,search:{...i.search,mainpanel:!1}}}if(t.main!==void 0)return jue({org:e.org,agentId:e.agentId,main:t.main,search:t});const a=Er(e.agentId),o=e.panel;if(!o){const i=Wd(e.org,a);return{kind:"canonical",route:i,search:ql(t,i)}}const n=Eue(o,{file:Ai(t.file),key:Ai(t.key),deck:Ai(t.deck),path:Ai(t.path),connection:Ai(t.connection),tool:Ai(t.tool),automation:Ai(t.automation)}),r=n?e.source==="project-first"&&n==="overview"&&a?Hl({org:e.org,agentId:a,tabId:n}):em({org:e.org,agentId:a,tabId:n,search:t}):em({org:e.org,agentId:a,tabId:"",search:t});return r?{kind:"canonical",route:r,search:n==="chat"?{...ql(t,r),sidepanel:!0,mainpanel:!1}:ql(t,r)}:null}function H0e(e){const t=e.search??{},a=Er(t.virtualmcpid),o=Er(e.fallbackAgentId),n=t.main;let r;if(n==="chat")r=Wd(e.org,a);else if(n!==void 0&&n!==0&&n!=="0"){const i=em({org:e.org,agentId:a,tabId:n,search:t}),c=!i&&n.trim().length>0&&o?em({org:e.org,agentId:o,tabId:n,search:t}):null;r=i??c??{to:Ct.home,params:{org:e.org},search:{}}}else r=Wd(e.org,a);return{route:r,search:{...ql(t,r),...n===void 0&&t.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:e.taskId}}}function a5(e,t){if(t.task===void 0)return null;const{task:a,...o}=t;return{taskKey:e??(a.trim()||void 0),search:o}}const zue={contentPageId:$().optional(),contentPath:$().optional(),contentPathTemplate:$().optional(),contentCollection:$().optional(),contentItem:$().optional()},o5=zue,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()},que=["files","brand","connections","repositories","skills","memory","instructions","general","views","repository","site"],Dv={fileView:Wt(["all","documents","media"]).catch("all").optional(),modified:Wt(["any","today","week","month"]).catch("any").optional(),layout:Wt(["list","grid"]).catch("list").optional(),sort:Wt(["name","updated","size"]).catch("name").optional(),path:$().optional(),preview:$().optional(),expanded:fx().optional().catch(void 0),skill:$().optional(),brand:$().optional(),section:Wt(que).catch("files").optional(),scope:Wt(["user"]).optional().catch(void 0),action:Wt(["create"]).optional().catch(void 0),tab:Wt(["all","connected"]).optional().catch(void 0)},Uue={file:$().optional(),key:$().optional(),deck:$().optional(),path:$().optional(),connection:$().optional(),tool:$().optional(),automation:$().optional(),section:$().optional(),preview:$().optional(),autosend:$().optional(),connect:eb().optional(),siteUrl:$().optional(),...o5},n5={...Uue,task:$().optional(),project:$().optional(),...ZE,skill:Dv.skill,brand:Dv.brand},xm=Se(n5),r5="blog-manager/posts/";function G0e(e){return e.startsWith(r5)}function $ue(e){return e.split("/").pop()??e}function W0e(e){return`${r5}${e}`}function K0e(e){return`collections/blog/posts/${e}`}const Vue=["context","posts","authors","categories","post-schedule"],s5=Wt(Vue),Hue={blogCollection:s5.optional(),blogItem:$().optional()};function Y0e(e,t){return e==="context"&&!t?"posts":e}const Gue=Wt(["edit","preview"]),Wue={blogView:Gue.optional()};function Q0e(e){const t=s5.safeParse(e.contentCollection);if(!t.success)return null;const a=t.data,o=e.contentItem;return a==="posts"?o?{collection:a,postId:$ue(o)}:{collection:a}:o?{collection:a,item:o}:{collection:a}}function Z0e(e){const t=e.blogCollection;return t==="authors"||t==="categories"?e.blogItem?{contentCollection:t,contentItem:e.blogItem}:{contentCollection:t}:{contentCollection:"posts"}}const Ho=cV({component:()=>y.jsx(zde,{children:y.jsx(Sk,{})})}),Kue=Ae({getParentRoute:()=>Ho,path:"/login",component:Be(()=>Fe(()=>import("./login-D5g_ztYq.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),validateSearch:es(()=>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()}))}),Yue=Ae({getParentRoute:()=>Ho,path:"/cli/auth-success",component:Be(()=>Fe(()=>import("./cli-auth-success-8s-fzwHw.js"),__vite__mapDeps([9,5])))}),Que=Ae({getParentRoute:()=>Ho,path:"/reset-password",component:Be(()=>Fe(()=>import("./reset-password-CdSys6xr.js"),[])),validateSearch:es(()=>Se({token:$().optional(),error:$().optional()}))}),Zue=Ae({getParentRoute:()=>Ho,path:"/auth/$pathname",component:Be(()=>Fe(()=>import("./auth-catchall-BZYdYIWZ.js"),[]))}),Jue=Ae({getParentRoute:()=>Ho,path:"/oauth/callback",component:Be(()=>Fe(()=>import("./oauth-callback-VzV-8CV_.js"),__vite__mapDeps([10,11,12])))}),Xue=Ae({getParentRoute:()=>Ho,path:"/oauth/consent",component:Be(()=>Fe(()=>import("./oauth-consent-DbMqZt9i.js"),__vite__mapDeps([13,5,1,2,3,4])))}),epe=Ae({getParentRoute:()=>Ho,path:"/oauth/callback/ai-provider",component:Be(()=>Fe(()=>import("./oauth-callback-ai-provider-AHHY1FKA.js"),[]))}),km=Ae({getParentRoute:()=>Ho,path:"/_admin",component:Be(()=>Fe(()=>import("./layout-D2pfAJPo.js"),__vite__mapDeps([14,15,16])))}),tpe=Ae({getParentRoute:()=>km,path:"/",beforeLoad:()=>{throw ua({to:"/_admin/users"})}}),ape=Ae({getParentRoute:()=>km,path:"/users",component:Be(()=>Fe(()=>import("./users-BWVZzazY.js"),__vite__mapDeps([17,18,19,20,21,22,23,24,25,26])))}),ope=Ae({getParentRoute:()=>km,path:"/orgs",component:Be(()=>Fe(()=>import("./orgs-B6C73JF3.js"),__vite__mapDeps([27,18,19,20,21,22,23,28,25,29,30,31,32,33,34,35,24,36,37,26])))}),npe=Ae({getParentRoute:()=>km,path:"/prompts",component:Be(()=>Fe(()=>import("./prompts-CTPqPQuy.js"),__vite__mapDeps([38,21,28,35,26])))}),rpe=km.addChildren([tpe,ape,ope,npe]),JE=Ae({getParentRoute:()=>Ho,id:"shell",component:Be(()=>Fe(()=>import("./shell-layout-CidYb71I.js").then(e=>e.s),__vite__mapDeps([39,40,41,16,26,42,43,44,45,20,46,47,48,49,32,50,33,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,71,72,73,12,4,3,74,75,37,76,77,78,79,80,81,82,83,84,85,25,86,28,87,88,31,89,90,91,92,93,94,6,7,8,15,95,96,97,98])))}),spe=Ae({getParentRoute:()=>JE,path:"/",beforeLoad:async()=>{const e=tue();if(e)throw ua({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(Nr.lastOrgSlug());if(t)throw ua({to:"/$org",params:{org:t}});const{data:a}=await zB();if(!a)return;const o=a[0];throw ua(o?{to:"/$org",params:{org:o.slug}}:{to:"/onboarding"})}}),ipe=Ae({getParentRoute:()=>Ho,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await zB();if(e&&e.length>0)throw ua({to:"/"})},component:Be(()=>Fe(()=>import("./onboarding-ax89gpqv.js"),__vite__mapDeps([99,15,5,100,64,28,34,40,49,67])))}),i5=es(()=>Se({org:$().optional(),siteUrl:$().optional(),fix:$().optional()})),lpe=Ae({getParentRoute:()=>Ho,path:"/reports-onboarding",component:Be(()=>Fe(()=>import("./reports-onboarding-DSyA9ZH8.js"),__vite__mapDeps([101,102,1,2,3,4,5,100,64,103,104,28,105,73,12,106,83,51,42,43,44,45,20,46,47,48,40,49,32,50,33,41,52,53,54,55,56,57,58,59,60,61,62,63,23,65,66,67,68,69,70,88,31,107,108,109,110,25,111,112,113,11,114,115,116,117,118,119]))),validateSearch:i5}),cpe=Ae({getParentRoute:()=>Ho,path:"/commerce-onboarding",validateSearch:i5,beforeLoad:({search:e})=>{throw ua({to:"/reports-onboarding",search:e})}}),dpe=Ae({getParentRoute:()=>Ho,path:"/choose-editor",component:Be(()=>Fe(()=>import("./choose-editor-D9QkB389.js"),__vite__mapDeps([120,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,15]))),validateSearch:es(()=>Se({site:$().optional(),domain:$().optional(),pageId:$().optional(),path:$().optional(),pathTemplate:$().optional()}))}),XE=Ae({getParentRoute:()=>Ho,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Be(()=>Fe(()=>import("./site-editor-CGa5Pnwo.js"),__vite__mapDeps([121,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,129,8,88,31,54,69,130,131,132,133,134,135,136,59,137,138,139,45,42,43,44,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,140,71,103,104,28,141,142,85,81,82,25,143,35,144,145,146,147,148,149,150,151,7,152,153,29,30,154,155,156,157,158,159,160,161,162,21,22,163,164,165,166,167,168,169,170,171,34,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,39,16,26,83,84,86,87,89,92,94,6,15,97,98,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,111,209,210,211,212,117,213,214,215,216,217,218,219,220,221,222,223,224,225,24,226,227,228,229,18,19,230,231,232,233,234,235,236,237,238,110,239,240,241,242,243,244,245,246,115,108,116,247,248,249,250,112,113,11,251,252,253,254,255,256,257,258])))}),upe=Ae({getParentRoute:()=>XE,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Be(()=>Fe(()=>import("./site-editor-CGa5Pnwo.js"),__vite__mapDeps([121,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,129,8,88,31,54,69,130,131,132,133,134,135,136,59,137,138,139,45,42,43,44,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,140,71,103,104,28,141,142,85,81,82,25,143,35,144,145,146,147,148,149,150,151,7,152,153,29,30,154,155,156,157,158,159,160,161,162,21,22,163,164,165,166,167,168,169,170,171,34,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,39,16,26,83,84,86,87,89,92,94,6,15,97,98,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,111,209,210,211,212,117,213,214,215,216,217,218,219,220,221,222,223,224,225,24,226,227,228,229,18,19,230,231,232,233,234,235,236,237,238,110,239,240,241,242,243,244,245,246,115,108,116,247,248,249,250,112,113,11,251,252,253,254,255,256,257,258])),"SiteEditorPreview")}),ppe=Ae({getParentRoute:()=>XE,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Be(()=>Fe(()=>import("./site-editor-CGa5Pnwo.js"),__vite__mapDeps([121,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,129,8,88,31,54,69,130,131,132,133,134,135,136,59,137,138,139,45,42,43,44,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,140,71,103,104,28,141,142,85,81,82,25,143,35,144,145,146,147,148,149,150,151,7,152,153,29,30,154,155,156,157,158,159,160,161,162,21,22,163,164,165,166,167,168,169,170,171,34,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,39,16,26,83,84,86,87,89,92,94,6,15,97,98,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,111,209,210,211,212,117,213,214,215,216,217,218,219,220,221,222,223,224,225,24,226,227,228,229,18,19,230,231,232,233,234,235,236,237,238,110,239,240,241,242,243,244,245,246,115,108,116,247,248,249,250,112,113,11,251,252,253,254,255,256,257,258])),"SiteEditorContent")}),mpe=Ae({getParentRoute:()=>Ho,path:"/report/$domain",component:Be(()=>Fe(()=>import("./reports-CMA5fueI.js"),__vite__mapDeps([259,114,4,1,2,3,260])))}),Pb=Ae({getParentRoute:()=>JE,path:"/$org",loader:({params:e})=>oue(e.org),pendingMs:1/0,component:Be(()=>Fe(()=>import("./route-BCBSysaN.js"),__vite__mapDeps([261,137,131,8,132,88,31,138,139,45,42,43,44,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,140,71,72,73,12,4,3,74,75,37,76,103,104,28,141,142,96,93,78,85,77,81,82,25,143,35,130,133,79,80,134,126,151,7,16,240,124,123,245,206,30,262,90,91,263,24,264,265,173,165,149,154,266,34,89,267,155,214,231,230,268,188,94,84,187,127,190,153,110,269,243])))}),_b=Ae({getParentRoute:()=>Pb,id:"org-shell",pendingComponent:Xd,component:Be(()=>Fe(()=>import("./thread-route-BGvUcmOf.js"),__vite__mapDeps([270,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,102,271,107,108,109,47,105,106,83,51,42,43,44,45,20,46,48,40,49,32,50,33,41,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,88,31,104,28,110,25,111,112,113,11,114,115,116,117,272,118])))}),hpe=Se({sidepanel:iF,mainpanel:lF,main:la([$(),Ze(0)]).optional(),thread:$().optional(),autosend:$().optional(),preview:$().optional(),virtualmcpid:$().optional()}),tn=Ae({getParentRoute:()=>_b,id:"agent-shell",validateSearch:hpe,search:{middlewares:[N$(["sidepanel","thread"])]},pendingComponent:Xd,component:Be(()=>Fe(()=>import("./route-BHR712ec.js"),__vite__mapDeps([273,237,20,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,238,167,168,169,170,42,43,44,45,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,8,88,31,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,195,249,250,112,113,11,251,24,252,253,187,133,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,193,194,132,197,146,214,274,174,148,147,175,21,235,236,149,129,130,131,134,135,136,22,275,276,231,216,215,265,173,165,212,230,141,277,278,279,280,281,156,208,144])))}),gpe=xm.extend({virtualmcpid:$().optional()}),fpe=Ae({getParentRoute:()=>tn,path:"/$taskId",validateSearch:gpe,component:()=>null}),Rt=Be(()=>Fe(()=>import("./index-DS7_d1Rd.js"),__vite__mapDeps([129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125])),"ChatLayoutPending"),Dt=Be(()=>Fe(()=>import("./index-DS7_d1Rd.js"),__vite__mapDeps([129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125])),"ChatLayoutError"),vpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:Se({connect:eb().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./home-BxQjITwz.js"),__vite__mapDeps([282,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,238,167,168,169,170,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,195,249,250,112,113,11,251,24,252,253,187,254,283,284,285,286,203,204,202,287,84,141,188,138,189,190,268,288,289,281,156,208,278,279,280,86,85,87,89,25,94,290,262,142])))}),bpe=Ae({getParentRoute:()=>tn,path:"/projects",validateSearch:xm,beforeLoad:({params:e,search:t})=>{const a=(t.project??t.virtualmcpid)?.trim(),o=r=>({...r,virtualmcpid:void 0,project:void 0,task:void 0});if(!a)throw ua({to:"/$org/home",params:{org:e.org},search:o,hash:!0,replace:!0});const n=t.task?.trim();throw ua(n?{to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:e.org,agentId:a,taskKey:n},search:o,hash:!0,replace:!0}:{to:"/$org/projects/$agentId",params:{org:e.org,agentId:a},search:o,hash:!0,replace:!0})}}),Yt=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/projects/$agentId",validateSearch:xm,beforeLoad:({cause:e,location:t})=>({enteredProject:e!=="preload"&&!Tue(t.state)}),component:Sk}),ype=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Be(()=>Fe(()=>import("./agent-overview-CNB4WGny.js"),__vite__mapDeps([291,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,238,167,168,169,170,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,195,249,250,112,113,11,251,24,252,253,187,254,283,284,285,286,203,204,202,287,84,141,188,138,189,190,268,288,262,277])))}),wpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Se({task:$().optional(),...ZE}),beforeLoad:({params:e,search:t})=>{const a=a5(e.taskKey,t);if(a)throw ua({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:e.org,agentId:e.agentId,taskKey:a?.taskKey??e.taskKey},search:a.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./project-tasks-C3W9wGad.js"),__vite__mapDeps([292,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,293,138,139,294,205,50,81,82,23,151,42,43,44,45,20,46,47,48,40,49,32,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,65,66,67,68,70,295,24,110,128,90,91,296,75,37,74,3,297,140,263,268,188,86,28,85,72,4,76,87,89,92,25,93,94,187,127,289,29,30,298,143,189,190,182,211,186,170,169,122,95,96,123,124,299,167,168,171,104,183,242,300,219,175,301,195,84,109,302,253,185,39,16,26,71,83,6,7,15,97,98,191,192,193,194,196,197,198,252,274,234,239,303,244,245])))}),Spe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Se({connect:eb().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./project-reports-BBbxgvrY.js"),__vite__mapDeps([304,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,305,47,102,271,107,108,109,118,119,42,43,44,45,20,46,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,81,82,94,72,4,3,74,75,37,76,290,86,28,85,87,89,90,91,92,25,93,306])))}),Ab=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:Se({autosend:$().optional(),...o5}),component:Be(()=>Fe(()=>import("./agent-site-editor-Czv48wVM.js"),__vite__mapDeps([232,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,233,234,145,146,147,148,149,150,151,7,88,31,8,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,152,153,29,30,154,155,156,157,71,134,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,133,254,185,186,138,188,189,190,191,192,193,194,132,197,214,221,222,210,211,178,208,255,174,175,256,226,129,130,131,135,136,257,258])))}),Tpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/blog",staticData:{pageTitle:"sidebar.projectNav.blog",defaultMain:"blog",mainView:"blog"},validateSearch:Se(Hue),component:Be(()=>Fe(()=>import("./agent-blog-C1s1aL9T.js"),__vite__mapDeps([307,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,233,234,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,145,146,147,148,149,150,151,7,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,152,153,29,30,154,155,156,157,71,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,214,221,222,210,211,178,208,255,174,175,303,206,218,160,161,22,165,166,184,219,223,224,225,226,173,227,228,207,308,209,309,275,276,231,216,215,265,257])))}),xpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/blog/posts/$postId",staticData:{pageTitle:"sidebar.projectNav.blog",defaultMain:"blog",mainView:"blog-post"},validateSearch:Se(Wue),component:Be(()=>Fe(()=>import("./agent-blog-post-CDv4FfL_.js"),__vite__mapDeps([310,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,233,234,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,145,146,147,148,149,150,151,7,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,152,153,29,30,154,155,156,157,71,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,214,221,222,210,211,178,208,255,174,175,303,226,184,227,228,161,176,209,308,257])))}),kpe=Ae({getParentRoute:()=>Ab,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Be(()=>Fe(()=>import("./agent-site-editor-preview-DSBZc-f3.js"),__vite__mapDeps([311,309,275,133,79,80,77,78,73,12,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,238,167,169,170,8,88,31,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,132,197,146,148,147,231,216,215,265,173,165,149,212,303,158,159,160,145,156,157,161,162,21,22,166,34,174,175,176,134,177,178,179,180,181,182,183,139,184,199,200,201,202,203,204,205,206,207,208,111,209,144,135,210,211,213])))}),Epe=Ae({getParentRoute:()=>Ab,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Be(()=>Fe(()=>import("./agent-site-editor-content-DZNX_5o_.js"),__vite__mapDeps([312,309,275,133,79,80,77,78,73,12,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,238,167,169,170,8,88,31,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,132,197,146,148,147,231,216,215,265,173,165,149,212,303,217,181,160,145,156,157,161,162,21,22,166,159,34,182,183,139,184,175,178,199,200,201,202,203,204,205,206,218,219,220,221,222,223,224,225,226,227,228,207,208,174,180,229,18,19])))}),Cpe=Ae({getParentRoute:()=>Ab,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:Se({file:$().optional()}),component:Be(()=>Fe(()=>import("./agent-site-editor-code-rjgbndHa.js"),__vite__mapDeps([313,309,275,133,79,80,77,78,73,12,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,238,167,169,170,8,88,31,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,132,197,146,148,147,231,216,215,265,173,165,149,212,303,21])))}),Ppe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:e,search:t})=>{const a=t.automation;if(a)throw ua({to:"/$org/projects/$agentId/automations/$automationId",params:{org:e.org,agentId:e.agentId,automationId:a},search:o=>({...o,automation:void 0}),hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./agent-automations-DXdA8yst.js"),__vite__mapDeps([314,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,64,44,70,22,23,21,296,315,24,55,66,42,43,45,20,46,47,48,40,49,32,50,33,41,51,52,53,56,2,57,58,60,61,62,63,65,67,68])))}),_pe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:Se({automationView:Wt(["settings","runs"]).optional()}),component:Be(()=>Fe(()=>import("./agent-automation-B5Rrh4U5.js"),__vite__mapDeps([316,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,153,34,151,81,82,171,195,276,83,317,7,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,152,29,30,154,155,318,296,186,39,16,26,71,84,85,25,86,28,87,89,92,94,6,15,97,98,319,241,242,167,168,169,170,104,196,320,188,138,321,163,164,207,208,322,19,21,323,252,274,302,253,185,187,189,190,191,192,193,194,197,198,251])))}),Ape=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Be(()=>Fe(()=>import("./agent-settings-D-b8iDX2.js"),__vite__mapDeps([324,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,325,48,42,43,44,45,20,46,47,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,326,327,328,329,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,35,21,330,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,331,115,108,116,117,318,267,113,11,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,198,332,193,153,276,196,168,34,151,206,214,265,173,165,149,264,170,36,212,147,333,334,194,213,236])))}),Rpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Se(Dv),component:Be(()=>Fe(()=>import("./agent-library-5k969p_q.js"),__vite__mapDeps([335,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,336,56,64,67,22,23,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,25,337,35,32,33,42,43,44,45,20,46,47,48,40,49,50,41,51,52,53,55,2,57,58,60,61,62,63,65,66,68,70,169,170,325,326,327,328,329,21,330,39,16,26,71,81,82,83,84,85,86,28,87,89,92,94,6,7,15,97,98,280,151,278,279,110,281,156,208,198,338,226,19,331,115,108,116,117,318,267,113,11,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,332,193,153,276,196,168,34,206,214,265,173,165,149,264,36,212,147,333,334,194,213,236])))}),Dpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Be(()=>Fe(()=>import("./agent-assets-V54jktFt.js"),__vite__mapDeps([339,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,309,275,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,238,167,169,170,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,197,146,148,147,231,216,215,265,173,165,149,212,22,166,226])))}),Ope=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Be(()=>Fe(()=>import("./agent-releases-BreJMe6b.js"),__vite__mapDeps([340,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,309,275,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,238,167,169,170,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,197,146,148,147,231,216,215,265,173,165,149,212,226,145,156,157,222])))}),Npe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Be(()=>Fe(()=>import("./agent-hosting-CaM-66SR.js"),__vite__mapDeps([341,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,24,226,149,43,44,42,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,110,19,186,28,29,30,172,164,342,331,115,108,116,117,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,318,21,39,16,26,71,81,82,83,84,85,25,86,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,249,250,112,251,252,253,198,332,193,153,276,196,168,34,151,206,214,265,173,165,264,329,170,36,212,147,333,334,194,213,236])))}),Mpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Be(()=>Fe(()=>import("./agent-e2e-CLyQ5SdR.js"),__vite__mapDeps([343,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,28,29,30,19,226,186,163,164,342,331,115,108,116,117,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,318,21,39,16,26,71,81,82,83,84,85,25,86,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,249,250,112,251,252,253,198,332,193,153,276,196,168,34,151,206,214,265,173,165,149,264,329,170,36,212,147,333,334,194,213,236])))}),Ipe=Ae({getParentRoute:()=>Yt,path:"/analytics",validateSearch:Se({view:$().optional()}),beforeLoad:({params:e,search:t})=>{throw ua({to:"/$org/projects/$agentId/monitoring",params:e,search:{view:t.view==="experiments"?"experiments":"audience"},replace:!0})}}),Lpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-DDqe9lVM.js"),__vite__mapDeps([344,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,251,24,294,345,151,206,30,32,44,182,346,286,203,204,202,287,19,43,20,172,164,188,138,49,56,75,37,347,189,190,205,50,81,82,23])))}),Bpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:Se({test:$().optional().catch(void 0)}),component:Be(()=>Fe(()=>import("./agent-experiments-BErFwNsi.js"),__vite__mapDeps([348,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,233,234,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,145,146,147,148,149,150,151,7,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,152,153,29,30,154,155,156,157,71,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,214,221,222,210,211,178,208,255,174,175,349,226,350,199,200,201,202,203,204,351,161,228,220,256])))}),Fpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/calendar",staticData:{pageTitle:"common.mainPanelTabs.calendar",defaultMain:"calendar",mainView:"calendar"},component:Be(()=>Fe(()=>import("./agent-calendar-CZ3xkWRZ.js"),__vite__mapDeps([352,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,233,234,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,145,146,147,148,149,150,151,7,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,152,153,29,30,154,155,156,157,71,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,214,221,222,210,211,178,208,255,174,175,226,206,220,350,199,200,201,202,203,204,351,161,228,225,256,342,331,318,267,319,332,276,34,265,173,165,264,329,36,333,334,213])))}),jpe=Ae({getParentRoute:()=>Yt,path:"/cdn",beforeLoad:({params:e})=>{throw ua({to:"/$org/projects/$agentId/monitoring",params:e,search:{view:"performance"},replace:!0})}}),l5=Se({args:$().optional()}),zpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/apps/$connectionId/$toolName",validateSearch:l5,staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Be(()=>Fe(()=>import("./agent-app-42Ddv_wD.js"),__vite__mapDeps([353,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,216,72,4,3,74,75,37,76,354,171,276,191,192,193,122,95,96,93,123,124,127,128,90,91,39,40,41,16,26,42,43,44,45,20,46,47,48,49,32,50,33,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,189,138,190,355,102,106,107,108,109,104,110,111,112,113,11,114,115,116,117])))}),qpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/views/$viewId",validateSearch:l5,staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Be(()=>Fe(()=>import("./agent-view-BERAkvOe.js"),__vite__mapDeps([356,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,354,171,276,191,192,193,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,39,40,41,16,26,42,43,44,45,20,46,47,48,49,32,50,33,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,189,138,190,355,102,106,107,108,109,104,110,111,112,113,11,114,115,116,117,342,331,318,21,267,35,195,319,246,247,248,29,30,249,250,251,24,252,253,198,332,153,196,168,34,151,206,214,265,173,165,149,264,329,170,36,212,147,333,334,194,213,236])))}),Upe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:Se({key:$().optional()}),component:Be(()=>Fe(()=>import("./agent-file-C9cLBrX6.js"),__vite__mapDeps([357,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,198,281,128,90,91,156,208,169,170,122,95,96,93,37,75,72,4,3,74,76,123,124,127,197,342,331,115,108,116,117,318,21,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,332,193,153,276,196,168,34,151,206,214,265,173,165,149,264,329,36,212,147,333,334,194,213,236])))}),$pe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:Se({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-deck-CUHtE8yw.js"),__vite__mapDeps([358,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,280,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,128,90,91,151,342,331,115,108,116,117,122,95,96,93,37,75,72,4,3,74,76,123,124,127,318,21,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,198,332,193,153,276,196,168,34,206,214,265,173,165,149,264,329,170,36,212,147,333,334,194,213,236])))}),Vpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:Se({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-library-file-Bh10DaAz.js"),__vite__mapDeps([359,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,360,279,110,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,280,128,90,91,151,281,156,208,198,169,170,122,95,96,93,37,75,72,4,3,74,76,123,124,127,342,331,115,108,116,117,318,21,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,332,193,153,276,196,168,34,206,214,265,173,165,149,264,329,36,212,147,333,334,194,213,236])))}),Hpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Be(()=>Fe(()=>import("./agent-connect-sources-CkMKnOID.js"),__vite__mapDeps([361,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,105,102,106,83,51,42,43,44,45,20,46,47,48,40,49,32,50,33,41,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,107,108,109,104,28,110,25,111,112,113,11,114,115,116,117,272,118])))}),Gpe=Ae({getParentRoute:()=>Yt,path:"/$legacyView",component:()=>null}),Wpe=Ae({getParentRoute:()=>tn,path:"/agents",validateSearch:xm,beforeLoad:({params:e,search:t})=>{const a=t.virtualmcpid?.trim();throw ua(a?{to:"/$org/projects/$agentId",params:{org:e.org,agentId:a},search:o=>o,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:e.org},search:o=>o,hash:!0,replace:!0})}}),Kpe=Ae({getParentRoute:()=>tn,path:"/agents/$",validateSearch:xm,beforeLoad:({params:e,location:t})=>{const a=e._splat?.split("/").find(Boolean);if(!t5(a))return;const o=Oue(t.pathname);if(!o)return;const n=t.hash?`#${t.hash}`:"";throw ua({href:`${o}${t.searchStr}${n}`,replace:!0})},component:Be(()=>Fe(()=>import("./legacy-agents-deep-BxhffE4E.js"),__vite__mapDeps([362,277,80])))}),Ype=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Se({task:$().optional(),...ZE}),beforeLoad:({params:e,search:t})=>{const a=a5(e.taskKey,t);if(a)throw ua({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:a.taskKey},search:a.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./tasks-BWSrdTCZ.js"),__vite__mapDeps([363,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,293,138,139,294,205,50,81,82,23,151,42,43,44,45,20,46,47,48,40,49,32,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,65,66,67,68,70,295,24,110,128,90,91,296,75,37,74,3,297,140,263,268,188,86,28,85,72,4,76,87,89,92,25,93,94,187,127,289,29,30,298,143,189,190,182,211,186,170,169,122,95,96,123,124,299,167,168,171,104,183,242,300,219,175,301,195,84,109,302,253,185,39,16,26,71,83,6,7,15,97,98,191,192,193,194,196,197,198,252,274,234,239,303,244,245])))}),Qpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-DDqe9lVM.js"),__vite__mapDeps([344,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,251,24,294,345,151,206,30,32,44,182,346,286,203,204,202,287,19,43,20,172,164,188,138,49,56,75,37,347,189,190,205,50,81,82,23])))}),Zpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./thread-analytics-D40srXtR.js"),__vite__mapDeps([364,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,346,286,203,204,202,287,19,43,20,44,172,164,24,188,138,49,56,75,37,347,74,3,205,50,81,82,23,151,29,30,32,33,163,302,253,91,51,185,42,45,46,47,48,40,41,52,53,55,2,57,58,60,61,62,63,64,65,66,67,68,70,186,170,167,168,169,122,95,96,93,72,4,76,123,124,127,128,90,171,104,28,187,189,190,39,16,26,71,83,84,85,25,86,87,89,92,94,6,7,15,97,98,191,192,193,194,195,196,197,198,252,274])))}),Jpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Se({connect:eb().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./reports-DacwdMRs.js"),__vite__mapDeps([365,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,305,47,102,271,107,108,109,118,119,42,43,44,45,20,46,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,81,82,94,72,4,3,74,75,37,76,290,86,28,85,87,89,90,91,92,25,93,306])))}),Xpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Se(Dv),component:Be(()=>Fe(()=>import("./library-55AwsyF5.js"),__vite__mapDeps([366,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,8,129,88,31,54,69,130,131,132,133,134,135,136,59,325,48,42,43,44,45,20,46,47,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,326,327,328,329,35,21,330,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,360,279,110,280,151,281,156,208,198,169,170,336,22,337,278,338,226,19])))}),eme=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-gt4Fygl0.js"),__vite__mapDeps([367,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,368,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,35,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,237,238,167,168,169,170,171,104,110,198,239,150,151,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,115,108,116,117,247,248,195,249,250,112,113,11,251,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,146,214,267,369])))}),c5=Se({view:Wt(["metrics","alerts","performance","logs","audience","heatmap","analytics","errors","realtime","pages","events","deploys","experiments"]).optional().catch(void 0),date:gL().optional().catch(void 0),store:$().optional(),at:$().optional(),project:$().optional(),section:$().optional(),customer:$().optional(),test:$().optional().catch(void 0),f:je($()).optional().catch(void 0),currency:$().optional(),prop:$().optional()}),tme=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:c5,component:Be(()=>Fe(()=>import("./monitoring-CZlFgIM7.js"),__vite__mapDeps([370,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,205,81,82,151,226,371,286,203,204,202,287,24,182,74,75,37,3,111,347,288,138,90,91,122,95,96,93,72,4,76,123,124,127,128,150,7,152,153,29,30,154,155,330,39,16,26,71,83,84,85,25,86,28,87,89,92,94,6,15,97,98,346,19,172,164,188,355,102,106,107,108,109,104,110,112,113,11,114,115,116,117,195,200,201,163,149,349,350,162,145,146,147,148,156,157,21,199,351,161,228,220,256,372,35,297,301,22,34,323,252,373])))}),ame=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-gt4Fygl0.js"),__vite__mapDeps([367,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,368,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,35,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,237,238,167,168,169,170,171,104,110,198,239,150,151,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,115,108,116,117,247,248,195,249,250,112,113,11,251,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,146,214,267,369])))}),ome=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/plan/case",staticData:{pageTitle:"page.businessCase",defaultMain:"business-case",mainView:"business-case"},validateSearch:Se({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-business-case-rAgsfx68.js"),__vite__mapDeps([374,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,368,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,35,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,237,238,167,168,169,170,171,104,110,198,239,150,151,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,115,108,116,117,247,248,195,249,250,112,113,11,251,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,146,214,267,369])))}),nme=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:c5,component:Be(()=>Fe(()=>import("./monitoring-CZlFgIM7.js"),__vite__mapDeps([370,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,205,81,82,151,226,371,286,203,204,202,287,24,182,74,75,37,3,111,347,288,138,90,91,122,95,96,93,72,4,76,123,124,127,128,150,7,152,153,29,30,154,155,330,39,16,26,71,83,84,85,25,86,28,87,89,92,94,6,15,97,98,346,19,172,164,188,355,102,106,107,108,109,104,110,112,113,11,114,115,116,117,195,200,201,163,149,349,350,162,145,146,147,148,156,157,21,199,351,161,228,220,256,372,35,297,301,22,34,323,252,373])))}),rme=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Be(()=>Fe(()=>import("./discover-me98o1cI.js"),__vite__mapDeps([375,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,47,53,57,64,68,89,195,165,173,212,117,76])))}),sme=Ae({getParentRoute:()=>Pb,path:"/members",beforeLoad:({params:e})=>{throw ua({to:"/$org/settings/members",params:{org:e.org}})}}),ime=Se({main:la([$(),Ze(0)]).optional(),virtualmcpid:$().optional(),...n5,sidepanel:iF,mainpanel:lF,thread:$().optional()}),lme=Ae({getParentRoute:()=>_b,path:"/",validateSearch:ime,pendingComponent:Xd,component:Be(()=>Fe(()=>import("./index-CmchXZ5k.js"),__vite__mapDeps([376,277,80])))}),cme=Ae({getParentRoute:()=>_b,path:"/t/$taskKey",beforeLoad:({params:e})=>{throw ua({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:e.taskKey},search:t=>t,hash:!0,replace:!0})}}),ca=Ae({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>Pb,path:"/settings",pendingComponent:Xd,component:Be(()=>Fe(()=>import("./route-Uynax0ej.js"),__vite__mapDeps([377,8,136,59,131,132,88,31,134,77,78,73,12,125,126,80,378,64,24,151,172,164,124,123,245])))}),dme=Ae({getParentRoute:()=>ca,path:"/",component:Be(()=>Fe(()=>import("./index-redirect-BZ2ocOR_.js"),__vite__mapDeps([379,328])))}),ume=Ae({getParentRoute:()=>ca,path:"/connections",validateSearch:es(()=>Se({action:Wt(["create"]).optional(),tab:Wt(["all","connected"]).optional()})),beforeLoad:({params:e,search:t})=>{throw ua({to:"/$org/library",params:{org:e.org},search:{section:"connections",...t},replace:!0})}}),pme=Ae({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>ca,path:"/connections/$appSlug",component:Be(()=>Fe(()=>import("./connection-detail-BQCLs1dX.js"),__vite__mapDeps([380,115,108,116,117,21,250,64,66,381,73,12,276,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,23,65,67,68,69,70,195,29,30,31,204,382,201,82,151,88,78,8,85,72,4,3,74,75,37,76,249,332,24,193,11,113,83,132,104,28,196,383,384,286,203,202,287,347,163,164,248,192,92]))),validateSearch:es(()=>Se({tab:$().optional()}))}),mme=Ae({staticData:{pageTitle:"page.item"},getParentRoute:()=>ca,path:"/connections/$appSlug/$collectionName/$itemId",component:Be(()=>Fe(()=>import("./collection-detail-ByynPl98.js"),__vite__mapDeps([385,21,73,12,104,28,35,381,276,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,195,115,108,116,117,29,30,31,204,382,201,82,151,88,78,8,85,72,4,3,74,75,37,76,249,192,193,211,248,332,24,11,191,83,122,79,80,77,95,96,93,123,124,125,126,127,128,90,91,39,16,26,71,81,84,25,86,87,89,92,94,6,7,15,97,98,207,208,226]))),validateSearch:es(()=>Se({replayId:$().optional()}))}),hme=Ae({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>ca,path:"/monitor",component:Be(()=>Fe(()=>import("./index-wu6FYi2a.js"),__vite__mapDeps([386,22,23,21,326,327,328,185,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,65,66,67,68,69,70,186,170,167,168,169,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,8,88,31,171,104,28,138,187,188,189,190,39,16,26,71,81,82,83,84,85,25,86,87,89,92,94,6,7,15,97,98,191,192,193,194,132,195,196,197,198,248,24,151,207,208,321,153,29,30,345,206,182,35,251,34,211,384,286,203,204,202,287,347,302,253,252,274,19,323,296,322,226,371,111,288,303,244,245]))),validateSearch:es(()=>Se({tab:Wt(["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:Wt(["all","success","errors"]).default("all"),search:$().default(""),page:Lt().optional(),streaming:Vt().default(!0),propertyFilters:$().default(""),hideSystem:Vt().default(!1)}))}),gme=Ae({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>ca,path:"/general",component:Be(()=>Fe(()=>import("./general-CGRDtuGl.js"),__vite__mapDeps([387,319,388,34,48,41,93,37,75,195,73,12,389,24,29,30,31,32,33,328])))}),fme=Ae({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>ca,path:"/connect",pendingComponent:Vs("connect"),component:Be(()=>Fe(()=>import("./connect-CUy2b31t.js"),__vite__mapDeps([390,211,24,29,30,31,32,33,163,164,170,42,43,44,45,20,46,47,48,40,49,50,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,284,285,73,12,326,327,328,391,226,28,382,276,153,22,83,392,252,253,91,92,116,117,195])))}),vme=Ae({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/ai-providers",pendingComponent:Vs("billing"),component:Be(()=>Fe(()=>import("./ai-providers-CMY5OO2Y.js"),__vite__mapDeps([393,43,124,49,24,93,37,75,317,7,8,122,79,80,77,78,73,12,95,96,72,4,3,74,76,123,125,126,127,128,90,91,152,153,60,29,30,31,32,33,46,50,58,45,23,154,155,61,56,57,319,378,64,151,172,164,88,245,266,34,89,66,267,326,327,328])))}),bme=Ae({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/billing",beforeLoad:({params:e})=>{throw ua({to:"/$org/settings/ai-providers",params:{org:e.org}})}}),yme=Ae({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/infra-billing",pendingComponent:Vs("billing"),component:Be(()=>Fe(()=>import("./infra-billing-r7uDborI.js"),__vite__mapDeps([394,52,24,321,153,60,32,81,82,23,151,29,30,31,33,19,287,203,204,372,347,326,327,328])))}),wme=Ae({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>ca,path:"/secrets",component:Be(()=>Fe(()=>import("./secrets-cVqtN0h2.js"),__vite__mapDeps([395,43,64,68,226,28,29,30,31,32,33,35,334,326,327,328])))}),Sme=Ae({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>ca,path:"/api-keys",pendingComponent:Vs("connect"),component:Be(()=>Fe(()=>import("./api-keys-BJkSoBEK.js"),__vite__mapDeps([396,391,43,42,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,226,28,24,382,29,30,31,73,12,276,153,22,83,392,252,253,91,92,116,117,195,285,326,327,328])))}),Tme=Ae({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>ca,path:"/buckets",pendingComponent:Vs("storage"),component:Be(()=>Fe(()=>import("./buckets-DjlZI89A.js"),__vite__mapDeps([397,43,64,66,24,226,28,29,30,31,32,33,34,35,165,326,327,328])))}),xme=Ae({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:Lt().int().positive().safe().optional().catch(void 0),git_return:Vt().optional().catch(void 0)}),pendingComponent:Vs("repositories"),component:Be(()=>Fe(()=>import("./repositories-BxFca_8T.js"),__vite__mapDeps([398,399,87,46,64,88,31,28,89,90,91,92,23,48,65,25,93,37,75,47,153,60,51,68,226,24,211,110,186,29,30,32,33,35,66,333,334,326,327,328])))}),kme=Ae({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>ca,path:"/synced-repos",pendingComponent:Vs("storage"),component:Be(()=>Fe(()=>import("./synced-repos-CKmEVjR_.js"),__vite__mapDeps([400,64,226,87,46,88,31,28,89,90,91,92,23,48,65,25,93,37,75,337,326,327,328])))}),Eme=Ae({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>ca,path:"/task-board",component:Be(()=>Fe(()=>import("./tasks-Cr_MFryu.js"),__vite__mapDeps([401,153,60,35,50,63,64,205,81,82,23,151,321,24,32,29,30,31,33,34,320,388,48,41,93,37,75,195,73,12,25,296,295,69,70,110,88,132,128,90,91,77,78,74,3,326,327,328])))}),Cme=Ae({getParentRoute:()=>ca,path:"/tasks",beforeLoad:({params:e})=>{throw ua({to:"/$org/settings/task-board",params:{org:e.org}})}}),Pme=Ae({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>ca,path:"/projects",component:Be(()=>Fe(()=>import("./projects-DjJhykXG.js"),__vite__mapDeps([402,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,24,22,86,28,73,12,85,78,72,4,3,74,75,37,76,87,88,31,89,90,91,92,25,93,94,290,267,271,107,108,109,306,77,195])))}),_me=Ae({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>ca,path:"/members",pendingComponent:Vs("members"),component:Be(()=>Fe(()=>import("./members-DIKOgvUP.js"),__vite__mapDeps([403,404,20,55,88,31,172,164,24,22,23,18,19,21,104,28,29,30,32,33,35,405,269,58,66,69,153,60,81,82,151,64,298,326,327,328])))}),Ame=Ae({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>ca,path:"/roles",pendingComponent:Vs("members"),component:Be(()=>Fe(()=>import("./roles-CuiB0-5P.js"),__vite__mapDeps([406,405,24,55,64,66,18,19,20,21,22,23,154,392,83,51,42,43,44,45,46,47,48,40,49,32,50,33,41,52,53,54,56,2,57,58,59,60,61,62,63,65,67,68,69,70,252,153,253,91,73,12,92,116,117,195,78,124,34,88,31,84,77,327,328]))),validateSearch:es(()=>Se({role:$().optional()}))}),Rme=Ae({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>ca,path:"/sso",component:Be(()=>Fe(()=>import("./sso-CW55fB88.js"),__vite__mapDeps([407,389,24,29,30,31,32,33,34,97,66,326,327,328])))}),Dme=Ae({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>ca,path:"/profile",component:Be(()=>Fe(()=>import("./profile-BYeC90kh.js"),__vite__mapDeps([408,200,201,30,66,67,34,29,31,32,33,172,164,88,61,62,63,319,243,2,64])))}),Ome=Ae({getParentRoute:()=>ca,path:"/agents",beforeLoad:({params:e})=>{throw ua({to:"/$org/settings/projects",params:{org:e.org}})}}),Nme=Ae({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>ca,path:"/automations",component:Be(()=>Fe(()=>import("./automations-CFBniQiY.js"),__vite__mapDeps([409,64,70,22,23,21,296,73,12,85,78,72,4,3,74,75,37,76,315,24,44,55,66,42,43,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,56,2,57,58,59,60,61,62,63,65,67,68,69,326,327,328])))}),Mme=Ae({getParentRoute:()=>ca,path:"/skills",beforeLoad:({params:e})=>{throw ua({to:"/$org/library",params:{org:e.org},search:{section:"skills"},replace:!0})}}),Ime=Ae({getParentRoute:()=>ca,path:"/memory",validateSearch:es(()=>Se({scope:Wt(["user"]).optional()})),beforeLoad:({params:e,search:t})=>{throw ua({to:"/$org/library",params:{org:e.org},search:{section:"memory",...t},replace:!0})}}),Lme=ca.addChildren([dme,ume,pme,mme,Ome,Nme,Mme,Ime,hme,gme,fme,vme,bme,yme,wme,Sme,Tme,xme,kme,Eme,Cme,Pme,_me,Ame,Rme,Dme]),Bme=Ab.addChildren([kpe,Epe,Cpe]),Fme=Yt.addChildren([ype,wpe,Spe,Bme,Tpe,xpe,Ppe,_pe,Ape,Rpe,Dpe,Ope,Npe,Mpe,Ipe,Lpe,Bpe,Fpe,jpe,zpe,qpe,Upe,$pe,Vpe,Hpe,Gpe,ame,ome,nme]),jme=tn.addChildren([fpe,vpe,bpe,Fme,Wpe,Kpe,Ype,Qpe,Zpe,Jpe,Xpe,rme,eme,tme]),zme=_b.addChildren([lme,cme,jme]),qme=Pb.addChildren([zme,sme,Lme]),Ume=JE.addChildren([spe,qme]),$me=Ho.addChildren([Ume,rpe,ipe,lpe,cpe,dpe,XE.addChildren([upe,ppe]),mpe,Kue,Yue,Que,Zue,Jue,Xue,epe]);function Vme(){const e=ye.c(16),t=$o();let a;e[0]!==t?(a=t("common.index.pageNotFound"),e[0]=t,e[1]=a):a=e[1];let o;e[2]!==a?(o=y.jsx("h3",{className:"text-lg font-medium text-foreground",children:a}),e[2]=a,e[3]=o):o=e[3];let n;e[4]!==t?(n=t("common.index.pageNotFoundDescription"),e[4]=t,e[5]=n):n=e[5];let r;e[6]!==n?(r=y.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),e[6]=n,e[7]=r):r=e[7];let i;e[8]!==t?(i=t("common.goBack"),e[8]=t,e[9]=i):i=e[9];let c;e[10]!==i?(c=y.jsx("button",{type:"button",onClick:Hme,className:"text-sm text-primary hover:underline",children:i}),e[10]=i,e[11]=c):c=e[11];let d;return e[12]!==o||e[13]!==r||e[14]!==c?(d=y.jsx("div",{className:"flex h-full items-center justify-center",children:y.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[o,r,c]})}),e[12]=o,e[13]=r,e[14]=c,e[15]=d):d=e[15],d}function Hme(){return window.history.back()}const Rb=wV({routeTree:$me,defaultPendingComponent:Xd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:Vme});function _e(...e){return sF(sE(e))}function Gme(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function $a({error:e,localization:t,localizeErrors:a=!0}){var o;const n="Request failed";if(!a)return e?.message?e.message:(o=e?.error)!=null&&o.message?e.error.message:n;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const r=e.error.code;if(t?.[r])return t[r]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||n}function ac(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}function M0(e,t){for(const a in e)if(e[a]===t)return a}function tm(e,t){let a=$().min(1,{message:t?.PASSWORD_REQUIRED});return e?.minLength&&(a=a.min(e.minLength,{message:t?.PASSWORD_TOO_SHORT})),e?.maxLength&&(a=a.max(e.maxLength,{message:t?.PASSWORD_TOO_LONG})),e?.regex&&(a=a.regex(e.regex,{message:t?.INVALID_PASSWORD})),a}var Wme={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"},Kme={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"},Yme={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."},Qme={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."},Zme={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Jme={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Xme={...Zme,...Jme},ehe={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},the={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},ahe={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},ohe={INVALID_SESSION_TOKEN:"Invalid session token"},nhe={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"},rhe={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"},she={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"},ihe={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"},lhe={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"},che={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"},dhe={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"},uhe={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",...Qme,...Wme,...Kme,...Yme,...Xme,...ehe,...the,...ahe,...ohe,...nhe,...rhe,...she,...ihe,...lhe,...che,...dhe},phe={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"},dN={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},uN={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const d5=A.createContext({});function u5(){return A.useContext(d5)}var yT,pN;function mhe(){if(pN)return yT;pN=1;var e=function(){};return yT=e,yT}var hhe=mhe();const ghe=Yl(hhe);function fhe({async:e,appendTo:t,defer:a,id:o,nonce:n,src:r}){const i=document.createElement("script");e!==void 0&&(i.async=e),a!==void 0&&(i.defer=a),o&&(i.id=o),n&&i.setAttribute("nonce",n),i.src=r,(t==="head"?document.head:document.body).appendChild(i)}var vhe=function(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(a[o[n]]=e[o[n]]);return a};let Op=null,am=!1;const Ov=new Set,Nv=new Set,bhe=typeof window<"u",Ad="___grecaptcha_cfg",p5=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function yhe(){if(!bhe)return;function e(a){if(am)a();else{window[Ad]||(window[Ad]={});const o=window[Ad];o.fns||(o.fns=[]),o.fns.push(a)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){am=!0;for(const a of Nv)a();Nv.clear()}window[p5]=t}function whe({language:e,onLoadCallbackName:t,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 t&&c.set("onload",t),e&&c.set("hl",e),`https://www.${r}/recaptcha/${i}?${c.toString()}`}function She({language:e,render:t,scriptProps:a,useEnterprise:o,useRecaptchaNet:n}){const r={id:"google-recaptcha-v3"},i=whe({language:e,onLoadCallbackName:p5,render:t,useEnterprise:o,useRecaptchaNet:n});if(Op){if(Op!==i)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}Op=i,fhe(Object.assign(Object.assign(Object.assign({},r),a),{src:i}))}function The(e){if(!window[Ad])return;const t=window[Ad];t.clients&&delete t.clients[e]}function xhe(e,t){var{onLoadCallback:a,onLoadCallbackName:o}=t,n=vhe(t,["onLoadCallback","onLoadCallbackName"]);if(Ov.size===0&&yhe(),She(n),Ov.add(e),a&&(am?a():Nv.add(a)),o){let r=function(){if(!o)return;const i=window[o];typeof i=="function"&&i()};am?r():Nv.add(r)}}function khe(e){var t,a,o;Ov.delete(e),Ov.size===0&&(window.grecaptcha=void 0,window[Ad]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(a=document.querySelector(`script[src="${Op}"]`))===null||a===void 0||a.remove(),(o=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||o===void 0||o.remove(),Op=null,am=!1)}let mN=!1;function Ehe({container:e,children:t,language:a,reCaptchaKey:o,scriptProps:n,useEnterprise:r,useRecaptchaNet:i}){var c,d,u,m,h,f,v;const b=A.useId(),[w,x]=A.useState(null),[T,k]=A.useState(null),C=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 xhe(b,{language:a,onLoadCallback:R,onLoadCallbackName:n?.onLoadCallbackName,render:e?.element?"explicit":o,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:r,useRecaptchaNet:i}),()=>{khe(b),x(null)}},[e?.element,b,a,o,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,r,i]),A.useEffect(()=>{var R,O,L;if(!e?.element||!w?.render)return;const U={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((R=e.parameters)===null||R===void 0?void 0:R.badge)||"inline",callback:e.parameters.callback,sitekey:o,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},B=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!B)throw new Error("reCAPTCHA container element not found");const z=w.render(B,U);return!((O=e?.parameters)===null||O===void 0)&&O.hidden&&(mN||(ghe(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),mN=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),k(z),C.current=!0,()=>{k(null),C.current=!1,The(z),B.innerHTML=""}},[e?.element,(c=e?.parameters)===null||c===void 0?void 0:c.badge,(d=e?.parameters)===null||d===void 0?void 0:d.hidden,(u=e?.parameters)===null||u===void 0?void 0:u.callback,(m=e?.parameters)===null||m===void 0?void 0:m.errorCallback,(h=e?.parameters)===null||h===void 0?void 0:h.expiredCallback,(f=e?.parameters)===null||f===void 0?void 0:f.tabindex,(v=e?.parameters)===null||v===void 0?void 0:v.theme,w,o]);const E=!!e?.element,_=E?T:o,D=A.useMemo(()=>_!==null&&w?.execute?R=>{if(_===null||!w?.execute)throw new Error("reCAPTCHA has not been loaded");return E&&!C.current?(console.warn("Client ID not mounted"),null):w.execute(_,{action:R})}:void 0,[_,w,E]);return y.jsx(d5.Provider,{value:{container:e?.element,executeRecaptcha:D,reCaptchaInstance:w},children:t})}var Che=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const a={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,a),this.notify(e)}setRefetching(e,t){const a=this.cache.get(e);a&&(a.isRefetching=t,this.notify(e))}clear(e){if(e)this.cache.delete(e),this.inFlightRequests.delete(e),this.notify(e);else{this.cache.clear(),this.inFlightRequests.clear();const t=Array.from(this.listeners.keys());for(const a of t)this.notify(a)}}getInFlightRequest(e){return this.inFlightRequests.get(e)}setInFlightRequest(e,t){this.inFlightRequests.set(e,t)}removeInFlightRequest(e){this.inFlightRequests.delete(e)}subscribe(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{const a=this.listeners.get(e);a&&(a.delete(t),a.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const a=Array.from(t);for(const o of a)o()}}},Jn=new Che;function Phe(){return()=>{}}function Hs(){return A.useSyncExternalStore(Phe,()=>!0,()=>!1)}function m5(){const[e,t]=A.useState();return A.useEffect(()=>{const a=()=>{const n=document.documentElement.getAttribute("lang");t(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:e}}function eC(){const[e,t]=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"));t(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:e}}function _he({children:e}){const t=Hs(),{captcha:a}=A.useContext(wt);return a?.provider!=="google-recaptcha-v3"?e:y.jsxs(Ehe,{reCaptchaKey:a.siteKey,useEnterprise:a.enterprise,useRecaptchaNet:a.recaptchaNet,children:[t&&y.jsx("style",{children:`
189
+ `),h=d;m.length>h;h++){var f=m[h];if(1024>=f.length){var v=m2.test(f)?f.replace(m2,"$1"):f;if(!v.match(/\S*Error: /)){for(var b of r){var w=b(v,o);if(w){u.push(w);break}}if(u.length>=50)break}}}return(function(x){if(!x.length)return[];var T=Array.from(x);return T.reverse(),T.slice(0,50).map((k=>{return Me({},k,{filename:k.filename||(C=T,C[C.length-1]||{}).filename,function:k.function||Vd});var C}))})(u)}})("web:javascript",$le,Gle)),this._instance=e,this.fo=(t=(a=this._instance.persistence)==null?void 0:a.get_property(n0))!==null&&t!==void 0?t:[],this.mo=gv(this.yo()),this.bo=new nce(this.mo)}onConfigChange(){this.mo=gv(this.yo()),this.bo.setConfig(this.mo)}onRemoteConfig(e){var t,a,o;if("errorTracking"in e){var n=(t=(a=e.errorTracking)==null?void 0:a.suppressionRules)!==null&&t!==void 0?t:[],r=(o=e.errorTracking)==null?void 0:o.captureExtensionExceptions;this.fo=n,this._instance.persistence&&this._instance.persistence.register({[n0]:this.fo,[r0]:r})}}get _o(){var e,t=!!this._instance.get_property(r0),a=this._instance.config.error_tracking.captureExtensionExceptions;return(e=a??t)!==null&&e!==void 0&&e}buildProperties(e,t){return this.po.buildFromUnknown(e,{syntheticException:t?.syntheticException,mechanism:{handled:t?.handled}})}addExceptionStep(e,t){if(this.mo.enabled)try{if(!Ca(e)||e.trim().length===0)return void Rs.warn("Ignoring exception step because message must be a non-empty string");var a=this.wo(t),{sanitizedProperties:o,droppedKeys:n}=(function(r){if(!r)return{sanitizedProperties:{},droppedKeys:[]};var i=[];return{sanitizedProperties:Object.keys(r).reduce(((c,d)=>oce.has(d)?(i.push(d),c):(c[d]=r[d],c)),{}),droppedKeys:i}})(a);n.length>0&&Rs.warn("Ignoring reserved exception step fields",{droppedKeys:n}),this.bo.add(Me({[mv]:e,[hv]:new Date().toISOString()},o))}catch(r){Rs.error("Failed to add exception step. Ignoring breadcrumb.",r)}}sendExceptionEvent(e){try{var t=e.$exception_list;if(this.Io(t)){if(this.Co(t))return this.So("Exception dropped: matched a suppression rule"),void Rs.info("Skipping exception capture because a suppression rule matched");if(!this._o&&this.xo(t))return this.So("Exception dropped: thrown by a browser extension"),void Rs.info("Skipping exception capture because it was thrown by an extension");if(!this._instance.config.error_tracking.__capturePostHogExceptions&&this.ko(t))return this.So("Exception dropped: thrown by the PostHog SDK"),void Rs.info("Skipping exception capture because it was thrown by the PostHog SDK")}var a=this.mo.enabled&&Pt(e.$exception_steps)?this.To(e):e;try{var o=this._instance.capture("$exception",a,{_noTruncate:!0,_batchKey:"exceptionEvent",en:!0});return o&&this.bo.clear(),o}catch(n){return Rs.error("Failed to capture exception event. Dropping this exception.",n),void this.bo.clear()}}catch(n){return void Rs.error("Failed to process exception event. Ignoring this exception.",n)}}To(e){try{var t=this.bo.getAttachable();return t.length===0?e:Me({},e,{$exception_steps:t})}catch(a){return Rs.error("Failed to read buffered exception steps. Capturing exception without steps.",a),e}}So(e){this.mo.enabled&&this.bo.add({[mv]:e,[hv]:new Date().toISOString()})}wo(e){return Ba(e)?Me({},e):{}}yo(){var e,t;return(e=(t=this._instance.config.error_tracking)==null?void 0:t.exception_steps)!==null&&e!==void 0?e:{}}Co(e){if(e.length===0)return!1;var t=e.reduce(((a,o)=>{var{type:n,value:r}=o;return Ca(n)&&n.length>0&&a.$exception_types.push(n),Ca(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=S4[n.operator],c=Bt(n.value)?n.value:[n.value],d=(r=t[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(e){return e.flatMap((t=>{var a,o;return(a=(o=t.stacktrace)==null?void 0:o.frames)!==null&&a!==void 0?a:[]})).some((t=>t.filename&&t.filename.startsWith("chrome-extension://")))}ko(e){if(e.length>0){var t,a,o,n,r=(t=(a=e[0].stacktrace)==null?void 0:a.frames)!==null&&t!==void 0?t:[],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(e){return!Pt(e)&&Bt(e)}}},hde=Me({productTours:class{get ni(){return this._instance.persistence}constructor(e){this.Ao=null,this.Eo=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){"productTours"in e&&(this.ni&&this.ni.register({[i0]:!!e.productTours}),this.loadIfEnabled())}loadIfEnabled(){var e,t;this.Ao||(e=this._instance).config.disable_product_tours||(t=e.persistence)==null||!t.get_property(i0)||this.ur((()=>this.Ro()))}ur(e){var t,a;(t=at.__PosthogExtensions__)!=null&&t.generateProductTours?e():(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"product-tours",(o=>{o?Z2.error("Could not load product tours script",o):e()}))}Ro(){var e;!this.Ao&&(e=at.__PosthogExtensions__)!=null&&e.generateProductTours&&(this.Ao=at.__PosthogExtensions__.generateProductTours(this._instance,!0))}getProductTours(e,t){if(t===void 0&&(t=!1),!Bt(this.Eo)||t){var a=this.ni;if(a){var o=a.props[Pf];if(Bt(o)&&!t)return this.Eo=o,void e(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 Z2.error(i),void e([],{isLoaded:!1,error:i})}var c=Bt(n.json.product_tours)?n.json.product_tours:[];this.Eo=c,a&&a.register({[Pf]:c}),e(c,{isLoaded:!0})}})}else e(this.Eo,{isLoaded:!0})}getActiveProductTours(e){Pt(this.Ao)?e([],{isLoaded:!1,error:"Product tours not loaded"}):this.Ao.getActiveProductTours(e)}showProductTour(e){var t;(t=this.Ao)==null||t.showTourById(e)}previewTour(e){this.Ao?this.Ao.previewTour(e):this.ur((()=>{var t;this.Ro(),(t=this.Ao)==null||t.previewTour(e)}))}dismissProductTour(){var e;(e=this.Ao)==null||e.dismissTour("user_clicked_skip")}nextStep(){var e;(e=this.Ao)==null||e.nextStep()}previousStep(){var e;(e=this.Ao)==null||e.previousStep()}clearCache(){var e;this.Eo=null,(e=this.ni)==null||e.unregister(Pf)}resetTour(e){var t;(t=this.Ao)==null||t.resetTour(e)}resetAllTours(){var e;(e=this.Ao)==null||e.resetAllTours()}cancelPendingTour(e){var t;(t=this.Ao)==null||t.cancelPendingTour(e)}}},xb),gde={siteApps:class{constructor(e){this._instance=e,this.No=[],this.apps={}}get isEnabled(){return!!this._instance.config.opt_in_site_apps}Mo(e,t){if(t){var a=this.globalsForEvent(t);this.No.push(a),this.No.length>1e3&&(this.No=this.No.slice(10))}}get siteAppLoaders(){var e;return(e=at._POSTHOG_REMOTE_CONFIG)==null||(e=e[this._instance.config.token])==null?void 0:e.siteApps}initialize(){if(this.isEnabled){var e=this._instance._addCaptureHook(this.Mo.bind(this));this.Fo=()=>{e(),this.No=[],this.Fo=void 0}}}globalsForEvent(e){var t,a,o,n,r,i,c;if(!e)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:v,$set:b}=e;return{event:Me({},T3(e,rde),{properties:Me({},e.properties,b?{$set:Me({},(t=(a=e.properties)==null?void 0:a.$set)!==null&&t!==void 0?t:{},b)}:{},v?{$set_once:Me({},(o=(n=e.properties)==null?void 0:n.$set_once)!==null&&o!==void 0?o:{},v)}:{}),elements_chain:(r=(i=e.properties)==null?void 0:i.$elements_chain)!==null&&r!==void 0?r:"",distinct_id:(c=e.properties)==null?void 0:c.distinct_id}),person:{properties:this._instance.get_property("$stored_person_properties")},groups:d}}setupSiteApp(e){var t=this.apps[e.id],a=()=>{var i;!t.errored&&this.No.length&&(Ti.info("Processing "+this.No.length+" events for site app with id "+e.id),this.No.forEach((c=>t.processEvent==null?void 0:t.processEvent(c))),t.processedBuffer=!0),Object.values(this.apps).every((c=>c.processedBuffer||c.errored))&&((i=this.Fo)==null||i.call(this))},o=!1,n=i=>{t.errored=!i,t.loaded=!0,Ti.info("Site app with id "+e.id+" "+(i?"loaded":"errored")),o&&a()};try{var{processEvent:r}=e.init({posthog:this._instance,callback(i){n(i)}});r&&(t.processEvent=r),o=!0}catch(i){Ti.error(J2+e.id,i),n(!1)}if(o&&t.loaded)try{a()}catch(i){Ti.error("Error while processing buffered events PostHog app with config id "+e.id,i),t.errored=!0}}Oo(){var e=this.siteAppLoaders||[];for(var t of e)this.apps[t.id]={id:t.id,loaded:!1,errored:!1,processedBuffer:!1};for(var a of e)this.setupSiteApp(a)}Po(e){if(Object.keys(this.apps).length!==0){var t=this.globalsForEvent(e);for(var a of Object.values(this.apps))try{a.processEvent==null||a.processEvent(t)}catch(o){Ti.error("Error while processing event "+e.event+" for site app "+a.id,o)}}}onRemoteConfig(e){var t,a,o,n=this;if((t=this.siteAppLoaders)!=null&&t.length)return this.isEnabled?(this.Oo(),void this._instance.on("eventCaptured",(d=>this.Po(d)))):void Ti.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.');if((a=this.Fo)==null||a.call(this),(o=e.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 Ti.error(J2+d,m)}))};for(var{id:i,url:c}of e.siteApps)r(i)}else Ti.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}}},fde={tracingHeaders:class{constructor(e){this.Lo=void 0,this.Do=void 0,this.so=()=>{var t,a,o=this.Bo()||[];$e(this.Lo)&&((t=at.__PosthogExtensions__)==null||(t=t.tracingHeadersPatchFns)==null||t._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=e}initialize(){this.startIfEnabledOrStop()}ur(e){var t,a;(t=at.__PosthogExtensions__)!=null&&t.tracingHeadersPatchFns&&e(),(a=at.__PosthogExtensions__)==null||a.loadExternalDependency==null||a.loadExternalDependency(this._instance,"tracing-headers",(o=>{if(o)return ode.error("failed to load script",o);e()}))}Bo(){var e;return(e=this._instance.config.addTracingHeaders)!==null&&e!==void 0?e:this._instance.config.__add_tracing_headers}startIfEnabledOrStop(){var e,t;this.Bo()?this.ur(this.so):((e=this.Lo)==null||e.call(this),(t=this.Do)==null||t.call(this),this.Lo=void 0,this.Do=void 0)}}},vde=Me({surveys:class{get Bt(){return this._instance.config}constructor(e){this.jo=void 0,this._surveyManager=null,this.$o=!1,this.qo=[],this.Zo=null,this._instance=e,this._surveyEventReceiver=null}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this.Bt.disable_surveys){var t=e.surveys;if(Pt(t))return na.warn("Flags not loaded yet. Not loading surveys.");var a=Bt(t);this.jo=a?t.length>0:t,na.info("flags response received, isSurveysEnabled: "+this.jo),this.loadIfEnabled()}}reset(){localStorage.removeItem("lastSeenSurveyDate");for(var e=[],t=0;t<localStorage.length;t++){var a=localStorage.key(t);(a!=null&&a.startsWith(P0)||a!=null&&a.startsWith("inProgressSurvey_"))&&e.push(a)}e.forEach((o=>localStorage.removeItem(o)))}loadIfEnabled(){if(!this._surveyManager)if(this.$o)na.info("Already initializing surveys, skipping...");else if(this.Bt.disable_surveys)na.info(X2);else if(this.Bt.cookieless_mode&&this._instance.consent.isOptedOut())na.info("Not loading surveys in cookieless mode without consent.");else{var e=at?.__PosthogExtensions__;if(e){if(!$e(this.jo)||this.Bt.advanced_enable_surveys){var t=this.jo||this.Bt.advanced_enable_surveys;this.$o=!0;try{var a=e.generateSurveys;if(a)return void this.Vo(a,t);var o=e.loadExternalDependency;if(!o)return void this.Ho(qE);o(this._instance,"surveys",(n=>{n||!e.generateSurveys?this.Ho("Could not load surveys script",n):this.Vo(e.generateSurveys,t)}))}catch(n){throw this.Ho("Error initializing surveys",n),n}finally{this.$o=!1}}}else na.error("PostHog Extensions not found.")}}Vo(e,t){this._surveyManager=e(this._instance,t),this._surveyEventReceiver=new lde(this._instance),na.info("Surveys loaded successfully"),this.zo({isLoaded:!0})}Ho(e,t){na.error(e,t),this.zo({isLoaded:!1,error:e})}onSurveysLoaded(e){return this.qo.push(e),this._surveyManager&&this.zo({isLoaded:!0}),()=>{this.qo=this.qo.filter((t=>t!==e))}}getSurveys(e,t){if(t===void 0&&(t=!1),this.Bt.disable_surveys)return na.info(X2),e([]);var a,o=this._instance.get_property(p0);if(o&&!t)return e(o,{isLoaded:!0});typeof Promise<"u"&&this.Zo?this.Zo.then((n=>{var{surveys:r,context:i}=n;return e(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;na.error(c);var d={isLoaded:!1,error:c};return e([],d),void(a==null||a({surveys:[],context:d}))}var u,m=n.json.surveys||[],h=m.filter((v=>(function(b){return!(!b.start_date||b.end_date)})(v)&&((function(b){var w;return!((w=b.conditions)==null||(w=w.events)==null||(w=w.values)==null||!w.length)})(v)||(function(b){var w;return!((w=b.conditions)==null||(w=w.actions)==null||(w=w.values)==null||!w.length)})(v))));h.length>0&&((u=this._surveyEventReceiver)==null||u.register(h)),(r=this._instance.persistence)==null||r.register({[p0]:m});var f={isLoaded:!0};e(m,f),a?.({surveys:m,context:f})}}))}zo(e){for(var t of this.qo)try{if(!e.isLoaded)return t([],e);this.getSurveys(t)}catch(a){na.error("Error in survey callback",a)}}getActiveMatchingSurveys(e,t){if(t===void 0&&(t=!1),!Pt(this._surveyManager))return this._surveyManager.getActiveMatchingSurveys(e,t);na.warn("init was not called")}Uo(e){var t=null;return this.getSurveys((a=>{var o;t=(o=a.find((n=>n.id===e)))!==null&&o!==void 0?o:null})),t}Yo(e){if(Pt(this._surveyManager))return{eligible:!1,reason:gT};var t=typeof e=="string"?this.Uo(e):e;return t?this._surveyManager.checkSurveyEligibility(t):{eligible:!1,reason:"Survey not found"}}canRenderSurvey(e){if(Pt(this._surveyManager))return na.warn("init was not called"),{visible:!1,disabledReason:gT};var t=this.Yo(e);return{visible:t.eligible,disabledReason:t.reason}}canRenderSurveyAsync(e,t){return Pt(this._surveyManager)?(na.warn("init was not called"),Promise.resolve({visible:!1,disabledReason:gT})):new Promise((a=>{this.getSurveys((o=>{var n,r=(n=o.find((c=>c.id===e)))!==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"})}),t)}))}renderSurvey(e,t,a){var o;if(Pt(this._surveyManager))na.warn("init was not called");else{var n=typeof e=="string"?this.Uo(e):e;if(n!=null&&n.id)if(Uce.includes(n.type)){var r=ze?.querySelector(t);if(r)return(o=n.appearance)!=null&&o.surveyPopupDelaySeconds?(na.info("Rendering survey "+n.id+" with delay of "+n.appearance.surveyPopupDelaySeconds+" seconds"),void setTimeout((()=>{var i,c;na.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),na.info("Survey "+n.id+" rendered")}),1e3*n.appearance.surveyPopupDelaySeconds)):void this._surveyManager.renderSurvey(n,r,a);na.warn("Survey element not found")}else na.warn("Surveys of type "+n.type+" cannot be rendered in the app");else na.warn("Survey not found")}}displaySurvey(e,t){var a;if(Pt(this._surveyManager))na.warn("init was not called");else{var o=this.Uo(e);if(o){var n=o;if((a=o.appearance)!=null&&a.surveyPopupDelaySeconds&&t.ignoreDelay&&(n=Me({},o,{appearance:Me({},o.appearance,{surveyPopupDelaySeconds:0})})),t.displayType!==S0.Popover&&t.initialResponses&&na.warn("initialResponses is only supported for popover surveys. prefill will not be applied."),t.ignoreConditions===!1){var r=this.canRenderSurvey(o);if(!r.visible)return void na.warn("Survey is not eligible to be displayed: ",r.disabledReason)}t.displayType!==S0.Inline?this._surveyManager.handlePopoverSurvey(n,t):this.renderSurvey(n,t.selector,t.properties)}else na.warn("Survey not found")}}cancelPendingSurvey(e){Pt(this._surveyManager)?na.warn("init was not called"):this._surveyManager.cancelSurvey(e)}handlePageUnload(){var e;(e=this._surveyManager)==null||e.handlePageUnload()}}},xb),bde={toolbar:class{constructor(e){this.instance=e}Go(e){at.ph_toolbar_state=e}Wo(){var e;return(e=at.ph_toolbar_state)!==null&&e!==void 0?e:0}initialize(){return this.maybeLoadToolbar()}maybeLoadToolbar(e,t,a){if(e===void 0&&(e=void 0),t===void 0&&(t=void 0),a===void 0&&(a=void 0),a4(this.instance.config)||!ge||!ze)return!1;e=e??ge.location,a=a??ge.history;try{if(!t){try{ge.localStorage.setItem("test","test"),ge.localStorage.removeItem("test")}catch{return!1}t=ge?.localStorage}var o,n=cde||Cv(e.hash,"__posthog")||Cv(e.hash,"state"),r=n?g2((()=>JSON.parse(atob(decodeURIComponent(n)))))||g2((()=>JSON.parse(decodeURIComponent(n)))):null;return r&&r.action==="ph_authorize"?((o=r).source="url",o&&Object.keys(o).length>0&&(r.desiredHash?e.hash=r.desiredHash:a?a.replaceState(a.state,"",e.pathname+e.search):e.hash="")):((o=JSON.parse(t.getItem(eN)||"{}")).source="localstorage",delete o.userIntent),!(!o.token||this.instance.config.token!==o.token||(this.loadToolbar(o),0))}catch{return!1}}Xo(e){var t=at.ph_load_toolbar||at.ph_load_editor;!Pt(t)&&Os(t)?t(e,this.instance):tN.warn("No toolbar load function found")}loadToolbar(e){var t=!(ze==null||!ze.getElementById(J3));if(!ge||t)return!1;var a=this.instance.requestRouter.region==="custom"&&this.instance.config.advanced_disable_toolbar_metrics,o=Me({token:this.instance.config.token},e,{apiURL:this.instance.requestRouter.endpointFor("ui")},a?{instrument:!1}:{});if(ge.localStorage.setItem(eN,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 tN.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(e){return this.loadToolbar(e)}maybeLoadEditor(e,t,a){return e===void 0&&(e=void 0),t===void 0&&(t=void 0),a===void 0&&(a=void 0),this.maybeLoadToolbar(e,t,a)}}},yde=Me({experiments:Bo},xb),wde={conversations:class{constructor(e){this.Ko=void 0,this._conversationsManager=null,this.Qo=!1,this.ea=null,this._instance=e}initialize(){this.loadIfEnabled()}onRemoteConfig(e){if(!this._instance.config.disable_conversations){var t=e.conversations;Pt(t)||(Zr(t)?this.Ko=t:(this.Ko=t.enabled,this.ea=t),this.loadIfEnabled())}}reset(){var e;(e=this._conversationsManager)==null||e.reset(),this._conversationsManager=null,this.Ko=void 0,this.ea=null}loadIfEnabled(){if(!(this._conversationsManager||this.Qo||this._instance.config.disable_conversations||a4(this._instance.config)||this._instance.config.cookieless_mode&&this._instance.consent.isOptedOut())){var e=at?.__PosthogExtensions__;if(e&&!$e(this.Ko)&&this.Ko)if(this.ea&&this.ea.token){this.Qo=!0;try{var t=e.initConversations;if(t)return this.ta(t),void(this.Qo=!1);var a=e.loadExternalDependency;if(!a)return void this.ra(qE);a(this._instance,"conversations",(o=>{o||!e.initConversations?this.ra("Could not load conversations script",o):this.ta(e.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(e){if(this.ea)try{this._conversationsManager=e(this.ea,this._instance),Zn.info("Conversations loaded successfully")}catch(t){this.ra("Error completing conversations initialization",t)}else Zn.error("Cannot complete initialization: remote config is null")}ra(e,t){Zn.error(e,t),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&&!Us(this._conversationsManager)}isVisible(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.isVisible())!==null&&e!==void 0&&e}sendMessage(e,t,a){var o=this;return tr((function*(){return o._conversationsManager?o._conversationsManager.sendMessage(e,t,a):(Zn.warn(Pl),null)}))()}getMessages(e,t){var a=this;return tr((function*(){return a._conversationsManager?a._conversationsManager.getMessages(e,t):(Zn.warn(Pl),null)}))()}markAsRead(e){var t=this;return tr((function*(){return t._conversationsManager?t._conversationsManager.markAsRead(e):(Zn.warn(Pl),null)}))()}getTickets(e){var t=this;return tr((function*(){return t._conversationsManager?t._conversationsManager.getTickets(e):(Zn.warn(Pl),null)}))()}requestRestoreLink(e){var t=this;return tr((function*(){return t._conversationsManager?t._conversationsManager.requestRestoreLink(e):(Zn.warn(Pl),null)}))()}restoreFromToken(e){var t=this;return tr((function*(){return t._conversationsManager?t._conversationsManager.restoreFromToken(e):(Zn.warn(Pl),null)}))()}restoreFromUrlToken(){var e=this;return tr((function*(){return e._conversationsManager?e._conversationsManager.restoreFromUrlToken():(Zn.warn(Pl),null)}))()}getCurrentTicketId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getCurrentTicketId())!==null&&e!==void 0?e:null}getWidgetSessionId(){var e,t;return(e=(t=this._conversationsManager)==null?void 0:t.getWidgetSessionId())!==null&&e!==void 0?e:null}un(){var e;(e=this._conversationsManager)==null||e.setIdentity()}hn(){var e;(e=this._conversationsManager)==null||e.clearIdentity()}}},Sde={logs:class{constructor(e){var t;this.ia=!1,this.na=!1,this.Gt=Ta("[logs]"),this.sa=[],this.oa=0,this.aa=0,this.la=!1,this._instance=e,this._instance&&(t=this._instance.config.logs)!=null&&t.captureConsoleLogs&&(this.ia=!0)}initialize(){this.loadIfEnabled()}onRemoteConfig(e){var t,a=(t=e.logs)==null?void 0:t.captureConsoleLogs;!Pt(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 e=at?.__PosthogExtensions__;if(e){var t=e.loadExternalDependency;t?t(this._instance,"logs",(a=>{var o;a||(o=e.logs)==null||!o.initializeLogs?this.Gt.error("Could not load logs script",a):(e.logs.initializeLogs(this._instance),this.na=!0)})):this.Gt.error(qE)}else this.Gt.error("PostHog Extensions not found.")}}captureLog(e){var t,a,o,n,r,i;if(this._instance.is_capturing())if(e&&e.body){var c=(t=(a=this._instance.config.logs)==null?void 0:a.flushIntervalMs)!==null&&t!==void 0?t: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 v=h.level||"info",{text:b,number:w}=U3[v]||Ble,x=String(Date.now())+"000000",T={};f.distinctId&&(T.posthogDistinctId=f.distinctId),f.sessionId&&(T.sessionId=f.sessionId),f.currentUrl&&(T["url.full"]=f.currentUrl),f.screenName&&(T["screen.name"]=f.screenName),f.appState&&(T["app.state"]=f.appState),f.activeFeatureFlags&&f.activeFeatureFlags.length>0&&(T.feature_flags=f.activeFeatureFlags);var k=Me({},T,h.attributes||{}),C={timeUnixNano:x,observedTimeUnixNano:x,severityNumber:w,severityText:b,body:{stringValue:h.body},attributes:p2(k)};return h.trace_id&&(C.traceId=h.trace_id),h.span_id&&(C.spanId=h.span_id),$e(h.trace_flags)||(C.flags=h.trace_flags),C})(e,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:(e,t)=>this.captureLog({body:e,level:"trace",attributes:t}),debug:(e,t)=>this.captureLog({body:e,level:"debug",attributes:t}),info:(e,t)=>this.captureLog({body:e,level:"info",attributes:t}),warn:(e,t)=>this.captureLog({body:e,level:"warn",attributes:t}),error:(e,t)=>this.captureLog({body:e,level:"error",attributes:t}),fatal:(e,t)=>this.captureLog({body:e,level:"fatal",attributes:t})}),this.ca}flushLogs(e){if(this.jr&&(clearTimeout(this.jr),this.jr=void 0),this.sa.length!==0){var t=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:p2(c)},scopeLogs:[{scope:{name:d,version:u},logRecords:i}]}]}})(t.map((i=>i.record)),o,Jo.LIB_NAME,Jo.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:e})}}ha(){var e,t;this.jr||(this.jr=setTimeout((()=>{this.jr=void 0,this.flushLogs()}),(e=(t=this._instance.config.logs)==null?void 0:t.flushIntervalMs)!==null&&e!==void 0?e:3e3))}ua(){var e,t={};if(t.distinctId=this._instance.get_distinct_id(),this._instance.sessionManager){var{sessionId:a}=this._instance.sessionManager.checkAndGetSessionAndWindowId(!0);t.sessionId=a}if(at!=null&&(e=at.location)!=null&&e.href&&(t.currentUrl=at.location.href),this._instance.featureFlags){var o=this._instance.featureFlags.getFlags();o&&o.length>0&&(t.activeFeatureFlags=o)}return t}}},Tde=Me({},xb,ude,pde,mde,hde,gde,vde,fde,bde,yde,wde,Sde);ar.__defaultExtensionClasses=Me({},Tde);var rN,$s=(rN=Rp[pd]=new ar,(function(){function e(){e.done||(e.done=!0,k4=!1,va(Rp,(function(t){t._dom_loaded()})))}ze!=null&&ze.addEventListener?ze.readyState==="complete"?e():Za(ze,"DOMContentLoaded",e,{capture:!1}):ge&&Ue.error("Browser doesn't support `document.addEventListener` so PostHog couldn't be initialized")})(),rN);let Fs=!1,O0=null,sN=!1;const KE="studio:lp-distinct-id",N4="mesh:lp-distinct-id",vT="/api/_reports/link-token/",xde=1440*60*1e3;function M4(e){const t="https://analytics.invalid",a=/^[a-z][a-z\d+.-]*:\/\//i.test(e),o=e.startsWith("//");try{const n=new URL(e,t);let r=!1;for(const i of["key","d"])n.searchParams.has(i)&&(n.searchParams.delete(i),r=!0);return n.pathname.startsWith(vT)&&n.pathname!==vT&&(n.pathname=`${vT}redacted`,r=!0),r?a?n.toString():o?`//${n.host}${n.pathname}${n.search}${n.hash}`:`${n.pathname}${n.search}${n.hash}`:e}catch{return e}}function bT(e){return Object.fromEntries(Object.entries(e).map(([t,a])=>[t,typeof a=="string"?M4(a):a]))}const kde=e=>e?(e.properties=bT(e.properties),e.$set&&(e.$set=bT(e.$set)),e.$set_once&&(e.$set_once=bT(e.$set_once)),e):null;function I4(){try{const e=window.localStorage.getItem(KE)??window.localStorage.getItem(N4);if(!e)return;const{id:t,ts:a}=JSON.parse(e);return typeof t!="string"||!t||typeof a!="number"?void 0:Date.now()-a<=xde?t:void 0}catch{return}}function Ede(){try{window.localStorage.removeItem(KE),window.localStorage.removeItem(N4)}catch{}}function Cde(){try{const e=new URL(window.location.href),t=e.searchParams.get("ph_did");t&&(window.localStorage.setItem(KE,JSON.stringify({id:t,ts:Date.now()})),e.searchParams.delete("ph_did"),window.history.replaceState(window.history.state,"",e.toString()));const a=t??I4();return a?Object.keys(window.localStorage).some(n=>n.startsWith("ph_")&&n.endsWith("_posthog"))?void 0:a:void 0}catch{return}}function Pde(e){const t=I4();if(t&&(Ede(),t!==e))try{$s.alias(t)}catch{}}function _de(e,t){if(Fs||typeof window>"u")return;const a=Cde();$s.init(e,{api_host:t,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:kde,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:M4(o.name)}:{}})},person_profiles:"identified_only"}),Fs=!0}function Ade(e,t){Fs&&($s.identify(e,t),Pde(e))}function Rde(){Fs&&($s.reset(),O0=null)}function L4(e,t){Fs&&$s.capture(e,t)}function f0e(){return Fs}function v0e(){if(!Fs||sN||typeof performance>"u")return;sN=!0;const e=performance.getEntriesByType("navigation")[0],t=a=>{const o=performance.getEntriesByName(a,"measure")[0];return o?Math.round(o.duration):void 0};L4("perf_app_bootstrap",{nav_type:e?.type,ttfb_ms:e?Math.round(e.responseStart):void 0,dom_interactive_ms:e?Math.round(e.domInteractive):void 0,dom_content_loaded_ms:e?Math.round(e.domContentLoadedEventEnd):void 0,config_fetch_ms:t("studio:config-fetch"),active_org_fetch_ms:t("studio:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:BJ(),org_cache_restored:FJ()})}function b0e(e,t){Fs&&e!==O0&&($s.group("organization",e,t),O0=e)}function B4(e,t){if(Fs)try{$s.captureException(e,t)}catch{}}const Dde=["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 Ode(e){const t=ye.c(3),{children:a}=e;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=y.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:Dde}}),t[0]=o):o=t[0];let n;return t[1]!==a?(n=y.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[o,y.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:a})]}),t[1]=a,t[2]=n):n=t[2],n}function F4(e){const t=ye.c(20),{orgName:a}=e,o=$o(),n=Nde;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=y.jsx("div",{className:"bg-muted p-3 rounded-full","aria-hidden":"true",children:y.jsx(e3,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=r):r=t[0];let i;t[1]!==o?(i=o("common.archivedOrgScreen.orgUnavailable"),t[1]=o,t[2]=i):i=t[2];let c;t[3]!==i?(c=y.jsx("h3",{className:"text-lg font-medium",children:i}),t[3]=i,t[4]=c):c=t[4];let d;t[5]!==a||t[6]!==o?(d=a?o("common.archivedOrgScreen.deletedWithName",{orgName:a}):o("common.archivedOrgScreen.deletedGeneric"),t[5]=a,t[6]=o,t[7]=d):d=t[7];let u;t[8]!==d?(u=y.jsx("p",{className:"text-sm text-muted-foreground",children:d}),t[8]=d,t[9]=u):u=t[9];let m;t[10]!==c||t[11]!==u?(m=y.jsxs("div",{className:"space-y-2",children:[c,u]}),t[10]=c,t[11]=u,t[12]=m):m=t[12];let h;t[13]!==o?(h=o("common.goHome"),t[13]=o,t[14]=h):h=t[14];let f;t[15]!==h?(f=y.jsx(yn,{onClick:n,children:h}),t[15]=h,t[16]=f):f=t[16];let v;return t[17]!==m||t[18]!==f?(v=y.jsxs(Ode,{children:[r,m,f]}),t[17]=m,t[18]=f,t[19]=v):v=t[19],v}function Nde(){window.location.href="/"}function Mde(){const e=ye.c(3);let t;e[0]===Symbol.for("react.memo_cache_sentinel")?(t={from:"/shell/$org"},e[0]=t):t=e[0];const{org:a}=im(t);let o;return e[1]!==a?(o=y.jsx(yn,{variant:"outline",size:"sm",asChild:!0,children:y.jsx(Ql,{to:"/$org/settings/profile",params:{org:a},children:"Go to your profile"})}),e[1]=a,e[2]=o):o=e[2],o}function Ide(e){const t=ye.c(13),{area:a,description:o,action:n}=e,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;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=y.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:y.jsx(c3,{size:28})}),t[0]=c):c=t[0];let d;t[1]!==r?(d=y.jsx("h3",{className:"text-lg font-medium",children:r}),t[1]=r,t[2]=d):d=t[2];let u;t[3]!==i?(u=y.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:i}),t[3]=i,t[4]=u):u=t[4];let m;t[5]!==d||t[6]!==u?(m=y.jsxs("div",{className:"space-y-1",children:[d,u]}),t[5]=d,t[6]=u,t[7]=m):m=t[7];let h;t[8]!==n?(h=n??y.jsx(Mde,{}),t[8]=n,t[9]=h):h=t[9];let f;return t[10]!==m||t[11]!==h?(f=y.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]}),t[10]=m,t[11]=h,t[12]=f):f=t[12],f}const iN="__studio_chunk_reload_ts";function j4(e){return e?.message===Tee}function Lde(e){return!!e?.message?.includes("Access denied")}function lN(e){if(!e)return!1;const t=e.message||"";return t.includes("Failed to fetch dynamically imported module")||t.includes("Importing a module script failed")||t.includes("error loading dynamically imported module")||t.includes("Failed to fetch")&&e.name==="TypeError"}class Bde extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,a){console.error("Uncaught error:",t,a),B4(t,{boundary:"default",error_name:t.name,error_message:t.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:t,t:a}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:j4(this.state.error)?y.jsx(F4,{}):Lde(this.state.error)?y.jsx(Ide,{}):y.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:y.jsx(DE,{className:"h-6 w-6 text-destructive"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:a("common.errorBoundary.somethingWentWrong")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||a("common.errorBoundary.unexpectedError")})]}),y.jsx(yn,{variant:"outline",onClick:this.resetError,children:a("common.errorBoundary.tryAgain")})]})}return this.props.children}}function Fde(e){const t=ye.c(3),a=$o();let o;return t[0]!==e||t[1]!==a?(o=y.jsx(Bde,{...e,t:a}),t[0]=e,t[1]=a,t[2]=o):o=t[2],o}class jde extends A.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,a){console.error("Uncaught error:",t,a);const o=lN(t);if(B4(t,{boundary:"chunk_root",is_chunk_load_error:o,error_name:t.name,error_message:t.message,component_stack:a.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!o)return;const n=sessionStorage.getItem(iN),r=Date.now();(!n||r-Number(n)>1e4)&&(sessionStorage.setItem(iN,String(r)),window.location.reload())}render(){const{t}=this.props;return this.state.hasError&&lN(this.state.error)?y.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:y.jsx(d3,{className:"h-6 w-6 text-primary"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.newVersionAvailable")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:t("common.errorBoundary.newVersionDeployed")})]}),y.jsx(yn,{onClick:()=>window.location.reload(),children:t("common.errorBoundary.refresh")})]}):this.state.hasError?j4(this.state.error)?y.jsx(F4,{}):y.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[y.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:y.jsx(DE,{className:"h-6 w-6 text-destructive"})}),y.jsxs("div",{className:"space-y-2",children:[y.jsx("h3",{className:"text-lg font-medium",children:t("common.errorBoundary.somethingWentWrong")}),y.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||t("common.errorBoundary.unexpectedError")})]}),y.jsx(yn,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:t("common.errorBoundary.tryAgain")})]}):this.props.children}}function zde(e){const t=ye.c(3),a=$o();let o;return t[0]!==e||t[1]!==a?(o=y.jsx(jde,{...e,t:a}),t[0]=e,t[1]=a,t[2]=o):o=t[2],o}const qde=Xl("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 Ude(e){const t=ye.c(14);let a,o,n,r,i;t[0]!==e?({className:a,size:r,interactive:o,asChild:i,...n}=e,t[0]=e,t[1]=a,t[2]=o,t[3]=n,t[4]=r,t[5]=i):(a=t[1],o=t[2],n=t[3],r=t[4],i=t[5]);const d=(i===void 0?!1:i)?db:"div";let u;t[6]!==a||t[7]!==o||t[8]!==r?(u=Je(qde({size:r,interactive:o}),a),t[6]=a,t[7]=o,t[8]=r,t[9]=u):u=t[9];let m;return t[10]!==d||t[11]!==n||t[12]!==u?(m=y.jsx(d,{"data-slot":"card",className:u,...n}),t[10]=d,t[11]=n,t[12]=u,t[13]=m):m=t[13],m}function y0e(e){const t=ye.c(11),{title:a,description:o,docsHref:n,actions:r,className:i,children:c}=e;let d;t[0]!==i?(d=Je("flex flex-col gap-3",i),t[0]=i,t[1]=d):d=t[1];let u;t[2]!==r||t[3]!==o||t[4]!==n||t[5]!==a?(u=(a||o||n||r)&&y.jsxs("div",{className:"flex items-center justify-between gap-3 px-4",children:[y.jsxs("div",{className:"flex flex-col gap-1 min-w-0",children:[a&&y.jsx("h2",{className:"text-base font-medium leading-tight",children:a}),(o||n)&&y.jsxs("p",{className:"text-sm text-muted-foreground leading-snug",children:[o,n&&y.jsxs("a",{href:n,target:"_blank",rel:"noreferrer",className:"inline-flex items-center gap-0.5 ml-1 text-foreground hover:underline",children:["Docs ",y.jsx(t3,{size:12})]})]})]}),r&&y.jsx("div",{className:"shrink-0",children:r})]}),t[2]=r,t[3]=o,t[4]=n,t[5]=a,t[6]=u):u=t[6];let m;return t[7]!==c||t[8]!==d||t[9]!==u?(m=y.jsxs("section",{className:d,children:[u,c]}),t[7]=c,t[8]=d,t[9]=u,t[10]=m):m=t[10],m}function w0e(e){const t=ye.c(11),{className:a,children:o}=e;let n,r,i;if(t[0]!==o||t[1]!==a){const d=A.Children.toArray(o).filter(A.isValidElement);n=Ude,t[5]!==a?(r=Je("p-0 gap-0 overflow-hidden",a),t[5]=a,t[6]=r):r=t[6],i=d.map($de),t[0]=o,t[1]=a,t[2]=n,t[3]=r,t[4]=i}else n=t[2],r=t[3],i=t[4];let c;return t[7]!==n||t[8]!==r||t[9]!==i?(c=y.jsx(n,{className:r,children:i}),t[7]=n,t[8]=r,t[9]=i,t[10]=c):c=t[10],c}function $de(e,t){return y.jsxs("div",{children:[t>0&&y.jsx("div",{className:"h-px bg-border mx-5"}),e]},t)}function S0e(e){const t=ye.c(27),{icon:a,title:o,description:n,action:r,onClick:i,className:c,children:d}=e,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;t[0]!==c||t[1]!==u||t[2]!==m?(h=Je(u,m,c),t[0]=c,t[1]=u,t[2]=m,t[3]=h):h=t[3];const f=i?"button":void 0,v=i?0:void 0;let b;t[4]!==i?(b=i?_=>{_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),i())}:void 0,t[4]=i,t[5]=b):b=t[5];let w;t[6]!==a?(w=a&&y.jsx("div",{className:"size-8 shrink-0 rounded-lg bg-muted/60 flex items-center justify-center text-muted-foreground",children:a}),t[6]=a,t[7]=w):w=t[7];let x;t[8]!==o?(x=y.jsx("div",{className:"text-sm font-medium",children:o}),t[8]=o,t[9]=x):x=t[9];let T;t[10]!==n?(T=n&&y.jsx("p",{className:"text-xs text-muted-foreground mt-0.5 leading-relaxed",children:n}),t[10]=n,t[11]=T):T=t[11];let k;t[12]!==d||t[13]!==x||t[14]!==T?(k=y.jsxs("div",{className:"flex-1 min-w-0",children:[x,T,d]}),t[12]=d,t[13]=x,t[14]=T,t[15]=k):k=t[15];let C;t[16]!==r?(C=r&&y.jsx("div",{className:"shrink-0",onClick:Vde,children:r}),t[16]=r,t[17]=C):C=t[17];let E;return t[18]!==i||t[19]!==k||t[20]!==C||t[21]!==h||t[22]!==f||t[23]!==v||t[24]!==b||t[25]!==w?(E=y.jsxs("div",{className:h,onClick:i,role:f,tabIndex:v,onKeyDown:b,children:[w,k,C]}),t[18]=i,t[19]=k,t[20]=C,t[21]=h,t[22]=f,t[23]=v,t[24]=b,t[25]=w,t[26]=E):E=t[26],E}function Vde(e){return e.stopPropagation()}function T0e(e){const t=ye.c(5),{className:a,children:o}=e;let n;t[0]!==a?(n=Je("px-4 py-4",a),t[0]=a,t[1]=n):n=t[1];let r;return t[2]!==o||t[3]!==n?(r=y.jsx("div",{className:n,children:o}),t[2]=o,t[3]=n,t[4]=r):r=t[4],r}function x0e(e){const t=ye.c(5),{children:a,className:o}=e;let n;t[0]!==o?(n=Je("flex items-center justify-end gap-2 px-4 py-4",o),t[0]=o,t[1]=n):n=t[1];let r;return t[2]!==a||t[3]!==n?(r=y.jsx("div",{className:n,children:a}),t[2]=a,t[3]=n,t[4]=r):r=t[4],r}function Hde(e){const t=ye.c(5),{className:a,children:o}=e;let n;t[0]!==a?(n=Je("flex flex-col gap-10",a),t[0]=a,t[1]=n):n=t[1];let r;return t[2]!==o||t[3]!==n?(r=y.jsx("div",{className:n,children:o}),t[2]=o,t[3]=n,t[4]=r):r=t[4],r}const kb={connect:{key:"connect",titleKey:"settings.connectClients.pageTitle",tabs:[],ownedRoutes:["/$org/settings/api-keys"]},members:{key:"members",titleKey:"orgs.members.title",tabs:[{key:"members",icon:h3,labelKey:"orgs.members.title",to:"/$org/settings/members",requires:"members:manage"},{key:"roles",icon:p3,labelKey:"settings.roles.pageTitle",to:"/$org/settings/roles",privilegedOnly:!0}]},billing:{key:"billing",titleKey:"settings.nav.billing",tabs:[{key:"ai-providers",icon:n3,labelKey:"settings.nav.aiProviders",to:"/$org/settings/ai-providers",requires:"ai-providers:manage"},{key:"infra",icon:u3,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:i3,labelKey:"settings.nav.buckets",to:"/$org/settings/buckets",requires:"file-configs:manage"},{key:"synced-repos",icon:s3,labelKey:"settings.nav.syncedRepos",to:"/$org/settings/synced-repos",requires:"file-configs:manage"}]}};function k0e(e){const t=kb[e];return[...t.tabs.map(a=>a.to),...t.ownedRoutes??[]]}function E0e(e){return kb[e].tabs.length>0}const Gde=new Set(["owner","admin"]);function z4(){const e=ye.c(11),{org:t,locator:a}=Zi();let o;e[0]!==a?(o=lo.myCapabilities(a),e[0]=a,e[1]=o):o=e[1];let n;e[2]!==t?(n=async()=>{const m=await fetch(`/api/auth/custom/my-capabilities/${encodeURIComponent(t.slug)}`,{credentials:"include"});if(!m.ok)throw new Error(`my-capabilities request failed: ${m.status}`);return await m.json()},e[2]=t,e[3]=n):n=e[3];let r;e[4]!==o||e[5]!==n?(r={queryKey:o,queryFn:n,staleTime:3e4,retry:2},e[4]=o,e[5]=n,e[6]=r):r=e[6];const{data:i,isLoading:c,isError:d}=Ki(r);let u;return e[7]!==i||e[8]!==d||e[9]!==c?(u={data:i,loading:c,error:d},e[7]=i,e[8]=d,e[9]=c,e[10]=u):u=e[10],u}function C0e(e){const t=ye.c(8),{data:a,loading:o,error:n}=z4();if(o){let u;return t[0]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!0,error:!1,reason:"loading"},t[0]=u):u=t[0],u}if(n){let u;return t[1]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!0,reason:"error"},t[1]=u):u=t[1],u}const r=a?.role??null;if(!r){let u;return t[2]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!1,loading:!1,error:!1,reason:"denied"},t[2]=u):u=t[2],u}if(r==="owner"){let u;return t[3]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"owner"},t[3]=u):u=t[3],u}if(r==="admin"){let u;return t[4]===Symbol.for("react.memo_cache_sentinel")?(u={granted:!0,loading:!1,error:!1,reason:"admin"},t[4]=u):u=t[4],u}const i=a?.capabilities?.[e]===!0,c=i?"role":"denied";let d;return t[5]!==i||t[6]!==c?(d={granted:i,loading:!1,error:!1,reason:c},t[5]=i,t[6]=c,t[7]=d):d=t[7],d}function q4(){const e=ye.c(10),{data:t,loading:a,error:o}=z4(),n=t?.role??void 0;let r;e[0]!==n?(r=n?Gde.has(n):!1,e[0]=n,e[1]=r):r=e[1];const i=r;let c;e[2]!==t?.capabilities?(c=t?.capabilities??{},e[2]=t?.capabilities,e[3]=c):c=e[3];const d=c;let u;return e[4]!==o||e[5]!==i||e[6]!==a||e[7]!==n||e[8]!==d?(u={capabilities:d,loading:a,error:o,isPrivileged:i,roleSlug:n},e[4]=o,e[5]=i,e[6]=a,e[7]=n,e[8]=d,e[9]=u):u=e[9],u}function Wde(){const e=ye.c(13),{org:t}=Zi(),a=Jk(),{capabilities:o,isPrivileged:n}=q4(),r=n||!!o["members:manage"];let i;e[0]!==t.id?(i=lo.infraBillingSites(t.id),e[0]=t.id,e[1]=i):i=e[1];const c=!!t.id&&r;let d;e[2]!==a?(d=()=>a.call("INFRA_BILLING_SITES_LIST",{}),e[2]=a,e[3]=d):d=e[3];let u;e[4]!==i||e[5]!==c||e[6]!==d?(u={queryKey:i,staleTime:3e5,enabled:c,queryFn:d},e[4]=i,e[5]=c,e[6]=d,e[7]=u):u=e[7];const{data:m,isLoading:h}=Ki(u);let f;e[8]!==m?.sites?(f=m?.sites.map(Kde)??[],e[8]=m?.sites,e[9]=f):f=e[9];let v;return e[10]!==h||e[11]!==f?(v={sites:f,isLoading:h},e[10]=h,e[11]=f,e[12]=v):v=e[12],v}function Kde(e){return e.slug}function P0e(){const e=ye.c(7),t=Jk(),a=$o();let o;e[0]!==t?(o=i=>t.call("INFRA_BILLING_PORTAL",{siteSlugs:i}),e[0]=t,e[1]=o):o=e[1];let n;e[2]!==a?(n=i=>Fd.error(a("settings.infraBilling.portalError",{message:i.message})),e[2]=a,e[3]=n):n=e[3];let r;return e[4]!==o||e[5]!==n?(r={mutationFn:o,onSuccess:Yde,onError:n},e[4]=o,e[5]=n,e[6]=r):r=e[6],yf(r)}function Yde(e){const{url:t}=e;return window.open(t,"_blank","noopener,noreferrer")}function _0e(e,t){const a=ye.c(14),{org:o}=Zi(),n=Jk();let r,i,c;a[0]!==o.id||a[1]!==t||a[2]!==e?(r=[...e].sort(),c=Ki,i=lo.infraBilling(o.id,r.join(","),t),a[0]=o.id,a[1]=t,a[2]=e,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]!==t||a[7]!==r||a[8]!==n?(u=()=>n.call("INFRA_BILLING_GET",{siteSlugs:r,period:t}),a[6]=t,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 Qde(){const e=ye.c(7),{capabilities:t,isPrivileged:a,loading:o,error:n}=q4(),{sites:r,isLoading:i}=Wde(),c=r.length>0;let d;if(e[0]!==t||e[1]!==n||e[2]!==a||e[3]!==o||e[4]!==c||e[5]!==i){const u=m=>m.requiresOwnedSites&&!c&&!i?!1:o||n?!0:m.privilegedOnly?a:m.requires?a||t[m.requires]:!0;d=Object.fromEntries(Object.values(kb).map(m=>[m.key,m.tabs.filter(u)])),e[0]=t,e[1]=n,e[2]=a,e[3]=o,e[4]=c,e[5]=i,e[6]=d}else d=e[6];return d}function Zde(e){const t=ye.c(16),{group:a}=e,o=$o();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={from:"/shell/$org"},t[0]=n):n=t[0];const{org:r}=im(n);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={select:Jde},t[1]=i):i=t[1];const c=Tk(i),d=Qde()[a],{titleKey:u}=kb[a];let m;t[2]!==o||t[3]!==u?(m=o(u),t[2]=o,t[3]=u,t[4]=m):m=t[4];let h;t[5]!==m?(h=y.jsx(Cd.Title,{children:m}),t[5]=m,t[6]=h):h=t[6];let f;t[7]!==a||t[8]!==r||t[9]!==c||t[10]!==o||t[11]!==d?(f=d.length>1&&y.jsx(mn.Toolbar.Left.Portal,{children:y.jsx(Cd.Tabs,{"data-testid":"settings-subnav","aria-label":o("settings.subnav.ariaLabel"),children:d.map(b=>{const w=b.to.replace("$org",r),x=c===w||c.startsWith(`${w}/`);return y.jsx(Cd.Tab,{active:x,asChild:!0,children:y.jsx(Ql,{to:b.to,params:{org:r},onClick:()=>L4("settings_subnav_clicked",{group_key:a,tab_key:b.key}),children:o(b.labelKey)})},b.key)})})}),t[7]=a,t[8]=r,t[9]=c,t[10]=o,t[11]=d,t[12]=f):f=t[12];let v;return t[13]!==h||t[14]!==f?(v=y.jsxs(y.Fragment,{children:[h,f]}),t[13]=h,t[14]=f,t[15]=v):v=t[15],v}function Jde(e){return e.location.pathname}function U4(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=y.jsxs("div",{"data-testid":"settings-content-loading",className:"flex flex-col gap-4",children:[y.jsx(RO,{className:"h-32 w-full"}),y.jsx(RO,{className:"h-32 w-full"})]}),e[0]=t):t=e[0],t}function Xde(e){const t=ye.c(14),{group:a,fallback:o,errorFallback:n,className:r,children:i}=e;let c;t[0]!==a?(c=y.jsx(Zde,{group:a}),t[0]=a,t[1]=c):c=t[1];let d;t[2]!==o?(d=o??y.jsx(U4,{}),t[2]=o,t[3]=d):d=t[3];let u;t[4]!==i||t[5]!==d?(u=y.jsx(A.Suspense,{fallback:d,children:i}),t[4]=i,t[5]=d,t[6]=u):u=t[6];let m;t[7]!==n||t[8]!==u?(m=y.jsx(Fde,{fallback:n,children:u}),t[7]=n,t[8]=u,t[9]=m):m=t[9];let h;return t[10]!==r||t[11]!==c||t[12]!==m?(h=y.jsx(Cd,{children:y.jsx(Cd.Content,{children:y.jsx(Cd.Container,{children:y.jsxs(Hde,{className:r,children:[c,m]})})})}),t[10]=r,t[11]=c,t[12]=m,t[13]=h):h=t[13],h}function Vs(e){return function(){return y.jsx(Xde,{group:e,children:y.jsx(U4,{})})}}function eue(e){try{localStorage.setItem(Nr.lastLocation(),JSON.stringify(e))}catch{}}function tue(){try{const e=localStorage.getItem(Nr.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org}}catch{}return null}function A0e(){try{localStorage.removeItem(Nr.lastLocation())}catch{}}function aue(e,t){const a=e&&t?MJ(t,e):null;return{queryKey:lo.activeOrganization(e),queryFn:async()=>{if(!e)return null;const o={organizationSlug:e};performance.mark("mesh:active-org-fetch:start");const{data:n}=await fo.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=oE(n);return n&&!r&&localStorage.setItem(Nr.lastOrgSlug(),e),t&&n&&IJ(t,e,n),n},initialData:a?a.data:void 0,initialDataUpdatedAt:a?.updatedAt,gcTime:1/0,refetchOnWindowFocus:!1}}let cN;async function oue(e){cN=e,await jB();const t=Eee();if(!t)return;const a=await Jl.ensureQueryData(aue(e,t)).catch(()=>null);a&&!oE(a)&&cN===e&&eue({org:e})}const Ct={home:"/$org/home",projects:"/$org/projects/$agentId",tasks:"/$org/tasks/{-$taskKey}",reports:"/$org/reports",library:"/$org/library",discover:"/$org/discover",plan:"/$org/plan",monitoring:"/$org/monitoring",orgIndex:"/$org/"},Ke={root:Ct.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",blog:"/$org/projects/$agentId/blog",blogPost:"/$org/projects/$agentId/blog/posts/$postId",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",calendar:"/$org/projects/$agentId/calendar",experiments:"/$org/projects/$agentId/experiments",plan:"/$org/projects/$agentId/plan",businessCase:"/$org/projects/$agentId/plan/case",monitoring:"/$org/projects/$agentId/monitoring"};function R0e(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:nue},e[0]=t):t=e[0],Tk(t)}function nue(e){return e.matches.at(-1)?.fullPath??""}function D0e(){const e=ye.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t={select:rue},e[0]=t):t=e[0],Tk(t)}function rue(e){return e.matches.findLast(sue)?.staticData.mainView}function sue(e){return e.staticData.mainView}function Rf(e){return`agent-view:${encodeURIComponent(e)}`}function iue(e){if(!e?.startsWith("agent-view:"))return null;const t=e.slice(11);if(!t)return null;try{const a=decodeURIComponent(t);return a?{id:a}:null}catch{return null}}function $4(e){if(!e||!e.startsWith("automation:"))return null;const t=e.slice(11);return t?{id:t}:null}function lue(e){return`blog-post:${encodeURIComponent(e)}`}function cue(e){if(!e?.startsWith("blog-post:"))return null;const t=e.slice(10);if(!t)return null;try{const a=decodeURIComponent(t);return a?{id:a}:null}catch{return null}}function YE(e,t){return`app:${e}:${t}`}function due(e){if(!e||!e.startsWith("app:"))return null;const t=e.slice(4),a=t.indexOf(":");if(a<=0)return null;const o=t.slice(0,a),n=t.slice(a+1);return!o||!n?null:{connectionId:o,toolName:n}}function V4(e){return`deck:${encodeURIComponent(e)}`}function uue(e){if(!e||!e.startsWith("deck:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function pue(e){return`case:${encodeURIComponent(e)}`}function mue(e){if(!e||!e.startsWith("case:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function H4(e){return`file:${encodeURIComponent(e)}`}function hue(e){if(!e||!e.startsWith("file:"))return null;const t=e.slice(5);if(!t)return null;try{return{key:decodeURIComponent(t)}}catch{return null}}function G4(e){return`library-file:${encodeURIComponent(e)}`}function gue(e){if(!e||!e.startsWith("library-file:"))return null;const t=e.slice(13);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}function W4(e){return`code:${encodeURIComponent(e)}`}function fue(e){if(!e)return null;if(e==="code")return{path:null};if(!e.startsWith("code:"))return null;const t=e.slice(5);if(!t)return null;try{return{path:decodeURIComponent(t)}}catch{return null}}const K4=["overview","settings","automations","site-editor","code","content","blog","assets","hosting","e2e","analytics","cdn"],vue=new Set(K4),Y4=new Set(["hosting","e2e","analytics","cdn"]),bue=new Set(["board","files","connect-sources","reports"]);function O0e(e){return e.startsWith("app:")||e.startsWith("automation:")||e.startsWith("file:")||e.startsWith("deck:")||e.startsWith("case:")||e.startsWith("library-file:")||e.startsWith("code:")}const yue=new Map([["preview","site-editor"],["git","site-editor"]]);function Eb(e){return yue.get(e)??e}const QE=new Set(["instructions","connections","layout","settings"]);function wue(e){return!!e&&QE.has(e)}const Sue=new Set(["overview","board","reports"]);function Q4(e){const t=e?.defaultMainView??null;if(!t)return"settings";const a=Eb(t.type);if(QE.has(a))return"settings";if(vue.has(a)||Sue.has(a))return a;if(a==="ext-app"||a==="ext-apps"){if(t.id&&t.toolName)return YE(t.id,t.toolName);const n=e?.tabs?.map(r=>r.id)??[];return t.id&&n.includes(t.id)?Rf(t.id):n[0]?Rf(n[0]):"settings"}const o=e?.tabs?.[0]?.id;return o?Rf(o):"settings"}function Z4(e){const t={...e};return Reflect.deleteProperty(t,"projectOverview"),Reflect.deleteProperty(t,"appTakeover"),t}const N0e=e=>({...Z4(e),projectOverview:!0});function Tue(e){return typeof e=="object"&&e!==null&&"projectOverview"in e&&e.projectOverview===!0}const M0e=e=>({...Z4(e),appTakeover:!0});function I0e(e){return typeof e=="object"&&e!==null&&"appTakeover"in e&&e.appTakeover===!0}function L0e(e){const t=e?.defaultMainView?.type;if(!t||t==="chat")return null;const a=Q4(e);return a==="overview"?null:a}function B0e(e){const t=e.routeDefaultMain||Q4(e.metadata),a=e.panelTabId&&QE.has(e.panelTabId)?"settings":e.panelTabId?Eb(e.panelTabId):e.panelTabId,o=e.metadata?.defaultMainView??null,n=o==null||o.type==="chat";return{mainOpen:e.mainPanelParam??(!!a||!!e.routeDefaultMain||!n),activeTab:a??t}}function F0e(e){return e.mainOpen&&e.clickedId===e.activeTab?{close:!0}:{tabId:e.clickedId}}function j0e(e){return e.mainOpen?e.activeTab==="automations"?!0:$4(e.activeTab)!==null:!1}const xue=new Set([...K4.filter(e=>!Y4.has(e)),...bue,"app","file","deck","library-file","connect-sources","instructions","connections","layout","preview","discover"]);function kue(e){return!!e&&xue.has(e)}function Eue(e,t){if(e)switch(e){case"app":return t.connection&&t.tool?YE(t.connection,t.tool):void 0;case"automations":return t.automation?`automation:${t.automation}`:"automations";case"file":return t.key?H4(t.key):void 0;case"deck":return t.deck?V4(t.deck):void 0;case"library-file":return t.path?G4(t.path):void 0;case"code":return t.file?W4(t.file):"code";default:{const a=Eb(e);return a==="site-editor"&&t.main==="content"?"content":a}}}function z0e(e){const t=e.params??{},a=e.search??{};if(e.siteEditorView==="content")return"content";if(e.siteEditorView==="code")return a.file?W4(a.file):"code";if(e.siteEditorView==="preview")return"site-editor";switch(e.mainView){case"blog-post":return t.postId?lue(t.postId):"blog";case"automation":return t.automationId?`automation:${t.automationId}`:"automations";case"app":return t.connectionId&&t.toolName?YE(t.connectionId,t.toolName):void 0;case"view":return t.viewId?Rf(t.viewId):void 0;case"file":return a.key?H4(a.key):void 0;case"deck":return a.path?V4(a.path):void 0;case"business-case":return a.path?pue(a.path):void 0;case"library-file":return a.path?G4(a.path):void 0;default:return e.mainView}}const Cue={files:"library",discover:"discover"},Pue={board:"tasks",reports:"reports",plan:"plan",monitoring:"monitoring",analytics:"monitoring",cdn:"monitoring"},_ue={analytics:"audience",cdn:"performance"},Aue={settings:"settings",assets:"assets",releases:"releases",hosting:"hosting",e2e:"e2e",calendar:"calendar",experiments:"experiments"};function J4(e){const t=iue(e);if(t)return{kind:"agent-view",viewId:t.id};const a=due(e);if(a)return{kind:"app",connectionId:a.connectionId,toolName:a.toolName};const o=$4(e);if(o)return{kind:"automations",automationId:o.id};const n=cue(e);if(n)return{kind:"blog",postId:n.id};const r=hue(e);if(r)return{kind:"output-file",key:r.key};const i=uue(e);if(i)return{kind:"output-deck",path:i.path};const c=mue(e);if(c)return{kind:"business-case",path:c.path};const d=gue(e);if(d)return{kind:"library-file",path:d.path};const u=fue(e);if(u)return{kind:"site-editor",view:"code",...u.path?{file:u.path}:{}};if(wue(e))return{kind:"agent-section",section:"settings"};const m=Eb(e);if(m==="overview")return{kind:"agent-overview"};if(m==="site-editor")return{kind:"site-editor",view:"preview"};if(m==="content")return{kind:"site-editor",view:"content"};if(m==="blog")return{kind:"blog"};if(m==="automations")return{kind:"automations"};if(m==="connect-sources")return{kind:"connect-sources"};const h=Pue[m];if(h){const b=_ue[m];return{kind:"project-destination",destination:h,...b?{monitorView:b}:{}}}const f=Cue[m];if(f)return{kind:"org-destination",destination:f};const v=Aue[m];return v?{kind:"agent-section",section:v}:{kind:"agent-view",viewId:m}}function Hl(e){const{org:t,agentId:a}=e,o={org:t,agentId:a},n=J4(e.tabId);switch(n.kind){case"project-destination":{const r=e.destinationScope==="organization";switch(n.destination){case"tasks":return r?{to:Ct.tasks,params:{org:t,taskKey:e.taskKey},search:{}}:{to:Ke.tasks,params:{...o,taskKey:e.taskKey},search:{}};case"reports":return r?{to:Ct.reports,params:{org:t},search:{}}:{to:Ke.reports,params:o,search:{}};case"plan":return r?{to:Ct.plan,params:{org:t},search:{}}:{to:Ke.plan,params:o,search:{}};case"monitoring":{const i=n.monitorView?{view:n.monitorView}:{};return r?{to:Ct.monitoring,params:{org:t},search:i}:{to:Ke.monitoring,params:o,search:i}}}}case"org-destination":switch(n.destination){case"home":return{to:Ct.home,params:{org:t},search:{}};case"discover":return{to:Ct.discover,params:{org:t},search:{}};case"library":return{to:Ct.library,params:{org:t},search:{}}}case"agent-overview":return{to:Ke.root,params:o,search:{}};case"site-editor":return n.view==="content"?{to:Ke.siteEditorContent,params:o,search:{}}:n.view==="code"?{to:Ke.siteEditorCode,params:o,search:{file:n.file}}:{to:Ke.siteEditor,params:o,search:{}};case"agent-section":return{to:Ke[n.section],params:o,search:{}};case"blog":return n.postId?{to:Ke.blogPost,params:{...o,postId:n.postId},search:{}}:{to:Ke.blog,params:o,search:{}};case"automations":return n.automationId?{to:Ke.automation,params:{...o,automationId:n.automationId},search:{}}:{to:Ke.automations,params:o,search:{}};case"app":return{to:Ke.app,params:{...o,connectionId:n.connectionId,toolName:n.toolName},search:{}};case"agent-view":return{to:Ke.view,params:{...o,viewId:n.viewId},search:{}};case"output-file":return{to:Ke.outputFile,params:o,search:{key:n.key}};case"output-deck":return{to:Ke.outputDeck,params:o,search:{path:n.path}};case"business-case":return{to:Ke.businessCase,params:o,search:{path:n.path}};case"library-file":return{to:Ke.libraryFile,params:o,search:{path:n.path}};case"connect-sources":return{to:Ke.connectSources,params:o,search:{}}}}function q0e(e){if(!e.agentId||e.agentId===e.superAgentId&&(e.tabId===void 0||e.tabId==="overview"))return{to:Ct.home,params:{org:e.org},search:{}};const t=e.tabId??"overview",a=e.agentId!==e.superAgentId&&J4(t).kind==="org-destination"?"overview":t;return Hl({org:e.org,agentId:e.agentId,tabId:a,destinationScope:e.agentId===e.superAgentId?"organization":"project"})}function Rue(e,t,a={}){const o=r=>({...a.search?.(r)??{},...t.search}),n=a.replace??!0;switch(t.to){case Ct.tasks:e({to:Ct.tasks,params:t.params,search:o,replace:n});return;case Ct.home:e({to:Ct.home,params:t.params,search:o,replace:n});return;case Ct.reports:e({to:Ct.reports,params:t.params,search:o,replace:n});return;case Ct.discover:e({to:Ct.discover,params:t.params,search:o,replace:n});return;case Ct.plan:e({to:Ct.plan,params:t.params,search:o,replace:n});return;case Ct.monitoring:e({to:Ct.monitoring,params:t.params,search:o,replace:n});return;case Ct.library:e({to:Ct.library,params:t.params,search:o,replace:n});return;case Ke.root:e({to:Ke.root,params:t.params,search:o,replace:n});return;case Ke.tasks:e({to:Ke.tasks,params:t.params,search:o,replace:n});return;case Ke.reports:e({to:Ke.reports,params:t.params,search:o,replace:n});return;case Ke.plan:e({to:Ke.plan,params:t.params,search:o,replace:n});return;case Ke.monitoring:e({to:Ke.monitoring,params:t.params,search:o,replace:n});return;case Ke.siteEditor:e({to:Ke.siteEditor,params:t.params,search:o,replace:n});return;case Ke.siteEditorContent:e({to:Ke.siteEditorContent,params:t.params,search:o,replace:n});return;case Ke.siteEditorCode:e({to:Ke.siteEditorCode,params:t.params,search:o,replace:n});return;case Ke.automations:e({to:Ke.automations,params:t.params,search:o,replace:n});return;case Ke.automation:e({to:Ke.automation,params:t.params,search:o,replace:n});return;case Ke.app:e({to:Ke.app,params:t.params,search:o,replace:n});return;case Ke.view:e({to:Ke.view,params:t.params,search:o,replace:n});return;case Ke.outputFile:e({to:Ke.outputFile,params:t.params,search:o,replace:n});return;case Ke.outputDeck:e({to:Ke.outputDeck,params:t.params,search:o,replace:n});return;case Ke.businessCase:e({to:Ke.businessCase,params:t.params,search:o,replace:n});return;case Ke.libraryFile:e({to:Ke.libraryFile,params:t.params,search:o,replace:n});return;case Ke.connectSources:e({to:Ke.connectSources,params:t.params,search:o,replace:n});return;case Ke.blog:e({to:Ke.blog,params:t.params,search:o,replace:n});return;case Ke.blogPost:e({to:Ke.blogPost,params:t.params,search:o,replace:n});return;case Ke.settings:case Ke.assets:case Ke.releases:case Ke.hosting:case Ke.e2e:case Ke.calendar:case Ke.experiments:e({to:t.to,params:t.params,search:o,replace:n});return;default:return Due(t)}}function Due(e){throw new Error(`Unhandled tab route target: ${JSON.stringify(e)}`)}function U0e(e,t){Rue(e,Hl(t),t)}function Oue(e){const t=/^(\/[^/]+)\/agents(?=\/|$)/.exec(e);return t?.[1]?`${t[1]}/projects${e.slice(t[0].length)}`:null}function Nue(e){const t=e.split("/").filter(Boolean);return(t[1]==="projects"||t[1]==="agents")&&t.length>3}const Mue=new Set(["main","virtualmcpid","file","key","deck","path","connection","tool","automation"]),X4=new Set(["main"]),Iue=new Set(["virtualmcpid"]);function Cb(e,t){return Object.fromEntries(Object.entries(e).filter(([a])=>!t.has(a)))}function ql(e,t){return{...Cb(e,Mue),...t.search}}function Lue(e){return Cb(e,Iue)}function $0e(e){if(e.search.virtualmcpid===void 0)return null;const t=Er(e.search.virtualmcpid);if(t){const a=e.routePath===Ct.tasks?"board":e.routePath===Ct.reports?"reports":null;if(e.routePath===Ct.home||a){const o=a?Hl({org:e.org,agentId:t,tabId:a}):Wd(e.org,t);return{kind:"canonical",route:o,search:ql(e.search,o)}}}return e.routePath===Ct.home||e.routePath===Ct.tasks||e.routePath===Ct.reports||e.routePath===Ct.library?{kind:"same-route",search:Lue(e.search)}:null}function Er(e){return e?.trim()||void 0}function e5(e){return kue(e)||e!==void 0&&Y4.has(e)}function t5(e){const t=Er(e);return t?t.startsWith("vir_")&&t.length>4||tB(t)!==null||rQ(t)!==null||sQ(t)!==null||oB(t)||nB(t):!1}function Bue(e){const t=Er(e.agentIdParam),a=e5(t);return t&&!a?t:Er(e.virtualMcpIdSearch)??Er(e.fallbackAgentId)}function V0e(e){const t=e.pathAgentId;if(t&&e.pathLegacyView){const i=N0({org:e.org,agentId:t,panel:e.pathLegacyView,source:"project-first",search:e.search});return i?.kind==="canonical"?{route:i.route,search:i.search}:null}if(!t||Nue(e.pathname))return null;const a=e.search.virtualmcpid!==void 0&&!t5(t);if(!(e5(t)||a))return null;const n=Bue({agentIdParam:a?void 0:t,virtualMcpIdSearch:e.search.virtualmcpid,fallbackAgentId:e.fallbackAgentId}),r=N0({org:e.org,agentId:n,panel:t,source:"view-first",search:e.search});return r?.kind==="canonical"?{route:r.route,search:r.search}:null}function Fue(e,t,a,o){const n=Er(o);switch(e){case"board":return n?Hl({org:t,agentId:n,tabId:"board"}):{to:Ct.tasks,params:{org:t,taskKey:void 0},search:{}};case"files":{const r=Ai(a.path);return{to:Ct.library,params:{org:t},search:r?{path:r}:{}}}case"reports":return n?Hl({org:t,agentId:n,tabId:"reports"}):{to:Ct.reports,params:{org:t},search:{}};case"overview":return{to:Ct.home,params:{org:t},search:{}};case"discover":return{to:Ct.discover,params:{org:t},search:{}};default:return null}}function em(e){const t=Fue(e.tabId,e.org,e.search,e.agentId);if(t)return t;if(e.tabId==="chat")return Wd(e.org,e.agentId);const a=Er(e.agentId);return a?e.tabId==="app"||e.tabId==="file"||e.tabId==="deck"||e.tabId==="library-file"||e.tabId.trim()===""?{to:Ke.root,params:{org:e.org,agentId:a},search:{}}:Hl({org:e.org,agentId:a,tabId:e.tabId}):null}function Wd(e,t){const a=Er(t);return a?{to:Ke.root,params:{org:e,agentId:a},search:{}}:{to:Ct.home,params:{org:e},search:{}}}function jue(e){const{main:t}=e;if(t===void 0)return null;const a=e.search??{};if(t===0||t==="0")return{kind:"same-route",search:{...Cb(a,X4),mainpanel:!1}};if(t==="chat"){const n=Wd(e.org,e.agentId);return{kind:"canonical",route:n,search:{...ql(a,n),sidepanel:!0,mainpanel:!1}}}const o=em({org:e.org,agentId:e.agentId,tabId:t,search:a});return o?{kind:"canonical",route:o,search:ql(a,o)}:null}function Ai(e){return typeof e=="string"&&e.length>0?e:void 0}function N0(e){const t=e.search??{};if((t.main===0||t.main==="0")&&e.panel){const i=N0({...e,search:Cb(t,X4)});return i?.kind!=="canonical"?i:{...i,search:{...i.search,mainpanel:!1}}}if(t.main!==void 0)return jue({org:e.org,agentId:e.agentId,main:t.main,search:t});const a=Er(e.agentId),o=e.panel;if(!o){const i=Wd(e.org,a);return{kind:"canonical",route:i,search:ql(t,i)}}const n=Eue(o,{file:Ai(t.file),key:Ai(t.key),deck:Ai(t.deck),path:Ai(t.path),connection:Ai(t.connection),tool:Ai(t.tool),automation:Ai(t.automation)}),r=n?e.source==="project-first"&&n==="overview"&&a?Hl({org:e.org,agentId:a,tabId:n}):em({org:e.org,agentId:a,tabId:n,search:t}):em({org:e.org,agentId:a,tabId:"",search:t});return r?{kind:"canonical",route:r,search:n==="chat"?{...ql(t,r),sidepanel:!0,mainpanel:!1}:ql(t,r)}:null}function H0e(e){const t=e.search??{},a=Er(t.virtualmcpid),o=Er(e.fallbackAgentId),n=t.main;let r;if(n==="chat")r=Wd(e.org,a);else if(n!==void 0&&n!==0&&n!=="0"){const i=em({org:e.org,agentId:a,tabId:n,search:t}),c=!i&&n.trim().length>0&&o?em({org:e.org,agentId:o,tabId:n,search:t}):null;r=i??c??{to:Ct.home,params:{org:e.org},search:{}}}else r=Wd(e.org,a);return{route:r,search:{...ql(t,r),...n===void 0&&t.sidepanel===void 0?{sidepanel:!0}:{},...n===0||n==="0"?{mainpanel:!1}:{},...n==="chat"?{sidepanel:!0,mainpanel:!1}:{},thread:e.taskId}}}function a5(e,t){if(t.task===void 0)return null;const{task:a,...o}=t;return{taskKey:e??(a.trim()||void 0),search:o}}const zue={contentPageId:$().optional(),contentPath:$().optional(),contentPathTemplate:$().optional(),contentCollection:$().optional(),contentItem:$().optional()},o5=zue,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()},que=["files","brand","connections","repositories","skills","memory","instructions","general","views","repository","site"],Dv={fileView:Wt(["all","documents","media"]).catch("all").optional(),modified:Wt(["any","today","week","month"]).catch("any").optional(),layout:Wt(["list","grid"]).catch("list").optional(),sort:Wt(["name","updated","size"]).catch("name").optional(),path:$().optional(),preview:$().optional(),expanded:fx().optional().catch(void 0),skill:$().optional(),brand:$().optional(),section:Wt(que).catch("files").optional(),scope:Wt(["user"]).optional().catch(void 0),action:Wt(["create"]).optional().catch(void 0),tab:Wt(["all","connected"]).optional().catch(void 0)},Uue={file:$().optional(),key:$().optional(),deck:$().optional(),path:$().optional(),connection:$().optional(),tool:$().optional(),automation:$().optional(),section:$().optional(),preview:$().optional(),autosend:$().optional(),connect:eb().optional(),siteUrl:$().optional(),...o5},n5={...Uue,task:$().optional(),project:$().optional(),...ZE,skill:Dv.skill,brand:Dv.brand},xm=Se(n5),r5="blog-manager/posts/";function G0e(e){return e.startsWith(r5)}function $ue(e){return e.split("/").pop()??e}function W0e(e){return`${r5}${e}`}function K0e(e){return`collections/blog/posts/${e}`}const Vue=["context","posts","authors","categories","post-schedule"],s5=Wt(Vue),Hue={blogCollection:s5.optional(),blogItem:$().optional()};function Y0e(e,t){return e==="context"&&!t?"posts":e}const Gue=Wt(["edit","preview"]),Wue={blogView:Gue.optional()};function Q0e(e){const t=s5.safeParse(e.contentCollection);if(!t.success)return null;const a=t.data,o=e.contentItem;return a==="posts"?o?{collection:a,postId:$ue(o)}:{collection:a}:o?{collection:a,item:o}:{collection:a}}function Z0e(e){const t=e.blogCollection;return t==="authors"||t==="categories"?e.blogItem?{contentCollection:t,contentItem:e.blogItem}:{contentCollection:t}:{contentCollection:"posts"}}const Ho=cV({component:()=>y.jsx(zde,{children:y.jsx(Sk,{})})}),Kue=Ae({getParentRoute:()=>Ho,path:"/login",component:Be(()=>Fe(()=>import("./login-ChUKcrxw.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8]))),validateSearch:es(()=>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()}))}),Yue=Ae({getParentRoute:()=>Ho,path:"/cli/auth-success",component:Be(()=>Fe(()=>import("./cli-auth-success-CTr9TvqD.js"),__vite__mapDeps([9,5])))}),Que=Ae({getParentRoute:()=>Ho,path:"/reset-password",component:Be(()=>Fe(()=>import("./reset-password-Bx00RuU6.js"),[])),validateSearch:es(()=>Se({token:$().optional(),error:$().optional()}))}),Zue=Ae({getParentRoute:()=>Ho,path:"/auth/$pathname",component:Be(()=>Fe(()=>import("./auth-catchall-Df0mlf3q.js"),[]))}),Jue=Ae({getParentRoute:()=>Ho,path:"/oauth/callback",component:Be(()=>Fe(()=>import("./oauth-callback-wNBW4WEA.js"),__vite__mapDeps([10,11,12])))}),Xue=Ae({getParentRoute:()=>Ho,path:"/oauth/consent",component:Be(()=>Fe(()=>import("./oauth-consent-kpGyE2zi.js"),__vite__mapDeps([13,5,1,2,3,4])))}),epe=Ae({getParentRoute:()=>Ho,path:"/oauth/callback/ai-provider",component:Be(()=>Fe(()=>import("./oauth-callback-ai-provider-BFfa7qWJ.js"),[]))}),km=Ae({getParentRoute:()=>Ho,path:"/_admin",component:Be(()=>Fe(()=>import("./layout-Qo2HF2_n.js"),__vite__mapDeps([14,15,16])))}),tpe=Ae({getParentRoute:()=>km,path:"/",beforeLoad:()=>{throw ua({to:"/_admin/users"})}}),ape=Ae({getParentRoute:()=>km,path:"/users",component:Be(()=>Fe(()=>import("./users-BUPOTLUx.js"),__vite__mapDeps([17,18,19,20,21,22,23,24,25,26])))}),ope=Ae({getParentRoute:()=>km,path:"/orgs",component:Be(()=>Fe(()=>import("./orgs-D27MiLEE.js"),__vite__mapDeps([27,18,19,20,21,22,23,28,25,29,30,31,32,33,34,35,24,36,37,26])))}),npe=Ae({getParentRoute:()=>km,path:"/prompts",component:Be(()=>Fe(()=>import("./prompts-HUob4QMN.js"),__vite__mapDeps([38,21,28,35,26])))}),rpe=km.addChildren([tpe,ape,ope,npe]),JE=Ae({getParentRoute:()=>Ho,id:"shell",component:Be(()=>Fe(()=>import("./shell-layout-DY3i-TdN.js").then(e=>e.s),__vite__mapDeps([39,40,41,16,26,42,43,44,45,20,46,47,48,49,32,50,33,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,71,72,73,12,4,3,74,75,37,76,77,78,79,80,81,82,83,84,85,25,86,28,87,88,31,89,90,91,92,93,94,6,7,8,15,95,96,97,98])))}),spe=Ae({getParentRoute:()=>JE,path:"/",beforeLoad:async()=>{const e=tue();if(e)throw ua({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(Nr.lastOrgSlug());if(t)throw ua({to:"/$org",params:{org:t}});const{data:a}=await zB();if(!a)return;const o=a[0];throw ua(o?{to:"/$org",params:{org:o.slug}}:{to:"/onboarding"})}}),ipe=Ae({getParentRoute:()=>Ho,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await zB();if(e&&e.length>0)throw ua({to:"/"})},component:Be(()=>Fe(()=>import("./onboarding-BPFOqXcC.js"),__vite__mapDeps([99,15,5,100,64,28,34,40,49,67])))}),i5=es(()=>Se({org:$().optional(),siteUrl:$().optional(),fix:$().optional()})),lpe=Ae({getParentRoute:()=>Ho,path:"/reports-onboarding",component:Be(()=>Fe(()=>import("./reports-onboarding-BMXd4Y_i.js"),__vite__mapDeps([101,102,1,2,3,4,5,100,64,103,104,28,105,73,12,106,83,51,42,43,44,45,20,46,47,48,40,49,32,50,33,41,52,53,54,55,56,57,58,59,60,61,62,63,23,65,66,67,68,69,70,88,31,107,108,109,110,25,111,112,113,11,114,115,116,117,118,119]))),validateSearch:i5}),cpe=Ae({getParentRoute:()=>Ho,path:"/commerce-onboarding",validateSearch:i5,beforeLoad:({search:e})=>{throw ua({to:"/reports-onboarding",search:e})}}),dpe=Ae({getParentRoute:()=>Ho,path:"/choose-editor",component:Be(()=>Fe(()=>import("./choose-editor-EfVI0Ld9.js"),__vite__mapDeps([120,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,15]))),validateSearch:es(()=>Se({site:$().optional(),domain:$().optional(),pageId:$().optional(),path:$().optional(),pathTemplate:$().optional()}))}),XE=Ae({getParentRoute:()=>Ho,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor"},component:Be(()=>Fe(()=>import("./site-editor-Bfim5DtN.js"),__vite__mapDeps([121,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,129,8,88,31,54,69,130,131,132,133,134,135,136,59,137,138,139,45,42,43,44,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,140,71,103,104,28,141,142,85,81,82,25,143,35,144,145,146,147,148,149,150,151,7,152,153,29,30,154,155,156,157,158,159,160,161,162,21,22,163,164,165,166,167,168,169,170,171,34,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,39,16,26,83,84,86,87,89,92,94,6,15,97,98,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,111,209,210,211,212,117,213,214,215,216,217,218,219,220,221,222,223,224,225,24,226,227,228,229,18,19,230,231,232,233,234,235,236,237,238,110,239,240,241,242,243,244,245,246,115,108,116,247,248,249,250,112,113,11,251,252,253,254,255,256,257,258])))}),upe=Ae({getParentRoute:()=>XE,path:"/",staticData:{mainView:"site-editor",siteEditorView:"preview",local:!0},component:Be(()=>Fe(()=>import("./site-editor-Bfim5DtN.js"),__vite__mapDeps([121,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,129,8,88,31,54,69,130,131,132,133,134,135,136,59,137,138,139,45,42,43,44,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,140,71,103,104,28,141,142,85,81,82,25,143,35,144,145,146,147,148,149,150,151,7,152,153,29,30,154,155,156,157,158,159,160,161,162,21,22,163,164,165,166,167,168,169,170,171,34,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,39,16,26,83,84,86,87,89,92,94,6,15,97,98,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,111,209,210,211,212,117,213,214,215,216,217,218,219,220,221,222,223,224,225,24,226,227,228,229,18,19,230,231,232,233,234,235,236,237,238,110,239,240,241,242,243,244,245,246,115,108,116,247,248,249,250,112,113,11,251,252,253,254,255,256,257,258])),"SiteEditorPreview")}),ppe=Ae({getParentRoute:()=>XE,path:"/content",staticData:{mainView:"content",siteEditorView:"content",local:!0},component:Be(()=>Fe(()=>import("./site-editor-Bfim5DtN.js"),__vite__mapDeps([121,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,129,8,88,31,54,69,130,131,132,133,134,135,136,59,137,138,139,45,42,43,44,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,140,71,103,104,28,141,142,85,81,82,25,143,35,144,145,146,147,148,149,150,151,7,152,153,29,30,154,155,156,157,158,159,160,161,162,21,22,163,164,165,166,167,168,169,170,171,34,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,39,16,26,83,84,86,87,89,92,94,6,15,97,98,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,111,209,210,211,212,117,213,214,215,216,217,218,219,220,221,222,223,224,225,24,226,227,228,229,18,19,230,231,232,233,234,235,236,237,238,110,239,240,241,242,243,244,245,246,115,108,116,247,248,249,250,112,113,11,251,252,253,254,255,256,257,258])),"SiteEditorContent")}),mpe=Ae({getParentRoute:()=>Ho,path:"/report/$domain",component:Be(()=>Fe(()=>import("./reports-_0A_EKdr.js"),__vite__mapDeps([259,114,4,1,2,3,260])))}),Pb=Ae({getParentRoute:()=>JE,path:"/$org",loader:({params:e})=>oue(e.org),pendingMs:1/0,component:Be(()=>Fe(()=>import("./route-D4lsDGNx.js"),__vite__mapDeps([261,137,131,8,132,88,31,138,139,45,42,43,44,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,140,71,72,73,12,4,3,74,75,37,76,103,104,28,141,142,96,93,78,85,77,81,82,25,143,35,130,133,79,80,134,126,151,7,16,240,124,123,245,206,30,262,90,91,263,24,264,265,173,165,149,154,266,34,89,267,155,214,231,230,268,188,94,84,187,127,190,153,110,269,243])))}),_b=Ae({getParentRoute:()=>Pb,id:"org-shell",pendingComponent:Xd,component:Be(()=>Fe(()=>import("./thread-route-BtRW4s3r.js"),__vite__mapDeps([270,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,102,271,107,108,109,47,105,106,83,51,42,43,44,45,20,46,48,40,49,32,50,33,41,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,88,31,104,28,110,25,111,112,113,11,114,115,116,117,272,118])))}),hpe=Se({sidepanel:iF,mainpanel:lF,main:la([$(),Ze(0)]).optional(),thread:$().optional(),autosend:$().optional(),preview:$().optional(),virtualmcpid:$().optional()}),tn=Ae({getParentRoute:()=>_b,id:"agent-shell",validateSearch:hpe,search:{middlewares:[N$(["sidepanel","thread"])]},pendingComponent:Xd,component:Be(()=>Fe(()=>import("./route-DM277Rmm.js"),__vite__mapDeps([273,237,20,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,238,167,168,169,170,42,43,44,45,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,8,88,31,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,195,249,250,112,113,11,251,24,252,253,187,133,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,193,194,132,197,146,214,274,174,148,147,175,21,235,236,149,129,130,131,134,135,136,22,275,276,231,216,215,265,173,165,212,230,141,277,278,279,280,281,156,208,144])))}),gpe=xm.extend({virtualmcpid:$().optional()}),fpe=Ae({getParentRoute:()=>tn,path:"/$taskId",validateSearch:gpe,component:()=>null}),Rt=Be(()=>Fe(()=>import("./index-1MznTcP1.js"),__vite__mapDeps([129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125])),"ChatLayoutPending"),Dt=Be(()=>Fe(()=>import("./index-1MznTcP1.js"),__vite__mapDeps([129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125])),"ChatLayoutError"),vpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/home",staticData:{pageTitle:"sidebar.navDestinations.home",defaultMain:"overview",mainView:"overview"},validateSearch:Se({connect:eb().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./home-Dofusewo.js"),__vite__mapDeps([282,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,238,167,168,169,170,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,195,249,250,112,113,11,251,24,252,253,187,254,283,284,285,286,203,204,202,287,84,141,188,138,189,190,268,288,289,281,156,208,278,279,280,86,85,87,89,25,94,290,262,142])))}),bpe=Ae({getParentRoute:()=>tn,path:"/projects",validateSearch:xm,beforeLoad:({params:e,search:t})=>{const a=(t.project??t.virtualmcpid)?.trim(),o=r=>({...r,virtualmcpid:void 0,project:void 0,task:void 0});if(!a)throw ua({to:"/$org/home",params:{org:e.org},search:o,hash:!0,replace:!0});const n=t.task?.trim();throw ua(n?{to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:e.org,agentId:a,taskKey:n},search:o,hash:!0,replace:!0}:{to:"/$org/projects/$agentId",params:{org:e.org,agentId:a},search:o,hash:!0,replace:!0})}}),Yt=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/projects/$agentId",validateSearch:xm,beforeLoad:({cause:e,location:t})=>({enteredProject:e!=="preload"&&!Tue(t.state)}),component:Sk}),ype=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/",staticData:{pageTitle:"page.overview",defaultMain:"overview",mainView:"overview"},component:Be(()=>Fe(()=>import("./agent-overview-CU4OxoSh.js"),__vite__mapDeps([291,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,238,167,168,169,170,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,195,249,250,112,113,11,251,24,252,253,187,254,283,284,285,286,203,204,202,287,84,141,188,138,189,190,268,288,262,277])))}),wpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Se({task:$().optional(),...ZE}),beforeLoad:({params:e,search:t})=>{const a=a5(e.taskKey,t);if(a)throw ua({to:"/$org/projects/$agentId/tasks/{-$taskKey}",params:{org:e.org,agentId:e.agentId,taskKey:a?.taskKey??e.taskKey},search:a.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./project-tasks-PqGrMvTf.js"),__vite__mapDeps([292,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,293,138,139,294,205,50,81,82,23,151,42,43,44,45,20,46,47,48,40,49,32,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,65,66,67,68,70,295,24,110,128,90,91,296,75,37,74,3,297,140,263,268,188,86,28,85,72,4,76,87,89,92,25,93,94,187,127,289,29,30,298,143,189,190,182,211,186,170,169,122,95,96,123,124,299,167,168,171,104,183,242,300,219,175,301,195,84,109,302,253,185,39,16,26,71,83,6,7,15,97,98,191,192,193,194,196,197,198,252,274,234,239,303,244,245])))}),Spe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Se({connect:eb().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./project-reports-BgfXlJKG.js"),__vite__mapDeps([304,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,305,47,102,271,107,108,109,118,119,42,43,44,45,20,46,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,81,82,94,72,4,3,74,75,37,76,290,86,28,85,87,89,90,91,92,25,93,306])))}),Ab=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/site-editor",staticData:{pageTitle:"sidebar.projectNav.siteEditor",defaultMain:"site-editor",mainView:"site-editor"},validateSearch:Se({autosend:$().optional(),...o5}),component:Be(()=>Fe(()=>import("./agent-site-editor-D86Vpk2I.js"),__vite__mapDeps([232,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,233,234,145,146,147,148,149,150,151,7,88,31,8,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,152,153,29,30,154,155,156,157,71,134,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,133,254,185,186,138,188,189,190,191,192,193,194,132,197,214,221,222,210,211,178,208,255,174,175,256,226,129,130,131,135,136,257,258])))}),Tpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/blog",staticData:{pageTitle:"sidebar.projectNav.blog",defaultMain:"blog",mainView:"blog"},validateSearch:Se(Hue),component:Be(()=>Fe(()=>import("./agent-blog-DjjfQBNh.js"),__vite__mapDeps([307,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,233,234,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,145,146,147,148,149,150,151,7,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,152,153,29,30,154,155,156,157,71,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,214,221,222,210,211,178,208,255,174,175,303,206,218,160,161,22,165,166,184,219,223,224,225,226,173,227,228,207,308,209,309,275,276,231,216,215,265,257])))}),xpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/blog/posts/$postId",staticData:{pageTitle:"sidebar.projectNav.blog",defaultMain:"blog",mainView:"blog-post"},validateSearch:Se(Wue),component:Be(()=>Fe(()=>import("./agent-blog-post-ht1HzHjG.js"),__vite__mapDeps([310,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,233,234,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,145,146,147,148,149,150,151,7,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,152,153,29,30,154,155,156,157,71,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,214,221,222,210,211,178,208,255,174,175,303,226,184,227,228,161,176,209,308,257])))}),kpe=Ae({getParentRoute:()=>Ab,path:"/",staticData:{defaultMain:"site-editor",mainView:"site-editor",siteEditorView:"preview"},component:Be(()=>Fe(()=>import("./agent-site-editor-preview-BnRGLhv2.js"),__vite__mapDeps([311,309,275,133,79,80,77,78,73,12,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,238,167,169,170,8,88,31,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,132,197,146,148,147,231,216,215,265,173,165,149,212,303,158,159,160,145,156,157,161,162,21,22,166,34,174,175,176,134,177,178,179,180,181,182,183,139,184,199,200,201,202,203,204,205,206,207,208,111,209,144,135,210,211,213])))}),Epe=Ae({getParentRoute:()=>Ab,path:"/content",staticData:{defaultMain:"content",mainView:"content",siteEditorView:"content"},component:Be(()=>Fe(()=>import("./agent-site-editor-content-Bf0qTV-m.js"),__vite__mapDeps([312,309,275,133,79,80,77,78,73,12,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,238,167,169,170,8,88,31,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,132,197,146,148,147,231,216,215,265,173,165,149,212,303,217,181,160,145,156,157,161,162,21,22,166,159,34,182,183,139,184,175,178,199,200,201,202,203,204,205,206,218,219,220,221,222,223,224,225,226,227,228,207,208,174,180,229,18,19])))}),Cpe=Ae({getParentRoute:()=>Ab,path:"/code",staticData:{defaultMain:"code",mainView:"code",siteEditorView:"code"},validateSearch:Se({file:$().optional()}),component:Be(()=>Fe(()=>import("./agent-site-editor-code-DJU6jSgs.js"),__vite__mapDeps([313,309,275,133,79,80,77,78,73,12,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,238,167,169,170,8,88,31,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,132,197,146,148,147,231,216,215,265,173,165,149,212,303,21])))}),Ppe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/automations",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automations"},beforeLoad:({params:e,search:t})=>{const a=t.automation;if(a)throw ua({to:"/$org/projects/$agentId/automations/$automationId",params:{org:e.org,agentId:e.agentId,automationId:a},search:o=>({...o,automation:void 0}),hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./agent-automations-BurHzRja.js"),__vite__mapDeps([314,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,64,44,70,22,23,21,296,315,24,55,66,42,43,45,20,46,47,48,40,49,32,50,33,41,51,52,53,56,2,57,58,60,61,62,63,65,67,68])))}),_pe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/automations/$automationId",staticData:{pageTitle:"settings.nav.automations",defaultMain:"automations",mainView:"automation"},validateSearch:Se({automationView:Wt(["settings","runs"]).optional()}),component:Be(()=>Fe(()=>import("./agent-automation-CkM2my-l.js"),__vite__mapDeps([316,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,153,34,151,81,82,171,195,276,83,317,7,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,152,29,30,154,155,318,296,186,39,16,26,71,84,85,25,86,28,87,89,92,94,6,15,97,98,319,241,242,167,168,169,170,104,196,320,188,138,321,163,164,207,208,322,19,21,323,252,274,302,253,185,187,189,190,191,192,193,194,197,198,251])))}),Ape=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/settings",staticData:{pageTitle:"sidebar.navDestinations.settings",defaultMain:"settings",mainView:"settings"},component:Be(()=>Fe(()=>import("./agent-settings-Bo977gec.js"),__vite__mapDeps([324,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,325,48,42,43,44,45,20,46,47,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,326,327,328,329,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,35,21,330,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,331,115,108,116,117,318,267,113,11,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,198,332,193,153,276,196,168,34,151,206,214,265,173,165,149,264,170,36,212,147,333,334,194,213,236])))}),Rpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Se(Dv),component:Be(()=>Fe(()=>import("./agent-library-BexZfa5-.js"),__vite__mapDeps([335,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,336,56,64,67,22,23,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,25,337,35,32,33,42,43,44,45,20,46,47,48,40,49,50,41,51,52,53,55,2,57,58,60,61,62,63,65,66,68,70,169,170,325,326,327,328,329,21,330,39,16,26,71,81,82,83,84,85,86,28,87,89,92,94,6,7,15,97,98,280,151,278,279,110,281,156,208,198,338,226,19,331,115,108,116,117,318,267,113,11,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,332,193,153,276,196,168,34,206,214,265,173,165,149,264,36,212,147,333,334,194,213,236])))}),Dpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/assets",staticData:{pageTitle:"common.mainPanelTabs.assets",defaultMain:"assets",mainView:"assets"},component:Be(()=>Fe(()=>import("./agent-assets-UhIpqMpm.js"),__vite__mapDeps([339,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,309,275,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,238,167,169,170,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,197,146,148,147,231,216,215,265,173,165,149,212,22,166,226])))}),Ope=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/releases",staticData:{pageTitle:"common.mainPanelTabs.releases",defaultMain:"releases",mainView:"releases"},component:Be(()=>Fe(()=>import("./agent-releases-CihXHKu6.js"),__vite__mapDeps([340,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,309,275,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,195,276,193,168,214,237,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,238,167,169,170,171,104,28,110,198,239,150,151,7,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,92,115,108,116,117,247,248,83,35,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,39,16,26,71,81,82,84,85,25,86,87,89,94,6,15,97,98,191,192,194,197,146,148,147,231,216,215,265,173,165,149,212,226,145,156,157,222])))}),Npe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/hosting",staticData:{pageTitle:"common.mainPanelTabs.hosting",defaultMain:"hosting",mainView:"hosting"},component:Be(()=>Fe(()=>import("./agent-hosting-BHooSE_7.js"),__vite__mapDeps([341,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,24,226,149,43,44,42,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,110,19,186,28,29,30,172,164,342,331,115,108,116,117,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,318,21,39,16,26,71,81,82,83,84,85,25,86,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,249,250,112,251,252,253,198,332,193,153,276,196,168,34,151,206,214,265,173,165,264,329,170,36,212,147,333,334,194,213,236])))}),Mpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/e2e",staticData:{pageTitle:"common.mainPanelTabs.e2e",defaultMain:"e2e",mainView:"e2e"},component:Be(()=>Fe(()=>import("./agent-e2e-Cj_dCYUn.js"),__vite__mapDeps([343,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,28,29,30,19,226,186,163,164,342,331,115,108,116,117,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,318,21,39,16,26,71,81,82,83,84,85,25,86,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,249,250,112,251,252,253,198,332,193,153,276,196,168,34,151,206,214,265,173,165,149,264,329,170,36,212,147,333,334,194,213,236])))}),Ipe=Ae({getParentRoute:()=>Yt,path:"/analytics",validateSearch:Se({view:$().optional()}),beforeLoad:({params:e,search:t})=>{throw ua({to:"/$org/projects/$agentId/monitoring",params:e,search:{view:t.view==="experiments"?"experiments":"audience"},replace:!0})}}),Lpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/taskboard-analytics",staticData:{pageTitle:"taskBoard.analytics.title",defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-CcpVNWT1.js"),__vite__mapDeps([344,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,251,24,294,345,151,206,30,32,44,182,346,286,203,204,202,287,19,43,20,172,164,188,138,49,56,75,37,347,189,190,205,50,81,82,23])))}),Bpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/experiments",staticData:{pageTitle:"common.mainPanelTabs.experiments",defaultMain:"experiments",mainView:"experiments"},validateSearch:Se({test:$().optional().catch(void 0)}),component:Be(()=>Fe(()=>import("./agent-experiments-BpCqOTFB.js"),__vite__mapDeps([348,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,233,234,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,145,146,147,148,149,150,151,7,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,152,153,29,30,154,155,156,157,71,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,214,221,222,210,211,178,208,255,174,175,349,226,350,199,200,201,202,203,204,351,161,228,220,256])))}),Fpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/calendar",staticData:{pageTitle:"common.mainPanelTabs.calendar",defaultMain:"calendar",mainView:"calendar"},component:Be(()=>Fe(()=>import("./agent-calendar-B31Xb2WF.js"),__vite__mapDeps([352,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,233,234,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,145,146,147,148,149,150,151,7,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,152,153,29,30,154,155,156,157,71,81,82,163,164,25,39,16,26,83,84,85,86,28,87,89,92,94,6,15,97,98,235,236,212,117,179,162,21,237,238,167,168,169,170,171,104,110,198,239,240,172,241,242,196,243,244,245,246,115,108,116,247,248,35,195,249,250,112,113,11,251,24,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,214,221,222,210,211,178,208,255,174,175,226,206,220,350,199,200,201,202,203,204,351,161,228,225,256,342,331,318,267,319,332,276,34,265,173,165,264,329,36,333,334,213])))}),jpe=Ae({getParentRoute:()=>Yt,path:"/cdn",beforeLoad:({params:e})=>{throw ua({to:"/$org/projects/$agentId/monitoring",params:e,search:{view:"performance"},replace:!0})}}),l5=Se({args:$().optional()}),zpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/apps/$connectionId/$toolName",validateSearch:l5,staticData:{pageTitle:"page.app",defaultMain:"app",mainView:"app"},component:Be(()=>Fe(()=>import("./agent-app-WCej8Ohc.js"),__vite__mapDeps([353,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,216,72,4,3,74,75,37,76,354,171,276,191,192,193,122,95,96,93,123,124,127,128,90,91,39,40,41,16,26,42,43,44,45,20,46,47,48,49,32,50,33,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,189,138,190,355,102,106,107,108,109,104,110,111,112,113,11,114,115,116,117])))}),qpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/views/$viewId",validateSearch:l5,staticData:{pageTitle:"page.view",defaultMain:"view",mainView:"view"},component:Be(()=>Fe(()=>import("./agent-view-DWAXSq2E.js"),__vite__mapDeps([356,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,354,171,276,191,192,193,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,39,40,41,16,26,42,43,44,45,20,46,47,48,49,32,50,33,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,189,138,190,355,102,106,107,108,109,104,110,111,112,113,11,114,115,116,117,342,331,318,21,267,35,195,319,246,247,248,29,30,249,250,251,24,252,253,198,332,153,196,168,34,151,206,214,265,173,165,149,264,329,170,36,212,147,333,334,194,213,236])))}),Upe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/outputs/file",staticData:{pageTitle:"page.file",defaultMain:"file",mainView:"file"},validateSearch:Se({key:$().optional()}),component:Be(()=>Fe(()=>import("./agent-file-C0j8dAw7.js"),__vite__mapDeps([357,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,198,281,128,90,91,156,208,169,170,122,95,96,93,37,75,72,4,3,74,76,123,124,127,197,342,331,115,108,116,117,318,21,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,332,193,153,276,196,168,34,151,206,214,265,173,165,149,264,329,36,212,147,333,334,194,213,236])))}),$pe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/outputs/deck",staticData:{pageTitle:"page.document",defaultMain:"deck",mainView:"deck"},validateSearch:Se({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-deck-CY5g-mtT.js"),__vite__mapDeps([358,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,280,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,128,90,91,151,342,331,115,108,116,117,122,95,96,93,37,75,72,4,3,74,76,123,124,127,318,21,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,198,332,193,153,276,196,168,34,206,214,265,173,165,149,264,329,170,36,212,147,333,334,194,213,236])))}),Vpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/library/file",staticData:{pageTitle:"page.file",defaultMain:"library-file",mainView:"library-file"},validateSearch:Se({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-library-file-fgZ_PI8s.js"),__vite__mapDeps([359,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,360,279,110,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,280,128,90,91,151,281,156,208,198,169,170,122,95,96,93,37,75,72,4,3,74,76,123,124,127,342,331,115,108,116,117,318,21,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,267,113,11,35,195,319,246,247,248,104,29,30,249,250,112,251,24,252,253,332,193,153,276,196,168,34,206,214,265,173,165,149,264,329,36,212,147,333,334,194,213,236])))}),Hpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/connect-sources",staticData:{pageTitle:"settings.nav.connect",defaultMain:"connect-sources",mainView:"connect-sources"},component:Be(()=>Fe(()=>import("./agent-connect-sources-zoO63WyJ.js"),__vite__mapDeps([361,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,105,102,106,83,51,42,43,44,45,20,46,47,48,40,49,32,50,33,41,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,107,108,109,104,28,110,25,111,112,113,11,114,115,116,117,272,118])))}),Gpe=Ae({getParentRoute:()=>Yt,path:"/$legacyView",component:()=>null}),Wpe=Ae({getParentRoute:()=>tn,path:"/agents",validateSearch:xm,beforeLoad:({params:e,search:t})=>{const a=t.virtualmcpid?.trim();throw ua(a?{to:"/$org/projects/$agentId",params:{org:e.org,agentId:a},search:o=>o,hash:!0,replace:!0}:{to:"/$org/projects",params:{org:e.org},search:o=>o,hash:!0,replace:!0})}}),Kpe=Ae({getParentRoute:()=>tn,path:"/agents/$",validateSearch:xm,beforeLoad:({params:e,location:t})=>{const a=e._splat?.split("/").find(Boolean);if(!t5(a))return;const o=Oue(t.pathname);if(!o)return;const n=t.hash?`#${t.hash}`:"";throw ua({href:`${o}${t.searchStr}${n}`,replace:!0})},component:Be(()=>Fe(()=>import("./legacy-agents-deep-BWjyNNwC.js"),__vite__mapDeps([362,277,80])))}),Ype=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/tasks/{-$taskKey}",staticData:{pageTitle:"sidebar.navDestinations.tasks",defaultMain:"board",mainView:"board"},validateSearch:Se({task:$().optional(),...ZE}),beforeLoad:({params:e,search:t})=>{const a=a5(e.taskKey,t);if(a)throw ua({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:a.taskKey},search:a.search,hash:!0,replace:!0})},component:Be(()=>Fe(()=>import("./tasks-BI6TiZug.js"),__vite__mapDeps([363,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,293,138,139,294,205,50,81,82,23,151,42,43,44,45,20,46,47,48,40,49,32,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,65,66,67,68,70,295,24,110,128,90,91,296,75,37,74,3,297,140,263,268,188,86,28,85,72,4,76,87,89,92,25,93,94,187,127,289,29,30,298,143,189,190,182,211,186,170,169,122,95,96,123,124,299,167,168,171,104,183,242,300,219,175,301,195,84,109,302,253,185,39,16,26,71,83,6,7,15,97,98,191,192,193,194,196,197,198,252,274,234,239,303,244,245])))}),Qpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/taskboard-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./taskboard-analytics-CcpVNWT1.js"),__vite__mapDeps([344,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,251,24,294,345,151,206,30,32,44,182,346,286,203,204,202,287,19,43,20,172,164,188,138,49,56,75,37,347,189,190,205,50,81,82,23])))}),Zpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/thread-analytics",staticData:{defaultMain:"board",mainView:"board"},component:Be(()=>Fe(()=>import("./thread-analytics-DRdLB3rD.js"),__vite__mapDeps([364,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,346,286,203,204,202,287,19,43,20,44,172,164,24,188,138,49,56,75,37,347,74,3,205,50,81,82,23,151,29,30,32,33,163,302,253,91,51,185,42,45,46,47,48,40,41,52,53,55,2,57,58,60,61,62,63,64,65,66,67,68,70,186,170,167,168,169,122,95,96,93,72,4,76,123,124,127,128,90,171,104,28,187,189,190,39,16,26,71,83,84,85,25,86,87,89,92,94,6,7,15,97,98,191,192,193,194,195,196,197,198,252,274])))}),Jpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/reports",staticData:{pageTitle:"sidebar.navDestinations.reports",defaultMain:"reports",mainView:"reports"},validateSearch:Se({connect:eb().optional(),siteUrl:$().optional()}),component:Be(()=>Fe(()=>import("./reports-27XnI8FT.js"),__vite__mapDeps([365,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,305,47,102,271,107,108,109,118,119,42,43,44,45,20,46,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,81,82,94,72,4,3,74,75,37,76,290,86,28,85,87,89,90,91,92,25,93,306])))}),Xpe=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/library",staticData:{pageTitle:"sidebar.navDestinations.library",defaultMain:"files",mainView:"files"},validateSearch:Se(Dv),component:Be(()=>Fe(()=>import("./library-BRE4U3sI.js"),__vite__mapDeps([366,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,8,129,88,31,54,69,130,131,132,133,134,135,136,59,325,48,42,43,44,45,20,46,47,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,326,327,328,329,35,21,330,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,360,279,110,280,151,281,156,208,198,169,170,336,22,337,278,338,226,19])))}),eme=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-D3G368nu.js"),__vite__mapDeps([367,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,368,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,35,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,237,238,167,168,169,170,171,104,110,198,239,150,151,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,115,108,116,117,247,248,195,249,250,112,113,11,251,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,146,214,267,369])))}),c5=Se({view:Wt(["metrics","alerts","performance","logs","audience","heatmap","analytics","errors","realtime","pages","events","deploys","experiments"]).optional().catch(void 0),date:gL().optional().catch(void 0),store:$().optional(),at:$().optional(),project:$().optional(),section:$().optional(),customer:$().optional(),test:$().optional().catch(void 0),f:je($()).optional().catch(void 0),currency:$().optional(),prop:$().optional()}),tme=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:c5,component:Be(()=>Fe(()=>import("./monitoring-DYcXu5Mj.js"),__vite__mapDeps([370,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,205,81,82,151,226,371,286,203,204,202,287,24,182,74,75,37,3,111,347,288,138,90,91,122,95,96,93,72,4,76,123,124,127,128,150,7,152,153,29,30,154,155,330,39,16,26,71,83,84,85,25,86,28,87,89,92,94,6,15,97,98,346,19,172,164,188,355,102,106,107,108,109,104,110,112,113,11,114,115,116,117,195,200,201,163,149,349,350,162,145,146,147,148,156,157,21,199,351,161,228,220,256,372,35,297,301,22,34,323,252,373])))}),ame=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/plan",staticData:{pageTitle:"sidebar.navDestinations.plan",defaultMain:"plan",mainView:"plan"},component:Be(()=>Fe(()=>import("./plan-D3G368nu.js"),__vite__mapDeps([367,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,368,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,35,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,237,238,167,168,169,170,171,104,110,198,239,150,151,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,115,108,116,117,247,248,195,249,250,112,113,11,251,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,146,214,267,369])))}),ome=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/plan/case",staticData:{pageTitle:"page.businessCase",defaultMain:"business-case",mainView:"business-case"},validateSearch:Se({path:$().optional()}),component:Be(()=>Fe(()=>import("./agent-business-case-2p0OVX34.js"),__vite__mapDeps([374,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,368,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,24,122,95,96,93,37,75,72,4,3,74,76,123,124,127,128,90,91,35,39,16,26,71,81,82,83,84,85,25,86,28,87,89,92,94,6,7,15,97,98,237,238,167,168,169,170,171,104,110,198,239,150,151,152,153,29,30,154,155,163,164,240,172,241,242,196,243,244,245,246,115,108,116,117,247,248,195,249,250,112,113,11,251,252,253,187,254,185,186,138,188,189,190,191,192,193,194,197,146,214,267,369])))}),nme=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>Yt,path:"/monitoring",staticData:{pageTitle:"sidebar.navDestinations.monitor",defaultMain:"monitoring",mainView:"monitoring"},validateSearch:c5,component:Be(()=>Fe(()=>import("./monitoring-DYcXu5Mj.js"),__vite__mapDeps([370,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,55,56,2,57,58,60,61,62,63,64,23,65,66,67,68,70,205,81,82,151,226,371,286,203,204,202,287,24,182,74,75,37,3,111,347,288,138,90,91,122,95,96,93,72,4,76,123,124,127,128,150,7,152,153,29,30,154,155,330,39,16,26,71,83,84,85,25,86,28,87,89,92,94,6,15,97,98,346,19,172,164,188,355,102,106,107,108,109,104,110,112,113,11,114,115,116,117,195,200,201,163,149,349,350,162,145,146,147,148,156,157,21,199,351,161,228,220,256,372,35,297,301,22,34,323,252,373])))}),rme=Ae({pendingComponent:Rt,errorComponent:Dt,getParentRoute:()=>tn,path:"/discover",staticData:{pageTitle:"sidebar.navDestinations.discover",defaultMain:"discover",mainView:"discover"},component:Be(()=>Fe(()=>import("./discover-YpYScJNb.js"),__vite__mapDeps([375,129,8,88,31,54,69,130,131,132,133,79,80,77,78,73,12,134,126,135,136,59,125,47,53,57,64,68,89,195,165,173,212,117,76])))}),sme=Ae({getParentRoute:()=>Pb,path:"/members",beforeLoad:({params:e})=>{throw ua({to:"/$org/settings/members",params:{org:e.org}})}}),ime=Se({main:la([$(),Ze(0)]).optional(),virtualmcpid:$().optional(),...n5,sidepanel:iF,mainpanel:lF,thread:$().optional()}),lme=Ae({getParentRoute:()=>_b,path:"/",validateSearch:ime,pendingComponent:Xd,component:Be(()=>Fe(()=>import("./index-CsVpFXKd.js"),__vite__mapDeps([376,277,80])))}),cme=Ae({getParentRoute:()=>_b,path:"/t/$taskKey",beforeLoad:({params:e})=>{throw ua({to:"/$org/tasks/{-$taskKey}",params:{org:e.org,taskKey:e.taskKey},search:t=>t,hash:!0,replace:!0})}}),ca=Ae({staticData:{pageTitle:"sidebar.navDestinations.settings"},getParentRoute:()=>Pb,path:"/settings",pendingComponent:Xd,component:Be(()=>Fe(()=>import("./route-C3U_AJJn.js"),__vite__mapDeps([377,8,136,59,131,132,88,31,134,77,78,73,12,125,126,80,378,64,24,151,172,164,124,123,245])))}),dme=Ae({getParentRoute:()=>ca,path:"/",component:Be(()=>Fe(()=>import("./index-redirect-BE6X99-K.js"),__vite__mapDeps([379,328])))}),ume=Ae({getParentRoute:()=>ca,path:"/connections",validateSearch:es(()=>Se({action:Wt(["create"]).optional(),tab:Wt(["all","connected"]).optional()})),beforeLoad:({params:e,search:t})=>{throw ua({to:"/$org/library",params:{org:e.org},search:{section:"connections",...t},replace:!0})}}),pme=Ae({staticData:{pageTitle:"settings.nav.connections"},getParentRoute:()=>ca,path:"/connections/$appSlug",component:Be(()=>Fe(()=>import("./connection-detail-CSA1uvaN.js"),__vite__mapDeps([380,115,108,116,117,21,250,64,66,381,73,12,276,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,23,65,67,68,69,70,195,29,30,31,204,382,201,82,151,88,78,8,85,72,4,3,74,75,37,76,249,332,24,193,11,113,83,132,104,28,196,383,384,286,203,202,287,347,163,164,248,192,92]))),validateSearch:es(()=>Se({tab:$().optional()}))}),mme=Ae({staticData:{pageTitle:"page.item"},getParentRoute:()=>ca,path:"/connections/$appSlug/$collectionName/$itemId",component:Be(()=>Fe(()=>import("./collection-detail-BAQZapxx.js"),__vite__mapDeps([385,21,73,12,104,28,35,381,276,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,195,115,108,116,117,29,30,31,204,382,201,82,151,88,78,8,85,72,4,3,74,75,37,76,249,192,193,211,248,332,24,11,191,83,122,79,80,77,95,96,93,123,124,125,126,127,128,90,91,39,16,26,71,81,84,25,86,87,89,92,94,6,7,15,97,98,207,208,226]))),validateSearch:es(()=>Se({replayId:$().optional()}))}),hme=Ae({staticData:{pageTitle:"orgs.monitoring.title"},getParentRoute:()=>ca,path:"/monitor",component:Be(()=>Fe(()=>import("./index-D3pPEYVX.js"),__vite__mapDeps([386,22,23,21,326,327,328,185,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,65,66,67,68,69,70,186,170,167,168,169,122,79,80,77,78,73,12,95,96,93,37,75,72,4,3,74,76,123,124,125,126,127,128,90,91,8,88,31,171,104,28,138,187,188,189,190,39,16,26,71,81,82,83,84,85,25,86,87,89,92,94,6,7,15,97,98,191,192,193,194,132,195,196,197,198,248,24,151,207,208,321,153,29,30,345,206,182,35,251,34,211,384,286,203,204,202,287,347,302,253,252,274,19,323,296,322,226,371,111,288,303,244,245]))),validateSearch:es(()=>Se({tab:Wt(["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:Wt(["all","success","errors"]).default("all"),search:$().default(""),page:Lt().optional(),streaming:Vt().default(!0),propertyFilters:$().default(""),hideSystem:Vt().default(!1)}))}),gme=Ae({staticData:{pageTitle:"settings.nav.general"},getParentRoute:()=>ca,path:"/general",component:Be(()=>Fe(()=>import("./general-DcnCqnTz.js"),__vite__mapDeps([387,319,388,34,48,41,93,37,75,195,73,12,389,24,29,30,31,32,33,328])))}),fme=Ae({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>ca,path:"/connect",pendingComponent:Vs("connect"),component:Be(()=>Fe(()=>import("./connect-BWbVox-H.js"),__vite__mapDeps([390,211,24,29,30,31,32,33,163,164,170,42,43,44,45,20,46,47,48,40,49,50,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,284,285,73,12,326,327,328,391,226,28,382,276,153,22,83,392,252,253,91,92,116,117,195])))}),vme=Ae({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/ai-providers",pendingComponent:Vs("billing"),component:Be(()=>Fe(()=>import("./ai-providers-D-0PR2Pt.js"),__vite__mapDeps([393,43,124,49,24,93,37,75,317,7,8,122,79,80,77,78,73,12,95,96,72,4,3,74,76,123,125,126,127,128,90,91,152,153,60,29,30,31,32,33,46,50,58,45,23,154,155,61,56,57,319,378,64,151,172,164,88,245,266,34,89,66,267,326,327,328])))}),bme=Ae({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/billing",beforeLoad:({params:e})=>{throw ua({to:"/$org/settings/ai-providers",params:{org:e.org}})}}),yme=Ae({staticData:{pageTitle:"settings.nav.billing"},getParentRoute:()=>ca,path:"/infra-billing",pendingComponent:Vs("billing"),component:Be(()=>Fe(()=>import("./infra-billing-BxeNlAa8.js"),__vite__mapDeps([394,52,24,321,153,60,32,81,82,23,151,29,30,31,33,19,287,203,204,372,347,326,327,328])))}),wme=Ae({staticData:{pageTitle:"settings.nav.secrets"},getParentRoute:()=>ca,path:"/secrets",component:Be(()=>Fe(()=>import("./secrets-Dq8SBN86.js"),__vite__mapDeps([395,43,64,68,226,28,29,30,31,32,33,35,334,326,327,328])))}),Sme=Ae({staticData:{pageTitle:"settings.nav.connect"},getParentRoute:()=>ca,path:"/api-keys",pendingComponent:Vs("connect"),component:Be(()=>Fe(()=>import("./api-keys-D9cHma1w.js"),__vite__mapDeps([396,391,43,42,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,226,28,24,382,29,30,31,73,12,276,153,22,83,392,252,253,91,92,116,117,195,285,326,327,328])))}),Tme=Ae({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>ca,path:"/buckets",pendingComponent:Vs("storage"),component:Be(()=>Fe(()=>import("./buckets-CDoJdgAV.js"),__vite__mapDeps([397,43,64,66,24,226,28,29,30,31,32,33,34,35,165,326,327,328])))}),xme=Ae({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:Lt().int().positive().safe().optional().catch(void 0),git_return:Vt().optional().catch(void 0)}),pendingComponent:Vs("repositories"),component:Be(()=>Fe(()=>import("./repositories-ZmUEP2Dl.js"),__vite__mapDeps([398,399,87,46,64,88,31,28,89,90,91,92,23,48,65,25,93,37,75,47,153,60,51,68,226,24,211,110,186,29,30,32,33,35,66,333,334,326,327,328])))}),kme=Ae({staticData:{pageTitle:"settings.nav.storage"},getParentRoute:()=>ca,path:"/synced-repos",pendingComponent:Vs("storage"),component:Be(()=>Fe(()=>import("./synced-repos-DBQkxqEP.js"),__vite__mapDeps([400,64,226,87,46,88,31,28,89,90,91,92,23,48,65,25,93,37,75,337,326,327,328])))}),Eme=Ae({staticData:{pageTitle:"settings.nav.tasks"},getParentRoute:()=>ca,path:"/task-board",component:Be(()=>Fe(()=>import("./tasks-DgRlt9Jm.js"),__vite__mapDeps([401,153,60,35,50,63,64,205,81,82,23,151,321,24,32,29,30,31,33,34,320,388,48,41,93,37,75,195,73,12,25,296,295,69,70,110,88,132,128,90,91,77,78,74,3,326,327,328])))}),Cme=Ae({getParentRoute:()=>ca,path:"/tasks",beforeLoad:({params:e})=>{throw ua({to:"/$org/settings/task-board",params:{org:e.org}})}}),Pme=Ae({staticData:{pageTitle:"projects.settings.title"},getParentRoute:()=>ca,path:"/projects",component:Be(()=>Fe(()=>import("./projects-DTOK8QNl.js"),__vite__mapDeps([402,42,43,44,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,55,56,2,57,58,59,60,61,62,63,64,23,65,66,67,68,69,70,24,22,86,28,73,12,85,78,72,4,3,74,75,37,76,87,88,31,89,90,91,92,25,93,94,290,267,271,107,108,109,306,77,195])))}),_me=Ae({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>ca,path:"/members",pendingComponent:Vs("members"),component:Be(()=>Fe(()=>import("./members-cK9nGyBK.js"),__vite__mapDeps([403,404,20,55,88,31,172,164,24,22,23,18,19,21,104,28,29,30,32,33,35,405,269,58,66,69,153,60,81,82,151,64,298,326,327,328])))}),Ame=Ae({staticData:{pageTitle:"settings.nav.members"},getParentRoute:()=>ca,path:"/roles",pendingComponent:Vs("members"),component:Be(()=>Fe(()=>import("./roles-C_CISioM.js"),__vite__mapDeps([406,405,24,55,64,66,18,19,20,21,22,23,154,392,83,51,42,43,44,45,46,47,48,40,49,32,50,33,41,52,53,54,56,2,57,58,59,60,61,62,63,65,67,68,69,70,252,153,253,91,73,12,92,116,117,195,78,124,34,88,31,84,77,327,328]))),validateSearch:es(()=>Se({role:$().optional()}))}),Rme=Ae({staticData:{pageTitle:"settings.nav.security"},getParentRoute:()=>ca,path:"/sso",component:Be(()=>Fe(()=>import("./sso-D_WahN_J.js"),__vite__mapDeps([407,389,24,29,30,31,32,33,34,97,66,326,327,328])))}),Dme=Ae({staticData:{pageTitle:"settings.nav.profile"},getParentRoute:()=>ca,path:"/profile",component:Be(()=>Fe(()=>import("./profile-CeRdcgYJ.js"),__vite__mapDeps([408,200,201,30,66,67,34,29,31,32,33,172,164,88,61,62,63,319,243,2,64])))}),Ome=Ae({getParentRoute:()=>ca,path:"/agents",beforeLoad:({params:e})=>{throw ua({to:"/$org/settings/projects",params:{org:e.org}})}}),Nme=Ae({staticData:{pageTitle:"settings.nav.automations"},getParentRoute:()=>ca,path:"/automations",component:Be(()=>Fe(()=>import("./automations-CZbtuC2e.js"),__vite__mapDeps([409,64,70,22,23,21,296,73,12,85,78,72,4,3,74,75,37,76,315,24,44,55,66,42,43,45,20,46,47,48,40,49,32,50,33,41,51,52,53,54,56,2,57,58,59,60,61,62,63,65,67,68,69,326,327,328])))}),Mme=Ae({getParentRoute:()=>ca,path:"/skills",beforeLoad:({params:e})=>{throw ua({to:"/$org/library",params:{org:e.org},search:{section:"skills"},replace:!0})}}),Ime=Ae({getParentRoute:()=>ca,path:"/memory",validateSearch:es(()=>Se({scope:Wt(["user"]).optional()})),beforeLoad:({params:e,search:t})=>{throw ua({to:"/$org/library",params:{org:e.org},search:{section:"memory",...t},replace:!0})}}),Lme=ca.addChildren([dme,ume,pme,mme,Ome,Nme,Mme,Ime,hme,gme,fme,vme,bme,yme,wme,Sme,Tme,xme,kme,Eme,Cme,Pme,_me,Ame,Rme,Dme]),Bme=Ab.addChildren([kpe,Epe,Cpe]),Fme=Yt.addChildren([ype,wpe,Spe,Bme,Tpe,xpe,Ppe,_pe,Ape,Rpe,Dpe,Ope,Npe,Mpe,Ipe,Lpe,Bpe,Fpe,jpe,zpe,qpe,Upe,$pe,Vpe,Hpe,Gpe,ame,ome,nme]),jme=tn.addChildren([fpe,vpe,bpe,Fme,Wpe,Kpe,Ype,Qpe,Zpe,Jpe,Xpe,rme,eme,tme]),zme=_b.addChildren([lme,cme,jme]),qme=Pb.addChildren([zme,sme,Lme]),Ume=JE.addChildren([spe,qme]),$me=Ho.addChildren([Ume,rpe,ipe,lpe,cpe,dpe,XE.addChildren([upe,ppe]),mpe,Kue,Yue,Que,Zue,Jue,Xue,epe]);function Vme(){const e=ye.c(16),t=$o();let a;e[0]!==t?(a=t("common.index.pageNotFound"),e[0]=t,e[1]=a):a=e[1];let o;e[2]!==a?(o=y.jsx("h3",{className:"text-lg font-medium text-foreground",children:a}),e[2]=a,e[3]=o):o=e[3];let n;e[4]!==t?(n=t("common.index.pageNotFoundDescription"),e[4]=t,e[5]=n):n=e[5];let r;e[6]!==n?(r=y.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:n}),e[6]=n,e[7]=r):r=e[7];let i;e[8]!==t?(i=t("common.goBack"),e[8]=t,e[9]=i):i=e[9];let c;e[10]!==i?(c=y.jsx("button",{type:"button",onClick:Hme,className:"text-sm text-primary hover:underline",children:i}),e[10]=i,e[11]=c):c=e[11];let d;return e[12]!==o||e[13]!==r||e[14]!==c?(d=y.jsx("div",{className:"flex h-full items-center justify-center",children:y.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[o,r,c]})}),e[12]=o,e[13]=r,e[14]=c,e[15]=d):d=e[15],d}function Hme(){return window.history.back()}const Rb=wV({routeTree:$me,defaultPendingComponent:Xd,defaultPendingMs:200,defaultPendingMinMs:500,defaultNotFoundComponent:Vme});function _e(...e){return sF(sE(e))}function Gme(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}function $a({error:e,localization:t,localizeErrors:a=!0}){var o;const n="Request failed";if(!a)return e?.message?e.message:(o=e?.error)!=null&&o.message?e.error.message:n;if(typeof e=="string"&&t?.[e])return t[e];if(e?.error){if(e.error.code){const r=e.error.code;if(t?.[r])return t[r]}return e.error.message||e.error.code||e.error.statusText||t?.REQUEST_FAILED}return e?.message||t?.REQUEST_FAILED||n}function ac(e){return typeof window<"u"?new URLSearchParams(window.location.search).get(e):null}function M0(e,t){for(const a in e)if(e[a]===t)return a}function tm(e,t){let a=$().min(1,{message:t?.PASSWORD_REQUIRED});return e?.minLength&&(a=a.min(e.minLength,{message:t?.PASSWORD_TOO_SHORT})),e?.maxLength&&(a=a.max(e.maxLength,{message:t?.PASSWORD_TOO_LONG})),e?.regex&&(a=a.regex(e.regex,{message:t?.INVALID_PASSWORD})),a}var Wme={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"},Kme={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"},Yme={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."},Qme={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."},Zme={VERIFICATION_FAILED:"Captcha verification failed",MISSING_RESPONSE:"Missing CAPTCHA response",UNKNOWN_ERROR:"Something went wrong"},Jme={MISSING_SECRET_KEY:"Missing secret key",SERVICE_UNAVAILABLE:"CAPTCHA service unavailable"},Xme={...Zme,...Jme},ehe={OTP_EXPIRED:"otp expired",INVALID_OTP:"Invalid OTP",INVALID_EMAIL:"Invalid email",USER_NOT_FOUND:"User not found",TOO_MANY_ATTEMPTS:"Too many attempts"},the={INVALID_OAUTH_CONFIGURATION:"Invalid OAuth configuration"},ahe={PASSWORD_COMPROMISED:"The password you entered has been compromised. Please choose a different password."},ohe={INVALID_SESSION_TOKEN:"Invalid session token"},nhe={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"},rhe={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"},she={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"},ihe={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"},lhe={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"},che={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"},dhe={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"},uhe={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",...Qme,...Wme,...Kme,...Yme,...Xme,...ehe,...the,...ahe,...ohe,...nhe,...rhe,...she,...ihe,...lhe,...che,...dhe},phe={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"},dN={SETTINGS:"settings",SECURITY:"security",TEAMS:"teams",API_KEYS:"api-keys",ORGANIZATIONS:"organizations"},uN={SETTINGS:"settings",MEMBERS:"members",TEAMS:"teams",API_KEYS:"api-keys"};const d5=A.createContext({});function u5(){return A.useContext(d5)}var yT,pN;function mhe(){if(pN)return yT;pN=1;var e=function(){};return yT=e,yT}var hhe=mhe();const ghe=Yl(hhe);function fhe({async:e,appendTo:t,defer:a,id:o,nonce:n,src:r}){const i=document.createElement("script");e!==void 0&&(i.async=e),a!==void 0&&(i.defer=a),o&&(i.id=o),n&&i.setAttribute("nonce",n),i.src=r,(t==="head"?document.head:document.body).appendChild(i)}var vhe=function(e,t){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(a[o[n]]=e[o[n]]);return a};let Op=null,am=!1;const Ov=new Set,Nv=new Set,bhe=typeof window<"u",Ad="___grecaptcha_cfg",p5=`onLoadCallback_${Math.random().toString(36).slice(2)}`;function yhe(){if(!bhe)return;function e(a){if(am)a();else{window[Ad]||(window[Ad]={});const o=window[Ad];o.fns||(o.fns=[]),o.fns.push(a)}}window.grecaptcha||(window.grecaptcha={}),window.grecaptcha.enterprise||(window.grecaptcha.enterprise={}),window.grecaptcha.ready=e,window.grecaptcha.enterprise.ready=e;function t(){am=!0;for(const a of Nv)a();Nv.clear()}window[p5]=t}function whe({language:e,onLoadCallbackName:t,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 t&&c.set("onload",t),e&&c.set("hl",e),`https://www.${r}/recaptcha/${i}?${c.toString()}`}function She({language:e,render:t,scriptProps:a,useEnterprise:o,useRecaptchaNet:n}){const r={id:"google-recaptcha-v3"},i=whe({language:e,onLoadCallbackName:p5,render:t,useEnterprise:o,useRecaptchaNet:n});if(Op){if(Op!==i)throw new Error("reCAPTCHA has already been loaded with different parameters. Remove the existing script and load it again.");return}Op=i,fhe(Object.assign(Object.assign(Object.assign({},r),a),{src:i}))}function The(e){if(!window[Ad])return;const t=window[Ad];t.clients&&delete t.clients[e]}function xhe(e,t){var{onLoadCallback:a,onLoadCallbackName:o}=t,n=vhe(t,["onLoadCallback","onLoadCallbackName"]);if(Ov.size===0&&yhe(),She(n),Ov.add(e),a&&(am?a():Nv.add(a)),o){let r=function(){if(!o)return;const i=window[o];typeof i=="function"&&i()};am?r():Nv.add(r)}}function khe(e){var t,a,o;Ov.delete(e),Ov.size===0&&(window.grecaptcha=void 0,window[Ad]=void 0,(t=document.querySelector(".grecaptcha-badge"))===null||t===void 0||t.remove(),(a=document.querySelector(`script[src="${Op}"]`))===null||a===void 0||a.remove(),(o=document.querySelector('script[src^="https://www.gstatic.com/recaptcha/releases"]'))===null||o===void 0||o.remove(),Op=null,am=!1)}let mN=!1;function Ehe({container:e,children:t,language:a,reCaptchaKey:o,scriptProps:n,useEnterprise:r,useRecaptchaNet:i}){var c,d,u,m,h,f,v;const b=A.useId(),[w,x]=A.useState(null),[T,k]=A.useState(null),C=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 xhe(b,{language:a,onLoadCallback:R,onLoadCallbackName:n?.onLoadCallbackName,render:e?.element?"explicit":o,scriptProps:{appendTo:n?.appendTo,async:n?.async,defer:n?.defer,id:n?.id,nonce:n?.nonce},useEnterprise:r,useRecaptchaNet:i}),()=>{khe(b),x(null)}},[e?.element,b,a,o,n?.appendTo,n?.async,n?.defer,n?.id,n?.nonce,n?.onLoadCallbackName,r,i]),A.useEffect(()=>{var R,O,L;if(!e?.element||!w?.render)return;const U={"error-callback":e.parameters.errorCallback,"expired-callback":e.parameters.expiredCallback,badge:((R=e.parameters)===null||R===void 0?void 0:R.badge)||"inline",callback:e.parameters.callback,sitekey:o,size:"invisible",tabindex:e.parameters.tabindex,theme:e.parameters.theme},B=typeof e?.element=="string"?document.getElementById(e.element):e?.element;if(!B)throw new Error("reCAPTCHA container element not found");const z=w.render(B,U);return!((O=e?.parameters)===null||O===void 0)&&O.hidden&&(mN||(ghe(!1,"reCAPTCHA badge hidden. See https://cloud.google.com/recaptcha/docs/faq#id_like_to_hide_the_badge_what_is_allowed for more information."),mN=!0),(L=B.querySelector(".grecaptcha-badge"))===null||L===void 0||L.style.setProperty("display","none")),k(z),C.current=!0,()=>{k(null),C.current=!1,The(z),B.innerHTML=""}},[e?.element,(c=e?.parameters)===null||c===void 0?void 0:c.badge,(d=e?.parameters)===null||d===void 0?void 0:d.hidden,(u=e?.parameters)===null||u===void 0?void 0:u.callback,(m=e?.parameters)===null||m===void 0?void 0:m.errorCallback,(h=e?.parameters)===null||h===void 0?void 0:h.expiredCallback,(f=e?.parameters)===null||f===void 0?void 0:f.tabindex,(v=e?.parameters)===null||v===void 0?void 0:v.theme,w,o]);const E=!!e?.element,_=E?T:o,D=A.useMemo(()=>_!==null&&w?.execute?R=>{if(_===null||!w?.execute)throw new Error("reCAPTCHA has not been loaded");return E&&!C.current?(console.warn("Client ID not mounted"),null):w.execute(_,{action:R})}:void 0,[_,w,E]);return y.jsx(d5.Provider,{value:{container:e?.element,executeRecaptcha:D,reCaptchaInstance:w},children:t})}var Che=class{cache=new Map;listeners=new Map;inFlightRequests=new Map;get(e){return this.cache.get(e)}set(e,t){const a={data:t,timestamp:Date.now(),isRefetching:!1};this.cache.set(e,a),this.notify(e)}setRefetching(e,t){const a=this.cache.get(e);a&&(a.isRefetching=t,this.notify(e))}clear(e){if(e)this.cache.delete(e),this.inFlightRequests.delete(e),this.notify(e);else{this.cache.clear(),this.inFlightRequests.clear();const t=Array.from(this.listeners.keys());for(const a of t)this.notify(a)}}getInFlightRequest(e){return this.inFlightRequests.get(e)}setInFlightRequest(e,t){this.inFlightRequests.set(e,t)}removeInFlightRequest(e){this.inFlightRequests.delete(e)}subscribe(e,t){return this.listeners.has(e)||this.listeners.set(e,new Set),this.listeners.get(e).add(t),()=>{const a=this.listeners.get(e);a&&(a.delete(t),a.size===0&&this.listeners.delete(e))}}notify(e){const t=this.listeners.get(e);if(t){const a=Array.from(t);for(const o of a)o()}}},Jn=new Che;function Phe(){return()=>{}}function Hs(){return A.useSyncExternalStore(Phe,()=>!0,()=>!1)}function m5(){const[e,t]=A.useState();return A.useEffect(()=>{const a=()=>{const n=document.documentElement.getAttribute("lang");t(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:e}}function eC(){const[e,t]=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"));t(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:e}}function _he({children:e}){const t=Hs(),{captcha:a}=A.useContext(wt);return a?.provider!=="google-recaptcha-v3"?e:y.jsxs(Ehe,{reCaptchaKey:a.siteKey,useEnterprise:a.enterprise,useRecaptchaNet:a.recaptchaNet,children:[t&&y.jsx("style",{children:`
190
190
  .grecaptcha-badge {
191
191
  visibility: hidden;
192
192
  border-radius: var(--radius) !important;