decocms 3.26.2 → 3.26.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/dist/client/assets/{AlertCircle-9EFUZenf.js → AlertCircle-DTxB9pUH.js} +1 -1
  2. package/dist/client/assets/{ArrowUpRight-97355q5v.js → ArrowUpRight-zXKZw2Xb.js} +1 -1
  3. package/dist/client/assets/{Check-D-9dblUn.js → Check-CTLrORIv.js} +1 -1
  4. package/dist/client/assets/{CheckCircle-C2ualSpf.js → CheckCircle-BUQijftD.js} +1 -1
  5. package/dist/client/assets/{ChevronDown-Cf2Q-GlB.js → ChevronDown-CE2QQfze.js} +1 -1
  6. package/dist/client/assets/{ChevronLeft-BaV4nFMQ.js → ChevronLeft-Cu7s4gqK.js} +1 -1
  7. package/dist/client/assets/{ChevronRight-CrZy8tHx.js → ChevronRight-VGojeAFz.js} +1 -1
  8. package/dist/client/assets/{ChevronUp-BAxoXhnT.js → ChevronUp-4IXM99ti.js} +1 -1
  9. package/dist/client/assets/{Container-CYcITvPW.js → Container-BoFlhIZL.js} +1 -1
  10. package/dist/client/assets/{DotsVertical-SvwN4CeV.js → DotsVertical--R-pmXe3.js} +1 -1
  11. package/dist/client/assets/{Eye-ByuwKsdh.js → Eye-pMhw6sUG.js} +1 -1
  12. package/dist/client/assets/{FilterLines-BJZdiggU.js → FilterLines-Bz8yyibx.js} +1 -1
  13. package/dist/client/assets/{Globe01-DfGFlik1.js → Globe01-Cp3X_WfB.js} +1 -1
  14. package/dist/client/assets/{HardDrive-DNFvbooP.js → HardDrive-BH54c3De.js} +1 -1
  15. package/dist/client/assets/{Key01-CzmPnHuw.js → Key01-CfBifHqv.js} +1 -1
  16. package/dist/client/assets/{LayoutLeft-CQ8Vq9nI.js → LayoutLeft-DhbihSgJ.js} +1 -1
  17. package/dist/client/assets/{LinkExternal01-CgI1VTqi.js → LinkExternal01-BGLjTHSM.js} +1 -1
  18. package/dist/client/assets/{Monitor01-Cw6kmClm.js → Monitor01-Djh_XBKr.js} +1 -1
  19. package/dist/client/assets/{Palette-Druykvzw.js → Palette-PH8MXuP9.js} +1 -1
  20. package/dist/client/assets/{Play-CMJ2IWYR.js → Play-C4oLlMWL.js} +1 -1
  21. package/dist/client/assets/{Plus-CjrtKB-Y.js → Plus-BX4ueqQS.js} +1 -1
  22. package/dist/client/assets/{RefreshCcw01-3BsQQkRx.js → RefreshCcw01-Duj7NlwB.js} +1 -1
  23. package/dist/client/assets/{SearchMd-BL2y99rx.js → SearchMd-CL91MHi_.js} +1 -1
  24. package/dist/client/assets/{Settings02-Cd4DIqaJ.js → Settings02-DWXKmfg4.js} +1 -1
  25. package/dist/client/assets/{Shield01-zIbMct6w.js → Shield01-5PYVS020.js} +1 -1
  26. package/dist/client/assets/{Star01-eRdSY4QW.js → Star01-E49TkgRa.js} +1 -1
  27. package/dist/client/assets/{Stars01-v0yz6PCZ.js → Stars01-NNVgYP83.js} +1 -1
  28. package/dist/client/assets/{Stars02-EuAFDZ5E.js → Stars02-BVMEIcco.js} +1 -1
  29. package/dist/client/assets/{Sun-CH2HWLCn.js → Sun-CC_Mb8Zc.js} +1 -1
  30. package/dist/client/assets/{SwitchHorizontal01-BMnNI1Fi.js → SwitchHorizontal01-Fq29tGDx.js} +1 -1
  31. package/dist/client/assets/{Tool01-Dcq7KP8Y.js → Tool01-B2YQjPAa.js} +1 -1
  32. package/dist/client/assets/{Trash01-Cup7-ZTT.js → Trash01-XqCtMZQT.js} +1 -1
  33. package/dist/client/assets/{Upload01-C9yi1Bdg.js → Upload01-CTIKtpO3.js} +1 -1
  34. package/dist/client/assets/{User01-thAIxsAs.js → User01-Cz-IdAgQ.js} +1 -1
  35. package/dist/client/assets/{Users01-DPJm6-u-.js → Users01-D7P0o8Z_.js} +1 -1
  36. package/dist/client/assets/{Users03-BlNe2PnN.js → Users03-DUZwXij4.js} +1 -1
  37. package/dist/client/assets/{X-1KR4wibP.js → X-8xcHoVBj.js} +1 -1
  38. package/dist/client/assets/{XCircle-UPVnJx4i.js → XCircle-CGgdji5f.js} +1 -1
  39. package/dist/client/assets/{XClose-pR-QU0OQ.js → XClose-CxCjUb2p.js} +1 -1
  40. package/dist/client/assets/{Zap-Cl-JM7N9.js → Zap-DLFeSSQ0.js} +1 -1
  41. package/dist/client/assets/{ZapSquare-B1o2Q9OR.js → ZapSquare-C2mTTgos.js} +1 -1
  42. package/dist/client/assets/{ZoomOut-D8vQ49we.js → ZoomOut-CR6ja8eb.js} +1 -1
  43. package/dist/client/assets/{access-gate-CWPebMdP.js → access-gate-3WvSXWjg.js} +1 -1
  44. package/dist/client/assets/{accordion-aX0NKKKh.js → accordion-DBEoJ6NR.js} +1 -1
  45. package/dist/client/assets/add-section-modal-B-90MHzy.js +1 -0
  46. package/dist/client/assets/agent-capabilities-CeRZY0ao.js +3 -0
  47. package/dist/client/assets/{agent-icon-DT8dQ9tq.js → agent-icon-DyzI2_Id.js} +1 -1
  48. package/dist/client/assets/agent-icons-CkjHTgLo.js +4 -0
  49. package/dist/client/assets/{agents-list-DDhPNISh.js → agents-list-DNeWvyP9.js} +1 -1
  50. package/dist/client/assets/ai-providers-DAK2efaH.js +1 -0
  51. package/dist/client/assets/{alert-DyB_hFGI.js → alert-BHgS7nAN.js} +1 -1
  52. package/dist/client/assets/{alert-dialog-CSkQIwm8.js → alert-dialog-tg3D4mnu.js} +1 -1
  53. package/dist/client/assets/app-editor-WcogQO88.js +1 -0
  54. package/dist/client/assets/{auth-catchall-BUwhIhze.js → auth-catchall-BOC0nYtA.js} +1 -1
  55. package/dist/client/assets/{auth-split-layout-CY4CpKKX.js → auth-split-layout-VA3PSXMI.js} +1 -1
  56. package/dist/client/assets/{automation-list-row-5M4PNEWw.js → automation-list-row-SEcTO2sW.js} +1 -1
  57. package/dist/client/assets/automation-runs-S95csAA4.js +1 -0
  58. package/dist/client/assets/{automations-Cy981ltn.js → automations-Ce44y56V.js} +1 -1
  59. package/dist/client/assets/{avatar-BHEXMwdE.js → avatar-DK3a4hPp.js} +1 -1
  60. package/dist/client/assets/{badge-Da0IsrqH.js → badge-SRsZ13Ha.js} +1 -1
  61. package/dist/client/assets/brand-context-CHR40nnF.js +1 -0
  62. package/dist/client/assets/buckets-7WU_Biyf.js +1 -0
  63. package/dist/client/assets/{calendar-BbhbS2FE.js → calendar-CC1tf37S.js} +1 -1
  64. package/dist/client/assets/{capability-load-error-Dfw4xb8a.js → capability-load-error-C5tUHDdB.js} +1 -1
  65. package/dist/client/assets/{card-BUTabNLA.js → card-BU_YNBo4.js} +1 -1
  66. package/dist/client/assets/chat-context-Moe82J6D.js +20 -0
  67. package/dist/client/assets/{checkbox--nDaSUZE.js → checkbox-CGo4P_LC.js} +1 -1
  68. package/dist/client/assets/{cli-auth-success-CUSnxWUp.js → cli-auth-success-D15RP8BC.js} +1 -1
  69. package/dist/client/assets/collection-detail-CiMl4FG7.js +1 -0
  70. package/dist/client/assets/{collection-display-button-BfQyXSIv.js → collection-display-button-M_1xgyCf.js} +1 -1
  71. package/dist/client/assets/{collection-search-LsgoMrVO.js → collection-search-CfzW8Ljz.js} +1 -1
  72. package/dist/client/assets/{collection-table-wrapper-D3ciIIEv.js → collection-table-wrapper-B4EgEmky.js} +1 -1
  73. package/dist/client/assets/{collection-tabs-CQJiHDMR.js → collection-tabs-BxpcEAFc.js} +1 -1
  74. package/dist/client/assets/{collections-C_j8CeI8.js → collections-BthqN0MR.js} +1 -1
  75. package/dist/client/assets/{command-BehF6pb8.js → command-D_uV9Uyw.js} +1 -1
  76. package/dist/client/assets/connect-desktop-dialog-BSZmVMpV.js +1 -0
  77. package/dist/client/assets/{connection-card-EXvV7rxl.js → connection-card-CMo6aDgc.js} +1 -1
  78. package/dist/client/assets/connection-detail-Mimew6o2.js +1 -0
  79. package/dist/client/assets/{connection-form-helpers-DoJomSCQ.js → connection-form-helpers-D7eAIFli.js} +1 -1
  80. package/dist/client/assets/connections-C3EDxDCA.js +1 -0
  81. package/dist/client/assets/{decopilot-sse-pool-BUhEcft-.js → decopilot-sse-pool-8oQl4q0c.js} +1 -1
  82. package/dist/client/assets/{dialog-Bm1pP7Vu.js → dialog-DSHkVmzb.js} +1 -1
  83. package/dist/client/assets/domain-settings-BOHvvqIE.js +1 -0
  84. package/dist/client/assets/{drawer-B51jkLaX.js → drawer-BCmqLnLy.js} +1 -1
  85. package/dist/client/assets/{dropdown-menu-CIu58K9q.js → dropdown-menu-DFCaJxA8.js} +1 -1
  86. package/dist/client/assets/dynamic-plugin-layout-D3tgFtHQ.js +1 -0
  87. package/dist/client/assets/{empty-state-1AbmTLd7.js → empty-state-CVOhfUW7.js} +1 -1
  88. package/dist/client/assets/{empty-state-BfmCVPeb.js → empty-state-DqgO6Psg.js} +1 -1
  89. package/dist/client/assets/{extract-connection-data-LoMqboL3.js → extract-connection-data-B52LuKdR.js} +1 -1
  90. package/dist/client/assets/{features-DWJ09Fdz.js → features-Dsrgvggp.js} +1 -1
  91. package/dist/client/assets/file-explorer-CAiKkVp8.js +2 -0
  92. package/dist/client/assets/{file-type-icon-CX5JEvCQ.js → file-type-icon-ThJaLePn.js} +1 -1
  93. package/dist/client/assets/{files-QExlaPCQ.js → files-BwgPol6-.js} +1 -1
  94. package/dist/client/assets/{form-BcPtow5O.js → form-DngzP8fb.js} +1 -1
  95. package/dist/client/assets/general-D61AQybp.js +1 -0
  96. package/dist/client/assets/{generate-id-CadHbHqX.js → generate-id-CDzcbt9l.js} +1 -1
  97. package/dist/client/assets/{github-repo-picker-B24_pGAu.js → github-repo-picker-Dy1vUJSU.js} +1 -1
  98. package/dist/client/assets/{header-tab-button-DSX6YPkf.js → header-tab-button-YP4v_sFN.js} +1 -1
  99. package/dist/client/assets/{hover-card-DE2_8MLP.js → hover-card-CK_HvQcf.js} +1 -1
  100. package/dist/client/assets/image-field-pfu57PP0.js +1 -0
  101. package/dist/client/assets/{index-CHdFXpqc.js → index-2EH0OR7k.js} +1 -1
  102. package/dist/client/assets/{index-B1bHiM-j.js → index-5lPKE0PI.js} +1 -1
  103. package/dist/client/assets/{index-CR_LeyNj.js → index-BepaMXhR.js} +1 -1
  104. package/dist/client/assets/index-CIBQMZc3.js +310 -0
  105. package/dist/client/assets/index-D7h1Qkk4.js +1 -0
  106. package/dist/client/assets/{index-biiHZ5l9.js → index-DLy_MgNO.js} +3 -3
  107. package/dist/client/assets/{index-Bo5bzoUm.js → index-DdnG6T0z.js} +1 -1
  108. package/dist/client/assets/{index-Dr4Isy1j.js → index-Df6ljz6n.js} +1 -1
  109. package/dist/client/assets/{index-D6ELOmUq.js → index-Dj1voR4t.js} +1 -1
  110. package/dist/client/assets/{index-50-dmJFK.js → index-DqC0vS4o.js} +1 -1
  111. package/dist/client/assets/index-Dy_atLRy.js +1 -0
  112. package/dist/client/assets/{index-YdX5UjUB.js → index-G1Ev5Inf.js} +1 -1
  113. package/dist/client/assets/{index-J2NhKqyZ.js → index-LDNFPs7X.js} +5 -5
  114. package/dist/client/assets/{index-r7-3fAFf.js → index-hMTvGWUn.js} +1 -1
  115. package/dist/client/assets/{index-BflNEs6l.js → index-hwXZ3lhJ.js} +1 -1
  116. package/dist/client/assets/{index-redirect-pPYMz5D6.js → index-redirect-BkbiWtap.js} +1 -1
  117. package/dist/client/assets/{infiniteQueryObserver-B0VBGXv5.js → infiniteQueryObserver-CJIUgHAf.js} +1 -1
  118. package/dist/client/assets/{input-5PMMNPU9.js → input-CTpSARTD.js} +1 -1
  119. package/dist/client/assets/{integration-icon-Dy-a3x5R.js → integration-icon-BpF3qWll.js} +1 -1
  120. package/dist/client/assets/{label-CcC4_aKf.js → label-Dh8yif55.js} +1 -1
  121. package/dist/client/assets/{layout-CbTbCjmA.js → layout-D7xM_FMD.js} +1 -1
  122. package/dist/client/assets/{login-Dn4EF5EK.js → login-BsYL8EoQ.js} +1 -1
  123. package/dist/client/assets/members-D3KerYs6.js +3 -0
  124. package/dist/client/assets/{monaco-editor-CJVi8Ty8.js → monaco-editor-47G-YgBx.js} +1 -1
  125. package/dist/client/assets/{monitoring-stats-row-BAplEVfE.js → monitoring-stats-row-DLPVsavd.js} +1 -1
  126. package/dist/client/assets/{oauth-callback-D5XAAL8p.js → oauth-callback-DPmGsVIH.js} +1 -1
  127. package/dist/client/assets/{oauth-callback-ai-provider-tGQCB63I.js → oauth-callback-ai-provider-B2SdgtVf.js} +1 -1
  128. package/dist/client/assets/{onboarding-CgvYwT2C.js → onboarding-CUnTn08b.js} +1 -1
  129. package/dist/client/assets/{org-install-CV5qvXsE.js → org-install-D55Hf-Ci.js} +1 -1
  130. package/dist/client/assets/{org-layout-BFil8fwL.js → org-layout-D1CUrdu0.js} +1 -1
  131. package/dist/client/assets/org-plugin-layout-C_lutJvY.js +1 -0
  132. package/dist/client/assets/{page-seo-form-Bbna5w2y.js → page-seo-form-CDMGSBfI.js} +1 -1
  133. package/dist/client/assets/page-seo-sheet-D9mMBTfk.js +1 -0
  134. package/dist/client/assets/pair-C8e4qd_P.js +39 -0
  135. package/dist/client/assets/{plugin-empty-state-DM8dR2Wk.js → plugin-empty-state-DOz60yXL.js} +1 -1
  136. package/dist/client/assets/{plugin-header-CaWKfaZE.js → plugin-header-dSexLn5d.js} +1 -1
  137. package/dist/client/assets/plugin-layout-DeJC8Je1.js +1 -0
  138. package/dist/client/assets/{popover-Cvcd3A1d.js → popover-BTf4Nz5d.js} +1 -1
  139. package/dist/client/assets/{post-editor-CM-ESdP7.js → post-editor-DqMVZSkF.js} +1 -1
  140. package/dist/client/assets/{primitives-DWXKnou4.js → primitives-C5R0vRG0.js} +1 -1
  141. package/dist/client/assets/{profile-DmCC3zYK.js → profile-D24Mm1Bo.js} +1 -1
  142. package/dist/client/assets/project-app-view-Bww_ZnyA.js +1 -0
  143. package/dist/client/assets/record-editor-dyb9Ijad.js +1 -0
  144. package/dist/client/assets/registry-BnciKKiV.js +2 -0
  145. package/dist/client/assets/registry-layout-BTGZh3rH.js +27 -0
  146. package/dist/client/assets/{require-capability-DVI2cKO3.js → require-capability-VkdqqQVh.js} +1 -1
  147. package/dist/client/assets/{required-auth-layout-zYH6NIDF.js → required-auth-layout-B_Qr5rQD.js} +1 -1
  148. package/dist/client/assets/{reset-password-DXXx8e6Q.js → reset-password-EasI5IT7.js} +1 -1
  149. package/dist/client/assets/{resizable-BbbLszRZ.js → resizable-psD7TWaW.js} +1 -1
  150. package/dist/client/assets/{roles-vHYrQg5g.js → roles-DcdBU5wW.js} +1 -1
  151. package/dist/client/assets/save-referenced-block-H29Sz2fU.js +1 -0
  152. package/dist/client/assets/{save-status-pJVz5vCQ.js → save-status-BBtiR3n4.js} +1 -1
  153. package/dist/client/assets/{schema-form-nZH-67HX.js → schema-form-CQrr8C2Q.js} +1 -1
  154. package/dist/client/assets/{scroll-area-BqOijBAI.js → scroll-area-EinmnR6o.js} +1 -1
  155. package/dist/client/assets/{search-input-BgGthWir.js → search-input-IQT_u5qN.js} +1 -1
  156. package/dist/client/assets/secrets-CvkPaEJL.js +1 -0
  157. package/dist/client/assets/{sections-editor-CSz4pxMw.js → sections-editor-4lprX9C-.js} +1 -1
  158. package/dist/client/assets/{select-CNSUv3cw.js → select-Dz1PdScB.js} +1 -1
  159. package/dist/client/assets/{select-model-0CGh6cKF.js → select-model-azh5-bst.js} +1 -1
  160. package/dist/client/assets/seo-editor-Bhb2HHgZ.js +1 -0
  161. package/dist/client/assets/{settings-layout-DRYgevr6.js → settings-layout-DXfn8mRu.js} +1 -1
  162. package/dist/client/assets/{settings-section-V9kb8x32.js → settings-section-DqhmLe6Q.js} +1 -1
  163. package/dist/client/assets/{sheet-D99KevZC.js → sheet-CtgWE_6O.js} +1 -1
  164. package/dist/client/assets/{shell-controls-DSSWZ7Ia.js → shell-controls-D5kseyts.js} +1 -1
  165. package/dist/client/assets/{shell-layout-4LsIVsl3.js → shell-layout-CWL5imKS.js} +1 -1
  166. package/dist/client/assets/shell-route-loading-Co6LGu_q.js +1 -0
  167. package/dist/client/assets/{sidebar-CPZXU-2w.js → sidebar-DRcLUASh.js} +1 -1
  168. package/dist/client/assets/{skeleton--DN75sg7.js → skeleton-BH3hvPuC.js} +1 -1
  169. package/dist/client/assets/{sortable.esm-g7bq1nDZ.js → sortable.esm-Bv55LbH0.js} +1 -1
  170. package/dist/client/assets/{spinner-DJD6-9r-.js → spinner-B_3Siejz.js} +1 -1
  171. package/dist/client/assets/sso-0oMpJ4kh.js +1 -0
  172. package/dist/client/assets/{store-DTK5DubB.js → store-BVB26WGO.js} +1 -1
  173. package/dist/client/assets/store-registry-CO_g7WZl.js +2 -0
  174. package/dist/client/assets/studio-tools-BxKekKsO.js +1 -0
  175. package/dist/client/assets/{switch-D6SWnoi2.js → switch-DH2AgpKj.js} +1 -1
  176. package/dist/client/assets/{tab-id-D4SJwEQy.js → tab-id-xylxHxk-.js} +2 -2
  177. package/dist/client/assets/{table-Cx3PhNth.js → table-BF0TGzWk.js} +1 -1
  178. package/dist/client/assets/{tabs-DCDCb9Pz.js → tabs-zn3_c2X4.js} +1 -1
  179. package/dist/client/assets/{task-status-P3BULAyA.js → task-status-CcBiqoc9.js} +1 -1
  180. package/dist/client/assets/{textarea-QEULyLXh.js → textarea--0YfTbVD.js} +1 -1
  181. package/dist/client/assets/{toggle-group-DhVqXGfs.js → toggle-group-CzCtoT44.js} +1 -1
  182. package/dist/client/assets/{toolbar-BsB4Mvyv.js → toolbar-GqBUNMmA.js} +1 -1
  183. package/dist/client/assets/{tools-list-Ch5RlbiL.js → tools-list-6mOdBofe.js} +1 -1
  184. package/dist/client/assets/{tooltip-bsrBmmjV.js → tooltip-DUvSyhJC.js} +1 -1
  185. package/dist/client/assets/{types-jBdXInU0.js → types-DA4RGvyb.js} +1 -1
  186. package/dist/client/assets/use-ai-providers-D2lIJSNP.js +1 -0
  187. package/dist/client/assets/{use-automations-Db8x6SNU.js → use-automations-DBfmwk1I.js} +1 -1
  188. package/dist/client/assets/{use-capability-BPM45mbW.js → use-capability-B4Fg7dX0.js} +1 -1
  189. package/dist/client/assets/{use-collections-B5Jh_wGd.js → use-collections-CmHxKkjG.js} +1 -1
  190. package/dist/client/assets/{use-connection-DyJtuHQI.js → use-connection-DBknh1_S.js} +1 -1
  191. package/dist/client/assets/{use-copy-P6tx-uOp.js → use-copy-Cwl7g8AE.js} +1 -1
  192. package/dist/client/assets/{use-create-virtual-mcp-CWYOy45e.js → use-create-virtual-mcp-C1TsXsHi.js} +1 -1
  193. package/dist/client/assets/{use-debounced-autosave-ClLbciGl.js → use-debounced-autosave-Bxr0aFzV.js} +1 -1
  194. package/dist/client/assets/use-delete-connection-R6nqWnGZ.js +1 -0
  195. package/dist/client/assets/use-file-configs-DWXPP8uC.js +1 -0
  196. package/dist/client/assets/{use-infinite-scroll-xQQ6lYk4.js → use-infinite-scroll-SoMG-nf0.js} +1 -1
  197. package/dist/client/assets/{use-list-state-BZmeG7gi.js → use-list-state-RN4viRCb.js} +1 -1
  198. package/dist/client/assets/{use-mcp-client-CWFUu1lY.js → use-mcp-client-FbAC4-Un.js} +2 -2
  199. package/dist/client/assets/{use-mcp-prompts-B5RhBVzg.js → use-mcp-prompts-yCzBJuZf.js} +1 -1
  200. package/dist/client/assets/{use-mcp-tools-DePRGZE5.js → use-mcp-tools-CxFt6L0J.js} +1 -1
  201. package/dist/client/assets/{use-members-Cw70r_Wh.js → use-members-B2ko1Eht.js} +1 -1
  202. package/dist/client/assets/{use-navigate-to-agent-CdsMYUzL.js → use-navigate-to-agent-Bg4INoCb.js} +1 -1
  203. package/dist/client/assets/{use-org-auth-client--i_Sx92M.js → use-org-auth-client-D0Et-q9V.js} +1 -1
  204. package/dist/client/assets/{use-org-sso-C1cJTBIx.js → use-org-sso-Ba3MjbPK.js} +1 -1
  205. package/dist/client/assets/{use-organization-roles-ATKYiNpl.js → use-organization-roles-jFwocdK5.js} +1 -1
  206. package/dist/client/assets/{use-organization-settings-Izqk1Gkk.js → use-organization-settings-Bdk0M31t.js} +1 -1
  207. package/dist/client/assets/{use-registry-connections-C-WVKjSU.js → use-registry-connections-DkTd3pip.js} +1 -1
  208. package/dist/client/assets/use-secrets-B3XtAhqh.js +1 -0
  209. package/dist/client/assets/{use-status-sounds-BJ_LqdGJ.js → use-status-sounds-Bi-eGoxq.js} +1 -1
  210. package/dist/client/assets/{use-view-mode-CbT8E3wV.js → use-view-mode-CVu0jG_s.js} +1 -1
  211. package/dist/client/assets/{use-virtual-mcp-0jbEmvOc.js → use-virtual-mcp-CL360k9_.js} +1 -1
  212. package/dist/client/assets/useInfiniteQuery-68Zg22Ld.js +1 -0
  213. package/dist/client/assets/{useRouterState-Dm0UHjU4.js → useRouterState-CBsQY2cY.js} +1 -1
  214. package/dist/client/assets/useSuspenseInfiniteQuery-C32oPBV5.js +1 -0
  215. package/dist/client/assets/user-ce-n8AzQ.js +1 -0
  216. package/dist/client/assets/{view-mode-toggle-G0qNMbJ1.js → view-mode-toggle-DPvhvCSl.js} +1 -1
  217. package/dist/client/assets/workflow-DEw4Tgx1.js +1 -0
  218. package/dist/client/assets/workflow-detail-DPYK3MGg.js +1 -0
  219. package/dist/client/index.html +1 -1
  220. package/dist/server/cli.js +1 -1
  221. package/package.json +1 -1
  222. package/dist/client/assets/add-section-modal-DbuGc2qc.js +0 -1
  223. package/dist/client/assets/agent-capabilities-BJLQSkAN.js +0 -3
  224. package/dist/client/assets/agent-icons-DRrDyR7j.js +0 -4
  225. package/dist/client/assets/ai-providers-GxPLAPId.js +0 -1
  226. package/dist/client/assets/app-editor-BsxVHV86.js +0 -1
  227. package/dist/client/assets/automation-runs-BJTRztep.js +0 -1
  228. package/dist/client/assets/brand-context-DTmvDRqf.js +0 -1
  229. package/dist/client/assets/buckets-Cv3AB_TT.js +0 -1
  230. package/dist/client/assets/chat-context-Bu6qpu9K.js +0 -20
  231. package/dist/client/assets/collection-detail-DHxXW6T4.js +0 -1
  232. package/dist/client/assets/connect-desktop-dialog-DPqrgnkS.js +0 -1
  233. package/dist/client/assets/connection-detail-58UbdFd3.js +0 -1
  234. package/dist/client/assets/connections-BMZIGugH.js +0 -1
  235. package/dist/client/assets/domain-settings-DHsRsnmX.js +0 -1
  236. package/dist/client/assets/dynamic-plugin-layout-DWE13BKk.js +0 -1
  237. package/dist/client/assets/file-explorer-Dmpsw-4-.js +0 -2
  238. package/dist/client/assets/general-CLesrOe8.js +0 -1
  239. package/dist/client/assets/image-field-D00iYa4G.js +0 -1
  240. package/dist/client/assets/index-BZvxagUr.js +0 -310
  241. package/dist/client/assets/index-CCs3Chg3.js +0 -1
  242. package/dist/client/assets/index-Db3P8pHg.js +0 -1
  243. package/dist/client/assets/members-BwcNzXwU.js +0 -3
  244. package/dist/client/assets/org-plugin-layout-DyCflrr1.js +0 -1
  245. package/dist/client/assets/page-seo-sheet-D9M3CoUb.js +0 -1
  246. package/dist/client/assets/pair-Ba1UoSSJ.js +0 -39
  247. package/dist/client/assets/plugin-layout-DrVKV-lp.js +0 -1
  248. package/dist/client/assets/project-app-view-C9azYjZP.js +0 -1
  249. package/dist/client/assets/record-editor-DJucp492.js +0 -1
  250. package/dist/client/assets/registry-hKns5OCc.js +0 -2
  251. package/dist/client/assets/registry-layout-DPaKDLDg.js +0 -27
  252. package/dist/client/assets/save-referenced-block-q2CPWVkl.js +0 -1
  253. package/dist/client/assets/secrets-YkTDT7yT.js +0 -1
  254. package/dist/client/assets/seo-editor-CspZxazh.js +0 -1
  255. package/dist/client/assets/shell-route-loading-5KSwc3hj.js +0 -1
  256. package/dist/client/assets/sso-D04DjSnZ.js +0 -1
  257. package/dist/client/assets/store-registry-nABlp_7k.js +0 -2
  258. package/dist/client/assets/unwrap-tool-result-BYXdCQMg.js +0 -1
  259. package/dist/client/assets/use-ai-providers-v0sCRzMO.js +0 -1
  260. package/dist/client/assets/use-delete-connection-C60uGs0b.js +0 -1
  261. package/dist/client/assets/use-file-configs-CC8ghNUa.js +0 -1
  262. package/dist/client/assets/use-secrets-BpdIBEe6.js +0 -1
  263. package/dist/client/assets/useInfiniteQuery-BGg7INCQ.js +0 -1
  264. package/dist/client/assets/useSuspenseInfiniteQuery-B4dQiTEq.js +0 -1
  265. package/dist/client/assets/user-DRDdFgUw.js +0 -1
  266. package/dist/client/assets/workflow-D1PUPL3K.js +0 -1
  267. package/dist/client/assets/workflow-detail-CRUxUbKb.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-CaWKfaZE.js","assets/Check-D-9dblUn.js","assets/ChevronDown-Cf2Q-GlB.js","assets/login-Dn4EF5EK.js","assets/input-5PMMNPU9.js","assets/auth-split-layout-CY4CpKKX.js","assets/cli-auth-success-CUSnxWUp.js","assets/reset-password-DXXx8e6Q.js","assets/shell-layout-4LsIVsl3.js","assets/avatar-BHEXMwdE.js","assets/User01-thAIxsAs.js","assets/Users03-BlNe2PnN.js","assets/Stars02-EuAFDZ5E.js","assets/XClose-pR-QU0OQ.js","assets/CheckCircle-C2ualSpf.js","assets/FilterLines-BJZdiggU.js","assets/Zap-Cl-JM7N9.js","assets/dialog-Bm1pP7Vu.js","assets/X-1KR4wibP.js","assets/required-auth-layout-zYH6NIDF.js","assets/useRouterState-Dm0UHjU4.js","assets/tab-id-D4SJwEQy.js","assets/use-mcp-client-CWFUu1lY.js","assets/decopilot-sse-pool-BUhEcft-.js","assets/create-sse-subscription-BS5983N4.js","assets/use-organization-settings-Izqk1Gkk.js","assets/use-org-sso-C1cJTBIx.js","assets/onboarding-CgvYwT2C.js","assets/label-CcC4_aKf.js","assets/switch-D6SWnoi2.js","assets/Palette-Druykvzw.js","assets/Upload01-C9yi1Bdg.js","assets/index-CCs3Chg3.js","assets/sidebar-CPZXU-2w.js","assets/LayoutLeft-CQ8Vq9nI.js","assets/tooltip-bsrBmmjV.js","assets/sheet-D99KevZC.js","assets/shell-route-loading-5KSwc3hj.js","assets/ZoomOut-D8vQ49we.js","assets/toolbar-BsB4Mvyv.js","assets/ChevronLeft-BaV4nFMQ.js","assets/ChevronRight-CrZy8tHx.js","assets/skeleton--DN75sg7.js","assets/popover-Cvcd3A1d.js","assets/drawer-B51jkLaX.js","assets/SearchMd-BL2y99rx.js","assets/Star01-eRdSY4QW.js","assets/Plus-CjrtKB-Y.js","assets/use-virtual-mcp-0jbEmvOc.js","assets/use-collections-B5Jh_wGd.js","assets/use-create-virtual-mcp-CWYOy45e.js","assets/use-navigate-to-agent-CdsMYUzL.js","assets/github-repo-picker-B24_pGAu.js","assets/use-connection-DyJtuHQI.js","assets/RefreshCcw01-3BsQQkRx.js","assets/collection-search-LsgoMrVO.js","assets/checkbox--nDaSUZE.js","assets/agent-icon-DT8dQ9tq.js","assets/AlertCircle-9EFUZenf.js","assets/Tool01-Dcq7KP8Y.js","assets/SwitchHorizontal01-BMnNI1Fi.js","assets/XCircle-UPVnJx4i.js","assets/ArrowUpRight-97355q5v.js","assets/ZapSquare-B1o2Q9OR.js","assets/ChevronUp-BAxoXhnT.js","assets/DotsVertical-SvwN4CeV.js","assets/Container-CYcITvPW.js","assets/Eye-ByuwKsdh.js","assets/Globe01-DfGFlik1.js","assets/HardDrive-DNFvbooP.js","assets/Key01-CzmPnHuw.js","assets/LinkExternal01-CgI1VTqi.js","assets/Monitor01-Cw6kmClm.js","assets/Sun-CH2HWLCn.js","assets/Play-CMJ2IWYR.js","assets/Settings02-Cd4DIqaJ.js","assets/Shield01-zIbMct6w.js","assets/Stars01-v0yz6PCZ.js","assets/Trash01-Cup7-ZTT.js","assets/Users01-DPJm6-u-.js","assets/use-mcp-tools-DePRGZE5.js","assets/extract-connection-data-LoMqboL3.js","assets/generate-id-CadHbHqX.js","assets/collections-C_j8CeI8.js","assets/alert-dialog-CSkQIwm8.js","assets/form-BcPtow5O.js","assets/spinner-DJD6-9r-.js","assets/index-B1bHiM-j.js","assets/sortable.esm-g7bq1nDZ.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-EXvV7rxl.js","assets/use-registry-connections-C-WVKjSU.js","assets/useInfiniteQuery-BGg7INCQ.js","assets/infiniteQueryObserver-B0VBGXv5.js","assets/card-BUTabNLA.js","assets/integration-icon-Dy-a3x5R.js","assets/collection-tabs-CQJiHDMR.js","assets/badge-Da0IsrqH.js","assets/select-CNSUv3cw.js","assets/textarea-QEULyLXh.js","assets/connection-form-helpers-DoJomSCQ.js","assets/use-infinite-scroll-xQQ6lYk4.js","assets/useSuspenseInfiniteQuery-B4dQiTEq.js","assets/use-ai-providers-v0sCRzMO.js","assets/command-BehF6pb8.js","assets/index-CR_LeyNj.js","assets/use-org-auth-client--i_Sx92M.js","assets/hover-card-DE2_8MLP.js","assets/task-status-P3BULAyA.js","assets/format-time-Cy7tTmZp.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/chat-context-Bu6qpu9K.js","assets/unwrap-tool-result-BYXdCQMg.js","assets/connect-desktop-dialog-DPqrgnkS.js","assets/shell-controls-DSSWZ7Ia.js","assets/index-BZvxagUr.js","assets/agent-capabilities-BJLQSkAN.js","assets/pair-Ba1UoSSJ.js","assets/scroll-area-BqOijBAI.js","assets/use-copy-P6tx-uOp.js","assets/file-type-icon-CX5JEvCQ.js","assets/content-blocks-o63cs2vh.js","assets/types-jBdXInU0.js","assets/use-mcp-prompts-B5RhBVzg.js","assets/tabs-DCDCb9Pz.js","assets/toggle-group-DhVqXGfs.js","assets/agent-icons-DRrDyR7j.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-V9kb8x32.js","assets/index-Bo5bzoUm.js","assets/dropdown-menu-CIu58K9q.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds-BJ_LqdGJ.js","assets/empty-state-1AbmTLd7.js","assets/resizable-BbbLszRZ.js","assets/use-capability-BPM45mbW.js","assets/header-tab-button-DSX6YPkf.js","assets/index-BflNEs6l.js","assets/user-DRDdFgUw.js","assets/tools-list-Ch5RlbiL.js","assets/use-debounced-autosave-ClLbciGl.js","assets/index-r7-3fAFf.js","assets/search-input-BgGthWir.js","assets/use-secrets-BpdIBEe6.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/accordion-aX0NKKKh.js","assets/view-mode-toggle-G0qNMbJ1.js","assets/select-model-0CGh6cKF.js","assets/use-automations-Db8x6SNU.js","assets/monaco-editor-CJVi8Ty8.js","assets/automation-runs-BJTRztep.js","assets/table-Cx3PhNth.js","assets/use-members-Cw70r_Wh.js","assets/automation-list-row-5M4PNEWw.js","assets/index-DDGTF8rc.css","assets/index-Db3P8pHg.js","assets/index-Dr4Isy1j.js","assets/settings-layout-DRYgevr6.js","assets/index-redirect-pPYMz5D6.js","assets/capability-load-error-Dfw4xb8a.js","assets/connections-BMZIGugH.js","assets/collection-display-button-BfQyXSIv.js","assets/use-delete-connection-C60uGs0b.js","assets/use-list-state-BZmeG7gi.js","assets/use-view-mode-CbT8E3wV.js","assets/connection-detail-58UbdFd3.js","assets/index-CHdFXpqc.js","assets/index-YdX5UjUB.js","assets/index-50-dmJFK.js","assets/layout-CbTbCjmA.js","assets/monitoring-stats-row-BAplEVfE.js","assets/collection-detail-DHxXW6T4.js","assets/index-D6ELOmUq.js","assets/empty-state-BfmCVPeb.js","assets/alert-DyB_hFGI.js","assets/index-J2NhKqyZ.js","assets/require-capability-DVI2cKO3.js","assets/access-gate-CWPebMdP.js","assets/calendar-BbhbS2FE.js","assets/general-CLesrOe8.js","assets/domain-settings-DHsRsnmX.js","assets/features-DWJ09Fdz.js","assets/brand-context-DTmvDRqf.js","assets/ai-providers-GxPLAPId.js","assets/secrets-YkTDT7yT.js","assets/buckets-Cv3AB_TT.js","assets/use-file-configs-CC8ghNUa.js","assets/members-BwcNzXwU.js","assets/collection-table-wrapper-D3ciIIEv.js","assets/use-organization-roles-ATKYiNpl.js","assets/roles-vHYrQg5g.js","assets/sso-D04DjSnZ.js","assets/profile-DmCC3zYK.js","assets/store-DTK5DubB.js","assets/registry-hKns5OCc.js","assets/store-registry-nABlp_7k.js","assets/workflow-D1PUPL3K.js","assets/workflow-detail-CRUxUbKb.js","assets/org-plugin-layout-DyCflrr1.js","assets/plugin-layout-DrVKV-lp.js","assets/agents-list-DDhPNISh.js","assets/automations-Cy981ltn.js","assets/dynamic-plugin-layout-DWE13BKk.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/plugin-header-dSexLn5d.js","assets/Check-CTLrORIv.js","assets/ChevronDown-CE2QQfze.js","assets/login-BsYL8EoQ.js","assets/input-CTpSARTD.js","assets/auth-split-layout-VA3PSXMI.js","assets/cli-auth-success-D15RP8BC.js","assets/reset-password-EasI5IT7.js","assets/shell-layout-CWL5imKS.js","assets/avatar-DK3a4hPp.js","assets/User01-Cz-IdAgQ.js","assets/Users03-DUZwXij4.js","assets/Stars02-BVMEIcco.js","assets/XClose-CxCjUb2p.js","assets/CheckCircle-BUQijftD.js","assets/FilterLines-Bz8yyibx.js","assets/Zap-DLFeSSQ0.js","assets/dialog-DSHkVmzb.js","assets/X-8xcHoVBj.js","assets/required-auth-layout-B_Qr5rQD.js","assets/useRouterState-CBsQY2cY.js","assets/tab-id-xylxHxk-.js","assets/use-mcp-client-FbAC4-Un.js","assets/decopilot-sse-pool-8oQl4q0c.js","assets/create-sse-subscription-BS5983N4.js","assets/use-organization-settings-Bdk0M31t.js","assets/use-org-sso-Ba3MjbPK.js","assets/onboarding-CUnTn08b.js","assets/label-Dh8yif55.js","assets/switch-DH2AgpKj.js","assets/Palette-PH8MXuP9.js","assets/Upload01-CTIKtpO3.js","assets/index-D7h1Qkk4.js","assets/sidebar-DRcLUASh.js","assets/LayoutLeft-DhbihSgJ.js","assets/tooltip-DUvSyhJC.js","assets/sheet-CtgWE_6O.js","assets/shell-route-loading-Co6LGu_q.js","assets/ZoomOut-CR6ja8eb.js","assets/toolbar-GqBUNMmA.js","assets/ChevronLeft-Cu7s4gqK.js","assets/ChevronRight-VGojeAFz.js","assets/skeleton-BH3hvPuC.js","assets/popover-BTf4Nz5d.js","assets/drawer-BCmqLnLy.js","assets/SearchMd-CL91MHi_.js","assets/Star01-E49TkgRa.js","assets/Plus-BX4ueqQS.js","assets/use-virtual-mcp-CL360k9_.js","assets/use-collections-CmHxKkjG.js","assets/use-create-virtual-mcp-C1TsXsHi.js","assets/use-navigate-to-agent-Bg4INoCb.js","assets/github-repo-picker-Dy1vUJSU.js","assets/use-connection-DBknh1_S.js","assets/RefreshCcw01-Duj7NlwB.js","assets/collection-search-CfzW8Ljz.js","assets/checkbox-CGo4P_LC.js","assets/agent-icon-DyzI2_Id.js","assets/AlertCircle-DTxB9pUH.js","assets/Tool01-B2YQjPAa.js","assets/SwitchHorizontal01-Fq29tGDx.js","assets/XCircle-CGgdji5f.js","assets/ArrowUpRight-zXKZw2Xb.js","assets/ZapSquare-C2mTTgos.js","assets/ChevronUp-4IXM99ti.js","assets/DotsVertical--R-pmXe3.js","assets/Container-BoFlhIZL.js","assets/Eye-pMhw6sUG.js","assets/Globe01-Cp3X_WfB.js","assets/HardDrive-BH54c3De.js","assets/Key01-CfBifHqv.js","assets/LinkExternal01-BGLjTHSM.js","assets/Monitor01-Djh_XBKr.js","assets/Sun-CC_Mb8Zc.js","assets/Play-C4oLlMWL.js","assets/Settings02-DWXKmfg4.js","assets/Shield01-5PYVS020.js","assets/Stars01-NNVgYP83.js","assets/Trash01-XqCtMZQT.js","assets/Users01-D7P0o8Z_.js","assets/use-mcp-tools-CxFt6L0J.js","assets/extract-connection-data-B52LuKdR.js","assets/generate-id-CDzcbt9l.js","assets/collections-BthqN0MR.js","assets/alert-dialog-tg3D4mnu.js","assets/form-DngzP8fb.js","assets/spinner-B_3Siejz.js","assets/index-5lPKE0PI.js","assets/sortable.esm-Bv55LbH0.js","assets/connection-slug-eyAPH6o3.js","assets/connection-card-CMo6aDgc.js","assets/use-registry-connections-DkTd3pip.js","assets/useInfiniteQuery-68Zg22Ld.js","assets/infiniteQueryObserver-CJIUgHAf.js","assets/card-BU_YNBo4.js","assets/integration-icon-BpF3qWll.js","assets/collection-tabs-BxpcEAFc.js","assets/badge-SRsZ13Ha.js","assets/select-Dz1PdScB.js","assets/textarea--0YfTbVD.js","assets/connection-form-helpers-D7eAIFli.js","assets/use-infinite-scroll-SoMG-nf0.js","assets/useSuspenseInfiniteQuery-C32oPBV5.js","assets/use-ai-providers-D2lIJSNP.js","assets/command-D_uV9Uyw.js","assets/index-BepaMXhR.js","assets/studio-tools-BxKekKsO.js","assets/use-org-auth-client-D0Et-q9V.js","assets/hover-card-CK_HvQcf.js","assets/task-status-CcBiqoc9.js","assets/format-time-Cy7tTmZp.js","assets/differenceInSeconds-NQ4PDo0z.js","assets/chat-context-Moe82J6D.js","assets/connect-desktop-dialog-BSZmVMpV.js","assets/shell-controls-D5kseyts.js","assets/index-CIBQMZc3.js","assets/agent-capabilities-CeRZY0ao.js","assets/pair-C8e4qd_P.js","assets/scroll-area-EinmnR6o.js","assets/use-copy-Cwl7g8AE.js","assets/file-type-icon-ThJaLePn.js","assets/content-blocks-o63cs2vh.js","assets/types-DA4RGvyb.js","assets/use-mcp-prompts-yCzBJuZf.js","assets/tabs-zn3_c2X4.js","assets/toggle-group-CzCtoT44.js","assets/agent-icons-CkjHTgLo.js","assets/ai-providers-logos-DD3qZ33J.js","assets/settings-section-DqhmLe6Q.js","assets/index-DdnG6T0z.js","assets/dropdown-menu-DFCaJxA8.js","assets/question-004-sINsf4GQ.js","assets/use-status-sounds-Bi-eGoxq.js","assets/empty-state-CVOhfUW7.js","assets/resizable-psD7TWaW.js","assets/use-capability-B4Fg7dX0.js","assets/header-tab-button-YP4v_sFN.js","assets/index-hwXZ3lhJ.js","assets/user-ce-n8AzQ.js","assets/tools-list-6mOdBofe.js","assets/use-debounced-autosave-Bxr0aFzV.js","assets/index-hMTvGWUn.js","assets/search-input-IQT_u5qN.js","assets/use-secrets-B3XtAhqh.js","assets/formatDistanceToNow-Cb2QZZJn.js","assets/accordion-DBEoJ6NR.js","assets/view-mode-toggle-DPvhvCSl.js","assets/select-model-azh5-bst.js","assets/use-automations-DBfmwk1I.js","assets/monaco-editor-47G-YgBx.js","assets/automation-runs-S95csAA4.js","assets/table-BF0TGzWk.js","assets/use-members-B2ko1Eht.js","assets/automation-list-row-SEcTO2sW.js","assets/index-DDGTF8rc.css","assets/index-Dy_atLRy.js","assets/index-Df6ljz6n.js","assets/settings-layout-DXfn8mRu.js","assets/index-redirect-BkbiWtap.js","assets/capability-load-error-C5tUHDdB.js","assets/connections-C3EDxDCA.js","assets/collection-display-button-M_1xgyCf.js","assets/use-delete-connection-R6nqWnGZ.js","assets/use-list-state-RN4viRCb.js","assets/use-view-mode-CVu0jG_s.js","assets/connection-detail-Mimew6o2.js","assets/index-2EH0OR7k.js","assets/index-G1Ev5Inf.js","assets/index-DqC0vS4o.js","assets/layout-D7xM_FMD.js","assets/monitoring-stats-row-DLPVsavd.js","assets/collection-detail-CiMl4FG7.js","assets/index-Dj1voR4t.js","assets/empty-state-DqgO6Psg.js","assets/alert-BHgS7nAN.js","assets/index-LDNFPs7X.js","assets/require-capability-VkdqqQVh.js","assets/access-gate-3WvSXWjg.js","assets/calendar-CC1tf37S.js","assets/general-D61AQybp.js","assets/domain-settings-BOHvvqIE.js","assets/features-Dsrgvggp.js","assets/brand-context-CHR40nnF.js","assets/ai-providers-DAK2efaH.js","assets/secrets-CvkPaEJL.js","assets/buckets-7WU_Biyf.js","assets/use-file-configs-DWXPP8uC.js","assets/members-D3KerYs6.js","assets/collection-table-wrapper-B4EgEmky.js","assets/use-organization-roles-jFwocdK5.js","assets/roles-DcdBU5wW.js","assets/sso-0oMpJ4kh.js","assets/profile-D24Mm1Bo.js","assets/store-BVB26WGO.js","assets/registry-BnciKKiV.js","assets/store-registry-CO_g7WZl.js","assets/workflow-DEw4Tgx1.js","assets/workflow-detail-DPYK3MGg.js","assets/org-plugin-layout-C_lutJvY.js","assets/plugin-layout-DeJC8Je1.js","assets/agents-list-DNeWvyP9.js","assets/automations-Ce44y56V.js","assets/dynamic-plugin-layout-D3tgFtHQ.js"])))=>i.map(i=>d[i]);
2
2
  function Hj(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();const qj="modulepreload",Gj=function(e){return"/"+e},xO={},lt=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let l=function(f){return Promise.all(f.map(p=>Promise.resolve(p).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");o=l(n.map(f=>{if(f=Gj(f),f in xO)return;xO[f]=!0;const p=f.endsWith(".css"),h=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${f}"]${h}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":qj,p||(g.as="script"),g.crossOrigin="",g.href=f,d&&g.setAttribute("nonce",d),document.head.appendChild(g),p)return new Promise((v,y)=>{g.addEventListener("load",v),g.addEventListener("error",()=>y(Error(`Unable to preload CSS for ${f}`)))})}))}function s(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return o.then(l=>{for(const c of l||[])c.status==="rejected"&&s(c.reason);return t().catch(s)})};var _ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ma(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D_={exports:{}},Qu={};var RO;function Kj(){if(RO)return Qu;RO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,s){var l=null;if(s!==void 0&&(l=""+s),o.key!==void 0&&(l=""+o.key),"key"in o){s={};for(var c in o)c!=="key"&&(s[c]=o[c])}else s=o;return o=s.ref,{$$typeof:e,type:r,key:l,ref:o!==void 0?o:null,props:s}}return Qu.Fragment=t,Qu.jsx=n,Qu.jsxs=n,Qu}var OO;function Zj(){return OO||(OO=1,D_.exports=Kj()),D_.exports}var C=Zj(),L_={exports:{}},Xu={},$_={exports:{}},j_={};var TO;function Yj(){return TO||(TO=1,(function(e){function t(q,W){var te=q.length;q.push(W);e:for(;0<te;){var le=te-1>>>1,Q=q[le];if(0<o(Q,W))q[le]=W,q[te]=Q,te=le;else break e}}function n(q){return q.length===0?null:q[0]}function r(q){if(q.length===0)return null;var W=q[0],te=q.pop();if(te!==W){q[0]=te;e:for(var le=0,Q=q.length,k=Q>>>1;le<k;){var G=2*(le+1)-1,V=q[G],D=G+1,F=q[D];if(0>o(V,te))D<Q&&0>o(F,V)?(q[le]=F,q[D]=te,le=D):(q[le]=V,q[G]=te,le=G);else if(D<Q&&0>o(F,te))q[le]=F,q[D]=te,le=D;else break e}}return W}function o(q,W){var te=q.sortIndex-W.sortIndex;return te!==0?te:q.id-W.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var d=[],f=[],p=1,h=null,g=3,v=!1,y=!1,b=!1,x=!1,w=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function R(q){for(var W=n(f);W!==null;){if(W.callback===null)r(f);else if(W.startTime<=q)r(f),W.sortIndex=W.expirationTime,t(d,W);else break;W=n(f)}}function O(q){if(b=!1,R(q),!y)if(n(d)!==null)y=!0,A||(A=!0,B());else{var W=n(f);W!==null&&oe(O,W.startTime-q)}}var A=!1,I=-1,P=5,L=-1;function H(){return x?!0:!(e.unstable_now()-L<P)}function j(){if(x=!1,A){var q=e.unstable_now();L=q;var W=!0;try{e:{y=!1,b&&(b=!1,E(I),I=-1),v=!0;var te=g;try{t:{for(R(q),h=n(d);h!==null&&!(h.expirationTime>q&&H());){var le=h.callback;if(typeof le=="function"){h.callback=null,g=h.priorityLevel;var Q=le(h.expirationTime<=q);if(q=e.unstable_now(),typeof Q=="function"){h.callback=Q,R(q),W=!0;break t}h===n(d)&&r(d),R(q)}else r(d);h=n(d)}if(h!==null)W=!0;else{var k=n(f);k!==null&&oe(O,k.startTime-q),W=!1}}break e}finally{h=null,g=te,v=!1}W=void 0}}finally{W?B():A=!1}}}var B;if(typeof T=="function")B=function(){T(j)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,K=z.port2;z.port1.onmessage=j,B=function(){K.postMessage(null)}}else B=function(){w(j,0)};function oe(q,W){I=w(function(){q(e.unstable_now())},W)}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(q){q.callback=null},e.unstable_forceFrameRate=function(q){0>q||125<q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<q?Math.floor(1e3/q):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(q){switch(g){case 1:case 2:case 3:var W=3;break;default:W=g}var te=g;g=W;try{return q()}finally{g=te}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(q,W){switch(q){case 1:case 2:case 3:case 4:case 5:break;default:q=3}var te=g;g=q;try{return W()}finally{g=te}},e.unstable_scheduleCallback=function(q,W,te){var le=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?le+te:le):te=le,q){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=te+Q,q={id:p++,callback:W,priorityLevel:q,startTime:te,expirationTime:Q,sortIndex:-1},te>le?(q.sortIndex=te,t(f,q),n(d)===null&&q===n(f)&&(b?(E(I),I=-1):b=!0,oe(O,te-le))):(q.sortIndex=Q,t(d,q),y||v||(y=!0,A||(A=!0,B()))),q},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(q){var W=g;return function(){var te=g;g=W;try{return q.apply(this,arguments)}finally{g=te}}}})(j_)),j_}var CO;function Wj(){return CO||(CO=1,$_.exports=Yj()),$_.exports}var U_={exports:{}},ot={};var AO;function Qj(){if(AO)return ot;AO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),g=Symbol.iterator;function v(k){return k===null||typeof k!="object"?null:(k=g&&k[g]||k["@@iterator"],typeof k=="function"?k:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,x={};function w(k,G,V){this.props=k,this.context=G,this.refs=x,this.updater=V||y}w.prototype.isReactComponent={},w.prototype.setState=function(k,G){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,G,"setState")},w.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function E(){}E.prototype=w.prototype;function T(k,G,V){this.props=k,this.context=G,this.refs=x,this.updater=V||y}var R=T.prototype=new E;R.constructor=T,b(R,w.prototype),R.isPureReactComponent=!0;var O=Array.isArray;function A(){}var I={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function L(k,G,V){var D=V.ref;return{$$typeof:e,type:k,key:G,ref:D!==void 0?D:null,props:V}}function H(k,G){return L(k.type,G,k.props)}function j(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function B(k){var G={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(V){return G[V]})}var z=/\/+/g;function K(k,G){return typeof k=="object"&&k!==null&&k.key!=null?B(""+k.key):G.toString(36)}function oe(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(A,A):(k.status="pending",k.then(function(G){k.status==="pending"&&(k.status="fulfilled",k.value=G)},function(G){k.status==="pending"&&(k.status="rejected",k.reason=G)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function q(k,G,V,D,F){var X=typeof k;(X==="undefined"||X==="boolean")&&(k=null);var fe=!1;if(k===null)fe=!0;else switch(X){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(k.$$typeof){case e:case t:fe=!0;break;case p:return fe=k._init,q(fe(k._payload),G,V,D,F)}}if(fe)return F=F(k),fe=D===""?"."+K(k,0):D,O(F)?(V="",fe!=null&&(V=fe.replace(z,"$&/")+"/"),q(F,G,V,"",function(je){return je})):F!=null&&(j(F)&&(F=H(F,V+(F.key==null||k&&k.key===F.key?"":(""+F.key).replace(z,"$&/")+"/")+fe)),G.push(F)),1;fe=0;var pe=D===""?".":D+":";if(O(k))for(var xe=0;xe<k.length;xe++)D=k[xe],X=pe+K(D,xe),fe+=q(D,G,V,X,F);else if(xe=v(k),typeof xe=="function")for(k=xe.call(k),xe=0;!(D=k.next()).done;)D=D.value,X=pe+K(D,xe++),fe+=q(D,G,V,X,F);else if(X==="object"){if(typeof k.then=="function")return q(oe(k),G,V,D,F);throw G=String(k),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(k,G,V){if(k==null)return k;var D=[],F=0;return q(k,D,"","",function(X){return G.call(V,X,F++)}),D}function te(k){if(k._status===-1){var G=k._result;G=G(),G.then(function(V){(k._status===0||k._status===-1)&&(k._status=1,k._result=V)},function(V){(k._status===0||k._status===-1)&&(k._status=2,k._result=V)}),k._status===-1&&(k._status=0,k._result=G)}if(k._status===1)return k._result.default;throw k._result}var le=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Q={map:W,forEach:function(k,G,V){W(k,function(){G.apply(this,arguments)},V)},count:function(k){var G=0;return W(k,function(){G++}),G},toArray:function(k){return W(k,function(G){return G})||[]},only:function(k){if(!j(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return ot.Activity=h,ot.Children=Q,ot.Component=w,ot.Fragment=n,ot.Profiler=o,ot.PureComponent=T,ot.StrictMode=r,ot.Suspense=d,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,ot.__COMPILER_RUNTIME={__proto__:null,c:function(k){return I.H.useMemoCache(k)}},ot.cache=function(k){return function(){return k.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.cloneElement=function(k,G,V){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var D=b({},k.props),F=k.key;if(G!=null)for(X in G.key!==void 0&&(F=""+G.key),G)!P.call(G,X)||X==="key"||X==="__self"||X==="__source"||X==="ref"&&G.ref===void 0||(D[X]=G[X]);var X=arguments.length-2;if(X===1)D.children=V;else if(1<X){for(var fe=Array(X),pe=0;pe<X;pe++)fe[pe]=arguments[pe+2];D.children=fe}return L(k.type,F,D)},ot.createContext=function(k){return k={$$typeof:l,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:s,_context:k},k},ot.createElement=function(k,G,V){var D,F={},X=null;if(G!=null)for(D in G.key!==void 0&&(X=""+G.key),G)P.call(G,D)&&D!=="key"&&D!=="__self"&&D!=="__source"&&(F[D]=G[D]);var fe=arguments.length-2;if(fe===1)F.children=V;else if(1<fe){for(var pe=Array(fe),xe=0;xe<fe;xe++)pe[xe]=arguments[xe+2];F.children=pe}if(k&&k.defaultProps)for(D in fe=k.defaultProps,fe)F[D]===void 0&&(F[D]=fe[D]);return L(k,X,F)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(k){return{$$typeof:c,render:k}},ot.isValidElement=j,ot.lazy=function(k){return{$$typeof:p,_payload:{_status:-1,_result:k},_init:te}},ot.memo=function(k,G){return{$$typeof:f,type:k,compare:G===void 0?null:G}},ot.startTransition=function(k){var G=I.T,V={};I.T=V;try{var D=k(),F=I.S;F!==null&&F(V,D),typeof D=="object"&&D!==null&&typeof D.then=="function"&&D.then(A,le)}catch(X){le(X)}finally{G!==null&&V.types!==null&&(G.types=V.types),I.T=G}},ot.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},ot.use=function(k){return I.H.use(k)},ot.useActionState=function(k,G,V){return I.H.useActionState(k,G,V)},ot.useCallback=function(k,G){return I.H.useCallback(k,G)},ot.useContext=function(k){return I.H.useContext(k)},ot.useDebugValue=function(){},ot.useDeferredValue=function(k,G){return I.H.useDeferredValue(k,G)},ot.useEffect=function(k,G){return I.H.useEffect(k,G)},ot.useEffectEvent=function(k){return I.H.useEffectEvent(k)},ot.useId=function(){return I.H.useId()},ot.useImperativeHandle=function(k,G,V){return I.H.useImperativeHandle(k,G,V)},ot.useInsertionEffect=function(k,G){return I.H.useInsertionEffect(k,G)},ot.useLayoutEffect=function(k,G){return I.H.useLayoutEffect(k,G)},ot.useMemo=function(k,G){return I.H.useMemo(k,G)},ot.useOptimistic=function(k,G){return I.H.useOptimistic(k,G)},ot.useReducer=function(k,G,V){return I.H.useReducer(k,G,V)},ot.useRef=function(k){return I.H.useRef(k)},ot.useState=function(k){return I.H.useState(k)},ot.useSyncExternalStore=function(k,G,V){return I.H.useSyncExternalStore(k,G,V)},ot.useTransition=function(){return I.H.useTransition()},ot.version="19.2.6",ot}var IO;function ga(){return IO||(IO=1,U_.exports=Qj()),U_.exports}var z_={exports:{}},Er={};var MO;function Xj(){if(MO)return Er;MO=1;var e=ga();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)f+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function s(d,f,p){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:h==null?null:""+h,children:d,containerInfo:f,implementation:p}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Er.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Er.createPortal=function(d,f){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return s(d,f,null,p)},Er.flushSync=function(d){var f=l.T,p=r.p;try{if(l.T=null,r.p=2,d)return d()}finally{l.T=f,r.p=p,r.d.f()}},Er.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},Er.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Er.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var p=f.as,h=c(p,f.crossOrigin),g=typeof f.integrity=="string"?f.integrity:void 0,v=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;p==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:h,integrity:g,fetchPriority:v}):p==="script"&&r.d.X(d,{crossOrigin:h,integrity:g,fetchPriority:v,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Er.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var p=c(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},Er.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var p=f.as,h=c(p,f.crossOrigin);r.d.L(d,p,{crossOrigin:h,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Er.preloadModule=function(d,f){if(typeof d=="string")if(f){var p=c(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},Er.requestFormReset=function(d){r.d.r(d)},Er.unstable_batchedUpdates=function(d,f){return d(f)},Er.useFormState=function(d,f,p){return l.H.useFormState(d,f,p)},Er.useFormStatus=function(){return l.H.useHostTransitionStatus()},Er.version="19.2.6",Er}var PO;function dP(){if(PO)return z_.exports;PO=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(),z_.exports=Xj(),z_.exports}var NO;function Jj(){if(NO)return Xu;NO=1;var e=Wj(),t=ga(),n=dP();function r(i){var a="https://react.dev/errors/"+i;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var a=i,u=i;if(i.alternate)for(;a.return;)a=a.return;else{i=a;do a=i,(a.flags&4098)!==0&&(u=a.return),i=a.return;while(i)}return a.tag===3?u:null}function l(i){if(i.tag===13){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function c(i){if(i.tag===31){var a=i.memoizedState;if(a===null&&(i=i.alternate,i!==null&&(a=i.memoizedState)),a!==null)return a.dehydrated}return null}function d(i){if(s(i)!==i)throw Error(r(188))}function f(i){var a=i.alternate;if(!a){if(a=s(i),a===null)throw Error(r(188));return a!==i?null:i}for(var u=i,m=a;;){var _=u.return;if(_===null)break;var S=_.alternate;if(S===null){if(m=_.return,m!==null){u=m;continue}break}if(_.child===S.child){for(S=_.child;S;){if(S===u)return d(_),i;if(S===m)return d(_),a;S=S.sibling}throw Error(r(188))}if(u.return!==m.return)u=_,m=S;else{for(var N=!1,U=_.child;U;){if(U===u){N=!0,u=_,m=S;break}if(U===m){N=!0,m=_,u=S;break}U=U.sibling}if(!N){for(U=S.child;U;){if(U===u){N=!0,u=S,m=_;break}if(U===m){N=!0,m=S,u=_;break}U=U.sibling}if(!N)throw Error(r(189))}}if(u.alternate!==m)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:a}function p(i){var a=i.tag;if(a===5||a===26||a===27||a===6)return i;for(i=i.child;i!==null;){if(a=p(i),a!==null)return a;i=i.sibling}return null}var h=Object.assign,g=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),w=Symbol.for("react.profiler"),E=Symbol.for("react.consumer"),T=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),j=Symbol.iterator;function B(i){return i===null||typeof i!="object"?null:(i=j&&i[j]||i["@@iterator"],typeof i=="function"?i:null)}var z=Symbol.for("react.client.reference");function K(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===z?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case b:return"Fragment";case w:return"Profiler";case x:return"StrictMode";case O:return"Suspense";case A:return"SuspenseList";case L:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case y:return"Portal";case T:return i.displayName||"Context";case E:return(i._context.displayName||"Context")+".Consumer";case R:var a=i.render;return i=i.displayName,i||(i=a.displayName||a.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case I:return a=i.displayName||null,a!==null?a:K(i.type)||"Memo";case P:a=i._payload,i=i._init;try{return K(i(a))}catch{}}return null}var oe=Array.isArray,q=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},le=[],Q=-1;function k(i){return{current:i}}function G(i){0>Q||(i.current=le[Q],le[Q]=null,Q--)}function V(i,a){Q++,le[Q]=i.current,i.current=a}var D=k(null),F=k(null),X=k(null),fe=k(null);function pe(i,a){switch(V(X,a),V(F,i),V(D,null),a.nodeType){case 9:case 11:i=(i=a.documentElement)&&(i=i.namespaceURI)?K2(i):0;break;default:if(i=a.tagName,a=a.namespaceURI)a=K2(a),i=Z2(a,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}G(D),V(D,i)}function xe(){G(D),G(F),G(X)}function je(i){i.memoizedState!==null&&V(fe,i);var a=D.current,u=Z2(a,i.type);a!==u&&(V(F,i),V(D,u))}function Y(i){F.current===i&&(G(D),G(F)),fe.current===i&&(G(fe),Ku._currentValue=te)}var re,ve;function se(i){if(re===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);re=a&&a[1]||"",ve=-1<u.stack.indexOf(`
3
3
  at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
4
4
  `+re+i+ve}var Se=!1;function Te(i,a){if(!i||Se)return"";Se=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(a){var Ee=function(){throw Error()};if(Object.defineProperty(Ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ee,[])}catch(ge){var he=ge}Reflect.construct(i,[],Ee)}else{try{Ee.call()}catch(ge){he=ge}i.call(Ee.prototype)}}else{try{throw Error()}catch(ge){he=ge}(Ee=i())&&typeof Ee.catch=="function"&&Ee.catch(function(){})}}catch(ge){if(ge&&he&&typeof ge.stack=="string")return[ge.stack,he.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var _=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");_&&_.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var S=m.DetermineComponentFrameRoot(),N=S[0],U=S[1];if(N&&U){var J=N.split(`
@@ -160,7 +160,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
160
160
  || ${P} === "boolean" || ${A} === null`).assign(L,(0,r._)`[${A}]`)}}}function g({gen:E,parentData:T,parentDataProperty:R},O){E.if((0,r._)`${T} !== undefined`,()=>E.assign((0,r._)`${T}[${R}]`,O))}function v(E,T,R,O=s.Correct){const A=O===s.Correct?r.operators.EQ:r.operators.NEQ;let I;switch(E){case"null":return(0,r._)`${T} ${A} null`;case"array":I=(0,r._)`Array.isArray(${T})`;break;case"object":I=(0,r._)`${T} && typeof ${T} == "object" && !Array.isArray(${T})`;break;case"integer":I=P((0,r._)`!(${T} % 1) && !isNaN(${T})`);break;case"number":I=P();break;default:return(0,r._)`typeof ${T} ${A} ${E}`}return O===s.Correct?I:(0,r.not)(I);function P(L=r.nil){return(0,r.and)((0,r._)`typeof ${T} == "number"`,L,R?(0,r._)`isFinite(${T})`:r.nil)}}hr.checkDataType=v;function y(E,T,R,O){if(E.length===1)return v(E[0],T,R,O);let A;const I=(0,o.toHash)(E);if(I.array&&I.object){const P=(0,r._)`typeof ${T} != "object"`;A=I.null?P:(0,r._)`!${T} || ${P}`,delete I.null,delete I.array,delete I.object}else A=r.nil;I.number&&delete I.integer;for(const P in I)A=(0,r.and)(A,v(P,T,R,O));return A}hr.checkDataTypes=y;const b={message:({schema:E})=>`must be ${E}`,params:({schema:E,schemaValue:T})=>typeof E=="string"?(0,r._)`{type: ${E}}`:(0,r._)`{type: ${T}}`};function x(E){const T=w(E);(0,n.reportError)(T,b)}hr.reportTypeError=x;function w(E){const{gen:T,data:R,schema:O}=E,A=(0,o.schemaRefOrVal)(E,O,"type");return{gen:T,keyword:"type",data:R,schema:O.type,schemaCode:A,schemaValue:A,parentSchema:O,params:{},it:E}}return hr}var yd={},KI;function hse(){if(KI)return yd;KI=1,Object.defineProperty(yd,"__esModule",{value:!0}),yd.assignDefaults=void 0;const e=_t(),t=kt();function n(o,s){const{properties:l,items:c}=o.schema;if(s==="object"&&l)for(const d in l)r(o,d,l[d].default);else s==="array"&&Array.isArray(c)&&c.forEach((d,f)=>r(o,f,d.default))}yd.assignDefaults=n;function r(o,s,l){const{gen:c,compositeRule:d,data:f,opts:p}=o;if(l===void 0)return;const h=(0,e._)`${f}${(0,e.getProperty)(s)}`;if(d){(0,t.checkStrictMode)(o,`default is ignored for: ${h}`);return}let g=(0,e._)`${h} === undefined`;p.useDefaults==="empty"&&(g=(0,e._)`${g} || ${h} === null || ${h} === ""`),c.if(g,(0,e._)`${h} = ${(0,e.stringify)(l)}`)}return yd}var Xo={},qt={},ZI;function li(){if(ZI)return qt;ZI=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.validateUnion=qt.validateArray=qt.usePattern=qt.callValidateCode=qt.schemaProperties=qt.allSchemaProperties=qt.noPropertyInData=qt.propertyInData=qt.isOwnProperty=qt.hasPropFunc=qt.reportMissingProp=qt.checkMissingProp=qt.checkReportMissingProp=void 0;const e=_t(),t=kt(),n=wa(),r=kt();function o(E,T){const{gen:R,data:O,it:A}=E;R.if(p(R,O,T,A.opts.ownProperties),()=>{E.setParams({missingProperty:(0,e._)`${T}`},!0),E.error()})}qt.checkReportMissingProp=o;function s({gen:E,data:T,it:{opts:R}},O,A){return(0,e.or)(...O.map(I=>(0,e.and)(p(E,T,I,R.ownProperties),(0,e._)`${A} = ${I}`)))}qt.checkMissingProp=s;function l(E,T){E.setParams({missingProperty:T},!0),E.error()}qt.reportMissingProp=l;function c(E){return E.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}qt.hasPropFunc=c;function d(E,T,R){return(0,e._)`${c(E)}.call(${T}, ${R})`}qt.isOwnProperty=d;function f(E,T,R,O){const A=(0,e._)`${T}${(0,e.getProperty)(R)} !== undefined`;return O?(0,e._)`${A} && ${d(E,T,R)}`:A}qt.propertyInData=f;function p(E,T,R,O){const A=(0,e._)`${T}${(0,e.getProperty)(R)} === undefined`;return O?(0,e.or)(A,(0,e.not)(d(E,T,R))):A}qt.noPropertyInData=p;function h(E){return E?Object.keys(E).filter(T=>T!=="__proto__"):[]}qt.allSchemaProperties=h;function g(E,T){return h(T).filter(R=>!(0,t.alwaysValidSchema)(E,T[R]))}qt.schemaProperties=g;function v({schemaCode:E,data:T,it:{gen:R,topSchemaRef:O,schemaPath:A,errorPath:I},it:P},L,H,j){const B=j?(0,e._)`${E}, ${T}, ${O}${A}`:T,z=[[n.default.instancePath,(0,e.strConcat)(n.default.instancePath,I)],[n.default.parentData,P.parentData],[n.default.parentDataProperty,P.parentDataProperty],[n.default.rootData,n.default.rootData]];P.opts.dynamicRef&&z.push([n.default.dynamicAnchors,n.default.dynamicAnchors]);const K=(0,e._)`${B}, ${R.object(...z)}`;return H!==e.nil?(0,e._)`${L}.call(${H}, ${K})`:(0,e._)`${L}(${K})`}qt.callValidateCode=v;const y=(0,e._)`new RegExp`;function b({gen:E,it:{opts:T}},R){const O=T.unicodeRegExp?"u":"",{regExp:A}=T.code,I=A(R,O);return E.scopeValue("pattern",{key:I.toString(),ref:I,code:(0,e._)`${A.code==="new RegExp"?y:(0,r.useFunc)(E,A)}(${R}, ${O})`})}qt.usePattern=b;function x(E){const{gen:T,data:R,keyword:O,it:A}=E,I=T.name("valid");if(A.allErrors){const L=T.let("valid",!0);return P(()=>T.assign(L,!1)),L}return T.var(I,!0),P(()=>T.break()),I;function P(L){const H=T.const("len",(0,e._)`${R}.length`);T.forRange("i",0,H,j=>{E.subschema({keyword:O,dataProp:j,dataPropType:t.Type.Num},I),T.if((0,e.not)(I),L)})}}qt.validateArray=x;function w(E){const{gen:T,schema:R,keyword:O,it:A}=E;if(!Array.isArray(R))throw new Error("ajv implementation error");if(R.some(H=>(0,t.alwaysValidSchema)(A,H))&&!A.opts.unevaluated)return;const P=T.let("valid",!1),L=T.name("_valid");T.block(()=>R.forEach((H,j)=>{const B=E.subschema({keyword:O,schemaProp:j,compositeRule:!0},L);T.assign(P,(0,e._)`${P} || ${L}`),E.mergeValidEvaluated(B,L)||T.if((0,e.not)(P))})),E.result(P,()=>E.reset(),()=>E.error(!0))}return qt.validateUnion=w,qt}var YI;function pse(){if(YI)return Xo;YI=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.validateKeywordUsage=Xo.validSchemaType=Xo.funcKeywordCode=Xo.macroKeywordCode=void 0;const e=_t(),t=wa(),n=li(),r=vv();function o(g,v){const{gen:y,keyword:b,schema:x,parentSchema:w,it:E}=g,T=v.macro.call(E.self,x,w,E),R=f(y,b,T);E.opts.validateSchema!==!1&&E.self.validateSchema(T,!0);const O=y.name("valid");g.subschema({schema:T,schemaPath:e.nil,errSchemaPath:`${E.errSchemaPath}/${b}`,topSchemaRef:R,compositeRule:!0},O),g.pass(O,()=>g.error(!0))}Xo.macroKeywordCode=o;function s(g,v){var y;const{gen:b,keyword:x,schema:w,parentSchema:E,$data:T,it:R}=g;d(R,v);const O=!T&&v.compile?v.compile.call(R.self,w,E,R):v.validate,A=f(b,x,O),I=b.let("valid");g.block$data(I,P),g.ok((y=v.valid)!==null&&y!==void 0?y:I);function P(){if(v.errors===!1)j(),v.modifying&&l(g),B(()=>g.error());else{const z=v.async?L():H();v.modifying&&l(g),B(()=>c(g,z))}}function L(){const z=b.let("ruleErrs",null);return b.try(()=>j((0,e._)`await `),K=>b.assign(I,!1).if((0,e._)`${K} instanceof ${R.ValidationError}`,()=>b.assign(z,(0,e._)`${K}.errors`),()=>b.throw(K))),z}function H(){const z=(0,e._)`${A}.errors`;return b.assign(z,null),j(e.nil),z}function j(z=v.async?(0,e._)`await `:e.nil){const K=R.opts.passContext?t.default.this:t.default.self,oe=!("compile"in v&&!T||v.schema===!1);b.assign(I,(0,e._)`${z}${(0,n.callValidateCode)(g,A,K,oe)}`,v.modifying)}function B(z){var K;b.if((0,e.not)((K=v.valid)!==null&&K!==void 0?K:I),z)}}Xo.funcKeywordCode=s;function l(g){const{gen:v,data:y,it:b}=g;v.if(b.parentData,()=>v.assign(y,(0,e._)`${b.parentData}[${b.parentDataProperty}]`))}function c(g,v){const{gen:y}=g;y.if((0,e._)`Array.isArray(${v})`,()=>{y.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,r.extendErrors)(g)},()=>g.error())}function d({schemaEnv:g},v){if(v.async&&!g.$async)throw new Error("async keyword in sync schema")}function f(g,v,y){if(y===void 0)throw new Error(`keyword "${v}" failed to compile`);return g.scopeValue("keyword",typeof y=="function"?{ref:y}:{ref:y,code:(0,e.stringify)(y)})}function p(g,v,y=!1){return!v.length||v.some(b=>b==="array"?Array.isArray(g):b==="object"?g&&typeof g=="object"&&!Array.isArray(g):typeof g==b||y&&typeof g>"u")}Xo.validSchemaType=p;function h({schema:g,opts:v,self:y,errSchemaPath:b},x,w){if(Array.isArray(x.keyword)?!x.keyword.includes(w):x.keyword!==w)throw new Error("ajv implementation error");const E=x.dependencies;if(E?.some(T=>!Object.prototype.hasOwnProperty.call(g,T)))throw new Error(`parent schema must have dependencies of ${w}: ${E.join(",")}`);if(x.validateSchema&&!x.validateSchema(g[w])){const R=`keyword "${w}" value is invalid at path "${b}": `+y.errorsText(x.validateSchema.errors);if(v.validateSchema==="log")y.logger.error(R);else throw new Error(R)}}return Xo.validateKeywordUsage=h,Xo}var ts={},WI;function mse(){if(WI)return ts;WI=1,Object.defineProperty(ts,"__esModule",{value:!0}),ts.extendSubschemaMode=ts.extendSubschemaData=ts.getSubschema=void 0;const e=_t(),t=kt();function n(s,{keyword:l,schemaProp:c,schema:d,schemaPath:f,errSchemaPath:p,topSchemaRef:h}){if(l!==void 0&&d!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(l!==void 0){const g=s.schema[l];return c===void 0?{schema:g,schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(l)}`,errSchemaPath:`${s.errSchemaPath}/${l}`}:{schema:g[c],schemaPath:(0,e._)`${s.schemaPath}${(0,e.getProperty)(l)}${(0,e.getProperty)(c)}`,errSchemaPath:`${s.errSchemaPath}/${l}/${(0,t.escapeFragment)(c)}`}}if(d!==void 0){if(f===void 0||p===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:d,schemaPath:f,topSchemaRef:h,errSchemaPath:p}}throw new Error('either "keyword" or "schema" must be passed')}ts.getSubschema=n;function r(s,l,{dataProp:c,dataPropType:d,data:f,dataTypes:p,propertyName:h}){if(f!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:g}=l;if(c!==void 0){const{errorPath:y,dataPathArr:b,opts:x}=l,w=g.let("data",(0,e._)`${l.data}${(0,e.getProperty)(c)}`,!0);v(w),s.errorPath=(0,e.str)`${y}${(0,t.getErrorPath)(c,d,x.jsPropertySyntax)}`,s.parentDataProperty=(0,e._)`${c}`,s.dataPathArr=[...b,s.parentDataProperty]}if(f!==void 0){const y=f instanceof e.Name?f:g.let("data",f,!0);v(y),h!==void 0&&(s.propertyName=h)}p&&(s.dataTypes=p);function v(y){s.data=y,s.dataLevel=l.dataLevel+1,s.dataTypes=[],l.definedProperties=new Set,s.parentData=l.data,s.dataNames=[...l.dataNames,y]}}ts.extendSubschemaData=r;function o(s,{jtdDiscriminator:l,jtdMetadata:c,compositeRule:d,createErrors:f,allErrors:p}){d!==void 0&&(s.compositeRule=d),f!==void 0&&(s.createErrors=f),p!==void 0&&(s.allErrors=p),s.jtdDiscriminator=l,s.jtdMetadata=c}return ts.extendSubschemaMode=o,ts}var kr={},Rb,QI;function Q6(){return QI||(QI=1,Rb=function e(t,n){if(t===n)return!0;if(t&&n&&typeof t=="object"&&typeof n=="object"){if(t.constructor!==n.constructor)return!1;var r,o,s;if(Array.isArray(t)){if(r=t.length,r!=n.length)return!1;for(o=r;o--!==0;)if(!e(t[o],n[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if(s=Object.keys(t),r=s.length,r!==Object.keys(n).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(n,s[o]))return!1;for(o=r;o--!==0;){var l=s[o];if(!e(t[l],n[l]))return!1}return!0}return t!==t&&n!==n}),Rb}var Ob={exports:{}},XI;function gse(){if(XI)return Ob.exports;XI=1;var e=Ob.exports=function(r,o,s){typeof o=="function"&&(s=o,o={}),s=o.cb||s;var l=typeof s=="function"?s:s.pre||function(){},c=s.post||function(){};t(o,l,c,r,"",r)};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(r,o,s,l,c,d,f,p,h,g){if(l&&typeof l=="object"&&!Array.isArray(l)){o(l,c,d,f,p,h,g);for(var v in l){var y=l[v];if(Array.isArray(y)){if(v in e.arrayKeywords)for(var b=0;b<y.length;b++)t(r,o,s,y[b],c+"/"+v+"/"+b,d,c,v,l,b)}else if(v in e.propsKeywords){if(y&&typeof y=="object")for(var x in y)t(r,o,s,y[x],c+"/"+v+"/"+n(x),d,c,v,l,x)}else(v in e.keywords||r.allKeys&&!(v in e.skipKeywords))&&t(r,o,s,y,c+"/"+v,d,c,v,l)}s(l,c,d,f,p,h,g)}}function n(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}return Ob.exports}var JI;function _v(){if(JI)return kr;JI=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.getSchemaRefs=kr.resolveUrl=kr.normalizeId=kr._getFullPath=kr.getFullPath=kr.inlineRef=void 0;const e=kt(),t=Q6(),n=gse(),r=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function o(b,x=!0){return typeof b=="boolean"?!0:x===!0?!l(b):x?c(b)<=x:!1}kr.inlineRef=o;const s=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function l(b){for(const x in b){if(s.has(x))return!0;const w=b[x];if(Array.isArray(w)&&w.some(l)||typeof w=="object"&&l(w))return!0}return!1}function c(b){let x=0;for(const w in b){if(w==="$ref")return 1/0;if(x++,!r.has(w)&&(typeof b[w]=="object"&&(0,e.eachItem)(b[w],E=>x+=c(E)),x===1/0))return 1/0}return x}function d(b,x="",w){w!==!1&&(x=h(x));const E=b.parse(x);return f(b,E)}kr.getFullPath=d;function f(b,x){return b.serialize(x).split("#")[0]+"#"}kr._getFullPath=f;const p=/#\/?$/;function h(b){return b?b.replace(p,""):""}kr.normalizeId=h;function g(b,x,w){return w=h(w),b.resolve(x,w)}kr.resolveUrl=g;const v=/^[a-z_][-a-z0-9._]*$/i;function y(b,x){if(typeof b=="boolean")return{};const{schemaId:w,uriResolver:E}=this.opts,T=h(b[w]||x),R={"":T},O=d(E,T,!1),A={},I=new Set;return n(b,{allKeys:!0},(H,j,B,z)=>{if(z===void 0)return;const K=O+j;let oe=R[z];typeof H[w]=="string"&&(oe=q.call(this,H[w])),W.call(this,H.$anchor),W.call(this,H.$dynamicAnchor),R[j]=oe;function q(te){const le=this.opts.uriResolver.resolve;if(te=h(oe?le(oe,te):te),I.has(te))throw L(te);I.add(te);let Q=this.refs[te];return typeof Q=="string"&&(Q=this.refs[Q]),typeof Q=="object"?P(H,Q.schema,te):te!==h(K)&&(te[0]==="#"?(P(H,A[te],te),A[te]=H):this.refs[te]=K),te}function W(te){if(typeof te=="string"){if(!v.test(te))throw new Error(`invalid anchor "${te}"`);q.call(this,`#${te}`)}}}),A;function P(H,j,B){if(j!==void 0&&!t(H,j))throw L(B)}function L(H){return new Error(`reference "${H}" resolves to more than one schema`)}}return kr.getSchemaRefs=y,kr}var eM;function yv(){if(eM)return Ji;eM=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.getData=Ji.KeywordCxt=Ji.validateFunctionCode=void 0;const e=fse(),t=Og(),n=W6(),r=Og(),o=hse(),s=pse(),l=mse(),c=_t(),d=wa(),f=_v(),p=kt(),h=vv();function g(Y){if(O(Y)&&(I(Y),R(Y))){x(Y);return}v(Y,()=>(0,e.topBoolOrEmptySchema)(Y))}Ji.validateFunctionCode=g;function v({gen:Y,validateName:re,schema:ve,schemaEnv:se,opts:Se},Te){Se.code.es5?Y.func(re,(0,c._)`${d.default.data}, ${d.default.valCxt}`,se.$async,()=>{Y.code((0,c._)`"use strict"; ${E(ve,Se)}`),b(Y,Se),Y.code(Te)}):Y.func(re,(0,c._)`${d.default.data}, ${y(Se)}`,se.$async,()=>Y.code(E(ve,Se)).code(Te))}function y(Y){return(0,c._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${Y.dynamicRef?(0,c._)`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`}function b(Y,re){Y.if(d.default.valCxt,()=>{Y.var(d.default.instancePath,(0,c._)`${d.default.valCxt}.${d.default.instancePath}`),Y.var(d.default.parentData,(0,c._)`${d.default.valCxt}.${d.default.parentData}`),Y.var(d.default.parentDataProperty,(0,c._)`${d.default.valCxt}.${d.default.parentDataProperty}`),Y.var(d.default.rootData,(0,c._)`${d.default.valCxt}.${d.default.rootData}`),re.dynamicRef&&Y.var(d.default.dynamicAnchors,(0,c._)`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{Y.var(d.default.instancePath,(0,c._)`""`),Y.var(d.default.parentData,(0,c._)`undefined`),Y.var(d.default.parentDataProperty,(0,c._)`undefined`),Y.var(d.default.rootData,d.default.data),re.dynamicRef&&Y.var(d.default.dynamicAnchors,(0,c._)`{}`)})}function x(Y){const{schema:re,opts:ve,gen:se}=Y;v(Y,()=>{ve.$comment&&re.$comment&&z(Y),H(Y),se.let(d.default.vErrors,null),se.let(d.default.errors,0),ve.unevaluated&&w(Y),P(Y),K(Y)})}function w(Y){const{gen:re,validateName:ve}=Y;Y.evaluated=re.const("evaluated",(0,c._)`${ve}.evaluated`),re.if((0,c._)`${Y.evaluated}.dynamicProps`,()=>re.assign((0,c._)`${Y.evaluated}.props`,(0,c._)`undefined`)),re.if((0,c._)`${Y.evaluated}.dynamicItems`,()=>re.assign((0,c._)`${Y.evaluated}.items`,(0,c._)`undefined`))}function E(Y,re){const ve=typeof Y=="object"&&Y[re.schemaId];return ve&&(re.code.source||re.code.process)?(0,c._)`/*# sourceURL=${ve} */`:c.nil}function T(Y,re){if(O(Y)&&(I(Y),R(Y))){A(Y,re);return}(0,e.boolOrEmptySchema)(Y,re)}function R({schema:Y,self:re}){if(typeof Y=="boolean")return!Y;for(const ve in Y)if(re.RULES.all[ve])return!0;return!1}function O(Y){return typeof Y.schema!="boolean"}function A(Y,re){const{schema:ve,gen:se,opts:Se}=Y;Se.$comment&&ve.$comment&&z(Y),j(Y),B(Y);const Te=se.const("_errs",d.default.errors);P(Y,Te),se.var(re,(0,c._)`${Te} === ${d.default.errors}`)}function I(Y){(0,p.checkUnknownRules)(Y),L(Y)}function P(Y,re){if(Y.opts.jtd)return q(Y,[],!1,re);const ve=(0,t.getSchemaTypes)(Y.schema),se=(0,t.coerceAndCheckDataType)(Y,ve);q(Y,ve,!se,re)}function L(Y){const{schema:re,errSchemaPath:ve,opts:se,self:Se}=Y;re.$ref&&se.ignoreKeywordsWithRef&&(0,p.schemaHasRulesButRef)(re,Se.RULES)&&Se.logger.warn(`$ref: keywords ignored in schema at path "${ve}"`)}function H(Y){const{schema:re,opts:ve}=Y;re.default!==void 0&&ve.useDefaults&&ve.strictSchema&&(0,p.checkStrictMode)(Y,"default is ignored in the schema root")}function j(Y){const re=Y.schema[Y.opts.schemaId];re&&(Y.baseId=(0,f.resolveUrl)(Y.opts.uriResolver,Y.baseId,re))}function B(Y){if(Y.schema.$async&&!Y.schemaEnv.$async)throw new Error("async schema in sync schema")}function z({gen:Y,schemaEnv:re,schema:ve,errSchemaPath:se,opts:Se}){const Te=ve.$comment;if(Se.$comment===!0)Y.code((0,c._)`${d.default.self}.logger.log(${Te})`);else if(typeof Se.$comment=="function"){const tt=(0,c.str)`${se}/$comment`,rt=Y.scopeValue("root",{ref:re.root});Y.code((0,c._)`${d.default.self}.opts.$comment(${Te}, ${tt}, ${rt}.schema)`)}}function K(Y){const{gen:re,schemaEnv:ve,validateName:se,ValidationError:Se,opts:Te}=Y;ve.$async?re.if((0,c._)`${d.default.errors} === 0`,()=>re.return(d.default.data),()=>re.throw((0,c._)`new ${Se}(${d.default.vErrors})`)):(re.assign((0,c._)`${se}.errors`,d.default.vErrors),Te.unevaluated&&oe(Y),re.return((0,c._)`${d.default.errors} === 0`))}function oe({gen:Y,evaluated:re,props:ve,items:se}){ve instanceof c.Name&&Y.assign((0,c._)`${re}.props`,ve),se instanceof c.Name&&Y.assign((0,c._)`${re}.items`,se)}function q(Y,re,ve,se){const{gen:Se,schema:Te,data:tt,allErrors:rt,opts:Be,self:Qe}=Y,{RULES:Pe}=Qe;if(Te.$ref&&(Be.ignoreKeywordsWithRef||!(0,p.schemaHasRulesButRef)(Te,Pe))){Se.block(()=>fe(Y,"$ref",Pe.all.$ref.definition));return}Be.jtd||te(Y,re),Se.block(()=>{for(const ze of Pe.rules)Me(ze);Me(Pe.post)});function Me(ze){(0,n.shouldUseGroup)(Te,ze)&&(ze.type?(Se.if((0,r.checkDataType)(ze.type,tt,Be.strictNumbers)),W(Y,ze),re.length===1&&re[0]===ze.type&&ve&&(Se.else(),(0,r.reportTypeError)(Y)),Se.endIf()):W(Y,ze),rt||Se.if((0,c._)`${d.default.errors} === ${se||0}`))}}function W(Y,re){const{gen:ve,schema:se,opts:{useDefaults:Se}}=Y;Se&&(0,o.assignDefaults)(Y,re.type),ve.block(()=>{for(const Te of re.rules)(0,n.shouldUseRule)(se,Te)&&fe(Y,Te.keyword,Te.definition,re.type)})}function te(Y,re){Y.schemaEnv.meta||!Y.opts.strictTypes||(le(Y,re),Y.opts.allowUnionTypes||Q(Y,re),k(Y,Y.dataTypes))}function le(Y,re){if(re.length){if(!Y.dataTypes.length){Y.dataTypes=re;return}re.forEach(ve=>{V(Y.dataTypes,ve)||F(Y,`type "${ve}" not allowed by context "${Y.dataTypes.join(",")}"`)}),D(Y,re)}}function Q(Y,re){re.length>1&&!(re.length===2&&re.includes("null"))&&F(Y,"use allowUnionTypes to allow union type keyword")}function k(Y,re){const ve=Y.self.RULES.all;for(const se in ve){const Se=ve[se];if(typeof Se=="object"&&(0,n.shouldUseRule)(Y.schema,Se)){const{type:Te}=Se.definition;Te.length&&!Te.some(tt=>G(re,tt))&&F(Y,`missing type "${Te.join(",")}" for keyword "${se}"`)}}}function G(Y,re){return Y.includes(re)||re==="number"&&Y.includes("integer")}function V(Y,re){return Y.includes(re)||re==="integer"&&Y.includes("number")}function D(Y,re){const ve=[];for(const se of Y.dataTypes)V(re,se)?ve.push(se):re.includes("integer")&&se==="number"&&ve.push("integer");Y.dataTypes=ve}function F(Y,re){const ve=Y.schemaEnv.baseId+Y.errSchemaPath;re+=` at "${ve}" (strictTypes)`,(0,p.checkStrictMode)(Y,re,Y.opts.strictTypes)}class X{constructor(re,ve,se){if((0,s.validateKeywordUsage)(re,ve,se),this.gen=re.gen,this.allErrors=re.allErrors,this.keyword=se,this.data=re.data,this.schema=re.schema[se],this.$data=ve.$data&&re.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,p.schemaRefOrVal)(re,this.schema,se,this.$data),this.schemaType=ve.schemaType,this.parentSchema=re.schema,this.params={},this.it=re,this.def=ve,this.$data)this.schemaCode=re.gen.const("vSchema",je(this.$data,re));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,ve.schemaType,ve.allowUndefined))throw new Error(`${se} value must be ${JSON.stringify(ve.schemaType)}`);("code"in ve?ve.trackErrors:ve.errors!==!1)&&(this.errsCount=re.gen.const("_errs",d.default.errors))}result(re,ve,se){this.failResult((0,c.not)(re),ve,se)}failResult(re,ve,se){this.gen.if(re),se?se():this.error(),ve?(this.gen.else(),ve(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(re,ve){this.failResult((0,c.not)(re),void 0,ve)}fail(re){if(re===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(re),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(re){if(!this.$data)return this.fail(re);const{schemaCode:ve}=this;this.fail((0,c._)`${ve} !== undefined && (${(0,c.or)(this.invalid$data(),re)})`)}error(re,ve,se){if(ve){this.setParams(ve),this._error(re,se),this.setParams({});return}this._error(re,se)}_error(re,ve){(re?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(re){this.allErrors||this.gen.if(re)}setParams(re,ve){ve?Object.assign(this.params,re):this.params=re}block$data(re,ve,se=c.nil){this.gen.block(()=>{this.check$data(re,se),ve()})}check$data(re=c.nil,ve=c.nil){if(!this.$data)return;const{gen:se,schemaCode:Se,schemaType:Te,def:tt}=this;se.if((0,c.or)((0,c._)`${Se} === undefined`,ve)),re!==c.nil&&se.assign(re,!0),(Te.length||tt.validateSchema)&&(se.elseIf(this.invalid$data()),this.$dataError(),re!==c.nil&&se.assign(re,!1)),se.else()}invalid$data(){const{gen:re,schemaCode:ve,schemaType:se,def:Se,it:Te}=this;return(0,c.or)(tt(),rt());function tt(){if(se.length){if(!(ve instanceof c.Name))throw new Error("ajv implementation error");const Be=Array.isArray(se)?se:[se];return(0,c._)`${(0,r.checkDataTypes)(Be,ve,Te.opts.strictNumbers,r.DataType.Wrong)}`}return c.nil}function rt(){if(Se.validateSchema){const Be=re.scopeValue("validate$data",{ref:Se.validateSchema});return(0,c._)`!${Be}(${ve})`}return c.nil}}subschema(re,ve){const se=(0,l.getSubschema)(this.it,re);(0,l.extendSubschemaData)(se,this.it,re),(0,l.extendSubschemaMode)(se,re);const Se={...this.it,...se,items:void 0,props:void 0};return T(Se,ve),Se}mergeEvaluated(re,ve){const{it:se,gen:Se}=this;se.opts.unevaluated&&(se.props!==!0&&re.props!==void 0&&(se.props=p.mergeEvaluated.props(Se,re.props,se.props,ve)),se.items!==!0&&re.items!==void 0&&(se.items=p.mergeEvaluated.items(Se,re.items,se.items,ve)))}mergeValidEvaluated(re,ve){const{it:se,gen:Se}=this;if(se.opts.unevaluated&&(se.props!==!0||se.items!==!0))return Se.if(ve,()=>this.mergeEvaluated(re,c.Name)),!0}}Ji.KeywordCxt=X;function fe(Y,re,ve,se){const Se=new X(Y,ve,re);"code"in ve?ve.code(Se,se):Se.$data&&ve.validate?(0,s.funcKeywordCode)(Se,ve):"macro"in ve?(0,s.macroKeywordCode)(Se,ve):(ve.compile||ve.validate)&&(0,s.funcKeywordCode)(Se,ve)}const pe=/^\/(?:[^~]|~0|~1)*$/,xe=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function je(Y,{dataLevel:re,dataNames:ve,dataPathArr:se}){let Se,Te;if(Y==="")return d.default.rootData;if(Y[0]==="/"){if(!pe.test(Y))throw new Error(`Invalid JSON-pointer: ${Y}`);Se=Y,Te=d.default.rootData}else{const Qe=xe.exec(Y);if(!Qe)throw new Error(`Invalid JSON-pointer: ${Y}`);const Pe=+Qe[1];if(Se=Qe[2],Se==="#"){if(Pe>=re)throw new Error(Be("property/index",Pe));return se[re-Pe]}if(Pe>re)throw new Error(Be("data",Pe));if(Te=ve[re-Pe],!Se)return Te}let tt=Te;const rt=Se.split("/");for(const Qe of rt)Qe&&(Te=(0,c._)`${Te}${(0,c.getProperty)((0,p.unescapeJsonPointer)(Qe))}`,tt=(0,c._)`${tt} && ${Te}`);return tt;function Be(Qe,Pe){return`Cannot access ${Qe} ${Pe} levels up, current level is ${re}`}}return Ji.getData=je,Ji}var Ip={},tM;function vE(){if(tM)return Ip;tM=1,Object.defineProperty(Ip,"__esModule",{value:!0});class e extends Error{constructor(n){super("validation failed"),this.errors=n,this.ajv=this.validation=!0}}return Ip.default=e,Ip}var Mp={},nM;function bv(){if(nM)return Mp;nM=1,Object.defineProperty(Mp,"__esModule",{value:!0});const e=_v();class t extends Error{constructor(r,o,s,l){super(l||`can't resolve reference ${s} from id ${o}`),this.missingRef=(0,e.resolveUrl)(r,o,s),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(r,this.missingRef))}}return Mp.default=t,Mp}var lo={},rM;function _E(){if(rM)return lo;rM=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.resolveSchema=lo.getCompilingSchema=lo.resolveRef=lo.compileSchema=lo.SchemaEnv=void 0;const e=_t(),t=vE(),n=wa(),r=_v(),o=kt(),s=yv();class l{constructor(w){var E;this.refs={},this.dynamicAnchors={};let T;typeof w.schema=="object"&&(T=w.schema),this.schema=w.schema,this.schemaId=w.schemaId,this.root=w.root||this,this.baseId=(E=w.baseId)!==null&&E!==void 0?E:(0,r.normalizeId)(T?.[w.schemaId||"$id"]),this.schemaPath=w.schemaPath,this.localRefs=w.localRefs,this.meta=w.meta,this.$async=T?.$async,this.refs={}}}lo.SchemaEnv=l;function c(x){const w=p.call(this,x);if(w)return w;const E=(0,r.getFullPath)(this.opts.uriResolver,x.root.baseId),{es5:T,lines:R}=this.opts.code,{ownProperties:O}=this.opts,A=new e.CodeGen(this.scope,{es5:T,lines:R,ownProperties:O});let I;x.$async&&(I=A.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const P=A.scopeName("validate");x.validateName=P;const L={gen:A,allErrors:this.opts.allErrors,data:n.default.data,parentData:n.default.parentData,parentDataProperty:n.default.parentDataProperty,dataNames:[n.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:A.scopeValue("schema",this.opts.code.source===!0?{ref:x.schema,code:(0,e.stringify)(x.schema)}:{ref:x.schema}),validateName:P,ValidationError:I,schema:x.schema,schemaEnv:x,rootId:E,baseId:x.baseId||E,schemaPath:e.nil,errSchemaPath:x.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let H;try{this._compilations.add(x),(0,s.validateFunctionCode)(L),A.optimize(this.opts.code.optimize);const j=A.toString();H=`${A.scopeRefs(n.default.scope)}return ${j}`,this.opts.code.process&&(H=this.opts.code.process(H,x));const z=new Function(`${n.default.self}`,`${n.default.scope}`,H)(this,this.scope.get());if(this.scope.value(P,{ref:z}),z.errors=null,z.schema=x.schema,z.schemaEnv=x,x.$async&&(z.$async=!0),this.opts.code.source===!0&&(z.source={validateName:P,validateCode:j,scopeValues:A._values}),this.opts.unevaluated){const{props:K,items:oe}=L;z.evaluated={props:K instanceof e.Name?void 0:K,items:oe instanceof e.Name?void 0:oe,dynamicProps:K instanceof e.Name,dynamicItems:oe instanceof e.Name},z.source&&(z.source.evaluated=(0,e.stringify)(z.evaluated))}return x.validate=z,x}catch(j){throw delete x.validate,delete x.validateName,H&&this.logger.error("Error compiling schema, function code:",H),j}finally{this._compilations.delete(x)}}lo.compileSchema=c;function d(x,w,E){var T;E=(0,r.resolveUrl)(this.opts.uriResolver,w,E);const R=x.refs[E];if(R)return R;let O=g.call(this,x,E);if(O===void 0){const A=(T=x.localRefs)===null||T===void 0?void 0:T[E],{schemaId:I}=this.opts;A&&(O=new l({schema:A,schemaId:I,root:x,baseId:w}))}if(O!==void 0)return x.refs[E]=f.call(this,O)}lo.resolveRef=d;function f(x){return(0,r.inlineRef)(x.schema,this.opts.inlineRefs)?x.schema:x.validate?x:c.call(this,x)}function p(x){for(const w of this._compilations)if(h(w,x))return w}lo.getCompilingSchema=p;function h(x,w){return x.schema===w.schema&&x.root===w.root&&x.baseId===w.baseId}function g(x,w){let E;for(;typeof(E=this.refs[w])=="string";)w=E;return E||this.schemas[w]||v.call(this,x,w)}function v(x,w){const E=this.opts.uriResolver.parse(w),T=(0,r._getFullPath)(this.opts.uriResolver,E);let R=(0,r.getFullPath)(this.opts.uriResolver,x.baseId,void 0);if(Object.keys(x.schema).length>0&&T===R)return b.call(this,E,x);const O=(0,r.normalizeId)(T),A=this.refs[O]||this.schemas[O];if(typeof A=="string"){const I=v.call(this,x,A);return typeof I?.schema!="object"?void 0:b.call(this,E,I)}if(typeof A?.schema=="object"){if(A.validate||c.call(this,A),O===(0,r.normalizeId)(w)){const{schema:I}=A,{schemaId:P}=this.opts,L=I[P];return L&&(R=(0,r.resolveUrl)(this.opts.uriResolver,R,L)),new l({schema:I,schemaId:P,root:x,baseId:R})}return b.call(this,E,A)}}lo.resolveSchema=v;const y=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function b(x,{baseId:w,schema:E,root:T}){var R;if(((R=x.fragment)===null||R===void 0?void 0:R[0])!=="/")return;for(const I of x.fragment.slice(1).split("/")){if(typeof E=="boolean")return;const P=E[(0,o.unescapeFragment)(I)];if(P===void 0)return;E=P;const L=typeof E=="object"&&E[this.opts.schemaId];!y.has(I)&&L&&(w=(0,r.resolveUrl)(this.opts.uriResolver,w,L))}let O;if(typeof E!="boolean"&&E.$ref&&!(0,o.schemaHasRulesButRef)(E,this.RULES)){const I=(0,r.resolveUrl)(this.opts.uriResolver,w,E.$ref);O=v.call(this,T,I)}const{schemaId:A}=this.opts;if(O=O||new l({schema:E,schemaId:A,root:T,baseId:w}),O.schema!==O.root.schema)return O}return lo}const vse="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",_se="Meta-schema for $data reference (JSON AnySchema extension proposal)",yse="object",bse=["$data"],wse={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},Sse=!1,Ese={$id:vse,description:_se,type:yse,required:bse,properties:wse,additionalProperties:Sse};var Pp={},bd={exports:{}},Tb,oM;function X6(){if(oM)return Tb;oM=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 n(g){let v="",y=0,b=0;for(b=0;b<g.length;b++)if(y=g[b].charCodeAt(0),y!==48){if(!(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102))return"";v+=g[b];break}for(b+=1;b<g.length;b++){if(y=g[b].charCodeAt(0),!(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102))return"";v+=g[b]}return v}const r=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function o(g){return g.length=0,!0}function s(g,v,y){if(g.length){const b=n(g);if(b!=="")v.push(b);else return y.error=!0,!1;g.length=0}return!0}function l(g){let v=0;const y={error:!1,address:"",zone:""},b=[],x=[];let w=!1,E=!1,T=s;for(let R=0;R<g.length;R++){const O=g[R];if(!(O==="["||O==="]"))if(O===":"){if(w===!0&&(E=!0),!T(x,b,y))break;if(++v>7){y.error=!0;break}R>0&&g[R-1]===":"&&(w=!0),b.push(":");continue}else if(O==="%"){if(!T(x,b,y))break;T=o}else{x.push(O);continue}}return x.length&&(T===o?y.zone=x.join(""):E?b.push(x.join("")):b.push(n(x))),y.address=b.join(""),y}function c(g){if(d(g,":")<2)return{host:g,isIPV6:!1};const v=l(g);if(v.error)return{host:g,isIPV6:!1};{let y=v.address,b=v.address;return v.zone&&(y+="%"+v.zone,b+="%25"+v.zone),{host:y,isIPV6:!0,escapedHost:b}}}function d(g,v){let y=0;for(let b=0;b<g.length;b++)g[b]===v&&y++;return y}function f(g){let v=g;const y=[];let b=-1,x=0;for(;x=v.length;){if(x===1){if(v===".")break;if(v==="/"){y.push("/");break}else{y.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]==="/")){y.push("/");break}}else if(x===3&&v==="/.."){y.length!==0&&y.pop(),y.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),y.length!==0&&y.pop();continue}}if((b=v.indexOf("/",1))===-1){y.push(v);break}else y.push(v.slice(0,b)),v=v.slice(b)}return y.join("")}function p(g,v){const y=v!==!0?escape:unescape;return g.scheme!==void 0&&(g.scheme=y(g.scheme)),g.userinfo!==void 0&&(g.userinfo=y(g.userinfo)),g.host!==void 0&&(g.host=y(g.host)),g.path!==void 0&&(g.path=y(g.path)),g.query!==void 0&&(g.query=y(g.query)),g.fragment!==void 0&&(g.fragment=y(g.fragment)),g}function h(g){const v=[];if(g.userinfo!==void 0&&(v.push(g.userinfo),v.push("@")),g.host!==void 0){let y=unescape(g.host);if(!t(y)){const b=c(y);b.isIPV6===!0?y=`[${b.escapedHost}]`:y=g.host}v.push(y)}return(typeof g.port=="number"||typeof g.port=="string")&&(v.push(":"),v.push(String(g.port))),v.length?v.join(""):void 0}return Tb={nonSimpleDomain:r,recomposeAuthority:h,normalizeComponentEncoding:p,removeDotSegments:f,isIPv4:t,isUUID:e,normalizeIPv6:c,stringArrayToHexStripped:n},Tb}var Cb,iM;function xse(){if(iM)return Cb;iM=1;const{isUUID:e}=X6(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,n=["http","https","ws","wss","urn","urn:uuid"];function r(O){return n.indexOf(O)!==-1}function o(O){return O.secure===!0?!0:O.secure===!1?!1:O.scheme?O.scheme.length===3&&(O.scheme[0]==="w"||O.scheme[0]==="W")&&(O.scheme[1]==="s"||O.scheme[1]==="S")&&(O.scheme[2]==="s"||O.scheme[2]==="S"):!1}function s(O){return O.host||(O.error=O.error||"HTTP URIs must have a host."),O}function l(O){const A=String(O.scheme).toLowerCase()==="https";return(O.port===(A?443:80)||O.port==="")&&(O.port=void 0),O.path||(O.path="/"),O}function c(O){return O.secure=o(O),O.resourceName=(O.path||"/")+(O.query?"?"+O.query:""),O.path=void 0,O.query=void 0,O}function d(O){if((O.port===(o(O)?443:80)||O.port==="")&&(O.port=void 0),typeof O.secure=="boolean"&&(O.scheme=O.secure?"wss":"ws",O.secure=void 0),O.resourceName){const[A,I]=O.resourceName.split("?");O.path=A&&A!=="/"?A:void 0,O.query=I,O.resourceName=void 0}return O.fragment=void 0,O}function f(O,A){if(!O.path)return O.error="URN can not be parsed",O;const I=O.path.match(t);if(I){const P=A.scheme||O.scheme||"urn";O.nid=I[1].toLowerCase(),O.nss=I[2];const L=`${P}:${A.nid||O.nid}`,H=R(L);O.path=void 0,H&&(O=H.parse(O,A))}else O.error=O.error||"URN can not be parsed.";return O}function p(O,A){if(O.nid===void 0)throw new Error("URN without nid cannot be serialized");const I=A.scheme||O.scheme||"urn",P=O.nid.toLowerCase(),L=`${I}:${A.nid||P}`,H=R(L);H&&(O=H.serialize(O,A));const j=O,B=O.nss;return j.path=`${P||A.nid}:${B}`,A.skipEscape=!0,j}function h(O,A){const I=O;return I.uuid=I.nss,I.nss=void 0,!A.tolerant&&(!I.uuid||!e(I.uuid))&&(I.error=I.error||"UUID is not valid."),I}function g(O){const A=O;return A.nss=(O.uuid||"").toLowerCase(),A}const v={scheme:"http",domainHost:!0,parse:s,serialize:l},y={scheme:"https",domainHost:v.domainHost,parse:s,serialize:l},b={scheme:"ws",domainHost:!0,parse:c,serialize:d},x={scheme:"wss",domainHost:b.domainHost,parse:b.parse,serialize:b.serialize},T={http:v,https:y,ws:b,wss:x,urn:{scheme:"urn",parse:f,serialize:p,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:h,serialize:g,skipNormalize:!0}};Object.setPrototypeOf(T,null);function R(O){return O&&(T[O]||T[O.toLowerCase()])||void 0}return Cb={wsIsSecure:o,SCHEMES:T,isValidSchemeName:r,getSchemeHandler:R},Cb}var sM;function Rse(){if(sM)return bd.exports;sM=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:n,normalizeComponentEncoding:r,isIPv4:o,nonSimpleDomain:s}=X6(),{SCHEMES:l,getSchemeHandler:c}=xse();function d(x,w){return typeof x=="string"?x=g(y(x,w),w):typeof x=="object"&&(x=y(g(x,w),w)),x}function f(x,w,E){const T=E?Object.assign({scheme:"null"},E):{scheme:"null"},R=p(y(x,T),y(w,T),T,!0);return T.skipEscape=!0,g(R,T)}function p(x,w,E,T){const R={};return T||(x=y(g(x,E),E),w=y(g(w,E),E)),E=E||{},!E.tolerant&&w.scheme?(R.scheme=w.scheme,R.userinfo=w.userinfo,R.host=w.host,R.port=w.port,R.path=t(w.path||""),R.query=w.query):(w.userinfo!==void 0||w.host!==void 0||w.port!==void 0?(R.userinfo=w.userinfo,R.host=w.host,R.port=w.port,R.path=t(w.path||""),R.query=w.query):(w.path?(w.path[0]==="/"?R.path=t(w.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?R.path="/"+w.path:x.path?R.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+w.path:R.path=w.path,R.path=t(R.path)),R.query=w.query):(R.path=x.path,w.query!==void 0?R.query=w.query:R.query=x.query),R.userinfo=x.userinfo,R.host=x.host,R.port=x.port),R.scheme=x.scheme),R.fragment=w.fragment,R}function h(x,w,E){return typeof x=="string"?(x=unescape(x),x=g(r(y(x,E),!0),{...E,skipEscape:!0})):typeof x=="object"&&(x=g(r(x,!0),{...E,skipEscape:!0})),typeof w=="string"?(w=unescape(w),w=g(r(y(w,E),!0),{...E,skipEscape:!0})):typeof w=="object"&&(w=g(r(w,!0),{...E,skipEscape:!0})),x.toLowerCase()===w.toLowerCase()}function g(x,w){const E={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:""},T=Object.assign({},w),R=[],O=c(T.scheme||E.scheme);O&&O.serialize&&O.serialize(E,T),E.path!==void 0&&(T.skipEscape?E.path=unescape(E.path):(E.path=escape(E.path),E.scheme!==void 0&&(E.path=E.path.split("%3A").join(":")))),T.reference!=="suffix"&&E.scheme&&R.push(E.scheme,":");const A=n(E);if(A!==void 0&&(T.reference!=="suffix"&&R.push("//"),R.push(A),E.path&&E.path[0]!=="/"&&R.push("/")),E.path!==void 0){let I=E.path;!T.absolutePath&&(!O||!O.absolutePath)&&(I=t(I)),A===void 0&&I[0]==="/"&&I[1]==="/"&&(I="/%2F"+I.slice(2)),R.push(I)}return E.query!==void 0&&R.push("?",E.query),E.fragment!==void 0&&R.push("#",E.fragment),R.join("")}const v=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function y(x,w){const E=Object.assign({},w),T={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let R=!1;E.reference==="suffix"&&(E.scheme?x=E.scheme+":"+x:x="//"+x);const O=x.match(v);if(O){if(T.scheme=O[1],T.userinfo=O[3],T.host=O[4],T.port=parseInt(O[5],10),T.path=O[6]||"",T.query=O[7],T.fragment=O[8],isNaN(T.port)&&(T.port=O[5]),T.host)if(o(T.host)===!1){const P=e(T.host);T.host=P.host.toLowerCase(),R=P.isIPV6}else R=!0;T.scheme===void 0&&T.userinfo===void 0&&T.host===void 0&&T.port===void 0&&T.query===void 0&&!T.path?T.reference="same-document":T.scheme===void 0?T.reference="relative":T.fragment===void 0?T.reference="absolute":T.reference="uri",E.reference&&E.reference!=="suffix"&&E.reference!==T.reference&&(T.error=T.error||"URI is not a "+E.reference+" reference.");const A=c(E.scheme||T.scheme);if(!E.unicodeSupport&&(!A||!A.unicodeSupport)&&T.host&&(E.domainHost||A&&A.domainHost)&&R===!1&&s(T.host))try{T.host=URL.domainToASCII(T.host.toLowerCase())}catch(I){T.error=T.error||"Host's domain name can not be converted to ASCII: "+I}(!A||A&&!A.skipNormalize)&&(x.indexOf("%")!==-1&&(T.scheme!==void 0&&(T.scheme=unescape(T.scheme)),T.host!==void 0&&(T.host=unescape(T.host))),T.path&&(T.path=escape(unescape(T.path))),T.fragment&&(T.fragment=encodeURI(decodeURIComponent(T.fragment)))),A&&A.parse&&A.parse(T,E)}else T.error=T.error||"URI can not be parsed.";return T}const b={SCHEMES:l,normalize:d,resolve:f,resolveComponent:p,equal:h,serialize:g,parse:y};return bd.exports=b,bd.exports.default=b,bd.exports.fastUri=b,bd.exports}var aM;function Ose(){if(aM)return Pp;aM=1,Object.defineProperty(Pp,"__esModule",{value:!0});const e=Rse();return e.code='require("ajv/dist/runtime/uri").default',Pp.default=e,Pp}var lM;function Tse(){return lM||(lM=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=yv();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var n=_t();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return n.CodeGen}});const r=vE(),o=bv(),s=Y6(),l=_E(),c=_t(),d=_v(),f=Og(),p=kt(),h=Ese,g=Ose(),v=(Q,k)=>new RegExp(Q,k);v.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"],b=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),x={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},w={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},E=200;function T(Q){var k,G,V,D,F,X,fe,pe,xe,je,Y,re,ve,se,Se,Te,tt,rt,Be,Qe,Pe,Me,ze,Z,ne;const ae=Q.strict,Re=(k=Q.code)===null||k===void 0?void 0:k.optimize,Ae=Re===!0||Re===void 0?1:Re||0,Ie=(V=(G=Q.code)===null||G===void 0?void 0:G.regExp)!==null&&V!==void 0?V:v,ke=(D=Q.uriResolver)!==null&&D!==void 0?D:g.default;return{strictSchema:(X=(F=Q.strictSchema)!==null&&F!==void 0?F:ae)!==null&&X!==void 0?X:!0,strictNumbers:(pe=(fe=Q.strictNumbers)!==null&&fe!==void 0?fe:ae)!==null&&pe!==void 0?pe:!0,strictTypes:(je=(xe=Q.strictTypes)!==null&&xe!==void 0?xe:ae)!==null&&je!==void 0?je:"log",strictTuples:(re=(Y=Q.strictTuples)!==null&&Y!==void 0?Y:ae)!==null&&re!==void 0?re:"log",strictRequired:(se=(ve=Q.strictRequired)!==null&&ve!==void 0?ve:ae)!==null&&se!==void 0?se:!1,code:Q.code?{...Q.code,optimize:Ae,regExp:Ie}:{optimize:Ae,regExp:Ie},loopRequired:(Se=Q.loopRequired)!==null&&Se!==void 0?Se:E,loopEnum:(Te=Q.loopEnum)!==null&&Te!==void 0?Te:E,meta:(tt=Q.meta)!==null&&tt!==void 0?tt:!0,messages:(rt=Q.messages)!==null&&rt!==void 0?rt:!0,inlineRefs:(Be=Q.inlineRefs)!==null&&Be!==void 0?Be:!0,schemaId:(Qe=Q.schemaId)!==null&&Qe!==void 0?Qe:"$id",addUsedSchema:(Pe=Q.addUsedSchema)!==null&&Pe!==void 0?Pe:!0,validateSchema:(Me=Q.validateSchema)!==null&&Me!==void 0?Me:!0,validateFormats:(ze=Q.validateFormats)!==null&&ze!==void 0?ze:!0,unicodeRegExp:(Z=Q.unicodeRegExp)!==null&&Z!==void 0?Z:!0,int32range:(ne=Q.int32range)!==null&&ne!==void 0?ne:!0,uriResolver:ke}}class R{constructor(k={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,k=this.opts={...k,...T(k)};const{es5:G,lines:V}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:b,es5:G,lines:V}),this.logger=B(k.logger);const D=k.validateFormats;k.validateFormats=!1,this.RULES=(0,s.getRules)(),O.call(this,x,k,"NOT SUPPORTED"),O.call(this,w,k,"DEPRECATED","warn"),this._metaOpts=H.call(this),k.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),k.keywords&&L.call(this,k.keywords),typeof k.meta=="object"&&this.addMetaSchema(k.meta),I.call(this),k.validateFormats=D}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:k,meta:G,schemaId:V}=this.opts;let D=h;V==="id"&&(D={...h},D.id=D.$id,delete D.$id),G&&k&&this.addMetaSchema(D,D[V],!1)}defaultMeta(){const{meta:k,schemaId:G}=this.opts;return this.opts.defaultMeta=typeof k=="object"?k[G]||k:void 0}validate(k,G){let V;if(typeof k=="string"){if(V=this.getSchema(k),!V)throw new Error(`no schema with key or ref "${k}"`)}else V=this.compile(k);const D=V(G);return"$async"in V||(this.errors=V.errors),D}compile(k,G){const V=this._addSchema(k,G);return V.validate||this._compileSchemaEnv(V)}compileAsync(k,G){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:V}=this.opts;return D.call(this,k,G);async function D(je,Y){await F.call(this,je.$schema);const re=this._addSchema(je,Y);return re.validate||X.call(this,re)}async function F(je){je&&!this.getSchema(je)&&await D.call(this,{$ref:je},!0)}async function X(je){try{return this._compileSchemaEnv(je)}catch(Y){if(!(Y instanceof o.default))throw Y;return fe.call(this,Y),await pe.call(this,Y.missingSchema),X.call(this,je)}}function fe({missingSchema:je,missingRef:Y}){if(this.refs[je])throw new Error(`AnySchema ${je} is loaded but ${Y} cannot be resolved`)}async function pe(je){const Y=await xe.call(this,je);this.refs[je]||await F.call(this,Y.$schema),this.refs[je]||this.addSchema(Y,je,G)}async function xe(je){const Y=this._loading[je];if(Y)return Y;try{return await(this._loading[je]=V(je))}finally{delete this._loading[je]}}}addSchema(k,G,V,D=this.opts.validateSchema){if(Array.isArray(k)){for(const X of k)this.addSchema(X,void 0,V,D);return this}let F;if(typeof k=="object"){const{schemaId:X}=this.opts;if(F=k[X],F!==void 0&&typeof F!="string")throw new Error(`schema ${X} must be string`)}return G=(0,d.normalizeId)(G||F),this._checkUnique(G),this.schemas[G]=this._addSchema(k,V,G,D,!0),this}addMetaSchema(k,G,V=this.opts.validateSchema){return this.addSchema(k,G,!0,V),this}validateSchema(k,G){if(typeof k=="boolean")return!0;let V;if(V=k.$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 D=this.validate(V,k);if(!D&&G){const F="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(F);else throw new Error(F)}return D}getSchema(k){let G;for(;typeof(G=A.call(this,k))=="string";)k=G;if(G===void 0){const{schemaId:V}=this.opts,D=new l.SchemaEnv({schema:{},schemaId:V});if(G=l.resolveSchema.call(this,D,k),!G)return;this.refs[k]=G}return G.validate||this._compileSchemaEnv(G)}removeSchema(k){if(k instanceof RegExp)return this._removeAllSchemas(this.schemas,k),this._removeAllSchemas(this.refs,k),this;switch(typeof k){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const G=A.call(this,k);return typeof G=="object"&&this._cache.delete(G.schema),delete this.schemas[k],delete this.refs[k],this}case"object":{const G=k;this._cache.delete(G);let V=k[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(k){for(const G of k)this.addKeyword(G);return this}addKeyword(k,G){let V;if(typeof k=="string")V=k,typeof G=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),G.keyword=V);else if(typeof k=="object"&&G===void 0){if(G=k,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(K.call(this,V,G),!G)return(0,p.eachItem)(V,F=>oe.call(this,F)),this;W.call(this,G);const D={...G,type:(0,f.getJSONTypes)(G.type),schemaType:(0,f.getJSONTypes)(G.schemaType)};return(0,p.eachItem)(V,D.type.length===0?F=>oe.call(this,F,D):F=>D.type.forEach(X=>oe.call(this,F,D,X))),this}getKeyword(k){const G=this.RULES.all[k];return typeof G=="object"?G.definition:!!G}removeKeyword(k){const{RULES:G}=this;delete G.keywords[k],delete G.all[k];for(const V of G.rules){const D=V.rules.findIndex(F=>F.keyword===k);D>=0&&V.rules.splice(D,1)}return this}addFormat(k,G){return typeof G=="string"&&(G=new RegExp(G)),this.formats[k]=G,this}errorsText(k=this.errors,{separator:G=", ",dataVar:V="data"}={}){return!k||k.length===0?"No errors":k.map(D=>`${V}${D.instancePath} ${D.message}`).reduce((D,F)=>D+G+F)}$dataMetaSchema(k,G){const V=this.RULES.all;k=JSON.parse(JSON.stringify(k));for(const D of G){const F=D.split("/").slice(1);let X=k;for(const fe of F)X=X[fe];for(const fe in V){const pe=V[fe];if(typeof pe!="object")continue;const{$data:xe}=pe.definition,je=X[fe];xe&&je&&(X[fe]=le(je))}}return k}_removeAllSchemas(k,G){for(const V in k){const D=k[V];(!G||G.test(V))&&(typeof D=="string"?delete k[V]:D&&!D.meta&&(this._cache.delete(D.schema),delete k[V]))}}_addSchema(k,G,V,D=this.opts.validateSchema,F=this.opts.addUsedSchema){let X;const{schemaId:fe}=this.opts;if(typeof k=="object")X=k[fe];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof k!="boolean")throw new Error("schema must be object or boolean")}let pe=this._cache.get(k);if(pe!==void 0)return pe;V=(0,d.normalizeId)(X||V);const xe=d.getSchemaRefs.call(this,k,V);return pe=new l.SchemaEnv({schema:k,schemaId:fe,meta:G,baseId:V,localRefs:xe}),this._cache.set(pe.schema,pe),F&&!V.startsWith("#")&&(V&&this._checkUnique(V),this.refs[V]=pe),D&&this.validateSchema(k,!0),pe}_checkUnique(k){if(this.schemas[k]||this.refs[k])throw new Error(`schema with key or id "${k}" already exists`)}_compileSchemaEnv(k){if(k.meta?this._compileMetaSchema(k):l.compileSchema.call(this,k),!k.validate)throw new Error("ajv implementation error");return k.validate}_compileMetaSchema(k){const G=this.opts;this.opts=this._metaOpts;try{l.compileSchema.call(this,k)}finally{this.opts=G}}}R.ValidationError=r.default,R.MissingRefError=o.default,e.default=R;function O(Q,k,G,V="error"){for(const D in Q){const F=D;F in k&&this.logger[V](`${G}: option ${D}. ${Q[F]}`)}}function A(Q){return Q=(0,d.normalizeId)(Q),this.schemas[Q]||this.refs[Q]}function I(){const Q=this.opts.schemas;if(Q)if(Array.isArray(Q))this.addSchema(Q);else for(const k in Q)this.addSchema(Q[k],k)}function P(){for(const Q in this.opts.formats){const k=this.opts.formats[Q];k&&this.addFormat(Q,k)}}function L(Q){if(Array.isArray(Q)){this.addVocabulary(Q);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const k in Q){const G=Q[k];G.keyword||(G.keyword=k),this.addKeyword(G)}}function H(){const Q={...this.opts};for(const k of y)delete Q[k];return Q}const j={log(){},warn(){},error(){}};function B(Q){if(Q===!1)return j;if(Q===void 0)return console;if(Q.log&&Q.warn&&Q.error)return Q;throw new Error("logger must implement log, warn and error methods")}const z=/^[a-z_$][a-z0-9_$:-]*$/i;function K(Q,k){const{RULES:G}=this;if((0,p.eachItem)(Q,V=>{if(G.keywords[V])throw new Error(`Keyword ${V} is already defined`);if(!z.test(V))throw new Error(`Keyword ${V} has invalid name`)}),!!k&&k.$data&&!("code"in k||"validate"in k))throw new Error('$data keyword must have "code" or "validate" function')}function oe(Q,k,G){var V;const D=k?.post;if(G&&D)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:F}=this;let X=D?F.post:F.rules.find(({type:pe})=>pe===G);if(X||(X={type:G,rules:[]},F.rules.push(X)),F.keywords[Q]=!0,!k)return;const fe={keyword:Q,definition:{...k,type:(0,f.getJSONTypes)(k.type),schemaType:(0,f.getJSONTypes)(k.schemaType)}};k.before?q.call(this,X,fe,k.before):X.rules.push(fe),F.all[Q]=fe,(V=k.implements)===null||V===void 0||V.forEach(pe=>this.addKeyword(pe))}function q(Q,k,G){const V=Q.rules.findIndex(D=>D.keyword===G);V>=0?Q.rules.splice(V,0,k):(Q.rules.push(k),this.logger.warn(`rule ${G} is not defined`))}function W(Q){let{metaSchema:k}=Q;k!==void 0&&(Q.$data&&this.opts.$data&&(k=le(k)),Q.validateSchema=this.compile(k,!0))}const te={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function le(Q){return{anyOf:[Q,te]}}})(bb)),bb}var Np={},kp={},Dp={},cM;function Cse(){if(cM)return Dp;cM=1,Object.defineProperty(Dp,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Dp.default=e,Dp}var Ws={},uM;function Ase(){if(uM)return Ws;uM=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.callRef=Ws.getValidate=void 0;const e=bv(),t=li(),n=_t(),r=wa(),o=_E(),s=kt(),l={keyword:"$ref",schemaType:"string",code(f){const{gen:p,schema:h,it:g}=f,{baseId:v,schemaEnv:y,validateName:b,opts:x,self:w}=g,{root:E}=y;if((h==="#"||h==="#/")&&v===E.baseId)return R();const T=o.resolveRef.call(w,E,v,h);if(T===void 0)throw new e.default(g.opts.uriResolver,v,h);if(T instanceof o.SchemaEnv)return O(T);return A(T);function R(){if(y===E)return d(f,b,y,y.$async);const I=p.scopeValue("root",{ref:E});return d(f,(0,n._)`${I}.validate`,E,E.$async)}function O(I){const P=c(f,I);d(f,P,I,I.$async)}function A(I){const P=p.scopeValue("schema",x.code.source===!0?{ref:I,code:(0,n.stringify)(I)}:{ref:I}),L=p.name("valid"),H=f.subschema({schema:I,dataTypes:[],schemaPath:n.nil,topSchemaRef:P,errSchemaPath:h},L);f.mergeEvaluated(H),f.ok(L)}}};function c(f,p){const{gen:h}=f;return p.validate?h.scopeValue("validate",{ref:p.validate}):(0,n._)`${h.scopeValue("wrapper",{ref:p})}.validate`}Ws.getValidate=c;function d(f,p,h,g){const{gen:v,it:y}=f,{allErrors:b,schemaEnv:x,opts:w}=y,E=w.passContext?r.default.this:n.nil;g?T():R();function T(){if(!x.$async)throw new Error("async schema referenced by sync schema");const I=v.let("valid");v.try(()=>{v.code((0,n._)`await ${(0,t.callValidateCode)(f,p,E)}`),A(p),b||v.assign(I,!0)},P=>{v.if((0,n._)`!(${P} instanceof ${y.ValidationError})`,()=>v.throw(P)),O(P),b||v.assign(I,!1)}),f.ok(I)}function R(){f.result((0,t.callValidateCode)(f,p,E),()=>A(p),()=>O(p))}function O(I){const P=(0,n._)`${I}.errors`;v.assign(r.default.vErrors,(0,n._)`${r.default.vErrors} === null ? ${P} : ${r.default.vErrors}.concat(${P})`),v.assign(r.default.errors,(0,n._)`${r.default.vErrors}.length`)}function A(I){var P;if(!y.opts.unevaluated)return;const L=(P=h?.validate)===null||P===void 0?void 0:P.evaluated;if(y.props!==!0)if(L&&!L.dynamicProps)L.props!==void 0&&(y.props=s.mergeEvaluated.props(v,L.props,y.props));else{const H=v.var("props",(0,n._)`${I}.evaluated.props`);y.props=s.mergeEvaluated.props(v,H,y.props,n.Name)}if(y.items!==!0)if(L&&!L.dynamicItems)L.items!==void 0&&(y.items=s.mergeEvaluated.items(v,L.items,y.items));else{const H=v.var("items",(0,n._)`${I}.evaluated.items`);y.items=s.mergeEvaluated.items(v,H,y.items,n.Name)}}}return Ws.callRef=d,Ws.default=l,Ws}var dM;function Ise(){if(dM)return kp;dM=1,Object.defineProperty(kp,"__esModule",{value:!0});const e=Cse(),t=Ase(),n=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return kp.default=n,kp}var Lp={},$p={},fM;function Mse(){if(fM)return $p;fM=1,Object.defineProperty($p,"__esModule",{value:!0});const e=_t(),t=e.operators,n={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}},r={message:({keyword:s,schemaCode:l})=>(0,e.str)`must be ${n[s].okStr} ${l}`,params:({keyword:s,schemaCode:l})=>(0,e._)`{comparison: ${n[s].okStr}, limit: ${l}}`},o={keyword:Object.keys(n),type:"number",schemaType:"number",$data:!0,error:r,code(s){const{keyword:l,data:c,schemaCode:d}=s;s.fail$data((0,e._)`${c} ${n[l].fail} ${d} || isNaN(${c})`)}};return $p.default=o,$p}var jp={},hM;function Pse(){if(hM)return jp;hM=1,Object.defineProperty(jp,"__esModule",{value:!0});const e=_t(),n={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,e._)`{multipleOf: ${r}}`},code(r){const{gen:o,data:s,schemaCode:l,it:c}=r,d=c.opts.multipleOfPrecision,f=o.let("res"),p=d?(0,e._)`Math.abs(Math.round(${f}) - ${f}) > 1e-${d}`:(0,e._)`${f} !== parseInt(${f})`;r.fail$data((0,e._)`(${l} === 0 || (${f} = ${s}/${l}, ${p}))`)}};return jp.default=n,jp}var Up={},zp={},pM;function Nse(){if(pM)return zp;pM=1,Object.defineProperty(zp,"__esModule",{value:!0});function e(t){const n=t.length;let r=0,o=0,s;for(;o<n;)r++,s=t.charCodeAt(o++),s>=55296&&s<=56319&&o<n&&(s=t.charCodeAt(o),(s&64512)===56320&&o++);return r}return zp.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',zp}var mM;function kse(){if(mM)return Up;mM=1,Object.defineProperty(Up,"__esModule",{value:!0});const e=_t(),t=kt(),n=Nse(),o={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:s,schemaCode:l}){const c=s==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${c} than ${l} characters`},params:({schemaCode:s})=>(0,e._)`{limit: ${s}}`},code(s){const{keyword:l,data:c,schemaCode:d,it:f}=s,p=l==="maxLength"?e.operators.GT:e.operators.LT,h=f.opts.unicode===!1?(0,e._)`${c}.length`:(0,e._)`${(0,t.useFunc)(s.gen,n.default)}(${c})`;s.fail$data((0,e._)`${h} ${p} ${d}`)}};return Up.default=o,Up}var Fp={},gM;function Dse(){if(gM)return Fp;gM=1,Object.defineProperty(Fp,"__esModule",{value:!0});const e=li(),t=kt(),n=_t(),o={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:s})=>(0,n.str)`must match pattern "${s}"`,params:({schemaCode:s})=>(0,n._)`{pattern: ${s}}`},code(s){const{gen:l,data:c,$data:d,schema:f,schemaCode:p,it:h}=s,g=h.opts.unicodeRegExp?"u":"";if(d){const{regExp:v}=h.opts.code,y=v.code==="new RegExp"?(0,n._)`new RegExp`:(0,t.useFunc)(l,v),b=l.let("valid");l.try(()=>l.assign(b,(0,n._)`${y}(${p}, ${g}).test(${c})`),()=>l.assign(b,!1)),s.fail$data((0,n._)`!${b}`)}else{const v=(0,e.usePattern)(s,f);s.fail$data((0,n._)`!${v}.test(${c})`)}}};return Fp.default=o,Fp}var Bp={},vM;function Lse(){if(vM)return Bp;vM=1,Object.defineProperty(Bp,"__esModule",{value:!0});const e=_t(),n={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:o}){const s=r==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${o} properties`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:o,data:s,schemaCode:l}=r,c=o==="maxProperties"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`Object.keys(${s}).length ${c} ${l}`)}};return Bp.default=n,Bp}var Vp={},_M;function $se(){if(_M)return Vp;_M=1,Object.defineProperty(Vp,"__esModule",{value:!0});const e=li(),t=_t(),n=kt(),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:s}})=>(0,t.str)`must have required property '${s}'`,params:({params:{missingProperty:s}})=>(0,t._)`{missingProperty: ${s}}`},code(s){const{gen:l,schema:c,schemaCode:d,data:f,$data:p,it:h}=s,{opts:g}=h;if(!p&&c.length===0)return;const v=c.length>=g.loopRequired;if(h.allErrors?y():b(),g.strictRequired){const E=s.parentSchema.properties,{definedProperties:T}=s.it;for(const R of c)if(E?.[R]===void 0&&!T.has(R)){const O=h.schemaEnv.baseId+h.errSchemaPath,A=`required property "${R}" is not defined at "${O}" (strictRequired)`;(0,n.checkStrictMode)(h,A,h.opts.strictRequired)}}function y(){if(v||p)s.block$data(t.nil,x);else for(const E of c)(0,e.checkReportMissingProp)(s,E)}function b(){const E=l.let("missing");if(v||p){const T=l.let("valid",!0);s.block$data(T,()=>w(E,T)),s.ok(T)}else l.if((0,e.checkMissingProp)(s,c,E)),(0,e.reportMissingProp)(s,E),l.else()}function x(){l.forOf("prop",d,E=>{s.setParams({missingProperty:E}),l.if((0,e.noPropertyInData)(l,f,E,g.ownProperties),()=>s.error())})}function w(E,T){s.setParams({missingProperty:E}),l.forOf(E,d,()=>{l.assign(T,(0,e.propertyInData)(l,f,E,g.ownProperties)),l.if((0,t.not)(T),()=>{s.error(),l.break()})},t.nil)}}};return Vp.default=o,Vp}var Hp={},yM;function jse(){if(yM)return Hp;yM=1,Object.defineProperty(Hp,"__esModule",{value:!0});const e=_t(),n={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:o}){const s=r==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${s} than ${o} items`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:o,data:s,schemaCode:l}=r,c=o==="maxItems"?e.operators.GT:e.operators.LT;r.fail$data((0,e._)`${s}.length ${c} ${l}`)}};return Hp.default=n,Hp}var qp={},Gp={},bM;function yE(){if(bM)return Gp;bM=1,Object.defineProperty(Gp,"__esModule",{value:!0});const e=Q6();return e.code='require("ajv/dist/runtime/equal").default',Gp.default=e,Gp}var wM;function Use(){if(wM)return qp;wM=1,Object.defineProperty(qp,"__esModule",{value:!0});const e=Og(),t=_t(),n=kt(),r=yE(),s={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:l,j:c}})=>(0,t.str)`must NOT have duplicate items (items ## ${c} and ${l} are identical)`,params:({params:{i:l,j:c}})=>(0,t._)`{i: ${l}, j: ${c}}`},code(l){const{gen:c,data:d,$data:f,schema:p,parentSchema:h,schemaCode:g,it:v}=l;if(!f&&!p)return;const y=c.let("valid"),b=h.items?(0,e.getSchemaTypes)(h.items):[];l.block$data(y,x,(0,t._)`${g} === false`),l.ok(y);function x(){const R=c.let("i",(0,t._)`${d}.length`),O=c.let("j");l.setParams({i:R,j:O}),c.assign(y,!0),c.if((0,t._)`${R} > 1`,()=>(w()?E:T)(R,O))}function w(){return b.length>0&&!b.some(R=>R==="object"||R==="array")}function E(R,O){const A=c.name("item"),I=(0,e.checkDataTypes)(b,A,v.opts.strictNumbers,e.DataType.Wrong),P=c.const("indices",(0,t._)`{}`);c.for((0,t._)`;${R}--;`,()=>{c.let(A,(0,t._)`${d}[${R}]`),c.if(I,(0,t._)`continue`),b.length>1&&c.if((0,t._)`typeof ${A} == "string"`,(0,t._)`${A} += "_"`),c.if((0,t._)`typeof ${P}[${A}] == "number"`,()=>{c.assign(O,(0,t._)`${P}[${A}]`),l.error(),c.assign(y,!1).break()}).code((0,t._)`${P}[${A}] = ${R}`)})}function T(R,O){const A=(0,n.useFunc)(c,r.default),I=c.name("outer");c.label(I).for((0,t._)`;${R}--;`,()=>c.for((0,t._)`${O} = ${R}; ${O}--;`,()=>c.if((0,t._)`${A}(${d}[${R}], ${d}[${O}])`,()=>{l.error(),c.assign(y,!1).break(I)})))}}};return qp.default=s,qp}var Kp={},SM;function zse(){if(SM)return Kp;SM=1,Object.defineProperty(Kp,"__esModule",{value:!0});const e=_t(),t=kt(),n=yE(),o={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:s})=>(0,e._)`{allowedValue: ${s}}`},code(s){const{gen:l,data:c,$data:d,schemaCode:f,schema:p}=s;d||p&&typeof p=="object"?s.fail$data((0,e._)`!${(0,t.useFunc)(l,n.default)}(${c}, ${f})`):s.fail((0,e._)`${p} !== ${c}`)}};return Kp.default=o,Kp}var Zp={},EM;function Fse(){if(EM)return Zp;EM=1,Object.defineProperty(Zp,"__esModule",{value:!0});const e=_t(),t=kt(),n=yE(),o={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:s})=>(0,e._)`{allowedValues: ${s}}`},code(s){const{gen:l,data:c,$data:d,schema:f,schemaCode:p,it:h}=s;if(!d&&f.length===0)throw new Error("enum must have non-empty array");const g=f.length>=h.opts.loopEnum;let v;const y=()=>v??(v=(0,t.useFunc)(l,n.default));let b;if(g||d)b=l.let("valid"),s.block$data(b,x);else{if(!Array.isArray(f))throw new Error("ajv implementation error");const E=l.const("vSchema",p);b=(0,e.or)(...f.map((T,R)=>w(E,R)))}s.pass(b);function x(){l.assign(b,!1),l.forOf("v",p,E=>l.if((0,e._)`${y()}(${c}, ${E})`,()=>l.assign(b,!0).break()))}function w(E,T){const R=f[T];return typeof R=="object"&&R!==null?(0,e._)`${y()}(${c}, ${E}[${T}])`:(0,e._)`${c} === ${R}`}}};return Zp.default=o,Zp}var xM;function Bse(){if(xM)return Lp;xM=1,Object.defineProperty(Lp,"__esModule",{value:!0});const e=Mse(),t=Pse(),n=kse(),r=Dse(),o=Lse(),s=$se(),l=jse(),c=Use(),d=zse(),f=Fse(),p=[e.default,t.default,n.default,r.default,o.default,s.default,l.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default];return Lp.default=p,Lp}var Yp={},_c={},RM;function J6(){if(RM)return _c;RM=1,Object.defineProperty(_c,"__esModule",{value:!0}),_c.validateAdditionalItems=void 0;const e=_t(),t=kt(),r={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{parentSchema:l,it:c}=s,{items:d}=l;if(!Array.isArray(d)){(0,t.checkStrictMode)(c,'"additionalItems" is ignored when "items" is not an array of schemas');return}o(s,d)}};function o(s,l){const{gen:c,schema:d,data:f,keyword:p,it:h}=s;h.items=!0;const g=c.const("len",(0,e._)`${f}.length`);if(d===!1)s.setParams({len:l.length}),s.pass((0,e._)`${g} <= ${l.length}`);else if(typeof d=="object"&&!(0,t.alwaysValidSchema)(h,d)){const y=c.var("valid",(0,e._)`${g} <= ${l.length}`);c.if((0,e.not)(y),()=>v(y)),s.ok(y)}function v(y){c.forRange("i",l.length,g,b=>{s.subschema({keyword:p,dataProp:b,dataPropType:t.Type.Num},y),h.allErrors||c.if((0,e.not)(y),()=>c.break())})}}return _c.validateAdditionalItems=o,_c.default=r,_c}var Wp={},yc={},OM;function eL(){if(OM)return yc;OM=1,Object.defineProperty(yc,"__esModule",{value:!0}),yc.validateTuple=void 0;const e=_t(),t=kt(),n=li(),r={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(s){const{schema:l,it:c}=s;if(Array.isArray(l))return o(s,"additionalItems",l);c.items=!0,!(0,t.alwaysValidSchema)(c,l)&&s.ok((0,n.validateArray)(s))}};function o(s,l,c=s.schema){const{gen:d,parentSchema:f,data:p,keyword:h,it:g}=s;b(f),g.opts.unevaluated&&c.length&&g.items!==!0&&(g.items=t.mergeEvaluated.items(d,c.length,g.items));const v=d.name("valid"),y=d.const("len",(0,e._)`${p}.length`);c.forEach((x,w)=>{(0,t.alwaysValidSchema)(g,x)||(d.if((0,e._)`${y} > ${w}`,()=>s.subschema({keyword:h,schemaProp:w,dataProp:w},v)),s.ok(v))});function b(x){const{opts:w,errSchemaPath:E}=g,T=c.length,R=T===x.minItems&&(T===x.maxItems||x[l]===!1);if(w.strictTuples&&!R){const O=`"${h}" is ${T}-tuple, but minItems or maxItems/${l} are not specified or different at path "${E}"`;(0,t.checkStrictMode)(g,O,w.strictTuples)}}}return yc.validateTuple=o,yc.default=r,yc}var TM;function Vse(){if(TM)return Wp;TM=1,Object.defineProperty(Wp,"__esModule",{value:!0});const e=eL(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:n=>(0,e.validateTuple)(n,"items")};return Wp.default=t,Wp}var Qp={},CM;function Hse(){if(CM)return Qp;CM=1,Object.defineProperty(Qp,"__esModule",{value:!0});const e=_t(),t=kt(),n=li(),r=J6(),s={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:l}})=>(0,e.str)`must NOT have more than ${l} items`,params:({params:{len:l}})=>(0,e._)`{limit: ${l}}`},code(l){const{schema:c,parentSchema:d,it:f}=l,{prefixItems:p}=d;f.items=!0,!(0,t.alwaysValidSchema)(f,c)&&(p?(0,r.validateAdditionalItems)(l,p):l.ok((0,n.validateArray)(l)))}};return Qp.default=s,Qp}var Xp={},AM;function qse(){if(AM)return Xp;AM=1,Object.defineProperty(Xp,"__esModule",{value:!0});const e=_t(),t=kt(),r={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:o,max:s}})=>s===void 0?(0,e.str)`must contain at least ${o} valid item(s)`:(0,e.str)`must contain at least ${o} and no more than ${s} valid item(s)`,params:({params:{min:o,max:s}})=>s===void 0?(0,e._)`{minContains: ${o}}`:(0,e._)`{minContains: ${o}, maxContains: ${s}}`},code(o){const{gen:s,schema:l,parentSchema:c,data:d,it:f}=o;let p,h;const{minContains:g,maxContains:v}=c;f.opts.next?(p=g===void 0?1:g,h=v):p=1;const y=s.const("len",(0,e._)`${d}.length`);if(o.setParams({min:p,max:h}),h===void 0&&p===0){(0,t.checkStrictMode)(f,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&p>h){(0,t.checkStrictMode)(f,'"minContains" > "maxContains" is always invalid'),o.fail();return}if((0,t.alwaysValidSchema)(f,l)){let T=(0,e._)`${y} >= ${p}`;h!==void 0&&(T=(0,e._)`${T} && ${y} <= ${h}`),o.pass(T);return}f.items=!0;const b=s.name("valid");h===void 0&&p===1?w(b,()=>s.if(b,()=>s.break())):p===0?(s.let(b,!0),h!==void 0&&s.if((0,e._)`${d}.length > 0`,x)):(s.let(b,!1),x()),o.result(b,()=>o.reset());function x(){const T=s.name("_valid"),R=s.let("count",0);w(T,()=>s.if(T,()=>E(R)))}function w(T,R){s.forRange("i",0,y,O=>{o.subschema({keyword:"contains",dataProp:O,dataPropType:t.Type.Num,compositeRule:!0},T),R()})}function E(T){s.code((0,e._)`${T}++`),h===void 0?s.if((0,e._)`${T} >= ${p}`,()=>s.assign(b,!0).break()):(s.if((0,e._)`${T} > ${h}`,()=>s.assign(b,!1).break()),p===1?s.assign(b,!0):s.if((0,e._)`${T} >= ${p}`,()=>s.assign(b,!0)))}}};return Xp.default=r,Xp}var Ab={},IM;function Gse(){return IM||(IM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=_t(),n=kt(),r=li();e.error={message:({params:{property:d,depsCount:f,deps:p}})=>{const h=f===1?"property":"properties";return(0,t.str)`must have ${h} ${p} when property ${d} is present`},params:({params:{property:d,depsCount:f,deps:p,missingProperty:h}})=>(0,t._)`{property: ${d},
161
161
  missingProperty: ${h},
162
162
  depsCount: ${f},
163
- deps: ${p}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(d){const[f,p]=s(d);l(d,f),c(d,p)}};function s({schema:d}){const f={},p={};for(const h in d){if(h==="__proto__")continue;const g=Array.isArray(d[h])?f:p;g[h]=d[h]}return[f,p]}function l(d,f=d.schema){const{gen:p,data:h,it:g}=d;if(Object.keys(f).length===0)return;const v=p.let("missing");for(const y in f){const b=f[y];if(b.length===0)continue;const x=(0,r.propertyInData)(p,h,y,g.opts.ownProperties);d.setParams({property:y,depsCount:b.length,deps:b.join(", ")}),g.allErrors?p.if(x,()=>{for(const w of b)(0,r.checkReportMissingProp)(d,w)}):(p.if((0,t._)`${x} && (${(0,r.checkMissingProp)(d,b,v)})`),(0,r.reportMissingProp)(d,v),p.else())}}e.validatePropertyDeps=l;function c(d,f=d.schema){const{gen:p,data:h,keyword:g,it:v}=d,y=p.name("valid");for(const b in f)(0,n.alwaysValidSchema)(v,f[b])||(p.if((0,r.propertyInData)(p,h,b,v.opts.ownProperties),()=>{const x=d.subschema({keyword:g,schemaProp:b},y);d.mergeValidEvaluated(x,y)},()=>p.var(y,!0)),d.ok(y))}e.validateSchemaDeps=c,e.default=o})(Ab)),Ab}var Jp={},MM;function Kse(){if(MM)return Jp;MM=1,Object.defineProperty(Jp,"__esModule",{value:!0});const e=_t(),t=kt(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:o})=>(0,e._)`{propertyName: ${o.propertyName}}`},code(o){const{gen:s,schema:l,data:c,it:d}=o;if((0,t.alwaysValidSchema)(d,l))return;const f=s.name("valid");s.forIn("key",c,p=>{o.setParams({propertyName:p}),o.subschema({keyword:"propertyNames",data:p,dataTypes:["string"],propertyName:p,compositeRule:!0},f),s.if((0,e.not)(f),()=>{o.error(!0),d.allErrors||s.break()})}),o.ok(f)}};return Jp.default=r,Jp}var em={},PM;function tL(){if(PM)return em;PM=1,Object.defineProperty(em,"__esModule",{value:!0});const e=li(),t=_t(),n=wa(),r=kt(),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:l})=>(0,t._)`{additionalProperty: ${l.additionalProperty}}`},code(l){const{gen:c,schema:d,parentSchema:f,data:p,errsCount:h,it:g}=l;if(!h)throw new Error("ajv implementation error");const{allErrors:v,opts:y}=g;if(g.props=!0,y.removeAdditional!=="all"&&(0,r.alwaysValidSchema)(g,d))return;const b=(0,e.allSchemaProperties)(f.properties),x=(0,e.allSchemaProperties)(f.patternProperties);w(),l.ok((0,t._)`${h} === ${n.default.errors}`);function w(){c.forIn("key",p,A=>{!b.length&&!x.length?R(A):c.if(E(A),()=>R(A))})}function E(A){let I;if(b.length>8){const P=(0,r.schemaRefOrVal)(g,f.properties,"properties");I=(0,e.isOwnProperty)(c,P,A)}else b.length?I=(0,t.or)(...b.map(P=>(0,t._)`${A} === ${P}`)):I=t.nil;return x.length&&(I=(0,t.or)(I,...x.map(P=>(0,t._)`${(0,e.usePattern)(l,P)}.test(${A})`))),(0,t.not)(I)}function T(A){c.code((0,t._)`delete ${p}[${A}]`)}function R(A){if(y.removeAdditional==="all"||y.removeAdditional&&d===!1){T(A);return}if(d===!1){l.setParams({additionalProperty:A}),l.error(),v||c.break();return}if(typeof d=="object"&&!(0,r.alwaysValidSchema)(g,d)){const I=c.name("valid");y.removeAdditional==="failing"?(O(A,I,!1),c.if((0,t.not)(I),()=>{l.reset(),T(A)})):(O(A,I),v||c.if((0,t.not)(I),()=>c.break()))}}function O(A,I,P){const L={keyword:"additionalProperties",dataProp:A,dataPropType:r.Type.Str};P===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),l.subschema(L,I)}}};return em.default=s,em}var tm={},NM;function Zse(){if(NM)return tm;NM=1,Object.defineProperty(tm,"__esModule",{value:!0});const e=yv(),t=li(),n=kt(),r=tL(),o={keyword:"properties",type:"object",schemaType:"object",code(s){const{gen:l,schema:c,parentSchema:d,data:f,it:p}=s;p.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&r.default.code(new e.KeywordCxt(p,r.default,"additionalProperties"));const h=(0,t.allSchemaProperties)(c);for(const x of h)p.definedProperties.add(x);p.opts.unevaluated&&h.length&&p.props!==!0&&(p.props=n.mergeEvaluated.props(l,(0,n.toHash)(h),p.props));const g=h.filter(x=>!(0,n.alwaysValidSchema)(p,c[x]));if(g.length===0)return;const v=l.name("valid");for(const x of g)y(x)?b(x):(l.if((0,t.propertyInData)(l,f,x,p.opts.ownProperties)),b(x),p.allErrors||l.else().var(v,!0),l.endIf()),s.it.definedProperties.add(x),s.ok(v);function y(x){return p.opts.useDefaults&&!p.compositeRule&&c[x].default!==void 0}function b(x){s.subschema({keyword:"properties",schemaProp:x,dataProp:x},v)}}};return tm.default=o,tm}var nm={},kM;function Yse(){if(kM)return nm;kM=1,Object.defineProperty(nm,"__esModule",{value:!0});const e=li(),t=_t(),n=kt(),r=kt(),o={keyword:"patternProperties",type:"object",schemaType:"object",code(s){const{gen:l,schema:c,data:d,parentSchema:f,it:p}=s,{opts:h}=p,g=(0,e.allSchemaProperties)(c),v=g.filter(R=>(0,n.alwaysValidSchema)(p,c[R]));if(g.length===0||v.length===g.length&&(!p.opts.unevaluated||p.props===!0))return;const y=h.strictSchema&&!h.allowMatchingProperties&&f.properties,b=l.name("valid");p.props!==!0&&!(p.props instanceof t.Name)&&(p.props=(0,r.evaluatedPropsToName)(l,p.props));const{props:x}=p;w();function w(){for(const R of g)y&&E(R),p.allErrors?T(R):(l.var(b,!0),T(R),l.if(b))}function E(R){for(const O in y)new RegExp(R).test(O)&&(0,n.checkStrictMode)(p,`property ${O} matches pattern ${R} (use allowMatchingProperties)`)}function T(R){l.forIn("key",d,O=>{l.if((0,t._)`${(0,e.usePattern)(s,R)}.test(${O})`,()=>{const A=v.includes(R);A||s.subschema({keyword:"patternProperties",schemaProp:R,dataProp:O,dataPropType:r.Type.Str},b),p.opts.unevaluated&&x!==!0?l.assign((0,t._)`${x}[${O}]`,!0):!A&&!p.allErrors&&l.if((0,t.not)(b),()=>l.break())})})}}};return nm.default=o,nm}var rm={},DM;function Wse(){if(DM)return rm;DM=1,Object.defineProperty(rm,"__esModule",{value:!0});const e=kt(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(n){const{gen:r,schema:o,it:s}=n;if((0,e.alwaysValidSchema)(s,o)){n.fail();return}const l=r.name("valid");n.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),n.failResult(l,()=>n.reset(),()=>n.error())},error:{message:"must NOT be valid"}};return rm.default=t,rm}var om={},LM;function Qse(){if(LM)return om;LM=1,Object.defineProperty(om,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:li().validateUnion,error:{message:"must match a schema in anyOf"}};return om.default=t,om}var im={},$M;function Xse(){if($M)return im;$M=1,Object.defineProperty(im,"__esModule",{value:!0});const e=_t(),t=kt(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:o})=>(0,e._)`{passingSchemas: ${o.passing}}`},code(o){const{gen:s,schema:l,parentSchema:c,it:d}=o;if(!Array.isArray(l))throw new Error("ajv implementation error");if(d.opts.discriminator&&c.discriminator)return;const f=l,p=s.let("valid",!1),h=s.let("passing",null),g=s.name("_valid");o.setParams({passing:h}),s.block(v),o.result(p,()=>o.reset(),()=>o.error(!0));function v(){f.forEach((y,b)=>{let x;(0,t.alwaysValidSchema)(d,y)?s.var(g,!0):x=o.subschema({keyword:"oneOf",schemaProp:b,compositeRule:!0},g),b>0&&s.if((0,e._)`${g} && ${p}`).assign(p,!1).assign(h,(0,e._)`[${h}, ${b}]`).else(),s.if(g,()=>{s.assign(p,!0),s.assign(h,b),x&&o.mergeEvaluated(x,e.Name)})})}}};return im.default=r,im}var sm={},jM;function Jse(){if(jM)return sm;jM=1,Object.defineProperty(sm,"__esModule",{value:!0});const e=kt(),t={keyword:"allOf",schemaType:"array",code(n){const{gen:r,schema:o,it:s}=n;if(!Array.isArray(o))throw new Error("ajv implementation error");const l=r.name("valid");o.forEach((c,d)=>{if((0,e.alwaysValidSchema)(s,c))return;const f=n.subschema({keyword:"allOf",schemaProp:d},l);n.ok(l),n.mergeEvaluated(f)})}};return sm.default=t,sm}var am={},UM;function eae(){if(UM)return am;UM=1,Object.defineProperty(am,"__esModule",{value:!0});const e=_t(),t=kt(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:s})=>(0,e.str)`must match "${s.ifClause}" schema`,params:({params:s})=>(0,e._)`{failingKeyword: ${s.ifClause}}`},code(s){const{gen:l,parentSchema:c,it:d}=s;c.then===void 0&&c.else===void 0&&(0,t.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const f=o(d,"then"),p=o(d,"else");if(!f&&!p)return;const h=l.let("valid",!0),g=l.name("_valid");if(v(),s.reset(),f&&p){const b=l.let("ifClause");s.setParams({ifClause:b}),l.if(g,y("then",b),y("else",b))}else f?l.if(g,y("then")):l.if((0,e.not)(g),y("else"));s.pass(h,()=>s.error(!0));function v(){const b=s.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},g);s.mergeEvaluated(b)}function y(b,x){return()=>{const w=s.subschema({keyword:b},g);l.assign(h,g),s.mergeValidEvaluated(w,h),x?l.assign(x,(0,e._)`${b}`):s.setParams({ifClause:b})}}}};function o(s,l){const c=s.schema[l];return c!==void 0&&!(0,t.alwaysValidSchema)(s,c)}return am.default=r,am}var lm={},zM;function tae(){if(zM)return lm;zM=1,Object.defineProperty(lm,"__esModule",{value:!0});const e=kt(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:n,parentSchema:r,it:o}){r.if===void 0&&(0,e.checkStrictMode)(o,`"${n}" without "if" is ignored`)}};return lm.default=t,lm}var FM;function nae(){if(FM)return Yp;FM=1,Object.defineProperty(Yp,"__esModule",{value:!0});const e=J6(),t=Vse(),n=eL(),r=Hse(),o=qse(),s=Gse(),l=Kse(),c=tL(),d=Zse(),f=Yse(),p=Wse(),h=Qse(),g=Xse(),v=Jse(),y=eae(),b=tae();function x(w=!1){const E=[p.default,h.default,g.default,v.default,y.default,b.default,l.default,c.default,s.default,d.default,f.default];return w?E.push(t.default,r.default):E.push(e.default,n.default),E.push(o.default),E}return Yp.default=x,Yp}var cm={},um={},BM;function rae(){if(BM)return um;BM=1,Object.defineProperty(um,"__esModule",{value:!0});const e=_t(),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,e._)`{format: ${r}}`},code(r,o){const{gen:s,data:l,$data:c,schema:d,schemaCode:f,it:p}=r,{opts:h,errSchemaPath:g,schemaEnv:v,self:y}=p;if(!h.validateFormats)return;c?b():x();function b(){const w=s.scopeValue("formats",{ref:y.formats,code:h.code.formats}),E=s.const("fDef",(0,e._)`${w}[${f}]`),T=s.let("fType"),R=s.let("format");s.if((0,e._)`typeof ${E} == "object" && !(${E} instanceof RegExp)`,()=>s.assign(T,(0,e._)`${E}.type || "string"`).assign(R,(0,e._)`${E}.validate`),()=>s.assign(T,(0,e._)`"string"`).assign(R,E)),r.fail$data((0,e.or)(O(),A()));function O(){return h.strictSchema===!1?e.nil:(0,e._)`${f} && !${R}`}function A(){const I=v.$async?(0,e._)`(${E}.async ? await ${R}(${l}) : ${R}(${l}))`:(0,e._)`${R}(${l})`,P=(0,e._)`(typeof ${R} == "function" ? ${I} : ${R}.test(${l}))`;return(0,e._)`${R} && ${R} !== true && ${T} === ${o} && !${P}`}}function x(){const w=y.formats[d];if(!w){O();return}if(w===!0)return;const[E,T,R]=A(w);E===o&&r.pass(I());function O(){if(h.strictSchema===!1){y.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${d}" ignored in schema at path "${g}"`}}function A(P){const L=P instanceof RegExp?(0,e.regexpCode)(P):h.code.formats?(0,e._)`${h.code.formats}${(0,e.getProperty)(d)}`:void 0,H=s.scopeValue("formats",{key:d,ref:P,code:L});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,e._)`${H}.validate`]:["string",P,H]}function I(){if(typeof w=="object"&&!(w instanceof RegExp)&&w.async){if(!v.$async)throw new Error("async format in sync schema");return(0,e._)`await ${R}(${l})`}return typeof T=="function"?(0,e._)`${R}(${l})`:(0,e._)`${R}.test(${l})`}}}};return um.default=n,um}var VM;function oae(){if(VM)return cm;VM=1,Object.defineProperty(cm,"__esModule",{value:!0});const t=[rae().default];return cm.default=t,cm}var Ya={},HM;function iae(){return HM||(HM=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.contentVocabulary=Ya.metadataVocabulary=void 0,Ya.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Ya.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Ya}var qM;function sae(){if(qM)return Np;qM=1,Object.defineProperty(Np,"__esModule",{value:!0});const e=Ise(),t=Bse(),n=nae(),r=oae(),o=iae(),s=[e.default,t.default,(0,n.default)(),r.default,o.metadataVocabulary,o.contentVocabulary];return Np.default=s,Np}var dm={},wd={},GM;function aae(){if(GM)return wd;GM=1,Object.defineProperty(wd,"__esModule",{value:!0}),wd.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(wd.DiscrError=e={})),wd}var KM;function lae(){if(KM)return dm;KM=1,Object.defineProperty(dm,"__esModule",{value:!0});const e=_t(),t=aae(),n=_E(),r=bv(),o=kt(),l={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:f}})=>(0,e._)`{error: ${c}, tag: ${f}, tagValue: ${d}}`},code(c){const{gen:d,data:f,schema:p,parentSchema:h,it:g}=c,{oneOf:v}=h;if(!g.opts.discriminator)throw new Error("discriminator: requires discriminator option");const y=p.propertyName;if(typeof y!="string")throw new Error("discriminator: requires propertyName");if(p.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const b=d.let("valid",!1),x=d.const("tag",(0,e._)`${f}${(0,e.getProperty)(y)}`);d.if((0,e._)`typeof ${x} == "string"`,()=>w(),()=>c.error(!1,{discrError:t.DiscrError.Tag,tag:x,tagName:y})),c.ok(b);function w(){const R=T();d.if(!1);for(const O in R)d.elseIf((0,e._)`${x} === ${O}`),d.assign(b,E(R[O]));d.else(),c.error(!1,{discrError:t.DiscrError.Mapping,tag:x,tagName:y}),d.endIf()}function E(R){const O=d.name("valid"),A=c.subschema({keyword:"oneOf",schemaProp:R},O);return c.mergeEvaluated(A,e.Name),O}function T(){var R;const O={},A=P(h);let I=!0;for(let j=0;j<v.length;j++){let B=v[j];if(B?.$ref&&!(0,o.schemaHasRulesButRef)(B,g.self.RULES)){const K=B.$ref;if(B=n.resolveRef.call(g.self,g.schemaEnv.root,g.baseId,K),B instanceof n.SchemaEnv&&(B=B.schema),B===void 0)throw new r.default(g.opts.uriResolver,g.baseId,K)}const z=(R=B?.properties)===null||R===void 0?void 0:R[y];if(typeof z!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${y}"`);I=I&&(A||P(B)),L(z,j)}if(!I)throw new Error(`discriminator: "${y}" must be required`);return O;function P({required:j}){return Array.isArray(j)&&j.includes(y)}function L(j,B){if(j.const)H(j.const,B);else if(j.enum)for(const z of j.enum)H(z,B);else throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`)}function H(j,B){if(typeof j!="string"||j in O)throw new Error(`discriminator: "${y}" values must be unique strings`);O[j]=B}}}};return dm.default=l,dm}const cae="http://json-schema.org/draft-07/schema#",uae="http://json-schema.org/draft-07/schema#",dae="Core schema meta-schema",fae={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:[]}},hae=["object","boolean"],pae={$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:"#"}},mae={$schema:cae,$id:uae,title:dae,definitions:fae,type:hae,properties:pae,default:!0};var ZM;function gae(){return ZM||(ZM=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 n=Tse(),r=sae(),o=lae(),s=mae,l=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const y=this.opts.$data?this.$dataMetaSchema(s,l):s;this.addMetaSchema(y,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=d,e.exports=t=d,e.exports.Ajv=d,Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var f=yv();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return f.KeywordCxt}});var p=_t();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var h=vE();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var g=bv();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return g.default}})})(Cp,Cp.exports)),Cp.exports}var fm={exports:{}},Ib={},YM;function vae(){return YM||(YM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(j,B){return{validate:j,compare:B}}e.fullFormats={date:t(s,l),time:t(d(!0),f),"date-time":t(g(!0),v),"iso-time":t(d(),p),"iso-date-time":t(g(),y),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:w,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:H,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:T,int32:{type:"number",validate:A},int64:{type:"number",validate:I},float:{type:"number",validate:P},double:{type:"number",validate:P},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,l),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),"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,p),"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,y),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(j){return j%4===0&&(j%100!==0||j%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(j){const B=r.exec(j);if(!B)return!1;const z=+B[1],K=+B[2],oe=+B[3];return K>=1&&K<=12&&oe>=1&&oe<=(K===2&&n(z)?29:o[K])}function l(j,B){if(j&&B)return j>B?1:j<B?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(j){return function(z){const K=c.exec(z);if(!K)return!1;const oe=+K[1],q=+K[2],W=+K[3],te=K[4],le=K[5]==="-"?-1:1,Q=+(K[6]||0),k=+(K[7]||0);if(Q>23||k>59||j&&!te)return!1;if(oe<=23&&q<=59&&W<60)return!0;const G=q-k*le,V=oe-Q*le-(G<0?1:0);return(V===23||V===-1)&&(G===59||G===-1)&&W<61}}function f(j,B){if(!(j&&B))return;const z=new Date("2020-01-01T"+j).valueOf(),K=new Date("2020-01-01T"+B).valueOf();if(z&&K)return z-K}function p(j,B){if(!(j&&B))return;const z=c.exec(j),K=c.exec(B);if(z&&K)return j=z[1]+z[2]+z[3],B=K[1]+K[2]+K[3],j>B?1:j<B?-1:0}const h=/t|\s/i;function g(j){const B=d(j);return function(K){const oe=K.split(h);return oe.length===2&&s(oe[0])&&B(oe[1])}}function v(j,B){if(!(j&&B))return;const z=new Date(j).valueOf(),K=new Date(B).valueOf();if(z&&K)return z-K}function y(j,B){if(!(j&&B))return;const[z,K]=j.split(h),[oe,q]=B.split(h),W=l(z,oe);if(W!==void 0)return W||f(K,q)}const b=/\/|:/,x=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function w(j){return b.test(j)&&x.test(j)}const E=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function T(j){return E.lastIndex=0,E.test(j)}const R=-2147483648,O=2**31-1;function A(j){return Number.isInteger(j)&&j<=O&&j>=R}function I(j){return Number.isInteger(j)}function P(){return!0}const L=/[^\\]\\Z/;function H(j){if(L.test(j))return!1;try{return new RegExp(j),!0}catch{return!1}}})(Ib)),Ib}var Mb={},WM;function _ae(){return WM||(WM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=gae(),n=_t(),r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},s={message:({keyword:c,schemaCode:d})=>(0,n.str)`should be ${o[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,n._)`{comparison: ${o[c].okStr}, limit: ${d}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:s,code(c){const{gen:d,data:f,schemaCode:p,keyword:h,it:g}=c,{opts:v,self:y}=g;if(!v.validateFormats)return;const b=new t.KeywordCxt(g,y.RULES.all.format.definition,"format");b.$data?x():w();function x(){const T=d.scopeValue("formats",{ref:y.formats,code:v.code.formats}),R=d.const("fmt",(0,n._)`${T}[${b.schemaCode}]`);c.fail$data((0,n.or)((0,n._)`typeof ${R} != "object"`,(0,n._)`${R} instanceof RegExp`,(0,n._)`typeof ${R}.compare != "function"`,E(R)))}function w(){const T=b.schema,R=y.formats[T];if(!R||R===!0)return;if(typeof R!="object"||R instanceof RegExp||typeof R.compare!="function")throw new Error(`"${h}": format "${T}" does not define "compare" function`);const O=d.scopeValue("formats",{key:T,ref:R,code:v.code.formats?(0,n._)`${v.code.formats}${(0,n.getProperty)(T)}`:void 0});c.fail$data(E(O))}function E(T){return(0,n._)`${T}.compare(${f}, ${p}) ${o[h].fail} 0`}},dependencies:["format"]};const l=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=l})(Mb)),Mb}var QM;function yae(){return QM||(QM=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=vae(),r=_ae(),o=_t(),s=new o.Name("fullFormats"),l=new o.Name("fastFormats"),c=(f,p={keywords:!0})=>{if(Array.isArray(p))return d(f,p,n.fullFormats,s),f;const[h,g]=p.mode==="fast"?[n.fastFormats,l]:[n.fullFormats,s],v=p.formats||n.formatNames;return d(f,v,h,g),p.keywords&&(0,r.default)(f),f};c.get=(f,p="full")=>{const g=(p==="fast"?n.fastFormats:n.fullFormats)[f];if(!g)throw new Error(`Unknown format "${f}"`);return g};function d(f,p,h,g){var v,y;(v=(y=f.opts.code).formats)!==null&&v!==void 0||(y.formats=(0,o._)`require("ajv-formats/dist/formats").${g}`);for(const b of p)f.addFormat(b,h[b])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(fm,fm.exports)),fm.exports}var bae=yae();const hde=ma(bae);let bE;bE=globalThis.crypto;async function wae(e){return(await bE).getRandomValues(new Uint8Array(e))}async function Sae(e){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",n=Math.pow(2,8)-Math.pow(2,8)%t.length;let r="";for(;r.length<e;){const o=await wae(e-r.length);for(const s of o)s<n&&(r+=t[s%t.length])}return r}async function Eae(e){return await Sae(e)}async function xae(e){const t=await(await bE).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Rae(e){if(e||(e=43),e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;const t=await Eae(e),n=await xae(t);return{code_verifier:t,code_challenge:n}}const vr=ZB().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:VV.custom,message:"URL must be parseable",fatal:!0}),KU}).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"}),Oae=_r({resource:$().url(),authorization_servers:Oe(vr).optional(),jwks_uri:$().url().optional(),scopes_supported:Oe($()).optional(),bearer_methods_supported:Oe($()).optional(),resource_signing_alg_values_supported:Oe($()).optional(),resource_name:$().optional(),resource_documentation:$().optional(),resource_policy_uri:$().url().optional(),resource_tos_uri:$().url().optional(),tls_client_certificate_bound_access_tokens:Nt().optional(),authorization_details_types_supported:Oe($()).optional(),dpop_signing_alg_values_supported:Oe($()).optional(),dpop_bound_access_tokens_required:Nt().optional()}),nL=_r({issuer:$(),authorization_endpoint:vr,token_endpoint:vr,registration_endpoint:vr.optional(),scopes_supported:Oe($()).optional(),response_types_supported:Oe($()),response_modes_supported:Oe($()).optional(),grant_types_supported:Oe($()).optional(),token_endpoint_auth_methods_supported:Oe($()).optional(),token_endpoint_auth_signing_alg_values_supported:Oe($()).optional(),service_documentation:vr.optional(),revocation_endpoint:vr.optional(),revocation_endpoint_auth_methods_supported:Oe($()).optional(),revocation_endpoint_auth_signing_alg_values_supported:Oe($()).optional(),introspection_endpoint:$().optional(),introspection_endpoint_auth_methods_supported:Oe($()).optional(),introspection_endpoint_auth_signing_alg_values_supported:Oe($()).optional(),code_challenge_methods_supported:Oe($()).optional(),client_id_metadata_document_supported:Nt().optional()}),Tae=_r({issuer:$(),authorization_endpoint:vr,token_endpoint:vr,userinfo_endpoint:vr.optional(),jwks_uri:vr,registration_endpoint:vr.optional(),scopes_supported:Oe($()).optional(),response_types_supported:Oe($()),response_modes_supported:Oe($()).optional(),grant_types_supported:Oe($()).optional(),acr_values_supported:Oe($()).optional(),subject_types_supported:Oe($()),id_token_signing_alg_values_supported:Oe($()),id_token_encryption_alg_values_supported:Oe($()).optional(),id_token_encryption_enc_values_supported:Oe($()).optional(),userinfo_signing_alg_values_supported:Oe($()).optional(),userinfo_encryption_alg_values_supported:Oe($()).optional(),userinfo_encryption_enc_values_supported:Oe($()).optional(),request_object_signing_alg_values_supported:Oe($()).optional(),request_object_encryption_alg_values_supported:Oe($()).optional(),request_object_encryption_enc_values_supported:Oe($()).optional(),token_endpoint_auth_methods_supported:Oe($()).optional(),token_endpoint_auth_signing_alg_values_supported:Oe($()).optional(),display_values_supported:Oe($()).optional(),claim_types_supported:Oe($()).optional(),claims_supported:Oe($()).optional(),service_documentation:$().optional(),claims_locales_supported:Oe($()).optional(),ui_locales_supported:Oe($()).optional(),claims_parameter_supported:Nt().optional(),request_parameter_supported:Nt().optional(),request_uri_parameter_supported:Nt().optional(),require_request_uri_registration:Nt().optional(),op_policy_uri:vr.optional(),op_tos_uri:vr.optional(),client_id_metadata_document_supported:Nt().optional()}),Cae=be({...Tae.shape,...nL.pick({code_challenge_methods_supported:!0}).shape}),Aae=be({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:dN().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),Iae=be({error:$(),error_description:$().optional(),error_uri:$().optional()}),XM=vr.optional().or(Ge("").transform(()=>{})),Mae=be({redirect_uris:Oe(vr),token_endpoint_auth_method:$().optional(),grant_types:Oe($()).optional(),response_types:Oe($()).optional(),client_name:$().optional(),client_uri:vr.optional(),logo_uri:XM,scope:$().optional(),contacts:Oe($()).optional(),tos_uri:XM,policy_uri:$().optional(),jwks_uri:vr.optional(),jwks:mV().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),Pae=be({client_id:$(),client_secret:$().optional(),client_id_issued_at:ht().optional(),client_secret_expires_at:ht().optional()}).strip(),Nae=Mae.merge(Pae);be({error:$(),error_description:$().optional()}).strip();be({token:$(),token_type_hint:$().optional()}).strip();function kae(e){const t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function Dae({requestedResource:e,configuredResource:t}){const n=typeof e=="string"?new URL(e):new URL(e.href),r=typeof t=="string"?new URL(t):new URL(t.href);if(n.origin!==r.origin||n.pathname.length<r.pathname.length)return!1;const o=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",s=r.pathname.endsWith("/")?r.pathname:r.pathname+"/";return o.startsWith(s)}class sr extends Error{constructor(t,n){super(t),this.errorUri=n,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 pw extends sr{}pw.errorCode="invalid_request";class Tg extends sr{}Tg.errorCode="invalid_client";class Cg extends sr{}Cg.errorCode="invalid_grant";class Ag extends sr{}Ag.errorCode="unauthorized_client";class mw extends sr{}mw.errorCode="unsupported_grant_type";class gw extends sr{}gw.errorCode="invalid_scope";class vw extends sr{}vw.errorCode="access_denied";class Jc extends sr{}Jc.errorCode="server_error";class _w extends sr{}_w.errorCode="temporarily_unavailable";class yw extends sr{}yw.errorCode="unsupported_response_type";class bw extends sr{}bw.errorCode="unsupported_token_type";class ww extends sr{}ww.errorCode="invalid_token";class Sw extends sr{}Sw.errorCode="method_not_allowed";class Ew extends sr{}Ew.errorCode="too_many_requests";class Ig extends sr{}Ig.errorCode="invalid_client_metadata";class xw extends sr{}xw.errorCode="insufficient_scope";class Rw extends sr{}Rw.errorCode="invalid_target";const Lae={[pw.errorCode]:pw,[Tg.errorCode]:Tg,[Cg.errorCode]:Cg,[Ag.errorCode]:Ag,[mw.errorCode]:mw,[gw.errorCode]:gw,[vw.errorCode]:vw,[Jc.errorCode]:Jc,[_w.errorCode]:_w,[yw.errorCode]:yw,[bw.errorCode]:bw,[ww.errorCode]:ww,[Sw.errorCode]:Sw,[Ew.errorCode]:Ew,[Ig.errorCode]:Ig,[xw.errorCode]:xw,[Rw.errorCode]:Rw};class pde extends Error{constructor(t){super(t??"Unauthorized")}}function $ae(e){return["client_secret_basic","client_secret_post","none"].includes(e)}const Pb="code",Nb="S256";function jae(e,t){const n=e.client_secret!==void 0;return"token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&$ae(e.token_endpoint_auth_method)&&(t.length===0||t.includes(e.token_endpoint_auth_method))?e.token_endpoint_auth_method:t.length===0?n?"client_secret_basic":"none":n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function Uae(e,t,n,r){const{client_id:o,client_secret:s}=t;switch(e){case"client_secret_basic":zae(o,s,n);return;case"client_secret_post":Fae(o,s,r);return;case"none":Bae(o,r);return;default:throw new Error(`Unsupported client authentication method: ${e}`)}}function zae(e,t,n){if(!t)throw new Error("client_secret_basic authentication requires a client_secret");const r=btoa(`${e}:${t}`);n.set("Authorization",`Basic ${r}`)}function Fae(e,t,n){n.set("client_id",e),t&&n.set("client_secret",t)}function Bae(e,t){t.set("client_id",e)}async function rL(e){const t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{const r=Iae.parse(JSON.parse(n)),{error:o,error_description:s,error_uri:l}=r,c=Lae[o]||Jc;return new c(s||"",l)}catch(r){const o=`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${r}. Raw body: ${n}`;return new Jc(o)}}async function Vae(e,t){try{return await kb(e,t)}catch(n){if(n instanceof Tg||n instanceof Ag)return await e.invalidateCredentials?.("all"),await kb(e,t);if(n instanceof Cg)return await e.invalidateCredentials?.("tokens"),await kb(e,t);throw n}}async function kb(e,{serverUrl:t,authorizationCode:n,scope:r,resourceMetadataUrl:o,fetchFn:s}){const l=await e.discoveryState?.();let c,d,f,p=o;if(!p&&l?.resourceMetadataUrl&&(p=new URL(l.resourceMetadataUrl)),l?.authorizationServerUrl){if(d=l.authorizationServerUrl,c=l.resourceMetadata,f=l.authorizationServerMetadata??await EE(d,{fetchFn:s}),!c)try{c=await wE(t,{resourceMetadataUrl:p},s)}catch{}(f!==l.authorizationServerMetadata||c!==l.resourceMetadata)&&await e.saveDiscoveryState?.({authorizationServerUrl:String(d),resourceMetadataUrl:p?.toString(),resourceMetadata:c,authorizationServerMetadata:f})}else{const T=await Wae(t,{resourceMetadataUrl:p,fetchFn:s});d=T.authorizationServerUrl,f=T.authorizationServerMetadata,c=T.resourceMetadata,await e.saveDiscoveryState?.({authorizationServerUrl:String(d),resourceMetadataUrl:p?.toString(),resourceMetadata:c,authorizationServerMetadata:f})}const h=await qae(t,e,c),g=r||c?.scopes_supported?.join(" ")||e.clientMetadata.scope;let v=await Promise.resolve(e.clientInformation());if(!v){if(n!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");const T=f?.client_id_metadata_document_supported===!0,R=e.clientMetadataUrl;if(R&&!Hae(R))throw new Ig(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${R}`);if(T&&R)v={client_id:R},await e.saveClientInformation?.(v);else{if(!e.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const A=await tle(d,{metadata:f,clientMetadata:e.clientMetadata,scope:g,fetchFn:s});await e.saveClientInformation(A),v=A}}const y=!e.redirectUrl;if(n!==void 0||y){const T=await ele(e,d,{metadata:f,resource:h,authorizationCode:n,fetchFn:s});return await e.saveTokens(T),"AUTHORIZED"}const b=await e.tokens();if(b?.refresh_token)try{const T=await Jae(d,{metadata:f,clientInformation:v,refreshToken:b.refresh_token,resource:h,addClientAuthentication:e.addClientAuthentication,fetchFn:s});return await e.saveTokens(T),"AUTHORIZED"}catch(T){if(!(!(T instanceof sr)||T instanceof Jc))throw T}const x=e.state?await e.state():void 0,{authorizationUrl:w,codeVerifier:E}=await Qae(d,{metadata:f,clientInformation:v,state:x,redirectUrl:e.redirectUrl,scope:g,resource:h});return await e.saveCodeVerifier(E),await e.redirectToAuthorization(w),"REDIRECT"}function Hae(e){if(!e)return!1;try{const t=new URL(e);return t.protocol==="https:"&&t.pathname!=="/"}catch{return!1}}async function qae(e,t,n){const r=kae(e);if(t.validateResourceURL)return await t.validateResourceURL(r,n?.resource);if(n){if(!Dae({requestedResource:r,configuredResource:n.resource}))throw new Error(`Protected resource ${n.resource} does not match expected ${r} (or origin)`);return new URL(n.resource)}}function mde(e){const t=e.headers.get("WWW-Authenticate");if(!t)return{};const[n,r]=t.split(" ");if(n.toLowerCase()!=="bearer"||!r)return{};const o=Db(e,"resource_metadata")||void 0;let s;if(o)try{s=new URL(o)}catch{}const l=Db(e,"scope")||void 0,c=Db(e,"error")||void 0;return{resourceMetadataUrl:s,scope:l,error:c}}function Db(e,t){const n=e.headers.get("WWW-Authenticate");if(!n)return null;const r=new RegExp(`${t}=(?:"([^"]+)"|([^\\s,]+))`),o=n.match(r);return o?o[1]||o[2]:null}async function wE(e,t,n=fetch){const r=await Zae(e,"oauth-protected-resource",n,{protocolVersion:t?.protocolVersion,metadataUrl:t?.resourceMetadataUrl});if(!r||r.status===404)throw await r?.body?.cancel(),new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!r.ok)throw await r.body?.cancel(),new Error(`HTTP ${r.status} trying to load well-known OAuth protected resource metadata.`);return Oae.parse(await r.json())}async function SE(e,t,n=fetch){try{return await n(e,{headers:t})}catch(r){if(r instanceof TypeError)return t?SE(e,void 0,n):void 0;throw r}}function Gae(e,t="",n={}){return t.endsWith("/")&&(t=t.slice(0,-1)),n.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function JM(e,t,n=fetch){return await SE(e,{"MCP-Protocol-Version":t},n)}function Kae(e,t){return!e||e.status>=400&&e.status<500&&t!=="/"}async function Zae(e,t,n,r){const o=new URL(e),s=r?.protocolVersion??sE;let l;if(r?.metadataUrl)l=new URL(r.metadataUrl);else{const d=Gae(t,o.pathname);l=new URL(d,r?.metadataServerUrl??o),l.search=o.search}let c=await JM(l,s,n);if(!r?.metadataUrl&&Kae(c,o.pathname)){const d=new URL(`/.well-known/${t}`,o);c=await JM(d,s,n)}return c}function Yae(e){const t=typeof e=="string"?new URL(e):e,n=t.pathname!=="/",r=[];if(!n)return r.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),r.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),r;let o=t.pathname;return o.endsWith("/")&&(o=o.slice(0,-1)),r.push({url:new URL(`/.well-known/oauth-authorization-server${o}`,t.origin),type:"oauth"}),r.push({url:new URL(`/.well-known/openid-configuration${o}`,t.origin),type:"oidc"}),r.push({url:new URL(`${o}/.well-known/openid-configuration`,t.origin),type:"oidc"}),r}async function EE(e,{fetchFn:t=fetch,protocolVersion:n=sE}={}){const r={"MCP-Protocol-Version":n,Accept:"application/json"},o=Yae(e);for(const{url:s,type:l}of o){const c=await SE(s,r,t);if(c){if(!c.ok){if(await c.body?.cancel(),c.status>=400&&c.status<500)continue;throw new Error(`HTTP ${c.status} trying to load ${l==="oauth"?"OAuth":"OpenID provider"} metadata from ${s}`)}return l==="oauth"?nL.parse(await c.json()):Cae.parse(await c.json())}}}async function Wae(e,t){let n,r;try{n=await wE(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),n.authorization_servers&&n.authorization_servers.length>0&&(r=n.authorization_servers[0])}catch{}r||(r=String(new URL("/",e)));const o=await EE(r,{fetchFn:t?.fetchFn});return{authorizationServerUrl:r,authorizationServerMetadata:o,resourceMetadata:n}}async function Qae(e,{metadata:t,clientInformation:n,redirectUrl:r,scope:o,state:s,resource:l}){let c;if(t){if(c=new URL(t.authorization_endpoint),!t.response_types_supported.includes(Pb))throw new Error(`Incompatible auth server: does not support response type ${Pb}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(Nb))throw new Error(`Incompatible auth server: does not support code challenge method ${Nb}`)}else c=new URL("/authorize",e);const d=await Rae(),f=d.code_verifier,p=d.code_challenge;return c.searchParams.set("response_type",Pb),c.searchParams.set("client_id",n.client_id),c.searchParams.set("code_challenge",p),c.searchParams.set("code_challenge_method",Nb),c.searchParams.set("redirect_uri",String(r)),s&&c.searchParams.set("state",s),o&&c.searchParams.set("scope",o),o?.includes("offline_access")&&c.searchParams.append("prompt","consent"),l&&c.searchParams.set("resource",l.href),{authorizationUrl:c,codeVerifier:f}}function oL(e,t,n){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(n)})}async function xE(e,{metadata:t,tokenRequestParams:n,clientInformation:r,addClientAuthentication:o,resource:s,fetchFn:l}){const c=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),d=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(s&&n.set("resource",s.href),o)await o(d,n,c,t);else if(r){const p=t?.token_endpoint_auth_methods_supported??[],h=jae(r,p);Uae(h,r,d,n)}const f=await(l??fetch)(c,{method:"POST",headers:d,body:n});if(!f.ok)throw await rL(f);return Aae.parse(await f.json())}async function Xae(e,{metadata:t,clientInformation:n,authorizationCode:r,codeVerifier:o,redirectUri:s,resource:l,addClientAuthentication:c,fetchFn:d}){const f=oL(r,o,s);return xE(e,{metadata:t,tokenRequestParams:f,clientInformation:n,addClientAuthentication:c,resource:l,fetchFn:d})}async function Jae(e,{metadata:t,clientInformation:n,refreshToken:r,resource:o,addClientAuthentication:s,fetchFn:l}){const c=new URLSearchParams({grant_type:"refresh_token",refresh_token:r}),d=await xE(e,{metadata:t,tokenRequestParams:c,clientInformation:n,addClientAuthentication:s,resource:o,fetchFn:l});return{refresh_token:r,...d}}async function ele(e,t,{metadata:n,resource:r,authorizationCode:o,fetchFn:s}={}){const l=e.clientMetadata.scope;let c;if(e.prepareTokenRequest&&(c=await e.prepareTokenRequest(l)),!c){if(!o)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");const f=await e.codeVerifier();c=oL(o,f,e.redirectUrl)}const d=await e.clientInformation();return xE(t,{metadata:n,tokenRequestParams:c,clientInformation:d??void 0,addClientAuthentication:e.addClientAuthentication,resource:r,fetchFn:s})}async function tle(e,{metadata:t,clientMetadata:n,scope:r,fetchFn:o}){let s;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");s=new URL(t.registration_endpoint)}else s=new URL("/register",e);const l=await(o??fetch)(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...r!==void 0?{scope:r}:{}})});if(!l.ok)throw await rL(l);return Nae.parse(await l.json())}async function iL(e){if(!e.getServerCapabilities()?.resources)return{resources:[]};try{return await e.listResources()}catch(n){if(n instanceof gv&&n.code===df.MethodNotFound)return{resources:[]};throw n}}async function nle(e,t){return await e.readResource({uri:t})}function gde(e){const t=ir.c(12);let n,r;t[0]!==e?({client:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let o;t[3]!==n?(o=hv.mcpResourcesList(n),t[3]=n,t[4]=o):o=t[4];let s;t[5]!==n?(s=()=>iL(n),t[5]=n,t[6]=s):s=t[6];const l=r.staleTime??3e4;let c;return t[7]!==r||t[8]!==o||t[9]!==s||t[10]!==l?(c={...r,queryKey:o,queryFn:s,staleTime:l,retry:!1},t[7]=r,t[8]=o,t[9]=s,t[10]=l,t[11]=c):c=t[11],hf(c)}function vde(e){const t=ir.c(12);let n,r;t[0]!==e?({client:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let o;t[3]!==n?(o=hv.mcpResourcesList(n),t[3]=n,t[4]=o):o=t[4];let s;t[5]!==n?(s=()=>iL(n),t[5]=n,t[6]=s):s=t[6];const l=r.staleTime??3e4;let c;return t[7]!==r||t[8]!==o||t[9]!==s||t[10]!==l?(c={...r,queryKey:o,queryFn:s,staleTime:l,retry:!1},t[7]=r,t[8]=o,t[9]=s,t[10]=l,t[11]=c):c=t[11],OP(c)}function _de(e){const t=ir.c(15);let n,r,o;t[0]!==e?({client:n,uri:o,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o):(n=t[1],r=t[2],o=t[3]);let s;t[4]!==n||t[5]!==o?(s=hv.mcpReadResource(n,o),t[4]=n,t[5]=o,t[6]=s):s=t[6];let l;t[7]!==n||t[8]!==o?(l=()=>nle(n,o),t[7]=n,t[8]=o,t[9]=l):l=t[9];const c=r.staleTime??3e4;let d;return t[10]!==r||t[11]!==s||t[12]!==l||t[13]!==c?(d={...r,queryKey:s,queryFn:l,staleTime:c,retry:!1},t[10]=r,t[11]=s,t[12]=l,t[13]=c,t[14]=d):d=t[14],hf(d)}const sL="ui-resource-html";function yde(e){const t=ir.c(20);let n,r,o,s,l;t[0]!==e?({orgSlug:o,connectionId:n,uri:l,meshUrl:r,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=l):(n=t[1],r=t[2],o=t[3],s=t[4],l=t[5]);let c;t[6]!==n||t[7]!==o||t[8]!==l?(c=hv.mcpUiResourceHtml(o,n,l),t[6]=n,t[7]=o,t[8]=l,t[9]=c):c=t[9];let d;t[10]!==n||t[11]!==r||t[12]!==o||t[13]!==l?(d=async()=>{const g=`${r??(typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(o)}/mcp/${encodeURIComponent(n)}/ui-resource?uri=${encodeURIComponent(l)}`,v=await fetch(g,{credentials:"include"});if(!v.ok)throw new Error(`Failed to read UI resource (${v.status})`);return v.text()},t[10]=n,t[11]=r,t[12]=o,t[13]=l,t[14]=d):d=t[14];const f=s.staleTime??3e4;let p;return t[15]!==s||t[16]!==c||t[17]!==d||t[18]!==f?(p={...s,queryKey:c,queryFn:d,staleTime:f,retry:!1},t[15]=s,t[16]=c,t[17]=d,t[18]=f,t[19]=p):p=t[19],hf(p)}const rle=be({authorizationEndpoint:$().url(),tokenEndpoint:$().url(),introspectionEndpoint:$().url().optional(),clientId:$(),clientSecret:$().optional(),scopes:Oe($()),grantType:dn(["authorization_code","client_credentials"])}),eP=be({type:Ge("object"),properties:Mt($(),Xt()).optional(),required:Oe($()).optional()}).catchall(Xt()),ole=gE.extend({inputSchema:eP,outputSchema:eP.optional()}),ile=be({headers:Mt($(),$()).optional()}),sle=be({command:$().describe("Command to run (e.g., 'npx', 'node')"),args:Oe($()).optional().describe("Command arguments"),cwd:$().optional().describe("Working directory"),envVars:Mt($(),$()).optional().describe("Environment variables (encrypted in storage)")}),aL=be({id:$().describe("Unique identifier for the connection"),title:$().describe("Human-readable name for the connection"),created_at:$().describe("When the connection was created"),updated_at:$().describe("When the connection was last updated"),created_by:$().describe("User ID who created the connection"),updated_by:$().optional().describe("User ID who last updated the connection"),organization_id:$().describe("Organization ID this connection belongs to"),description:$().nullable().describe("Description of the connection"),icon:$().nullable().describe("Icon URL for the connection"),app_name:$().nullable().describe("Associated app name"),app_id:$().nullable().describe("Associated app ID"),slug:$().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),connection_type:dn(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:$().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:$().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:fn([sle,ile]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:rle.nullable().describe("OAuth configuration"),configuration_state:Mt($(),Xt()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:Oe($()).nullable().optional().describe("Configuration scopes"),metadata:Mt($(),Xt()).nullable().describe("Additional metadata (includes repository info)"),tools:Oe(ole).nullable().describe("Discovered tools from MCP"),bindings:Oe($()).nullable().describe("Detected bindings"),status:dn(["active","inactive","error"]).describe("Current status")});aL.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:$().nullish()});aL.partial();function bde(e){return e!=null&&"command"in e}function wde(e){return!e||!e.startsWith("virtual://")?null:e.replace("virtual://","")}const kd=be({connection_id:$().describe("Connection ID"),selected_tools:Oe($()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:Oe($()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:Oe($()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),lL=kd.extend({selected_tools:kd.shape.selected_tools.optional(),selected_resources:kd.shape.selected_resources.optional(),selected_prompts:kd.shape.selected_prompts.optional()}),ale=be({connectionId:$(),toolName:$(),label:$(),icon:$().nullable().optional()}),lle=be({id:$().describe("Stable id; used as React key and ?tab= value"),title:$().describe("Tab label"),icon:$().optional().describe("Optional lucide icon name"),view:be({type:Ge("ext-app"),appId:$(),args:Mt($(),Xt()).optional()})}),cle=be({defaultMainView:be({type:$(),id:$().optional(),toolName:$().optional()}).nullable().optional(),chatDefaultOpen:Nt().nullable().optional(),tabs:Oe(lle).optional()}),tP=be({connectionId:$().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:$().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),minHeight:ht().int().positive().optional(),maxHeight:ht().int().positive().optional()}),RE=be({banner:$().nullable().optional(),bannerColor:$().nullable().optional(),icon:$().nullable().optional(),themeColor:$().nullable().optional(),pinnedViews:Oe(ale).nullable().optional(),layout:cle.nullable().optional(),homeTile:tP.nullable().optional(),homeTiles:Oe(tP).nullable().optional(),homePrompts:Oe($()).nullable().optional()});function Sde(e){const t=e?.homeTiles;if(Array.isArray(t)&&t.length>0)return t;const n=e?.homeTile;return n?[n]:[]}const ule=/^[A-Za-z_][A-Za-z0-9_]*$/,nP=$().min(1).regex(ule,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),dle=Yw("kind",[be({key:nP,kind:Ge("literal"),value:$()}),be({key:nP,kind:Ge("secret"),secretId:$().min(1)})]),OE=be({selected:$().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:$().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:$().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:Oe(dle).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that mesh resolves via the credential vault before posting /_sandbox/config.")}),TE=be({url:$().describe("GitHub repository URL"),owner:$().describe("Repository owner"),name:$().describe("Repository name"),installationId:ht().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:$().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials.")}),fle=dn(["agent-sandbox","user-desktop"]),hle=dn(["agent-sandbox","user-desktop","cluster"]);function cL(e){return e==="cluster"?"agent-sandbox":e}const uL={sandboxHandle:$().describe("Provider-specific handle"),previewUrl:$().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:$().nullable().optional().describe("Daemon's public URL — what cluster→daemon RPCs target. Equal to previewUrl for user-desktop; null/absent for the agent-sandbox provider (routes through hosted ingress)."),sandboxProviderKind:fle.optional(),createdAt:ht().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:be({packageManager:$().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:$().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:$().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},dL=be(uL),ple=be({...uL,sandboxProviderKind:hle.optional()});function mle(e){const t=ple.parse(e);return dL.parse({...t,sandboxProviderKind:t.sandboxProviderKind?cL(t.sandboxProviderKind):void 0})}function Ede(e){if(!e||typeof e!="object"||Array.isArray(e))return{};const t=e,n={};for(const[r,o]of Object.entries(t)){if(!o||typeof o!="object"||r!=="cluster"&&r!=="agent-sandbox"&&r!=="user-desktop")continue;const s=cL(r);try{if(r==="cluster"&&n[s])continue;n[s]=mle(o)}catch{}}return n}const CE=Mt($().describe("userId"),Mt($().describe("branch"),Mt($().describe("sandboxProviderKind"),dL))),xde=be({id:$().describe("Unique identifier"),title:$().describe("Human-readable name"),description:$().nullable().describe("Description"),icon:$().nullable().describe("Icon URL"),created_at:$().describe("Creation timestamp"),updated_at:$().describe("Last update timestamp"),created_by:$().describe("User ID who created this item"),updated_by:$().optional().describe("User ID who last updated this item"),organization_id:$().describe("Organization ID this item belongs to"),status:dn(["active","inactive"]).describe("Current status"),pinned:Nt().describe("Whether this space is pinned to the sidebar"),metadata:be({instructions:$().nullable().describe("Instructions also used as system prompt"),enabled_plugins:Oe($()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Oe($()).nullable().optional().describe("Allowlist of Virtual MCP (agent) IDs this agent may delegate to via subtask. null/absent = all active org agents; empty array = itself only (no cross-agent delegation)."),ui:RE.nullable().optional().describe("UI customization settings"),githubRepo:TE.nullable().optional().describe("Linked GitHub repository"),runtime:OE.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:CE.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }")}).loose().describe("Metadata"),connections:Oe(kd).describe("Connections with their selected tools, resources, and prompts")});be({title:$().min(1).max(255).describe("Name for the virtual MCP"),description:$().nullable().optional().describe("Optional description"),icon:$().nullish().describe("Optional icon URL"),status:dn(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:Nt().optional().default(!1).describe("Pin to sidebar"),metadata:be({instructions:$().nullable().optional().describe("MCP server instructions"),enabled_plugins:Oe($()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Oe($()).nullable().optional().describe("Allowlist of Virtual MCP (agent) IDs this agent may delegate to via subtask. null/absent = all active org agents; empty array = itself only (no cross-agent delegation)."),ui:RE.nullable().optional().describe("UI customization settings"),githubRepo:TE.nullable().optional().describe("Linked GitHub repository"),runtime:OE.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:CE.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }")}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:Oe(lL).describe("Connections to include/exclude (can be empty for exclusion mode)")});be({title:$().min(1).max(255).optional().describe("New name"),description:$().nullable().optional().describe("New description (null to clear)"),icon:$().nullish().describe("New icon URL"),status:dn(["active","inactive"]).optional().describe("New status"),pinned:Nt().optional().describe("Pin/unpin from sidebar"),metadata:be({instructions:$().nullable().optional().describe("MCP server instructions"),enabled_plugins:Oe($()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Oe($()).nullable().optional().describe("Allowlist of Virtual MCP (agent) IDs this agent may delegate to via subtask. null/absent = all active org agents; empty array = itself only (no cross-agent delegation)."),ui:RE.nullable().optional().describe("UI customization settings"),githubRepo:TE.nullable().optional().describe("Linked GitHub repository"),runtime:OE.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:CE.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }")}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:Oe(lL).optional().describe("New connections (replaces existing)")});var rP;(function(e){e.Completable="McpCompletable"})(rP||(rP={}));function oP(e){let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t=t&t}return Math.abs(t).toString(16)}let fL=null;function gle(e){fL=e}function vle(){return fL??window.location.origin}function hL(){try{const e=window.location.hostname;return e==="localhost"||e.endsWith(".localhost")||e==="127.0.0.1"||e==="::1"}catch{return!1}}const iP=new Map,pL="mcp:oauth:callback:";class _le{serverUrl;_clientMetadata;_redirectUrl;_windowMode;_state=null;_codeVerifier=null;_clientInfo=null;_tokens=null;constructor(t){this.serverUrl=t.serverUrl,this._redirectUrl=t.callbackUrl??`${vle()}/oauth/callback`,this._windowMode=t.windowMode??"popup";const n=t.scope?Array.isArray(t.scope)?t.scope.join(" "):t.scope:void 0;this._clientMetadata={redirect_uris:[this._redirectUrl],token_endpoint_auth_method:"none",grant_types:["authorization_code","refresh_token"],response_types:["code"],client_name:t.clientName??"@decocms/mesh MCP client",...n&&{scope:n}},iP.set(oP(this.serverUrl),this)}get redirectUrl(){return this._redirectUrl}get clientMetadata(){return this._clientMetadata}state(){return this._state||(this._state=crypto.randomUUID()),this._state}getStoredState(){return this._state}clientInformation(){return this._clientInfo??void 0}saveClientInformation(t){this._clientInfo=t}tokens(){return this._tokens??void 0}saveTokens(t){this._tokens=t}redirectToAuthorization(t){if(this._windowMode==="tab"){if(!window.open(t.toString(),"_blank"))throw new Error("Tab was blocked")}else{const o=window.screenX+(window.outerWidth-600)/2,s=window.screenY+(window.outerHeight-700)/2;if(!window.open(t.toString(),"mcp-oauth",`width=600,height=700,left=${o},top=${s},popup=yes`)&&!window.open(t.toString(),"_blank"))throw new Error("Popup was blocked")}}saveCodeVerifier(t){this._codeVerifier=t}codeVerifier(){if(!this._codeVerifier)throw new Error("Code verifier not found");return this._codeVerifier}invalidateCredentials(){this._clientInfo=null,this._tokens=null,this._codeVerifier=null,this._state=null}getServerUrl(){return this.serverUrl}cleanup(){iP.delete(oP(this.serverUrl))}}async function Rde(e){const t=e.meshUrl??window.location.origin,n=e.orgSlug?`/api/${encodeURIComponent(e.orgSlug)}/mcp/${e.connectionId}`:`/mcp/${e.connectionId}`,r=new URL(n,t),o=new _le({serverUrl:r.href,clientName:e.clientName,clientUri:e.clientUri,callbackUrl:e.callbackUrl,scope:e.scope,windowMode:e.windowMode}),s={fn:null};try{const l=new Promise((h,g)=>{const v=e.timeout||12e4;let y,b=!1;const x=o.state(),w=`${pL}${x}`,E=()=>{window.removeEventListener("message",R),window.removeEventListener("storage",O),clearTimeout(y);try{localStorage.removeItem(w)}catch{}};s.fn=A=>{b||(b=!0,E(),g(A))};const T=async A=>{if(b)return;if(b=!0,!A.success){E(),g(new Error(A.error||"OAuth authentication failed"));return}const{code:I,state:P}=A;if(!I){E(),g(new Error("Missing authorization code"));return}if(o.getStoredState()!==P){E(),g(new Error("OAuth state mismatch - possible CSRF attack"));return}try{const j=(await wE(r))?.authorization_servers?.[0]||r,B=await EE(j),z=o.clientInformation();if(!z){E(),g(new Error("Client information not found"));return}const K=o.codeVerifier(),oe=await Xae(j,{metadata:B,clientInformation:z,authorizationCode:I,codeVerifier:K,redirectUri:o.redirectUrl,resource:new URL(r)});E(),h({tokens:oe,clientId:z.client_id??null,clientSecret:"client_secret"in z?z.client_secret:null,tokenEndpoint:B?.token_endpoint??null,userinfoEndpoint:B?.userinfo_endpoint??null})}catch(H){E(),g(H)}},R=async A=>{!hL()&&A.origin!==window.location.origin||A.data?.type==="mcp:oauth:callback"&&await T(A.data)},O=async A=>{if(!(A.key!==w||!A.newValue))try{const I=JSON.parse(A.newValue);await T(I)}catch{}};window.addEventListener("message",R),window.addEventListener("storage",O),y=setTimeout(()=>{b||(b=!0,E(),g(new Error("OAuth authentication timeout")))},v)});if(l.catch(()=>{}),await Vae(o,{serverUrl:r})==="REDIRECT"){const h=await l,g=h.tokens;return{token:h.tokens.access_token,tokenInfo:{accessToken:h.tokens.access_token,refreshToken:h.tokens.refresh_token??null,expiresIn:h.tokens.expires_in??null,scope:h.tokens.scope??null,clientId:h.clientId,clientSecret:h.clientSecret,tokenEndpoint:h.tokenEndpoint,userinfoEndpoint:h.userinfoEndpoint,idToken:typeof g.id_token=="string"?g.id_token:null},error:null}}const d=o.tokens(),f=o.clientInformation(),p=d;return{token:d?.access_token||null,tokenInfo:d?{accessToken:d.access_token,refreshToken:d.refresh_token??null,expiresIn:d.expires_in??null,scope:d.scope??null,clientId:f?.client_id??null,clientSecret:f&&"client_secret"in f?f.client_secret:null,tokenEndpoint:null,userinfoEndpoint:null,idToken:p&&typeof p.id_token=="string"?p.id_token:null}:null,error:null}}catch(l){return s.fn&&s.fn(l instanceof Error?l:new Error(String(l))),{token:null,tokenInfo:null,error:l instanceof Error?l.message:String(l)}}finally{o.cleanup()}}function Lb(e,t){if(window.opener&&!window.opener.closed){const n=hL()?"*":window.location.origin;return window.opener.postMessage(e,n),!0}if(t)try{const n=`${pL}${t}`;return localStorage.setItem(n,JSON.stringify(e)),!0}catch{}return!1}async function Ode(){const e=new URLSearchParams(window.location.search),t=e.get("code");let n=e.get("state");const r=e.get("error"),o=e.get("error_description");let s=n;if(n)try{const c=atob(n),d=JSON.parse(c);d.clientState&&(s=d.clientState)}catch{}if(r){const c=o||r;return Lb({type:"mcp:oauth:callback",success:!1,error:c},s),{success:!1,error:c}}if(!t||!n){const c="Missing code or state parameter";return Lb({type:"mcp:oauth:callback",success:!1,error:c},s),{success:!1,error:c}}return n=s||n,Lb({type:"mcp:oauth:callback",success:!0,code:t,state:n},n)?{success:!0}:{success:!1,error:"Parent window not available"}}function wv(){if(typeof window<"u"&&window.location?.origin)return window.location.origin}function yle(e){try{const t=wv(),n=t?new URL(e,t):new URL(e),r=n.pathname.match(/^\/api\/[^/]+\/mcp\/([^/]+)/);return r?r[1]??null:n.pathname.match(/^\/mcp\/([^/]+)/)?.[1]??null}catch{return null}}function ble(e){try{const t=wv();return(t?new URL(e,t):new URL(e)).pathname.match(/^\/api\/([^/]+)\/mcp\//)?.[1]??null}catch{return null}}async function wle(e,t,n){try{const r=`/api/${encodeURIComponent(t)}/connections/${e}/oauth-token/status`,o=n?new URL(r,n).href:r,s=wv(),l=!n||new URL(n).origin===s,c=await fetch(o,{credentials:l?"include":"omit"});return c.ok?{hasToken:(await c.json()).hasToken===!0}:{hasToken:!1}}catch{return{hasToken:!1}}}async function Tde({url:e,token:t,orgId:n,meshUrl:r}){try{const o=new Headers;o.set("Content-Type","application/json"),o.set("Accept","application/json, text/event-stream");const s=await fetch(e,{method:"POST",headers:o,body:JSON.stringify({jsonrpc:"2.0",id:1,method:"initialize",params:{protocolVersion:"2025-06-18",capabilities:{},clientInfo:{name:"@decocms/mesh MCP client",version:"1.0.0"}}})}),l=yle(e),c=ble(e),d=wv(),f=r??(d?new URL(e,d).origin:new URL(e).origin);if(s.ok)return{isAuthenticated:!0,supportsOAuth:!1,hasOAuthToken:(l&&c?await wle(l,c,f):{hasToken:!1}).hasToken};let p;try{const v=await s.json();p=v.error||v.message}catch{}return s.status>=500?{isAuthenticated:!1,supportsOAuth:!1,hasOAuthToken:!1,error:p||`HTTP ${s.status}`,isServerError:!0}:{isAuthenticated:!1,supportsOAuth:!!s.headers.get("WWW-Authenticate"),hasOAuthToken:!1,error:p||`HTTP ${s.status}`}}catch(o){return console.error("[isConnectionAuthenticated] Error:",o),{isAuthenticated:!1,supportsOAuth:!1,hasOAuthToken:!1,error:o.message}}}const Sle="mesh-ui-resources",Mg="html",Ele=10080*60*1e3,xle=50,Rle=16*1024*1024;function Ole(e){return e[0]==="mcp"&&e[1]===sL}function Sv(){return new Promise((e,t)=>{const n=indexedDB.open(Sle,1);n.onupgradeneeded=()=>{n.result.objectStoreNames.contains(Mg)||n.result.createObjectStore(Mg)},n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error)})}function eu(e,t){return e.transaction(Mg,t).objectStore(Mg)}function Ow(e){return new Promise((t,n)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>n(e.error)})}async function Tle(e){if(!(typeof indexedDB>"u"))try{const t=await Sv(),n=eu(t,"readonly"),r=await Ow(n.getAllKeys()),o=await Ow(n.getAll()),s=Date.now(),l=r.map((f,p)=>({key:f,value:o[p]})).sort((f,p)=>(p.value?.updatedAt??0)-(f.value?.updatedAt??0)),c=[];let d=0;for(const{key:f,value:p}of l){if(!p||s-p.updatedAt>Ele||d>=xle){c.push(f);continue}d++;try{const g=JSON.parse(String(f));e.getQueryData(g)===void 0&&e.setQueryData(g,p.html,{updatedAt:0})}catch{c.push(f)}}if(c.length>0){const f=eu(t,"readwrite");for(const p of c)f.delete(p)}}catch{}}function Cle(e){if(typeof indexedDB>"u")return()=>{};const t=Sv().catch(()=>null);return e.getQueryCache().subscribe(n=>{const r=n.query;if(!Array.isArray(r.queryKey)||!Ole(r.queryKey)||r.state.status!=="success")return;const o=r.state.data;typeof o!="string"||o.length>Rle||t.then(s=>{if(s)try{eu(s,"readwrite").put({html:o,updatedAt:Date.now()},JSON.stringify(r.queryKey))}catch{}})})}function Ale(){typeof indexedDB>"u"||Sv().then(e=>eu(e,"readwrite").clear()).catch(()=>{})}async function Cde(e){if(!(typeof indexedDB>"u"))try{const t=await Sv(),n=await Ow(eu(t,"readonly").getAllKeys()),r=eu(t,"readwrite");for(const o of n)try{const s=JSON.parse(String(o));s[1]===sL&&s[3]===e&&r.delete(o)}catch{}}catch{}}const Pg="mesh:rq-cache",mL=1440*60*1e3,Ile=1e3,Mle=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),Ple=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let gL=!1,vL=!1;function Nle(e){const t=e[0];return typeof t=="string"&&Mle.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&Ple.has(e[4])}function kle(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(Pg);if(!t)return;const n=JSON.parse(t),r=!n.timestamp||Date.now()-n.timestamp>mL;if(n.buster!=="3.26.2"||r||!n.state){window.localStorage.removeItem(Pg);return}S8(e,n.state),gL=!0}catch{Lle()}}function Dle(e){if(typeof window>"u")return()=>{};let t=null;const n=()=>{t=null;try{const r=w8(e,{shouldDehydrateQuery:o=>o.state.status==="success"&&Nle(o.queryKey)});window.localStorage.setItem(Pg,JSON.stringify({buster:"3.26.2",timestamp:Date.now(),state:r}))}catch{}};return e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(n,Ile))})}const _L="studio:org-cache:";function yL(e){return`${_L}${e}`}function Ade(e,t){if(typeof window>"u")return null;try{const n=window.localStorage.getItem(yL(e));if(!n)return null;const r=JSON.parse(n)[t];return!r||Date.now()-r.updatedAt>mL?null:(vL=!0,r)}catch{return null}}function Ide(e,t,n){if(!(typeof window>"u"))try{const r=yL(e),o=window.localStorage.getItem(r),s=o?JSON.parse(o):{};s[t]={data:n,updatedAt:Date.now()},window.localStorage.setItem(r,JSON.stringify(s))}catch{}}function Lle(){if(Ale(),!(typeof window>"u"))try{window.localStorage.removeItem(Pg);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(_L)&&window.localStorage.removeItem(t)}}catch{}}function $le(){return gL}function jle(){return vL}let pa=!1,Tw=null,sP=!1;function Ule(e,t){pa||typeof window>"u"||(iu.init(e,{api_host:t,capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture"},person_profiles:"identified_only"}),pa=!0)}function zle(e,t){pa&&iu.identify(e,t)}function Fle(){pa&&(iu.reset(),Tw=null)}function Ble(e,t){pa&&iu.capture(e,t)}function Mde(){if(!pa||sP||typeof performance>"u")return;sP=!0;const e=performance.getEntriesByType("navigation")[0],t=n=>{const r=performance.getEntriesByName(n,"measure")[0];return r?Math.round(r.duration):void 0};Ble("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("mesh:config-fetch"),active_org_fetch_ms:t("mesh:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:$le(),org_cache_restored:jle()})}function Pde(e,t){pa&&e!==Tw&&(iu.group("organization",e,t),Tw=e)}function bL(e,t){if(pa)try{iu.captureException(e,t)}catch{}}let hm=null;function Vle({children:e}){const t=CP(),{data:n}=Kg.useSession();if(t.posthog){Ule(t.posthog.key,t.posthog.host);const r=n?.user?.id??null;r&&r!==hm?(zle(r,{email:n?.user?.email,name:n?.user?.name}),hm=r):!r&&hm&&(Fle(),hm=null)}return C.jsx(C.Fragment,{children:e})}const AE=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.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"}));AE.displayName="AlertTriangle";const wL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.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"}));wL.displayName="Archive";const SL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M11 4.5h7.3c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874c.218.428.218.988.218 2.108V9c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C19.898 12 19.432 12 18.5 12M13 19.5H5.7c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C2.5 17.98 2.5 17.42 2.5 16.3V15c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C4.102 12 4.568 12 5.5 12m4.8 2.5h3.4c.28 0 .42 0 .527-.055a.5.5 0 0 0 .218-.218c.055-.107.055-.247.055-.527v-3.4c0-.28 0-.42-.055-.527a.5.5 0 0 0-.218-.218C14.12 9.5 13.98 9.5 13.7 9.5h-3.4c-.28 0-.42 0-.527.055a.5.5 0 0 0-.218.218c-.055.107-.055.247-.055.527v3.4c0 .28 0 .42.055.527a.5.5 0 0 0 .218.218c.107.055.247.055.527.055Zm7.5 7.5h3.4c.28 0 .42 0 .527-.055a.5.5 0 0 0 .218-.218C22 21.62 22 21.48 22 21.2v-3.4c0-.28 0-.42-.055-.527a.5.5 0 0 0-.218-.218C21.62 17 21.48 17 21.2 17h-3.4c-.28 0-.42 0-.527.055a.5.5 0 0 0-.218.218C17 17.38 17 17.52 17 17.8v3.4c0 .28 0 .42.055.527a.5.5 0 0 0 .218.218c.107.055.247.055.527.055ZM2.8 7h3.4c.28 0 .42 0 .527-.054a.5.5 0 0 0 .218-.219C7 6.62 7 6.48 7 6.2V2.8c0-.28 0-.42-.054-.527a.5.5 0 0 0-.219-.219C6.62 2 6.48 2 6.2 2H2.8c-.28 0-.42 0-.527.054a.5.5 0 0 0-.219.219C2 2.38 2 2.52 2 2.8v3.4c0 .28 0 .42.054.527a.5.5 0 0 0 .219.218C2.38 7 2.52 7 2.8 7Z"}));SL.displayName="Dataflow03";const EL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));EL.displayName="Loading01";const xL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.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"}));xL.displayName="Lock01";const RL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));RL.displayName="RefreshCw01";function IE(){const e=ir.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=C.jsx("div",{className:"flex items-center justify-center min-h-screen",children:C.jsx(EL,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function Hle(e){try{return JSON.parse(e)}catch{return}}function aP(e,t){const n=localStorage.getItem(e),r=n?Hle(n):void 0,o=typeof t=="function"?t(r):r??t;if(r===void 0||o!==r)try{const s=JSON.stringify(o);localStorage.setItem(e,s)}catch{}return o}function qle(e,t){const n=ir.c(25),r=Dw();let o;n[0]!==e?(o=["localStorage",e],n[0]=e,n[1]=o):o=n[1];const s=o;let l,c;n[2]!==t||n[3]!==e?(l=()=>aP(e,t),c=()=>aP(e,t),n[2]=t,n[3]=e,n[4]=l,n[5]=c):(l=n[4],c=n[5]);let d;n[6]!==s||n[7]!==l||n[8]!==c?(d={queryKey:s,queryFn:l,initialData:c,staleTime:1/0,gcTime:1/0},n[6]=s,n[7]=l,n[8]=c,n[9]=d):d=n[9];const{data:f}=OP(d);let p;n[10]!==e?(p=async E=>{const T=JSON.stringify(E);return localStorage.setItem(e,T),E},n[10]=e,n[11]=p):p=n[11];let h;n[12]!==r||n[13]!==s?(h=E=>{r.setQueryData(s,E)},n[12]=r,n[13]=s,n[14]=h):h=n[14];let g;n[15]!==p||n[16]!==h?(g={mutationFn:p,onSuccess:h},n[15]=p,n[16]=h,n[17]=g):g=n[17];const v=Z8(g);let y;n[18]!==v||n[19]!==r||n[20]!==s?(y=E=>{const T=r.getQueryData(s),R=typeof E=="function"?E(T):E;v.mutate(R)},n[18]=v,n[19]=r,n[20]=s,n[21]=y):y=n[21];const b=y,x=f;let w;return n[22]!==b||n[23]!==x?(w=[x,b],n[22]=b,n[23]=x,n[24]=w):w=n[24],w}const au={assistantChatTasks:e=>`mesh:assistant-chat:tasks:${e}`,messages:(e,t)=>`mesh:messages:${e}:${t}`,chatSelectedMode:e=>`mesh:chat:selectedMode:${e}`,chatSelectedImageModel:e=>`mesh:chat:selectedImageModel:${e}`,chatSelectedDeepResearchModel:e=>`mesh:chat:selectedDeepResearchModel:${e}`,chatSimpleModeTier:e=>`mesh:chat:simpleModeTier:${e}`,chatLastAgentOption:e=>`mesh:chat:lastAgentOption:${e}`,chatAutosend:(e,t)=>`mesh:chat:autosend:${e}:${t}`,chatDraft:(e,t)=>`mesh:chat:draft:${e}:${t}`,assistantChatActiveTask:e=>`mesh:assistant-chat:active-task:${e}`,decoChatPanelWidth:()=>"mesh:decochat:panel-width",tasksPanelWidth:()=>"mesh:tasks-panel:width",sidebarOpen:()=>"mesh:sidebar-open",orgHomeQuickstart:e=>`mesh:org-home:quickstart:${e}`,storeShowStdio:()=>"mesh:store:show-stdio",preferences:()=>"mesh:user:preferences",pluginConnection:(e,t)=>`mesh:plugin:connection:${e}:${t}`,lastOrgSlug:()=>"mesh:last-org-slug",lastLocation:()=>"mesh:last-location",connectionsTab:e=>`mesh:connections:tab:${e}`,taskLastViewed:e=>`mesh:chat:task-last-viewed:${e}`,sidebarGroupOrder:(e,t)=>`sidebar.group-order.${e}.${t}`,sidebarOrgPinnedOrder:e=>`sidebar.org-pinned-order.${e}`},Gle={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system"},OL=["auto","readonly"],Nde=[{value:"readonly",label:"Ask before edit",short:"Ask"},{value:"auto",label:"Auto approve",short:"Auto"}],Kle=["light","dark","system"];function kde(){try{const e=JSON.parse(localStorage.getItem(au.preferences())??"{}");if(OL.includes(e.toolApprovalLevel))return e.toolApprovalLevel}catch{}return"auto"}function Zle(){const e=ir.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=au.preferences(),e[0]=t):t=e[0],qle(t,Yle)}function Yle(e){const t={...Gle,...e};return OL.includes(t.toolApprovalLevel)||(t.toolApprovalLevel="auto"),Kle.includes(t.theme)||(t.theme="system"),t}async function Wle(){performance.mark("mesh:config-fetch:start");try{const e=await fetch("/api/config");if(!e.ok)throw new Error("Failed to load public configuration");const t=await e.json();if(!t.success)throw new Error(t.error||"Failed to load public configuration");return t.config}finally{performance.mark("mesh:config-fetch:end"),performance.measure("mesh:config-fetch","mesh:config-fetch:start","mesh:config-fetch:end")}}function Qle(e){if(!e)return;const t=document.getElementById("mesh-theme-overrides");t&&t.remove();const n=[];if(e.light&&Object.keys(e.light).length>0){const r=Object.entries(e.light).map(([o,s])=>` ${o}: ${s};`).join(`
163
+ deps: ${p}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(d){const[f,p]=s(d);l(d,f),c(d,p)}};function s({schema:d}){const f={},p={};for(const h in d){if(h==="__proto__")continue;const g=Array.isArray(d[h])?f:p;g[h]=d[h]}return[f,p]}function l(d,f=d.schema){const{gen:p,data:h,it:g}=d;if(Object.keys(f).length===0)return;const v=p.let("missing");for(const y in f){const b=f[y];if(b.length===0)continue;const x=(0,r.propertyInData)(p,h,y,g.opts.ownProperties);d.setParams({property:y,depsCount:b.length,deps:b.join(", ")}),g.allErrors?p.if(x,()=>{for(const w of b)(0,r.checkReportMissingProp)(d,w)}):(p.if((0,t._)`${x} && (${(0,r.checkMissingProp)(d,b,v)})`),(0,r.reportMissingProp)(d,v),p.else())}}e.validatePropertyDeps=l;function c(d,f=d.schema){const{gen:p,data:h,keyword:g,it:v}=d,y=p.name("valid");for(const b in f)(0,n.alwaysValidSchema)(v,f[b])||(p.if((0,r.propertyInData)(p,h,b,v.opts.ownProperties),()=>{const x=d.subschema({keyword:g,schemaProp:b},y);d.mergeValidEvaluated(x,y)},()=>p.var(y,!0)),d.ok(y))}e.validateSchemaDeps=c,e.default=o})(Ab)),Ab}var Jp={},MM;function Kse(){if(MM)return Jp;MM=1,Object.defineProperty(Jp,"__esModule",{value:!0});const e=_t(),t=kt(),r={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:o})=>(0,e._)`{propertyName: ${o.propertyName}}`},code(o){const{gen:s,schema:l,data:c,it:d}=o;if((0,t.alwaysValidSchema)(d,l))return;const f=s.name("valid");s.forIn("key",c,p=>{o.setParams({propertyName:p}),o.subschema({keyword:"propertyNames",data:p,dataTypes:["string"],propertyName:p,compositeRule:!0},f),s.if((0,e.not)(f),()=>{o.error(!0),d.allErrors||s.break()})}),o.ok(f)}};return Jp.default=r,Jp}var em={},PM;function tL(){if(PM)return em;PM=1,Object.defineProperty(em,"__esModule",{value:!0});const e=li(),t=_t(),n=wa(),r=kt(),s={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:l})=>(0,t._)`{additionalProperty: ${l.additionalProperty}}`},code(l){const{gen:c,schema:d,parentSchema:f,data:p,errsCount:h,it:g}=l;if(!h)throw new Error("ajv implementation error");const{allErrors:v,opts:y}=g;if(g.props=!0,y.removeAdditional!=="all"&&(0,r.alwaysValidSchema)(g,d))return;const b=(0,e.allSchemaProperties)(f.properties),x=(0,e.allSchemaProperties)(f.patternProperties);w(),l.ok((0,t._)`${h} === ${n.default.errors}`);function w(){c.forIn("key",p,A=>{!b.length&&!x.length?R(A):c.if(E(A),()=>R(A))})}function E(A){let I;if(b.length>8){const P=(0,r.schemaRefOrVal)(g,f.properties,"properties");I=(0,e.isOwnProperty)(c,P,A)}else b.length?I=(0,t.or)(...b.map(P=>(0,t._)`${A} === ${P}`)):I=t.nil;return x.length&&(I=(0,t.or)(I,...x.map(P=>(0,t._)`${(0,e.usePattern)(l,P)}.test(${A})`))),(0,t.not)(I)}function T(A){c.code((0,t._)`delete ${p}[${A}]`)}function R(A){if(y.removeAdditional==="all"||y.removeAdditional&&d===!1){T(A);return}if(d===!1){l.setParams({additionalProperty:A}),l.error(),v||c.break();return}if(typeof d=="object"&&!(0,r.alwaysValidSchema)(g,d)){const I=c.name("valid");y.removeAdditional==="failing"?(O(A,I,!1),c.if((0,t.not)(I),()=>{l.reset(),T(A)})):(O(A,I),v||c.if((0,t.not)(I),()=>c.break()))}}function O(A,I,P){const L={keyword:"additionalProperties",dataProp:A,dataPropType:r.Type.Str};P===!1&&Object.assign(L,{compositeRule:!0,createErrors:!1,allErrors:!1}),l.subschema(L,I)}}};return em.default=s,em}var tm={},NM;function Zse(){if(NM)return tm;NM=1,Object.defineProperty(tm,"__esModule",{value:!0});const e=yv(),t=li(),n=kt(),r=tL(),o={keyword:"properties",type:"object",schemaType:"object",code(s){const{gen:l,schema:c,parentSchema:d,data:f,it:p}=s;p.opts.removeAdditional==="all"&&d.additionalProperties===void 0&&r.default.code(new e.KeywordCxt(p,r.default,"additionalProperties"));const h=(0,t.allSchemaProperties)(c);for(const x of h)p.definedProperties.add(x);p.opts.unevaluated&&h.length&&p.props!==!0&&(p.props=n.mergeEvaluated.props(l,(0,n.toHash)(h),p.props));const g=h.filter(x=>!(0,n.alwaysValidSchema)(p,c[x]));if(g.length===0)return;const v=l.name("valid");for(const x of g)y(x)?b(x):(l.if((0,t.propertyInData)(l,f,x,p.opts.ownProperties)),b(x),p.allErrors||l.else().var(v,!0),l.endIf()),s.it.definedProperties.add(x),s.ok(v);function y(x){return p.opts.useDefaults&&!p.compositeRule&&c[x].default!==void 0}function b(x){s.subschema({keyword:"properties",schemaProp:x,dataProp:x},v)}}};return tm.default=o,tm}var nm={},kM;function Yse(){if(kM)return nm;kM=1,Object.defineProperty(nm,"__esModule",{value:!0});const e=li(),t=_t(),n=kt(),r=kt(),o={keyword:"patternProperties",type:"object",schemaType:"object",code(s){const{gen:l,schema:c,data:d,parentSchema:f,it:p}=s,{opts:h}=p,g=(0,e.allSchemaProperties)(c),v=g.filter(R=>(0,n.alwaysValidSchema)(p,c[R]));if(g.length===0||v.length===g.length&&(!p.opts.unevaluated||p.props===!0))return;const y=h.strictSchema&&!h.allowMatchingProperties&&f.properties,b=l.name("valid");p.props!==!0&&!(p.props instanceof t.Name)&&(p.props=(0,r.evaluatedPropsToName)(l,p.props));const{props:x}=p;w();function w(){for(const R of g)y&&E(R),p.allErrors?T(R):(l.var(b,!0),T(R),l.if(b))}function E(R){for(const O in y)new RegExp(R).test(O)&&(0,n.checkStrictMode)(p,`property ${O} matches pattern ${R} (use allowMatchingProperties)`)}function T(R){l.forIn("key",d,O=>{l.if((0,t._)`${(0,e.usePattern)(s,R)}.test(${O})`,()=>{const A=v.includes(R);A||s.subschema({keyword:"patternProperties",schemaProp:R,dataProp:O,dataPropType:r.Type.Str},b),p.opts.unevaluated&&x!==!0?l.assign((0,t._)`${x}[${O}]`,!0):!A&&!p.allErrors&&l.if((0,t.not)(b),()=>l.break())})})}}};return nm.default=o,nm}var rm={},DM;function Wse(){if(DM)return rm;DM=1,Object.defineProperty(rm,"__esModule",{value:!0});const e=kt(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(n){const{gen:r,schema:o,it:s}=n;if((0,e.alwaysValidSchema)(s,o)){n.fail();return}const l=r.name("valid");n.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),n.failResult(l,()=>n.reset(),()=>n.error())},error:{message:"must NOT be valid"}};return rm.default=t,rm}var om={},LM;function Qse(){if(LM)return om;LM=1,Object.defineProperty(om,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:li().validateUnion,error:{message:"must match a schema in anyOf"}};return om.default=t,om}var im={},$M;function Xse(){if($M)return im;$M=1,Object.defineProperty(im,"__esModule",{value:!0});const e=_t(),t=kt(),r={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:o})=>(0,e._)`{passingSchemas: ${o.passing}}`},code(o){const{gen:s,schema:l,parentSchema:c,it:d}=o;if(!Array.isArray(l))throw new Error("ajv implementation error");if(d.opts.discriminator&&c.discriminator)return;const f=l,p=s.let("valid",!1),h=s.let("passing",null),g=s.name("_valid");o.setParams({passing:h}),s.block(v),o.result(p,()=>o.reset(),()=>o.error(!0));function v(){f.forEach((y,b)=>{let x;(0,t.alwaysValidSchema)(d,y)?s.var(g,!0):x=o.subschema({keyword:"oneOf",schemaProp:b,compositeRule:!0},g),b>0&&s.if((0,e._)`${g} && ${p}`).assign(p,!1).assign(h,(0,e._)`[${h}, ${b}]`).else(),s.if(g,()=>{s.assign(p,!0),s.assign(h,b),x&&o.mergeEvaluated(x,e.Name)})})}}};return im.default=r,im}var sm={},jM;function Jse(){if(jM)return sm;jM=1,Object.defineProperty(sm,"__esModule",{value:!0});const e=kt(),t={keyword:"allOf",schemaType:"array",code(n){const{gen:r,schema:o,it:s}=n;if(!Array.isArray(o))throw new Error("ajv implementation error");const l=r.name("valid");o.forEach((c,d)=>{if((0,e.alwaysValidSchema)(s,c))return;const f=n.subschema({keyword:"allOf",schemaProp:d},l);n.ok(l),n.mergeEvaluated(f)})}};return sm.default=t,sm}var am={},UM;function eae(){if(UM)return am;UM=1,Object.defineProperty(am,"__esModule",{value:!0});const e=_t(),t=kt(),r={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:s})=>(0,e.str)`must match "${s.ifClause}" schema`,params:({params:s})=>(0,e._)`{failingKeyword: ${s.ifClause}}`},code(s){const{gen:l,parentSchema:c,it:d}=s;c.then===void 0&&c.else===void 0&&(0,t.checkStrictMode)(d,'"if" without "then" and "else" is ignored');const f=o(d,"then"),p=o(d,"else");if(!f&&!p)return;const h=l.let("valid",!0),g=l.name("_valid");if(v(),s.reset(),f&&p){const b=l.let("ifClause");s.setParams({ifClause:b}),l.if(g,y("then",b),y("else",b))}else f?l.if(g,y("then")):l.if((0,e.not)(g),y("else"));s.pass(h,()=>s.error(!0));function v(){const b=s.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},g);s.mergeEvaluated(b)}function y(b,x){return()=>{const w=s.subschema({keyword:b},g);l.assign(h,g),s.mergeValidEvaluated(w,h),x?l.assign(x,(0,e._)`${b}`):s.setParams({ifClause:b})}}}};function o(s,l){const c=s.schema[l];return c!==void 0&&!(0,t.alwaysValidSchema)(s,c)}return am.default=r,am}var lm={},zM;function tae(){if(zM)return lm;zM=1,Object.defineProperty(lm,"__esModule",{value:!0});const e=kt(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:n,parentSchema:r,it:o}){r.if===void 0&&(0,e.checkStrictMode)(o,`"${n}" without "if" is ignored`)}};return lm.default=t,lm}var FM;function nae(){if(FM)return Yp;FM=1,Object.defineProperty(Yp,"__esModule",{value:!0});const e=J6(),t=Vse(),n=eL(),r=Hse(),o=qse(),s=Gse(),l=Kse(),c=tL(),d=Zse(),f=Yse(),p=Wse(),h=Qse(),g=Xse(),v=Jse(),y=eae(),b=tae();function x(w=!1){const E=[p.default,h.default,g.default,v.default,y.default,b.default,l.default,c.default,s.default,d.default,f.default];return w?E.push(t.default,r.default):E.push(e.default,n.default),E.push(o.default),E}return Yp.default=x,Yp}var cm={},um={},BM;function rae(){if(BM)return um;BM=1,Object.defineProperty(um,"__esModule",{value:!0});const e=_t(),n={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,e.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,e._)`{format: ${r}}`},code(r,o){const{gen:s,data:l,$data:c,schema:d,schemaCode:f,it:p}=r,{opts:h,errSchemaPath:g,schemaEnv:v,self:y}=p;if(!h.validateFormats)return;c?b():x();function b(){const w=s.scopeValue("formats",{ref:y.formats,code:h.code.formats}),E=s.const("fDef",(0,e._)`${w}[${f}]`),T=s.let("fType"),R=s.let("format");s.if((0,e._)`typeof ${E} == "object" && !(${E} instanceof RegExp)`,()=>s.assign(T,(0,e._)`${E}.type || "string"`).assign(R,(0,e._)`${E}.validate`),()=>s.assign(T,(0,e._)`"string"`).assign(R,E)),r.fail$data((0,e.or)(O(),A()));function O(){return h.strictSchema===!1?e.nil:(0,e._)`${f} && !${R}`}function A(){const I=v.$async?(0,e._)`(${E}.async ? await ${R}(${l}) : ${R}(${l}))`:(0,e._)`${R}(${l})`,P=(0,e._)`(typeof ${R} == "function" ? ${I} : ${R}.test(${l}))`;return(0,e._)`${R} && ${R} !== true && ${T} === ${o} && !${P}`}}function x(){const w=y.formats[d];if(!w){O();return}if(w===!0)return;const[E,T,R]=A(w);E===o&&r.pass(I());function O(){if(h.strictSchema===!1){y.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${d}" ignored in schema at path "${g}"`}}function A(P){const L=P instanceof RegExp?(0,e.regexpCode)(P):h.code.formats?(0,e._)`${h.code.formats}${(0,e.getProperty)(d)}`:void 0,H=s.scopeValue("formats",{key:d,ref:P,code:L});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,e._)`${H}.validate`]:["string",P,H]}function I(){if(typeof w=="object"&&!(w instanceof RegExp)&&w.async){if(!v.$async)throw new Error("async format in sync schema");return(0,e._)`await ${R}(${l})`}return typeof T=="function"?(0,e._)`${R}(${l})`:(0,e._)`${R}.test(${l})`}}}};return um.default=n,um}var VM;function oae(){if(VM)return cm;VM=1,Object.defineProperty(cm,"__esModule",{value:!0});const t=[rae().default];return cm.default=t,cm}var Ya={},HM;function iae(){return HM||(HM=1,Object.defineProperty(Ya,"__esModule",{value:!0}),Ya.contentVocabulary=Ya.metadataVocabulary=void 0,Ya.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Ya.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Ya}var qM;function sae(){if(qM)return Np;qM=1,Object.defineProperty(Np,"__esModule",{value:!0});const e=Ise(),t=Bse(),n=nae(),r=oae(),o=iae(),s=[e.default,t.default,(0,n.default)(),r.default,o.metadataVocabulary,o.contentVocabulary];return Np.default=s,Np}var dm={},wd={},GM;function aae(){if(GM)return wd;GM=1,Object.defineProperty(wd,"__esModule",{value:!0}),wd.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(wd.DiscrError=e={})),wd}var KM;function lae(){if(KM)return dm;KM=1,Object.defineProperty(dm,"__esModule",{value:!0});const e=_t(),t=aae(),n=_E(),r=bv(),o=kt(),l={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:f}})=>(0,e._)`{error: ${c}, tag: ${f}, tagValue: ${d}}`},code(c){const{gen:d,data:f,schema:p,parentSchema:h,it:g}=c,{oneOf:v}=h;if(!g.opts.discriminator)throw new Error("discriminator: requires discriminator option");const y=p.propertyName;if(typeof y!="string")throw new Error("discriminator: requires propertyName");if(p.mapping)throw new Error("discriminator: mapping is not supported");if(!v)throw new Error("discriminator: requires oneOf keyword");const b=d.let("valid",!1),x=d.const("tag",(0,e._)`${f}${(0,e.getProperty)(y)}`);d.if((0,e._)`typeof ${x} == "string"`,()=>w(),()=>c.error(!1,{discrError:t.DiscrError.Tag,tag:x,tagName:y})),c.ok(b);function w(){const R=T();d.if(!1);for(const O in R)d.elseIf((0,e._)`${x} === ${O}`),d.assign(b,E(R[O]));d.else(),c.error(!1,{discrError:t.DiscrError.Mapping,tag:x,tagName:y}),d.endIf()}function E(R){const O=d.name("valid"),A=c.subschema({keyword:"oneOf",schemaProp:R},O);return c.mergeEvaluated(A,e.Name),O}function T(){var R;const O={},A=P(h);let I=!0;for(let j=0;j<v.length;j++){let B=v[j];if(B?.$ref&&!(0,o.schemaHasRulesButRef)(B,g.self.RULES)){const K=B.$ref;if(B=n.resolveRef.call(g.self,g.schemaEnv.root,g.baseId,K),B instanceof n.SchemaEnv&&(B=B.schema),B===void 0)throw new r.default(g.opts.uriResolver,g.baseId,K)}const z=(R=B?.properties)===null||R===void 0?void 0:R[y];if(typeof z!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${y}"`);I=I&&(A||P(B)),L(z,j)}if(!I)throw new Error(`discriminator: "${y}" must be required`);return O;function P({required:j}){return Array.isArray(j)&&j.includes(y)}function L(j,B){if(j.const)H(j.const,B);else if(j.enum)for(const z of j.enum)H(z,B);else throw new Error(`discriminator: "properties/${y}" must have "const" or "enum"`)}function H(j,B){if(typeof j!="string"||j in O)throw new Error(`discriminator: "${y}" values must be unique strings`);O[j]=B}}}};return dm.default=l,dm}const cae="http://json-schema.org/draft-07/schema#",uae="http://json-schema.org/draft-07/schema#",dae="Core schema meta-schema",fae={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:[]}},hae=["object","boolean"],pae={$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:"#"}},mae={$schema:cae,$id:uae,title:dae,definitions:fae,type:hae,properties:pae,default:!0};var ZM;function gae(){return ZM||(ZM=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 n=Tse(),r=sae(),o=lae(),s=mae,l=["/properties"],c="http://json-schema.org/draft-07/schema";class d extends n.default{_addVocabularies(){super._addVocabularies(),r.default.forEach(y=>this.addVocabulary(y)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const y=this.opts.$data?this.$dataMetaSchema(s,l):s;this.addMetaSchema(y,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=d,e.exports=t=d,e.exports.Ajv=d,Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var f=yv();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return f.KeywordCxt}});var p=_t();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return p._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return p.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return p.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return p.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return p.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return p.CodeGen}});var h=vE();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var g=bv();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return g.default}})})(Cp,Cp.exports)),Cp.exports}var fm={exports:{}},Ib={},YM;function vae(){return YM||(YM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(j,B){return{validate:j,compare:B}}e.fullFormats={date:t(s,l),time:t(d(!0),f),"date-time":t(g(!0),v),"iso-time":t(d(),p),"iso-date-time":t(g(),y),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:w,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:H,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:T,int32:{type:"number",validate:A},int64:{type:"number",validate:I},float:{type:"number",validate:P},double:{type:"number",validate:P},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,l),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,f),"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,p),"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,y),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i},e.formatNames=Object.keys(e.fullFormats);function n(j){return j%4===0&&(j%100!==0||j%400===0)}const r=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,o=[0,31,28,31,30,31,30,31,31,30,31,30,31];function s(j){const B=r.exec(j);if(!B)return!1;const z=+B[1],K=+B[2],oe=+B[3];return K>=1&&K<=12&&oe>=1&&oe<=(K===2&&n(z)?29:o[K])}function l(j,B){if(j&&B)return j>B?1:j<B?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function d(j){return function(z){const K=c.exec(z);if(!K)return!1;const oe=+K[1],q=+K[2],W=+K[3],te=K[4],le=K[5]==="-"?-1:1,Q=+(K[6]||0),k=+(K[7]||0);if(Q>23||k>59||j&&!te)return!1;if(oe<=23&&q<=59&&W<60)return!0;const G=q-k*le,V=oe-Q*le-(G<0?1:0);return(V===23||V===-1)&&(G===59||G===-1)&&W<61}}function f(j,B){if(!(j&&B))return;const z=new Date("2020-01-01T"+j).valueOf(),K=new Date("2020-01-01T"+B).valueOf();if(z&&K)return z-K}function p(j,B){if(!(j&&B))return;const z=c.exec(j),K=c.exec(B);if(z&&K)return j=z[1]+z[2]+z[3],B=K[1]+K[2]+K[3],j>B?1:j<B?-1:0}const h=/t|\s/i;function g(j){const B=d(j);return function(K){const oe=K.split(h);return oe.length===2&&s(oe[0])&&B(oe[1])}}function v(j,B){if(!(j&&B))return;const z=new Date(j).valueOf(),K=new Date(B).valueOf();if(z&&K)return z-K}function y(j,B){if(!(j&&B))return;const[z,K]=j.split(h),[oe,q]=B.split(h),W=l(z,oe);if(W!==void 0)return W||f(K,q)}const b=/\/|:/,x=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function w(j){return b.test(j)&&x.test(j)}const E=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function T(j){return E.lastIndex=0,E.test(j)}const R=-2147483648,O=2**31-1;function A(j){return Number.isInteger(j)&&j<=O&&j>=R}function I(j){return Number.isInteger(j)}function P(){return!0}const L=/[^\\]\\Z/;function H(j){if(L.test(j))return!1;try{return new RegExp(j),!0}catch{return!1}}})(Ib)),Ib}var Mb={},WM;function _ae(){return WM||(WM=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=gae(),n=_t(),r=n.operators,o={formatMaximum:{okStr:"<=",ok:r.LTE,fail:r.GT},formatMinimum:{okStr:">=",ok:r.GTE,fail:r.LT},formatExclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},formatExclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},s={message:({keyword:c,schemaCode:d})=>(0,n.str)`should be ${o[c].okStr} ${d}`,params:({keyword:c,schemaCode:d})=>(0,n._)`{comparison: ${o[c].okStr}, limit: ${d}}`};e.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:s,code(c){const{gen:d,data:f,schemaCode:p,keyword:h,it:g}=c,{opts:v,self:y}=g;if(!v.validateFormats)return;const b=new t.KeywordCxt(g,y.RULES.all.format.definition,"format");b.$data?x():w();function x(){const T=d.scopeValue("formats",{ref:y.formats,code:v.code.formats}),R=d.const("fmt",(0,n._)`${T}[${b.schemaCode}]`);c.fail$data((0,n.or)((0,n._)`typeof ${R} != "object"`,(0,n._)`${R} instanceof RegExp`,(0,n._)`typeof ${R}.compare != "function"`,E(R)))}function w(){const T=b.schema,R=y.formats[T];if(!R||R===!0)return;if(typeof R!="object"||R instanceof RegExp||typeof R.compare!="function")throw new Error(`"${h}": format "${T}" does not define "compare" function`);const O=d.scopeValue("formats",{key:T,ref:R,code:v.code.formats?(0,n._)`${v.code.formats}${(0,n.getProperty)(T)}`:void 0});c.fail$data(E(O))}function E(T){return(0,n._)`${T}.compare(${f}, ${p}) ${o[h].fail} 0`}},dependencies:["format"]};const l=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=l})(Mb)),Mb}var QM;function yae(){return QM||(QM=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=vae(),r=_ae(),o=_t(),s=new o.Name("fullFormats"),l=new o.Name("fastFormats"),c=(f,p={keywords:!0})=>{if(Array.isArray(p))return d(f,p,n.fullFormats,s),f;const[h,g]=p.mode==="fast"?[n.fastFormats,l]:[n.fullFormats,s],v=p.formats||n.formatNames;return d(f,v,h,g),p.keywords&&(0,r.default)(f),f};c.get=(f,p="full")=>{const g=(p==="fast"?n.fastFormats:n.fullFormats)[f];if(!g)throw new Error(`Unknown format "${f}"`);return g};function d(f,p,h,g){var v,y;(v=(y=f.opts.code).formats)!==null&&v!==void 0||(y.formats=(0,o._)`require("ajv-formats/dist/formats").${g}`);for(const b of p)f.addFormat(b,h[b])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(fm,fm.exports)),fm.exports}var bae=yae();const hde=ma(bae);let bE;bE=globalThis.crypto;async function wae(e){return(await bE).getRandomValues(new Uint8Array(e))}async function Sae(e){const t="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._~",n=Math.pow(2,8)-Math.pow(2,8)%t.length;let r="";for(;r.length<e;){const o=await wae(e-r.length);for(const s of o)s<n&&(r+=t[s%t.length])}return r}async function Eae(e){return await Sae(e)}async function xae(e){const t=await(await bE).subtle.digest("SHA-256",new TextEncoder().encode(e));return btoa(String.fromCharCode(...new Uint8Array(t))).replace(/\//g,"_").replace(/\+/g,"-").replace(/=/g,"")}async function Rae(e){if(e||(e=43),e<43||e>128)throw`Expected a length between 43 and 128. Received ${e}.`;const t=await Eae(e),n=await xae(t);return{code_verifier:t,code_challenge:n}}const vr=ZB().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:VV.custom,message:"URL must be parseable",fatal:!0}),KU}).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"}),Oae=_r({resource:$().url(),authorization_servers:Oe(vr).optional(),jwks_uri:$().url().optional(),scopes_supported:Oe($()).optional(),bearer_methods_supported:Oe($()).optional(),resource_signing_alg_values_supported:Oe($()).optional(),resource_name:$().optional(),resource_documentation:$().optional(),resource_policy_uri:$().url().optional(),resource_tos_uri:$().url().optional(),tls_client_certificate_bound_access_tokens:Nt().optional(),authorization_details_types_supported:Oe($()).optional(),dpop_signing_alg_values_supported:Oe($()).optional(),dpop_bound_access_tokens_required:Nt().optional()}),nL=_r({issuer:$(),authorization_endpoint:vr,token_endpoint:vr,registration_endpoint:vr.optional(),scopes_supported:Oe($()).optional(),response_types_supported:Oe($()),response_modes_supported:Oe($()).optional(),grant_types_supported:Oe($()).optional(),token_endpoint_auth_methods_supported:Oe($()).optional(),token_endpoint_auth_signing_alg_values_supported:Oe($()).optional(),service_documentation:vr.optional(),revocation_endpoint:vr.optional(),revocation_endpoint_auth_methods_supported:Oe($()).optional(),revocation_endpoint_auth_signing_alg_values_supported:Oe($()).optional(),introspection_endpoint:$().optional(),introspection_endpoint_auth_methods_supported:Oe($()).optional(),introspection_endpoint_auth_signing_alg_values_supported:Oe($()).optional(),code_challenge_methods_supported:Oe($()).optional(),client_id_metadata_document_supported:Nt().optional()}),Tae=_r({issuer:$(),authorization_endpoint:vr,token_endpoint:vr,userinfo_endpoint:vr.optional(),jwks_uri:vr,registration_endpoint:vr.optional(),scopes_supported:Oe($()).optional(),response_types_supported:Oe($()),response_modes_supported:Oe($()).optional(),grant_types_supported:Oe($()).optional(),acr_values_supported:Oe($()).optional(),subject_types_supported:Oe($()),id_token_signing_alg_values_supported:Oe($()),id_token_encryption_alg_values_supported:Oe($()).optional(),id_token_encryption_enc_values_supported:Oe($()).optional(),userinfo_signing_alg_values_supported:Oe($()).optional(),userinfo_encryption_alg_values_supported:Oe($()).optional(),userinfo_encryption_enc_values_supported:Oe($()).optional(),request_object_signing_alg_values_supported:Oe($()).optional(),request_object_encryption_alg_values_supported:Oe($()).optional(),request_object_encryption_enc_values_supported:Oe($()).optional(),token_endpoint_auth_methods_supported:Oe($()).optional(),token_endpoint_auth_signing_alg_values_supported:Oe($()).optional(),display_values_supported:Oe($()).optional(),claim_types_supported:Oe($()).optional(),claims_supported:Oe($()).optional(),service_documentation:$().optional(),claims_locales_supported:Oe($()).optional(),ui_locales_supported:Oe($()).optional(),claims_parameter_supported:Nt().optional(),request_parameter_supported:Nt().optional(),request_uri_parameter_supported:Nt().optional(),require_request_uri_registration:Nt().optional(),op_policy_uri:vr.optional(),op_tos_uri:vr.optional(),client_id_metadata_document_supported:Nt().optional()}),Cae=be({...Tae.shape,...nL.pick({code_challenge_methods_supported:!0}).shape}),Aae=be({access_token:$(),id_token:$().optional(),token_type:$(),expires_in:dN().optional(),scope:$().optional(),refresh_token:$().optional()}).strip(),Iae=be({error:$(),error_description:$().optional(),error_uri:$().optional()}),XM=vr.optional().or(Ge("").transform(()=>{})),Mae=be({redirect_uris:Oe(vr),token_endpoint_auth_method:$().optional(),grant_types:Oe($()).optional(),response_types:Oe($()).optional(),client_name:$().optional(),client_uri:vr.optional(),logo_uri:XM,scope:$().optional(),contacts:Oe($()).optional(),tos_uri:XM,policy_uri:$().optional(),jwks_uri:vr.optional(),jwks:mV().optional(),software_id:$().optional(),software_version:$().optional(),software_statement:$().optional()}).strip(),Pae=be({client_id:$(),client_secret:$().optional(),client_id_issued_at:ht().optional(),client_secret_expires_at:ht().optional()}).strip(),Nae=Mae.merge(Pae);be({error:$(),error_description:$().optional()}).strip();be({token:$(),token_type_hint:$().optional()}).strip();function kae(e){const t=typeof e=="string"?new URL(e):new URL(e.href);return t.hash="",t}function Dae({requestedResource:e,configuredResource:t}){const n=typeof e=="string"?new URL(e):new URL(e.href),r=typeof t=="string"?new URL(t):new URL(t.href);if(n.origin!==r.origin||n.pathname.length<r.pathname.length)return!1;const o=n.pathname.endsWith("/")?n.pathname:n.pathname+"/",s=r.pathname.endsWith("/")?r.pathname:r.pathname+"/";return o.startsWith(s)}class sr extends Error{constructor(t,n){super(t),this.errorUri=n,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 pw extends sr{}pw.errorCode="invalid_request";class Tg extends sr{}Tg.errorCode="invalid_client";class Cg extends sr{}Cg.errorCode="invalid_grant";class Ag extends sr{}Ag.errorCode="unauthorized_client";class mw extends sr{}mw.errorCode="unsupported_grant_type";class gw extends sr{}gw.errorCode="invalid_scope";class vw extends sr{}vw.errorCode="access_denied";class Jc extends sr{}Jc.errorCode="server_error";class _w extends sr{}_w.errorCode="temporarily_unavailable";class yw extends sr{}yw.errorCode="unsupported_response_type";class bw extends sr{}bw.errorCode="unsupported_token_type";class ww extends sr{}ww.errorCode="invalid_token";class Sw extends sr{}Sw.errorCode="method_not_allowed";class Ew extends sr{}Ew.errorCode="too_many_requests";class Ig extends sr{}Ig.errorCode="invalid_client_metadata";class xw extends sr{}xw.errorCode="insufficient_scope";class Rw extends sr{}Rw.errorCode="invalid_target";const Lae={[pw.errorCode]:pw,[Tg.errorCode]:Tg,[Cg.errorCode]:Cg,[Ag.errorCode]:Ag,[mw.errorCode]:mw,[gw.errorCode]:gw,[vw.errorCode]:vw,[Jc.errorCode]:Jc,[_w.errorCode]:_w,[yw.errorCode]:yw,[bw.errorCode]:bw,[ww.errorCode]:ww,[Sw.errorCode]:Sw,[Ew.errorCode]:Ew,[Ig.errorCode]:Ig,[xw.errorCode]:xw,[Rw.errorCode]:Rw};class pde extends Error{constructor(t){super(t??"Unauthorized")}}function $ae(e){return["client_secret_basic","client_secret_post","none"].includes(e)}const Pb="code",Nb="S256";function jae(e,t){const n=e.client_secret!==void 0;return"token_endpoint_auth_method"in e&&e.token_endpoint_auth_method&&$ae(e.token_endpoint_auth_method)&&(t.length===0||t.includes(e.token_endpoint_auth_method))?e.token_endpoint_auth_method:t.length===0?n?"client_secret_basic":"none":n&&t.includes("client_secret_basic")?"client_secret_basic":n&&t.includes("client_secret_post")?"client_secret_post":t.includes("none")?"none":n?"client_secret_post":"none"}function Uae(e,t,n,r){const{client_id:o,client_secret:s}=t;switch(e){case"client_secret_basic":zae(o,s,n);return;case"client_secret_post":Fae(o,s,r);return;case"none":Bae(o,r);return;default:throw new Error(`Unsupported client authentication method: ${e}`)}}function zae(e,t,n){if(!t)throw new Error("client_secret_basic authentication requires a client_secret");const r=btoa(`${e}:${t}`);n.set("Authorization",`Basic ${r}`)}function Fae(e,t,n){n.set("client_id",e),t&&n.set("client_secret",t)}function Bae(e,t){t.set("client_id",e)}async function rL(e){const t=e instanceof Response?e.status:void 0,n=e instanceof Response?await e.text():e;try{const r=Iae.parse(JSON.parse(n)),{error:o,error_description:s,error_uri:l}=r,c=Lae[o]||Jc;return new c(s||"",l)}catch(r){const o=`${t?`HTTP ${t}: `:""}Invalid OAuth error response: ${r}. Raw body: ${n}`;return new Jc(o)}}async function Vae(e,t){try{return await kb(e,t)}catch(n){if(n instanceof Tg||n instanceof Ag)return await e.invalidateCredentials?.("all"),await kb(e,t);if(n instanceof Cg)return await e.invalidateCredentials?.("tokens"),await kb(e,t);throw n}}async function kb(e,{serverUrl:t,authorizationCode:n,scope:r,resourceMetadataUrl:o,fetchFn:s}){const l=await e.discoveryState?.();let c,d,f,p=o;if(!p&&l?.resourceMetadataUrl&&(p=new URL(l.resourceMetadataUrl)),l?.authorizationServerUrl){if(d=l.authorizationServerUrl,c=l.resourceMetadata,f=l.authorizationServerMetadata??await EE(d,{fetchFn:s}),!c)try{c=await wE(t,{resourceMetadataUrl:p},s)}catch{}(f!==l.authorizationServerMetadata||c!==l.resourceMetadata)&&await e.saveDiscoveryState?.({authorizationServerUrl:String(d),resourceMetadataUrl:p?.toString(),resourceMetadata:c,authorizationServerMetadata:f})}else{const T=await Wae(t,{resourceMetadataUrl:p,fetchFn:s});d=T.authorizationServerUrl,f=T.authorizationServerMetadata,c=T.resourceMetadata,await e.saveDiscoveryState?.({authorizationServerUrl:String(d),resourceMetadataUrl:p?.toString(),resourceMetadata:c,authorizationServerMetadata:f})}const h=await qae(t,e,c),g=r||c?.scopes_supported?.join(" ")||e.clientMetadata.scope;let v=await Promise.resolve(e.clientInformation());if(!v){if(n!==void 0)throw new Error("Existing OAuth client information is required when exchanging an authorization code");const T=f?.client_id_metadata_document_supported===!0,R=e.clientMetadataUrl;if(R&&!Hae(R))throw new Ig(`clientMetadataUrl must be a valid HTTPS URL with a non-root pathname, got: ${R}`);if(T&&R)v={client_id:R},await e.saveClientInformation?.(v);else{if(!e.saveClientInformation)throw new Error("OAuth client information must be saveable for dynamic registration");const A=await tle(d,{metadata:f,clientMetadata:e.clientMetadata,scope:g,fetchFn:s});await e.saveClientInformation(A),v=A}}const y=!e.redirectUrl;if(n!==void 0||y){const T=await ele(e,d,{metadata:f,resource:h,authorizationCode:n,fetchFn:s});return await e.saveTokens(T),"AUTHORIZED"}const b=await e.tokens();if(b?.refresh_token)try{const T=await Jae(d,{metadata:f,clientInformation:v,refreshToken:b.refresh_token,resource:h,addClientAuthentication:e.addClientAuthentication,fetchFn:s});return await e.saveTokens(T),"AUTHORIZED"}catch(T){if(!(!(T instanceof sr)||T instanceof Jc))throw T}const x=e.state?await e.state():void 0,{authorizationUrl:w,codeVerifier:E}=await Qae(d,{metadata:f,clientInformation:v,state:x,redirectUrl:e.redirectUrl,scope:g,resource:h});return await e.saveCodeVerifier(E),await e.redirectToAuthorization(w),"REDIRECT"}function Hae(e){if(!e)return!1;try{const t=new URL(e);return t.protocol==="https:"&&t.pathname!=="/"}catch{return!1}}async function qae(e,t,n){const r=kae(e);if(t.validateResourceURL)return await t.validateResourceURL(r,n?.resource);if(n){if(!Dae({requestedResource:r,configuredResource:n.resource}))throw new Error(`Protected resource ${n.resource} does not match expected ${r} (or origin)`);return new URL(n.resource)}}function mde(e){const t=e.headers.get("WWW-Authenticate");if(!t)return{};const[n,r]=t.split(" ");if(n.toLowerCase()!=="bearer"||!r)return{};const o=Db(e,"resource_metadata")||void 0;let s;if(o)try{s=new URL(o)}catch{}const l=Db(e,"scope")||void 0,c=Db(e,"error")||void 0;return{resourceMetadataUrl:s,scope:l,error:c}}function Db(e,t){const n=e.headers.get("WWW-Authenticate");if(!n)return null;const r=new RegExp(`${t}=(?:"([^"]+)"|([^\\s,]+))`),o=n.match(r);return o?o[1]||o[2]:null}async function wE(e,t,n=fetch){const r=await Zae(e,"oauth-protected-resource",n,{protocolVersion:t?.protocolVersion,metadataUrl:t?.resourceMetadataUrl});if(!r||r.status===404)throw await r?.body?.cancel(),new Error("Resource server does not implement OAuth 2.0 Protected Resource Metadata.");if(!r.ok)throw await r.body?.cancel(),new Error(`HTTP ${r.status} trying to load well-known OAuth protected resource metadata.`);return Oae.parse(await r.json())}async function SE(e,t,n=fetch){try{return await n(e,{headers:t})}catch(r){if(r instanceof TypeError)return t?SE(e,void 0,n):void 0;throw r}}function Gae(e,t="",n={}){return t.endsWith("/")&&(t=t.slice(0,-1)),n.prependPathname?`${t}/.well-known/${e}`:`/.well-known/${e}${t}`}async function JM(e,t,n=fetch){return await SE(e,{"MCP-Protocol-Version":t},n)}function Kae(e,t){return!e||e.status>=400&&e.status<500&&t!=="/"}async function Zae(e,t,n,r){const o=new URL(e),s=r?.protocolVersion??sE;let l;if(r?.metadataUrl)l=new URL(r.metadataUrl);else{const d=Gae(t,o.pathname);l=new URL(d,r?.metadataServerUrl??o),l.search=o.search}let c=await JM(l,s,n);if(!r?.metadataUrl&&Kae(c,o.pathname)){const d=new URL(`/.well-known/${t}`,o);c=await JM(d,s,n)}return c}function Yae(e){const t=typeof e=="string"?new URL(e):e,n=t.pathname!=="/",r=[];if(!n)return r.push({url:new URL("/.well-known/oauth-authorization-server",t.origin),type:"oauth"}),r.push({url:new URL("/.well-known/openid-configuration",t.origin),type:"oidc"}),r;let o=t.pathname;return o.endsWith("/")&&(o=o.slice(0,-1)),r.push({url:new URL(`/.well-known/oauth-authorization-server${o}`,t.origin),type:"oauth"}),r.push({url:new URL(`/.well-known/openid-configuration${o}`,t.origin),type:"oidc"}),r.push({url:new URL(`${o}/.well-known/openid-configuration`,t.origin),type:"oidc"}),r}async function EE(e,{fetchFn:t=fetch,protocolVersion:n=sE}={}){const r={"MCP-Protocol-Version":n,Accept:"application/json"},o=Yae(e);for(const{url:s,type:l}of o){const c=await SE(s,r,t);if(c){if(!c.ok){if(await c.body?.cancel(),c.status>=400&&c.status<500)continue;throw new Error(`HTTP ${c.status} trying to load ${l==="oauth"?"OAuth":"OpenID provider"} metadata from ${s}`)}return l==="oauth"?nL.parse(await c.json()):Cae.parse(await c.json())}}}async function Wae(e,t){let n,r;try{n=await wE(e,{resourceMetadataUrl:t?.resourceMetadataUrl},t?.fetchFn),n.authorization_servers&&n.authorization_servers.length>0&&(r=n.authorization_servers[0])}catch{}r||(r=String(new URL("/",e)));const o=await EE(r,{fetchFn:t?.fetchFn});return{authorizationServerUrl:r,authorizationServerMetadata:o,resourceMetadata:n}}async function Qae(e,{metadata:t,clientInformation:n,redirectUrl:r,scope:o,state:s,resource:l}){let c;if(t){if(c=new URL(t.authorization_endpoint),!t.response_types_supported.includes(Pb))throw new Error(`Incompatible auth server: does not support response type ${Pb}`);if(t.code_challenge_methods_supported&&!t.code_challenge_methods_supported.includes(Nb))throw new Error(`Incompatible auth server: does not support code challenge method ${Nb}`)}else c=new URL("/authorize",e);const d=await Rae(),f=d.code_verifier,p=d.code_challenge;return c.searchParams.set("response_type",Pb),c.searchParams.set("client_id",n.client_id),c.searchParams.set("code_challenge",p),c.searchParams.set("code_challenge_method",Nb),c.searchParams.set("redirect_uri",String(r)),s&&c.searchParams.set("state",s),o&&c.searchParams.set("scope",o),o?.includes("offline_access")&&c.searchParams.append("prompt","consent"),l&&c.searchParams.set("resource",l.href),{authorizationUrl:c,codeVerifier:f}}function oL(e,t,n){return new URLSearchParams({grant_type:"authorization_code",code:e,code_verifier:t,redirect_uri:String(n)})}async function xE(e,{metadata:t,tokenRequestParams:n,clientInformation:r,addClientAuthentication:o,resource:s,fetchFn:l}){const c=t?.token_endpoint?new URL(t.token_endpoint):new URL("/token",e),d=new Headers({"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json"});if(s&&n.set("resource",s.href),o)await o(d,n,c,t);else if(r){const p=t?.token_endpoint_auth_methods_supported??[],h=jae(r,p);Uae(h,r,d,n)}const f=await(l??fetch)(c,{method:"POST",headers:d,body:n});if(!f.ok)throw await rL(f);return Aae.parse(await f.json())}async function Xae(e,{metadata:t,clientInformation:n,authorizationCode:r,codeVerifier:o,redirectUri:s,resource:l,addClientAuthentication:c,fetchFn:d}){const f=oL(r,o,s);return xE(e,{metadata:t,tokenRequestParams:f,clientInformation:n,addClientAuthentication:c,resource:l,fetchFn:d})}async function Jae(e,{metadata:t,clientInformation:n,refreshToken:r,resource:o,addClientAuthentication:s,fetchFn:l}){const c=new URLSearchParams({grant_type:"refresh_token",refresh_token:r}),d=await xE(e,{metadata:t,tokenRequestParams:c,clientInformation:n,addClientAuthentication:s,resource:o,fetchFn:l});return{refresh_token:r,...d}}async function ele(e,t,{metadata:n,resource:r,authorizationCode:o,fetchFn:s}={}){const l=e.clientMetadata.scope;let c;if(e.prepareTokenRequest&&(c=await e.prepareTokenRequest(l)),!c){if(!o)throw new Error("Either provider.prepareTokenRequest() or authorizationCode is required");if(!e.redirectUrl)throw new Error("redirectUrl is required for authorization_code flow");const f=await e.codeVerifier();c=oL(o,f,e.redirectUrl)}const d=await e.clientInformation();return xE(t,{metadata:n,tokenRequestParams:c,clientInformation:d??void 0,addClientAuthentication:e.addClientAuthentication,resource:r,fetchFn:s})}async function tle(e,{metadata:t,clientMetadata:n,scope:r,fetchFn:o}){let s;if(t){if(!t.registration_endpoint)throw new Error("Incompatible auth server: does not support dynamic client registration");s=new URL(t.registration_endpoint)}else s=new URL("/register",e);const l=await(o??fetch)(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...n,...r!==void 0?{scope:r}:{}})});if(!l.ok)throw await rL(l);return Nae.parse(await l.json())}async function iL(e){if(!e.getServerCapabilities()?.resources)return{resources:[]};try{return await e.listResources()}catch(n){if(n instanceof gv&&n.code===df.MethodNotFound)return{resources:[]};throw n}}async function nle(e,t){return await e.readResource({uri:t})}function gde(e){const t=ir.c(12);let n,r;t[0]!==e?({client:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let o;t[3]!==n?(o=hv.mcpResourcesList(n),t[3]=n,t[4]=o):o=t[4];let s;t[5]!==n?(s=()=>iL(n),t[5]=n,t[6]=s):s=t[6];const l=r.staleTime??3e4;let c;return t[7]!==r||t[8]!==o||t[9]!==s||t[10]!==l?(c={...r,queryKey:o,queryFn:s,staleTime:l,retry:!1},t[7]=r,t[8]=o,t[9]=s,t[10]=l,t[11]=c):c=t[11],hf(c)}function vde(e){const t=ir.c(12);let n,r;t[0]!==e?({client:n,...r}=e,t[0]=e,t[1]=n,t[2]=r):(n=t[1],r=t[2]);let o;t[3]!==n?(o=hv.mcpResourcesList(n),t[3]=n,t[4]=o):o=t[4];let s;t[5]!==n?(s=()=>iL(n),t[5]=n,t[6]=s):s=t[6];const l=r.staleTime??3e4;let c;return t[7]!==r||t[8]!==o||t[9]!==s||t[10]!==l?(c={...r,queryKey:o,queryFn:s,staleTime:l,retry:!1},t[7]=r,t[8]=o,t[9]=s,t[10]=l,t[11]=c):c=t[11],OP(c)}function _de(e){const t=ir.c(15);let n,r,o;t[0]!==e?({client:n,uri:o,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o):(n=t[1],r=t[2],o=t[3]);let s;t[4]!==n||t[5]!==o?(s=hv.mcpReadResource(n,o),t[4]=n,t[5]=o,t[6]=s):s=t[6];let l;t[7]!==n||t[8]!==o?(l=()=>nle(n,o),t[7]=n,t[8]=o,t[9]=l):l=t[9];const c=r.staleTime??3e4;let d;return t[10]!==r||t[11]!==s||t[12]!==l||t[13]!==c?(d={...r,queryKey:s,queryFn:l,staleTime:c,retry:!1},t[10]=r,t[11]=s,t[12]=l,t[13]=c,t[14]=d):d=t[14],hf(d)}const sL="ui-resource-html";function yde(e){const t=ir.c(20);let n,r,o,s,l;t[0]!==e?({orgSlug:o,connectionId:n,uri:l,meshUrl:r,...s}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=l):(n=t[1],r=t[2],o=t[3],s=t[4],l=t[5]);let c;t[6]!==n||t[7]!==o||t[8]!==l?(c=hv.mcpUiResourceHtml(o,n,l),t[6]=n,t[7]=o,t[8]=l,t[9]=c):c=t[9];let d;t[10]!==n||t[11]!==r||t[12]!==o||t[13]!==l?(d=async()=>{const g=`${r??(typeof window<"u"?window.location.origin:"")}/api/${encodeURIComponent(o)}/mcp/${encodeURIComponent(n)}/ui-resource?uri=${encodeURIComponent(l)}`,v=await fetch(g,{credentials:"include"});if(!v.ok)throw new Error(`Failed to read UI resource (${v.status})`);return v.text()},t[10]=n,t[11]=r,t[12]=o,t[13]=l,t[14]=d):d=t[14];const f=s.staleTime??3e4;let p;return t[15]!==s||t[16]!==c||t[17]!==d||t[18]!==f?(p={...s,queryKey:c,queryFn:d,staleTime:f,retry:!1},t[15]=s,t[16]=c,t[17]=d,t[18]=f,t[19]=p):p=t[19],hf(p)}const rle=be({authorizationEndpoint:$().url(),tokenEndpoint:$().url(),introspectionEndpoint:$().url().optional(),clientId:$(),clientSecret:$().optional(),scopes:Oe($()),grantType:dn(["authorization_code","client_credentials"])}),eP=be({type:Ge("object"),properties:Mt($(),Xt()).optional(),required:Oe($()).optional()}).catchall(Xt()),ole=gE.extend({inputSchema:eP,outputSchema:eP.optional()}),ile=be({headers:Mt($(),$()).optional()}),sle=be({command:$().describe("Command to run (e.g., 'npx', 'node')"),args:Oe($()).optional().describe("Command arguments"),cwd:$().optional().describe("Working directory"),envVars:Mt($(),$()).optional().describe("Environment variables (encrypted in storage)")}),aL=be({id:$().describe("Unique identifier for the connection"),title:$().describe("Human-readable name for the connection"),created_at:$().describe("When the connection was created"),updated_at:$().describe("When the connection was last updated"),created_by:$().describe("User ID who created the connection"),updated_by:$().optional().describe("User ID who last updated the connection"),organization_id:$().describe("Organization ID this connection belongs to"),description:$().nullable().describe("Description of the connection"),icon:$().nullable().describe("Icon URL for the connection"),app_name:$().nullable().describe("Associated app name"),app_id:$().nullable().describe("Associated app ID"),slug:$().nullable().optional().describe("URL-safe slug derived from app_name, connection_url, or title"),connection_type:dn(["HTTP","SSE","Websocket","STDIO","VIRTUAL"]).describe("Type of connection"),connection_url:$().nullable().describe("URL for HTTP/SSE/WebSocket connections. virtual://$id for VIRTUAL. Null for STDIO."),connection_token:$().nullable().describe("Authentication token (for HTTP connections)"),connection_headers:fn([sle,ile]).nullable().describe("Connection parameters. HTTP: { headers }. STDIO: { command, args, cwd, envVars }"),oauth_config:rle.nullable().describe("OAuth configuration"),configuration_state:Mt($(),Xt()).nullable().describe("Configuration state (decrypted)"),configuration_scopes:Oe($()).nullable().optional().describe("Configuration scopes"),metadata:Mt($(),Xt()).nullable().describe("Additional metadata (includes repository info)"),tools:Oe(ole).nullable().describe("Discovered tools from MCP"),bindings:Oe($()).nullable().describe("Detected bindings"),status:dn(["active","inactive","error"]).describe("Current status")});aL.omit({created_at:!0,updated_at:!0,created_by:!0,updated_by:!0,organization_id:!0,tools:!0,bindings:!0,status:!0}).partial({id:!0,description:!0,icon:!0,app_name:!0,app_id:!0,connection_url:!0,connection_token:!0,connection_headers:!0,oauth_config:!0,configuration_state:!0,configuration_scopes:!0,metadata:!0}).extend({icon:$().nullish()});aL.partial();function bde(e){return e!=null&&"command"in e}function wde(e){return!e||!e.startsWith("virtual://")?null:e.replace("virtual://","")}const kd=be({connection_id:$().describe("Connection ID"),selected_tools:Oe($()).nullable().describe("Selected tool names. null = all tools included, array = only these tools included"),selected_resources:Oe($()).nullable().describe("Selected resource URIs or patterns. Supports * and ** wildcards for pattern matching. null = all resources included, array = only these resources included"),selected_prompts:Oe($()).nullable().describe("Selected prompt names. null = all prompts included, array = only these prompts included")}),lL=kd.extend({selected_tools:kd.shape.selected_tools.optional(),selected_resources:kd.shape.selected_resources.optional(),selected_prompts:kd.shape.selected_prompts.optional()}),ale=be({connectionId:$(),toolName:$(),label:$(),icon:$().nullable().optional()}),lle=be({id:$().describe("Stable id; used as React key and ?tab= value"),title:$().describe("Tab label"),icon:$().optional().describe("Optional lucide icon name"),view:be({type:Ge("ext-app"),appId:$(),args:Mt($(),Xt()).optional()})}),cle=be({defaultMainView:be({type:$(),id:$().optional(),toolName:$().optional()}).nullable().optional(),chatDefaultOpen:Nt().nullable().optional(),tabs:Oe(lle).optional()}),tP=be({connectionId:$().optional().describe("Connection that owns the resource — the host opens a direct MCP client to this connection so the iframe can call tools by their bare names."),resourceUri:$().describe("ui:// resource URI exposed by `connectionId`. Read on the home page and rendered via MCPAppRenderer."),minHeight:ht().int().positive().optional(),maxHeight:ht().int().positive().optional()}),RE=be({banner:$().nullable().optional(),bannerColor:$().nullable().optional(),icon:$().nullable().optional(),themeColor:$().nullable().optional(),pinnedViews:Oe(ale).nullable().optional(),layout:cle.nullable().optional(),homeTile:tP.nullable().optional(),homeTiles:Oe(tP).nullable().optional(),homePrompts:Oe($()).nullable().optional()});function Sde(e){const t=e?.homeTiles;if(Array.isArray(t)&&t.length>0)return t;const n=e?.homeTile;return n?[n]:[]}const ule=/^[A-Za-z_][A-Za-z0-9_]*$/,nP=$().min(1).regex(ule,{message:"Env var key must start with a letter or underscore and contain only letters, digits, and underscores."}),dle=Yw("kind",[be({key:nP,kind:Ge("literal"),value:$()}),be({key:nP,kind:Ge("secret"),secretId:$().min(1)})]),OE=be({selected:$().nullable().optional().describe("User-selected package manager (npm | pnpm | yarn | bun | deno). Null/absent means autodetect on next SANDBOX_START."),port:$().nullable().optional().describe("User-selected dev server port as a string (allows '' / null for unset). Null/absent means autodetect."),path:$().nullable().optional().describe("Optional path (relative to repo root) to the directory containing package.json. Null/absent means repo root. Forwarded as `application.packageManager.path` to the daemon config."),env:Oe(dle).nullable().optional().describe("Env vars injected on every SANDBOX_START. Literal entries inline their value; secret entries store a secretId that mesh resolves via the credential vault before posting /_sandbox/config.")}),TE=be({url:$().describe("GitHub repository URL"),owner:$().describe("Repository owner"),name:$().describe("Repository name"),installationId:ht().optional().describe("GitHub App installation ID. Absent when the repo was linked without a GitHub connection (public-clone mode)."),connectionId:$().optional().describe("ID of the mcp-github connection used for authentication. Absent for public repos cloned without credentials.")}),fle=dn(["agent-sandbox","user-desktop"]),hle=dn(["agent-sandbox","user-desktop","cluster"]);function cL(e){return e==="cluster"?"agent-sandbox":e}const uL={sandboxHandle:$().describe("Provider-specific handle"),previewUrl:$().nullable().describe("URL where the sandbox's iframe-proxied UI is served, or null when the sandbox has no dev server (blank / tool sandboxes)."),sandboxApiUrl:$().nullable().optional().describe("Daemon's public URL — what cluster→daemon RPCs target. Equal to previewUrl for user-desktop; null/absent for the agent-sandbox provider (routes through hosted ingress)."),sandboxProviderKind:fle.optional(),createdAt:ht().optional().describe("Epoch ms the entry was first written by SANDBOX_START. Used by the booting overlay to show a stable elapsed timer that survives browser reloads. Optional for backward compatibility with entries written before this field existed."),startedWith:be({packageManager:$().nullable().optional().describe("metadata.runtime.selected at the time of SANDBOX_START"),port:$().nullable().optional().describe("metadata.runtime.port at the time of SANDBOX_START"),path:$().nullable().optional().describe("metadata.runtime.path at the time of SANDBOX_START")}).optional().describe("Snapshot of metadata.runtime fields (selected/port/path) used at SANDBOX_START. The Preview tab compares the live metadata.runtime against this to decide if a restart is required to apply changes.")},dL=be(uL),ple=be({...uL,sandboxProviderKind:hle.optional()});function mle(e){const t=ple.parse(e);return dL.parse({...t,sandboxProviderKind:t.sandboxProviderKind?cL(t.sandboxProviderKind):void 0})}function Ede(e){if(!e||typeof e!="object"||Array.isArray(e))return{};const t=e,n={};for(const[r,o]of Object.entries(t)){if(!o||typeof o!="object"||r!=="cluster"&&r!=="agent-sandbox"&&r!=="user-desktop")continue;const s=cL(r);try{if(r==="cluster"&&n[s])continue;n[s]=mle(o)}catch{}}return n}const CE=Mt($().describe("userId"),Mt($().describe("branch"),Mt($().describe("sandboxProviderKind"),dL))),xde=be({id:$().describe("Unique identifier"),title:$().describe("Human-readable name"),description:$().nullable().describe("Description"),icon:$().nullable().describe("Icon URL"),created_at:$().describe("Creation timestamp"),updated_at:$().describe("Last update timestamp"),created_by:$().describe("User ID who created this item"),updated_by:$().optional().describe("User ID who last updated this item"),organization_id:$().describe("Organization ID this item belongs to"),status:dn(["active","inactive"]).describe("Current status"),pinned:Nt().describe("Whether this space is pinned to the sidebar"),metadata:be({instructions:$().nullable().describe("Instructions also used as system prompt"),enabled_plugins:Oe($()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Oe($()).nullable().optional().describe("Allowlist of Virtual MCP (agent) IDs this agent may delegate to via subtask. null/absent = all active org agents; empty array = itself only (no cross-agent delegation)."),ui:RE.nullable().optional().describe("UI customization settings"),githubRepo:TE.nullable().optional().describe("Linked GitHub repository"),runtime:OE.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:CE.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }")}).loose().describe("Metadata"),connections:Oe(kd).describe("Connections with their selected tools, resources, and prompts")});be({title:$().min(1).max(255).describe("Name for the virtual MCP"),description:$().nullable().optional().describe("Optional description"),icon:$().nullish().describe("Optional icon URL"),status:dn(["active","inactive"]).optional().default("active").describe("Initial status"),pinned:Nt().optional().default(!1).describe("Pin to sidebar"),metadata:be({instructions:$().nullable().optional().describe("MCP server instructions"),enabled_plugins:Oe($()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Oe($()).nullable().optional().describe("Allowlist of Virtual MCP (agent) IDs this agent may delegate to via subtask. null/absent = all active org agents; empty array = itself only (no cross-agent delegation)."),ui:RE.nullable().optional().describe("UI customization settings"),githubRepo:TE.nullable().optional().describe("Linked GitHub repository"),runtime:OE.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:CE.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }")}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:Oe(lL).describe("Connections to include/exclude (can be empty for exclusion mode)")});be({title:$().min(1).max(255).optional().describe("New name"),description:$().nullable().optional().describe("New description (null to clear)"),icon:$().nullish().describe("New icon URL"),status:dn(["active","inactive"]).optional().describe("New status"),pinned:Nt().optional().describe("Pin/unpin from sidebar"),metadata:be({instructions:$().nullable().optional().describe("MCP server instructions"),enabled_plugins:Oe($()).nullable().optional().describe("List of enabled plugin IDs"),subAgents:Oe($()).nullable().optional().describe("Allowlist of Virtual MCP (agent) IDs this agent may delegate to via subtask. null/absent = all active org agents; empty array = itself only (no cross-agent delegation)."),ui:RE.nullable().optional().describe("UI customization settings"),githubRepo:TE.nullable().optional().describe("Linked GitHub repository"),runtime:OE.nullable().optional().describe("User-pinned runtime config (package manager, dev port). Empty fields = autodetect."),sandboxMap:CE.optional().describe("Per-user, per-branch sandbox mapping: sandboxMap[userId][branch] -> { sandboxHandle, previewUrl }")}).loose().nullable().optional().describe("Additional metadata including MCP server instructions"),connections:Oe(lL).optional().describe("New connections (replaces existing)")});var rP;(function(e){e.Completable="McpCompletable"})(rP||(rP={}));function oP(e){let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=(t<<5)-t+r,t=t&t}return Math.abs(t).toString(16)}let fL=null;function gle(e){fL=e}function vle(){return fL??window.location.origin}function hL(){try{const e=window.location.hostname;return e==="localhost"||e.endsWith(".localhost")||e==="127.0.0.1"||e==="::1"}catch{return!1}}const iP=new Map,pL="mcp:oauth:callback:";class _le{serverUrl;_clientMetadata;_redirectUrl;_windowMode;_state=null;_codeVerifier=null;_clientInfo=null;_tokens=null;constructor(t){this.serverUrl=t.serverUrl,this._redirectUrl=t.callbackUrl??`${vle()}/oauth/callback`,this._windowMode=t.windowMode??"popup";const n=t.scope?Array.isArray(t.scope)?t.scope.join(" "):t.scope:void 0;this._clientMetadata={redirect_uris:[this._redirectUrl],token_endpoint_auth_method:"none",grant_types:["authorization_code","refresh_token"],response_types:["code"],client_name:t.clientName??"@decocms/mesh MCP client",...n&&{scope:n}},iP.set(oP(this.serverUrl),this)}get redirectUrl(){return this._redirectUrl}get clientMetadata(){return this._clientMetadata}state(){return this._state||(this._state=crypto.randomUUID()),this._state}getStoredState(){return this._state}clientInformation(){return this._clientInfo??void 0}saveClientInformation(t){this._clientInfo=t}tokens(){return this._tokens??void 0}saveTokens(t){this._tokens=t}redirectToAuthorization(t){if(this._windowMode==="tab"){if(!window.open(t.toString(),"_blank"))throw new Error("Tab was blocked")}else{const o=window.screenX+(window.outerWidth-600)/2,s=window.screenY+(window.outerHeight-700)/2;if(!window.open(t.toString(),"mcp-oauth",`width=600,height=700,left=${o},top=${s},popup=yes`)&&!window.open(t.toString(),"_blank"))throw new Error("Popup was blocked")}}saveCodeVerifier(t){this._codeVerifier=t}codeVerifier(){if(!this._codeVerifier)throw new Error("Code verifier not found");return this._codeVerifier}invalidateCredentials(){this._clientInfo=null,this._tokens=null,this._codeVerifier=null,this._state=null}getServerUrl(){return this.serverUrl}cleanup(){iP.delete(oP(this.serverUrl))}}async function Rde(e){const t=e.meshUrl??window.location.origin,n=e.orgSlug?`/api/${encodeURIComponent(e.orgSlug)}/mcp/${e.connectionId}`:`/mcp/${e.connectionId}`,r=new URL(n,t),o=new _le({serverUrl:r.href,clientName:e.clientName,clientUri:e.clientUri,callbackUrl:e.callbackUrl,scope:e.scope,windowMode:e.windowMode}),s={fn:null};try{const l=new Promise((h,g)=>{const v=e.timeout||12e4;let y,b=!1;const x=o.state(),w=`${pL}${x}`,E=()=>{window.removeEventListener("message",R),window.removeEventListener("storage",O),clearTimeout(y);try{localStorage.removeItem(w)}catch{}};s.fn=A=>{b||(b=!0,E(),g(A))};const T=async A=>{if(b)return;if(b=!0,!A.success){E(),g(new Error(A.error||"OAuth authentication failed"));return}const{code:I,state:P}=A;if(!I){E(),g(new Error("Missing authorization code"));return}if(o.getStoredState()!==P){E(),g(new Error("OAuth state mismatch - possible CSRF attack"));return}try{const j=(await wE(r))?.authorization_servers?.[0]||r,B=await EE(j),z=o.clientInformation();if(!z){E(),g(new Error("Client information not found"));return}const K=o.codeVerifier(),oe=await Xae(j,{metadata:B,clientInformation:z,authorizationCode:I,codeVerifier:K,redirectUri:o.redirectUrl,resource:new URL(r)});E(),h({tokens:oe,clientId:z.client_id??null,clientSecret:"client_secret"in z?z.client_secret:null,tokenEndpoint:B?.token_endpoint??null,userinfoEndpoint:B?.userinfo_endpoint??null})}catch(H){E(),g(H)}},R=async A=>{!hL()&&A.origin!==window.location.origin||A.data?.type==="mcp:oauth:callback"&&await T(A.data)},O=async A=>{if(!(A.key!==w||!A.newValue))try{const I=JSON.parse(A.newValue);await T(I)}catch{}};window.addEventListener("message",R),window.addEventListener("storage",O),y=setTimeout(()=>{b||(b=!0,E(),g(new Error("OAuth authentication timeout")))},v)});if(l.catch(()=>{}),await Vae(o,{serverUrl:r})==="REDIRECT"){const h=await l,g=h.tokens;return{token:h.tokens.access_token,tokenInfo:{accessToken:h.tokens.access_token,refreshToken:h.tokens.refresh_token??null,expiresIn:h.tokens.expires_in??null,scope:h.tokens.scope??null,clientId:h.clientId,clientSecret:h.clientSecret,tokenEndpoint:h.tokenEndpoint,userinfoEndpoint:h.userinfoEndpoint,idToken:typeof g.id_token=="string"?g.id_token:null},error:null}}const d=o.tokens(),f=o.clientInformation(),p=d;return{token:d?.access_token||null,tokenInfo:d?{accessToken:d.access_token,refreshToken:d.refresh_token??null,expiresIn:d.expires_in??null,scope:d.scope??null,clientId:f?.client_id??null,clientSecret:f&&"client_secret"in f?f.client_secret:null,tokenEndpoint:null,userinfoEndpoint:null,idToken:p&&typeof p.id_token=="string"?p.id_token:null}:null,error:null}}catch(l){return s.fn&&s.fn(l instanceof Error?l:new Error(String(l))),{token:null,tokenInfo:null,error:l instanceof Error?l.message:String(l)}}finally{o.cleanup()}}function Lb(e,t){if(window.opener&&!window.opener.closed){const n=hL()?"*":window.location.origin;return window.opener.postMessage(e,n),!0}if(t)try{const n=`${pL}${t}`;return localStorage.setItem(n,JSON.stringify(e)),!0}catch{}return!1}async function Ode(){const e=new URLSearchParams(window.location.search),t=e.get("code");let n=e.get("state");const r=e.get("error"),o=e.get("error_description");let s=n;if(n)try{const c=atob(n),d=JSON.parse(c);d.clientState&&(s=d.clientState)}catch{}if(r){const c=o||r;return Lb({type:"mcp:oauth:callback",success:!1,error:c},s),{success:!1,error:c}}if(!t||!n){const c="Missing code or state parameter";return Lb({type:"mcp:oauth:callback",success:!1,error:c},s),{success:!1,error:c}}return n=s||n,Lb({type:"mcp:oauth:callback",success:!0,code:t,state:n},n)?{success:!0}:{success:!1,error:"Parent window not available"}}function wv(){if(typeof window<"u"&&window.location?.origin)return window.location.origin}function yle(e){try{const t=wv(),n=t?new URL(e,t):new URL(e),r=n.pathname.match(/^\/api\/[^/]+\/mcp\/([^/]+)/);return r?r[1]??null:n.pathname.match(/^\/mcp\/([^/]+)/)?.[1]??null}catch{return null}}function ble(e){try{const t=wv();return(t?new URL(e,t):new URL(e)).pathname.match(/^\/api\/([^/]+)\/mcp\//)?.[1]??null}catch{return null}}async function wle(e,t,n){try{const r=`/api/${encodeURIComponent(t)}/connections/${e}/oauth-token/status`,o=n?new URL(r,n).href:r,s=wv(),l=!n||new URL(n).origin===s,c=await fetch(o,{credentials:l?"include":"omit"});return c.ok?{hasToken:(await c.json()).hasToken===!0}:{hasToken:!1}}catch{return{hasToken:!1}}}async function Tde({url:e,token:t,orgId:n,meshUrl:r}){try{const o=new Headers;o.set("Content-Type","application/json"),o.set("Accept","application/json, text/event-stream");const s=await fetch(e,{method:"POST",headers:o,body:JSON.stringify({jsonrpc:"2.0",id:1,method:"initialize",params:{protocolVersion:"2025-06-18",capabilities:{},clientInfo:{name:"@decocms/mesh MCP client",version:"1.0.0"}}})}),l=yle(e),c=ble(e),d=wv(),f=r??(d?new URL(e,d).origin:new URL(e).origin);if(s.ok)return{isAuthenticated:!0,supportsOAuth:!1,hasOAuthToken:(l&&c?await wle(l,c,f):{hasToken:!1}).hasToken};let p;try{const v=await s.json();p=v.error||v.message}catch{}return s.status>=500?{isAuthenticated:!1,supportsOAuth:!1,hasOAuthToken:!1,error:p||`HTTP ${s.status}`,isServerError:!0}:{isAuthenticated:!1,supportsOAuth:!!s.headers.get("WWW-Authenticate"),hasOAuthToken:!1,error:p||`HTTP ${s.status}`}}catch(o){return console.error("[isConnectionAuthenticated] Error:",o),{isAuthenticated:!1,supportsOAuth:!1,hasOAuthToken:!1,error:o.message}}}const Sle="mesh-ui-resources",Mg="html",Ele=10080*60*1e3,xle=50,Rle=16*1024*1024;function Ole(e){return e[0]==="mcp"&&e[1]===sL}function Sv(){return new Promise((e,t)=>{const n=indexedDB.open(Sle,1);n.onupgradeneeded=()=>{n.result.objectStoreNames.contains(Mg)||n.result.createObjectStore(Mg)},n.onsuccess=()=>e(n.result),n.onerror=()=>t(n.error)})}function eu(e,t){return e.transaction(Mg,t).objectStore(Mg)}function Ow(e){return new Promise((t,n)=>{e.onsuccess=()=>t(e.result),e.onerror=()=>n(e.error)})}async function Tle(e){if(!(typeof indexedDB>"u"))try{const t=await Sv(),n=eu(t,"readonly"),r=await Ow(n.getAllKeys()),o=await Ow(n.getAll()),s=Date.now(),l=r.map((f,p)=>({key:f,value:o[p]})).sort((f,p)=>(p.value?.updatedAt??0)-(f.value?.updatedAt??0)),c=[];let d=0;for(const{key:f,value:p}of l){if(!p||s-p.updatedAt>Ele||d>=xle){c.push(f);continue}d++;try{const g=JSON.parse(String(f));e.getQueryData(g)===void 0&&e.setQueryData(g,p.html,{updatedAt:0})}catch{c.push(f)}}if(c.length>0){const f=eu(t,"readwrite");for(const p of c)f.delete(p)}}catch{}}function Cle(e){if(typeof indexedDB>"u")return()=>{};const t=Sv().catch(()=>null);return e.getQueryCache().subscribe(n=>{const r=n.query;if(!Array.isArray(r.queryKey)||!Ole(r.queryKey)||r.state.status!=="success")return;const o=r.state.data;typeof o!="string"||o.length>Rle||t.then(s=>{if(s)try{eu(s,"readwrite").put({html:o,updatedAt:Date.now()},JSON.stringify(r.queryKey))}catch{}})})}function Ale(){typeof indexedDB>"u"||Sv().then(e=>eu(e,"readwrite").clear()).catch(()=>{})}async function Cde(e){if(!(typeof indexedDB>"u"))try{const t=await Sv(),n=await Ow(eu(t,"readonly").getAllKeys()),r=eu(t,"readwrite");for(const o of n)try{const s=JSON.parse(String(o));s[1]===sL&&s[3]===e&&r.delete(o)}catch{}}catch{}}const Pg="mesh:rq-cache",mL=1440*60*1e3,Ile=1e3,Mle=new Set(["publicConfig","ai-provider-keys","organization-settings","home-next-actions"]),Ple=new Set(["VIRTUAL_MCP","CONNECTIONS"]);let gL=!1,vL=!1;function Nle(e){const t=e[0];return typeof t=="string"&&Mle.has(t)?!0:e[3]==="collection"&&typeof e[4]=="string"&&Ple.has(e[4])}function kle(e){if(!(typeof window>"u"))try{const t=window.localStorage.getItem(Pg);if(!t)return;const n=JSON.parse(t),r=!n.timestamp||Date.now()-n.timestamp>mL;if(n.buster!=="3.26.3"||r||!n.state){window.localStorage.removeItem(Pg);return}S8(e,n.state),gL=!0}catch{Lle()}}function Dle(e){if(typeof window>"u")return()=>{};let t=null;const n=()=>{t=null;try{const r=w8(e,{shouldDehydrateQuery:o=>o.state.status==="success"&&Nle(o.queryKey)});window.localStorage.setItem(Pg,JSON.stringify({buster:"3.26.3",timestamp:Date.now(),state:r}))}catch{}};return e.getQueryCache().subscribe(()=>{t==null&&(t=setTimeout(n,Ile))})}const _L="studio:org-cache:";function yL(e){return`${_L}${e}`}function Ade(e,t){if(typeof window>"u")return null;try{const n=window.localStorage.getItem(yL(e));if(!n)return null;const r=JSON.parse(n)[t];return!r||Date.now()-r.updatedAt>mL?null:(vL=!0,r)}catch{return null}}function Ide(e,t,n){if(!(typeof window>"u"))try{const r=yL(e),o=window.localStorage.getItem(r),s=o?JSON.parse(o):{};s[t]={data:n,updatedAt:Date.now()},window.localStorage.setItem(r,JSON.stringify(s))}catch{}}function Lle(){if(Ale(),!(typeof window>"u"))try{window.localStorage.removeItem(Pg);for(let e=window.localStorage.length-1;e>=0;e--){const t=window.localStorage.key(e);t?.startsWith(_L)&&window.localStorage.removeItem(t)}}catch{}}function $le(){return gL}function jle(){return vL}let pa=!1,Tw=null,sP=!1;function Ule(e,t){pa||typeof window>"u"||(iu.init(e,{api_host:t,capture_pageview:"history_change",capture_pageleave:!0,autocapture:!0,capture_performance:{web_vitals:!0,network_timing:!0},capture_exceptions:!0,session_recording:{maskAllInputs:!0,blockClass:"ph-no-capture"},person_profiles:"identified_only"}),pa=!0)}function zle(e,t){pa&&iu.identify(e,t)}function Fle(){pa&&(iu.reset(),Tw=null)}function Ble(e,t){pa&&iu.capture(e,t)}function Mde(){if(!pa||sP||typeof performance>"u")return;sP=!0;const e=performance.getEntriesByType("navigation")[0],t=n=>{const r=performance.getEntriesByName(n,"measure")[0];return r?Math.round(r.duration):void 0};Ble("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("mesh:config-fetch"),active_org_fetch_ms:t("mesh:active-org-fetch"),time_to_shell_ms:Math.round(performance.now()),cache_restored:$le(),org_cache_restored:jle()})}function Pde(e,t){pa&&e!==Tw&&(iu.group("organization",e,t),Tw=e)}function bL(e,t){if(pa)try{iu.captureException(e,t)}catch{}}let hm=null;function Vle({children:e}){const t=CP(),{data:n}=Kg.useSession();if(t.posthog){Ule(t.posthog.key,t.posthog.host);const r=n?.user?.id??null;r&&r!==hm?(zle(r,{email:n?.user?.email,name:n?.user?.name}),hm=r):!r&&hm&&(Fle(),hm=null)}return C.jsx(C.Fragment,{children:e})}const AE=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.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"}));AE.displayName="AlertTriangle";const wL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.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"}));wL.displayName="Archive";const SL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M11 4.5h7.3c1.12 0 1.68 0 2.108.218a2 2 0 0 1 .874.874c.218.428.218.988.218 2.108V9c0 .932 0 1.398-.152 1.765a2 2 0 0 1-1.083 1.083C19.898 12 19.432 12 18.5 12M13 19.5H5.7c-1.12 0-1.68 0-2.108-.218a2 2 0 0 1-.874-.874C2.5 17.98 2.5 17.42 2.5 16.3V15c0-.932 0-1.398.152-1.765a2 2 0 0 1 1.083-1.083C4.102 12 4.568 12 5.5 12m4.8 2.5h3.4c.28 0 .42 0 .527-.055a.5.5 0 0 0 .218-.218c.055-.107.055-.247.055-.527v-3.4c0-.28 0-.42-.055-.527a.5.5 0 0 0-.218-.218C14.12 9.5 13.98 9.5 13.7 9.5h-3.4c-.28 0-.42 0-.527.055a.5.5 0 0 0-.218.218c-.055.107-.055.247-.055.527v3.4c0 .28 0 .42.055.527a.5.5 0 0 0 .218.218c.107.055.247.055.527.055Zm7.5 7.5h3.4c.28 0 .42 0 .527-.055a.5.5 0 0 0 .218-.218C22 21.62 22 21.48 22 21.2v-3.4c0-.28 0-.42-.055-.527a.5.5 0 0 0-.218-.218C21.62 17 21.48 17 21.2 17h-3.4c-.28 0-.42 0-.527.055a.5.5 0 0 0-.218.218C17 17.38 17 17.52 17 17.8v3.4c0 .28 0 .42.055.527a.5.5 0 0 0 .218.218c.107.055.247.055.527.055ZM2.8 7h3.4c.28 0 .42 0 .527-.054a.5.5 0 0 0 .218-.219C7 6.62 7 6.48 7 6.2V2.8c0-.28 0-.42-.054-.527a.5.5 0 0 0-.219-.219C6.62 2 6.48 2 6.2 2H2.8c-.28 0-.42 0-.527.054a.5.5 0 0 0-.219.219C2 2.38 2 2.52 2 2.8v3.4c0 .28 0 .42.054.527a.5.5 0 0 0 .219.218C2.38 7 2.52 7 2.8 7Z"}));SL.displayName="Dataflow03";const EL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M12 2.25v2.5M12 18v4M5.75 12h-3.5m19 0h-1.5m-1.293 6.457-.707-.707m.914-12.334L17.25 6.83M4.922 19.078 7.75 16.25M5.129 5.209 7.25 7.33"}));EL.displayName="Loading01";const xL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.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"}));xL.displayName="Lock01";const RL=({size:e=24,color:t="currentColor",...n})=>M.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:t,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...n},M.createElement("path",{d:"M21 10s-2.005-2.732-3.634-4.362a9 9 0 1 0 2.282 8.862M21 10V4m0 6h-6"}));RL.displayName="RefreshCw01";function IE(){const e=ir.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=C.jsx("div",{className:"flex items-center justify-center min-h-screen",children:C.jsx(EL,{size:20,className:"animate-spin text-muted-foreground"})}),e[0]=t):t=e[0],t}function Hle(e){try{return JSON.parse(e)}catch{return}}function aP(e,t){const n=localStorage.getItem(e),r=n?Hle(n):void 0,o=typeof t=="function"?t(r):r??t;if(r===void 0||o!==r)try{const s=JSON.stringify(o);localStorage.setItem(e,s)}catch{}return o}function qle(e,t){const n=ir.c(25),r=Dw();let o;n[0]!==e?(o=["localStorage",e],n[0]=e,n[1]=o):o=n[1];const s=o;let l,c;n[2]!==t||n[3]!==e?(l=()=>aP(e,t),c=()=>aP(e,t),n[2]=t,n[3]=e,n[4]=l,n[5]=c):(l=n[4],c=n[5]);let d;n[6]!==s||n[7]!==l||n[8]!==c?(d={queryKey:s,queryFn:l,initialData:c,staleTime:1/0,gcTime:1/0},n[6]=s,n[7]=l,n[8]=c,n[9]=d):d=n[9];const{data:f}=OP(d);let p;n[10]!==e?(p=async E=>{const T=JSON.stringify(E);return localStorage.setItem(e,T),E},n[10]=e,n[11]=p):p=n[11];let h;n[12]!==r||n[13]!==s?(h=E=>{r.setQueryData(s,E)},n[12]=r,n[13]=s,n[14]=h):h=n[14];let g;n[15]!==p||n[16]!==h?(g={mutationFn:p,onSuccess:h},n[15]=p,n[16]=h,n[17]=g):g=n[17];const v=Z8(g);let y;n[18]!==v||n[19]!==r||n[20]!==s?(y=E=>{const T=r.getQueryData(s),R=typeof E=="function"?E(T):E;v.mutate(R)},n[18]=v,n[19]=r,n[20]=s,n[21]=y):y=n[21];const b=y,x=f;let w;return n[22]!==b||n[23]!==x?(w=[x,b],n[22]=b,n[23]=x,n[24]=w):w=n[24],w}const au={assistantChatTasks:e=>`mesh:assistant-chat:tasks:${e}`,messages:(e,t)=>`mesh:messages:${e}:${t}`,chatSelectedMode:e=>`mesh:chat:selectedMode:${e}`,chatSelectedImageModel:e=>`mesh:chat:selectedImageModel:${e}`,chatSelectedDeepResearchModel:e=>`mesh:chat:selectedDeepResearchModel:${e}`,chatSimpleModeTier:e=>`mesh:chat:simpleModeTier:${e}`,chatLastAgentOption:e=>`mesh:chat:lastAgentOption:${e}`,chatAutosend:(e,t)=>`mesh:chat:autosend:${e}:${t}`,chatDraft:(e,t)=>`mesh:chat:draft:${e}:${t}`,assistantChatActiveTask:e=>`mesh:assistant-chat:active-task:${e}`,decoChatPanelWidth:()=>"mesh:decochat:panel-width",tasksPanelWidth:()=>"mesh:tasks-panel:width",sidebarOpen:()=>"mesh:sidebar-open",orgHomeQuickstart:e=>`mesh:org-home:quickstart:${e}`,storeShowStdio:()=>"mesh:store:show-stdio",preferences:()=>"mesh:user:preferences",pluginConnection:(e,t)=>`mesh:plugin:connection:${e}:${t}`,lastOrgSlug:()=>"mesh:last-org-slug",lastLocation:()=>"mesh:last-location",connectionsTab:e=>`mesh:connections:tab:${e}`,taskLastViewed:e=>`mesh:chat:task-last-viewed:${e}`,sidebarGroupOrder:(e,t)=>`sidebar.group-order.${e}.${t}`,sidebarOrgPinnedOrder:e=>`sidebar.org-pinned-order.${e}`},Gle={toolApprovalLevel:"auto",enableNotifications:typeof Notification<"u",enableSounds:!1,theme:"system"},OL=["auto","readonly"],Nde=[{value:"readonly",label:"Ask before edit",short:"Ask"},{value:"auto",label:"Auto approve",short:"Auto"}],Kle=["light","dark","system"];function kde(){try{const e=JSON.parse(localStorage.getItem(au.preferences())??"{}");if(OL.includes(e.toolApprovalLevel))return e.toolApprovalLevel}catch{}return"auto"}function Zle(){const e=ir.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=au.preferences(),e[0]=t):t=e[0],qle(t,Yle)}function Yle(e){const t={...Gle,...e};return OL.includes(t.toolApprovalLevel)||(t.toolApprovalLevel="auto"),Kle.includes(t.theme)||(t.theme="system"),t}async function Wle(){performance.mark("mesh:config-fetch:start");try{const e=await fetch("/api/config");if(!e.ok)throw new Error("Failed to load public configuration");const t=await e.json();if(!t.success)throw new Error(t.error||"Failed to load public configuration");return t.config}finally{performance.mark("mesh:config-fetch:end"),performance.measure("mesh:config-fetch","mesh:config-fetch:start","mesh:config-fetch:end")}}function Qle(e){if(!e)return;const t=document.getElementById("mesh-theme-overrides");t&&t.remove();const n=[];if(e.light&&Object.keys(e.light).length>0){const r=Object.entries(e.light).map(([o,s])=>` ${o}: ${s};`).join(`
164
164
  `);n.push(`:root {
165
165
  ${r}
166
166
  }`)}if(e.dark&&Object.keys(e.dark).length>0){const r=Object.entries(e.dark).map(([o,s])=>` ${o}: ${s};`).join(`
@@ -168,4 +168,4 @@ ${r}
168
168
  ${r}
169
169
  }`)}if(n.length>0){const r=document.createElement("style");r.id="mesh-theme-overrides",r.textContent=n.join(`
170
170
 
171
- `),document.head.appendChild(r)}}function Xle(e){const t=ir.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:TP.publicConfig(),queryFn:Wle,staleTime:1/0},t[0]=r):r=t[0];const{data:o}=hf(r),[s]=Zle();o.internalUrl&&gle(o.internalUrl);let l,c;t[1]!==o.theme?(l=()=>{Qle(o.theme)},c=[o.theme],t[1]=o.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),M.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const h=document.documentElement,g=()=>{const x=document.querySelector('meta[name="theme-color"]');if(!x)return;const w=getComputedStyle(h).getPropertyValue("--sidebar").trim();if(!w)return;const E=document.createElement("canvas").getContext("2d");if(!E)return;E.fillStyle="#010203";const T=E.fillStyle;E.fillStyle=w;const R=E.fillStyle;R!==T&&(x.content=R)};if(s.theme==="dark"){h.classList.add("dark"),g();return}if(s.theme==="light"){h.classList.remove("dark"),g();return}const v=window.matchMedia("(prefers-color-scheme: dark)"),y=x=>{h.classList.toggle("dark",x),g()};y(v.matches);const b=x=>y(x.matches);return v.addEventListener("change",b),()=>v.removeEventListener("change",b)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),M.useLayoutEffect(d,f);let p;return t[7]!==n?(p=C.jsx(C.Fragment,{children:n}),t[7]=n,t[8]=p):p=t[8],p}const Nf=new D8({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});kle(Nf);Dle(Nf);Tle(Nf);Cle(Nf);function Jle(e){const t=ir.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=C.jsx(BG,{}),t[0]=r):r=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=C.jsx(IE,{}),t[1]=o):o=t[1];let s;return t[2]!==n?(s=C.jsxs(L8,{client:Nf,children:[r,C.jsx(M.Suspense,{fallback:o,children:C.jsx(Xle,{children:C.jsx(W8,{children:C.jsx(gne,{children:C.jsx(Vle,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function ece(...e){return UN(eS(e))}const tce=c4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",xl:"h-12 px-4 has-[>svg]:px-3.5",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function ff(e){const t=ir.c(14);let n,r,o,s,l;t[0]!==e?({className:n,variant:l,size:o,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=l):(n=t[1],r=t[2],o=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?dS:"button";let f;t[6]!==n||t[7]!==o||t[8]!==l?(f=ece(tce({variant:l,size:o,className:n})),t[6]=n,t[7]=o,t[8]=l,t[9]=f):f=t[9];let p;return t[10]!==d||t[11]!==r||t[12]!==f?(p=C.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=p):p=t[13],p}const nce=["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 rce(e){const t=ir.c(3),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=C.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:nce}}),t[0]=r):r=t[0];let o;return t[1]!==n?(o=C.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[r,C.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:n})]}),t[1]=n,t[2]=o):o=t[2],o}function TL(e){const t=ir.c(9),{orgName:n}=e,r=oce;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=C.jsx("div",{className:"bg-muted p-3 rounded-full",children:C.jsx(wL,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=o):o=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=C.jsx("h3",{className:"text-lg font-medium",children:"Organization unavailable"}),t[1]=s):s=t[1];let l;t[2]!==n?(l=n?C.jsxs(C.Fragment,{children:[C.jsx("strong",{children:n})," has been deleted or is no longer available."]}):"This organization has been deleted or is no longer available.",t[2]=n,t[3]=l):l=t[3];let c;t[4]!==l?(c=C.jsxs("div",{className:"space-y-2",children:[s,C.jsx("p",{className:"text-sm text-muted-foreground",children:l})]}),t[4]=l,t[5]=c):c=t[5];let d;t[6]===Symbol.for("react.memo_cache_sentinel")?(d=C.jsx(ff,{onClick:r,children:"Go to home"}),t[6]=d):d=t[6];let f;return t[7]!==c?(f=C.jsxs(rce,{children:[o,c,d]}),t[7]=c,t[8]=f):f=t[8],f}function oce(){window.location.href="/"}function ice(e){const t=ir.c(14),{area:n,description:r}=e;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:s}=Fw(o),l=n?`No access to ${n}`:"No access",c=r??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let d;t[1]===Symbol.for("react.memo_cache_sentinel")?(d=C.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:C.jsx(xL,{size:28})}),t[1]=d):d=t[1];let f;t[2]!==l?(f=C.jsx("h3",{className:"text-lg font-medium",children:l}),t[2]=l,t[3]=f):f=t[3];let p;t[4]!==c?(p=C.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:c}),t[4]=c,t[5]=p):p=t[5];let h;t[6]!==f||t[7]!==p?(h=C.jsxs("div",{className:"space-y-1",children:[f,p]}),t[6]=f,t[7]=p,t[8]=h):h=t[8];let g;t[9]!==s?(g=C.jsx(ff,{variant:"outline",size:"sm",asChild:!0,children:C.jsx(Ug,{to:"/$org/settings/profile",params:{org:s},children:"Go to your profile"})}),t[9]=s,t[10]=g):g=t[10];let v;return t[11]!==h||t[12]!==g?(v=C.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[d,h,g]}),t[11]=h,t[12]=g,t[13]=v):v=t[13],v}const lP="__mesh_chunk_reload_ts";function CL(e){return e?.message==="Organization is archived"}function sce(e){return!!e?.message?.includes("Access denied")}function cP(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 Dde extends M.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),bL(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.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}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:CL(this.state.error)?C.jsx(TL,{}):sce(this.state.error)?C.jsx(ice,{}):C.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:C.jsx(AE,{className:"h-6 w-6 text-destructive"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),C.jsx(ff,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class ace extends M.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=cP(t);if(bL(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const o=sessionStorage.getItem(lP),s=Date.now();(!o||s-Number(o)>1e4)&&(sessionStorage.setItem(lP,String(s)),window.location.reload())}render(){return this.state.hasError&&cP(this.state.error)?C.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:C.jsx(RL,{className:"h-6 w-6 text-primary"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),C.jsx(ff,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?CL(this.state.error)?C.jsx(TL,{}):C.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:C.jsx(AE,{className:"h-6 w-6 text-destructive"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),C.jsx(ff,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}function AL(e){try{localStorage.setItem(au.lastLocation(),JSON.stringify(e))}catch{}}function lce(){try{const e=localStorage.getItem(au.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org,taskId:typeof t.taskId=="string"?t.taskId:void 0,virtualmcpid:typeof t.virtualmcpid=="string"?t.virtualmcpid:void 0}}catch{}return null}function Lde(){try{localStorage.removeItem(au.lastLocation())}catch{}}let ls=null,uP=!1;const Cw=new Set;function Ng(){for(const e of Cw)e()}function cce(){uP||typeof window>"u"||(uP=!0,window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),ls=e,Ng()}),window.addEventListener("appinstalled",()=>{ls=null,Ng()}))}function $de(){ls!==null&&(ls=null,Ng())}function uce(e){return Cw.add(e),()=>{Cw.delete(e)}}function dce(){return ls}function fce(){return null}function hce(){if(typeof window>"u")return!1;const e=typeof window.matchMedia=="function"&&window.matchMedia("(display-mode: standalone)").matches,t=navigator.standalone===!0;return e||t}function pce(){if(typeof navigator>"u")return!1;const e=navigator.userAgent;return/iPad|iPhone|iPod/.test(e)?!0:e.includes("Macintosh")&&typeof document<"u"&&"ontouchend"in document}function jde(){const e=ir.c(5),t=M.useSyncExternalStore(uce,dce,fce);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=hce(),e[0]=n):n=e[0];const r=n,o=t!==null&&!r;let s,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=pce(),l=mce,e[1]=s,e[2]=l):(s=e[1],l=e[2]);let c;return e[3]!==o?(c={canPrompt:o,installed:r,ios:s,promptInstall:l},e[3]=o,e[4]=c):c=e[4],c}async function mce(){if(!ls)return"unavailable";await ls.prompt();const e=await ls.userChoice;return e.outcome==="accepted"&&(ls=null,Ng()),e.outcome}const gce="MCP Workflows",vce="Create workflows using your MCP tools",_ce=M.lazy(()=>lt(()=>import("./plugin-header-CaWKfaZE.js"),__vite__mapDeps([0,1,2]))),yce=M.lazy(()=>lt(()=>import("./plugin-empty-state-DM8dR2Wk.js"),[])),bce={id:gce,description:vce,bindingName:"WORKFLOW",renderHeader:e=>C.jsx(_ce,{...e}),renderEmptyState:()=>C.jsx(yce,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:C.jsx(SL,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},wce=[bce],gs=xU({component:()=>C.jsx(ace,{children:C.jsx(Jle,{children:C.jsx(M.Suspense,{fallback:C.jsx(IE,{}),children:C.jsx(i3,{})})})})}),Sce=st({getParentRoute:()=>gs,path:"/login",component:dt(()=>lt(()=>import("./login-Dn4EF5EK.js"),__vite__mapDeps([3,4,5]))),validateSearch:pl(()=>be({next:$().optional(),client_id:$().optional(),redirect_uri:$().optional(),response_type:$().optional(),state:$().optional(),scope:$().optional(),code_challenge:$().optional(),code_challenge_method:$().optional()}))}),Ece=st({getParentRoute:()=>gs,path:"/cli/auth-success",component:dt(()=>lt(()=>import("./cli-auth-success-CUSnxWUp.js"),__vite__mapDeps([6,5])))}),xce=st({getParentRoute:()=>gs,path:"/reset-password",component:dt(()=>lt(()=>import("./reset-password-DXXx8e6Q.js"),__vite__mapDeps([7,4]))),validateSearch:pl(()=>be({token:$().optional(),error:$().optional()}))}),Rce=st({getParentRoute:()=>gs,path:"/auth/$pathname",component:dt(()=>lt(()=>import("./auth-catchall-BUwhIhze.js"),[]))}),Oce=st({getParentRoute:()=>gs,path:"/oauth/callback",component:dt(()=>lt(()=>import("./oauth-callback-D5XAAL8p.js"),[]))}),Tce=st({getParentRoute:()=>gs,path:"/oauth/callback/ai-provider",component:dt(()=>lt(()=>import("./oauth-callback-ai-provider-tGQCB63I.js"),[]))}),ME=st({getParentRoute:()=>gs,id:"shell",component:dt(()=>lt(()=>import("./shell-layout-4LsIVsl3.js").then(e=>e.s),__vite__mapDeps([8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])))}),Cce=st({getParentRoute:()=>ME,path:"/",beforeLoad:async()=>{const e=lce();if(e?.taskId)throw Xa({to:"/$org/$taskId",params:{org:e.org,taskId:e.taskId},search:e.virtualmcpid?{virtualmcpid:e.virtualmcpid}:{}});if(e)throw Xa({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(au.lastOrgSlug());if(t)throw Xa({to:"/$org",params:{org:t}});const{data:n}=await EN();if(!n)return;const r=n[0];throw Xa(r?{to:"/$org",params:{org:r.slug}}:{to:"/onboarding"})}}),Ace=st({getParentRoute:()=>gs,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await EN();if(e&&e.length>0)throw Xa({to:"/"})},component:dt(()=>lt(()=>import("./onboarding-CgvYwT2C.js"),__vite__mapDeps([27,19,20,5,9,10,4,28,29,11,14,30,31])))}),Ev=st({getParentRoute:()=>ME,path:"/$org",beforeLoad:({params:e})=>{AL({org:e.org})},component:dt(()=>lt(()=>import("./org-layout-BFil8fwL.js"),[]))}),xv=st({getParentRoute:()=>Ev,id:"org-shell",component:dt(()=>lt(()=>import("./index-CCs3Chg3.js"),__vite__mapDeps([32,33,34,35,36,18,37,20,38,39,40,41,42,43,44,45,46,47,22,48,49,50,51,52,53,17,54,55,56,1,57,58,59,60,61,62,63,11,14,2,64,65,66,67,68,15,30,69,12,70,71,72,73,74,75,76,77,78,31,10,79,13,16,80,81,82,83,21,23,24,8,9,19,25,26,84,85,28,4,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114])))}),PE=st({getParentRoute:()=>xv,id:"agent-shell",component:dt(()=>lt(()=>import("./index-BZvxagUr.js").then(e=>e.aj),__vite__mapDeps([115,116,111,21,22,23,24,112,48,49,103,25,117,57,58,59,60,54,61,62,63,11,14,1,2,40,41,64,65,66,67,38,68,15,46,30,69,12,70,34,71,72,73,74,47,45,75,76,77,78,31,10,79,13,18,16,109,110,118,98,35,119,120,17,121,122,8,9,19,20,26,95,51,53,123,85,28,4,86,44,55,124,125,113,126,56,42,127,128,94,43,104,105,92,93,88,89,90,91,81,82,83,96,97,99,100,101,102,129,130,131,37,33,36,39,50,52,80,84,87,106,107,108,132,133,134,135,136,137,138,139,29,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154])))}),Ice=be({virtualmcpid:$().optional(),tab:$().optional(),main:$().optional(),id:$().optional(),toolName:$().optional(),tasks:ht().optional(),mainOpen:ht().optional(),chat:ht().optional(),autosend:$().optional(),runLocally:$().optional()}),IL=st({getParentRoute:()=>PE,path:"/$taskId",validateSearch:Ice,beforeLoad:({params:e,search:t})=>{AL({org:e.org,taskId:e.taskId,virtualmcpid:t.virtualmcpid})},component:()=>null}),Mce=st({getParentRoute:()=>xv,path:"/",component:dt(()=>lt(()=>import("./index-Db3P8pHg.js"),__vite__mapDeps([155,35,22,48,49,1,57,58,59,60,54,61,62,63,11,14,2,40,41,64,65,66,67,38,68,15,46,30,69,12,70,34,71,72,73,74,47,45,75,76,77,78,31,10,79,13,18,16,116,111,21,23,24,112,103,25,117,109,110,118,98,119,120,17,121,122,8,9,19,20,26,95,51,53,123,85,28,4,86,44,55,124,125,113,126,56,42,127,128,94,43,104,105,92,93,88,89,90,91,81,82,83,96,97,99,100,101,102,129,130,131,36,39])))}),Pce=be({path:$().optional(),preview:$().optional(),skill:$().optional()}),Nce=st({getParentRoute:()=>xv,path:"/files",validateSearch:Pce,component:dt(()=>lt(()=>import("./index-Dr4Isy1j.js"),__vite__mapDeps([156,41,67,68,38,47,77,31,35,84,17,18,4,42,120,1,39,40,136,130,65,34,71,137,78,16,134,13])))}),vn=st({getParentRoute:()=>Ev,path:"/settings",component:dt(()=>lt(()=>import("./settings-layout-DRYgevr6.js"),__vite__mapDeps([157,20,33,34,35,36,18,141,63,11,69,70,76,10,16,135,132,131,23,24,39,40,41,114])))}),kce=st({getParentRoute:()=>Ev,path:"/install",component:dt(()=>lt(()=>import("./org-install-CV5qvXsE.js"),[]))}),Dce=st({getParentRoute:()=>vn,path:"/",component:dt(()=>lt(()=>import("./index-redirect-pPYMz5D6.js"),__vite__mapDeps([158,135,159])))}),Lce=st({getParentRoute:()=>vn,path:"/connections",component:dt(()=>lt(()=>import("./connections-BMZIGugH.js"),__vite__mapDeps([160,82,83,161,130,1,41,65,60,35,146,97,142,45,96,90,89,91,53,49,22,25,92,93,81,94,95,66,57,58,59,54,61,62,63,11,14,2,40,64,67,38,68,15,46,30,69,12,70,34,71,72,73,74,47,75,76,77,78,31,10,79,13,18,16,133,141,33,36,162,84,135,101,163,164,56,17,44,85,28,4,98,99,48,100]))),validateSearch:pl(()=>be({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),$ce=st({getParentRoute:()=>vn,path:"/connections/$appSlug",component:dt(()=>lt(()=>import("./connection-detail-58UbdFd3.js"),__vite__mapDeps([165,82,83,133,100,4,47,78,166,22,80,38,70,53,49,167,168,81,91,25,98,35,1,2,64,105,57,58,59,60,54,61,62,63,11,14,40,41,65,66,67,68,15,46,30,69,12,34,71,72,73,74,45,75,76,77,31,10,79,13,18,16,43,48,50,51,139,97,122,152,106,9,123,95,36,85,28,162,84,169,141,33,170,124,89,55,94,130]))),validateSearch:pl(()=>be({tab:$().optional()}))}),jce=st({getParentRoute:()=>vn,path:"/connections/$appSlug/$collectionName/$itemId",component:dt(()=>lt(()=>import("./collection-detail-DHxXW6T4.js"),__vite__mapDeps([171,133,49,22,85,28,4,99,169,141,33,34,35,36,18,172,167,83,168,48,149,137,86,134,38,97,98,1,2,64,146,57,58,59,60,54,61,62,63,11,14,40,41,65,66,67,68,15,46,30,69,12,70,71,72,73,74,47,45,75,76,77,78,31,10,79,13,16,53,80,17,118,129,107,130,95,145,87,173,24,122,174,166,81,82,91,25,105,43,50,51,89,139,121,111,21,23,112,103,8,9,19,20,26]))),validateSearch:pl(()=>be({replayId:$().optional()}))}),Uce=st({getParentRoute:()=>vn,path:"/monitor",component:dt(()=>lt(()=>import("./index-J2NhKqyZ.js"),__vite__mapDeps([175,142,45,141,33,34,35,36,18,133,176,135,177,159,97,43,1,67,68,15,70,74,57,58,59,60,54,61,62,63,11,14,2,40,41,64,65,66,38,46,30,69,12,71,72,73,47,75,76,77,78,31,10,79,13,16,149,137,86,152,106,53,49,22,48,4,150,92,93,94,151,101,108,148,102,98,56,104,105,17,9,117,109,110,118,119,120,121,122,111,21,23,24,112,103,25,8,19,20,26,95,51,123,85,28,178,99,96,29,174,170,168,89]))),validateSearch:pl(()=>be({tab:dn(["overview","audit","threads","automations"]).default("overview"),from:$().default("now-30m"),to:$().default("now"),connectionId:Oe($()).optional().default([]),virtualMcpId:Oe($()).optional().default([]),tool:$().default(""),status:dn(["all","success","errors"]).default("all"),search:$().default(""),page:ht().optional(),streaming:Nt().default(!0),propertyFilters:$().default(""),hideSystem:Nt().default(!1)}))}),zce=st({getParentRoute:()=>vn,path:"/general",component:dt(()=>lt(()=>import("./general-CLesrOe8.js"),__vite__mapDeps([179,141,33,34,35,36,18,106,140,9,10,4,128,94,62,180,112,22,29,84,176,135,177,159])))}),Fce=st({getParentRoute:()=>vn,path:"/features",component:dt(()=>lt(()=>import("./features-DWJ09Fdz.js"),__vite__mapDeps([181,141,33,34,35,36,18,25,22,29,66,128,94,62,176,135,177,159])))}),Bce=st({getParentRoute:()=>vn,path:"/brand-context",component:dt(()=>lt(()=>import("./brand-context-DTmvDRqf.js"),__vite__mapDeps([182,22,2,41,46,71,47,78,16,84,4,99,141,33,34,35,36,18,112,140,176,135,177,159])))}),Vce=st({getParentRoute:()=>vn,path:"/ai-providers",component:dt(()=>lt(()=>import("./ai-providers-GxPLAPId.js"),__vite__mapDeps([183,58,141,33,34,35,36,18,42,128,94,62,103,22,14,111,21,23,24,112,48,49,25,147,17,44,126,56,1,4,98,2,64,54,59,70,45,75,127,72,86,41,9,10,67,113,77,140,125,84,47,78,144,110,176,135,177,159])))}),Hce=st({getParentRoute:()=>vn,path:"/secrets",component:dt(()=>lt(()=>import("./secrets-YkTDT7yT.js"),__vite__mapDeps([184,58,47,10,79,17,18,4,28,98,35,1,2,64,42,99,141,33,34,36,128,94,62,143,22,112,176,135,177,159])))}),qce=st({getParentRoute:()=>vn,path:"/files",component:dt(()=>lt(()=>import("./files-QExlaPCQ.js"),[]))}),Gce=st({getParentRoute:()=>vn,path:"/buckets",component:dt(()=>lt(()=>import("./buckets-Cv3AB_TT.js"),__vite__mapDeps([185,58,69,47,78,84,17,18,4,28,29,42,99,141,33,34,35,36,128,94,62,186,22,112,176,135,177,159])))}),Kce=st({getParentRoute:()=>vn,path:"/members",component:dt(()=>lt(()=>import("./members-BwcNzXwU.js"),__vite__mapDeps([187,161,130,1,41,65,60,35,146,97,142,45,141,33,34,36,18,188,151,133,17,85,28,98,2,64,99,106,189,152,22,84,9,10,94,70,76,78,13,56,104,105,43,47,176,135,177,159])))}),Zce=st({getParentRoute:()=>vn,path:"/roles",component:dt(()=>lt(()=>import("./roles-vHYrQg5g.js"),__vite__mapDeps([190,189,106,97,84,130,1,41,65,47,78,188,151,60,141,33,34,35,36,18,133,142,45,127,95,66,57,58,59,54,61,62,63,11,14,2,40,64,67,38,68,15,46,30,69,12,70,71,72,73,74,75,76,77,31,10,79,13,16,101,56,102,93,22,55,152,53,49,103,9,29,128,94,135,177,159]))),validateSearch:pl(()=>be({role:$().optional()}))}),Yce=st({getParentRoute:()=>vn,path:"/sso",component:dt(()=>lt(()=>import("./sso-D04DjSnZ.js"),__vite__mapDeps([191,180,112,22,29,128,94,62,141,33,34,35,36,18,4,26,78,176,135,177,159])))}),Wce=st({getParentRoute:()=>vn,path:"/profile",component:dt(()=>lt(()=>import("./profile-DmCC3zYK.js"),__vite__mapDeps([192,141,33,34,35,36,18,9,10,29,98,1,2,64,125,4,72,73,74,140,131,87,128,94,62])))}),Qce=st({getParentRoute:()=>vn,path:"/store",component:dt(()=>lt(()=>import("./store-DTK5DubB.js"),__vite__mapDeps([193,58,41,47,78,4,29,42,9,10,43,53,49,22,141,33,34,35,36,18,91,25,128,94,62,176,135,177,159])))}),Xce=st({getParentRoute:()=>vn,path:"/registry",component:dt(()=>lt(()=>import("./registry-hKns5OCc.js"),__vite__mapDeps([194,176,135,177,159])))}),Jce=st({getParentRoute:()=>vn,path:"/store/registry",component:dt(()=>lt(()=>import("./store-registry-nABlp_7k.js"),__vite__mapDeps([195,176,135,177,159])))}),eue=st({getParentRoute:()=>vn,path:"/workflows",component:dt(()=>lt(()=>import("./workflow-D1PUPL3K.js"),__vite__mapDeps([196,22,82,83,161,130,1,41,65,60,35,146,97,55,45,94,95,66,57,58,59,54,61,62,63,11,14,2,40,64,67,38,68,15,46,30,69,12,70,34,71,72,73,74,47,75,76,77,78,31,10,79,13,18,16,188,151,173,138,9,133,163,164,89,84,49,53,169,141,33,36])))}),tue=st({getParentRoute:()=>vn,path:"/workflows/$itemId",component:dt(()=>lt(()=>import("./workflow-detail-CRUxUbKb.js"),__vite__mapDeps([197,172,167,22,83,168,48,49,149,137,86,134,38,97,98,35,1,2,64,146,57,58,59,60,54,61,62,63,11,14,40,41,65,66,67,68,15,46,30,69,12,70,34,71,72,73,74,47,45,75,76,77,78,31,10,79,13,18,16,169,141,33,36,53,80,17,118,129,107,130,95,145,87,173,24,4])))}),nue=st({getParentRoute:()=>PE,path:"/plugins/$pluginId",component:dt(()=>lt(()=>import("./org-plugin-layout-DyCflrr1.js"),__vite__mapDeps([198,199,53,49,22,75,141,33,34,35,36,18])))}),rue=st({getParentRoute:()=>vn,path:"/agents",component:dt(()=>lt(()=>import("./agents-list-DDhPNISh.js"),__vite__mapDeps([200,130,1,41,65,46,11,52,48,49,22,51,53,17,18,54,55,45,56,57,58,59,60,61,62,63,14,2,40,64,66,67,38,68,15,30,69,12,70,34,71,72,73,74,47,75,76,77,78,31,10,79,13,16,80,81,82,83,141,33,35,36,94,144,110,135,133,50,84,142])))}),oue=st({getParentRoute:()=>vn,path:"/automations",component:dt(()=>lt(()=>import("./automations-Cy981ltn.js"),__vite__mapDeps([201,47,16,142,45,141,33,34,35,36,18,133,148,22,51,48,49,153,84,130,1,41,65,57,58,59,60,54,61,62,63,11,14,2,40,64,66,67,38,68,15,46,30,69,12,70,71,72,73,74,75,76,77,78,31,10,79,13,176,135,177,159])))}),ML=st({getParentRoute:()=>IL,path:"/$pluginId",component:dt(()=>lt(()=>import("./dynamic-plugin-layout-DWE13BKk.js"),__vite__mapDeps([202,199,53,49,22,75,141,33,34,35,36,18])))}),iue=[],sue=[],aue=[],PL=[];wce.forEach(e=>{if(!e.setup)return;const t={parentRoute:ML,routing:{createRoute:st,lazyRouteComponent:dt},registerRootSidebarItem:n=>iue.push({pluginId:e.id,...n}),registerSidebarGroup:n=>sue.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>aue.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{PL.push(...n)}};e.setup(t)});const lue=ML.addChildren(PL),cue=vn.addChildren([Dce,Lce,$ce,jce,rue,oue,Uce,zce,Fce,Bce,Vce,Hce,qce,Gce,Kce,Zce,Yce,Wce,Qce,Jce,Xce,eue,tue]),uue=IL.addChildren([lue]),due=PE.addChildren([uue,nue]),fue=xv.addChildren([Mce,Nce,due]),hue=Ev.addChildren([fue,cue,kce]),pue=ME.addChildren([Cce,hue]),mue=gs.addChildren([pue,Ace,Sce,Ece,xce,Rce,Oce,Tce]),gue=DU({routeTree:mue,defaultPendingComponent:IE,defaultPendingMs:200,defaultNotFoundComponent:()=>C.jsx("div",{className:"flex h-full items-center justify-center",children:C.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[C.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),C.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),C.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})});cce();const vue=document.getElementById("root");t8.createRoot(vue).render(C.jsx(M.StrictMode,{children:C.jsx(jU,{router:gue})}));export{fl as $,Xue as A,ff as B,RL as C,IK as D,Dde as E,xL as F,Dw as G,Oi as H,Ti as I,Rde as J,TP as K,au as L,Tde as M,Tue as N,i3 as O,Ug as P,Ede as Q,Eue as R,IE as S,be as T,ht as U,xde as V,$ as W,CP as X,dte as Y,xue as Z,lt as _,Z8 as a,DW as a$,Zle as a0,Ate as a1,Lle as a2,kue as a3,Due as a4,vt as a5,UQ as a6,En as a7,ut as a8,HQ as a9,B8 as aA,Zn as aB,K8 as aC,qO as aD,V8 as aE,H8 as aF,Sde as aG,Oe as aH,dn as aI,Mt as aJ,Nt as aK,Nde as aL,AK as aM,kde as aN,hv as aO,VC as aP,Aw as aQ,NW as aR,ii as aS,ef as aT,jg as aU,ES as aV,qc as aW,ha as aX,ps as aY,si as aZ,q4 as a_,YQ as aa,zQ as ab,FQ as ac,oi as ad,jQ as ae,bk as af,vl as ag,BQ as ah,VQ as ai,qQ as aj,GQ as ak,KQ as al,ZQ as am,WQ as an,XQ as ao,JQ as ap,wL as aq,tu as ar,Wn as as,Im as at,hP as au,wP as av,$8 as aw,z8 as ax,q8 as ay,F8 as az,Kg as b,K6 as b$,jW as b0,LW as b1,EW as b2,nle as b3,iL as b4,ee as b5,yue as b6,aue as b7,$de as b8,jde as b9,F4 as bA,tde as bB,ma as bC,_ue as bD,NY as bE,QP as bF,ga as bG,gv as bH,df as bI,rce as bJ,lce as bK,Lde as bL,Pde as bM,Mde as bN,Ade as bO,SN as bP,TL as bQ,Ide as bR,nde as bS,yo as bT,el as bU,fn as bV,Aue as bW,sN as bX,die as bY,fie as bZ,mE as b_,Xt as ba,wde as bb,vde as bc,bde as bd,uQ as be,pk as bf,B4 as bg,vf as bh,aa as bi,cQ as bj,hs as bk,Cde as bl,sL as bm,dS as bn,bo,Ge as bp,ZB as bq,UN as br,eS as bs,c4 as bt,m5 as bu,v5 as bv,xX as bw,Jn as bx,WX as by,tk as bz,ece as c,sE as c$,gE as c0,mv as c1,M6 as c2,Oie as c3,N6 as c4,wie as c5,kie as c6,Hoe as c7,Goe as c8,Yoe as c9,MY as cA,PY as cB,gf as cC,PK as cD,MK as cE,JN as cF,RP as cG,dz as cH,I6 as cI,k6 as cJ,$6 as cK,U6 as cL,z6 as cM,B6 as cN,ade as cO,lde as cP,ide as cQ,sde as cR,xoe as cS,ode as cT,D6 as cU,j6 as cV,F6 as cW,dde as cX,L6 as cY,gae as cZ,hde as c_,sie as ca,yie as cb,Sie as cc,qoe as cd,Koe as ce,Woe as cf,Qoe as cg,aie as ch,mie as ci,cde as cj,yde as ck,_de as cl,wce as cm,sue as cn,Wue as co,cL as cp,$B as cq,Cue as cr,Nue as cs,zV as ct,pl as cu,hV as cv,Yw as cw,Iue as cx,Ef as cy,AY as cz,e3 as d,Ww as d$,$oe as d0,rde as d1,A6 as d2,sse as d3,pie as d4,fde as d5,Xie as d6,tse as d7,Lie as d8,Die as d9,ri as dA,Uue as dB,jue as dC,tce as dD,wue as dE,bue as dF,TX as dG,n3 as dH,vX as dI,_X as dJ,wX as dK,yX as dL,bX as dM,zue as dN,Fue as dO,que as dP,Gue as dQ,Kue as dR,Zue as dS,Bue as dT,Vue as dU,Hue as dV,mV as dW,Kw as dX,GB as dY,Mue as dZ,_V as d_,pde as da,Vae as db,mde as dc,ude as dd,kY as de,DY as df,LY as dg,IY as dh,kX as di,DX as dj,NX as dk,fk as dl,WW as dm,pS as dn,rk as dp,fS as dq,QW as dr,$ue as ds,XW as dt,x4 as du,mS as dv,Jd as dw,m4 as dx,hS as dy,SL as dz,ir as e,Zw as e0,SV as e1,Pue as e2,Rse as e3,_t as e4,Ir as e5,Oue as e6,OK as e7,xK as e8,bK as e9,qN as ea,ice as eb,gce as ec,$g as f,Fw as g,Jue as h,Que as i,C as j,ede as k,EL as l,Ode as m,OP as n,oC as o,qle as p,Eoe as q,M as r,hf as s,Ble as t,Rue as u,AE as v,gde as w,CK as x,Lue as y,ule as z};
171
+ `),document.head.appendChild(r)}}function Xle(e){const t=ir.c(9),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r={queryKey:TP.publicConfig(),queryFn:Wle,staleTime:1/0},t[0]=r):r=t[0];const{data:o}=hf(r),[s]=Zle();o.internalUrl&&gle(o.internalUrl);let l,c;t[1]!==o.theme?(l=()=>{Qle(o.theme)},c=[o.theme],t[1]=o.theme,t[2]=l,t[3]=c):(l=t[2],c=t[3]),M.useLayoutEffect(l,c);let d,f;t[4]!==s.theme?(d=()=>{const h=document.documentElement,g=()=>{const x=document.querySelector('meta[name="theme-color"]');if(!x)return;const w=getComputedStyle(h).getPropertyValue("--sidebar").trim();if(!w)return;const E=document.createElement("canvas").getContext("2d");if(!E)return;E.fillStyle="#010203";const T=E.fillStyle;E.fillStyle=w;const R=E.fillStyle;R!==T&&(x.content=R)};if(s.theme==="dark"){h.classList.add("dark"),g();return}if(s.theme==="light"){h.classList.remove("dark"),g();return}const v=window.matchMedia("(prefers-color-scheme: dark)"),y=x=>{h.classList.toggle("dark",x),g()};y(v.matches);const b=x=>y(x.matches);return v.addEventListener("change",b),()=>v.removeEventListener("change",b)},f=[s.theme],t[4]=s.theme,t[5]=d,t[6]=f):(d=t[5],f=t[6]),M.useLayoutEffect(d,f);let p;return t[7]!==n?(p=C.jsx(C.Fragment,{children:n}),t[7]=n,t[8]=p):p=t[8],p}const Nf=new D8({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!0,refetchOnMount:!0,retry:1,gcTime:300*1e3}}});kle(Nf);Dle(Nf);Tle(Nf);Cle(Nf);function Jle(e){const t=ir.c(4),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=C.jsx(BG,{}),t[0]=r):r=t[0];let o;t[1]===Symbol.for("react.memo_cache_sentinel")?(o=C.jsx(IE,{}),t[1]=o):o=t[1];let s;return t[2]!==n?(s=C.jsxs(L8,{client:Nf,children:[r,C.jsx(M.Suspense,{fallback:o,children:C.jsx(Xle,{children:C.jsx(W8,{children:C.jsx(gne,{children:C.jsx(Vle,{children:n})})})})})]}),t[2]=n,t[3]=s):s=t[3],s}function ece(...e){return UN(eS(e))}const tce=c4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/20 focus-visible:ring-[2px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/80",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:hover:bg-input/50 card-shadow",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",success:"bg-success text-success-foreground hover:bg-success/90 focus-visible:ring-success/20 dark:focus-visible:ring-success/40",special:"bg-special text-special-foreground hover:bg-special/90 focus-visible:ring-special/20 dark:focus-visible:ring-special/40",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-foreground/80 hover:text-foreground"},size:{default:"h-8 px-3 has-[>svg]:px-2.5",sm:"h-7 gap-1.5 px-2.5 has-[>svg]:px-2",xs:"h-6 gap-1 px-1.5 text-xs has-[>svg]:px-1",lg:"h-10 px-3.5 has-[>svg]:px-3",xl:"h-12 px-4 has-[>svg]:px-3.5",icon:"size-8","icon-sm":"size-7"}},defaultVariants:{variant:"default",size:"default"}});function ff(e){const t=ir.c(14);let n,r,o,s,l;t[0]!==e?({className:n,variant:l,size:o,asChild:s,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=s,t[5]=l):(n=t[1],r=t[2],o=t[3],s=t[4],l=t[5]);const d=(s===void 0?!1:s)?dS:"button";let f;t[6]!==n||t[7]!==o||t[8]!==l?(f=ece(tce({variant:l,size:o,className:n})),t[6]=n,t[7]=o,t[8]=l,t[9]=f):f=t[9];let p;return t[10]!==d||t[11]!==r||t[12]!==f?(p=C.jsx(d,{"data-slot":"button",className:f,...r}),t[10]=d,t[11]=r,t[12]=f,t[13]=p):p=t[13],p}const nce=["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 rce(e){const t=ir.c(3),{children:n}=e;let r;t[0]===Symbol.for("react.memo_cache_sentinel")?(r=C.jsx("div",{className:"absolute inset-0 pointer-events-none",style:{backgroundImage:nce}}),t[0]=r):r=t[0];let o;return t[1]!==n?(o=C.jsxs("div",{className:"relative flex items-center justify-center min-h-screen bg-background overflow-hidden",children:[r,C.jsx("div",{className:"relative flex flex-col items-center text-center space-y-4 max-w-sm px-6",children:n})]}),t[1]=n,t[2]=o):o=t[2],o}function TL(e){const t=ir.c(9),{orgName:n}=e,r=oce;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o=C.jsx("div",{className:"bg-muted p-3 rounded-full",children:C.jsx(wL,{className:"h-6 w-6 text-muted-foreground"})}),t[0]=o):o=t[0];let s;t[1]===Symbol.for("react.memo_cache_sentinel")?(s=C.jsx("h3",{className:"text-lg font-medium",children:"Organization unavailable"}),t[1]=s):s=t[1];let l;t[2]!==n?(l=n?C.jsxs(C.Fragment,{children:[C.jsx("strong",{children:n})," has been deleted or is no longer available."]}):"This organization has been deleted or is no longer available.",t[2]=n,t[3]=l):l=t[3];let c;t[4]!==l?(c=C.jsxs("div",{className:"space-y-2",children:[s,C.jsx("p",{className:"text-sm text-muted-foreground",children:l})]}),t[4]=l,t[5]=c):c=t[5];let d;t[6]===Symbol.for("react.memo_cache_sentinel")?(d=C.jsx(ff,{onClick:r,children:"Go to home"}),t[6]=d):d=t[6];let f;return t[7]!==c?(f=C.jsxs(rce,{children:[o,c,d]}),t[7]=c,t[8]=f):f=t[8],f}function oce(){window.location.href="/"}function ice(e){const t=ir.c(14),{area:n,description:r}=e;let o;t[0]===Symbol.for("react.memo_cache_sentinel")?(o={from:"/shell/$org"},t[0]=o):o=t[0];const{org:s}=Fw(o),l=n?`No access to ${n}`:"No access",c=r??"Your role doesn't include permission for this section. Ask an organization admin to update your role if you need it.";let d;t[1]===Symbol.for("react.memo_cache_sentinel")?(d=C.jsx("div",{className:"flex h-16 w-16 items-center justify-center rounded-full bg-muted text-muted-foreground",children:C.jsx(xL,{size:28})}),t[1]=d):d=t[1];let f;t[2]!==l?(f=C.jsx("h3",{className:"text-lg font-medium",children:l}),t[2]=l,t[3]=f):f=t[3];let p;t[4]!==c?(p=C.jsx("p",{className:"mx-auto max-w-sm text-sm text-muted-foreground",children:c}),t[4]=c,t[5]=p):p=t[5];let h;t[6]!==f||t[7]!==p?(h=C.jsxs("div",{className:"space-y-1",children:[f,p]}),t[6]=f,t[7]=p,t[8]=h):h=t[8];let g;t[9]!==s?(g=C.jsx(ff,{variant:"outline",size:"sm",asChild:!0,children:C.jsx(Ug,{to:"/$org/settings/profile",params:{org:s},children:"Go to your profile"})}),t[9]=s,t[10]=g):g=t[10];let v;return t[11]!==h||t[12]!==g?(v=C.jsxs("div",{className:"flex h-full min-h-[60vh] flex-1 flex-col items-center justify-center gap-4 p-6 text-center",children:[d,h,g]}),t[11]=h,t[12]=g,t[13]=v):v=t[13],v}const lP="__mesh_chunk_reload_ts";function CL(e){return e?.message==="Organization is archived"}function sce(e){return!!e?.message?.includes("Access denied")}function cP(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 Dde extends M.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n),bL(t,{boundary:"default",error_name:t.name,error_message:t.message,component_stack:n.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}=this.props;return typeof t=="function"?t({error:this.state.error,resetError:this.resetError}):t!==void 0?t:CL(this.state.error)?C.jsx(TL,{}):sce(this.state.error)?C.jsx(ice,{}):C.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center h-full p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:C.jsx(AE,{className:"h-6 w-6 text-destructive"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),C.jsx(ff,{variant:"outline",onClick:this.resetError,children:"Try again"})]})}return this.props.children}}class ace extends M.Component{state={hasError:!1,error:null};static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){console.error("Uncaught error:",t,n);const r=cP(t);if(bL(t,{boundary:"chunk_root",is_chunk_load_error:r,error_name:t.name,error_message:t.message,component_stack:n.componentStack??null,route:typeof window<"u"?window.location.pathname:null}),!r)return;const o=sessionStorage.getItem(lP),s=Date.now();(!o||s-Number(o)>1e4)&&(sessionStorage.setItem(lP,String(s)),window.location.reload())}render(){return this.state.hasError&&cP(this.state.error)?C.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-primary/10 p-3 rounded-full",children:C.jsx(RL,{className:"h-6 w-6 text-primary"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"New version available"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:"A new version has been deployed. Refresh to continue."})]}),C.jsx(ff,{onClick:()=>window.location.reload(),children:"Refresh"})]}):this.state.hasError?CL(this.state.error)?C.jsx(TL,{}):C.jsxs("div",{className:"flex min-h-dvh flex-col items-center justify-center p-6 text-center space-y-4",children:[C.jsx("div",{className:"bg-destructive/10 p-3 rounded-full",children:C.jsx(AE,{className:"h-6 w-6 text-destructive"})}),C.jsxs("div",{className:"space-y-2",children:[C.jsx("h3",{className:"text-lg font-medium",children:"Something went wrong"}),C.jsx("p",{className:"text-sm text-muted-foreground max-w-xs mx-auto",children:this.state.error?.message||"An unexpected error occurred"})]}),C.jsx(ff,{variant:"outline",onClick:()=>this.setState({hasError:!1,error:null}),children:"Try again"})]}):this.props.children}}function AL(e){try{localStorage.setItem(au.lastLocation(),JSON.stringify(e))}catch{}}function lce(){try{const e=localStorage.getItem(au.lastLocation());if(!e)return null;const t=JSON.parse(e);if(typeof t?.org=="string")return{org:t.org,taskId:typeof t.taskId=="string"?t.taskId:void 0,virtualmcpid:typeof t.virtualmcpid=="string"?t.virtualmcpid:void 0}}catch{}return null}function Lde(){try{localStorage.removeItem(au.lastLocation())}catch{}}let ls=null,uP=!1;const Cw=new Set;function Ng(){for(const e of Cw)e()}function cce(){uP||typeof window>"u"||(uP=!0,window.addEventListener("beforeinstallprompt",e=>{e.preventDefault(),ls=e,Ng()}),window.addEventListener("appinstalled",()=>{ls=null,Ng()}))}function $de(){ls!==null&&(ls=null,Ng())}function uce(e){return Cw.add(e),()=>{Cw.delete(e)}}function dce(){return ls}function fce(){return null}function hce(){if(typeof window>"u")return!1;const e=typeof window.matchMedia=="function"&&window.matchMedia("(display-mode: standalone)").matches,t=navigator.standalone===!0;return e||t}function pce(){if(typeof navigator>"u")return!1;const e=navigator.userAgent;return/iPad|iPhone|iPod/.test(e)?!0:e.includes("Macintosh")&&typeof document<"u"&&"ontouchend"in document}function jde(){const e=ir.c(5),t=M.useSyncExternalStore(uce,dce,fce);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=hce(),e[0]=n):n=e[0];const r=n,o=t!==null&&!r;let s,l;e[1]===Symbol.for("react.memo_cache_sentinel")?(s=pce(),l=mce,e[1]=s,e[2]=l):(s=e[1],l=e[2]);let c;return e[3]!==o?(c={canPrompt:o,installed:r,ios:s,promptInstall:l},e[3]=o,e[4]=c):c=e[4],c}async function mce(){if(!ls)return"unavailable";await ls.prompt();const e=await ls.userChoice;return e.outcome==="accepted"&&(ls=null,Ng()),e.outcome}const gce="MCP Workflows",vce="Create workflows using your MCP tools",_ce=M.lazy(()=>lt(()=>import("./plugin-header-dSexLn5d.js"),__vite__mapDeps([0,1,2]))),yce=M.lazy(()=>lt(()=>import("./plugin-empty-state-DOz60yXL.js"),[])),bce={id:gce,description:vce,bindingName:"WORKFLOW",renderHeader:e=>C.jsx(_ce,{...e}),renderEmptyState:()=>C.jsx(yce,{}),setup:e=>{e.registerSettingsSidebarItem({key:"workflows",icon:C.jsx(SL,{size:14}),label:"MCP Workflows",to:"/$org/settings/workflows"})}},wce=[bce],gs=xU({component:()=>C.jsx(ace,{children:C.jsx(Jle,{children:C.jsx(M.Suspense,{fallback:C.jsx(IE,{}),children:C.jsx(i3,{})})})})}),Sce=st({getParentRoute:()=>gs,path:"/login",component:dt(()=>lt(()=>import("./login-BsYL8EoQ.js"),__vite__mapDeps([3,4,5]))),validateSearch:pl(()=>be({next:$().optional(),client_id:$().optional(),redirect_uri:$().optional(),response_type:$().optional(),state:$().optional(),scope:$().optional(),code_challenge:$().optional(),code_challenge_method:$().optional()}))}),Ece=st({getParentRoute:()=>gs,path:"/cli/auth-success",component:dt(()=>lt(()=>import("./cli-auth-success-D15RP8BC.js"),__vite__mapDeps([6,5])))}),xce=st({getParentRoute:()=>gs,path:"/reset-password",component:dt(()=>lt(()=>import("./reset-password-EasI5IT7.js"),__vite__mapDeps([7,4]))),validateSearch:pl(()=>be({token:$().optional(),error:$().optional()}))}),Rce=st({getParentRoute:()=>gs,path:"/auth/$pathname",component:dt(()=>lt(()=>import("./auth-catchall-BOC0nYtA.js"),[]))}),Oce=st({getParentRoute:()=>gs,path:"/oauth/callback",component:dt(()=>lt(()=>import("./oauth-callback-DPmGsVIH.js"),[]))}),Tce=st({getParentRoute:()=>gs,path:"/oauth/callback/ai-provider",component:dt(()=>lt(()=>import("./oauth-callback-ai-provider-B2SdgtVf.js"),[]))}),ME=st({getParentRoute:()=>gs,id:"shell",component:dt(()=>lt(()=>import("./shell-layout-CWL5imKS.js").then(e=>e.s),__vite__mapDeps([8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26])))}),Cce=st({getParentRoute:()=>ME,path:"/",beforeLoad:async()=>{const e=lce();if(e?.taskId)throw Xa({to:"/$org/$taskId",params:{org:e.org,taskId:e.taskId},search:e.virtualmcpid?{virtualmcpid:e.virtualmcpid}:{}});if(e)throw Xa({to:"/$org",params:{org:e.org}});const t=localStorage.getItem(au.lastOrgSlug());if(t)throw Xa({to:"/$org",params:{org:t}});const{data:n}=await EN();if(!n)return;const r=n[0];throw Xa(r?{to:"/$org",params:{org:r.slug}}:{to:"/onboarding"})}}),Ace=st({getParentRoute:()=>gs,path:"/onboarding",beforeLoad:async()=>{const{data:e}=await EN();if(e&&e.length>0)throw Xa({to:"/"})},component:dt(()=>lt(()=>import("./onboarding-CUnTn08b.js"),__vite__mapDeps([27,19,20,5,9,10,4,28,29,11,14,30,31])))}),Ev=st({getParentRoute:()=>ME,path:"/$org",beforeLoad:({params:e})=>{AL({org:e.org})},component:dt(()=>lt(()=>import("./org-layout-D1CUrdu0.js"),[]))}),xv=st({getParentRoute:()=>Ev,id:"org-shell",component:dt(()=>lt(()=>import("./index-D7h1Qkk4.js"),__vite__mapDeps([32,33,34,35,36,18,37,20,38,39,40,41,42,43,44,45,46,47,22,48,49,50,51,52,53,17,54,55,56,1,57,58,59,60,61,62,63,11,14,2,64,65,66,67,68,15,30,69,12,70,71,72,73,74,75,76,77,78,31,10,79,13,16,80,81,82,83,21,23,24,8,9,19,25,26,84,85,28,4,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114])))}),PE=st({getParentRoute:()=>xv,id:"agent-shell",component:dt(()=>lt(()=>import("./index-CIBQMZc3.js").then(e=>e.aj),__vite__mapDeps([115,116,112,21,22,23,24,106,48,49,103,25,117,57,58,59,60,54,61,62,63,11,14,1,2,40,41,64,65,66,67,38,68,15,46,30,69,12,70,34,71,72,73,74,47,45,75,76,77,78,31,10,79,13,18,16,110,111,118,98,35,119,120,17,121,122,8,9,19,20,26,95,51,53,123,85,28,4,86,44,55,124,125,113,126,56,42,127,128,94,43,104,105,92,93,88,89,90,91,81,82,83,96,97,99,100,101,102,129,130,131,37,33,36,39,50,52,80,84,87,107,108,109,132,133,134,135,136,137,138,139,29,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154])))}),Ice=be({virtualmcpid:$().optional(),tab:$().optional(),main:$().optional(),id:$().optional(),toolName:$().optional(),tasks:ht().optional(),mainOpen:ht().optional(),chat:ht().optional(),autosend:$().optional(),runLocally:$().optional()}),IL=st({getParentRoute:()=>PE,path:"/$taskId",validateSearch:Ice,beforeLoad:({params:e,search:t})=>{AL({org:e.org,taskId:e.taskId,virtualmcpid:t.virtualmcpid})},component:()=>null}),Mce=st({getParentRoute:()=>xv,path:"/",component:dt(()=>lt(()=>import("./index-Dy_atLRy.js"),__vite__mapDeps([155,35,22,48,49,1,57,58,59,60,54,61,62,63,11,14,2,40,41,64,65,66,67,38,68,15,46,30,69,12,70,34,71,72,73,74,47,45,75,76,77,78,31,10,79,13,18,16,116,112,21,23,24,106,103,25,117,110,111,118,98,119,120,17,121,122,8,9,19,20,26,95,51,53,123,85,28,4,86,44,55,124,125,113,126,56,42,127,128,94,43,104,105,92,93,88,89,90,91,81,82,83,96,97,99,100,101,102,129,130,131,36,39])))}),Pce=be({path:$().optional(),preview:$().optional(),skill:$().optional()}),Nce=st({getParentRoute:()=>xv,path:"/files",validateSearch:Pce,component:dt(()=>lt(()=>import("./index-Df6ljz6n.js"),__vite__mapDeps([156,41,67,68,38,47,77,31,35,84,17,18,4,42,120,1,39,40,136,130,65,34,71,137,78,16,134,13])))}),vn=st({getParentRoute:()=>Ev,path:"/settings",component:dt(()=>lt(()=>import("./settings-layout-DXfn8mRu.js"),__vite__mapDeps([157,20,33,34,35,36,18,141,63,11,69,70,76,10,16,135,132,131,23,24,39,40,41,114])))}),kce=st({getParentRoute:()=>Ev,path:"/install",component:dt(()=>lt(()=>import("./org-install-D55Hf-Ci.js"),[]))}),Dce=st({getParentRoute:()=>vn,path:"/",component:dt(()=>lt(()=>import("./index-redirect-BkbiWtap.js"),__vite__mapDeps([158,135,159])))}),Lce=st({getParentRoute:()=>vn,path:"/connections",component:dt(()=>lt(()=>import("./connections-C3EDxDCA.js"),__vite__mapDeps([160,82,83,161,130,1,41,65,60,35,146,97,142,45,96,90,89,91,53,49,22,25,92,93,81,94,95,66,57,58,59,54,61,62,63,11,14,2,40,64,67,38,68,15,46,30,69,12,70,34,71,72,73,74,47,75,76,77,78,31,10,79,13,18,16,133,141,33,36,162,84,106,135,101,163,164,56,17,44,85,28,4,98,99,48,100]))),validateSearch:pl(()=>be({action:dn(["create"]).optional(),tab:dn(["all","connected"]).optional()}))}),$ce=st({getParentRoute:()=>vn,path:"/connections/$appSlug",component:dt(()=>lt(()=>import("./connection-detail-Mimew6o2.js"),__vite__mapDeps([165,82,83,133,100,4,47,78,166,22,80,38,70,53,49,167,168,81,91,25,98,35,1,2,64,105,57,58,59,60,54,61,62,63,11,14,40,41,65,66,67,68,15,46,30,69,12,34,71,72,73,74,45,75,76,77,31,10,79,13,18,16,43,48,50,51,139,97,122,152,107,9,123,95,36,85,28,162,84,106,169,141,33,170,124,89,55,94,130]))),validateSearch:pl(()=>be({tab:$().optional()}))}),jce=st({getParentRoute:()=>vn,path:"/connections/$appSlug/$collectionName/$itemId",component:dt(()=>lt(()=>import("./collection-detail-CiMl4FG7.js"),__vite__mapDeps([171,133,49,22,85,28,4,99,169,141,33,34,35,36,18,172,167,83,168,48,149,137,86,134,38,97,98,1,2,64,146,57,58,59,60,54,61,62,63,11,14,40,41,65,66,67,68,15,46,30,69,12,70,71,72,73,74,47,45,75,76,77,78,31,10,79,13,16,53,80,17,118,129,108,130,95,145,87,173,24,122,174,166,81,82,91,25,105,43,50,51,89,139,121,112,21,23,106,103,8,9,19,20,26]))),validateSearch:pl(()=>be({replayId:$().optional()}))}),Uce=st({getParentRoute:()=>vn,path:"/monitor",component:dt(()=>lt(()=>import("./index-LDNFPs7X.js"),__vite__mapDeps([175,142,45,141,33,34,35,36,18,133,176,135,177,159,97,43,1,67,68,15,70,74,57,58,59,60,54,61,62,63,11,14,2,40,41,64,65,66,38,46,30,69,12,71,72,73,47,75,76,77,78,31,10,79,13,16,149,137,86,152,107,53,49,22,48,4,150,92,93,94,151,101,109,148,106,102,98,56,104,105,17,9,117,110,111,118,119,120,121,122,112,21,23,24,103,25,8,19,20,26,95,51,123,85,28,178,99,96,29,174,170,168,89]))),validateSearch:pl(()=>be({tab:dn(["overview","audit","threads","automations"]).default("overview"),from:$().default("now-30m"),to:$().default("now"),connectionId:Oe($()).optional().default([]),virtualMcpId:Oe($()).optional().default([]),tool:$().default(""),status:dn(["all","success","errors"]).default("all"),search:$().default(""),page:ht().optional(),streaming:Nt().default(!0),propertyFilters:$().default(""),hideSystem:Nt().default(!1)}))}),zce=st({getParentRoute:()=>vn,path:"/general",component:dt(()=>lt(()=>import("./general-D61AQybp.js"),__vite__mapDeps([179,141,33,34,35,36,18,107,140,9,10,4,128,94,62,180,106,29,84,176,135,177,159])))}),Fce=st({getParentRoute:()=>vn,path:"/features",component:dt(()=>lt(()=>import("./features-Dsrgvggp.js"),__vite__mapDeps([181,141,33,34,35,36,18,25,22,29,66,128,94,62,176,135,177,159])))}),Bce=st({getParentRoute:()=>vn,path:"/brand-context",component:dt(()=>lt(()=>import("./brand-context-CHR40nnF.js"),__vite__mapDeps([182,22,2,41,46,71,47,78,16,84,4,99,141,33,34,35,36,18,140,176,135,177,159])))}),Vce=st({getParentRoute:()=>vn,path:"/ai-providers",component:dt(()=>lt(()=>import("./ai-providers-DAK2efaH.js"),__vite__mapDeps([183,58,141,33,34,35,36,18,42,128,94,62,103,22,14,112,21,23,24,106,48,49,25,147,17,44,126,56,1,4,98,2,64,54,59,70,45,75,127,72,86,41,9,10,67,113,77,140,125,84,47,78,144,111,176,135,177,159])))}),Hce=st({getParentRoute:()=>vn,path:"/secrets",component:dt(()=>lt(()=>import("./secrets-CvkPaEJL.js"),__vite__mapDeps([184,58,47,10,79,17,18,4,28,98,35,1,2,64,42,99,141,33,34,36,128,94,62,143,106,176,135,177,159])))}),qce=st({getParentRoute:()=>vn,path:"/files",component:dt(()=>lt(()=>import("./files-BwgPol6-.js"),[]))}),Gce=st({getParentRoute:()=>vn,path:"/buckets",component:dt(()=>lt(()=>import("./buckets-7WU_Biyf.js"),__vite__mapDeps([185,58,69,47,78,84,17,18,4,28,29,42,99,141,33,34,35,36,128,94,62,186,106,176,135,177,159])))}),Kce=st({getParentRoute:()=>vn,path:"/members",component:dt(()=>lt(()=>import("./members-D3KerYs6.js"),__vite__mapDeps([187,161,130,1,41,65,60,35,146,97,142,45,141,33,34,36,18,188,151,133,17,85,28,98,2,64,99,107,189,152,106,84,9,10,94,70,76,78,13,56,104,105,43,47,176,135,177,159])))}),Zce=st({getParentRoute:()=>vn,path:"/roles",component:dt(()=>lt(()=>import("./roles-DcdBU5wW.js"),__vite__mapDeps([190,189,107,97,84,130,1,41,65,47,78,188,151,60,141,33,34,35,36,18,133,142,45,127,95,66,57,58,59,54,61,62,63,11,14,2,40,64,67,38,68,15,46,30,69,12,70,71,72,73,74,75,76,77,31,10,79,13,16,101,56,102,93,22,55,152,53,49,103,9,29,128,94,135,177,159]))),validateSearch:pl(()=>be({role:$().optional()}))}),Yce=st({getParentRoute:()=>vn,path:"/sso",component:dt(()=>lt(()=>import("./sso-0oMpJ4kh.js"),__vite__mapDeps([191,180,106,29,128,94,62,141,33,34,35,36,18,4,26,78,176,135,177,159])))}),Wce=st({getParentRoute:()=>vn,path:"/profile",component:dt(()=>lt(()=>import("./profile-D24Mm1Bo.js"),__vite__mapDeps([192,141,33,34,35,36,18,9,10,29,98,1,2,64,125,4,72,73,74,140,131,87,128,94,62])))}),Qce=st({getParentRoute:()=>vn,path:"/store",component:dt(()=>lt(()=>import("./store-BVB26WGO.js"),__vite__mapDeps([193,58,41,47,78,4,29,42,9,10,43,53,49,22,141,33,34,35,36,18,91,25,128,94,62,176,135,177,159])))}),Xce=st({getParentRoute:()=>vn,path:"/registry",component:dt(()=>lt(()=>import("./registry-BnciKKiV.js"),__vite__mapDeps([194,176,135,177,159])))}),Jce=st({getParentRoute:()=>vn,path:"/store/registry",component:dt(()=>lt(()=>import("./store-registry-CO_g7WZl.js"),__vite__mapDeps([195,176,135,177,159])))}),eue=st({getParentRoute:()=>vn,path:"/workflows",component:dt(()=>lt(()=>import("./workflow-DEw4Tgx1.js"),__vite__mapDeps([196,22,82,83,161,130,1,41,65,60,35,146,97,55,45,94,95,66,57,58,59,54,61,62,63,11,14,2,40,64,67,38,68,15,46,30,69,12,70,34,71,72,73,74,47,75,76,77,78,31,10,79,13,18,16,188,151,173,138,9,106,133,163,164,89,84,49,53,169,141,33,36])))}),tue=st({getParentRoute:()=>vn,path:"/workflows/$itemId",component:dt(()=>lt(()=>import("./workflow-detail-DPYK3MGg.js"),__vite__mapDeps([197,172,167,22,83,168,48,49,149,137,86,134,38,97,98,35,1,2,64,146,57,58,59,60,54,61,62,63,11,14,40,41,65,66,67,68,15,46,30,69,12,70,34,71,72,73,74,47,45,75,76,77,78,31,10,79,13,18,16,169,141,33,36,53,80,17,118,129,108,130,95,145,87,173,24,4])))}),nue=st({getParentRoute:()=>PE,path:"/plugins/$pluginId",component:dt(()=>lt(()=>import("./org-plugin-layout-C_lutJvY.js"),__vite__mapDeps([198,199,53,49,22,106,75,141,33,34,35,36,18])))}),rue=st({getParentRoute:()=>vn,path:"/agents",component:dt(()=>lt(()=>import("./agents-list-DNeWvyP9.js"),__vite__mapDeps([200,130,1,41,65,46,11,52,48,49,22,51,53,17,18,54,55,45,56,57,58,59,60,61,62,63,14,2,40,64,66,67,38,68,15,30,69,12,70,34,71,72,73,74,47,75,76,77,78,31,10,79,13,16,80,81,82,83,141,33,35,36,94,144,111,135,133,50,84,142])))}),oue=st({getParentRoute:()=>vn,path:"/automations",component:dt(()=>lt(()=>import("./automations-Ce44y56V.js"),__vite__mapDeps([201,47,16,142,45,141,33,34,35,36,18,133,148,22,51,48,49,153,84,130,1,41,65,57,58,59,60,54,61,62,63,11,14,2,40,64,66,67,38,68,15,46,30,69,12,70,71,72,73,74,75,76,77,78,31,10,79,13,176,135,177,159])))}),ML=st({getParentRoute:()=>IL,path:"/$pluginId",component:dt(()=>lt(()=>import("./dynamic-plugin-layout-D3tgFtHQ.js"),__vite__mapDeps([202,199,53,49,22,106,75,141,33,34,35,36,18])))}),iue=[],sue=[],aue=[],PL=[];wce.forEach(e=>{if(!e.setup)return;const t={parentRoute:ML,routing:{createRoute:st,lazyRouteComponent:dt},registerRootSidebarItem:n=>iue.push({pluginId:e.id,...n}),registerSidebarGroup:n=>sue.push({pluginId:e.id,...n}),registerSettingsSidebarItem:n=>aue.push({pluginId:e.id,...n}),registerPluginRoutes:n=>{PL.push(...n)}};e.setup(t)});const lue=ML.addChildren(PL),cue=vn.addChildren([Dce,Lce,$ce,jce,rue,oue,Uce,zce,Fce,Bce,Vce,Hce,qce,Gce,Kce,Zce,Yce,Wce,Qce,Jce,Xce,eue,tue]),uue=IL.addChildren([lue]),due=PE.addChildren([uue,nue]),fue=xv.addChildren([Mce,Nce,due]),hue=Ev.addChildren([fue,cue,kce]),pue=ME.addChildren([Cce,hue]),mue=gs.addChildren([pue,Ace,Sce,Ece,xce,Rce,Oce,Tce]),gue=DU({routeTree:mue,defaultPendingComponent:IE,defaultPendingMs:200,defaultNotFoundComponent:()=>C.jsx("div",{className:"flex h-full items-center justify-center",children:C.jsxs("div",{className:"flex flex-col items-center gap-4 p-8",children:[C.jsx("h3",{className:"text-lg font-medium text-foreground",children:"Page not found"}),C.jsx("p",{className:"text-sm text-muted-foreground text-center max-w-[300px]",children:"The page you are looking for does not exist or has been moved."}),C.jsx("button",{type:"button",onClick:()=>window.history.back(),className:"text-sm text-primary hover:underline",children:"Go back"})]})})});cce();const vue=document.getElementById("root");t8.createRoot(vue).render(C.jsx(M.StrictMode,{children:C.jsx(jU,{router:gue})}));export{fl as $,Xue as A,ff as B,RL as C,IK as D,Dde as E,xL as F,Dw as G,Oi as H,Ti as I,Rde as J,TP as K,au as L,Tde as M,Tue as N,i3 as O,Ug as P,Ede as Q,Eue as R,IE as S,be as T,ht as U,xde as V,$ as W,CP as X,dte as Y,xue as Z,lt as _,Z8 as a,DW as a$,Zle as a0,Ate as a1,Lle as a2,kue as a3,Due as a4,vt as a5,UQ as a6,En as a7,ut as a8,HQ as a9,B8 as aA,Zn as aB,K8 as aC,qO as aD,V8 as aE,H8 as aF,Sde as aG,Oe as aH,dn as aI,Mt as aJ,Nt as aK,Nde as aL,AK as aM,kde as aN,hv as aO,VC as aP,Aw as aQ,NW as aR,ii as aS,ef as aT,jg as aU,ES as aV,qc as aW,ha as aX,ps as aY,si as aZ,q4 as a_,YQ as aa,zQ as ab,FQ as ac,oi as ad,jQ as ae,bk as af,vl as ag,BQ as ah,VQ as ai,qQ as aj,GQ as ak,KQ as al,ZQ as am,WQ as an,XQ as ao,JQ as ap,wL as aq,tu as ar,Wn as as,Im as at,hP as au,wP as av,$8 as aw,z8 as ax,q8 as ay,F8 as az,Kg as b,K6 as b$,jW as b0,LW as b1,EW as b2,nle as b3,iL as b4,ee as b5,yue as b6,aue as b7,$de as b8,jde as b9,F4 as bA,tde as bB,ma as bC,_ue as bD,NY as bE,QP as bF,ga as bG,gv as bH,df as bI,rce as bJ,lce as bK,Lde as bL,Pde as bM,Mde as bN,Ade as bO,SN as bP,TL as bQ,Ide as bR,nde as bS,yo as bT,el as bU,fn as bV,Aue as bW,sN as bX,die as bY,fie as bZ,mE as b_,Xt as ba,wde as bb,vde as bc,bde as bd,uQ as be,pk as bf,B4 as bg,vf as bh,aa as bi,cQ as bj,hs as bk,Cde as bl,sL as bm,dS as bn,bo,Ge as bp,ZB as bq,UN as br,eS as bs,c4 as bt,m5 as bu,v5 as bv,xX as bw,Jn as bx,WX as by,tk as bz,ece as c,sE as c$,gE as c0,mv as c1,M6 as c2,Oie as c3,N6 as c4,wie as c5,kie as c6,Hoe as c7,Goe as c8,Yoe as c9,MY as cA,PY as cB,gf as cC,PK as cD,MK as cE,JN as cF,RP as cG,dz as cH,I6 as cI,k6 as cJ,$6 as cK,U6 as cL,z6 as cM,B6 as cN,ade as cO,lde as cP,ide as cQ,sde as cR,xoe as cS,ode as cT,D6 as cU,j6 as cV,F6 as cW,dde as cX,L6 as cY,gae as cZ,hde as c_,sie as ca,yie as cb,Sie as cc,qoe as cd,Koe as ce,Woe as cf,Qoe as cg,aie as ch,mie as ci,cde as cj,yde as ck,_de as cl,wce as cm,sue as cn,Wue as co,cL as cp,$B as cq,Cue as cr,Nue as cs,zV as ct,pl as cu,hV as cv,Yw as cw,Iue as cx,Ef as cy,AY as cz,e3 as d,Ww as d$,$oe as d0,rde as d1,A6 as d2,sse as d3,pie as d4,fde as d5,Xie as d6,tse as d7,Lie as d8,Die as d9,ri as dA,Uue as dB,jue as dC,tce as dD,wue as dE,bue as dF,TX as dG,n3 as dH,vX as dI,_X as dJ,wX as dK,yX as dL,bX as dM,zue as dN,Fue as dO,que as dP,Gue as dQ,Kue as dR,Zue as dS,Bue as dT,Vue as dU,Hue as dV,mV as dW,Kw as dX,GB as dY,Mue as dZ,_V as d_,pde as da,Vae as db,mde as dc,ude as dd,kY as de,DY as df,LY as dg,IY as dh,kX as di,DX as dj,NX as dk,fk as dl,WW as dm,pS as dn,rk as dp,fS as dq,QW as dr,$ue as ds,XW as dt,x4 as du,mS as dv,Jd as dw,m4 as dx,hS as dy,SL as dz,ir as e,Zw as e0,SV as e1,Pue as e2,Rse as e3,_t as e4,Ir as e5,Oue as e6,OK as e7,xK as e8,bK as e9,qN as ea,ice as eb,gce as ec,$g as f,Fw as g,Jue as h,Que as i,C as j,ede as k,EL as l,Ode as m,OP as n,oC as o,qle as p,Eoe as q,M as r,hf as s,Ble as t,Rue as u,AE as v,gde as w,CK as x,Lue as y,ule as z};