@decocms/mesh 2.139.3 → 2.139.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/assets/{AlertCircle-M_vDM06X.js → AlertCircle-B-qrtAf7.js} +1 -1
- package/dist/client/assets/{AlignLeft-BPVTL7Lg.js → AlignLeft-D93Obywx.js} +1 -1
- package/dist/client/assets/{ArrowDown-C0AHT6Se.js → ArrowDown-Brxajv-A.js} +1 -1
- package/dist/client/assets/{ArrowLeft-uXw4hDrl.js → ArrowLeft-ChnnVeV0.js} +1 -1
- package/dist/client/assets/{ArrowUp-D3L33LOK.js → ArrowUp-D5ZC-G9T.js} +1 -1
- package/dist/client/assets/{Check-DhJrraz0.js → Check-xOBqZzmv.js} +1 -1
- package/dist/client/assets/{CheckCircle-CHWgGReR.js → CheckCircle-t4fWflCL.js} +1 -1
- package/dist/client/assets/{CheckDone01-t8ZCK-7w.js → CheckDone01-CtIvl6NR.js} +1 -1
- package/dist/client/assets/{CheckVerified02-BkcCiKst.js → CheckVerified02-CEWZcD4z.js} +1 -1
- package/dist/client/assets/{ChevronDown-DF3whIkz.js → ChevronDown-cFwq8_1y.js} +1 -1
- package/dist/client/assets/{ChevronLeft-wqObUnTJ.js → ChevronLeft-BDb5Vgx_.js} +1 -1
- package/dist/client/assets/{ChevronRight-TdWXpEIC.js → ChevronRight-zkVqPrw5.js} +1 -1
- package/dist/client/assets/{Clock-BtVgm0vZ.js → Clock-C8sBJSRB.js} +1 -1
- package/dist/client/assets/{Code01-DpgekTbT.js → Code01-Be1Un4zy.js} +1 -1
- package/dist/client/assets/{Container-C5O_vd5l.js → Container-BzuFyXB-.js} +1 -1
- package/dist/client/assets/{Copy01-DdgoiM5k.js → Copy01-D46xqpGe.js} +1 -1
- package/dist/client/assets/{Dataflow03-NGApWH5q.js → Dataflow03-C_auGuZw.js} +1 -1
- package/dist/client/assets/{DotsHorizontal-BdcComsR.js → DotsHorizontal-BzL1ksOS.js} +1 -1
- package/dist/client/assets/{DotsVertical-DngStBCK.js → DotsVertical-BWpyls9E.js} +1 -1
- package/dist/client/assets/{Download01-m8eiGYWG.js → Download01-DXQ7eLHV.js} +1 -1
- package/dist/client/assets/{Edit01-aQW4vCf2.js → Edit01-C-LkGhJt.js} +1 -1
- package/dist/client/assets/{Edit05-eAle7eYX.js → Edit05-B4gumSwA.js} +1 -1
- package/dist/client/assets/{Eye-D7EUKcSA.js → Eye-S2bOaZIy.js} +1 -1
- package/dist/client/assets/{File02-BgWATqR8.js → File02-v1x_k3KU.js} +1 -1
- package/dist/client/assets/{File06-CGYk4Mh5.js → File06-CjPbqhL6.js} +1 -1
- package/dist/client/assets/{FilterLines-BJ0Gbspi.js → FilterLines-DkQNMule.js} +1 -1
- package/dist/client/assets/{Globe01-Dl836bGy.js → Globe01-O7yat0_O.js} +1 -1
- package/dist/client/assets/{Globe02-Cwg0aLD6.js → Globe02-ChkOndGF.js} +1 -1
- package/dist/client/assets/{Grid01-BWhQjjDh.js → Grid01-H33eVxTX.js} +1 -1
- package/dist/client/assets/{Hash02-CcdmiUse.js → Hash02-BQbZm01-.js} +1 -1
- package/dist/client/assets/{Home02-ChdqVBjn.js → Home02-PdwInqFp.js} +1 -1
- package/dist/client/assets/{Image01-BLdmiwkG.js → Image01-CcXuD64C.js} +1 -1
- package/dist/client/assets/{Inbox01-CGne0tMp.js → Inbox01-CPxBPhel.js} +1 -1
- package/dist/client/assets/{InfoCircle-C7xGlw8n.js → InfoCircle-DK-HgSib.js} +1 -1
- package/dist/client/assets/{Key01-KqOK513j.js → Key01-HU-4mHLo.js} +1 -1
- package/dist/client/assets/{LayersTwo01-C9Qwrse5.js → LayersTwo01-RwSQ1J1I.js} +1 -1
- package/dist/client/assets/{LayoutLeft-Dtb_1Jp2.js → LayoutLeft-CbZOAm5Z.js} +1 -1
- package/dist/client/assets/{Link01-DdTCH4v9.js → Link01-DP82_UiC.js} +1 -1
- package/dist/client/assets/{LinkExternal01-CcLhJWrG.js → LinkExternal01-xPEp6WiT.js} +1 -1
- package/dist/client/assets/{List-CqTZ79z9.js → List-DIViT3Rd.js} +1 -1
- package/dist/client/assets/{Loading01-f9s2h1wv.js → Loading01-e5vrz4Tg.js} +1 -1
- package/dist/client/assets/{Lock01-B-0IEcXK.js → Lock01-CFsYgwl6.js} +1 -1
- package/dist/client/assets/{Play-BoKAVToz.js → Play-UpsQgFLL.js} +1 -1
- package/dist/client/assets/{Plus-BXkHOQsb.js → Plus-CAkBZRVl.js} +1 -1
- package/dist/client/assets/{RefreshCcw01-p39bp66R.js → RefreshCcw01-CsIOFnxl.js} +1 -1
- package/dist/client/assets/{Save01-DxAaB8Dn.js → Save01-C8SmHjV2.js} +1 -1
- package/dist/client/assets/{SearchMd-195kdrrc.js → SearchMd-3uDmzuN-.js} +1 -1
- package/dist/client/assets/{Settings01-CO9ZR5u9.js → Settings01-de0ujEEu.js} +1 -1
- package/dist/client/assets/{Shield01-CitF2_Bx.js → Shield01-Cd56MItL.js} +1 -1
- package/dist/client/assets/{Terminal-BI8lk715.js → Terminal-D4rOkPT8.js} +1 -1
- package/dist/client/assets/{Trash01-BPU7sU05.js → Trash01-GIxw_9KX.js} +1 -1
- package/dist/client/assets/{Upload01-CvIv0y_p.js → Upload01-DvU8XgOn.js} +1 -1
- package/dist/client/assets/{Users03-DVX3bbcm.js → Users03-Ci_Q0Bm5.js} +1 -1
- package/dist/client/assets/{X-DO1ZPMDK.js → X-D43RBdCi.js} +1 -1
- package/dist/client/assets/{XCircle-YMmdzMOW.js → XCircle-BT7T8C4l.js} +1 -1
- package/dist/client/assets/{XClose-BKL3EMXH.js → XClose-CPAcIRmr.js} +1 -1
- package/dist/client/assets/{Zap-DRU6cySW.js → Zap-AMjggLw-.js} +1 -1
- package/dist/client/assets/{agent-connections-preview-v1h44iHE.js → agent-connections-preview-ChIn79lc.js} +1 -1
- package/dist/client/assets/{agent-detail-B4KXmiS-.js → agent-detail-Fjm0OMqB.js} +1 -1
- package/dist/client/assets/{agents-DUYxE1v-.js → agents-CsJ8bLN2.js} +1 -1
- package/dist/client/assets/{alert-dialog-NBgR76Yp.js → alert-dialog-BF806470.js} +1 -1
- package/dist/client/assets/{auth-catchall-BkY6XTqn.js → auth-catchall-BDFjm7S-.js} +1 -1
- package/dist/client/assets/{avatar-CSPJYHbS.js → avatar-JlaJAGyz.js} +1 -1
- package/dist/client/assets/{badge-KDRqEGRi.js → badge-DuzneqaM.js} +1 -1
- package/dist/client/assets/{binder-DlLVJxi6.js → binder-CSUd_3kq.js} +1 -1
- package/dist/client/assets/{breadcrumb-Djkz23vb.js → breadcrumb-oXffKFw_.js} +1 -1
- package/dist/client/assets/{card-D-rpkLYG.js → card-B9F3gzU1.js} +1 -1
- package/dist/client/assets/{chart-BKDAOT1r.js → chart-CI8PXMri.js} +1 -1
- package/dist/client/assets/{checkbox-DY4RVI9F.js → checkbox-DzpFguCb.js} +1 -1
- package/dist/client/assets/{circle-alert-Bbr8JHad.js → circle-alert-BEV9hKq0.js} +1 -1
- package/dist/client/assets/{collapsible-D8z9g1MN.js → collapsible-65I6Ioz9.js} +1 -1
- package/dist/client/assets/{collection-detail-DxQo_ZG8.js → collection-detail-DnRXu6MS.js} +1 -1
- package/dist/client/assets/{collection-display-button-095BNnmg.js → collection-display-button-ByS_K4lH.js} +1 -1
- package/dist/client/assets/{collection-search-CRbc4DEy.js → collection-search-mO1HMauC.js} +1 -1
- package/dist/client/assets/{collection-tab-BaVME9h1.js → collection-tab-CkV__WhE.js} +1 -1
- package/dist/client/assets/{collection-table-wrapper-DqKxtjgj.js → collection-table-wrapper-CKemfX3q.js} +1 -1
- package/dist/client/assets/{collection-tabs-DvbR35T7.js → collection-tabs-Bx4HaaQG.js} +1 -1
- package/dist/client/assets/{command-Deql40ij.js → command-IGPGgPev.js} +1 -1
- package/dist/client/assets/{connect-CFEdZ_yc.js → connect-BRw7VxSz.js} +1 -1
- package/dist/client/assets/{connection-card-D3LRvC6Z.js → connection-card-CqqNv-1c.js} +1 -1
- package/dist/client/assets/{connection-detail-AatE-8EW.js → connection-detail-Do2QWhRf.js} +1 -1
- package/dist/client/assets/{connection-status-tnMJ5LrM.js → connection-status-DspYTx4l.js} +1 -1
- package/dist/client/assets/{connections-CrRorVhD.js → connections-oTwxAoKQ.js} +1 -1
- package/dist/client/assets/{constants-P4PVvchD.js → constants-Bi0KgUSI.js} +1 -1
- package/dist/client/assets/constants-C5K20DFA.js +1 -0
- package/dist/client/assets/{create-organization-dialog-DeHgw2r6.js → create-organization-dialog-B5UUWfs1.js} +1 -1
- package/dist/client/assets/{create-project-dialog-BR1WnOn3.js → create-project-dialog-B2mUe54b.js} +1 -1
- package/dist/client/assets/{danger-BcasZcHx.js → danger-DCm_AnTP.js} +1 -1
- package/dist/client/assets/{danger-zone-lGF1n9Js.js → danger-zone-DS8Xvo50.js} +1 -1
- package/dist/client/assets/{decopilot-events-BKM3OJ_e.js → decopilot-events-tuPofCi7.js} +1 -1
- package/dist/client/assets/{dependencies-C1lxz-K7.js → dependencies-Bn8l9gYN.js} +1 -1
- package/dist/client/assets/{dialog-CgD1R6sd.js → dialog-qBZn-zYi.js} +1 -1
- package/dist/client/assets/{dropdown-menu-fntgBKzW.js → dropdown-menu-DzUfzpVE.js} +1 -1
- package/dist/client/assets/{dynamic-plugin-layout-ZebFN00-.js → dynamic-plugin-layout-C7QgAOIC.js} +1 -1
- package/dist/client/assets/{editable-task-title-DPHjdMNk.js → editable-task-title-D48vrJtg.js} +1 -1
- package/dist/client/assets/{empty-state-BgUzJrfv.js → empty-state-lIvnej4y.js} +1 -1
- package/dist/client/assets/{env-vars-editor-h4ys9I0Q.js → env-vars-editor-CeqquBJY.js} +1 -1
- package/dist/client/assets/{extract-connection-data-DMHxmYCR.js → extract-connection-data-CuU1tc3b.js} +1 -1
- package/dist/client/assets/{file-browser-tpKJqOem.js → file-browser-Ni3oYaWz.js} +2 -2
- package/dist/client/assets/{form-CdDRR2LD.js → form-CvuQGiSW.js} +1 -1
- package/dist/client/assets/{general-BcfZa0RV.js → general-9N19ol48.js} +1 -1
- package/dist/client/assets/{grid-view-sFCv8Uqb.js → grid-view-nGNsPql9.js} +1 -1
- package/dist/client/assets/{home-DLSfiDzf.js → home-QZEMZFSO.js} +1 -1
- package/dist/client/assets/{icon-picker-Cnfw2xPr.js → icon-picker-CvTqhz-n.js} +1 -1
- package/dist/client/assets/{index-03O1pmQL.js → index-580YwBrh.js} +1 -1
- package/dist/client/assets/{index-jcoT9kFz.js → index-9XMeAvuz.js} +1 -1
- package/dist/client/assets/{index-eiswKdro.js → index-B2bsc0yn.js} +1 -1
- package/dist/client/assets/{index-CRZHS1YQ.js → index-B3tSRm_S.js} +1 -1
- package/dist/client/assets/{index-ClqqZs3X.js → index-BrwvwF2e.js} +1 -1
- package/dist/client/assets/{index-DwOzHQTE.js → index-C3HPQ2Xr.js} +1 -1
- package/dist/client/assets/{index-DMRPqDGw.js → index-DNc2lZPL.js} +1 -1
- package/dist/client/assets/{index-CS60M-lN.js → index-DlVoIZWW.js} +46 -46
- package/dist/client/assets/{index-D-htvwK7.js → index-zTmRWZBl.js} +3 -3
- package/dist/client/assets/{infiniteQueryObserver-DuuHSt2c.js → infiniteQueryObserver-CzeIHV7S.js} +1 -1
- package/dist/client/assets/{input-BSTFqIOK.js → input-yDn0CDzQ.js} +1 -1
- package/dist/client/assets/{integration-icon-Dhxeif96.js → integration-icon-BKuXjqdm.js} +1 -1
- package/dist/client/assets/{label-LNmGa3p2.js → label-D93HnDXr.js} +1 -1
- package/dist/client/assets/{layout-o3US39xJ.js → layout-7Qb5YRAm.js} +1 -1
- package/dist/client/assets/{layout-Cr68mJKX.js → layout-CrCZjoK5.js} +1 -1
- package/dist/client/assets/{localstorage-keys-CnuA12nM.js → localstorage-keys-DyhMCgsK.js} +1 -1
- package/dist/client/assets/{login-Dtyhtjmx.js → login-BqsIHX7V.js} +1 -1
- package/dist/client/assets/{markdown-7_Q9oy6X.js → markdown-Biu_K3T4.js} +1 -1
- package/dist/client/assets/{mcp-app-renderer-DTCug0hq.js → mcp-app-renderer-C2Ylvbme.js} +1 -1
- package/dist/client/assets/{mcp-oauth-DIzWYxTe.js → mcp-oauth-Bjgs9JoZ.js} +1 -1
- package/dist/client/assets/{mcp-server-card-CWrVyxhZ.js → mcp-server-card-Cup_00LD.js} +1 -1
- package/dist/client/assets/{mcp-server-detail-BCWsEtk3.js → mcp-server-detail--Jr_gAUp.js} +2 -2
- package/dist/client/assets/{members-BNvy-9dg.js → members-uqs0bICl.js} +1 -1
- package/dist/client/assets/{monaco-editor-D3oYOUgK.js → monaco-editor-DxLnMtPf.js} +1 -1
- package/dist/client/assets/{monitoring-O-i3Zgvs.js → monitoring-BVpuqZj3.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-edit-DICpgu4d.js → monitoring-dashboard-edit-DboSkF1Z.js} +1 -1
- package/dist/client/assets/{monitoring-dashboard-view-CESwm42A.js → monitoring-dashboard-view-Sh6DZnJz.js} +1 -1
- package/dist/client/assets/{oauth-callback-DpqL6SB9.js → oauth-callback-C_W-tYN-.js} +1 -1
- package/dist/client/assets/{page-CXJk9Ut5.js → page-Bes2KnC1.js} +1 -1
- package/dist/client/assets/{page-B5VsNKJS.js → page-_IMVPTag.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-C6dQF47Z.js → plugin-empty-state-9L7esDde.js} +1 -1
- package/dist/client/assets/{plugin-empty-state-C-A808mR.js → plugin-empty-state-DiQvKRhi.js} +1 -1
- package/dist/client/assets/{plugin-header-C0Yd_CZi.js → plugin-header--u34B63W.js} +1 -1
- package/dist/client/assets/{plugin-header-D0x1sxLc.js → plugin-header-BQ0StX2h.js} +1 -1
- package/dist/client/assets/plugins-CVY3rx6b.js +1 -0
- package/dist/client/assets/{popover-DXIC1-bw.js → popover-BD-c_pAA.js} +1 -1
- package/dist/client/assets/{project-app-view-xR_h2zD7.js → project-app-view-DIraT3UL.js} +1 -1
- package/dist/client/assets/{project-layout-H5_8u4_Q.js → project-layout-D1HtBF_a.js} +1 -1
- package/dist/client/assets/{project-plugins-CjYskV4q.js → project-plugins-Bf4ZMkbc.js} +1 -1
- package/dist/client/assets/{projects-list-BGFm_ckP.js → projects-list-Bfhn5AOu.js} +1 -1
- package/dist/client/assets/{readme-viewer-B4AR77I_.js → readme-viewer-Bz6eCbMV.js} +1 -1
- package/dist/client/assets/{registry-layout-CbovzAcU.js → registry-layout-DJa_ec1i.js} +1 -1
- package/dist/client/assets/{registry-utils-CdFhHdcR.js → registry-utils-BAmZqs68.js} +1 -1
- package/dist/client/assets/{reports-layout-DZZ6JpS5.js → reports-layout-D5Z2DXwV.js} +1 -1
- package/dist/client/assets/{reset-password-YnbsVy6R.js → reset-password-Dl47mf_w.js} +1 -1
- package/dist/client/assets/{resizable-DhZ4OF4a.js → resizable-D-Qy_gIf.js} +1 -1
- package/dist/client/assets/{save-actions-D9BU7-6K.js → save-actions-C1NjZgvb.js} +1 -1
- package/dist/client/assets/{scroll-area-DgGHH6RH.js → scroll-area-fWogdApD.js} +1 -1
- package/dist/client/assets/{select-CrOlaxCO.js → select-45R_TReG.js} +1 -1
- package/dist/client/assets/{shell-layout-DPeqU-6v.js → shell-layout-CA8fD8RA.js} +2 -2
- package/dist/client/assets/{sidebar-settings-Auqs2XAg.js → sidebar-settings--2xwv6Nu.js} +1 -1
- package/dist/client/assets/{skeleton-DML2aQA-.js → skeleton-B23sd6oG.js} +1 -1
- package/dist/client/assets/{spinner-cdL_Fmz-.js → spinner-DrSoNW9Q.js} +1 -1
- package/dist/client/assets/{store-invite-DmN5PmIw.js → store-invite-DJFtuLEP.js} +1 -1
- package/dist/client/assets/{switch-CAg0B_Rv.js → switch-DbnN_OzY.js} +1 -1
- package/dist/client/assets/{table-Bn8GUsEe.js → table-JhNW7SQy.js} +1 -1
- package/dist/client/assets/{tabs-C7dg0Vvg.js → tabs-fxZVpBgm.js} +1 -1
- package/dist/client/assets/tasks-9SndjM2b.js +1 -0
- package/dist/client/assets/{tasks-panel-Bw2bEANh.js → tasks-panel-CL4KTePe.js} +1 -1
- package/dist/client/assets/{textarea-BcqBCUUu.js → textarea-DdFrppMC.js} +1 -1
- package/dist/client/assets/{time-range-picker-CoqzHvv0.js → time-range-picker-cwer29Fw.js} +1 -1
- package/dist/client/assets/{toggle-group-D0qkbRCN.js → toggle-group-DN2MnVNp.js} +1 -1
- package/dist/client/assets/{tools-list-BkL1UdvP.js → tools-list-DIjrxN4B.js} +1 -1
- package/dist/client/assets/{tooltip-BtnNkpKs.js → tooltip-c2IY6Q1h.js} +1 -1
- package/dist/client/assets/{topbar-portal-jOMGe5hi.js → topbar-portal-B1jaxoch.js} +1 -1
- package/dist/client/assets/{types-BLisMR9q.js → types-D02NXJjh.js} +1 -1
- package/dist/client/assets/{use-binding-BTY1B5EO.js → use-binding-CczCr_I6.js} +1 -1
- package/dist/client/assets/{use-collections-S_4aLkkK.js → use-collections-BM5qbXh2.js} +1 -1
- package/dist/client/assets/{use-connection-CIMDlS0p.js → use-connection-D_z7DIgr.js} +1 -1
- package/dist/client/assets/{use-copy-X88seI8c.js → use-copy-CedSm4V4.js} +1 -1
- package/dist/client/assets/{use-create-virtual-mcp-Crgs_7Nu.js → use-create-virtual-mcp-DN0LN6Ks.js} +1 -1
- package/dist/client/assets/{use-install-from-registry-B9tJfMj0.js → use-install-from-registry-DJsrJBCB.js} +1 -1
- package/dist/client/assets/{use-list-state-BSenVV3C.js → use-list-state-DiVFU-Ch.js} +1 -1
- package/dist/client/assets/{use-llm-DNHK5zRW.js → use-llm-Cgu6F_JM.js} +1 -1
- package/dist/client/assets/{use-mcp-resources-DdAbAYhl.js → use-mcp-resources-F-AJdNv-.js} +1 -1
- package/dist/client/assets/{use-mcp-tools-9xAyOALf.js → use-mcp-tools-CXYzi3AR.js} +1 -1
- package/dist/client/assets/{use-members-Cm-k0g9m.js → use-members-DgdmWVSo.js} +1 -1
- package/dist/client/assets/{use-mobile-qpUl5FeD.js → use-mobile-Y1Ty5Ao9.js} +1 -1
- package/dist/client/assets/{use-project-DfoyehRx.js → use-project-Bp8E6yw9.js} +1 -1
- package/dist/client/assets/{use-settings-modal-DdyHyLPW.js → use-settings-modal-BMI_o1Ch.js} +1 -1
- package/dist/client/assets/{use-view-mode-JyUdxjkA.js → use-view-mode-D1a8tpCU.js} +1 -1
- package/dist/client/assets/{use-virtual-mcp-qK-NM0rh.js → use-virtual-mcp-BwZwR42s.js} +1 -1
- package/dist/client/assets/useInfiniteQuery-MM2sZURp.js +1 -0
- package/dist/client/assets/{useMutation-D9A8H6Gw.js → useMutation-DxToDvqg.js} +1 -1
- package/dist/client/assets/useQuery-C_yP5u2a.js +1 -0
- package/dist/client/assets/useSuspenseInfiniteQuery-rRWDLVCQ.js +1 -0
- package/dist/client/assets/{user-DOfZcM2J.js → user-Cjj1cELF.js} +1 -1
- package/dist/client/assets/{workflow-CCx8GI9K.js → workflow-DF5-JJx7.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/server/cli.js +3 -3
- package/dist/server/migrate.js +1 -1
- package/dist/server/server.js +3 -3
- package/package.json +1 -1
- package/dist/client/assets/constants-B8it1peu.js +0 -1
- package/dist/client/assets/plugins-BODrRYA2.js +0 -1
- package/dist/client/assets/tasks-BlpbiwmW.js +0 -1
- package/dist/client/assets/useInfiniteQuery-BspPd2u8.js +0 -1
- package/dist/client/assets/useQuery-D9zfpIOd.js +0 -1
- package/dist/client/assets/useSuspenseInfiniteQuery-BqnGzNK9.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as f,v as y,j as s,d as A,r as C,B as $,bA as F,b as E,n as O,t as w}from"./index-D-htvwK7.js";import{C as k}from"./card-D-rpkLYG.js";import{A as R}from"./avatar-CSPJYHbS.js";import{i as D}from"./AlertCircle-M_vDM06X.js";import{i as H}from"./Check-DhJrraz0.js";import{s as G}from"./Plus-BXkHOQsb.js";import{i as Q}from"./SearchMd-195kdrrc.js";import{s as q}from"./XClose-BKL3EMXH.js";import{I as B}from"./input-BSTFqIOK.js";import{C as T}from"./create-organization-dialog-DeHgw2r6.js";import"./alert-dialog-NBgR76Yp.js";import"./form-CdDRR2LD.js";import"./label-LNmGa3p2.js";import"./spinner-cdL_Fmz-.js";import"./useMutation-D9A8H6Gw.js";function U(t){const e=f.c(10),{children:n,className:l,onNavigate:i,showHoverRing:r}=t,d=r===void 0?!1:r;let o;e[0]!==i?(o=p=>{i&&i(p)},e[0]=i,e[1]=o):o=e[1];const m=o,x=i&&"cursor-pointer",a=d&&"hover:ring-2 hover:ring-primary";let c;e[2]!==l||e[3]!==x||e[4]!==a?(c=y("group transition-all flex flex-col gap-0",x,a,l),e[2]=l,e[3]=x,e[4]=a,e[5]=c):c=e[5];let g;return e[6]!==n||e[7]!==m||e[8]!==c?(g=s.jsx(k,{className:c,onClick:m,children:n}),e[6]=n,e[7]=m,e[8]=c,e[9]=g):g=e[9],g}function M(t){const e=f.c(7),{url:n,fallback:l,shape:i,size:r,objectFit:d,className:o}=t,m=i===void 0?"square":i,x=r===void 0?"lg":r,a=d===void 0?"contain":d;let c;return e[0]!==o||e[1]!==l||e[2]!==a||e[3]!==m||e[4]!==x||e[5]!==n?(c=s.jsx(R,{url:n,fallback:l,shape:m,size:x,objectFit:a,className:o}),e[0]=o,e[1]=l,e[2]=a,e[3]=m,e[4]=x,e[5]=n,e[6]=c):c=e[6],c}function P(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("p-4 flex flex-col gap-4",l),e[0]=l,e[1]=i):i=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function V(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("font-medium truncate",l),e[0]=l,e[1]=i):i=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx("p",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function X(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("text-sm text-muted-foreground truncate",l),e[0]=l,e[1]=i):i=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx("h3",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function Y(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("flex flex-col gap-[2px]",l),e[0]=l,e[1]=i):i=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function J(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("flex justify-between items-start",l),e[0]=l,e[1]=i):i=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function K(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("p-4 border-t border-border flex justify-between items-center",l),e[0]=l,e[1]=i):i=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function W(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("flex items-center text-xs text-muted-foreground",l),e[0]=l,e[1]=i):i=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function Z(){const t=f.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex justify-between items-start",children:s.jsx("div",{className:"h-12 w-12 bg-muted rounded-lg animate-pulse"})}),t[0]=e):e=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"p-4 flex flex-col gap-4",children:[e,s.jsxs("div",{className:"flex flex-col gap-[2px]",children:[s.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg animate-pulse"}),s.jsx("div",{className:"h-4 w-40 bg-muted rounded-lg animate-pulse"})]})]}),t[1]=n):n=t[1];let l;return t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(k,{className:"group transition-colors flex flex-col",children:[n,s.jsxs("div",{className:"p-4 border-t border-border flex justify-between items-center",children:[s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse"}),s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"})]})]}),t[2]=l):l=t[2],l}const u=Object.assign(U,{Avatar:M,AvatarSection:J,Header:P,Title:V,Subtitle:X,Content:Y,Footer:K,Badge:W,Skeleton:Z}),ee={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8"},te={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8"},se={1:"@min-3xl:grid-cols-1",2:"@min-3xl:grid-cols-2",3:"@min-3xl:grid-cols-3",4:"@min-3xl:grid-cols-4",5:"@min-3xl:grid-cols-5",6:"@min-3xl:grid-cols-6",7:"@min-3xl:grid-cols-7",8:"@min-3xl:grid-cols-8"},ie={1:"@min-6xl:grid-cols-1",2:"@min-6xl:grid-cols-2",3:"@min-6xl:grid-cols-3",4:"@min-6xl:grid-cols-4",5:"@min-6xl:grid-cols-5",6:"@min-6xl:grid-cols-6",7:"@min-6xl:grid-cols-7",8:"@min-6xl:grid-cols-8"},le={1:"@min-7xl:grid-cols-1",2:"@min-7xl:grid-cols-2",3:"@min-7xl:grid-cols-3",4:"@min-7xl:grid-cols-4",5:"@min-7xl:grid-cols-5",6:"@min-7xl:grid-cols-6",7:"@min-7xl:grid-cols-7",8:"@min-7xl:grid-cols-8"},ne={1:"@min-8xl:grid-cols-1",2:"@min-8xl:grid-cols-2",3:"@min-8xl:grid-cols-3",4:"@min-8xl:grid-cols-4",5:"@min-8xl:grid-cols-5",6:"@min-8xl:grid-cols-6",7:"@min-8xl:grid-cols-7",8:"@min-8xl:grid-cols-8"};function L(t){const e=f.c(13),{children:n,columns:l,gap:i,className:r}=t;let d;e[0]!==l?(d=l===void 0?{sm:2,md:3,lg:4}:l,e[0]=l,e[1]=d):d=e[1];const o=d,x=ee[i===void 0?4:i],a=o.sm&&te[o.sm],c=o.md&&se[o.md],g=o.lg&&ie[o.lg],p=o.xl&&le[o.xl],v=o["2xl"]&&ne[o["2xl"]];let N;e[2]!==r||e[3]!==x||e[4]!==a||e[5]!==c||e[6]!==g||e[7]!==p||e[8]!==v?(N=y("w-full grid",x,a,c,g,p,v,r),e[2]=r,e[3]=x,e[4]=a,e[5]=c,e[6]=g,e[7]=p,e[8]=v,e[9]=N):N=e[9];const b=N;let h;return e[10]!==n||e[11]!==b?(h=s.jsx("div",{className:b,children:n}),e[10]=n,e[11]=b,e[12]=h):h=e[12],h}function re(t){const e=f.c(9),{count:n,columns:l,gap:i,className:r}=t,d=n===void 0?8:n;let o;e[0]!==l?(o=l===void 0?{sm:2,md:3,lg:4}:l,e[0]=l,e[1]=o):o=e[1];const m=o,x=i===void 0?4:i;let a;e[2]!==d?(a=Array.from({length:d}).map(ae),e[2]=d,e[3]=a):a=e[3];let c;return e[4]!==r||e[5]!==m||e[6]!==x||e[7]!==a?(c=s.jsx(L,{columns:m,gap:x,className:r,children:a}),e[4]=r,e[5]=m,e[6]=x,e[7]=a,e[8]=c):c=e[8],c}function ae(t,e){return s.jsxs("div",{className:"bg-card hover:bg-accent transition-colors flex flex-col rounded-lg animate-pulse",children:[s.jsxs("div",{className:"p-4 flex flex-col gap-4",children:[s.jsx("div",{className:"h-12 w-12 bg-muted rounded-lg"}),s.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg"}),s.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg"})]}),s.jsxs("div",{className:"p-4 border-t border-border flex items-center",children:[s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse"}),s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"}),s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"})]})]},e)}const _=Object.assign(L,{Skeleton:re});function oe({invitation:t}){const[e,n]=C.useState(!1),[l,i]=C.useState(!1),r=O(),d=E(),o=async()=>{n(!0);try{const a=await A.organization.acceptInvitation({invitationId:t.id});if(a.error)w.error(a.error.message),n(!1);else{const c=await A.organization.setActive({organizationId:t.organizationId});c?.data?.slug?(w.success("Invitation accepted!"),d({to:"/$org",params:{org:c.data.slug}})):(w.success("Invitation accepted! Redirecting..."),d({to:"/"}))}}catch{w.error("Failed to accept invitation"),n(!1)}},m=async()=>{i(!0);try{const a=await A.organization.rejectInvitation({invitationId:t.id});a.error?(w.error(a.error.message),i(!1)):(w.success("Invitation rejected"),await r.invalidateQueries(),i(!1))}catch{w.error("Failed to reject invitation"),i(!1)}},x=t.organizationName||t.organizationId;return s.jsxs(u,{className:"border-dashed",children:[s.jsxs(u.Header,{children:[s.jsx(u.AvatarSection,{children:s.jsx(u.Avatar,{url:"",fallback:x,size:"lg",objectFit:"contain"})}),s.jsxs(u.Content,{children:[s.jsx(u.Subtitle,{children:"You've been invited to join"}),s.jsx(u.Title,{children:x})]})]}),s.jsx(u.Footer,{className:"border-t border-dashed",children:s.jsxs("div",{className:"flex h-3.5 items-center gap-2 w-full",children:[s.jsx($,{onClick:o,disabled:e||l,className:"flex-1",size:"sm",children:e?"Accepting...":s.jsxs(s.Fragment,{children:[s.jsx(H,{size:16}),"Accept"]})}),s.jsx($,{variant:"outline",onClick:m,disabled:e||l,className:"flex-1",size:"sm",children:l?"Declining...":s.jsxs(s.Fragment,{children:[s.jsx(q,{size:16}),"Decline"]})})]})})]})}function ce({query:t}){const e=C.useContext(F),{data:n}=e.hooks.useListUserInvitations(),i=(n??[]).filter(d=>d.status==="pending"&&new Date(d.expiresAt)>new Date),r=t?(()=>{const d=t.toLowerCase();return i.filter(o=>o.organizationName?.toLowerCase().includes(d)||o.organizationId.toLowerCase().includes(d))})():i;return r.length===0?null:s.jsxs("div",{className:"mb-16",children:[s.jsx("h2",{className:"text-lg font-medium pb-2 border-b border-border/50 mb-6 px-2",children:"Invitations"}),s.jsx(_,{columns:{sm:2,md:3,lg:4},children:r.map(d=>s.jsx(oe,{invitation:d},d.id))})]})}function de(t){const e=f.c(14),{query:n}=t,{data:l}=A.useListOrganizations(),i=E();let r;e[0]!==l||e[1]!==n?(r=l?n?(()=>{const a=n.toLowerCase();return l.filter(c=>c.name.toLowerCase().includes(a)||c.slug.toLowerCase().includes(a))})():l:[],e[0]=l,e[1]=n,e[2]=r):r=e[2];const d=r;if(!l||l.length===0){let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4",children:s.jsx("div",{className:"text-sm text-muted-foreground text-center",children:"No organizations yet. Create your first organization to get started."})}),e[3]=a):a=e[3],a}if(d.length===0){let a;return e[4]!==n?(a=s.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4",children:s.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:['No organizations found matching "',n,'".']})}),e[4]=n,e[5]=a):a=e[5],a}let o;e[6]===Symbol.for("react.memo_cache_sentinel")?(o={sm:2,md:3,lg:4},e[6]=o):o=e[6];let m;if(e[7]!==d||e[8]!==i){let a;e[10]!==i?(a=c=>s.jsxs(u,{onNavigate:()=>i({to:"/$org",params:{org:c.slug}}),children:[s.jsxs(u.Header,{children:[s.jsx(u.AvatarSection,{children:s.jsx(u.Avatar,{url:c.logo||"",fallback:c.name,size:"lg",objectFit:"contain"})}),s.jsxs(u.Content,{children:[s.jsxs(u.Subtitle,{children:["@",c.slug]}),s.jsx(u.Title,{children:c.name})]})]}),s.jsx(u.Footer,{children:s.jsxs("div",{className:"flex h-3.5 items-center text-xs text-muted-foreground",children:["Created:"," ",new Date(c.createdAt).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})]})})]},c.id),e[10]=i,e[11]=a):a=e[11],m=d.map(a),e[7]=d,e[8]=i,e[9]=m}else m=e[9];let x;return e[12]!==m?(x=s.jsx(_,{columns:o,children:m}),e[12]=m,e[13]=x):x=e[13],x}function me(t){const e=f.c(3),{error:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(D,{size:24,className:"text-destructive"}),e[0]=l):l=e[0];let i;return e[1]!==n.message?(i=s.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4",children:[l,s.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:["Error loading organizations: ",n.message]})]}),e[1]=n.message,e[2]=i):i=e[2],i}function xe(){const t=f.c(27),{error:e,isPending:n}=A.useListOrganizations(),[l,i]=C.useState(""),[r,d]=C.useState(!1),o=C.useDeferredValue(l);if(n){let j;return t[0]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"max-w-6xl mx-auto p-8",children:s.jsx("div",{className:"@container",children:s.jsx(_.Skeleton,{count:8,columns:{sm:2,md:3,lg:4}})})}),t[0]=j):j=t[0],j}if(e){let j;return t[1]!==e?(j=s.jsx("div",{className:"max-w-6xl mx-auto p-8",children:s.jsx(me,{error:e})}),t[1]=e,t[2]=j):j=t[2],j}let m;t[3]!==o?(m=s.jsx(C.Suspense,{fallback:null,children:s.jsx(ce,{query:o})}),t[3]=o,t[4]=m):m=t[4];let x;t[5]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("h2",{className:"text-lg font-medium",children:"My organizations"}),t[5]=x):x=t[5];let a;t[6]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Q,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),t[6]=a):a=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=j=>i(j.target.value),t[7]=c):c=t[7];let g;t[8]!==l?(g=s.jsxs("div",{className:"relative",children:[a,s.jsx(B,{className:"pl-8 h-8 w-52 border-none shadow-none focus-visible:ring-0",placeholder:"Search organizations...",value:l,onChange:c})]}),t[8]=l,t[9]=g):g=t[9];let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs($,{size:"sm",onClick:()=>d(!0),children:[s.jsx(G,{size:16}),s.jsx("span",{children:"New organization"})]}),t[10]=p):p=t[10];let v;t[11]!==g?(v=s.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-border/50 mb-6 px-2",children:[x,s.jsxs("div",{className:"flex items-center gap-3",children:[g,p]})]}),t[11]=g,t[12]=v):v=t[12];let N;t[13]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(_.Skeleton,{count:8,columns:{sm:2,md:3,lg:4}}),t[13]=N):N=t[13];let b;t[14]!==o?(b=s.jsx(C.Suspense,{fallback:N,children:s.jsx(de,{query:o})}),t[14]=o,t[15]=b):b=t[15];let h;t[16]!==v||t[17]!==b?(h=s.jsxs("div",{children:[v,b]}),t[16]=v,t[17]=b,t[18]=h):h=t[18];let S;t[19]!==m||t[20]!==h?(S=s.jsxs("div",{className:"@container",children:[m,h]}),t[19]=m,t[20]=h,t[21]=S):S=t[21];let z;t[22]!==r?(z=s.jsx(T,{open:r,onOpenChange:d}),t[22]=r,t[23]=z):z=t[23];let I;return t[24]!==S||t[25]!==z?(I=s.jsxs("div",{className:"max-w-6xl mx-auto p-8",children:[S,z]}),t[24]=S,t[25]=z,t[26]=I):I=t[26],I}function Ie(){const t=f.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"min-h-full",children:s.jsx(xe,{})}),t[0]=e):e=t[0],e}export{Ie as default};
|
|
1
|
+
import{c as f,v as y,j as s,d as A,r as C,B as $,bA as F,b as E,n as O,t as w}from"./index-zTmRWZBl.js";import{C as k}from"./card-B9F3gzU1.js";import{A as R}from"./avatar-JlaJAGyz.js";import{i as D}from"./AlertCircle-B-qrtAf7.js";import{i as H}from"./Check-xOBqZzmv.js";import{s as G}from"./Plus-CAkBZRVl.js";import{i as Q}from"./SearchMd-3uDmzuN-.js";import{s as q}from"./XClose-CPAcIRmr.js";import{I as B}from"./input-yDn0CDzQ.js";import{C as T}from"./create-organization-dialog-B5UUWfs1.js";import"./alert-dialog-BF806470.js";import"./form-CvuQGiSW.js";import"./label-D93HnDXr.js";import"./spinner-DrSoNW9Q.js";import"./useMutation-DxToDvqg.js";function U(t){const e=f.c(10),{children:n,className:l,onNavigate:i,showHoverRing:r}=t,d=r===void 0?!1:r;let o;e[0]!==i?(o=p=>{i&&i(p)},e[0]=i,e[1]=o):o=e[1];const m=o,x=i&&"cursor-pointer",a=d&&"hover:ring-2 hover:ring-primary";let c;e[2]!==l||e[3]!==x||e[4]!==a?(c=y("group transition-all flex flex-col gap-0",x,a,l),e[2]=l,e[3]=x,e[4]=a,e[5]=c):c=e[5];let g;return e[6]!==n||e[7]!==m||e[8]!==c?(g=s.jsx(k,{className:c,onClick:m,children:n}),e[6]=n,e[7]=m,e[8]=c,e[9]=g):g=e[9],g}function M(t){const e=f.c(7),{url:n,fallback:l,shape:i,size:r,objectFit:d,className:o}=t,m=i===void 0?"square":i,x=r===void 0?"lg":r,a=d===void 0?"contain":d;let c;return e[0]!==o||e[1]!==l||e[2]!==a||e[3]!==m||e[4]!==x||e[5]!==n?(c=s.jsx(R,{url:n,fallback:l,shape:m,size:x,objectFit:a,className:o}),e[0]=o,e[1]=l,e[2]=a,e[3]=m,e[4]=x,e[5]=n,e[6]=c):c=e[6],c}function P(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("p-4 flex flex-col gap-4",l),e[0]=l,e[1]=i):i=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function V(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("font-medium truncate",l),e[0]=l,e[1]=i):i=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx("p",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function X(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("text-sm text-muted-foreground truncate",l),e[0]=l,e[1]=i):i=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx("h3",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function Y(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("flex flex-col gap-[2px]",l),e[0]=l,e[1]=i):i=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function J(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("flex justify-between items-start",l),e[0]=l,e[1]=i):i=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function K(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("p-4 border-t border-border flex justify-between items-center",l),e[0]=l,e[1]=i):i=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function W(t){const e=f.c(5),{children:n,className:l}=t;let i;e[0]!==l?(i=y("flex items-center text-xs text-muted-foreground",l),e[0]=l,e[1]=i):i=e[1];let r;return e[2]!==n||e[3]!==i?(r=s.jsx("div",{className:i,children:n}),e[2]=n,e[3]=i,e[4]=r):r=e[4],r}function Z(){const t=f.c(3);let e;t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"flex justify-between items-start",children:s.jsx("div",{className:"h-12 w-12 bg-muted rounded-lg animate-pulse"})}),t[0]=e):e=t[0];let n;t[1]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsxs("div",{className:"p-4 flex flex-col gap-4",children:[e,s.jsxs("div",{className:"flex flex-col gap-[2px]",children:[s.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg animate-pulse"}),s.jsx("div",{className:"h-4 w-40 bg-muted rounded-lg animate-pulse"})]})]}),t[1]=n):n=t[1];let l;return t[2]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsxs(k,{className:"group transition-colors flex flex-col",children:[n,s.jsxs("div",{className:"p-4 border-t border-border flex justify-between items-center",children:[s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse"}),s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"})]})]}),t[2]=l):l=t[2],l}const u=Object.assign(U,{Avatar:M,AvatarSection:J,Header:P,Title:V,Subtitle:X,Content:Y,Footer:K,Badge:W,Skeleton:Z}),ee={0:"gap-0",1:"gap-1",2:"gap-2",3:"gap-3",4:"gap-4",5:"gap-5",6:"gap-6",8:"gap-8"},te={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8"},se={1:"@min-3xl:grid-cols-1",2:"@min-3xl:grid-cols-2",3:"@min-3xl:grid-cols-3",4:"@min-3xl:grid-cols-4",5:"@min-3xl:grid-cols-5",6:"@min-3xl:grid-cols-6",7:"@min-3xl:grid-cols-7",8:"@min-3xl:grid-cols-8"},ie={1:"@min-6xl:grid-cols-1",2:"@min-6xl:grid-cols-2",3:"@min-6xl:grid-cols-3",4:"@min-6xl:grid-cols-4",5:"@min-6xl:grid-cols-5",6:"@min-6xl:grid-cols-6",7:"@min-6xl:grid-cols-7",8:"@min-6xl:grid-cols-8"},le={1:"@min-7xl:grid-cols-1",2:"@min-7xl:grid-cols-2",3:"@min-7xl:grid-cols-3",4:"@min-7xl:grid-cols-4",5:"@min-7xl:grid-cols-5",6:"@min-7xl:grid-cols-6",7:"@min-7xl:grid-cols-7",8:"@min-7xl:grid-cols-8"},ne={1:"@min-8xl:grid-cols-1",2:"@min-8xl:grid-cols-2",3:"@min-8xl:grid-cols-3",4:"@min-8xl:grid-cols-4",5:"@min-8xl:grid-cols-5",6:"@min-8xl:grid-cols-6",7:"@min-8xl:grid-cols-7",8:"@min-8xl:grid-cols-8"};function L(t){const e=f.c(13),{children:n,columns:l,gap:i,className:r}=t;let d;e[0]!==l?(d=l===void 0?{sm:2,md:3,lg:4}:l,e[0]=l,e[1]=d):d=e[1];const o=d,x=ee[i===void 0?4:i],a=o.sm&&te[o.sm],c=o.md&&se[o.md],g=o.lg&&ie[o.lg],p=o.xl&&le[o.xl],v=o["2xl"]&&ne[o["2xl"]];let N;e[2]!==r||e[3]!==x||e[4]!==a||e[5]!==c||e[6]!==g||e[7]!==p||e[8]!==v?(N=y("w-full grid",x,a,c,g,p,v,r),e[2]=r,e[3]=x,e[4]=a,e[5]=c,e[6]=g,e[7]=p,e[8]=v,e[9]=N):N=e[9];const b=N;let h;return e[10]!==n||e[11]!==b?(h=s.jsx("div",{className:b,children:n}),e[10]=n,e[11]=b,e[12]=h):h=e[12],h}function re(t){const e=f.c(9),{count:n,columns:l,gap:i,className:r}=t,d=n===void 0?8:n;let o;e[0]!==l?(o=l===void 0?{sm:2,md:3,lg:4}:l,e[0]=l,e[1]=o):o=e[1];const m=o,x=i===void 0?4:i;let a;e[2]!==d?(a=Array.from({length:d}).map(ae),e[2]=d,e[3]=a):a=e[3];let c;return e[4]!==r||e[5]!==m||e[6]!==x||e[7]!==a?(c=s.jsx(L,{columns:m,gap:x,className:r,children:a}),e[4]=r,e[5]=m,e[6]=x,e[7]=a,e[8]=c):c=e[8],c}function ae(t,e){return s.jsxs("div",{className:"bg-card hover:bg-accent transition-colors flex flex-col rounded-lg animate-pulse",children:[s.jsxs("div",{className:"p-4 flex flex-col gap-4",children:[s.jsx("div",{className:"h-12 w-12 bg-muted rounded-lg"}),s.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg"}),s.jsx("div",{className:"h-4 w-32 bg-muted rounded-lg"})]}),s.jsxs("div",{className:"p-4 border-t border-border flex items-center",children:[s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse"}),s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"}),s.jsx("div",{className:"h-6 w-6 bg-muted rounded-full animate-pulse -ml-2"})]})]},e)}const _=Object.assign(L,{Skeleton:re});function oe({invitation:t}){const[e,n]=C.useState(!1),[l,i]=C.useState(!1),r=O(),d=E(),o=async()=>{n(!0);try{const a=await A.organization.acceptInvitation({invitationId:t.id});if(a.error)w.error(a.error.message),n(!1);else{const c=await A.organization.setActive({organizationId:t.organizationId});c?.data?.slug?(w.success("Invitation accepted!"),d({to:"/$org",params:{org:c.data.slug}})):(w.success("Invitation accepted! Redirecting..."),d({to:"/"}))}}catch{w.error("Failed to accept invitation"),n(!1)}},m=async()=>{i(!0);try{const a=await A.organization.rejectInvitation({invitationId:t.id});a.error?(w.error(a.error.message),i(!1)):(w.success("Invitation rejected"),await r.invalidateQueries(),i(!1))}catch{w.error("Failed to reject invitation"),i(!1)}},x=t.organizationName||t.organizationId;return s.jsxs(u,{className:"border-dashed",children:[s.jsxs(u.Header,{children:[s.jsx(u.AvatarSection,{children:s.jsx(u.Avatar,{url:"",fallback:x,size:"lg",objectFit:"contain"})}),s.jsxs(u.Content,{children:[s.jsx(u.Subtitle,{children:"You've been invited to join"}),s.jsx(u.Title,{children:x})]})]}),s.jsx(u.Footer,{className:"border-t border-dashed",children:s.jsxs("div",{className:"flex h-3.5 items-center gap-2 w-full",children:[s.jsx($,{onClick:o,disabled:e||l,className:"flex-1",size:"sm",children:e?"Accepting...":s.jsxs(s.Fragment,{children:[s.jsx(H,{size:16}),"Accept"]})}),s.jsx($,{variant:"outline",onClick:m,disabled:e||l,className:"flex-1",size:"sm",children:l?"Declining...":s.jsxs(s.Fragment,{children:[s.jsx(q,{size:16}),"Decline"]})})]})})]})}function ce({query:t}){const e=C.useContext(F),{data:n}=e.hooks.useListUserInvitations(),i=(n??[]).filter(d=>d.status==="pending"&&new Date(d.expiresAt)>new Date),r=t?(()=>{const d=t.toLowerCase();return i.filter(o=>o.organizationName?.toLowerCase().includes(d)||o.organizationId.toLowerCase().includes(d))})():i;return r.length===0?null:s.jsxs("div",{className:"mb-16",children:[s.jsx("h2",{className:"text-lg font-medium pb-2 border-b border-border/50 mb-6 px-2",children:"Invitations"}),s.jsx(_,{columns:{sm:2,md:3,lg:4},children:r.map(d=>s.jsx(oe,{invitation:d},d.id))})]})}function de(t){const e=f.c(14),{query:n}=t,{data:l}=A.useListOrganizations(),i=E();let r;e[0]!==l||e[1]!==n?(r=l?n?(()=>{const a=n.toLowerCase();return l.filter(c=>c.name.toLowerCase().includes(a)||c.slug.toLowerCase().includes(a))})():l:[],e[0]=l,e[1]=n,e[2]=r):r=e[2];const d=r;if(!l||l.length===0){let a;return e[3]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4",children:s.jsx("div",{className:"text-sm text-muted-foreground text-center",children:"No organizations yet. Create your first organization to get started."})}),e[3]=a):a=e[3],a}if(d.length===0){let a;return e[4]!==n?(a=s.jsx("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4",children:s.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:['No organizations found matching "',n,'".']})}),e[4]=n,e[5]=a):a=e[5],a}let o;e[6]===Symbol.for("react.memo_cache_sentinel")?(o={sm:2,md:3,lg:4},e[6]=o):o=e[6];let m;if(e[7]!==d||e[8]!==i){let a;e[10]!==i?(a=c=>s.jsxs(u,{onNavigate:()=>i({to:"/$org",params:{org:c.slug}}),children:[s.jsxs(u.Header,{children:[s.jsx(u.AvatarSection,{children:s.jsx(u.Avatar,{url:c.logo||"",fallback:c.name,size:"lg",objectFit:"contain"})}),s.jsxs(u.Content,{children:[s.jsxs(u.Subtitle,{children:["@",c.slug]}),s.jsx(u.Title,{children:c.name})]})]}),s.jsx(u.Footer,{children:s.jsxs("div",{className:"flex h-3.5 items-center text-xs text-muted-foreground",children:["Created:"," ",new Date(c.createdAt).toLocaleDateString(void 0,{year:"numeric",month:"short",day:"numeric"})]})})]},c.id),e[10]=i,e[11]=a):a=e[11],m=d.map(a),e[7]=d,e[8]=i,e[9]=m}else m=e[9];let x;return e[12]!==m?(x=s.jsx(_,{columns:o,children:m}),e[12]=m,e[13]=x):x=e[13],x}function me(t){const e=f.c(3),{error:n}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=s.jsx(D,{size:24,className:"text-destructive"}),e[0]=l):l=e[0];let i;return e[1]!==n.message?(i=s.jsxs("div",{className:"flex flex-col items-center justify-center min-h-[400px] gap-4",children:[l,s.jsxs("div",{className:"text-sm text-muted-foreground text-center",children:["Error loading organizations: ",n.message]})]}),e[1]=n.message,e[2]=i):i=e[2],i}function xe(){const t=f.c(27),{error:e,isPending:n}=A.useListOrganizations(),[l,i]=C.useState(""),[r,d]=C.useState(!1),o=C.useDeferredValue(l);if(n){let j;return t[0]===Symbol.for("react.memo_cache_sentinel")?(j=s.jsx("div",{className:"max-w-6xl mx-auto p-8",children:s.jsx("div",{className:"@container",children:s.jsx(_.Skeleton,{count:8,columns:{sm:2,md:3,lg:4}})})}),t[0]=j):j=t[0],j}if(e){let j;return t[1]!==e?(j=s.jsx("div",{className:"max-w-6xl mx-auto p-8",children:s.jsx(me,{error:e})}),t[1]=e,t[2]=j):j=t[2],j}let m;t[3]!==o?(m=s.jsx(C.Suspense,{fallback:null,children:s.jsx(ce,{query:o})}),t[3]=o,t[4]=m):m=t[4];let x;t[5]===Symbol.for("react.memo_cache_sentinel")?(x=s.jsx("h2",{className:"text-lg font-medium",children:"My organizations"}),t[5]=x):x=t[5];let a;t[6]===Symbol.for("react.memo_cache_sentinel")?(a=s.jsx(Q,{size:14,className:"absolute left-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"}),t[6]=a):a=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=j=>i(j.target.value),t[7]=c):c=t[7];let g;t[8]!==l?(g=s.jsxs("div",{className:"relative",children:[a,s.jsx(B,{className:"pl-8 h-8 w-52 border-none shadow-none focus-visible:ring-0",placeholder:"Search organizations...",value:l,onChange:c})]}),t[8]=l,t[9]=g):g=t[9];let p;t[10]===Symbol.for("react.memo_cache_sentinel")?(p=s.jsxs($,{size:"sm",onClick:()=>d(!0),children:[s.jsx(G,{size:16}),s.jsx("span",{children:"New organization"})]}),t[10]=p):p=t[10];let v;t[11]!==g?(v=s.jsxs("div",{className:"flex items-center justify-between pb-2 border-b border-border/50 mb-6 px-2",children:[x,s.jsxs("div",{className:"flex items-center gap-3",children:[g,p]})]}),t[11]=g,t[12]=v):v=t[12];let N;t[13]===Symbol.for("react.memo_cache_sentinel")?(N=s.jsx(_.Skeleton,{count:8,columns:{sm:2,md:3,lg:4}}),t[13]=N):N=t[13];let b;t[14]!==o?(b=s.jsx(C.Suspense,{fallback:N,children:s.jsx(de,{query:o})}),t[14]=o,t[15]=b):b=t[15];let h;t[16]!==v||t[17]!==b?(h=s.jsxs("div",{children:[v,b]}),t[16]=v,t[17]=b,t[18]=h):h=t[18];let S;t[19]!==m||t[20]!==h?(S=s.jsxs("div",{className:"@container",children:[m,h]}),t[19]=m,t[20]=h,t[21]=S):S=t[21];let z;t[22]!==r?(z=s.jsx(T,{open:r,onOpenChange:d}),t[22]=r,t[23]=z):z=t[23];let I;return t[24]!==S||t[25]!==z?(I=s.jsxs("div",{className:"max-w-6xl mx-auto p-8",children:[S,z]}),t[24]=S,t[25]=z,t[26]=I):I=t[26],I}function Ie(){const t=f.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=s.jsx("div",{className:"min-h-full",children:s.jsx(xe,{})}),t[0]=e):e=t[0],e}export{Ie as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as X,r as F,v as K,j as t,B as T}from"./index-
|
|
1
|
+
import{c as X,r as F,v as K,j as t,B as T}from"./index-zTmRWZBl.js";import{I as Z}from"./input-yDn0CDzQ.js";import{b as q,P as G,a as H}from"./popover-BD-c_pAA.js";import{S as J}from"./scroll-area-fWogdApD.js";import{n as Q}from"./Container-BzuFyXB-.js";import{i as V}from"./Edit05-B4gumSwA.js";import{i as W}from"./Link01-DP82_UiC.js";import{s as ee}from"./XClose-CPAcIRmr.js";const te=0,se=38;function re(){const i=[];for(let e=te;e<=se;e++)i.push(`/icons/capy-${e}.png`);return i}const le={sm:"h-8 w-8",md:"h-12 w-12",lg:"h-16 w-16"},oe=re();function xe(i){const e=X.c(53),{value:r,onChange:o,name:c,size:S,className:I,fallbackIcon:a}=i,m=S===void 0?"lg":S,[s,n]=F.useState(""),[U,w]=F.useState(!1);let A;e[0]!==o?(A=l=>{o(l),w(!1),n("")},e[0]=o,e[1]=A):A=e[1];const $=A;let _;e[2]!==s||e[3]!==o?(_=()=>{const l=s.trim();l&&(o(l),w(!1),n(""))},e[2]=s,e[3]=o,e[4]=_):_=e[4];const f=_;let k;e[5]!==o?(k=()=>{o(null),w(!1),n("")},e[5]=o,e[6]=k):k=e[6];const D=k,L=le[m];let d;e[7]!==I||e[8]!==L?(d=K("relative group rounded-lg border border-border shrink-0 overflow-hidden cursor-pointer",L,I),e[7]=I,e[8]=L,e[9]=d):d=e[9];const M=r??"no-icon";let u;e[10]!==a||e[11]!==c||e[12]!==M||e[13]!==r?(u=t.jsx(ie,{icon:r,name:c,fallbackIcon:a},M),e[10]=a,e[11]=c,e[12]=M,e[13]=r,e[14]=u):u=e[14];let z;e[15]===Symbol.for("react.memo_cache_sentinel")?(z=t.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-black/50 opacity-0 group-hover:opacity-100 transition-opacity",children:t.jsx(V,{size:16,className:"text-white"})}),e[15]=z):z=e[15];let p;e[16]!==d||e[17]!==u?(p=t.jsx(q,{asChild:!0,children:t.jsxs("button",{type:"button",className:d,children:[u,z]})}),e[16]=d,e[17]=u,e[18]=p):p=e[18];let P;e[19]===Symbol.for("react.memo_cache_sentinel")?(P=t.jsx("span",{className:"text-sm font-medium",children:"Choose icon"}),e[19]=P):P=e[19];let h;e[20]!==D||e[21]!==r?(h=r&&t.jsxs(T,{variant:"ghost",size:"sm",className:"h-6 px-1.5 text-xs text-muted-foreground",onClick:D,children:[t.jsx(ee,{size:12}),"Remove"]}),e[20]=D,e[21]=r,e[22]=h):h=e[22];let x;e[23]!==h?(x=t.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b border-border",children:[P,h]}),e[23]=h,e[24]=x):x=e[24];let b;e[25]!==$||e[26]!==r?(b=oe.map(l=>t.jsx("button",{type:"button",onClick:()=>$(l),className:K("h-9 w-9 rounded-md overflow-hidden border transition-colors hover:border-primary cursor-pointer",r===l?"border-primary ring-1 ring-primary":"border-transparent"),children:t.jsx("img",{src:l,alt:"",className:"h-full w-full object-cover",loading:"lazy"})},l)),e[25]=$,e[26]=r,e[27]=b):b=e[27];let g;e[28]!==b?(g=t.jsx(J,{className:"h-48",children:t.jsx("div",{className:"grid grid-cols-7 gap-1 p-2",children:b})}),e[28]=b,e[29]=g):g=e[29];let E;e[30]===Symbol.for("react.memo_cache_sentinel")?(E=t.jsx(W,{size:14,className:"text-muted-foreground shrink-0"}),e[30]=E):E=e[30];let R;e[31]===Symbol.for("react.memo_cache_sentinel")?(R=l=>n(l.target.value),e[31]=R):R=e[31];let j;e[32]!==f?(j=l=>{l.key==="Enter"&&(l.preventDefault(),f())},e[32]=f,e[33]=j):j=e[33];let v;e[34]!==s||e[35]!==j?(v=t.jsx(Z,{value:s,onChange:R,placeholder:"Paste image URL...",className:"h-7 text-xs",onKeyDown:j}),e[34]=s,e[35]=j,e[36]=v):v=e[36];let O;e[37]!==s?(O=s.trim(),e[37]=s,e[38]=O):O=e[38];const Y=!O;let y;e[39]!==f||e[40]!==Y?(y=t.jsx(T,{variant:"outline",size:"sm",className:"h-7 px-2 text-xs shrink-0",onClick:f,disabled:Y,children:"Apply"}),e[39]=f,e[40]=Y,e[41]=y):y=e[41];let N;e[42]!==v||e[43]!==y?(N=t.jsxs("div",{className:"flex items-center gap-1.5 p-2 border-t border-border",children:[E,v,y]}),e[42]=v,e[43]=y,e[44]=N):N=e[44];let C;e[45]!==x||e[46]!==g||e[47]!==N?(C=t.jsx(G,{align:"start",className:"w-80 p-0",onOpenAutoFocus:ne,children:t.jsxs("div",{className:"flex flex-col",children:[x,g,N]})}),e[45]=x,e[46]=g,e[47]=N,e[48]=C):C=e[48];let B;return e[49]!==U||e[50]!==p||e[51]!==C?(B=t.jsxs(H,{open:U,onOpenChange:w,children:[p,C]}),e[49]=U,e[50]=p,e[51]=C,e[52]=B):B=e[52],B}function ne(i){return i.preventDefault()}function ie(i){const e=X.c(8),{icon:r,name:o,fallbackIcon:c}=i,[S,I]=F.useState(!1);if(!r||S){let s;e[0]!==c?(s=c??t.jsx(Q,{size:24,className:"text-muted-foreground"}),e[0]=c,e[1]=s):s=e[1];let n;return e[2]!==s?(n=t.jsx("div",{className:"h-full w-full flex items-center justify-center bg-muted/20",children:s}),e[2]=s,e[3]=n):n=e[3],n}let a;e[4]===Symbol.for("react.memo_cache_sentinel")?(a=()=>I(!0),e[4]=a):a=e[4];let m;return e[5]!==r||e[6]!==o?(m=t.jsx("img",{src:r,alt:o,className:"h-full w-full object-cover",onError:a}),e[5]=r,e[6]=o,e[7]=m):m=e[7],m}export{xe as I};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bF as _}from"./index-
|
|
1
|
+
import{bF as _}from"./index-zTmRWZBl.js";var S={exports:{}},r={};var $;function I(){if($)return r;$=1;var m=Symbol.for("react.element"),y=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),x=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),l=Symbol.for("react.suspense_list"),a=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),R=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function t(e){if(typeof e=="object"&&e!==null){var d=e.$$typeof;switch(d){case m:switch(e=e.type,e){case o:case s:case n:case i:case l:return e;default:switch(e=e&&e.$$typeof,e){case x:case f:case u:case p:case a:case c:return e;default:return d}}case y:return d}}}return r.ContextConsumer=f,r.ContextProvider=c,r.Element=m,r.ForwardRef=u,r.Fragment=o,r.Lazy=p,r.Memo=a,r.Portal=y,r.Profiler=s,r.StrictMode=n,r.Suspense=i,r.SuspenseList=l,r.isAsyncMode=function(){return!1},r.isConcurrentMode=function(){return!1},r.isContextConsumer=function(e){return t(e)===f},r.isContextProvider=function(e){return t(e)===c},r.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===m},r.isForwardRef=function(e){return t(e)===u},r.isFragment=function(e){return t(e)===o},r.isLazy=function(e){return t(e)===p},r.isMemo=function(e){return t(e)===a},r.isPortal=function(e){return t(e)===y},r.isProfiler=function(e){return t(e)===s},r.isStrictMode=function(e){return t(e)===n},r.isSuspense=function(e){return t(e)===i},r.isSuspenseList=function(e){return t(e)===l},r.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===o||e===s||e===n||e===i||e===l||e===R||typeof e=="object"&&e!==null&&(e.$$typeof===p||e.$$typeof===a||e.$$typeof===c||e.$$typeof===f||e.$$typeof===u||e.$$typeof===b||e.getModuleId!==void 0)},r.typeOf=t,r}var v;function C(){return v||(v=1,S.exports=I()),S.exports}var g=C();const h=_(g);export{h as R,g as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aO as Hl,aS as Fr,aP as Yl,cD as Jl,a6 as So,n as Xl,cE as Ql,cF as Zl,r as I,cG as ec,cH as tc,cI as nc,aT as rc,cJ as Wi,cK as Ki,cL as ic,cM as sc,a0 as oc,c as _e,K as wo,m as ac,u as Yr,bF as Jr,cN as lc,j as m,cO as Oo,cP as cc,cQ as uc,cR as dc,c3 as fc,y as jo,G as Xr,cS as mc,aw as pc,ax as hc,aj as gc,I as yc,T as It,J as hn,M as Bt,bD as bc,H as xc,Z as vc,X as Sc,Y as wc,b as Oc,O as jc,v as Ac,B as Qr,t as Cc,E as Ec,b$ as _c}from"./index-D-htvwK7.js";import{i as Fc}from"./mcp-oauth-DIzWYxTe.js";import{E as Ao}from"./collection-search-CRbc4DEy.js";import{u as Tc}from"./constants-P4PVvchD.js";import{u as Ic}from"./use-mcp-tools-9xAyOALf.js";import{i as Nc}from"./File06-CGYk4Mh5.js";import{i as Pc}from"./Key01-KqOK513j.js";import{i as Co}from"./Loading01-f9s2h1wv.js";import{b as Eo}from"./use-connection-CIMDlS0p.js";import{u as Dc,a as $c}from"./use-binding-BTY1B5EO.js";import"./constants-B8it1peu.js";import{f as Rc,c as kc}from"./registry-utils-CdFhHdcR.js";import{M as Mc}from"./extract-connection-data-DMHxmYCR.js";import{u as Bc}from"./use-install-from-registry-B9tJfMj0.js";import{s as Uc}from"./Plus-BXkHOQsb.js";import{e as _o,S as Lc,a as Vc,b as zc,c as Wc,d as Kc}from"./select-CrOlaxCO.js";import{R as qi}from"./index-03O1pmQL.js";import{c as ct,C as qc,a as Gc}from"./circle-alert-Bbr8JHad.js";import{R as Hc,I as Yc,a as Jc}from"./index-ClqqZs3X.js";import{_ as vt}from"./index-CRZHS1YQ.js";import{f as Xc}from"./index-CS60M-lN.js";import{M as Qc}from"./collapsible-D8z9g1MN.js";function Gi(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function Zc(e,t,n){const r=e.slice(0);return r[t]=n,r}var eu=class extends Hl{#r;#e;#i;#s;#t;#n;#o;#a;#l=[];constructor(e,t,n){super(),this.#r=e,this.#s=n,this.#i=[],this.#t=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#t.forEach(e=>{e.subscribe(t=>{this.#f(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#t.forEach(e=>{e.destroy()})}setQueries(e,t){this.#i=e,this.#s=t,Fr.batch(()=>{const n=this.#t,r=this.#d(this.#i);this.#l=r,r.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions));const i=r.map(u=>u.observer),s=i.map(u=>u.getCurrentResult()),o=n.length!==i.length,a=i.some((u,c)=>u!==n[c]),l=o||a,d=l?!0:s.some((u,c)=>{const p=this.#e[c];return!p||!Yl(u,p)});!l&&!d||(l&&(this.#t=i),this.#e=s,this.hasListeners()&&(l&&(Gi(n,i).forEach(u=>{u.destroy()}),Gi(i,n).forEach(u=>{u.subscribe(c=>{this.#f(u,c)})})),this.#m()))})}getCurrentResult(){return this.#e}getQueries(){return this.#t.map(e=>e.getCurrentQuery())}getObservers(){return this.#t}getOptimisticResult(e,t){const n=this.#d(e),r=n.map(i=>i.observer.getOptimisticResult(i.defaultedQueryOptions));return[r,i=>this.#u(i??r,t),()=>this.#c(r,n)]}#c(e,t){return t.map((n,r)=>{const i=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,s=>{t.forEach(o=>{o.observer.trackProp(s)})})})}#u(e,t){return t?((!this.#n||this.#e!==this.#a||t!==this.#o)&&(this.#o=t,this.#a=this.#e,this.#n=Jl(this.#n,t(e))),this.#n):e}#d(e){const t=new Map;this.#t.forEach(r=>{const i=r.options.queryHash;if(!i)return;const s=t.get(i);s?s.push(r):t.set(i,[r])});const n=[];return e.forEach(r=>{const i=this.#r.defaultQueryOptions(r),o=t.get(i.queryHash)?.shift()??new So(this.#r,i);n.push({defaultedQueryOptions:i,observer:o})}),n}#f(e,t){const n=this.#t.indexOf(e);n!==-1&&(this.#e=Zc(this.#e,n,t),this.#m())}#m(){if(this.hasListeners()){const e=this.#n,t=this.#c(this.#e,this.#l),n=this.#u(t,this.#s?.combine);e!==n&&Fr.batch(()=>{this.listeners.forEach(r=>{r(this.#e)})})}}};function tu({queries:e,...t},n){const r=Xl(n),i=Ql(),s=Zl(),o=I.useMemo(()=>e.map(h=>{const g=r.defaultQueryOptions(h);return g._optimisticResults=i?"isRestoring":"optimistic",g}),[e,r,i]);o.forEach(h=>{ec(h),tc(h,s)}),nc(s);const[a]=I.useState(()=>new eu(r,o,t)),[l,d,u]=a.getOptimisticResult(o,t.combine),c=!i&&t.subscribed!==!1;I.useSyncExternalStore(I.useCallback(h=>c?a.subscribe(Fr.batchCalls(h)):rc,[a,c]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),I.useEffect(()=>{a.setQueries(o,t)},[o,t,a]);const y=l.some((h,g)=>Wi(o[g],h))?l.flatMap((h,g)=>{const b=o[g];if(b){const S=new So(r,b);if(Wi(b,h))return Ki(b,S,s);ic(h,i)&&Ki(b,S,s)}return[]}):[];if(y.length>0)throw Promise.all(y);const f=l.find((h,g)=>{const b=o[g];return b&&sc({result:h,errorResetBoundary:s,throwOnError:b.throwOnError,query:r.getQueryCache().get(b.queryHash),suspense:b.suspense})});if(f?.error)throw f.error;return d(u())}function nu(e,t){return tu({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:oc,enabled:!0,placeholderData:void 0}))},t)}const ru=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Fo=ct("chevron-down",ru);const iu=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],su=ct("chevron-up",iu);const ou=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],To=ct("circle-plus",ou);const au=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],lu=ct("circle",au);const cu=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],uu=ct("copy",cu);const du=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],fu=ct("search",du);const mu=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],pu=ct("trash-2",mu);const hu=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Io=ct("x",hu);function V1(e){const t=_e.c(9),{connectionId:n}=e;let r,i,s;t[0]!==n?(r=new URL(`/mcp/${n}`,window.location.origin),s=ac,i=wo.isMCPAuthenticated(r.href,null),t[0]=n,t[1]=r,t[2]=i,t[3]=s):(r=t[1],i=t[2],s=t[3]);let o;t[4]!==r?(o=()=>Fc({url:r.href,token:null}),t[4]=r,t[5]=o):o=t[5];let a;t[6]!==i||t[7]!==o?(a={queryKey:i,queryFn:o},t[6]=i,t[7]=o,t[8]=a):a=t[8];const{data:l}=s(a);return l}function gu(e){return e.startsWith("@")?e:`@${e}`}function yu(e){const t=e._meta?.[Mc]?.tools;if(!(!t||t.length===0))return t.map(n=>({name:n.name,inputSchema:n.inputSchema??void 0,outputSchema:n.outputSchema??void 0}))}function bu(e){const{org:t}=Yr(),n=Eo(),r=Dc(n),i=e?gu(e):"",s=i?{where:{appName:i},includeTools:!0}:{},a=nu({queries:r.map(d=>{const u=d.id,c=Rc(d.tools)||"",p=JSON.stringify(s);return{queryKey:wo.toolCall(u,c,p),queryFn:async()=>{if(!c||!i)return null;try{return(await kc(u,t.id,c,s))?.items?.[0]??null}catch{return null}},staleTime:300*1e3}})}).map(d=>d.data).find(d=>d!==null);return{bindingSchema:a?yu(a):void 0}}function H(e){return typeof e!="object"||e===null||typeof e.lastModified=="number"&&typeof File<"u"&&e instanceof File||typeof e.getMonth=="function"&&typeof Date<"u"&&e instanceof Date?!1:!Array.isArray(e)}function xu(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),H(e.additionalItems)}function Hi(e){if(e==="")return;if(e===null)return null;if(/\.$/.test(e)||/\.0$/.test(e)||/\.\d*0$/.test(e))return e;const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)?t:e}const Ke="__additional_property",on="additionalProperties",qe="allOf",Q="anyOf",je="const",zn="default",Zr="dependencies",vu="enum",be="__errors",oe="$id",ei="if",ht="items",Su="_$junk_option_schema_id$_",Tn="$name",q="oneOf",Tr="patternProperties",te="properties",ir="readonly",No="required",Mn="submitButtonOptions",ae="$ref",Xt="$schema",Po="root",Do="_",wu=["discriminator","propertyName"],Yi="formContext",Ou="layoutGridLookupMap",ti="__rjsf_additionalProperties",$o="__rjsf_rootSchema",ju="ui:field",ni="ui:widget",nt="ui:options",Ir="ui:globalOptions",Au="ui:definitions",Cu="https://json-schema.org/draft/2019-09/schema",In="https://json-schema.org/draft/2020-12/schema";function U(e={},t={}){return e?Object.keys(e).filter(n=>n.indexOf("ui:")===0).reduce((n,r)=>{const i=e[r];return r===ni&&H(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),n):r===nt&&H(i)?{...n,...i}:{...n,[r.substring(3)]:i}},{...t}):{...t}}function Ro(e,t={},n){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:r=!0}=U(t);return r===!1?r:e.maxProperties!==void 0&&n?Object.keys(n).length<e.maxProperties:!0}var ko=typeof global=="object"&&global&&global.Object===Object&&global,Eu=typeof self=="object"&&self&&self.Object===Object&&self,ze=ko||Eu||Function("return this")(),Ae=ze.Symbol,Mo=Object.prototype,_u=Mo.hasOwnProperty,Fu=Mo.toString,Ht=Ae?Ae.toStringTag:void 0;function Tu(e){var t=_u.call(e,Ht),n=e[Ht];try{e[Ht]=void 0;var r=!0}catch{}var i=Fu.call(e);return r&&(t?e[Ht]=n:delete e[Ht]),i}var Iu=Object.prototype,Nu=Iu.toString;function Pu(e){return Nu.call(e)}var Du="[object Null]",$u="[object Undefined]",Ji=Ae?Ae.toStringTag:void 0;function He(e){return e==null?e===void 0?$u:Du:Ji&&Ji in Object(e)?Tu(e):Pu(e)}function Bo(e,t){return function(n){return e(t(n))}}var Wn=Bo(Object.getPrototypeOf,Object);function Ce(e){return e!=null&&typeof e=="object"}var Ru="[object Object]",ku=Function.prototype,Mu=Object.prototype,Uo=ku.toString,Bu=Mu.hasOwnProperty,Uu=Uo.call(Object);function ot(e){if(!Ce(e)||He(e)!=Ru)return!1;var t=Wn(e);if(t===null)return!0;var n=Bu.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Uo.call(n)==Uu}function Nr(e){const t={[be]:[],addError(n){this[be].push(n)}};if(Array.isArray(e))return e.reduce((n,r,i)=>({...n,[i]:Nr(r)}),t);if(ot(e)){const n=e;return Object.keys(n).reduce((r,i)=>({...r,[i]:Nr(n[i])}),t)}return t}function Lu(){this.__data__=[],this.size=0}function gn(e,t){return e===t||e!==e&&t!==t}function Kn(e,t){for(var n=e.length;n--;)if(gn(e[n][0],t))return n;return-1}var Vu=Array.prototype,zu=Vu.splice;function Wu(e){var t=this.__data__,n=Kn(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():zu.call(t,n,1),--this.size,!0}function Ku(e){var t=this.__data__,n=Kn(t,e);return n<0?void 0:t[n][1]}function qu(e){return Kn(this.__data__,e)>-1}function Gu(e,t){var n=this.__data__,r=Kn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ye(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ye.prototype.clear=Lu;Ye.prototype.delete=Wu;Ye.prototype.get=Ku;Ye.prototype.has=qu;Ye.prototype.set=Gu;function Hu(){this.__data__=new Ye,this.size=0}function Yu(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ju(e){return this.__data__.get(e)}function Xu(e){return this.__data__.has(e)}function ee(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qu="[object AsyncFunction]",Zu="[object Function]",ed="[object GeneratorFunction]",td="[object Proxy]";function yn(e){if(!ee(e))return!1;var t=He(e);return t==Zu||t==ed||t==Qu||t==td}var sr=ze["__core-js_shared__"],Xi=(function(){var e=/[^.]+$/.exec(sr&&sr.keys&&sr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function nd(e){return!!Xi&&Xi in e}var rd=Function.prototype,id=rd.toString;function St(e){if(e!=null){try{return id.call(e)}catch{}try{return e+""}catch{}}return""}var sd=/[\\^$.*+?()[\]{}|]/g,od=/^\[object .+?Constructor\]$/,ad=Function.prototype,ld=Object.prototype,cd=ad.toString,ud=ld.hasOwnProperty,dd=RegExp("^"+cd.call(ud).replace(sd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fd(e){if(!ee(e)||nd(e))return!1;var t=yn(e)?dd:od;return t.test(St(e))}function md(e,t){return e?.[t]}function wt(e,t){var n=md(e,t);return fd(n)?n:void 0}var an=wt(ze,"Map"),ln=wt(Object,"create");function pd(){this.__data__=ln?ln(null):{},this.size=0}function hd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var gd="__lodash_hash_undefined__",yd=Object.prototype,bd=yd.hasOwnProperty;function xd(e){var t=this.__data__;if(ln){var n=t[e];return n===gd?void 0:n}return bd.call(t,e)?t[e]:void 0}var vd=Object.prototype,Sd=vd.hasOwnProperty;function wd(e){var t=this.__data__;return ln?t[e]!==void 0:Sd.call(t,e)}var Od="__lodash_hash_undefined__";function jd(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ln&&t===void 0?Od:t,this}function gt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gt.prototype.clear=pd;gt.prototype.delete=hd;gt.prototype.get=xd;gt.prototype.has=wd;gt.prototype.set=jd;function Ad(){this.size=0,this.__data__={hash:new gt,map:new(an||Ye),string:new gt}}function Cd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qn(e,t){var n=e.__data__;return Cd(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Ed(e){var t=qn(this,e).delete(e);return this.size-=t?1:0,t}function _d(e){return qn(this,e).get(e)}function Fd(e){return qn(this,e).has(e)}function Td(e,t){var n=qn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Je(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Je.prototype.clear=Ad;Je.prototype.delete=Ed;Je.prototype.get=_d;Je.prototype.has=Fd;Je.prototype.set=Td;var Id=200;function Nd(e,t){var n=this.__data__;if(n instanceof Ye){var r=n.__data__;if(!an||r.length<Id-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Je(r)}return n.set(e,t),this.size=n.size,this}function Ie(e){var t=this.__data__=new Ye(e);this.size=t.size}Ie.prototype.clear=Hu;Ie.prototype.delete=Yu;Ie.prototype.get=Ju;Ie.prototype.has=Xu;Ie.prototype.set=Nd;var Pd="__lodash_hash_undefined__";function Dd(e){return this.__data__.set(e,Pd),this}function $d(e){return this.__data__.has(e)}function yt(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Je;++t<n;)this.add(e[t])}yt.prototype.add=yt.prototype.push=Dd;yt.prototype.has=$d;function Rd(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function cn(e,t){return e.has(t)}var kd=1,Md=2;function Lo(e,t,n,r,i,s){var o=n&kd,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var d=s.get(e),u=s.get(t);if(d&&u)return d==t&&u==e;var c=-1,p=!0,y=n&Md?new yt:void 0;for(s.set(e,t),s.set(t,e);++c<a;){var f=e[c],h=t[c];if(r)var g=o?r(h,f,c,t,e,s):r(f,h,c,e,t,s);if(g!==void 0){if(g)continue;p=!1;break}if(y){if(!Rd(t,function(b,S){if(!cn(y,S)&&(f===b||i(f,b,n,r,s)))return y.push(S)})){p=!1;break}}else if(!(f===h||i(f,h,n,r,s))){p=!1;break}}return s.delete(e),s.delete(t),p}var Bn=ze.Uint8Array;function Bd(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function ri(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Ud=1,Ld=2,Vd="[object Boolean]",zd="[object Date]",Wd="[object Error]",Kd="[object Map]",qd="[object Number]",Gd="[object RegExp]",Hd="[object Set]",Yd="[object String]",Jd="[object Symbol]",Xd="[object ArrayBuffer]",Qd="[object DataView]",Qi=Ae?Ae.prototype:void 0,or=Qi?Qi.valueOf:void 0;function Zd(e,t,n,r,i,s,o){switch(n){case Qd:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Xd:return!(e.byteLength!=t.byteLength||!s(new Bn(e),new Bn(t)));case Vd:case zd:case qd:return gn(+e,+t);case Wd:return e.name==t.name&&e.message==t.message;case Gd:case Yd:return e==t+"";case Kd:var a=Bd;case Hd:var l=r&Ud;if(a||(a=ri),e.size!=t.size&&!l)return!1;var d=o.get(e);if(d)return d==t;r|=Ld,o.set(e,t);var u=Lo(a(e),a(t),r,i,s,o);return o.delete(e),u;case Jd:if(or)return or.call(e)==or.call(t)}return!1}function ii(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var ye=Array.isArray;function Vo(e,t,n){var r=t(e);return ye(e)?r:ii(r,n(e))}function ef(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function zo(){return[]}var tf=Object.prototype,nf=tf.propertyIsEnumerable,Zi=Object.getOwnPropertySymbols,si=Zi?function(e){return e==null?[]:(e=Object(e),ef(Zi(e),function(t){return nf.call(e,t)}))}:zo;function Wo(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var rf="[object Arguments]";function es(e){return Ce(e)&&He(e)==rf}var Ko=Object.prototype,sf=Ko.hasOwnProperty,of=Ko.propertyIsEnumerable,$t=es((function(){return arguments})())?es:function(e){return Ce(e)&&sf.call(e,"callee")&&!of.call(e,"callee")};function af(){return!1}var qo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ts=qo&&typeof module=="object"&&module&&!module.nodeType&&module,lf=ts&&ts.exports===qo,ns=lf?ze.Buffer:void 0,cf=ns?ns.isBuffer:void 0,bt=cf||af,uf=9007199254740991,df=/^(?:0|[1-9]\d*)$/;function Gn(e,t){var n=typeof e;return t=t??uf,!!t&&(n=="number"||n!="symbol"&&df.test(e))&&e>-1&&e%1==0&&e<t}var ff=9007199254740991;function oi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ff}var mf="[object Arguments]",pf="[object Array]",hf="[object Boolean]",gf="[object Date]",yf="[object Error]",bf="[object Function]",xf="[object Map]",vf="[object Number]",Sf="[object Object]",wf="[object RegExp]",Of="[object Set]",jf="[object String]",Af="[object WeakMap]",Cf="[object ArrayBuffer]",Ef="[object DataView]",_f="[object Float32Array]",Ff="[object Float64Array]",Tf="[object Int8Array]",If="[object Int16Array]",Nf="[object Int32Array]",Pf="[object Uint8Array]",Df="[object Uint8ClampedArray]",$f="[object Uint16Array]",Rf="[object Uint32Array]",fe={};fe[_f]=fe[Ff]=fe[Tf]=fe[If]=fe[Nf]=fe[Pf]=fe[Df]=fe[$f]=fe[Rf]=!0;fe[mf]=fe[pf]=fe[Cf]=fe[hf]=fe[Ef]=fe[gf]=fe[yf]=fe[bf]=fe[xf]=fe[vf]=fe[Sf]=fe[wf]=fe[Of]=fe[jf]=fe[Af]=!1;function kf(e){return Ce(e)&&oi(e.length)&&!!fe[He(e)]}function ai(e){return function(t){return e(t)}}var Go=typeof exports=="object"&&exports&&!exports.nodeType&&exports,en=Go&&typeof module=="object"&&module&&!module.nodeType&&module,Mf=en&&en.exports===Go,ar=Mf&&ko.process,Rt=(function(){try{var e=en&&en.require&&en.require("util").types;return e||ar&&ar.binding&&ar.binding("util")}catch{}})(),rs=Rt&&Rt.isTypedArray,bn=rs?ai(rs):kf,Bf=Object.prototype,Uf=Bf.hasOwnProperty;function Ho(e,t){var n=ye(e),r=!n&&$t(e),i=!n&&!r&&bt(e),s=!n&&!r&&!i&&bn(e),o=n||r||i||s,a=o?Wo(e.length,String):[],l=a.length;for(var d in e)(t||Uf.call(e,d))&&!(o&&(d=="length"||i&&(d=="offset"||d=="parent")||s&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Gn(d,l)))&&a.push(d);return a}var Lf=Object.prototype;function Hn(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Lf;return e===n}var Vf=Bo(Object.keys,Object),zf=Object.prototype,Wf=zf.hasOwnProperty;function Yo(e){if(!Hn(e))return Vf(e);var t=[];for(var n in Object(e))Wf.call(e,n)&&n!="constructor"&&t.push(n);return t}function Ot(e){return e!=null&&oi(e.length)&&!yn(e)}function Te(e){return Ot(e)?Ho(e):Yo(e)}function Pr(e){return Vo(e,Te,si)}var Kf=1,qf=Object.prototype,Gf=qf.hasOwnProperty;function Hf(e,t,n,r,i,s){var o=n&Kf,a=Pr(e),l=a.length,d=Pr(t),u=d.length;if(l!=u&&!o)return!1;for(var c=l;c--;){var p=a[c];if(!(o?p in t:Gf.call(t,p)))return!1}var y=s.get(e),f=s.get(t);if(y&&f)return y==t&&f==e;var h=!0;s.set(e,t),s.set(t,e);for(var g=o;++c<l;){p=a[c];var b=e[p],S=t[p];if(r)var O=o?r(S,b,p,t,e,s):r(b,S,p,e,t,s);if(!(O===void 0?b===S||i(b,S,n,r,s):O)){h=!1;break}g||(g=p=="constructor")}if(h&&!g){var v=e.constructor,x=t.constructor;v!=x&&"constructor"in e&&"constructor"in t&&!(typeof v=="function"&&v instanceof v&&typeof x=="function"&&x instanceof x)&&(h=!1)}return s.delete(e),s.delete(t),h}var Dr=wt(ze,"DataView"),$r=wt(ze,"Promise"),Pt=wt(ze,"Set"),Rr=wt(ze,"WeakMap"),is="[object Map]",Yf="[object Object]",ss="[object Promise]",os="[object Set]",as="[object WeakMap]",ls="[object DataView]",Jf=St(Dr),Xf=St(an),Qf=St($r),Zf=St(Pt),em=St(Rr),Oe=He;(Dr&&Oe(new Dr(new ArrayBuffer(1)))!=ls||an&&Oe(new an)!=is||$r&&Oe($r.resolve())!=ss||Pt&&Oe(new Pt)!=os||Rr&&Oe(new Rr)!=as)&&(Oe=function(e){var t=He(e),n=t==Yf?e.constructor:void 0,r=n?St(n):"";if(r)switch(r){case Jf:return ls;case Xf:return is;case Qf:return ss;case Zf:return os;case em:return as}return t});var tm=1,cs="[object Arguments]",us="[object Array]",Cn="[object Object]",nm=Object.prototype,ds=nm.hasOwnProperty;function rm(e,t,n,r,i,s){var o=ye(e),a=ye(t),l=o?us:Oe(e),d=a?us:Oe(t);l=l==cs?Cn:l,d=d==cs?Cn:d;var u=l==Cn,c=d==Cn,p=l==d;if(p&&bt(e)){if(!bt(t))return!1;o=!0,u=!1}if(p&&!u)return s||(s=new Ie),o||bn(e)?Lo(e,t,n,r,i,s):Zd(e,t,l,n,r,i,s);if(!(n&tm)){var y=u&&ds.call(e,"__wrapped__"),f=c&&ds.call(t,"__wrapped__");if(y||f){var h=y?e.value():e,g=f?t.value():t;return s||(s=new Ie),i(h,g,n,r,s)}}return p?(s||(s=new Ie),Hf(e,t,n,r,i,s)):!1}function xn(e,t,n,r,i){return e===t?!0:e==null||t==null||!Ce(e)&&!Ce(t)?e!==e&&t!==t:rm(e,t,n,r,xn,i)}function im(e,t,n){n=typeof n=="function"?n:void 0;var r=n?n(e,t):void 0;return r===void 0?xn(e,t,void 0,n):!!r}function ue(e,t){return im(e,t,(n,r)=>{if(typeof n=="function"&&typeof r=="function")return!0})}var sm="[object Symbol]";function vn(e){return typeof e=="symbol"||Ce(e)&&He(e)==sm}var om=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,am=/^\w*$/;function li(e,t){if(ye(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||vn(e)?!0:am.test(e)||!om.test(e)||t!=null&&e in Object(t)}var lm="Expected a function";function ci(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(lm);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(ci.Cache||Je),n}ci.Cache=Je;var cm=500;function um(e){var t=ci(e,function(r){return n.size===cm&&n.clear(),r}),n=t.cache;return t}var dm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fm=/\\(\\)?/g,Jo=um(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(dm,function(n,r,i,s){t.push(i?s.replace(fm,"$1"):r||n)}),t});function Ut(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var fs=Ae?Ae.prototype:void 0,ms=fs?fs.toString:void 0;function Xo(e){if(typeof e=="string")return e;if(ye(e))return Ut(e,Xo)+"";if(vn(e))return ms?ms.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ui(e){return e==null?"":Xo(e)}function Lt(e,t){return ye(e)?e:li(e,t)?[e]:Jo(ui(e))}function jt(e){if(typeof e=="string"||vn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Yn(e,t){t=Lt(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[jt(t[n++])];return n&&n==r?e:void 0}function N(e,t,n){var r=e==null?void 0:Yn(e,t);return r===void 0?n:r}var mm=Object.prototype,pm=mm.hasOwnProperty;function hm(e,t){return e!=null&&pm.call(e,t)}function Qo(e,t,n){t=Lt(t,e);for(var r=-1,i=t.length,s=!1;++r<i;){var o=jt(t[r]);if(!(s=e!=null&&n(e,o)))break;e=e[o]}return s||++r!=i?s:(i=e==null?0:e.length,!!i&&oi(i)&&Gn(o,i)&&(ye(e)||$t(e)))}function X(e,t){return e!=null&&Qo(e,t,hm)}function rt(e,t){return xn(e,t)}var Un=(function(){try{var e=wt(Object,"defineProperty");return e({},"",{}),e}catch{}})();function di(e,t,n){t=="__proto__"&&Un?Un(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var gm=Object.prototype,ym=gm.hasOwnProperty;function fi(e,t,n){var r=e[t];(!(ym.call(e,t)&&gn(r,n))||n===void 0&&!(t in e))&&di(e,t,n)}function mi(e,t,n,r){if(!ee(e))return e;t=Lt(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var l=jt(t[i]),d=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var u=a[l];d=r?r(u,l,a):void 0,d===void 0&&(d=ee(u)?u:Gn(t[i+1])?[]:{})}fi(a,l,d),a=a[l]}return e}function se(e,t,n){return e==null?e:mi(e,t,n)}function Jn(e){return e}function Zo(e){return typeof e=="function"?e:Jn}var bm=/\s/;function xm(e){for(var t=e.length;t--&&bm.test(e.charAt(t)););return t}var vm=/^\s+/;function Sm(e){return e&&e.slice(0,xm(e)+1).replace(vm,"")}var ps=NaN,wm=/^[-+]0x[0-9a-f]+$/i,Om=/^0b[01]+$/i,jm=/^0o[0-7]+$/i,Am=parseInt;function Cm(e){if(typeof e=="number")return e;if(vn(e))return ps;if(ee(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ee(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Sm(e);var n=Om.test(e);return n||jm.test(e)?Am(e.slice(2),n?2:8):wm.test(e)?ps:+e}var hs=1/0,Em=17976931348623157e292;function _m(e){if(!e)return e===0?e:0;if(e=Cm(e),e===hs||e===-hs){var t=e<0?-1:1;return t*Em}return e===e?e:0}function ea(e){var t=_m(e),n=t%1;return t===t?n?t-n:t:0}var Fm=9007199254740991,lr=4294967295,Tm=Math.min;function ta(e,t){if(e=ea(e),e<1||e>Fm)return[];var n=lr,r=Tm(e,lr);t=Zo(t),e-=lr;for(var i=Wo(r,t);++n<e;)t(n);return i}function pi(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var gs=Object.create,na=(function(){function e(){}return function(t){if(!ee(t))return{};if(gs)return gs(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function Im(e){return function(t,n,r){for(var i=-1,s=Object(t),o=r(t),a=o.length;a--;){var l=o[++i];if(n(s[l],l,s)===!1)break}return t}}var ra=Im();function ia(e,t){return e&&ra(e,t,Te)}var Nm=1,Pm=2;function Dm(e,t,n,r){var i=n.length,s=i;if(e==null)return!s;for(e=Object(e);i--;){var o=n[i];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=n[i];var a=o[0],l=e[a],d=o[1];if(o[2]){if(l===void 0&&!(a in e))return!1}else{var u=new Ie,c;if(!(c===void 0?xn(d,l,Nm|Pm,r,u):c))return!1}}return!0}function sa(e){return e===e&&!ee(e)}function $m(e){for(var t=Te(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,sa(i)]}return t}function oa(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Rm(e){var t=$m(e);return t.length==1&&t[0][2]?oa(t[0][0],t[0][1]):function(n){return n===e||Dm(n,e,t)}}function km(e,t){return e!=null&&t in Object(e)}function aa(e,t){return e!=null&&Qo(e,t,km)}var Mm=1,Bm=2;function Um(e,t){return li(e)&&sa(t)?oa(jt(e),t):function(n){var r=N(n,e);return r===void 0&&r===t?aa(n,e):xn(t,r,Mm|Bm)}}function Lm(e){return function(t){return t?.[e]}}function Vm(e){return function(t){return Yn(t,e)}}function zm(e){return li(e)?Lm(jt(e)):Vm(e)}function hi(e){return typeof e=="function"?e:e==null?Jn:typeof e=="object"?ye(e)?Um(e[0],e[1]):Rm(e):zm(e)}function Wm(e,t,n){var r=ye(e),i=r||bt(e)||bn(e);if(t=hi(t),n==null){var s=e&&e.constructor;i?n=r?new s:[]:ee(e)?n=yn(s)?na(Wn(e)):{}:n={}}return(i?pi:ia)(e,function(o,a,l){return t(n,o,a,l)}),n}function kr(e,t,n){(n!==void 0&&!gn(e[t],n)||n===void 0&&!(t in e))&&di(e,t,n)}var la=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ys=la&&typeof module=="object"&&module&&!module.nodeType&&module,Km=ys&&ys.exports===la,bs=Km?ze.Buffer:void 0,xs=bs?bs.allocUnsafe:void 0;function ca(e,t){if(t)return e.slice();var n=e.length,r=xs?xs(n):new e.constructor(n);return e.copy(r),r}function gi(e){var t=new e.constructor(e.byteLength);return new Bn(t).set(new Bn(e)),t}function ua(e,t){var n=t?gi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function yi(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function da(e){return typeof e.constructor=="function"&&!Hn(e)?na(Wn(e)):{}}function un(e){return Ce(e)&&Ot(e)}function Mr(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Vt(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],l=void 0;l===void 0&&(l=e[a]),i?di(n,a,l):fi(n,a,l)}return n}function qm(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Gm=Object.prototype,Hm=Gm.hasOwnProperty;function Ym(e){if(!ee(e))return qm(e);var t=Hn(e),n=[];for(var r in e)r=="constructor"&&(t||!Hm.call(e,r))||n.push(r);return n}function Sn(e){return Ot(e)?Ho(e,!0):Ym(e)}function Jm(e){return Vt(e,Sn(e))}function Xm(e,t,n,r,i,s,o){var a=Mr(e,n),l=Mr(t,n),d=o.get(l);if(d){kr(e,n,d);return}var u=s?s(a,l,n+"",e,t,o):void 0,c=u===void 0;if(c){var p=ye(l),y=!p&&bt(l),f=!p&&!y&&bn(l);u=l,p||y||f?ye(a)?u=a:un(a)?u=yi(a):y?(c=!1,u=ca(l,!0)):f?(c=!1,u=ua(l,!0)):u=[]:ot(l)||$t(l)?(u=a,$t(a)?u=Jm(a):(!ee(a)||yn(a))&&(u=da(l))):c=!1}c&&(o.set(l,u),i(u,l,r,s,o),o.delete(l)),kr(e,n,u)}function fa(e,t,n,r,i){e!==t&&ra(t,function(s,o){if(i||(i=new Ie),ee(s))Xm(e,t,o,n,fa,r,i);else{var a=r?r(Mr(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),kr(e,o,a)}},Sn)}function Qm(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var vs=Math.max;function ma(e,t,n){return t=vs(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=vs(r.length-t,0),o=Array(s);++i<s;)o[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(o),Qm(e,this,a)}}function Zm(e){return function(){return e}}var ep=Un?function(e,t){return Un(e,"toString",{configurable:!0,enumerable:!1,value:Zm(t),writable:!0})}:Jn,tp=800,np=16,rp=Date.now;function ip(e){var t=0,n=0;return function(){var r=rp(),i=np-(r-n);if(n=r,i>0){if(++t>=tp)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pa=ip(ep);function Xn(e,t){return pa(ma(e,t,Jn),e+"")}function sp(e,t,n){if(!ee(n))return!1;var r=typeof t;return(r=="number"?Ot(n)&&Gn(t,n.length):r=="string"&&t in n)?gn(n[t],e):!1}function op(e){return Xn(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&sp(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,s)}return t})}var ap=op(function(e,t,n){fa(e,t,n)}),Ss=Ae?Ae.isConcatSpreadable:void 0;function lp(e){return ye(e)||$t(e)||!!(Ss&&e&&e[Ss])}function wn(e,t,n,r,i){var s=-1,o=e.length;for(n||(n=lp),i||(i=[]);++s<o;){var a=e[s];t>0&&n(a)?t>1?wn(a,t-1,n,r,i):ii(i,a):r||(i[i.length]=a)}return i}var cp=1/0;function up(e){var t=e==null?0:e.length;return t?wn(e,cp):[]}function dp(e,t,n,r){for(var i=e.length,s=n+-1;++s<i;)if(t(e[s],s,e))return s;return-1}function fp(e){return e!==e}function mp(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function ha(e,t,n){return t===t?mp(e,t,n):dp(e,fp,n)}function bi(e,t){var n=e==null?0:e.length;return!!n&&ha(e,t,0)>-1}function Nn(){}var pp=1/0,hp=Pt&&1/ri(new Pt([,-0]))[1]==pp?function(e){return new Pt(e)}:Nn,gp=200;function ga(e,t,n){var r=-1,i=bi,s=e.length,o=!0,a=[],l=a;if(s>=gp){var d=hp(e);if(d)return ri(d);o=!1,i=cn,l=new yt}else l=a;e:for(;++r<s;){var u=e[r],c=u;if(u=u!==0?u:0,o&&c===c){for(var p=l.length;p--;)if(l[p]===c)continue e;a.push(u)}else i(l,c,n)||(l!==a&&l.push(c),a.push(u))}return a}function ya(e){return e&&e.length?ga(e):[]}var yp="[object Map]",bp="[object Set]",xp=Object.prototype,vp=xp.hasOwnProperty;function me(e){if(e==null)return!0;if(Ot(e)&&(ye(e)||typeof e=="string"||typeof e.splice=="function"||bt(e)||bn(e)||$t(e)))return!e.length;var t=Oe(e);if(t==yp||t==bp)return!e.size;if(Hn(e))return!Yo(e).length;for(var n in e)if(vp.call(e,n))return!1;return!0}const Sp=Object.prototype;function Qt(e){for(const t in e)if(Sp.hasOwnProperty.call(e,t))return!1;return!0}const wp=["array","boolean","integer","null","number","object","string"];new Set(wp);const Op=["$defs","definitions","properties","patternProperties","dependencies"];new Set(Op);const jp=["items","allOf","oneOf","anyOf"];new Set(jp);const Ap=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(Ap);function Pn(e){return typeof e=="object"}function $e(e){return Pn(e)?Qt(e):e===!0}function Nt(e,t){return e<t?-1:e>t?1:0}function cr(e,t){const n=e.length;if(n===0)return t;let r=t.length;if(r===0)return e;if(n<r){const s=e;e=t,t=s,r=n}const i=new Set(e);for(let s=0;s<r;s++)i.add(t[s]);return Array.from(i)}function Cp(e,t){const n=[];if(e.length===0||t.length===0)return n;if(e.length>t.length){const i=e;e=t,t=i}const r=new Set(t);for(let i=0;i<e.length&&r.size>0;i++){const s=e[i];r.delete(s)&&n.push(s)}return n}function ws(e){return e.length===0}function ur(e){return(t,n)=>{const r=t.length-n.length;if(r!==0)return r;for(let i=0;i<t.length;i++)if(t[i]!==n[i]){const s=e(t[i],n[i]);if(s!==0)return s}return 0}}function ba(e,{threshold:t=12}={}){return n=>{const r=n.length;if(r===0)return n;if(r<=t){const o=[];let a=0;e:for(let l=0;l<r;l++){const d=n[l];for(let u=0;u<a;u++)if(e(d,o[u])===0)continue e;a=o.push(d)}return o}const i=n.slice().sort(e);let s=0;for(let o=1;o<r;o++)e(i[s],i[o])!==0&&++s!==o&&(i[s]=i[o]);return i.length=s+1,i}}function Ep(e){return(t,n)=>{const r=[];let i=t.length,s=n.length;if(i===0||s===0)return r;if(i>s){const u=t;t=n,n=u;const c=i;i=s,s=c}const o=[...t].sort(e),a=[...n].sort(e);let l=0,d=0;for(;l<i&&d<s;){const u=e(o[l],a[d]);u===0?((r.length===0||e(r[r.length-1],o[l])!==0)&&r.push(o[l]),l++,d++):u<0?l++:d++}return r}}function _p(e,t){return n=>{if(e.has(n))return e.get(n);const r=t(n);return e.set(n,r),r}}const Os=_p,xa=()=>0,Fp=e=>e===void 0,Tp=e=>typeof e!="object",js={boolean:0,number:1,string:2};function Ip(e,t){const n=typeof e,r=typeof t;return n===r?Nt(e,t):js[n]-js[r]}function Np(e,t){const n=e.length;if(n===0)return t;const r=t.length;if(r===0)return e;if(r>n){const o=e;e=t,t=o}const i=new Set(e),s=t.length;for(let o=0;o<s;o++){const a=t[o];i.has(a)||e.push(a)}return e}function Qn(e,t,n=xa){return(r,i)=>e(r)?e(i)?n(r,i):-1:e(i)?1:t(r,i)}function Tt(e){return Qn(Fp,e)}function Ze(e,t){return Qn(n=>n===void 0||e(n),t)}function dr(e,t){return Qn(Array.isArray,e,t)}const pe=Tt(Nt),fr=Ze(e=>e===0,(e,t)=>e-t);function Pp({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const n=Os(t,h=>Object.keys(h).sort());function r(h){return(g,b)=>{const S=n(g),O=n(b),v=Math.min(S.length,O.length);for(let x=0;x<v;x++){const w=Nt(S[x],O[x]);if(w!==0)return w}if(S.length!==O.length)return S.length-O.length;for(let x=0;x<v;x++){const w=S[x],j=h(g[w],b[w]);if(j!==0)return j}return 0}}function i(h){const g=ur(h),b=Os(e,ba(h,{threshold:0}));return(S,O)=>g(b(S),b(O))}const s=i(Nt);function o(h,g){if(Pn(h)){if(Pn(g)){const b=Object.keys(h),S=Object.keys(g),O=Np(b,S),v=O.length;for(let x=0;x<v;x++){const w=O[x];if(h[w]===g[w])continue;const A=(f[w]??a)(h[w],g[w]);if(A!==0)return A}return 0}return g===!0&&Qt(h)?0:1}return Pn(g)?h===!0&&Qt(g)?0:-1:Nt(h,g)}const a=Tt(d),l=Qn(Tp,dr(r(a),ur(d)),Ip);function d(h,g){return h===null?-1:g===null?1:l(h,g)}const u=Tt(o),c=Ze(Qt,r(u)),p=Tt(i(o)),y=Ze($e,o),f={$id:pe,$comment:pe,$defs:c,$ref:pe,$schema:pe,const:a,contains:u,contentEncoding:pe,contentMediaType:pe,default:a,definitions:c,description:pe,else:u,examples:a,exclusiveMaximum:pe,exclusiveMinimum:pe,format:pe,if:u,maximum:pe,maxItems:pe,maxLength:pe,maxProperties:pe,minimum:pe,multipleOf:pe,not:u,pattern:pe,propertyNames:u,readOnly:pe,then:u,title:pe,writeOnly:pe,uniqueItems:Ze(h=>h===!1,xa),minLength:fr,minItems:fr,minProperties:fr,required:Ze(ws,s),enum:Ze(ws,i(d)),type:Tt((h,g)=>{const b=Array.isArray(h),S=Array.isArray(g);return!b&&!S?Nt(h,g):s(b?h:[h],S?g:[g])}),items:Ze(h=>!Array.isArray(h)&&$e(h),dr(o,ur(o))),anyOf:p,allOf:p,oneOf:p,properties:c,patternProperties:c,additionalProperties:y,additionalItems:y,dependencies:Ze(Qt,r(Tt(dr(o,s))))};return{compareSchemaValues:d,compareSchemaDefinitions:o}}function As(e){return e}const va=(e,t)=>e?va(t%e,e):t,Dp=(e,t)=>Math.abs(e*t)/va(e,t);function $p(e,t){return e===t?e:`^(?=.*(?:${e}))(?=.*(?:${t})).*$`}function*mr(e,t,n){const r=e.length,i=t.length;if(r>0&&i>0)for(let s=0;s<r;s++){const o=e[s];for(let a=0;a<i;a++)yield n(o,t[a])}}function pr(e,t){return e||t}function Cs(e){return(t,n)=>{const r={...t},i=Object.keys(n),s=i.length;for(let o=0;o<s;o++){const a=i[o];r[a]=t[a]===void 0?n[a]:e(t[a],n[a])}return r}}function Rp(e){const t=new Map;for(const n of e)for(const r of n[0])t.set(r,n[1]);return t}function dt(e,t,n){n===void 0||$e(n)?delete e[t]:e[t]=n}const kp=["properties","patternProperties","additionalProperties"];function Es(e){const t=Object.keys(e),n=t.length,r=[];for(let i=0;i<n;i++){const s=t[i];r.push({regExp:new RegExp(s),schema:e[s]})}return[r,t]}const _s=[[],[]];function Fs(e,t,n){const r=n.length;for(let i=0;i<r;i++){const s=n[i];if(!s.regExp.test(t))continue;const o=s.schema;if(o===!1)return!0;e.push(o)}return!1}const Mp=["items","additionalItems"],Bp=["if","then","else"];function Ts(e,t){return t.if!==void 0&&(e.if=t.if),t.then!==void 0&&(e.then=t.then),t.else!==void 0&&(e.else=t.else),e}function hr(e,t){if(e===t)return e;switch(e){case"number":if(t==="integer")return"integer";case"integer":if(t==="number")return"integer";default:return}}function ft(e,t,n){return[e,t,n]}function Up(e){const t=new Map;for(const[n,r,i]of e){const s=o=>{if(!i(o))throw new Error(`Schema keys '${n}' and '${r}' are conflicting (${n}: ${JSON.stringify(o[n])}, ${r}: ${JSON.stringify(o[r])})`)};for(const o of[[n,r],[r,n]]){let a=t.get(o[0]);a===void 0&&(a=[],t.set(o[0],a)),a.push({oppositeKey:o[1],check:s})}}return t}const Lp=[ft("minimum","maximum",e=>e.maximum>=e.minimum),ft("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),ft("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),ft("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),ft("minLength","maxLength",e=>e.maxLength>=e.minLength),ft("minItems","maxItems",e=>e.maxItems>=e.minItems),ft("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function Vp({mergePatterns:e=$p,isSubRegExp:t=Object.is,intersectJson:n=Cp,deduplicateJsonSchemaDef:r=As,defaultMerger:i=As,assigners:s=[],checks:o=Lp,mergers:a}={}){function l(v){const x=v.length;let w=v[0];for(let j=1;j<x;j++){const A=b(w,v[j]);if(A===!1)return!1;$e(A)||(w=A)}return w}function d(v,x,w,j,A,E,C){if(v.length=0,w===!1)return!1;if(v.push(w),A!==void 0){if(A===!1)return!1;v.push(A)}if(Fs(v,x,E))return!1;const _=v.length<2;if(C===!1){if(_)return;if(Fs(v,x,j))return!1}else _&&C!==void 0&&v.push(C);return v.length===1?v[0]:l(v)}function u(v,x,w,j,A,E){const C=w.length;if(C>0&&A!==!1)if(E)Object.assign(v,x);else for(let F=0;F<C;F++){const _=w[F];j.has(_)||(v[_]=b(x[_],A))}return v}const c=(v,{properties:x={},patternProperties:w,additionalProperties:j=!0},{properties:A={},patternProperties:E,additionalProperties:C=!0})=>{const F=$e(j),_=$e(C);if(F&&_)return dt(v,"properties",S(x,A)),dt(v,"patternProperties",w&&E?S(w,E):w??E),delete v.additionalProperties,v;const T=b(j,C);dt(v,"additionalProperties",T);const $={},D=Object.keys(x),P=D.length,[k,M]=w?Es(w):_s,[B,W]=E?Es(E):_s,R=[],L=new Set,Z=_?void 0:C;for(let J=0;J<P;J++){const ie=D[J];L.add(ie);const de=d(R,ie,x[ie],k,A[ie],B,Z);de!==void 0&&($[ie]=de)}const z=Object.keys(A),ne=z.length,le=F?void 0:j;for(let J=0;J<ne;J++){const ie=z[J];if(L.has(ie))continue;const de=d(R,ie,A[ie],B,void 0,k,le);de!==void 0&&($[ie]=de)}dt(v,"properties",$);let re={};const K=new Set;if(M.length>0&&W.length>0){const J=mr(M,W,(ie,de)=>{t(ie,de)&&K.add(ie),t(de,ie)&&K.add(de),re[e(ie,de)]=b(w[ie],E[de])});for(;!J.next().done;);}return re=u(re,w,M,K,C,_),re=u(re,E,W,K,j,F),dt(v,"patternProperties",re),v},p=(v,{items:x=[],additionalItems:w},{items:j=[],additionalItems:A})=>{const E=Array.isArray(x),C=Array.isArray(j),F=[];if(v.items=F,E&&C){const[_,T,$]=x.length<j.length?[x.length,w,j]:[j.length,A,x];let D=0;for(;D<_;D++)F.push(b(x[D],j[D]));if(T===!1)v.additionalItems=!1;else{const P=T===void 0||$e(T);for(;D<$.length;D++)F.push(P?$[D]:b($[D],T));dt(v,"additionalItems",w!==void 0&&A!==void 0?b(w,A):w??A)}}else if(E||C){const[_,T,$]=E?[x,j,w]:[j,x,A];dt(v,"additionalItems",$&&b($,T));for(let D=0;D<_.length;D++)F.push(b(_[D],T))}else delete v.additionalItems,v.items=b(x,j);return v},y=(v,x,w)=>{Ts(v,x);const j=Ts({},w);return v.allOf===void 0?v.allOf=[j]:v.allOf=v.allOf.concat(j),v};function f(v,x){return r(Array.from(mr(v,x,b)))}const h=Rp([[kp,c],[Mp,p],[Bp,y],...s]),g=Up(o);function b(v,x){if(v===!1||x===!1)return!1;if($e(v))return $e(x)?!0:x;if($e(x))return v;let w={...v};const j=new Set,A=new Set,E=Object.keys(x),C=E.length;for(let F=0;F<C;F++){const _=E[F],T=x[_];if(T===void 0)continue;const $=g.get(_);if($!==void 0){const M=$.length;for(let B=0;B<M;B++){const W=$[B];v[W.oppositeKey]!==void 0&&A.add(W.check)}}const D=v[_];if(D===void 0){w[_]=T;continue}const P=h.get(_);if(P){j.add(P);continue}const k=O[_]??i;w[_]=k(D,T)}for(const F of j)w=F(w,v,x);for(const F of A)F(w);return w}const S=Cs(b),O={$id:i,$ref:i,$schema:i,$comment:i,$defs:S,definitions:S,type:(v,x)=>{if(v===x)return v;const w=Array.isArray(v),j=Array.isArray(x);if(!w&&!j){const A=hr(v,x);if(A!==void 0)return A}else if(w||j){const A=new Set;if(w&&j)for(const C of mr(v,x,hr))C!==void 0&&A.add(C);else{const C=w?v:x,F=w?x:v,_=C.length;for(let T=0;T<_;T++){const $=hr(F,C[T]);$!==void 0&&A.add($)}}const E=A.size;if(E===1)return A.values().next().value;if(E>1)return Array.from(A)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${v.toString()}, ${x.toString()}`)},default:i,description:i,title:i,const:i,format:i,contentEncoding:i,contentMediaType:i,not:(v,x)=>{const w=r([v,x]);return w.length===1?w[0]:{anyOf:w}},pattern:e,readOnly:pr,writeOnly:pr,enum:(v,x)=>{const w=n(v,x);if(w.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(v)}", "${JSON.stringify(x)}"`);return w},anyOf:f,oneOf:f,allOf:(v,x)=>r(v.concat(x)),propertyNames:b,contains:b,dependencies:Cs((v,x)=>Array.isArray(v)?Array.isArray(x)?cr(v,x):b(x,{required:v}):Array.isArray(x)?b(v,{required:x}):b(v,x)),examples:(v,x)=>{if(!Array.isArray(v)||!Array.isArray(x))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(v)}" and "${JSON.stringify(x)}"`);return cr(v,x)},multipleOf:(v,x)=>{let w=1;for(;!Number.isInteger(v)||!Number.isInteger(x);)w*=10,v*=10,x*=10;return Dp(v,x)/w},exclusiveMaximum:Math.min,maximum:Math.min,maxItems:Math.min,maxLength:Math.min,maxProperties:Math.min,exclusiveMinimum:Math.max,minimum:Math.max,minItems:Math.max,minLength:Math.max,minProperties:Math.max,uniqueItems:pr,required:cr,...a};return{mergeSchemaDefinitions:b,mergeArrayOfSchemaDefinitions:l}}function zp(e){const t=[],n=[e];for(;n.length>0;){const r=n.pop();if(typeof r=="boolean"||r.allOf===void 0){t.push(r);continue}const{allOf:i,...s}=r;t.push(s);for(let o=i.length-1;o>=0;o--)n.push(i[o])}return t}function Wp(e){return t=>e(zp(t))}var Yt={},Is;function Kp(){if(Is)return Yt;Is=1;var e=/~/,t=/~[01]/g;function n(d){switch(d){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+d)}function r(d){return e.test(d)?d.replace(t,n):d}function i(d,u,c){for(var p,y,f=1,h=u.length;f<h;){if(u[f]==="constructor"||u[f]==="prototype"||u[f]==="__proto__")return d;if(p=r(u[f++]),y=h>f,typeof d[p]>"u"&&(Array.isArray(d)&&p==="-"&&(p=d.length),y&&(u[f]!==""&&u[f]<1/0||u[f]==="-"?d[p]=[]:d[p]={})),!y)break;d=d[p]}var g=d[p];return c===void 0?delete d[p]:d[p]=c,g}function s(d){if(typeof d=="string"){if(d=d.split("/"),d[0]==="")return d;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(d)){for(const u of d)if(typeof u!="string"&&typeof u!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return d}throw new Error("Invalid JSON pointer.")}function o(d,u){if(typeof d!="object")throw new Error("Invalid input object.");u=s(u);var c=u.length;if(c===1)return d;for(var p=1;p<c;){if(d=d[r(u[p++])],c===p)return d;if(typeof d!="object"||d===null)return}}function a(d,u,c){if(typeof d!="object")throw new Error("Invalid input object.");if(u=s(u),u.length===0)throw new Error("Invalid JSON pointer for set.");return i(d,u,c)}function l(d){var u=s(d);return{get:function(c){return o(c,u)},set:function(c,p){return a(c,u,p)}}}return Yt.get=o,Yt.set=a,Yt.compile=l,Yt}var qp=Kp();const gr=Jr(qp);function Gp(e,t){return e&&Vt(t,Te(t),e)}function Hp(e,t){return e&&Vt(t,Sn(t),e)}function Yp(e,t){return Vt(e,si(e),t)}var Jp=Object.getOwnPropertySymbols,Sa=Jp?function(e){for(var t=[];e;)ii(t,si(e)),e=Wn(e);return t}:zo;function Xp(e,t){return Vt(e,Sa(e),t)}function xi(e){return Vo(e,Sn,Sa)}var Qp=Object.prototype,Zp=Qp.hasOwnProperty;function eh(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Zp.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function th(e,t){var n=t?gi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var nh=/\w*$/;function rh(e){var t=new e.constructor(e.source,nh.exec(e));return t.lastIndex=e.lastIndex,t}var Ns=Ae?Ae.prototype:void 0,Ps=Ns?Ns.valueOf:void 0;function ih(e){return Ps?Object(Ps.call(e)):{}}var sh="[object Boolean]",oh="[object Date]",ah="[object Map]",lh="[object Number]",ch="[object RegExp]",uh="[object Set]",dh="[object String]",fh="[object Symbol]",mh="[object ArrayBuffer]",ph="[object DataView]",hh="[object Float32Array]",gh="[object Float64Array]",yh="[object Int8Array]",bh="[object Int16Array]",xh="[object Int32Array]",vh="[object Uint8Array]",Sh="[object Uint8ClampedArray]",wh="[object Uint16Array]",Oh="[object Uint32Array]";function jh(e,t,n){var r=e.constructor;switch(t){case mh:return gi(e);case sh:case oh:return new r(+e);case ph:return th(e,n);case hh:case gh:case yh:case bh:case xh:case vh:case Sh:case wh:case Oh:return ua(e,n);case ah:return new r;case lh:case dh:return new r(e);case ch:return rh(e);case uh:return new r;case fh:return ih(e)}}var Ah="[object Map]";function Ch(e){return Ce(e)&&Oe(e)==Ah}var Ds=Rt&&Rt.isMap,Eh=Ds?ai(Ds):Ch,_h="[object Set]";function Fh(e){return Ce(e)&&Oe(e)==_h}var $s=Rt&&Rt.isSet,Th=$s?ai($s):Fh,Ih=1,Nh=2,Ph=4,wa="[object Arguments]",Dh="[object Array]",$h="[object Boolean]",Rh="[object Date]",kh="[object Error]",Oa="[object Function]",Mh="[object GeneratorFunction]",Bh="[object Map]",Uh="[object Number]",ja="[object Object]",Lh="[object RegExp]",Vh="[object Set]",zh="[object String]",Wh="[object Symbol]",Kh="[object WeakMap]",qh="[object ArrayBuffer]",Gh="[object DataView]",Hh="[object Float32Array]",Yh="[object Float64Array]",Jh="[object Int8Array]",Xh="[object Int16Array]",Qh="[object Int32Array]",Zh="[object Uint8Array]",eg="[object Uint8ClampedArray]",tg="[object Uint16Array]",ng="[object Uint32Array]",ce={};ce[wa]=ce[Dh]=ce[qh]=ce[Gh]=ce[$h]=ce[Rh]=ce[Hh]=ce[Yh]=ce[Jh]=ce[Xh]=ce[Qh]=ce[Bh]=ce[Uh]=ce[ja]=ce[Lh]=ce[Vh]=ce[zh]=ce[Wh]=ce[Zh]=ce[eg]=ce[tg]=ce[ng]=!0;ce[kh]=ce[Oa]=ce[Kh]=!1;function tn(e,t,n,r,i,s){var o,a=t&Ih,l=t&Nh,d=t&Ph;if(n&&(o=i?n(e,r,i,s):n(e)),o!==void 0)return o;if(!ee(e))return e;var u=ye(e);if(u){if(o=eh(e),!a)return yi(e,o)}else{var c=Oe(e),p=c==Oa||c==Mh;if(bt(e))return ca(e,a);if(c==ja||c==wa||p&&!i){if(o=l||p?{}:da(e),!a)return l?Xp(e,Hp(o,e)):Yp(e,Gp(o,e))}else{if(!ce[c])return i?e:{};o=jh(e,c,a)}}s||(s=new Ie);var y=s.get(e);if(y)return y;s.set(e,o),Th(e)?e.forEach(function(g){o.add(tn(g,t,n,g,e,s))}):Eh(e)&&e.forEach(function(g,b){o.set(b,tn(g,t,n,b,e,s))});var f=d?l?xi:Pr:l?Sn:Te,h=u?void 0:f(e);return pi(h||e,function(g,b){h&&(b=g,g=e[b]),fi(o,b,tn(g,t,n,b,e,s))}),o}function Aa(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function rg(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}function ig(e,t){return t.length<2?e:Yn(e,rg(t,0,-1))}var sg=Object.prototype,og=sg.hasOwnProperty;function Ca(e,t){t=Lt(t,e);var n=-1,r=t.length;if(!r)return!0;for(var i=e==null||typeof e!="object"&&typeof e!="function";++n<r;){var s=t[n];if(typeof s=="string"){if(s==="__proto__"&&!og.call(e,"__proto__"))return!1;if(s==="constructor"&&n+1<r&&typeof t[n+1]=="string"&&t[n+1]==="prototype"){if(i&&n===0)continue;return!1}}}var o=ig(e,t);return o==null||delete o[jt(Aa(t))]}function ag(e){return ot(e)?void 0:e}function Br(e){var t=e==null?0:e.length;return t?wn(e,1):[]}function Ea(e){return pa(ma(e,void 0,Br),e+"")}var lg=1,cg=2,ug=4,dn=Ea(function(e,t){var n={};if(e==null)return n;var r=!1;t=Ut(t,function(s){return s=Lt(s,e),r||(r=s.length>1),s}),Vt(e,xi(e),n),r&&(n=tn(n,lg|cg|ug,ag));for(var i=t.length;i--;)Ca(n,t[i]);return n}),dg=lc();const vi=Jr(dg);function Ln(e,t){if(oe in e&&vi.equal(e[oe],t))return e;for(const n of Object.values(e))if(Array.isArray(n)){for(const r of n)if(ee(r)){const i=Ln(r,t);if(i!==void 0)return i}}else if(ee(n)){const r=Ln(n,t);if(r!==void 0)return r}}function Ur(e,t){const n=N(e,oe,t);ae in e&&(e={...e,[ae]:vi.resolve(n,e[ae])});for(const[r,i]of Object.entries(e))Array.isArray(i)?e={...e,[r]:i.map(s=>ee(s)?Ur(s,n):s)}:ee(i)&&(e={...e,[r]:Ur(i,n)});return e}function Si(e,t){const n=t[e];return[dn(t,[e]),n]}function _a(e,t={},n=[],r=N(t,[oe])){const i=e||"";let s;if(i.startsWith("#")){const a=decodeURIComponent(i.substring(1));r===void 0||oe in t&&t[oe]===r?s=gr.get(t,a):t[Xt]===In&&(s=Ln(t,r.replace(/\/$/,"")),s!==void 0&&(s=gr.get(s,a)))}else if(t[Xt]===In){const a=r?vi.resolve(r,i):i,[l,...d]=a.replace(/#\/?$/,"").split("#");s=Ln(t,l.replace(/\/$/,"")),s!==void 0&&(r=s[oe],me(d)||(s=gr.get(s,decodeURIComponent(d.join("#")))))}if(s===void 0)throw new Error(`Could not find a definition for ${e}.`);const o=s[ae];if(o){if(n.includes(o)){if(n.length===1)throw new Error(`Definition for ${e} is a circular reference`);const[u,...c]=n,p=[...c,i,u].join(" -> ");throw new Error(`Definition for ${u} contains a circular reference through ${p}`)}const[a,l]=Si(ae,s),d=_a(l,t,[...n,i],r);return Object.keys(a).length>0?t[Xt]===Cu||t[Xt]===In?{[qe]:[a,d]}:{...a,...d}:d}return s}function wi(e,t={},n=N(t,[oe])){return _a(e,t,[],n)}var fg="[object String]";function at(e){return typeof e=="string"||!ye(e)&&Ce(e)&&He(e)==fg}function Le(e){let t;const n=N(e,wu);return at(n)?t=n:n!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof n}" instead`),t}function fn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":e==null?"null":typeof e=="boolean"?"boolean":isNaN(e)?typeof e=="object"?"object":"string":"number"}var mg=Xn(function(e){return ga(wn(e,1,un,!0))});function Ne(e){let{type:t}=e;return!t&&e.const?fn(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties||e.patternProperties)?"object":(Array.isArray(t)&&(t.length===2&&t.includes("null")?t=t.find(n=>n!=="null"):t=t[0]),t)}function Ge(e,t){const n=Object.assign({},e);return Object.keys(t).reduce((r,i)=>{const s=e?e[i]:{},o=t[i];return e&&i in e&&H(o)?r[i]=Ge(s,o):e&&t&&(Ne(e)==="object"||Ne(t)==="object")&&i===No&&Array.isArray(s)&&Array.isArray(o)?r[i]=mg(s,o):r[i]=o,r},n)}var pg="[object Number]";function Fa(e){return typeof e=="number"||Ce(e)&&He(e)==pg}function Ta(e,t,n){var r;if(e&&n){const i=N(e,n);if(i===void 0)return;for(let s=0;s<t.length;s++){const o=t[s],a=N(o,[te,n],{});if(!(a.type==="object"||a.type==="array")&&(a.const===i||!((r=a.enum)===null||r===void 0)&&r.includes(i)))return s}}}function Oi(e,t,n,r,i){if(t===void 0)return 0;const s=Ta(t,n,i);if(Fa(s))return s;for(let o=0;o<n.length;o++){const a=n[o];if(i&&X(a,[te,i])){const l=N(t,i),d=N(a,[te,i],{});if(e.isValid(d,l,r))return o}else if(a[te]){const l={anyOf:Object.keys(a[te]).map(u=>({required:[u]}))};let d;if(a.anyOf){const{...u}=a;u.allOf?u.allOf=u.allOf.slice():u.allOf=[],u.allOf.push(l),d=u}else d=Object.assign({},a,l);if(delete d.required,e.isValid(d,t,r))return o}else if(e.isValid(a,t,r))return o}return 0}function xe(e,t,n={},r,i,s=!1){return ke(e,t,n,r,void 0,void 0,i,s)[0]}function hg(e,t,n,r,i,s,o){const{if:a,then:l,else:d,...u}=t,c=e.isValid(a,s||{},n);let p=[u],y=[];if(r)l&&typeof l!="boolean"&&(y=y.concat(ke(e,l,n,s,r,i,o))),d&&typeof d!="boolean"&&(y=y.concat(ke(e,d,n,s,r,i,o)));else{const f=c?l:d;f&&typeof f!="boolean"&&(y=y.concat(ke(e,f,n,s,r,i,o)))}return y.length&&(p=y.map(f=>Ge(u,f))),p.flatMap(f=>ke(e,f,n,s,r,i,o))}function Ia(e){return e.reduce((n,r)=>r.length>1?r.flatMap(i=>ta(n.length,s=>[...n[s]].concat(i))):(n.forEach(i=>i.push(r[0])),n),[[]])}function Na(e,t){return Object.keys(e.patternProperties).filter(n=>RegExp(n).test(t)).reduce((n,r)=>(se(n,[r],e.patternProperties[r]),n),{})}function gg(e,t,n,r,i,s,o,a){const l=Pa(e,t,n,r,i,s,o,a);if(l.length>1||l[0]!==t)return l;if(Zr in t)return Da(e,t,n,r,i,s,o).flatMap(u=>ke(e,u,n,s,r,i,o));if(qe in t&&Array.isArray(t[qe])){const d=t.allOf.map(c=>ke(e,c,n,s,r,i,o));return Ia(d).map(c=>({...t,allOf:c}))}return[t]}function Pa(e,t,n,r,i,s,o,a){const l=Dt(t,n,i,void 0,a);return l!==t?ke(e,l,n,s,r,i,o,a):[t]}function Dt(e,t,n,r,i){if(!H(e))return e;let s=e;if(ae in s){const{$ref:o,...a}=s;if(n.includes(o))return s;n.push(o),s={...wi(o,t,r),...a},oe in s&&(r=s[oe])}if(te in s){const o=[],a=Wm(s[te],(l,d,u)=>{const c=[...n];l[u]=Dt(d,t,c,r,i),o.push(c)},{});ap(n,ya(up(o))),s={...s,[te]:a}}if(ht in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:Dt(s.items,t,n,r,i)}),i){let o,a;Q in e&&Array.isArray(e[Q])?(o=Q,a=s[Q]):q in e&&Array.isArray(e[q])&&(o=q,a=s[q]),o&&a&&(s={...s,[o]:a.map(l=>Dt(l,t,n,r,i))})}return ue(e,s)?e:s}function yg(e,t,n,r,i){const s={...t,properties:{...t.properties}},o=r&&H(r)?r:{};return Object.keys(o).forEach(a=>{if(!(a in s.properties)){if(Tr in s){const l=Na(s,a);if(!me(l)){s.properties[a]=xe(e,{[qe]:Object.values(l)},n,N(o,[a]),i),se(s.properties,[a,Ke],!0);return}}if(on in s&&s.additionalProperties!==!1){let l;typeof s.additionalProperties!="boolean"?ae in s.additionalProperties?l=xe(e,{[ae]:N(s.additionalProperties,[ae])},n,o,i):"type"in s.additionalProperties?l={...s.additionalProperties}:Q in s.additionalProperties||q in s.additionalProperties?l={type:"object",...s.additionalProperties}:l={type:fn(N(o,[a]))}:l={type:fn(N(o,[a]))},s.properties[a]=l,se(s.properties,[a,Ke],!0)}else s.properties[a]={type:"null"},se(s.properties,[a,Ke],!0)}}),s}const{compareSchemaDefinitions:bg,compareSchemaValues:xg}=Pp(),{mergeArrayOfSchemaDefinitions:vg}=Vp({intersectJson:Ep(xg),deduplicateJsonSchemaDef:ba(bg)}),Sg=Wp(vg);function wg(e){return Sg(e)}function ke(e,t,n,r,i=!1,s=[],o,a){return H(t)?gg(e,t,n,i,s,r,o,a).flatMap(d=>{var u;let c=d;if(ei in c)return hg(e,c,n,i,s,r,o);if(qe in c){if(i){const{allOf:y,...f}=c;return[...y,f]}try{const y=[],f=[];(u=c.allOf)===null||u===void 0||u.forEach(h=>{typeof h=="object"&&h.contains?y.push(h):f.push(h)}),y.length&&(c={...c,allOf:f}),c=o?o(c):wg(c),y.length&&(c.allOf=y)}catch(y){console.warn(`could not merge subschemas in allOf:
|
|
1
|
+
import{aO as Hl,aS as Fr,aP as Yl,cD as Jl,a6 as So,n as Xl,cE as Ql,cF as Zl,r as I,cG as ec,cH as tc,cI as nc,aT as rc,cJ as Wi,cK as Ki,cL as ic,cM as sc,a0 as oc,c as _e,K as wo,m as ac,u as Yr,bF as Jr,cN as lc,j as m,cO as Oo,cP as cc,cQ as uc,cR as dc,c3 as fc,y as jo,G as Xr,cS as mc,aw as pc,ax as hc,aj as gc,I as yc,T as It,J as hn,M as Bt,bD as bc,H as xc,Z as vc,X as Sc,Y as wc,b as Oc,O as jc,v as Ac,B as Qr,t as Cc,E as Ec,b$ as _c}from"./index-zTmRWZBl.js";import{i as Fc}from"./mcp-oauth-Bjgs9JoZ.js";import{E as Ao}from"./collection-search-mO1HMauC.js";import{u as Tc}from"./constants-Bi0KgUSI.js";import{u as Ic}from"./use-mcp-tools-CXYzi3AR.js";import{i as Nc}from"./File06-CjPbqhL6.js";import{i as Pc}from"./Key01-HU-4mHLo.js";import{i as Co}from"./Loading01-e5vrz4Tg.js";import{b as Eo}from"./use-connection-D_z7DIgr.js";import{u as Dc,a as $c}from"./use-binding-CczCr_I6.js";import"./constants-C5K20DFA.js";import{f as Rc,c as kc}from"./registry-utils-BAmZqs68.js";import{M as Mc}from"./extract-connection-data-CuU1tc3b.js";import{u as Bc}from"./use-install-from-registry-DJsrJBCB.js";import{s as Uc}from"./Plus-CAkBZRVl.js";import{e as _o,S as Lc,a as Vc,b as zc,c as Wc,d as Kc}from"./select-45R_TReG.js";import{R as qi}from"./index-580YwBrh.js";import{c as ct,C as qc,a as Gc}from"./circle-alert-BEV9hKq0.js";import{R as Hc,I as Yc,a as Jc}from"./index-BrwvwF2e.js";import{_ as vt}from"./index-B3tSRm_S.js";import{f as Xc}from"./index-DlVoIZWW.js";import{M as Qc}from"./collapsible-65I6Ioz9.js";function Gi(e,t){const n=new Set(t);return e.filter(r=>!n.has(r))}function Zc(e,t,n){const r=e.slice(0);return r[t]=n,r}var eu=class extends Hl{#r;#e;#i;#s;#t;#n;#o;#a;#l=[];constructor(e,t,n){super(),this.#r=e,this.#s=n,this.#i=[],this.#t=[],this.#e=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#t.forEach(e=>{e.subscribe(t=>{this.#f(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#t.forEach(e=>{e.destroy()})}setQueries(e,t){this.#i=e,this.#s=t,Fr.batch(()=>{const n=this.#t,r=this.#d(this.#i);this.#l=r,r.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions));const i=r.map(u=>u.observer),s=i.map(u=>u.getCurrentResult()),o=n.length!==i.length,a=i.some((u,c)=>u!==n[c]),l=o||a,d=l?!0:s.some((u,c)=>{const p=this.#e[c];return!p||!Yl(u,p)});!l&&!d||(l&&(this.#t=i),this.#e=s,this.hasListeners()&&(l&&(Gi(n,i).forEach(u=>{u.destroy()}),Gi(i,n).forEach(u=>{u.subscribe(c=>{this.#f(u,c)})})),this.#m()))})}getCurrentResult(){return this.#e}getQueries(){return this.#t.map(e=>e.getCurrentQuery())}getObservers(){return this.#t}getOptimisticResult(e,t){const n=this.#d(e),r=n.map(i=>i.observer.getOptimisticResult(i.defaultedQueryOptions));return[r,i=>this.#u(i??r,t),()=>this.#c(r,n)]}#c(e,t){return t.map((n,r)=>{const i=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,s=>{t.forEach(o=>{o.observer.trackProp(s)})})})}#u(e,t){return t?((!this.#n||this.#e!==this.#a||t!==this.#o)&&(this.#o=t,this.#a=this.#e,this.#n=Jl(this.#n,t(e))),this.#n):e}#d(e){const t=new Map;this.#t.forEach(r=>{const i=r.options.queryHash;if(!i)return;const s=t.get(i);s?s.push(r):t.set(i,[r])});const n=[];return e.forEach(r=>{const i=this.#r.defaultQueryOptions(r),o=t.get(i.queryHash)?.shift()??new So(this.#r,i);n.push({defaultedQueryOptions:i,observer:o})}),n}#f(e,t){const n=this.#t.indexOf(e);n!==-1&&(this.#e=Zc(this.#e,n,t),this.#m())}#m(){if(this.hasListeners()){const e=this.#n,t=this.#c(this.#e,this.#l),n=this.#u(t,this.#s?.combine);e!==n&&Fr.batch(()=>{this.listeners.forEach(r=>{r(this.#e)})})}}};function tu({queries:e,...t},n){const r=Xl(n),i=Ql(),s=Zl(),o=I.useMemo(()=>e.map(h=>{const g=r.defaultQueryOptions(h);return g._optimisticResults=i?"isRestoring":"optimistic",g}),[e,r,i]);o.forEach(h=>{ec(h),tc(h,s)}),nc(s);const[a]=I.useState(()=>new eu(r,o,t)),[l,d,u]=a.getOptimisticResult(o,t.combine),c=!i&&t.subscribed!==!1;I.useSyncExternalStore(I.useCallback(h=>c?a.subscribe(Fr.batchCalls(h)):rc,[a,c]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),I.useEffect(()=>{a.setQueries(o,t)},[o,t,a]);const y=l.some((h,g)=>Wi(o[g],h))?l.flatMap((h,g)=>{const b=o[g];if(b){const S=new So(r,b);if(Wi(b,h))return Ki(b,S,s);ic(h,i)&&Ki(b,S,s)}return[]}):[];if(y.length>0)throw Promise.all(y);const f=l.find((h,g)=>{const b=o[g];return b&&sc({result:h,errorResetBoundary:s,throwOnError:b.throwOnError,query:r.getQueryCache().get(b.queryHash),suspense:b.suspense})});if(f?.error)throw f.error;return d(u())}function nu(e,t){return tu({...e,queries:e.queries.map(n=>({...n,suspense:!0,throwOnError:oc,enabled:!0,placeholderData:void 0}))},t)}const ru=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Fo=ct("chevron-down",ru);const iu=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],su=ct("chevron-up",iu);const ou=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],To=ct("circle-plus",ou);const au=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],lu=ct("circle",au);const cu=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],uu=ct("copy",cu);const du=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],fu=ct("search",du);const mu=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],pu=ct("trash-2",mu);const hu=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Io=ct("x",hu);function V1(e){const t=_e.c(9),{connectionId:n}=e;let r,i,s;t[0]!==n?(r=new URL(`/mcp/${n}`,window.location.origin),s=ac,i=wo.isMCPAuthenticated(r.href,null),t[0]=n,t[1]=r,t[2]=i,t[3]=s):(r=t[1],i=t[2],s=t[3]);let o;t[4]!==r?(o=()=>Fc({url:r.href,token:null}),t[4]=r,t[5]=o):o=t[5];let a;t[6]!==i||t[7]!==o?(a={queryKey:i,queryFn:o},t[6]=i,t[7]=o,t[8]=a):a=t[8];const{data:l}=s(a);return l}function gu(e){return e.startsWith("@")?e:`@${e}`}function yu(e){const t=e._meta?.[Mc]?.tools;if(!(!t||t.length===0))return t.map(n=>({name:n.name,inputSchema:n.inputSchema??void 0,outputSchema:n.outputSchema??void 0}))}function bu(e){const{org:t}=Yr(),n=Eo(),r=Dc(n),i=e?gu(e):"",s=i?{where:{appName:i},includeTools:!0}:{},a=nu({queries:r.map(d=>{const u=d.id,c=Rc(d.tools)||"",p=JSON.stringify(s);return{queryKey:wo.toolCall(u,c,p),queryFn:async()=>{if(!c||!i)return null;try{return(await kc(u,t.id,c,s))?.items?.[0]??null}catch{return null}},staleTime:300*1e3}})}).map(d=>d.data).find(d=>d!==null);return{bindingSchema:a?yu(a):void 0}}function H(e){return typeof e!="object"||e===null||typeof e.lastModified=="number"&&typeof File<"u"&&e instanceof File||typeof e.getMonth=="function"&&typeof Date<"u"&&e instanceof Date?!1:!Array.isArray(e)}function xu(e){return e.additionalItems===!0&&console.warn("additionalItems=true is currently not supported"),H(e.additionalItems)}function Hi(e){if(e==="")return;if(e===null)return null;if(/\.$/.test(e)||/\.0$/.test(e)||/\.\d*0$/.test(e))return e;const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)?t:e}const Ke="__additional_property",on="additionalProperties",qe="allOf",Q="anyOf",je="const",zn="default",Zr="dependencies",vu="enum",be="__errors",oe="$id",ei="if",ht="items",Su="_$junk_option_schema_id$_",Tn="$name",q="oneOf",Tr="patternProperties",te="properties",ir="readonly",No="required",Mn="submitButtonOptions",ae="$ref",Xt="$schema",Po="root",Do="_",wu=["discriminator","propertyName"],Yi="formContext",Ou="layoutGridLookupMap",ti="__rjsf_additionalProperties",$o="__rjsf_rootSchema",ju="ui:field",ni="ui:widget",nt="ui:options",Ir="ui:globalOptions",Au="ui:definitions",Cu="https://json-schema.org/draft/2019-09/schema",In="https://json-schema.org/draft/2020-12/schema";function U(e={},t={}){return e?Object.keys(e).filter(n=>n.indexOf("ui:")===0).reduce((n,r)=>{const i=e[r];return r===ni&&H(i)?(console.error("Setting options via ui:widget object is no longer supported, use ui:options instead"),n):r===nt&&H(i)?{...n,...i}:{...n,[r.substring(3)]:i}},{...t}):{...t}}function Ro(e,t={},n){if(!(e.additionalProperties||e.patternProperties))return!1;const{expandable:r=!0}=U(t);return r===!1?r:e.maxProperties!==void 0&&n?Object.keys(n).length<e.maxProperties:!0}var ko=typeof global=="object"&&global&&global.Object===Object&&global,Eu=typeof self=="object"&&self&&self.Object===Object&&self,ze=ko||Eu||Function("return this")(),Ae=ze.Symbol,Mo=Object.prototype,_u=Mo.hasOwnProperty,Fu=Mo.toString,Ht=Ae?Ae.toStringTag:void 0;function Tu(e){var t=_u.call(e,Ht),n=e[Ht];try{e[Ht]=void 0;var r=!0}catch{}var i=Fu.call(e);return r&&(t?e[Ht]=n:delete e[Ht]),i}var Iu=Object.prototype,Nu=Iu.toString;function Pu(e){return Nu.call(e)}var Du="[object Null]",$u="[object Undefined]",Ji=Ae?Ae.toStringTag:void 0;function He(e){return e==null?e===void 0?$u:Du:Ji&&Ji in Object(e)?Tu(e):Pu(e)}function Bo(e,t){return function(n){return e(t(n))}}var Wn=Bo(Object.getPrototypeOf,Object);function Ce(e){return e!=null&&typeof e=="object"}var Ru="[object Object]",ku=Function.prototype,Mu=Object.prototype,Uo=ku.toString,Bu=Mu.hasOwnProperty,Uu=Uo.call(Object);function ot(e){if(!Ce(e)||He(e)!=Ru)return!1;var t=Wn(e);if(t===null)return!0;var n=Bu.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Uo.call(n)==Uu}function Nr(e){const t={[be]:[],addError(n){this[be].push(n)}};if(Array.isArray(e))return e.reduce((n,r,i)=>({...n,[i]:Nr(r)}),t);if(ot(e)){const n=e;return Object.keys(n).reduce((r,i)=>({...r,[i]:Nr(n[i])}),t)}return t}function Lu(){this.__data__=[],this.size=0}function gn(e,t){return e===t||e!==e&&t!==t}function Kn(e,t){for(var n=e.length;n--;)if(gn(e[n][0],t))return n;return-1}var Vu=Array.prototype,zu=Vu.splice;function Wu(e){var t=this.__data__,n=Kn(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():zu.call(t,n,1),--this.size,!0}function Ku(e){var t=this.__data__,n=Kn(t,e);return n<0?void 0:t[n][1]}function qu(e){return Kn(this.__data__,e)>-1}function Gu(e,t){var n=this.__data__,r=Kn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Ye(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ye.prototype.clear=Lu;Ye.prototype.delete=Wu;Ye.prototype.get=Ku;Ye.prototype.has=qu;Ye.prototype.set=Gu;function Hu(){this.__data__=new Ye,this.size=0}function Yu(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Ju(e){return this.__data__.get(e)}function Xu(e){return this.__data__.has(e)}function ee(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Qu="[object AsyncFunction]",Zu="[object Function]",ed="[object GeneratorFunction]",td="[object Proxy]";function yn(e){if(!ee(e))return!1;var t=He(e);return t==Zu||t==ed||t==Qu||t==td}var sr=ze["__core-js_shared__"],Xi=(function(){var e=/[^.]+$/.exec(sr&&sr.keys&&sr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function nd(e){return!!Xi&&Xi in e}var rd=Function.prototype,id=rd.toString;function St(e){if(e!=null){try{return id.call(e)}catch{}try{return e+""}catch{}}return""}var sd=/[\\^$.*+?()[\]{}|]/g,od=/^\[object .+?Constructor\]$/,ad=Function.prototype,ld=Object.prototype,cd=ad.toString,ud=ld.hasOwnProperty,dd=RegExp("^"+cd.call(ud).replace(sd,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function fd(e){if(!ee(e)||nd(e))return!1;var t=yn(e)?dd:od;return t.test(St(e))}function md(e,t){return e?.[t]}function wt(e,t){var n=md(e,t);return fd(n)?n:void 0}var an=wt(ze,"Map"),ln=wt(Object,"create");function pd(){this.__data__=ln?ln(null):{},this.size=0}function hd(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var gd="__lodash_hash_undefined__",yd=Object.prototype,bd=yd.hasOwnProperty;function xd(e){var t=this.__data__;if(ln){var n=t[e];return n===gd?void 0:n}return bd.call(t,e)?t[e]:void 0}var vd=Object.prototype,Sd=vd.hasOwnProperty;function wd(e){var t=this.__data__;return ln?t[e]!==void 0:Sd.call(t,e)}var Od="__lodash_hash_undefined__";function jd(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ln&&t===void 0?Od:t,this}function gt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}gt.prototype.clear=pd;gt.prototype.delete=hd;gt.prototype.get=xd;gt.prototype.has=wd;gt.prototype.set=jd;function Ad(){this.size=0,this.__data__={hash:new gt,map:new(an||Ye),string:new gt}}function Cd(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function qn(e,t){var n=e.__data__;return Cd(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Ed(e){var t=qn(this,e).delete(e);return this.size-=t?1:0,t}function _d(e){return qn(this,e).get(e)}function Fd(e){return qn(this,e).has(e)}function Td(e,t){var n=qn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Je(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Je.prototype.clear=Ad;Je.prototype.delete=Ed;Je.prototype.get=_d;Je.prototype.has=Fd;Je.prototype.set=Td;var Id=200;function Nd(e,t){var n=this.__data__;if(n instanceof Ye){var r=n.__data__;if(!an||r.length<Id-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Je(r)}return n.set(e,t),this.size=n.size,this}function Ie(e){var t=this.__data__=new Ye(e);this.size=t.size}Ie.prototype.clear=Hu;Ie.prototype.delete=Yu;Ie.prototype.get=Ju;Ie.prototype.has=Xu;Ie.prototype.set=Nd;var Pd="__lodash_hash_undefined__";function Dd(e){return this.__data__.set(e,Pd),this}function $d(e){return this.__data__.has(e)}function yt(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Je;++t<n;)this.add(e[t])}yt.prototype.add=yt.prototype.push=Dd;yt.prototype.has=$d;function Rd(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function cn(e,t){return e.has(t)}var kd=1,Md=2;function Lo(e,t,n,r,i,s){var o=n&kd,a=e.length,l=t.length;if(a!=l&&!(o&&l>a))return!1;var d=s.get(e),u=s.get(t);if(d&&u)return d==t&&u==e;var c=-1,p=!0,y=n&Md?new yt:void 0;for(s.set(e,t),s.set(t,e);++c<a;){var f=e[c],h=t[c];if(r)var g=o?r(h,f,c,t,e,s):r(f,h,c,e,t,s);if(g!==void 0){if(g)continue;p=!1;break}if(y){if(!Rd(t,function(b,S){if(!cn(y,S)&&(f===b||i(f,b,n,r,s)))return y.push(S)})){p=!1;break}}else if(!(f===h||i(f,h,n,r,s))){p=!1;break}}return s.delete(e),s.delete(t),p}var Bn=ze.Uint8Array;function Bd(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function ri(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Ud=1,Ld=2,Vd="[object Boolean]",zd="[object Date]",Wd="[object Error]",Kd="[object Map]",qd="[object Number]",Gd="[object RegExp]",Hd="[object Set]",Yd="[object String]",Jd="[object Symbol]",Xd="[object ArrayBuffer]",Qd="[object DataView]",Qi=Ae?Ae.prototype:void 0,or=Qi?Qi.valueOf:void 0;function Zd(e,t,n,r,i,s,o){switch(n){case Qd:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Xd:return!(e.byteLength!=t.byteLength||!s(new Bn(e),new Bn(t)));case Vd:case zd:case qd:return gn(+e,+t);case Wd:return e.name==t.name&&e.message==t.message;case Gd:case Yd:return e==t+"";case Kd:var a=Bd;case Hd:var l=r&Ud;if(a||(a=ri),e.size!=t.size&&!l)return!1;var d=o.get(e);if(d)return d==t;r|=Ld,o.set(e,t);var u=Lo(a(e),a(t),r,i,s,o);return o.delete(e),u;case Jd:if(or)return or.call(e)==or.call(t)}return!1}function ii(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var ye=Array.isArray;function Vo(e,t,n){var r=t(e);return ye(e)?r:ii(r,n(e))}function ef(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var o=e[n];t(o,n,e)&&(s[i++]=o)}return s}function zo(){return[]}var tf=Object.prototype,nf=tf.propertyIsEnumerable,Zi=Object.getOwnPropertySymbols,si=Zi?function(e){return e==null?[]:(e=Object(e),ef(Zi(e),function(t){return nf.call(e,t)}))}:zo;function Wo(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var rf="[object Arguments]";function es(e){return Ce(e)&&He(e)==rf}var Ko=Object.prototype,sf=Ko.hasOwnProperty,of=Ko.propertyIsEnumerable,$t=es((function(){return arguments})())?es:function(e){return Ce(e)&&sf.call(e,"callee")&&!of.call(e,"callee")};function af(){return!1}var qo=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ts=qo&&typeof module=="object"&&module&&!module.nodeType&&module,lf=ts&&ts.exports===qo,ns=lf?ze.Buffer:void 0,cf=ns?ns.isBuffer:void 0,bt=cf||af,uf=9007199254740991,df=/^(?:0|[1-9]\d*)$/;function Gn(e,t){var n=typeof e;return t=t??uf,!!t&&(n=="number"||n!="symbol"&&df.test(e))&&e>-1&&e%1==0&&e<t}var ff=9007199254740991;function oi(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ff}var mf="[object Arguments]",pf="[object Array]",hf="[object Boolean]",gf="[object Date]",yf="[object Error]",bf="[object Function]",xf="[object Map]",vf="[object Number]",Sf="[object Object]",wf="[object RegExp]",Of="[object Set]",jf="[object String]",Af="[object WeakMap]",Cf="[object ArrayBuffer]",Ef="[object DataView]",_f="[object Float32Array]",Ff="[object Float64Array]",Tf="[object Int8Array]",If="[object Int16Array]",Nf="[object Int32Array]",Pf="[object Uint8Array]",Df="[object Uint8ClampedArray]",$f="[object Uint16Array]",Rf="[object Uint32Array]",fe={};fe[_f]=fe[Ff]=fe[Tf]=fe[If]=fe[Nf]=fe[Pf]=fe[Df]=fe[$f]=fe[Rf]=!0;fe[mf]=fe[pf]=fe[Cf]=fe[hf]=fe[Ef]=fe[gf]=fe[yf]=fe[bf]=fe[xf]=fe[vf]=fe[Sf]=fe[wf]=fe[Of]=fe[jf]=fe[Af]=!1;function kf(e){return Ce(e)&&oi(e.length)&&!!fe[He(e)]}function ai(e){return function(t){return e(t)}}var Go=typeof exports=="object"&&exports&&!exports.nodeType&&exports,en=Go&&typeof module=="object"&&module&&!module.nodeType&&module,Mf=en&&en.exports===Go,ar=Mf&&ko.process,Rt=(function(){try{var e=en&&en.require&&en.require("util").types;return e||ar&&ar.binding&&ar.binding("util")}catch{}})(),rs=Rt&&Rt.isTypedArray,bn=rs?ai(rs):kf,Bf=Object.prototype,Uf=Bf.hasOwnProperty;function Ho(e,t){var n=ye(e),r=!n&&$t(e),i=!n&&!r&&bt(e),s=!n&&!r&&!i&&bn(e),o=n||r||i||s,a=o?Wo(e.length,String):[],l=a.length;for(var d in e)(t||Uf.call(e,d))&&!(o&&(d=="length"||i&&(d=="offset"||d=="parent")||s&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||Gn(d,l)))&&a.push(d);return a}var Lf=Object.prototype;function Hn(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Lf;return e===n}var Vf=Bo(Object.keys,Object),zf=Object.prototype,Wf=zf.hasOwnProperty;function Yo(e){if(!Hn(e))return Vf(e);var t=[];for(var n in Object(e))Wf.call(e,n)&&n!="constructor"&&t.push(n);return t}function Ot(e){return e!=null&&oi(e.length)&&!yn(e)}function Te(e){return Ot(e)?Ho(e):Yo(e)}function Pr(e){return Vo(e,Te,si)}var Kf=1,qf=Object.prototype,Gf=qf.hasOwnProperty;function Hf(e,t,n,r,i,s){var o=n&Kf,a=Pr(e),l=a.length,d=Pr(t),u=d.length;if(l!=u&&!o)return!1;for(var c=l;c--;){var p=a[c];if(!(o?p in t:Gf.call(t,p)))return!1}var y=s.get(e),f=s.get(t);if(y&&f)return y==t&&f==e;var h=!0;s.set(e,t),s.set(t,e);for(var g=o;++c<l;){p=a[c];var b=e[p],S=t[p];if(r)var O=o?r(S,b,p,t,e,s):r(b,S,p,e,t,s);if(!(O===void 0?b===S||i(b,S,n,r,s):O)){h=!1;break}g||(g=p=="constructor")}if(h&&!g){var v=e.constructor,x=t.constructor;v!=x&&"constructor"in e&&"constructor"in t&&!(typeof v=="function"&&v instanceof v&&typeof x=="function"&&x instanceof x)&&(h=!1)}return s.delete(e),s.delete(t),h}var Dr=wt(ze,"DataView"),$r=wt(ze,"Promise"),Pt=wt(ze,"Set"),Rr=wt(ze,"WeakMap"),is="[object Map]",Yf="[object Object]",ss="[object Promise]",os="[object Set]",as="[object WeakMap]",ls="[object DataView]",Jf=St(Dr),Xf=St(an),Qf=St($r),Zf=St(Pt),em=St(Rr),Oe=He;(Dr&&Oe(new Dr(new ArrayBuffer(1)))!=ls||an&&Oe(new an)!=is||$r&&Oe($r.resolve())!=ss||Pt&&Oe(new Pt)!=os||Rr&&Oe(new Rr)!=as)&&(Oe=function(e){var t=He(e),n=t==Yf?e.constructor:void 0,r=n?St(n):"";if(r)switch(r){case Jf:return ls;case Xf:return is;case Qf:return ss;case Zf:return os;case em:return as}return t});var tm=1,cs="[object Arguments]",us="[object Array]",Cn="[object Object]",nm=Object.prototype,ds=nm.hasOwnProperty;function rm(e,t,n,r,i,s){var o=ye(e),a=ye(t),l=o?us:Oe(e),d=a?us:Oe(t);l=l==cs?Cn:l,d=d==cs?Cn:d;var u=l==Cn,c=d==Cn,p=l==d;if(p&&bt(e)){if(!bt(t))return!1;o=!0,u=!1}if(p&&!u)return s||(s=new Ie),o||bn(e)?Lo(e,t,n,r,i,s):Zd(e,t,l,n,r,i,s);if(!(n&tm)){var y=u&&ds.call(e,"__wrapped__"),f=c&&ds.call(t,"__wrapped__");if(y||f){var h=y?e.value():e,g=f?t.value():t;return s||(s=new Ie),i(h,g,n,r,s)}}return p?(s||(s=new Ie),Hf(e,t,n,r,i,s)):!1}function xn(e,t,n,r,i){return e===t?!0:e==null||t==null||!Ce(e)&&!Ce(t)?e!==e&&t!==t:rm(e,t,n,r,xn,i)}function im(e,t,n){n=typeof n=="function"?n:void 0;var r=n?n(e,t):void 0;return r===void 0?xn(e,t,void 0,n):!!r}function ue(e,t){return im(e,t,(n,r)=>{if(typeof n=="function"&&typeof r=="function")return!0})}var sm="[object Symbol]";function vn(e){return typeof e=="symbol"||Ce(e)&&He(e)==sm}var om=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,am=/^\w*$/;function li(e,t){if(ye(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||vn(e)?!0:am.test(e)||!om.test(e)||t!=null&&e in Object(t)}var lm="Expected a function";function ci(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(lm);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var o=e.apply(this,r);return n.cache=s.set(i,o)||s,o};return n.cache=new(ci.Cache||Je),n}ci.Cache=Je;var cm=500;function um(e){var t=ci(e,function(r){return n.size===cm&&n.clear(),r}),n=t.cache;return t}var dm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fm=/\\(\\)?/g,Jo=um(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(dm,function(n,r,i,s){t.push(i?s.replace(fm,"$1"):r||n)}),t});function Ut(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var fs=Ae?Ae.prototype:void 0,ms=fs?fs.toString:void 0;function Xo(e){if(typeof e=="string")return e;if(ye(e))return Ut(e,Xo)+"";if(vn(e))return ms?ms.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function ui(e){return e==null?"":Xo(e)}function Lt(e,t){return ye(e)?e:li(e,t)?[e]:Jo(ui(e))}function jt(e){if(typeof e=="string"||vn(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Yn(e,t){t=Lt(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[jt(t[n++])];return n&&n==r?e:void 0}function N(e,t,n){var r=e==null?void 0:Yn(e,t);return r===void 0?n:r}var mm=Object.prototype,pm=mm.hasOwnProperty;function hm(e,t){return e!=null&&pm.call(e,t)}function Qo(e,t,n){t=Lt(t,e);for(var r=-1,i=t.length,s=!1;++r<i;){var o=jt(t[r]);if(!(s=e!=null&&n(e,o)))break;e=e[o]}return s||++r!=i?s:(i=e==null?0:e.length,!!i&&oi(i)&&Gn(o,i)&&(ye(e)||$t(e)))}function X(e,t){return e!=null&&Qo(e,t,hm)}function rt(e,t){return xn(e,t)}var Un=(function(){try{var e=wt(Object,"defineProperty");return e({},"",{}),e}catch{}})();function di(e,t,n){t=="__proto__"&&Un?Un(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var gm=Object.prototype,ym=gm.hasOwnProperty;function fi(e,t,n){var r=e[t];(!(ym.call(e,t)&&gn(r,n))||n===void 0&&!(t in e))&&di(e,t,n)}function mi(e,t,n,r){if(!ee(e))return e;t=Lt(t,e);for(var i=-1,s=t.length,o=s-1,a=e;a!=null&&++i<s;){var l=jt(t[i]),d=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(i!=o){var u=a[l];d=r?r(u,l,a):void 0,d===void 0&&(d=ee(u)?u:Gn(t[i+1])?[]:{})}fi(a,l,d),a=a[l]}return e}function se(e,t,n){return e==null?e:mi(e,t,n)}function Jn(e){return e}function Zo(e){return typeof e=="function"?e:Jn}var bm=/\s/;function xm(e){for(var t=e.length;t--&&bm.test(e.charAt(t)););return t}var vm=/^\s+/;function Sm(e){return e&&e.slice(0,xm(e)+1).replace(vm,"")}var ps=NaN,wm=/^[-+]0x[0-9a-f]+$/i,Om=/^0b[01]+$/i,jm=/^0o[0-7]+$/i,Am=parseInt;function Cm(e){if(typeof e=="number")return e;if(vn(e))return ps;if(ee(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ee(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Sm(e);var n=Om.test(e);return n||jm.test(e)?Am(e.slice(2),n?2:8):wm.test(e)?ps:+e}var hs=1/0,Em=17976931348623157e292;function _m(e){if(!e)return e===0?e:0;if(e=Cm(e),e===hs||e===-hs){var t=e<0?-1:1;return t*Em}return e===e?e:0}function ea(e){var t=_m(e),n=t%1;return t===t?n?t-n:t:0}var Fm=9007199254740991,lr=4294967295,Tm=Math.min;function ta(e,t){if(e=ea(e),e<1||e>Fm)return[];var n=lr,r=Tm(e,lr);t=Zo(t),e-=lr;for(var i=Wo(r,t);++n<e;)t(n);return i}function pi(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var gs=Object.create,na=(function(){function e(){}return function(t){if(!ee(t))return{};if(gs)return gs(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}})();function Im(e){return function(t,n,r){for(var i=-1,s=Object(t),o=r(t),a=o.length;a--;){var l=o[++i];if(n(s[l],l,s)===!1)break}return t}}var ra=Im();function ia(e,t){return e&&ra(e,t,Te)}var Nm=1,Pm=2;function Dm(e,t,n,r){var i=n.length,s=i;if(e==null)return!s;for(e=Object(e);i--;){var o=n[i];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=n[i];var a=o[0],l=e[a],d=o[1];if(o[2]){if(l===void 0&&!(a in e))return!1}else{var u=new Ie,c;if(!(c===void 0?xn(d,l,Nm|Pm,r,u):c))return!1}}return!0}function sa(e){return e===e&&!ee(e)}function $m(e){for(var t=Te(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,sa(i)]}return t}function oa(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Rm(e){var t=$m(e);return t.length==1&&t[0][2]?oa(t[0][0],t[0][1]):function(n){return n===e||Dm(n,e,t)}}function km(e,t){return e!=null&&t in Object(e)}function aa(e,t){return e!=null&&Qo(e,t,km)}var Mm=1,Bm=2;function Um(e,t){return li(e)&&sa(t)?oa(jt(e),t):function(n){var r=N(n,e);return r===void 0&&r===t?aa(n,e):xn(t,r,Mm|Bm)}}function Lm(e){return function(t){return t?.[e]}}function Vm(e){return function(t){return Yn(t,e)}}function zm(e){return li(e)?Lm(jt(e)):Vm(e)}function hi(e){return typeof e=="function"?e:e==null?Jn:typeof e=="object"?ye(e)?Um(e[0],e[1]):Rm(e):zm(e)}function Wm(e,t,n){var r=ye(e),i=r||bt(e)||bn(e);if(t=hi(t),n==null){var s=e&&e.constructor;i?n=r?new s:[]:ee(e)?n=yn(s)?na(Wn(e)):{}:n={}}return(i?pi:ia)(e,function(o,a,l){return t(n,o,a,l)}),n}function kr(e,t,n){(n!==void 0&&!gn(e[t],n)||n===void 0&&!(t in e))&&di(e,t,n)}var la=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ys=la&&typeof module=="object"&&module&&!module.nodeType&&module,Km=ys&&ys.exports===la,bs=Km?ze.Buffer:void 0,xs=bs?bs.allocUnsafe:void 0;function ca(e,t){if(t)return e.slice();var n=e.length,r=xs?xs(n):new e.constructor(n);return e.copy(r),r}function gi(e){var t=new e.constructor(e.byteLength);return new Bn(t).set(new Bn(e)),t}function ua(e,t){var n=t?gi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function yi(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function da(e){return typeof e.constructor=="function"&&!Hn(e)?na(Wn(e)):{}}function un(e){return Ce(e)&&Ot(e)}function Mr(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Vt(e,t,n,r){var i=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var a=t[s],l=void 0;l===void 0&&(l=e[a]),i?di(n,a,l):fi(n,a,l)}return n}function qm(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Gm=Object.prototype,Hm=Gm.hasOwnProperty;function Ym(e){if(!ee(e))return qm(e);var t=Hn(e),n=[];for(var r in e)r=="constructor"&&(t||!Hm.call(e,r))||n.push(r);return n}function Sn(e){return Ot(e)?Ho(e,!0):Ym(e)}function Jm(e){return Vt(e,Sn(e))}function Xm(e,t,n,r,i,s,o){var a=Mr(e,n),l=Mr(t,n),d=o.get(l);if(d){kr(e,n,d);return}var u=s?s(a,l,n+"",e,t,o):void 0,c=u===void 0;if(c){var p=ye(l),y=!p&&bt(l),f=!p&&!y&&bn(l);u=l,p||y||f?ye(a)?u=a:un(a)?u=yi(a):y?(c=!1,u=ca(l,!0)):f?(c=!1,u=ua(l,!0)):u=[]:ot(l)||$t(l)?(u=a,$t(a)?u=Jm(a):(!ee(a)||yn(a))&&(u=da(l))):c=!1}c&&(o.set(l,u),i(u,l,r,s,o),o.delete(l)),kr(e,n,u)}function fa(e,t,n,r,i){e!==t&&ra(t,function(s,o){if(i||(i=new Ie),ee(s))Xm(e,t,o,n,fa,r,i);else{var a=r?r(Mr(e,o),s,o+"",e,t,i):void 0;a===void 0&&(a=s),kr(e,o,a)}},Sn)}function Qm(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var vs=Math.max;function ma(e,t,n){return t=vs(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=vs(r.length-t,0),o=Array(s);++i<s;)o[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(o),Qm(e,this,a)}}function Zm(e){return function(){return e}}var ep=Un?function(e,t){return Un(e,"toString",{configurable:!0,enumerable:!1,value:Zm(t),writable:!0})}:Jn,tp=800,np=16,rp=Date.now;function ip(e){var t=0,n=0;return function(){var r=rp(),i=np-(r-n);if(n=r,i>0){if(++t>=tp)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var pa=ip(ep);function Xn(e,t){return pa(ma(e,t,Jn),e+"")}function sp(e,t,n){if(!ee(n))return!1;var r=typeof t;return(r=="number"?Ot(n)&&Gn(t,n.length):r=="string"&&t in n)?gn(n[t],e):!1}function op(e){return Xn(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,o&&sp(n[0],n[1],o)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,s)}return t})}var ap=op(function(e,t,n){fa(e,t,n)}),Ss=Ae?Ae.isConcatSpreadable:void 0;function lp(e){return ye(e)||$t(e)||!!(Ss&&e&&e[Ss])}function wn(e,t,n,r,i){var s=-1,o=e.length;for(n||(n=lp),i||(i=[]);++s<o;){var a=e[s];t>0&&n(a)?t>1?wn(a,t-1,n,r,i):ii(i,a):r||(i[i.length]=a)}return i}var cp=1/0;function up(e){var t=e==null?0:e.length;return t?wn(e,cp):[]}function dp(e,t,n,r){for(var i=e.length,s=n+-1;++s<i;)if(t(e[s],s,e))return s;return-1}function fp(e){return e!==e}function mp(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function ha(e,t,n){return t===t?mp(e,t,n):dp(e,fp,n)}function bi(e,t){var n=e==null?0:e.length;return!!n&&ha(e,t,0)>-1}function Nn(){}var pp=1/0,hp=Pt&&1/ri(new Pt([,-0]))[1]==pp?function(e){return new Pt(e)}:Nn,gp=200;function ga(e,t,n){var r=-1,i=bi,s=e.length,o=!0,a=[],l=a;if(s>=gp){var d=hp(e);if(d)return ri(d);o=!1,i=cn,l=new yt}else l=a;e:for(;++r<s;){var u=e[r],c=u;if(u=u!==0?u:0,o&&c===c){for(var p=l.length;p--;)if(l[p]===c)continue e;a.push(u)}else i(l,c,n)||(l!==a&&l.push(c),a.push(u))}return a}function ya(e){return e&&e.length?ga(e):[]}var yp="[object Map]",bp="[object Set]",xp=Object.prototype,vp=xp.hasOwnProperty;function me(e){if(e==null)return!0;if(Ot(e)&&(ye(e)||typeof e=="string"||typeof e.splice=="function"||bt(e)||bn(e)||$t(e)))return!e.length;var t=Oe(e);if(t==yp||t==bp)return!e.size;if(Hn(e))return!Yo(e).length;for(var n in e)if(vp.call(e,n))return!1;return!0}const Sp=Object.prototype;function Qt(e){for(const t in e)if(Sp.hasOwnProperty.call(e,t))return!1;return!0}const wp=["array","boolean","integer","null","number","object","string"];new Set(wp);const Op=["$defs","definitions","properties","patternProperties","dependencies"];new Set(Op);const jp=["items","allOf","oneOf","anyOf"];new Set(jp);const Ap=["items","additionalItems","additionalProperties","propertyNames","contains","if","then","else","not"];new Set(Ap);function Pn(e){return typeof e=="object"}function $e(e){return Pn(e)?Qt(e):e===!0}function Nt(e,t){return e<t?-1:e>t?1:0}function cr(e,t){const n=e.length;if(n===0)return t;let r=t.length;if(r===0)return e;if(n<r){const s=e;e=t,t=s,r=n}const i=new Set(e);for(let s=0;s<r;s++)i.add(t[s]);return Array.from(i)}function Cp(e,t){const n=[];if(e.length===0||t.length===0)return n;if(e.length>t.length){const i=e;e=t,t=i}const r=new Set(t);for(let i=0;i<e.length&&r.size>0;i++){const s=e[i];r.delete(s)&&n.push(s)}return n}function ws(e){return e.length===0}function ur(e){return(t,n)=>{const r=t.length-n.length;if(r!==0)return r;for(let i=0;i<t.length;i++)if(t[i]!==n[i]){const s=e(t[i],n[i]);if(s!==0)return s}return 0}}function ba(e,{threshold:t=12}={}){return n=>{const r=n.length;if(r===0)return n;if(r<=t){const o=[];let a=0;e:for(let l=0;l<r;l++){const d=n[l];for(let u=0;u<a;u++)if(e(d,o[u])===0)continue e;a=o.push(d)}return o}const i=n.slice().sort(e);let s=0;for(let o=1;o<r;o++)e(i[s],i[o])!==0&&++s!==o&&(i[s]=i[o]);return i.length=s+1,i}}function Ep(e){return(t,n)=>{const r=[];let i=t.length,s=n.length;if(i===0||s===0)return r;if(i>s){const u=t;t=n,n=u;const c=i;i=s,s=c}const o=[...t].sort(e),a=[...n].sort(e);let l=0,d=0;for(;l<i&&d<s;){const u=e(o[l],a[d]);u===0?((r.length===0||e(r[r.length-1],o[l])!==0)&&r.push(o[l]),l++,d++):u<0?l++:d++}return r}}function _p(e,t){return n=>{if(e.has(n))return e.get(n);const r=t(n);return e.set(n,r),r}}const Os=_p,xa=()=>0,Fp=e=>e===void 0,Tp=e=>typeof e!="object",js={boolean:0,number:1,string:2};function Ip(e,t){const n=typeof e,r=typeof t;return n===r?Nt(e,t):js[n]-js[r]}function Np(e,t){const n=e.length;if(n===0)return t;const r=t.length;if(r===0)return e;if(r>n){const o=e;e=t,t=o}const i=new Set(e),s=t.length;for(let o=0;o<s;o++){const a=t[o];i.has(a)||e.push(a)}return e}function Qn(e,t,n=xa){return(r,i)=>e(r)?e(i)?n(r,i):-1:e(i)?1:t(r,i)}function Tt(e){return Qn(Fp,e)}function Ze(e,t){return Qn(n=>n===void 0||e(n),t)}function dr(e,t){return Qn(Array.isArray,e,t)}const pe=Tt(Nt),fr=Ze(e=>e===0,(e,t)=>e-t);function Pp({deduplicationCache:e=new WeakMap,sortedKeysCache:t=new WeakMap}={}){const n=Os(t,h=>Object.keys(h).sort());function r(h){return(g,b)=>{const S=n(g),O=n(b),v=Math.min(S.length,O.length);for(let x=0;x<v;x++){const w=Nt(S[x],O[x]);if(w!==0)return w}if(S.length!==O.length)return S.length-O.length;for(let x=0;x<v;x++){const w=S[x],j=h(g[w],b[w]);if(j!==0)return j}return 0}}function i(h){const g=ur(h),b=Os(e,ba(h,{threshold:0}));return(S,O)=>g(b(S),b(O))}const s=i(Nt);function o(h,g){if(Pn(h)){if(Pn(g)){const b=Object.keys(h),S=Object.keys(g),O=Np(b,S),v=O.length;for(let x=0;x<v;x++){const w=O[x];if(h[w]===g[w])continue;const A=(f[w]??a)(h[w],g[w]);if(A!==0)return A}return 0}return g===!0&&Qt(h)?0:1}return Pn(g)?h===!0&&Qt(g)?0:-1:Nt(h,g)}const a=Tt(d),l=Qn(Tp,dr(r(a),ur(d)),Ip);function d(h,g){return h===null?-1:g===null?1:l(h,g)}const u=Tt(o),c=Ze(Qt,r(u)),p=Tt(i(o)),y=Ze($e,o),f={$id:pe,$comment:pe,$defs:c,$ref:pe,$schema:pe,const:a,contains:u,contentEncoding:pe,contentMediaType:pe,default:a,definitions:c,description:pe,else:u,examples:a,exclusiveMaximum:pe,exclusiveMinimum:pe,format:pe,if:u,maximum:pe,maxItems:pe,maxLength:pe,maxProperties:pe,minimum:pe,multipleOf:pe,not:u,pattern:pe,propertyNames:u,readOnly:pe,then:u,title:pe,writeOnly:pe,uniqueItems:Ze(h=>h===!1,xa),minLength:fr,minItems:fr,minProperties:fr,required:Ze(ws,s),enum:Ze(ws,i(d)),type:Tt((h,g)=>{const b=Array.isArray(h),S=Array.isArray(g);return!b&&!S?Nt(h,g):s(b?h:[h],S?g:[g])}),items:Ze(h=>!Array.isArray(h)&&$e(h),dr(o,ur(o))),anyOf:p,allOf:p,oneOf:p,properties:c,patternProperties:c,additionalProperties:y,additionalItems:y,dependencies:Ze(Qt,r(Tt(dr(o,s))))};return{compareSchemaValues:d,compareSchemaDefinitions:o}}function As(e){return e}const va=(e,t)=>e?va(t%e,e):t,Dp=(e,t)=>Math.abs(e*t)/va(e,t);function $p(e,t){return e===t?e:`^(?=.*(?:${e}))(?=.*(?:${t})).*$`}function*mr(e,t,n){const r=e.length,i=t.length;if(r>0&&i>0)for(let s=0;s<r;s++){const o=e[s];for(let a=0;a<i;a++)yield n(o,t[a])}}function pr(e,t){return e||t}function Cs(e){return(t,n)=>{const r={...t},i=Object.keys(n),s=i.length;for(let o=0;o<s;o++){const a=i[o];r[a]=t[a]===void 0?n[a]:e(t[a],n[a])}return r}}function Rp(e){const t=new Map;for(const n of e)for(const r of n[0])t.set(r,n[1]);return t}function dt(e,t,n){n===void 0||$e(n)?delete e[t]:e[t]=n}const kp=["properties","patternProperties","additionalProperties"];function Es(e){const t=Object.keys(e),n=t.length,r=[];for(let i=0;i<n;i++){const s=t[i];r.push({regExp:new RegExp(s),schema:e[s]})}return[r,t]}const _s=[[],[]];function Fs(e,t,n){const r=n.length;for(let i=0;i<r;i++){const s=n[i];if(!s.regExp.test(t))continue;const o=s.schema;if(o===!1)return!0;e.push(o)}return!1}const Mp=["items","additionalItems"],Bp=["if","then","else"];function Ts(e,t){return t.if!==void 0&&(e.if=t.if),t.then!==void 0&&(e.then=t.then),t.else!==void 0&&(e.else=t.else),e}function hr(e,t){if(e===t)return e;switch(e){case"number":if(t==="integer")return"integer";case"integer":if(t==="number")return"integer";default:return}}function ft(e,t,n){return[e,t,n]}function Up(e){const t=new Map;for(const[n,r,i]of e){const s=o=>{if(!i(o))throw new Error(`Schema keys '${n}' and '${r}' are conflicting (${n}: ${JSON.stringify(o[n])}, ${r}: ${JSON.stringify(o[r])})`)};for(const o of[[n,r],[r,n]]){let a=t.get(o[0]);a===void 0&&(a=[],t.set(o[0],a)),a.push({oppositeKey:o[1],check:s})}}return t}const Lp=[ft("minimum","maximum",e=>e.maximum>=e.minimum),ft("exclusiveMinimum","maximum",e=>e.maximum>e.exclusiveMinimum),ft("minimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.minimum),ft("exclusiveMinimum","exclusiveMaximum",e=>e.exclusiveMaximum>e.exclusiveMinimum),ft("minLength","maxLength",e=>e.maxLength>=e.minLength),ft("minItems","maxItems",e=>e.maxItems>=e.minItems),ft("minProperties","maxProperties",e=>e.maxProperties>=e.minProperties)];function Vp({mergePatterns:e=$p,isSubRegExp:t=Object.is,intersectJson:n=Cp,deduplicateJsonSchemaDef:r=As,defaultMerger:i=As,assigners:s=[],checks:o=Lp,mergers:a}={}){function l(v){const x=v.length;let w=v[0];for(let j=1;j<x;j++){const A=b(w,v[j]);if(A===!1)return!1;$e(A)||(w=A)}return w}function d(v,x,w,j,A,E,C){if(v.length=0,w===!1)return!1;if(v.push(w),A!==void 0){if(A===!1)return!1;v.push(A)}if(Fs(v,x,E))return!1;const _=v.length<2;if(C===!1){if(_)return;if(Fs(v,x,j))return!1}else _&&C!==void 0&&v.push(C);return v.length===1?v[0]:l(v)}function u(v,x,w,j,A,E){const C=w.length;if(C>0&&A!==!1)if(E)Object.assign(v,x);else for(let F=0;F<C;F++){const _=w[F];j.has(_)||(v[_]=b(x[_],A))}return v}const c=(v,{properties:x={},patternProperties:w,additionalProperties:j=!0},{properties:A={},patternProperties:E,additionalProperties:C=!0})=>{const F=$e(j),_=$e(C);if(F&&_)return dt(v,"properties",S(x,A)),dt(v,"patternProperties",w&&E?S(w,E):w??E),delete v.additionalProperties,v;const T=b(j,C);dt(v,"additionalProperties",T);const $={},D=Object.keys(x),P=D.length,[k,M]=w?Es(w):_s,[B,W]=E?Es(E):_s,R=[],L=new Set,Z=_?void 0:C;for(let J=0;J<P;J++){const ie=D[J];L.add(ie);const de=d(R,ie,x[ie],k,A[ie],B,Z);de!==void 0&&($[ie]=de)}const z=Object.keys(A),ne=z.length,le=F?void 0:j;for(let J=0;J<ne;J++){const ie=z[J];if(L.has(ie))continue;const de=d(R,ie,A[ie],B,void 0,k,le);de!==void 0&&($[ie]=de)}dt(v,"properties",$);let re={};const K=new Set;if(M.length>0&&W.length>0){const J=mr(M,W,(ie,de)=>{t(ie,de)&&K.add(ie),t(de,ie)&&K.add(de),re[e(ie,de)]=b(w[ie],E[de])});for(;!J.next().done;);}return re=u(re,w,M,K,C,_),re=u(re,E,W,K,j,F),dt(v,"patternProperties",re),v},p=(v,{items:x=[],additionalItems:w},{items:j=[],additionalItems:A})=>{const E=Array.isArray(x),C=Array.isArray(j),F=[];if(v.items=F,E&&C){const[_,T,$]=x.length<j.length?[x.length,w,j]:[j.length,A,x];let D=0;for(;D<_;D++)F.push(b(x[D],j[D]));if(T===!1)v.additionalItems=!1;else{const P=T===void 0||$e(T);for(;D<$.length;D++)F.push(P?$[D]:b($[D],T));dt(v,"additionalItems",w!==void 0&&A!==void 0?b(w,A):w??A)}}else if(E||C){const[_,T,$]=E?[x,j,w]:[j,x,A];dt(v,"additionalItems",$&&b($,T));for(let D=0;D<_.length;D++)F.push(b(_[D],T))}else delete v.additionalItems,v.items=b(x,j);return v},y=(v,x,w)=>{Ts(v,x);const j=Ts({},w);return v.allOf===void 0?v.allOf=[j]:v.allOf=v.allOf.concat(j),v};function f(v,x){return r(Array.from(mr(v,x,b)))}const h=Rp([[kp,c],[Mp,p],[Bp,y],...s]),g=Up(o);function b(v,x){if(v===!1||x===!1)return!1;if($e(v))return $e(x)?!0:x;if($e(x))return v;let w={...v};const j=new Set,A=new Set,E=Object.keys(x),C=E.length;for(let F=0;F<C;F++){const _=E[F],T=x[_];if(T===void 0)continue;const $=g.get(_);if($!==void 0){const M=$.length;for(let B=0;B<M;B++){const W=$[B];v[W.oppositeKey]!==void 0&&A.add(W.check)}}const D=v[_];if(D===void 0){w[_]=T;continue}const P=h.get(_);if(P){j.add(P);continue}const k=O[_]??i;w[_]=k(D,T)}for(const F of j)w=F(w,v,x);for(const F of A)F(w);return w}const S=Cs(b),O={$id:i,$ref:i,$schema:i,$comment:i,$defs:S,definitions:S,type:(v,x)=>{if(v===x)return v;const w=Array.isArray(v),j=Array.isArray(x);if(!w&&!j){const A=hr(v,x);if(A!==void 0)return A}else if(w||j){const A=new Set;if(w&&j)for(const C of mr(v,x,hr))C!==void 0&&A.add(C);else{const C=w?v:x,F=w?x:v,_=C.length;for(let T=0;T<_;T++){const $=hr(F,C[T]);$!==void 0&&A.add($)}}const E=A.size;if(E===1)return A.values().next().value;if(E>1)return Array.from(A)}throw new Error(`It is not possible to create an intersection of the following incompatible types: ${v.toString()}, ${x.toString()}`)},default:i,description:i,title:i,const:i,format:i,contentEncoding:i,contentMediaType:i,not:(v,x)=>{const w=r([v,x]);return w.length===1?w[0]:{anyOf:w}},pattern:e,readOnly:pr,writeOnly:pr,enum:(v,x)=>{const w=n(v,x);if(w.length===0)throw new Error(`Intersection of the following enums is empty: "${JSON.stringify(v)}", "${JSON.stringify(x)}"`);return w},anyOf:f,oneOf:f,allOf:(v,x)=>r(v.concat(x)),propertyNames:b,contains:b,dependencies:Cs((v,x)=>Array.isArray(v)?Array.isArray(x)?cr(v,x):b(x,{required:v}):Array.isArray(x)?b(v,{required:x}):b(v,x)),examples:(v,x)=>{if(!Array.isArray(v)||!Array.isArray(x))throw new Error(`Value of the 'examples' field should be an array, but got "${JSON.stringify(v)}" and "${JSON.stringify(x)}"`);return cr(v,x)},multipleOf:(v,x)=>{let w=1;for(;!Number.isInteger(v)||!Number.isInteger(x);)w*=10,v*=10,x*=10;return Dp(v,x)/w},exclusiveMaximum:Math.min,maximum:Math.min,maxItems:Math.min,maxLength:Math.min,maxProperties:Math.min,exclusiveMinimum:Math.max,minimum:Math.max,minItems:Math.max,minLength:Math.max,minProperties:Math.max,uniqueItems:pr,required:cr,...a};return{mergeSchemaDefinitions:b,mergeArrayOfSchemaDefinitions:l}}function zp(e){const t=[],n=[e];for(;n.length>0;){const r=n.pop();if(typeof r=="boolean"||r.allOf===void 0){t.push(r);continue}const{allOf:i,...s}=r;t.push(s);for(let o=i.length-1;o>=0;o--)n.push(i[o])}return t}function Wp(e){return t=>e(zp(t))}var Yt={},Is;function Kp(){if(Is)return Yt;Is=1;var e=/~/,t=/~[01]/g;function n(d){switch(d){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+d)}function r(d){return e.test(d)?d.replace(t,n):d}function i(d,u,c){for(var p,y,f=1,h=u.length;f<h;){if(u[f]==="constructor"||u[f]==="prototype"||u[f]==="__proto__")return d;if(p=r(u[f++]),y=h>f,typeof d[p]>"u"&&(Array.isArray(d)&&p==="-"&&(p=d.length),y&&(u[f]!==""&&u[f]<1/0||u[f]==="-"?d[p]=[]:d[p]={})),!y)break;d=d[p]}var g=d[p];return c===void 0?delete d[p]:d[p]=c,g}function s(d){if(typeof d=="string"){if(d=d.split("/"),d[0]==="")return d;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(d)){for(const u of d)if(typeof u!="string"&&typeof u!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return d}throw new Error("Invalid JSON pointer.")}function o(d,u){if(typeof d!="object")throw new Error("Invalid input object.");u=s(u);var c=u.length;if(c===1)return d;for(var p=1;p<c;){if(d=d[r(u[p++])],c===p)return d;if(typeof d!="object"||d===null)return}}function a(d,u,c){if(typeof d!="object")throw new Error("Invalid input object.");if(u=s(u),u.length===0)throw new Error("Invalid JSON pointer for set.");return i(d,u,c)}function l(d){var u=s(d);return{get:function(c){return o(c,u)},set:function(c,p){return a(c,u,p)}}}return Yt.get=o,Yt.set=a,Yt.compile=l,Yt}var qp=Kp();const gr=Jr(qp);function Gp(e,t){return e&&Vt(t,Te(t),e)}function Hp(e,t){return e&&Vt(t,Sn(t),e)}function Yp(e,t){return Vt(e,si(e),t)}var Jp=Object.getOwnPropertySymbols,Sa=Jp?function(e){for(var t=[];e;)ii(t,si(e)),e=Wn(e);return t}:zo;function Xp(e,t){return Vt(e,Sa(e),t)}function xi(e){return Vo(e,Sn,Sa)}var Qp=Object.prototype,Zp=Qp.hasOwnProperty;function eh(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&Zp.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function th(e,t){var n=t?gi(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var nh=/\w*$/;function rh(e){var t=new e.constructor(e.source,nh.exec(e));return t.lastIndex=e.lastIndex,t}var Ns=Ae?Ae.prototype:void 0,Ps=Ns?Ns.valueOf:void 0;function ih(e){return Ps?Object(Ps.call(e)):{}}var sh="[object Boolean]",oh="[object Date]",ah="[object Map]",lh="[object Number]",ch="[object RegExp]",uh="[object Set]",dh="[object String]",fh="[object Symbol]",mh="[object ArrayBuffer]",ph="[object DataView]",hh="[object Float32Array]",gh="[object Float64Array]",yh="[object Int8Array]",bh="[object Int16Array]",xh="[object Int32Array]",vh="[object Uint8Array]",Sh="[object Uint8ClampedArray]",wh="[object Uint16Array]",Oh="[object Uint32Array]";function jh(e,t,n){var r=e.constructor;switch(t){case mh:return gi(e);case sh:case oh:return new r(+e);case ph:return th(e,n);case hh:case gh:case yh:case bh:case xh:case vh:case Sh:case wh:case Oh:return ua(e,n);case ah:return new r;case lh:case dh:return new r(e);case ch:return rh(e);case uh:return new r;case fh:return ih(e)}}var Ah="[object Map]";function Ch(e){return Ce(e)&&Oe(e)==Ah}var Ds=Rt&&Rt.isMap,Eh=Ds?ai(Ds):Ch,_h="[object Set]";function Fh(e){return Ce(e)&&Oe(e)==_h}var $s=Rt&&Rt.isSet,Th=$s?ai($s):Fh,Ih=1,Nh=2,Ph=4,wa="[object Arguments]",Dh="[object Array]",$h="[object Boolean]",Rh="[object Date]",kh="[object Error]",Oa="[object Function]",Mh="[object GeneratorFunction]",Bh="[object Map]",Uh="[object Number]",ja="[object Object]",Lh="[object RegExp]",Vh="[object Set]",zh="[object String]",Wh="[object Symbol]",Kh="[object WeakMap]",qh="[object ArrayBuffer]",Gh="[object DataView]",Hh="[object Float32Array]",Yh="[object Float64Array]",Jh="[object Int8Array]",Xh="[object Int16Array]",Qh="[object Int32Array]",Zh="[object Uint8Array]",eg="[object Uint8ClampedArray]",tg="[object Uint16Array]",ng="[object Uint32Array]",ce={};ce[wa]=ce[Dh]=ce[qh]=ce[Gh]=ce[$h]=ce[Rh]=ce[Hh]=ce[Yh]=ce[Jh]=ce[Xh]=ce[Qh]=ce[Bh]=ce[Uh]=ce[ja]=ce[Lh]=ce[Vh]=ce[zh]=ce[Wh]=ce[Zh]=ce[eg]=ce[tg]=ce[ng]=!0;ce[kh]=ce[Oa]=ce[Kh]=!1;function tn(e,t,n,r,i,s){var o,a=t&Ih,l=t&Nh,d=t&Ph;if(n&&(o=i?n(e,r,i,s):n(e)),o!==void 0)return o;if(!ee(e))return e;var u=ye(e);if(u){if(o=eh(e),!a)return yi(e,o)}else{var c=Oe(e),p=c==Oa||c==Mh;if(bt(e))return ca(e,a);if(c==ja||c==wa||p&&!i){if(o=l||p?{}:da(e),!a)return l?Xp(e,Hp(o,e)):Yp(e,Gp(o,e))}else{if(!ce[c])return i?e:{};o=jh(e,c,a)}}s||(s=new Ie);var y=s.get(e);if(y)return y;s.set(e,o),Th(e)?e.forEach(function(g){o.add(tn(g,t,n,g,e,s))}):Eh(e)&&e.forEach(function(g,b){o.set(b,tn(g,t,n,b,e,s))});var f=d?l?xi:Pr:l?Sn:Te,h=u?void 0:f(e);return pi(h||e,function(g,b){h&&(b=g,g=e[b]),fi(o,b,tn(g,t,n,b,e,s))}),o}function Aa(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function rg(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(i);++r<i;)s[r]=e[r+t];return s}function ig(e,t){return t.length<2?e:Yn(e,rg(t,0,-1))}var sg=Object.prototype,og=sg.hasOwnProperty;function Ca(e,t){t=Lt(t,e);var n=-1,r=t.length;if(!r)return!0;for(var i=e==null||typeof e!="object"&&typeof e!="function";++n<r;){var s=t[n];if(typeof s=="string"){if(s==="__proto__"&&!og.call(e,"__proto__"))return!1;if(s==="constructor"&&n+1<r&&typeof t[n+1]=="string"&&t[n+1]==="prototype"){if(i&&n===0)continue;return!1}}}var o=ig(e,t);return o==null||delete o[jt(Aa(t))]}function ag(e){return ot(e)?void 0:e}function Br(e){var t=e==null?0:e.length;return t?wn(e,1):[]}function Ea(e){return pa(ma(e,void 0,Br),e+"")}var lg=1,cg=2,ug=4,dn=Ea(function(e,t){var n={};if(e==null)return n;var r=!1;t=Ut(t,function(s){return s=Lt(s,e),r||(r=s.length>1),s}),Vt(e,xi(e),n),r&&(n=tn(n,lg|cg|ug,ag));for(var i=t.length;i--;)Ca(n,t[i]);return n}),dg=lc();const vi=Jr(dg);function Ln(e,t){if(oe in e&&vi.equal(e[oe],t))return e;for(const n of Object.values(e))if(Array.isArray(n)){for(const r of n)if(ee(r)){const i=Ln(r,t);if(i!==void 0)return i}}else if(ee(n)){const r=Ln(n,t);if(r!==void 0)return r}}function Ur(e,t){const n=N(e,oe,t);ae in e&&(e={...e,[ae]:vi.resolve(n,e[ae])});for(const[r,i]of Object.entries(e))Array.isArray(i)?e={...e,[r]:i.map(s=>ee(s)?Ur(s,n):s)}:ee(i)&&(e={...e,[r]:Ur(i,n)});return e}function Si(e,t){const n=t[e];return[dn(t,[e]),n]}function _a(e,t={},n=[],r=N(t,[oe])){const i=e||"";let s;if(i.startsWith("#")){const a=decodeURIComponent(i.substring(1));r===void 0||oe in t&&t[oe]===r?s=gr.get(t,a):t[Xt]===In&&(s=Ln(t,r.replace(/\/$/,"")),s!==void 0&&(s=gr.get(s,a)))}else if(t[Xt]===In){const a=r?vi.resolve(r,i):i,[l,...d]=a.replace(/#\/?$/,"").split("#");s=Ln(t,l.replace(/\/$/,"")),s!==void 0&&(r=s[oe],me(d)||(s=gr.get(s,decodeURIComponent(d.join("#")))))}if(s===void 0)throw new Error(`Could not find a definition for ${e}.`);const o=s[ae];if(o){if(n.includes(o)){if(n.length===1)throw new Error(`Definition for ${e} is a circular reference`);const[u,...c]=n,p=[...c,i,u].join(" -> ");throw new Error(`Definition for ${u} contains a circular reference through ${p}`)}const[a,l]=Si(ae,s),d=_a(l,t,[...n,i],r);return Object.keys(a).length>0?t[Xt]===Cu||t[Xt]===In?{[qe]:[a,d]}:{...a,...d}:d}return s}function wi(e,t={},n=N(t,[oe])){return _a(e,t,[],n)}var fg="[object String]";function at(e){return typeof e=="string"||!ye(e)&&Ce(e)&&He(e)==fg}function Le(e){let t;const n=N(e,wu);return at(n)?t=n:n!==void 0&&console.warn(`Expecting discriminator to be a string, got "${typeof n}" instead`),t}function fn(e){return Array.isArray(e)?"array":typeof e=="string"?"string":e==null?"null":typeof e=="boolean"?"boolean":isNaN(e)?typeof e=="object"?"object":"string":"number"}var mg=Xn(function(e){return ga(wn(e,1,un,!0))});function Ne(e){let{type:t}=e;return!t&&e.const?fn(e.const):!t&&e.enum?"string":!t&&(e.properties||e.additionalProperties||e.patternProperties)?"object":(Array.isArray(t)&&(t.length===2&&t.includes("null")?t=t.find(n=>n!=="null"):t=t[0]),t)}function Ge(e,t){const n=Object.assign({},e);return Object.keys(t).reduce((r,i)=>{const s=e?e[i]:{},o=t[i];return e&&i in e&&H(o)?r[i]=Ge(s,o):e&&t&&(Ne(e)==="object"||Ne(t)==="object")&&i===No&&Array.isArray(s)&&Array.isArray(o)?r[i]=mg(s,o):r[i]=o,r},n)}var pg="[object Number]";function Fa(e){return typeof e=="number"||Ce(e)&&He(e)==pg}function Ta(e,t,n){var r;if(e&&n){const i=N(e,n);if(i===void 0)return;for(let s=0;s<t.length;s++){const o=t[s],a=N(o,[te,n],{});if(!(a.type==="object"||a.type==="array")&&(a.const===i||!((r=a.enum)===null||r===void 0)&&r.includes(i)))return s}}}function Oi(e,t,n,r,i){if(t===void 0)return 0;const s=Ta(t,n,i);if(Fa(s))return s;for(let o=0;o<n.length;o++){const a=n[o];if(i&&X(a,[te,i])){const l=N(t,i),d=N(a,[te,i],{});if(e.isValid(d,l,r))return o}else if(a[te]){const l={anyOf:Object.keys(a[te]).map(u=>({required:[u]}))};let d;if(a.anyOf){const{...u}=a;u.allOf?u.allOf=u.allOf.slice():u.allOf=[],u.allOf.push(l),d=u}else d=Object.assign({},a,l);if(delete d.required,e.isValid(d,t,r))return o}else if(e.isValid(a,t,r))return o}return 0}function xe(e,t,n={},r,i,s=!1){return ke(e,t,n,r,void 0,void 0,i,s)[0]}function hg(e,t,n,r,i,s,o){const{if:a,then:l,else:d,...u}=t,c=e.isValid(a,s||{},n);let p=[u],y=[];if(r)l&&typeof l!="boolean"&&(y=y.concat(ke(e,l,n,s,r,i,o))),d&&typeof d!="boolean"&&(y=y.concat(ke(e,d,n,s,r,i,o)));else{const f=c?l:d;f&&typeof f!="boolean"&&(y=y.concat(ke(e,f,n,s,r,i,o)))}return y.length&&(p=y.map(f=>Ge(u,f))),p.flatMap(f=>ke(e,f,n,s,r,i,o))}function Ia(e){return e.reduce((n,r)=>r.length>1?r.flatMap(i=>ta(n.length,s=>[...n[s]].concat(i))):(n.forEach(i=>i.push(r[0])),n),[[]])}function Na(e,t){return Object.keys(e.patternProperties).filter(n=>RegExp(n).test(t)).reduce((n,r)=>(se(n,[r],e.patternProperties[r]),n),{})}function gg(e,t,n,r,i,s,o,a){const l=Pa(e,t,n,r,i,s,o,a);if(l.length>1||l[0]!==t)return l;if(Zr in t)return Da(e,t,n,r,i,s,o).flatMap(u=>ke(e,u,n,s,r,i,o));if(qe in t&&Array.isArray(t[qe])){const d=t.allOf.map(c=>ke(e,c,n,s,r,i,o));return Ia(d).map(c=>({...t,allOf:c}))}return[t]}function Pa(e,t,n,r,i,s,o,a){const l=Dt(t,n,i,void 0,a);return l!==t?ke(e,l,n,s,r,i,o,a):[t]}function Dt(e,t,n,r,i){if(!H(e))return e;let s=e;if(ae in s){const{$ref:o,...a}=s;if(n.includes(o))return s;n.push(o),s={...wi(o,t,r),...a},oe in s&&(r=s[oe])}if(te in s){const o=[],a=Wm(s[te],(l,d,u)=>{const c=[...n];l[u]=Dt(d,t,c,r,i),o.push(c)},{});ap(n,ya(up(o))),s={...s,[te]:a}}if(ht in s&&!Array.isArray(s.items)&&typeof s.items!="boolean"&&(s={...s,items:Dt(s.items,t,n,r,i)}),i){let o,a;Q in e&&Array.isArray(e[Q])?(o=Q,a=s[Q]):q in e&&Array.isArray(e[q])&&(o=q,a=s[q]),o&&a&&(s={...s,[o]:a.map(l=>Dt(l,t,n,r,i))})}return ue(e,s)?e:s}function yg(e,t,n,r,i){const s={...t,properties:{...t.properties}},o=r&&H(r)?r:{};return Object.keys(o).forEach(a=>{if(!(a in s.properties)){if(Tr in s){const l=Na(s,a);if(!me(l)){s.properties[a]=xe(e,{[qe]:Object.values(l)},n,N(o,[a]),i),se(s.properties,[a,Ke],!0);return}}if(on in s&&s.additionalProperties!==!1){let l;typeof s.additionalProperties!="boolean"?ae in s.additionalProperties?l=xe(e,{[ae]:N(s.additionalProperties,[ae])},n,o,i):"type"in s.additionalProperties?l={...s.additionalProperties}:Q in s.additionalProperties||q in s.additionalProperties?l={type:"object",...s.additionalProperties}:l={type:fn(N(o,[a]))}:l={type:fn(N(o,[a]))},s.properties[a]=l,se(s.properties,[a,Ke],!0)}else s.properties[a]={type:"null"},se(s.properties,[a,Ke],!0)}}),s}const{compareSchemaDefinitions:bg,compareSchemaValues:xg}=Pp(),{mergeArrayOfSchemaDefinitions:vg}=Vp({intersectJson:Ep(xg),deduplicateJsonSchemaDef:ba(bg)}),Sg=Wp(vg);function wg(e){return Sg(e)}function ke(e,t,n,r,i=!1,s=[],o,a){return H(t)?gg(e,t,n,i,s,r,o,a).flatMap(d=>{var u;let c=d;if(ei in c)return hg(e,c,n,i,s,r,o);if(qe in c){if(i){const{allOf:y,...f}=c;return[...y,f]}try{const y=[],f=[];(u=c.allOf)===null||u===void 0||u.forEach(h=>{typeof h=="object"&&h.contains?y.push(h):f.push(h)}),y.length&&(c={...c,allOf:f}),c=o?o(c):wg(c),y.length&&(c.allOf=y)}catch(y){console.warn(`could not merge subschemas in allOf:
|
|
2
2
|
`,y);const{allOf:f,...h}=c;return h}}return te in c&&Tr in c&&(c=Object.keys(c.properties).reduce((y,f)=>{const h=Na(y,f);return me(h)||(y.properties[f]=xe(e,{allOf:[y.properties[f],...Object.values(h)]},n,N(r,[f]),o)),y},{...c,properties:{...c.properties}})),Tr in c||on in c&&c.additionalProperties!==!1?yg(e,c,n,r,o):c}):[{}]}function Og(e,t,n,r,i){let s;const{oneOf:o,anyOf:a,...l}=t;if(Array.isArray(o)?s=o:Array.isArray(a)&&(s=a),s){const d=i===void 0&&r?{}:i,u=Le(t);s=s.map(p=>Dt(p,n,[]));const c=Oi(e,d,s,n,u);if(r)return s.map(p=>Ge(l,p));t=Ge(l,s[c])}return[t]}function Da(e,t,n,r,i,s,o){const{dependencies:a,...l}=t;return Og(e,l,n,r,s).flatMap(u=>$a(e,a,u,n,r,i,s,o))}function $a(e,t,n,r,i,s,o,a){let l=[n];for(const d in t){if(!i&&N(o,[d])===void 0||n.properties&&!(d in n.properties))continue;const[u,c]=Si(d,t);return Array.isArray(c)?l[0]=jg(n,c):H(c)&&(l=Ag(e,n,r,d,c,i,s,o,a)),l.flatMap(p=>$a(e,u,p,r,i,s,o,a))}return l}function jg(e,t){if(!t)return e;const n=Array.isArray(e.required)?Array.from(new Set([...e.required,...t])):t;return{...e,required:n}}function Ag(e,t,n,r,i,s,o,a,l){return ke(e,i,n,a,s,o,l).flatMap(u=>{const{oneOf:c,...p}=u;if(t=Ge(t,p),c===void 0)return t;const y=c.map(h=>typeof h=="boolean"||!(ae in h)?[h]:Pa(e,h,n,s,o,a));return Ia(y).flatMap(h=>Cg(e,t,n,r,h,s,o,a,l))})}function Cg(e,t,n,r,i,s,o,a,l){const d=i.filter(u=>{if(typeof u=="boolean"||!u||!u.properties)return!1;const{[r]:c}=u.properties;if(c){const p={type:"object",properties:{[r]:c}};return e.isValid(p,a,n)||s}return!1});return!s&&d.length!==1?(console.warn("ignoring oneOf in dependencies because there isn't exactly one subschema that is valid"),[t]):d.flatMap(u=>{const c=u,[p]=Si(r,c.properties),y={...c,properties:p};return ke(e,y,n,a,s,o,l).map(h=>Ge(t,h))})}function Zt(e,t,n,r,i,s={},o){if(Array.isArray(n[i])){const l=Le(n)||r,d=n[i].map(c=>xe(e,c,t,s,o)),u=N(s,l);if(u!==void 0)return d.find(c=>rt(N(c,[te,l,zn],N(c,[te,l,je])),u))}}function Ra(e,t,n,r,i){let s=n;if(X(n,ae)&&(s=xe(e,n,t,void 0,i)),me(r))return s;const o=Array.isArray(r)?r:r.split("."),[a,...l]=o;if(a&&X(s,a))return s=N(s,a),Ra(e,t,s,l,i)}function Dn(e,t,n,r,i,s){const o=Ra(e,t,n,r,s);return o===void 0?i:o}const Rs={title:"!@#$_UNKNOWN_$#@!"};function Eg(e,t,n,r,i={},s){const o=Array.isArray(r)?[...r]:r.split(".");let a=n;const l=o.pop();o.length&&o.forEach(p=>{a=Dn(e,t,a,[te,p],{},s),X(a,q)?a=Zt(e,t,a,l,q,N(i,p),s):X(a,Q)&&(a=Zt(e,t,a,l,Q,N(i,p),s))}),X(a,q)?a=Zt(e,t,a,l,q,i,s):X(a,Q)&&(a=Zt(e,t,a,l,Q,i,s));let d=Dn(e,t,a,[te,l],Rs,s);d===Rs&&(d=void 0);const u=Dn(e,t,a,No,[],s);let c;return d&&Array.isArray(u)&&(c=u.includes(l)),{field:d,isRequired:c}}function _g(e,t,n,r){var i=-1,s=e==null?0:e.length;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}function Fg(e,t){return function(n,r){if(n==null)return n;if(!Ot(n))return e(n,r);for(var i=n.length,s=-1,o=Object(n);++s<i&&r(o[s],s,o)!==!1;);return n}}var ka=Fg(ia);function Tg(e,t,n,r,i){return i(e,function(s,o,a){n=r?(r=!1,s):t(n,s,o,a)}),n}function Ig(e,t,n){var r=ye(e)?_g:Tg,i=arguments.length<3;return r(e,hi(t),n,i,ka)}const Ng={type:"object",$id:Su,properties:{__not_really_there__:{type:"number"}}};function Lr(e,t,n,r,i){let s=0;return n&&(ee(n.properties)?s+=Ig(n.properties,(o,a,l)=>{const d=N(r,l);if(typeof a=="boolean")return o;if(X(a,ae)){const u=xe(e,a,t,d,i);return o+Lr(e,t,u,d||{},i)}if((X(a,q)||X(a,Q))&&d){const u=X(a,q)?q:Q,c=Le(a);return o+mn(e,t,d,N(a,u),-1,c,i)}if(a.type==="object")return ee(d)&&(o+=1),o+Lr(e,t,a,d,i);if(a.type===fn(d)){let u=o+1;return a.default?u+=d===a.default?1:-1:a.const&&(u+=d===a.const?1:-1),u}return o},0):at(n.type)&&n.type===fn(r)&&(s+=1)),s}function mn(e,t,n,r,i=-1,s,o){const a=r.map(p=>Dt(p,t,[])),l=Ta(n,r,s);if(Fa(l))return l;const d=a.reduce((p,y,f)=>(Oi(e,n,[Ng,y],t,s)===1&&p.push(f),p),[]);if(d.length===1)return d[0];d.length||ta(a.length,p=>d.push(p));const u=new Set,{bestIndex:c}=d.reduce((p,y)=>{const{bestScore:f}=p,h=a[y],g=Lr(e,t,h,n,o);return u.add(g),g>f?{bestIndex:y,bestScore:g}:p},{bestIndex:i,bestScore:0});return u.size===1&&i>=0?i:c}function ji(e){return Array.isArray(e.items)&&e.items.length>0&&e.items.every(t=>H(t))}function Vn(e){return e==null}function pn(e,t,n=!1,r=!1,i=!1){if(Array.isArray(t)){const s=Array.isArray(e)?e:[],o=i?s:t,a=i?t:s,l=o.map((d,u)=>a[u]!==void 0?pn(s[u],t[u],n,r,i):d);return(n||i)&&l.length<a.length&&l.push(...a.slice(l.length)),l}if(H(t)){const s=Object.assign({},e);return Object.keys(t).reduce((o,a)=>{var l;const d=N(t,a),u=H(e)&&a in e,c=a in t,p=(l=N(e,a))!==null&&l!==void 0?l:{},y=u&&Object.entries(p).some(([,g])=>H(g)),f=u&&H(N(e,a)),h=c&&H(d);return f&&h&&!y?(o[a]={...N(e,a),...d},o):(o[a]=pn(N(e,a),d,n,r,i&&(u||!c)),o)},s)}return r&&(e!==void 0&&Vn(t)||typeof t=="number"&&isNaN(t))||i&&!Vn(t)?e:t}function xt(e,t,n=!1){return Object.keys(t).reduce((r,i)=>{const s=e?e[i]:{},o=t[i];if(e&&i in e&&H(o))r[i]=xt(s,o,n);else if(n&&Array.isArray(s)&&Array.isArray(o)){let a=o;n==="preventDuplicates"&&(a=o.reduce((l,d)=>(s.includes(d)||l.push(d),l),[])),r[i]=s.concat(a)}else r[i]=o;return r},Object.assign({},e))}function Ma(e){return Array.isArray(e.enum)&&e.enum.length===1||je in e}function Ai(e,t,n={},r){const i=xe(e,t,n,void 0,r),s=i.oneOf||i.anyOf;return Array.isArray(i.enum)?!0:Array.isArray(s)?s.every(o=>typeof o!="boolean"&&Ma(o)):!1}function Ci(e,t,n,r){return!t.uniqueItems||!t.items||typeof t.items=="boolean"?!1:Ai(e,t.items,n,r)}function Ba(e){const t=e[je],n=Ne(e);return H(t)&&at(t?.$data)&&n!=="object"&&n!=="array"}function Pg(e){if(vu in e&&Array.isArray(e.enum)&&e.enum.length===1)return e.enum[0];if(je in e)return e.const;throw new Error("schema cannot be inferred as a constant")}function kt(e,t){if(e.enum){let s;if(t){const{enumNames:o}=U(t);s=o}return e.enum.map((o,a)=>({label:s?.[a]||String(o),value:o}))}let n,r;e.anyOf?(n=e.anyOf,r=t?.anyOf):e.oneOf&&(n=e.oneOf,r=t?.oneOf);let i=Le(e);if(t){const{optionsSchemaSelector:s=i}=U(t);i=s}return n&&n.map((s,o)=>{const{title:a}=U(r?.[o]),l=s;let d,u=a;if(i){const c=N(l,[te,i],{});d=N(c,zn,N(c,je)),u=u||c?.title||l.title||String(d)}else d=Pg(l),u=u||l.title||String(d);return{schema:l,label:u,value:d}})}const Dg=["string","number","integer","boolean","null"];var Mt;(function(e){e[e.Ignore=0]="Ignore",e[e.Invert=1]="Invert",e[e.Fallback=2]="Fallback"})(Mt||(Mt={}));function yr(e,t=Mt.Ignore,n=-1){if(n>=0){if(Array.isArray(e.items)&&n<e.items.length){const r=e.items[n];if(typeof r!="boolean")return r}}else if(e.items&&!Array.isArray(e.items)&&typeof e.items!="boolean")return e.items;return t!==Mt.Ignore&&H(e.additionalItems)?e.additionalItems:{}}function Ua(e,t){const{default:n,type:r}=e;return Array.isArray(r)&&r.includes("null")&&me(t)&&n===null?null:t}function ks(e,t,n,r,i,s=[],o={},a=!1,l=!1){const{emptyObjectFields:d="populateAllDefaults"}=o;if(r===!0||a)e[t]=n;else if(r==="excludeObjectChildren")(l&&n!==void 0||!H(n)||!me(n))&&(e[t]=n);else if(d!=="skipDefaults"){const u=i===void 0?s.includes(t):i;H(n)?d==="skipEmptyDefaults"?me(n)||(e[t]=n):(!me(n)||s.includes(t))&&(u||d!=="populateRequiredDefaults")&&(e[t]=n):n!==void 0&&(d==="populateAllDefaults"||d==="skipEmptyDefaults"||u&&s.includes(t))&&(e[t]=n)}}function it(e,t,n={}){const{parentDefaults:r,rawFormData:i,rootSchema:s={},includeUndefinedValues:o=!1,_recurseList:a=[],experimental_defaultFormStateBehavior:l=void 0,experimental_customMergeAllOf:d=void 0,required:u,shouldMergeDefaultsIntoFormData:c=!1,initialDefaultsGenerated:p}=n;let y=H(i)?i:{};const f=H(t)?t:{};let h=r,g=null,b=l,S=a;if(f[je]!==void 0&&l?.constAsDefaults!=="never"&&!Ba(f))h=f[je];else if(H(h)&&H(f.default)&&!f[Q]&&!f[q]&&!f[ae])h=xt(h,f.default);else if(zn in f&&!f[Q]&&!f[q]&&!f[ae])h=f.default;else if(ae in f){const x=f[ae];a.includes(x)||(S=a.concat(x),g=wi(x,s));const w=i===void 0||H(i)&&me(i);g&&!h&&w&&(h=f.default),c&&g&&!H(i)&&(y=i)}else if(Zr in f){const x={...Ms(e,f,n,h),...y};g=Da(e,f,s,!1,[],x,d)[0]}else if(ji(f))h=f.items.map((x,w)=>it(e,x,{rootSchema:s,includeUndefinedValues:o,_recurseList:a,experimental_defaultFormStateBehavior:l,experimental_customMergeAllOf:d,parentDefaults:Array.isArray(r)?r[w]:void 0,rawFormData:y,required:u,shouldMergeDefaultsIntoFormData:c}));else if(q in f){const{oneOf:x,...w}=f;if(x.length===0)return;const j=Le(f),{type:A="null"}=w;!Array.isArray(A)&&Dg.includes(A)&&b?.constAsDefaults==="skipOneOf"&&(b={...b,constAsDefaults:"never"}),g=x[mn(e,s,i??f.default,x,0,j,d)],g=Ge(w,g)}else if(Q in f){const{anyOf:x,...w}=f;if(x.length===0)return;const j=Le(f);g=x[mn(e,s,i??f.default,x,0,j,d)],g=Ge(w,g)}if(g)return it(e,g,{rootSchema:s,includeUndefinedValues:o,_recurseList:S,experimental_defaultFormStateBehavior:b,experimental_customMergeAllOf:d,parentDefaults:h,rawFormData:i??y,required:u,shouldMergeDefaultsIntoFormData:c,initialDefaultsGenerated:p});h===void 0&&(h=f.default);const O=Ms(e,f,n,h);let v=O??h;if(c){const{arrayMinItems:x={}}=l||{},{mergeExtraDefaults:w}=x,j=$g(e,f,s,i,l,d);(!H(i)||qe in f)&&(v=pn(v,j,w,!0))}return v}function $g(e,t,n,r,i,s){const o=!Ma(t)&&Ai(e,t,n,s);let a=r;if(o){const d=kt(t);a=d?.some(c=>ue(c.value,r))?r:void 0}return t[je]&&i?.constAsDefaults==="always"&&(a=t.const),a}function Rg(e,t,{rawFormData:n,rootSchema:r={},includeUndefinedValues:i=!1,_recurseList:s=[],experimental_defaultFormStateBehavior:o=void 0,experimental_customMergeAllOf:a=void 0,required:l,shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:u}={},c){{const p=H(n)?n:{},y=t,h=o?.allOf==="populateDefaults"&&qe in y||o?.emptyObjectFields!=="skipEmptyDefaults"&&ei in y?xe(e,y,r,p,a):y,g=h[je],b=Object.keys(h.properties||{}).reduce((S,O)=>{var v;const x=N(h,[te,O],{}),w=H(g)&&g[O]!==void 0,j=(H(x)&&je in x||w)&&o?.constAsDefaults!=="never"&&!Ba(x),A=it(e,x,{rootSchema:r,_recurseList:s,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,includeUndefinedValues:i===!0,parentDefaults:N(c,[O]),rawFormData:N(p,[O]),required:(v=h.required)===null||v===void 0?void 0:v.includes(O),shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:u});return ks(S,O,A,i,l,h.required,o,j,x?.type==="null"),S},{});if(h.additionalProperties&&!u){const S=H(h.additionalProperties)?h.additionalProperties:{},O=new Set;H(c)&&Object.keys(c).filter(x=>!h.properties||!h.properties[x]).forEach(x=>O.add(x));const v=[];Object.keys(p).filter(x=>!h.properties||!h.properties[x]).forEach(x=>{O.add(x),v.push(x)}),O.forEach(x=>{var w;const j=it(e,S,{rootSchema:r,_recurseList:s,experimental_defaultFormStateBehavior:o,experimental_customMergeAllOf:a,includeUndefinedValues:i===!0,parentDefaults:N(c,[x]),rawFormData:N(p,[x]),required:(w=h.required)===null||w===void 0?void 0:w.includes(x),shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:u});ks(b,x,j,i,l,v)})}return Ua(t,b)}}function kg(e,t,{rawFormData:n,rootSchema:r={},_recurseList:i=[],experimental_defaultFormStateBehavior:s=void 0,experimental_customMergeAllOf:o=void 0,required:a,requiredAsRoot:l=!1,shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:u}={},c){var p,y;const f=t,h=(p=s?.arrayMinItems)!==null&&p!==void 0?p:{},{populate:g,mergeExtraDefaults:b}=h,S=g==="never",O=g==="requiredOnly",v=g==="all"||!S&&!O,x=(y=h?.computeSkipPopulate)!==null&&y!==void 0?y:(()=>!1),j=s?.emptyObjectFields==="skipEmptyDefaults"?void 0:[];if(Array.isArray(c)&&(c=c.map((F,_)=>{const T=yr(f,Mt.Fallback,_),$=Array.isArray(n)?n[_]:void 0;return it(e,T,{rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,parentDefaults:F,rawFormData:$,required:a,shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:u})})),Array.isArray(n)){const F=yr(f);if(S)c=n;else{const _=n.map(($,D)=>it(e,F,{rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,rawFormData:$,parentDefaults:N(c,[D]),required:a,shouldMergeDefaultsIntoFormData:d,initialDefaultsGenerated:u}));c=pn(c,_,(O&&a||v)&&b)}}if((H(f)&&je in f&&s?.constAsDefaults!=="never")===!1){if(S)return c??j;if(O&&!a)return c||void 0}let E;const C=Array.isArray(c)?c.length:0;if(!f.minItems||Ci(e,f,r,o)||x(e,f,r)||f.minItems<=C)E=c||!a&&!l?c:j;else{const F=c||[],_=yr(f,Mt.Invert),T=_.default,$=Array.from({length:f.minItems-C},()=>it(e,_,{parentDefaults:T,rootSchema:r,_recurseList:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,required:a,shouldMergeDefaultsIntoFormData:d}));E=F.concat($)}return Ua(t,E)}function Ms(e,t,n={},r){switch(Ne(t)){case"object":return Rg(e,t,n,r);case"array":return kg(e,t,n,r)}}function La(e,t,n,r,i=!1,s,o,a){if(!H(t))throw new Error("Invalid schema: "+t);const l=xe(e,t,r,n,o),d=it(e,l,{rootSchema:r,includeUndefinedValues:i,experimental_defaultFormStateBehavior:s,experimental_customMergeAllOf:o,rawFormData:n,shouldMergeDefaultsIntoFormData:!0,initialDefaultsGenerated:a,requiredAsRoot:!0});if(l.type!=="object"&&H(l.default))return{...d,...n};if(H(n)||Array.isArray(n)){const{mergeDefaultsIntoFormData:u}=s||{};return pn(d,n,!0,u==="useDefaultIfFormDataUndefined",!0)}return d}function Va(e={}){return"widget"in U(e)&&U(e).widget!=="hidden"}function za(e,t,n={},r,i){if(n[ni]==="files")return!0;if(t.items){const s=xe(e,t.items,r,void 0,i);return s.type==="string"&&s.format==="data-url"}return!1}function Mg(e,t,n={},r,i,s){const o=U(n,i),{label:a=!0}=o;let l=!!a;if(l){const d=Ne(t),u=N(t,Ke,!1);d==="array"&&(l=u||Ci(e,t,r,s)||za(e,t,n,r,s)||Va(n)),d==="object"&&(l=u),d==="boolean"&&n&&!n[ni]&&(l=!1),n&&n[ju]&&(l=!1)}return l}function Wa(e,t,n){for(var r=-1,i=t.length,s={};++r<i;){var o=t[r],a=Yn(e,o);n(a,o)&&mi(s,Lt(o,e),a)}return s}function Bg(e,t){return Wa(e,t,function(n,r){return aa(e,r)})}var Ei=Ea(function(e,t){return e==null?{}:Bg(e,t)});function mt(e,t,n,r,i,s=[],o){if(ae in t||Zr in t||qe in t||ei in t){const l=xe(e,t,r,i,o);if(s.findIndex(u=>ue(u,l))===-1)return mt(e,l,n,r,i,s.concat(l),o)}let a={[Tn]:n.replace(/^\./,"")};if(q in t||Q in t){const l=q in t?t.oneOf:t.anyOf,d=Le(t),u=mn(e,r,i,l,0,d,o),c=l[u];a={...a,...mt(e,c,n,r,i,s,o)}}if(on in t&&t[on]!==!1&&se(a,ti,!0),ht in t&&Array.isArray(i)){const{items:l,additionalItems:d}=t;Array.isArray(l)?i.forEach((u,c)=>{l[c]?a[c]=mt(e,l[c],`${n}.${c}`,r,u,s,o):d?a[c]=mt(e,d,`${n}.${c}`,r,u,s,o):console.warn(`Unable to generate path schema for "${n}.${c}". No schema defined for it`)}):i.forEach((u,c)=>{a[c]=mt(e,l,`${n}.${c}`,r,u,s,o)})}else if(te in t)for(const l in t.properties){const d=N(t,[te,l],{});a[l]=mt(e,d,`${n}.${l}`,r,N(i,[l]),s,o)}return a}function Ka(e,t,n="",r,i,s){return mt(e,t,n,r,i,void 0,s)}function qa(e,t){if(t.length===0&&typeof e!="object")return e;const n=Ei(e,t);return Array.isArray(e)?Object.keys(n).map(r=>n[r]):n}function Ga(e,t){const n=(i,s)=>typeof i!="object"||me(i)||s&&!me(i),r=(i,s=[],o=[[]])=>{const a=Object.keys(i);return a.forEach(l=>{const d=i[l];if(typeof d=="object"){const u=o.map(c=>[...c,l]);d[ti]&&d[Tn]!==""?s.push(d[Tn]):r(d,s,u)}else l===Tn&&d!==""&&o.forEach(u=>{const c=N(t,u),p=a.length===1;(n(c,p)||Array.isArray(c)&&c.every(y=>n(y,p)))&&s.push(u)})}),s};return r(e)}function Ug(e,t,n={},r){const i=xe(e,t,n,r),s=Ka(e,i,"",n,r),a=Ga(s,r).map(l=>Array.isArray(l)?l.join("."):l);return qa(r,a)}const _t=Symbol("no Value");function Vr(e,t,n,r,i={},s){let o;if(X(n,te)){const a={};if(X(r,te)){const u=N(r,te,{});Object.keys(u).forEach(c=>{X(i,c)&&(a[c]=void 0)})}const l=Object.keys(N(n,te,{})),d={};l.forEach(u=>{const c=N(i,u);let p=N(r,[te,u],{}),y=N(n,[te,u],{});X(p,ae)&&(p=xe(e,p,t,c,s)),X(y,ae)&&(y=xe(e,y,t,c,s));const f=N(p,"type"),h=N(y,"type");if(!f||f===h)if(X(a,u)&&delete a[u],h==="object"||h==="array"&&Array.isArray(c)){const g=Vr(e,t,y,p,c,s);(g!==void 0||h==="array")&&(d[u]=g)}else{const g=N(y,"default",_t),b=N(p,"default",_t);g!==_t&&g!==c&&(b===c?a[u]=g:N(y,"readOnly")===!0&&(a[u]=void 0));const S=N(y,"const",_t),O=N(p,"const",_t);S!==_t&&S!==c&&(a[u]=O===c?S:void 0)}}),o={...typeof i=="string"||Array.isArray(i)?void 0:i,...a,...d}}else if(N(r,"type")==="array"&&N(n,"type")==="array"&&Array.isArray(i)){let a=N(r,"items"),l=N(n,"items");if(typeof a=="object"&&typeof l=="object"&&!Array.isArray(a)&&!Array.isArray(l)){X(a,ae)&&(a=xe(e,a,t,i,s)),X(l,ae)&&(l=xe(e,l,t,i,s));const d=N(a,"type"),u=N(l,"type");if(!d||d===u){const c=N(n,"maxItems",-1);u==="object"?o=i.reduce((p,y)=>{const f=Vr(e,t,l,a,y,s);return f!==void 0&&(c<0||p.length<c)&&p.push(f),p},[]):o=c>0&&i.length>c?i.slice(0,c):i}}else typeof a=="boolean"&&typeof l=="boolean"&&a===l&&(o=i)}return o}class Lg{constructor(t,n,r,i){n&&n[Xt]===In?this.rootSchema=Ur(n,N(n,oe,"#")):this.rootSchema=n,this.validator=t,this.experimental_defaultFormStateBehavior=r,this.experimental_customMergeAllOf=i}getRootSchema(){return this.rootSchema}getValidator(){return this.validator}doesSchemaUtilsDiffer(t,n,r={},i){return!t||!n?!1:this.validator!==t||!ue(this.rootSchema,n)||!ue(this.experimental_defaultFormStateBehavior,r)||this.experimental_customMergeAllOf!==i}findFieldInSchema(t,n,r){return Eg(this.validator,this.rootSchema,t,n,r,this.experimental_customMergeAllOf)}findSelectedOptionInXxxOf(t,n,r,i){return Zt(this.validator,this.rootSchema,t,n,r,i,this.experimental_customMergeAllOf)}getDefaultFormState(t,n,r=!1,i){return La(this.validator,t,n,this.rootSchema,r,this.experimental_defaultFormStateBehavior,this.experimental_customMergeAllOf,i)}getDisplayLabel(t,n,r){return Mg(this.validator,t,n,this.rootSchema,r,this.experimental_customMergeAllOf)}getClosestMatchingOption(t,n,r,i){return mn(this.validator,this.rootSchema,t,n,r,i,this.experimental_customMergeAllOf)}getFirstMatchingOption(t,n,r){return Oi(this.validator,t,n,this.rootSchema,r)}getFromSchema(t,n,r){return Dn(this.validator,this.rootSchema,t,n,r,this.experimental_customMergeAllOf)}isFilesArray(t,n){return za(this.validator,t,n,this.rootSchema,this.experimental_customMergeAllOf)}isMultiSelect(t){return Ci(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}isSelect(t){return Ai(this.validator,t,this.rootSchema,this.experimental_customMergeAllOf)}omitExtraData(t,n){return Ug(this.validator,t,this.rootSchema,n)}retrieveSchema(t,n,r){return xe(this.validator,t,this.rootSchema,n,this.experimental_customMergeAllOf,r)}sanitizeDataForNewSchema(t,n,r){return Vr(this.validator,this.rootSchema,t,n,r,this.experimental_customMergeAllOf)}toPathSchema(t,n,r){return Ka(this.validator,t,n,this.rootSchema,r,this.experimental_customMergeAllOf)}}function Vg(e,t,n={},r){return new Lg(e,t,n,r)}function zg(e){var t;if(e.indexOf("data:")===-1)throw new Error("File is invalid: URI must be a dataURI");const r=e.slice(5).split(";base64,");if(r.length!==2)throw new Error("File is invalid: dataURI must be base64");const[i,s]=r,[o,...a]=i.split(";"),l=o||"",d=decodeURI(((t=a.map(u=>u.split("=")).find(([u])=>u==="name"))===null||t===void 0?void 0:t[1])||"unknown");try{const u=atob(s),c=new Array(u.length);for(let y=0;y<u.length;y++)c[y]=u.charCodeAt(y);return{blob:new window.Blob([new Uint8Array(c)],{type:l}),name:d}}catch(u){throw new Error("File is invalid: "+u.message)}}function et(e,t){let n=String(e);for(;n.length<t;)n="0"+n;return n}function Ha(e,t){if(e<=0&&t<=0)e=new Date().getFullYear()+e,t=new Date().getFullYear()+t;else if(e<0||t<0)throw new Error(`Both start (${e}) and stop (${t}) must both be <= 0 or > 0, got one of each`);if(e>t)return Ha(t,e).reverse();const n=[];for(let r=e;r<=t;r++)n.push({value:r,label:et(r,2)});return n}function Bs(e,t){if(Object.is(e,t))return!0;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++){const s=n[i];if(!Object.prototype.hasOwnProperty.call(t,s)||!Object.is(e[s],t[s]))return!1}return!0}function Wg(e,t){let n=e;if(Array.isArray(t)){const r=n.split(/(%\d)/);t.forEach((i,s)=>{const o=r.findIndex(a=>a===`%${s+1}`);o>=0&&(r[o]=i)}),n=r.join("")}return n}function Kg(e,t){return Wg(e,t)}function ge(e,t=[],n){if(Array.isArray(e))return e.map(s=>ge(s,t)).filter(s=>s!==n);const r=e===""||e===null?-1:Number(e),i=t[r];return i?i.value:n}function Ya(e,t,n=[]){const r=ge(e,n);return Array.isArray(t)?t.filter(i=>!ue(i,r)):ue(r,t)?void 0:t}function On(e,t){return Array.isArray(t)?t.some(n=>ue(n,e)):ue(t,e)}function Ja(e,t=[],n=!1){const r=t.map((i,s)=>On(i.value,e)?String(s):void 0).filter(i=>typeof i<"u");return n?r:r[0]}function Xa(e,t,n=[]){const r=ge(e,n);if(!Vn(r)){const i=n.findIndex(a=>r===a.value),s=n.map(({value:a})=>a);return t.slice(0,i).concat(r,t.slice(i)).sort((a,l)=>+(s.indexOf(a)>s.indexOf(l)))}return t}var qg=1,Gg=4;function _i(e){return tn(e,qg|Gg)}function Hg(e,t,n,r){return r=typeof r=="function"?r:void 0,e==null?e:mi(e,t,n,r)}class Qa{constructor(t){this.errorSchema={},this.resetAllErrors(t)}get ErrorSchema(){return this.errorSchema}getOrCreateErrorBlock(t){let r=Array.isArray(t)&&t.length>0||typeof t=="string"?N(this.errorSchema,t):this.errorSchema;return!r&&t&&(r={},Hg(this.errorSchema,t,r,Object)),r}resetAllErrors(t){return this.errorSchema=t?_i(t):{},this}addErrors(t,n){const r=this.getOrCreateErrorBlock(n);let i=N(r,be);return Array.isArray(i)||(i=[],r[be]=i),Array.isArray(t)?se(r,be,[...new Set([...i,...t])]):se(r,be,[...new Set([...i,t])]),this}setErrors(t,n){const r=this.getOrCreateErrorBlock(n),i=Array.isArray(t)?[...new Set([...t])]:[t];return se(r,be,i),this}clearErrors(t){const n=this.getOrCreateErrorBlock(t);return se(n,be,[]),this}}function Yg(e,t){if(e==null)return{};var n=Ut(xi(e),function(r){return[r]});return t=hi(t),Wa(e,n,function(r,i){return t(r,i[0])})}var Jg=200;function Xg(e,t,n,r){var i=-1,s=bi,o=!0,a=e.length,l=[],d=t.length;if(!a)return l;t.length>=Jg&&(s=cn,o=!1,t=new yt(t));e:for(;++i<a;){var u=e[i],c=u;if(u=u!==0?u:0,o&&c===c){for(var p=d;p--;)if(t[p]===c)continue e;l.push(u)}else s(t,c,r)||l.push(u)}return l}var Qg=Xn(function(e,t){return un(e)?Xg(e,wn(t,1,un,!0)):[]});function Us(e,t){const n=ot(e),r=ot(t);if(e===t||!n&&!r)return[];if(n&&!r)return Te(e);if(!n&&r)return Te(t);{const i=Te(Yg(e,(o,a)=>!ue(o,N(t,a)))),s=Qg(Te(t),Te(e));return[...i,...s]}}function Zg(e,t,n=[1900,new Date().getFullYear()+2],r="YMD"){const{day:i,month:s,year:o,hour:a,minute:l,second:d}=e,u={type:"day",range:[1,31],value:i},c={type:"month",range:[1,12],value:s},p={type:"year",range:n,value:o},y=[];switch(r){case"MDY":y.push(c,u,p);break;case"DMY":y.push(u,c,p);break;default:y.push(p,c,u)}return t&&y.push({type:"hour",range:[0,23],value:a},{type:"minute",range:[0,59],value:l},{type:"second",range:[0,59],value:d}),y}function Za(e){const t={};return e.multipleOf&&(t.step=e.multipleOf),(e.minimum||e.minimum===0)&&(t.min=e.minimum),(e.maximum||e.maximum===0)&&(t.max=e.maximum),t}function el(e,t,n={},r=!0){const i={type:t||"text",...Za(e)};return n.inputType?i.type=n.inputType:t||(e.type==="number"?(i.type="number",r&&i.step===void 0&&(i.step="any")):e.type==="integer"&&(i.type="number",i.step===void 0&&(i.step=1))),n.autocomplete&&(i.autoComplete=n.autocomplete),n.accept&&(i.accept=n.accept),i}const Ls={props:{disabled:!1},submitText:"Submit",norender:!1};function tl(e={}){const t=U(e);if(t&&t[Mn]){const n=t[Mn];return{...Ls,...n}}return Ls}function V(e,t,n={}){const{templates:r}=t;if(e==="ButtonTemplates")return r[e];if(Object.hasOwn(n,e)&&typeof n[e]=="string"&&Object.hasOwn(r,n[e])){const i=n[e];return r[i]}return n[e]||r[e]}var ey=0;function nl(e){var t=++ey;return ui(e)+t}function Fi(){if(typeof process>"u"||N(process,"env.NODE_ENV")!=="test")return{};const e=new Map;return new Proxy({},{get(t,n){return e.has(n)||e.set(n,nl("test-id-")),e.get(n)}})}const br={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",time:"TimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function ty(e){let t=N(e,"MergedWidget");if(!t){const n=e.defaultProps&&e.defaultProps.options||{};t=({options:r,...i})=>m.jsx(e,{options:{...n,...r},...i}),se(e,"MergedWidget",t)}return t}function Ve(e,t,n={}){const r=Ne(e);if(typeof t=="function"||t&&qi.isForwardRef(I.createElement(t))||qi.isMemo(t))return ty(t);if(typeof t!="string")throw new Error(`Unsupported widget definition: ${typeof t} in schema: ${JSON.stringify(e)}`);if(t in n){const i=n[t];return Ve(e,i,n)}if(typeof r=="string"){if(!(r in br))throw new Error(`No widget for type '${r}' in schema: ${JSON.stringify(e)}`);if(t in br[r]){const i=n[br[r][t]];return Ve(e,i,n)}}throw new Error(`No widget '${t}' for type '${r}' in schema: ${JSON.stringify(e)}`)}function ny(e){let t=0;for(let n=0;n<e.length;n+=1){const r=e.charCodeAt(n);t=(t<<5)-t+r,t=t&t}return t.toString(16)}function ry(e){const t=new Set;return JSON.stringify(e,(n,r)=>(t.add(n),r)),JSON.stringify(e,Array.from(t).sort())}function Me(e){return ny(ry(e))}function iy(e){return Me(e)}function sy(e,t,n={}){try{return Ve(e,t,n),!0}catch(r){const i=r;if(i.message&&(i.message.startsWith("No widget")||i.message.startsWith("Unsupported widget")))return!1;throw r}}function At(e,t){return`${at(e)?e:e[oe]}__${t}`}function Ct(e){return At(e,"description")}function Ti(e){return At(e,"error")}function Zn(e){return At(e,"examples")}function Ii(e){return At(e,"help")}function er(e){return At(e,"title")}function Se(e,t=!1){const n=t?` ${Zn(e)}`:"";return`${Ti(e)} ${Ct(e)} ${Ii(e)}${n}`}function pt(e,t){return`${e}-${t}`}function Be(e,t){return At(e,t)}function xr(e,t){return At(e,`optional${t}`)}function zt(e){return!Vn(e)&&(!ee(e)||Array.isArray(e)||!me(e))}function oy(e,t){const{rootSchema:n,schemaUtils:r}=e;if(rt(t,n))return!0;if(ae in n){const i=r.retrieveSchema(n);return rt(t,i)}return!1}function rl(e,t,n){return t?n:e}function ay(e){return e?new Date(e).toJSON():void 0}function Ni(e,t,n){const r=[Ou];return X(e,Yi)&&r.unshift(Yi),N(e,[...r,t],n)}function ly(e,t){if(!Array.isArray(t))return e;const n=u=>u.reduce((c,p)=>(c[p]=!0,c),{}),r=u=>u.length>1?`properties '${u.join("', '")}'`:`property '${u[0]}'`,i=n(e),s=t.filter(u=>u==="*"||i[u]),o=n(s),a=e.filter(u=>!o[u]),l=s.indexOf("*");if(l===-1){if(a.length)throw new Error(`uiSchema order list does not contain ${r(a)}`);return s}if(l!==s.lastIndexOf("*"))throw new Error("uiSchema order list contains more than one wildcard item");const d=[...s];return d.splice(l,1,...a),d}function vr(e,t=!0){if(!e)return{year:-1,month:-1,day:-1,hour:t?-1:0,minute:t?-1:0,second:t?-1:0};const n=new Date(e);if(Number.isNaN(n.getTime()))throw new Error("Unable to parse date "+e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:t?n.getUTCHours():0,minute:t?n.getUTCMinutes():0,second:t?n.getUTCSeconds():0}}const cy=[ht,on],uy=[q,Q,qe];function $n(e,t,n,r=new Set){const{rootSchema:i,uiSchemaDefinitions:s}=n;let o={...t},a=e;const l=e[ae],d=l&&r.has(l);if(l){if(r.add(l),s&&l in s&&(o=xt(s[l],o)),d)return o;try{a=wi(l,i)}catch{a=e}}const u=a[te];if(u&&H(u))for(const[c,p]of Object.entries(u)){const y=o[c]||{},f=$n(p,y,n,new Set(r));Object.keys(f).length>0&&(o[c]=f)}for(const c of cy){const p=a[c];if(p&&H(p)&&!Array.isArray(p)){const y=o[c];if(typeof y!="function"){const h=$n(p,y||{},n,new Set(r));Object.keys(h).length>0&&(o[c]=h)}}}for(const c of uy){const p=a[c];if(Array.isArray(p)&&p.length>0){const y=o[c],f=Array.isArray(y)?[...y]:[];let h=!1;for(let g=0;g<p.length;g++){const b=p[g],S=f[g]||{},O=$n(b,S,n,new Set(r));Object.keys(O).length>0&&(f[g]=O,h=!0)}h&&(o[c]=f)}}return o}function dy(e,t,n){var r;const i=e[ae],s=i?(r=n.uiSchemaDefinitions)===null||r===void 0?void 0:r[i]:void 0;return s?!t||Object.keys(t).length===0?{...s}:xt(s,t):t||{}}function nn(e){if(e.const||e.enum&&e.enum.length===1&&e.enum[0]===!0)return!0;if(e.anyOf&&e.anyOf.length===1)return nn(e.anyOf[0]);if(e.oneOf&&e.oneOf.length===1)return nn(e.oneOf[0]);if(e.allOf){const t=n=>nn(n);return e.allOf.some(t)}return!1}function il(e,t,n,r="customDeep"){if(r==="always")return!0;if(r==="shallow"){const{props:o,state:a}=e;return!Bs(o,t)||!Bs(a,n)}const{props:i,state:s}=e;return!ue(i,t)||!ue(s,n)}function Vs(e){const t=ya(e.map(n=>ee(n)?Ne(n):void 0).flat().filter(n=>n!==void 0));return t.length===1?t[0]:t}function jn(e,t,n,r){const{enableOptionalDataFieldForType:i=[]}=U(r,e.globalUiOptions);let s;return Q in t&&Array.isArray(t[Q])?s=Vs(t[Q]):q in t&&Array.isArray(t[q])?s=Vs(t[q]):s=Ne(t),!oy(e,t)&&!n&&!!s&&!Array.isArray(s)&&!!i.find(o=>o===s)}function zs(e,t=!0){const{year:n,month:r,day:i,hour:s=0,minute:o=0,second:a=0}=e,l=Date.UTC(n,r-1,i,s,o,a),d=new Date(l).toJSON();return t?d:d.slice(0,10)}function Pi(e,t=[]){if(!e)return[];let n=[];return be in e&&(n=n.concat(e[be].map(r=>{const i=`.${t.join(".")}`;return{property:i,message:r,stack:`${i} ${r}`}}))),Object.keys(e).reduce((r,i)=>{if(i!==be){const s=e[i];ot(s)&&(r=r.concat(Pi(s,[...t,i])))}return r},n)}function sl(e){return ye(e)?Ut(e,jt):vn(e)?[e]:yi(Jo(ui(e)))}function fy(e){const t=new Qa;return e.length&&e.forEach(n=>{const{property:r,message:i}=n,s=r==="."?[]:sl(r);s.length>0&&s[0]===""&&s.splice(0,1),i&&t.addErrors(i,s)}),t.ErrorSchema}function Ee(e,t,n,r){const i=Array.isArray(n)?n:n?.path,s=e===""?[]:[e],o=i?i.concat(...s):s,a=[t.idPrefix,...o].join(t.idSeparator);let l;return t.nameGenerator&&o.length>0&&(l=t.nameGenerator(o,t.idPrefix,r)),{path:o,[oe]:a,...l!==void 0&&{name:l}}}function ol(e){return Object.keys(e).reduce((t,n)=>{if(n==="addError")return t;{const r=e[n];return ot(r)?{...t,[n]:ol(r)}:{...t,[n]:r}}},{})}function my(e){return Object.values(e).every(t=>t!==-1)}function py(e){const{className:t="form-control",type:n,range:r,value:i,select:s,rootId:o,name:a,disabled:l,readonly:d,autofocus:u,registry:c,onBlur:p,onFocus:y}=e,f=`${o}_${n}`,{SelectWidget:h}=c.widgets,g=I.useCallback(b=>s(n,b),[s,n]);return m.jsx(h,{schema:{type:"integer"},id:f,name:a,className:t,options:{enumOptions:Ha(r[0],r[1])},placeholder:n,value:i,disabled:l,readonly:d,autofocus:u,onChange:g,onBlur:p,onFocus:y,registry:c,label:"","aria-describedby":Se(o)})}function hy(e){const{time:t=!1,disabled:n=!1,readonly:r=!1,options:i,onChange:s,value:o}=e,[a,l]=I.useState(vr(o,t));I.useEffect(()=>{l(vr(o,t))},[t,o]);const d=I.useCallback((y,f)=>{const h={...a,[y]:typeof f>"u"?-1:f};my(h)?s(zs(h,t)):l(h)},[a,s,t]),u=I.useCallback(y=>{y.preventDefault(),!(n||r)&&s(void 0)},[n,r,s]),c=I.useCallback(y=>{if(y.preventDefault(),n||r)return;const f=vr(new Date().toJSON(),t);s(zs(f,t))},[n,r,t,s]);return{elements:I.useMemo(()=>Zg(a,t,i.yearsRange,i.format),[a,t,i.yearsRange,i.format]),handleChange:d,handleClear:u,handleSetNow:c}}function Et(e){const t=I.useRef(e);return rt(e,t.current)||(t.current=e),t.current}function gy(e,t){return e.replace(";base64",`;name=${encodeURIComponent(t)};base64`)}function yy(e){const{name:t,size:n,type:r}=e;return new Promise((i,s)=>{const o=new window.FileReader;o.onerror=s,o.onload=a=>{var l;typeof((l=a.target)===null||l===void 0?void 0:l.result)=="string"?i({dataURL:gy(a.target.result,t),name:t,size:n,type:r}):i({dataURL:null,name:t,size:n,type:r})},o.readAsDataURL(e)})}function by(e){return Promise.all(Array.from(e).map(yy))}function Ws(e){return e.reduce((t,n)=>{if(!n)return t;try{const{blob:r,name:i}=zg(n);return[...t,{dataURL:n,name:i,size:r.size,type:r.type}]}catch{return t}},[])}function xy(e,t,n=!1){const r=I.useMemo(()=>n&&e?Array.isArray(e)?e:[e]:[],[e,n]),i=I.useMemo(()=>Array.isArray(e)?Ws(e):Ws([e||""]),[e]),s=I.useCallback(a=>{by(a).then(l=>{const d=l.map(u=>u.dataURL||null);t(n?r.concat(...d):d[0])})},[r,n,t]),o=I.useCallback(a=>{if(n){const l=r.filter((d,u)=>u!==a);t(l)}else t(void 0)},[r,n,t]);return{filesInfo:i,handleChange:s,handleRemove:o}}function vy(e){if(!e)return"";const t=new Date(e),n=et(t.getFullYear(),4),r=et(t.getMonth()+1,2),i=et(t.getDate(),2),s=et(t.getHours(),2),o=et(t.getMinutes(),2),a=et(t.getSeconds(),2),l=et(t.getMilliseconds(),3);return`${n}-${r}-${i}T${s}:${o}:${a}.${l}`}function Rn(e,t,n=!1){if(!t)return e;const{errors:r,errorSchema:i}=e;let s=Pi(t),o=t;return me(i)||(o=xt(i,t,n?"preventDuplicates":!0),s=[...r].concat(s)),{errorSchema:o,errors:s}}function Sy(e){for(const t in e){const n=e,r=n[t];t===ae&&typeof r=="string"&&r.startsWith("#")?n[t]=$o+r:n[t]=Di(r)}return e}function wy(e){for(let t=0;t<e.length;t++)e[t]=Di(e[t]);return e}function Di(e){return Array.isArray(e)?wy([...e]):ee(e)?Sy({...e}):e}var G;(function(e){e.ArrayItemTitle="Item",e.MissingItems="Missing items definition",e.EmptyArray="No items yet. Use the button below to add some.",e.YesLabel="Yes",e.NoLabel="No",e.CloseLabel="Close",e.ErrorsLabel="Errors",e.NewStringDefault="New Value",e.AddButton="Add",e.AddItemButton="Add Item",e.CopyButton="Copy",e.MoveDownButton="Move down",e.MoveUpButton="Move up",e.RemoveButton="Remove",e.NowLabel="Now",e.ClearLabel="Clear",e.AriaDateLabel="Select a date",e.PreviewLabel="Preview",e.DecrementAriaLabel="Decrease value by 1",e.IncrementAriaLabel="Increase value by 1",e.OptionalObjectAdd="Add data for optional field",e.OptionalObjectRemove="Remove data for optional field",e.OptionalObjectEmptyMsg="No data for optional field",e.Type="Type",e.Value="Value",e.ClearButton="clear input",e.UnknownFieldType="Unknown field type %1",e.OptionPrefix="Option %1",e.TitleOptionPrefix="%1 option %2",e.KeyLabel="%1 Key",e.InvalidObjectField='Invalid "%1" object field configuration: _%2_.',e.UnsupportedField="Unsupported field schema.",e.UnsupportedFieldWithId="Unsupported field schema for field `%1`.",e.UnsupportedFieldWithReason="Unsupported field schema: _%1_.",e.UnsupportedFieldWithIdAndReason="Unsupported field schema for field `%1`: _%2_.",e.FilesInfo="**%1** (%2, %3 bytes)"})(G||(G={}));function Oy(e,t){var n=ye(e)?pi:ka;return n(e,Zo(t))}function jy(e,t){return e==null?!0:Ca(e,t)}function zr(){return nl("rjsf-array-item-")}function Ks(e){return Array.isArray(e)?e.map(t=>({key:zr(),item:t})):[]}function al(e){return Array.isArray(e)?e.map(t=>t.item):[]}function Ay(e){return Array.isArray(e.type)?!e.type.includes("null"):e.type!=="null"}function ll(e,t,n,r){let{addable:i}=U(r,e.globalUiOptions);return i!==!1&&(t.maxItems!==void 0?i=n.length<t.maxItems:i=!0),i}function cl(e,t,n,r){if(typeof e.items=="function")try{return e.items(t,n,r)}catch(i){console.error(`Error executing dynamic uiSchema.items function for item at index ${n}:`,i);return}else return e.items}function Cy(e,t){const{schemaUtils:n,globalFormOptions:r}=e;let i=t.items;return r.useFallbackUiForUnsupportedType&&!i?i={}:ji(t)&&xu(t)&&(i=t.additionalItems),n.getDefaultFormState(i)}function Ey(e){const{schema:t,fieldPathId:n,uiSchema:r,formData:i=[],disabled:s=!1,readonly:o=!1,autofocus:a=!1,required:l=!1,placeholder:d,onBlur:u,onFocus:c,registry:p,rawErrors:y,name:f,onSelectChange:h}=e,{widgets:g,schemaUtils:b,globalFormOptions:S,globalUiOptions:O}=p,v=b.retrieveSchema(t.items,i),x=kt(v,r),{widget:w="select",title:j,...A}=U(r,O),E=Ve(t,w,g),C=j??t.title??f,F=b.getDisplayLabel(t,r,O),_=Et(Ee("",S,n,!0));return m.jsx(E,{id:_[oe],name:f,multiple:!0,onChange:h,onBlur:u,onFocus:c,options:{...A,enumOptions:x},schema:t,uiSchema:r,registry:p,value:i,disabled:s,readonly:o,required:l,label:C,hideLabel:!F,placeholder:d,autofocus:a,rawErrors:y,htmlName:_.name})}function _y(e){const{schema:t,fieldPathId:n,uiSchema:r,disabled:i=!1,readonly:s=!1,autofocus:o=!1,required:a=!1,hideError:l,placeholder:d,onBlur:u,onFocus:c,formData:p=[],registry:y,rawErrors:f,name:h,onSelectChange:g}=e,{widgets:b,schemaUtils:S,globalFormOptions:O,globalUiOptions:v}=y,{widget:x,title:w,...j}=U(r,v),A=Ve(t,x,b),E=w??t.title??h,C=S.getDisplayLabel(t,r,v),F=Et(Ee("",O,n,!0));return m.jsx(A,{id:F[oe],name:h,multiple:!0,onChange:g,onBlur:u,onFocus:c,options:j,schema:t,uiSchema:r,registry:y,value:p,disabled:i,readonly:s,hideError:l,required:a,label:E,hideLabel:!C,placeholder:d,autofocus:o,rawErrors:f,htmlName:F.name})}function Fy(e){const{schema:t,uiSchema:n,fieldPathId:r,name:i,disabled:s=!1,readonly:o=!1,autofocus:a=!1,required:l=!1,onBlur:d,onFocus:u,registry:c,formData:p=[],rawErrors:y,onSelectChange:f}=e,{widgets:h,schemaUtils:g,globalFormOptions:b,globalUiOptions:S}=c,{widget:O="files",title:v,...x}=U(n,S),w=Ve(t,O,h),j=v??t.title??i,A=g.getDisplayLabel(t,n,S),E=Et(Ee("",b,r,!0));return m.jsx(w,{options:x,id:E[oe],name:i,multiple:!0,onChange:f,onBlur:d,onFocus:u,schema:t,uiSchema:n,value:p,disabled:s,readonly:o,required:l,registry:c,autofocus:a,rawErrors:y,label:j,hideLabel:!A,htmlName:E.name})}function ul(e){const{itemKey:t,index:n,name:r,disabled:i,hideError:s,readonly:o,registry:a,uiOptions:l,parentUiSchema:d,canAdd:u,canRemove:c=!0,canMoveUp:p,canMoveDown:y,itemSchema:f,itemData:h,itemUiSchema:g,itemFieldPathId:b,itemErrorSchema:S,autofocus:O,onBlur:v,onFocus:x,onChange:w,rawErrors:j,totalItems:A,title:E,handleAddItem:C,handleCopyItem:F,handleRemoveItem:_,handleReorderItems:T}=e,{schemaUtils:$,fields:{ArraySchemaField:D,SchemaField:P},globalUiOptions:k}=a,M=Et(b),B=D||P,W=V("ArrayFieldItemTemplate",a,l),R=$.getDisplayLabel(f,g,k),{description:L}=U(g),Z=!!L||!!f.description,{orderable:z=!0,removable:ne=!0,copyable:le=!1}=l,re={moveUp:z&&p,moveDown:z&&y,copy:le&&u,remove:ne&&c,toolbar:!1};re.toolbar=Object.keys(re).some(he=>re[he]);const K=I.useCallback(he=>{C(he,n+1)},[C,n]),J=I.useCallback(he=>{F(he,n)},[F,n]),ie=I.useCallback(he=>{_(he,n)},[_,n]),de=I.useCallback(he=>{T(he,n,n-1)},[T,n]),Fe=I.useCallback(he=>{T(he,n,n+1)},[T,n]),ve={children:m.jsx(B,{name:r,title:E,index:n,schema:f,uiSchema:g,formData:h,errorSchema:S,fieldPathId:M,required:Ay(f),onChange:w,onBlur:v,onFocus:x,registry:a,disabled:i,readonly:o,hideError:s,autofocus:O,rawErrors:j}),buttonsProps:{fieldPathId:M,disabled:i,readonly:o,canAdd:u,hasCopy:re.copy,hasMoveUp:re.moveUp,hasMoveDown:re.moveDown,hasRemove:re.remove,index:n,totalItems:A,onAddItem:K,onCopyItem:J,onRemoveItem:ie,onMoveUpItem:de,onMoveDownItem:Fe,registry:a,schema:f,uiSchema:g},itemKey:t,className:"rjsf-array-item",disabled:i,hasToolbar:re.toolbar,index:n,totalItems:A,readonly:o,registry:a,schema:f,uiSchema:g,parentUiSchema:d,displayLabel:R,hasDescription:Z};return m.jsx(W,{...ve})}function Ty(e){const{schema:t,uiSchema:n={},errorSchema:r,fieldPathId:i,formData:s,name:o,title:a,disabled:l=!1,readonly:d=!1,autofocus:u=!1,required:c=!1,hideError:p=!1,registry:y,onBlur:f,onFocus:h,rawErrors:g,onChange:b,keyedFormData:S,handleAddItem:O,handleCopyItem:v,handleRemoveItem:x,handleReorderItems:w}=e,j=t.title||a||o,{schemaUtils:A,fields:E,formContext:C,globalFormOptions:F,globalUiOptions:_}=y,{OptionalDataControlsField:T}=E,$=U(n,_),D=ee(t.items)?t.items:{},P=A.retrieveSchema(D),k=al(S),M=jn(y,t,c,n),B=zt(s),W=ll(y,t,k,n)&&(!M||B),R=B?S:[],L=M?" rjsf-optional-array-field":"",Z=e.childFieldPathId??i,z=M?m.jsx(T,{...e,fieldPathId:Z}):void 0,ne={canAdd:W,items:R.map((re,K)=>{const{key:J,item:ie}=re,de=ie,Fe=A.retrieveSchema(D,de),ve=r?r[K]:void 0,he=Ee(K,F,Z),we=cl(n,ie,K,C),Xe={itemKey:J,index:K,name:o&&`${o}-${K}`,registry:y,uiOptions:$,hideError:p,readonly:d,disabled:l,required:c,title:j?`${j}-${K+1}`:void 0,canAdd:W,canMoveUp:K>0,canMoveDown:K<k.length-1,itemSchema:Fe,itemFieldPathId:he,itemErrorSchema:ve,itemData:de,itemUiSchema:we,autofocus:u&&K===0,onBlur:f,onFocus:h,rawErrors:g,totalItems:S.length,handleAddItem:O,handleCopyItem:v,handleRemoveItem:x,handleReorderItems:w,onChange:b};return m.jsx(ul,{...Xe},J)}),className:`rjsf-field rjsf-field-array rjsf-field-array-of-${P.type}${L}`,disabled:l,fieldPathId:i,uiSchema:n,onAddClick:O,readonly:d,required:c,schema:t,title:j,formData:k,rawErrors:g,registry:y,optionalDataControl:z},le=V("ArrayFieldTemplate",y,$);return m.jsx(le,{...ne})}function Iy(e){const{schema:t,uiSchema:n={},formData:r,errorSchema:i,fieldPathId:s,name:o,title:a,disabled:l=!1,readonly:d=!1,autofocus:u=!1,required:c=!1,hideError:p=!1,registry:y,onBlur:f,onFocus:h,rawErrors:g,keyedFormData:b,onChange:S,handleAddItem:O,handleCopyItem:v,handleRemoveItem:x,handleReorderItems:w}=e;let{formData:j=[]}=e;const A=t.title||a||o,{schemaUtils:E,fields:C,formContext:F,globalFormOptions:_,globalUiOptions:T}=y,$=U(n,T),{OptionalDataControlsField:D}=C,P=jn(y,t,c,n),k=zt(r),B=(ee(t.items)?t.items:[]).map((K,J)=>E.retrieveSchema(K,j[J])),W=ee(t.additionalItems)?E.retrieveSchema(t.additionalItems,r):null,R=e.childFieldPathId??s;j.length<B.length&&(j=j.concat(new Array(B.length-j.length)));const L=k?b:[],Z=P?" rjsf-optional-array-field":"",z=P?m.jsx(D,{...e,fieldPathId:R}):void 0,ne=ll(y,t,j,n)&&!!W&&(!P||k),le={canAdd:ne,className:`rjsf-field rjsf-field-array rjsf-field-array-fixed-items${Z}`,disabled:l,fieldPathId:s,formData:r,items:L.map((K,J)=>{const{key:ie,item:de}=K,Fe=de,ve=J>=B.length,he=(ve&&ee(t.additionalItems)?E.retrieveSchema(t.additionalItems,Fe):B[J])||{},we=Ee(J,_,R);let Xe;ve?Xe=n.additionalItems:Array.isArray(n.items)?Xe=n.items[J]:Xe=cl(n,de,J,F);const qt=i?i[J]:void 0,Gt={index:J,itemKey:ie,name:o&&`${o}-${J}`,registry:y,uiOptions:$,hideError:p,readonly:d,disabled:l,required:c,title:A?`${A}-${J+1}`:void 0,canAdd:ne,canRemove:ve,canMoveUp:J>=B.length+1,canMoveDown:ve&&J<j.length-1,itemSchema:he,itemData:Fe,itemUiSchema:Xe,itemFieldPathId:we,itemErrorSchema:qt,autofocus:u&&J===0,onBlur:f,onFocus:h,rawErrors:g,totalItems:b.length,onChange:S,handleAddItem:O,handleCopyItem:v,handleRemoveItem:x,handleReorderItems:w};return m.jsx(ul,{...Gt},ie)}),onAddClick:O,readonly:d,required:c,registry:y,schema:t,uiSchema:n,title:A,errorSchema:i,rawErrors:g,optionalDataControl:z},re=V("ArrayFieldTemplate",y,$);return m.jsx(re,{...le})}function Ny(e=[]){const t=I.useMemo(()=>Me(e),[e]),[n,r]=I.useState(()=>({formDataHash:t,keyedFormData:Ks(e)}));let{keyedFormData:i,formDataHash:s}=n;if(t!==s){const a=Array.isArray(e)?e:[],l=i||[];i=a.length===l.length?l.map((d,u)=>({key:d.key,item:a[u]})):Ks(a),s=t,r({formDataHash:s,keyedFormData:i})}const o=I.useCallback(a=>{const l=al(a),d=Me(l);return r({formDataHash:d,keyedFormData:a}),l},[]);return{keyedFormData:i,updateKeyedFormData:o}}function Py(e){const{schema:t,uiSchema:n,errorSchema:r,fieldPathId:i,registry:s,formData:o,onChange:a}=e,{globalFormOptions:l,schemaUtils:d,translateString:u}=s,{keyedFormData:c,updateKeyedFormData:p}=Ny(o),y=e.childFieldPathId??i,f=I.useCallback((w,j)=>{w&&w.preventDefault();let A;if(r){A={};for(const F in r){const _=parseInt(F);j===void 0||_<j?se(A,[_],r[F]):_>=j&&se(A,[_+1],r[F])}}const E={key:zr(),item:Cy(s,t)},C=[...c];j!==void 0?C.splice(j,0,E):C.push(E),a(p(C),y.path,A)},[c,s,t,a,p,r,y]),h=I.useCallback((w,j)=>{w&&w.preventDefault();let A;if(r){A={};for(const F in r){const _=parseInt(F);_<=j?se(A,[_],r[F]):_>j&&se(A,[_+1],r[F])}}const E={key:zr(),item:_i(c[j].item)},C=[...c];j!==void 0?C.splice(j+1,0,E):C.push(E),a(p(C),y.path,A)},[c,a,p,r,y]),g=I.useCallback((w,j)=>{w&&w.preventDefault();let A;if(r){A={};for(const C in r){const F=parseInt(C);F<j?se(A,[F],r[C]):F>j&&se(A,[F-1],r[C])}}const E=c.filter((C,F)=>F!==j);a(p(E),y.path,A)},[c,a,p,r,y]),b=I.useCallback((w,j,A)=>{w&&(w.preventDefault(),w.currentTarget.blur());let E;if(r){E={};for(const _ in r){const T=parseInt(_);T==j?se(E,[A],r[j]):T==A?se(E,[j],r[A]):se(E,[_],r[T])}}function C(){const _=c.slice();return _.splice(j,1),_.splice(A,0,c[j]),_}const F=C();a(p(F),y.path,E)},[c,a,p,r,y]),S=I.useCallback((w,j,A,E)=>{a(w===void 0?null:w,j,A,E)},[a]),O=I.useCallback(w=>{a(w,y.path,void 0,y?.[oe])},[a,y]),v={...e,formData:o,fieldPathId:y,onSelectChange:O},x={...e,handleAddItem:f,handleCopyItem:h,handleRemoveItem:g,handleReorderItems:b,keyedFormData:c,onChange:S};if(!(ht in t)){if(!l.useFallbackUiForUnsupportedType){const j=U(n),A=V("UnsupportedFieldTemplate",s,j);return m.jsx(A,{schema:t,fieldPathId:i,reason:u(G.MissingItems),registry:s})}const w={...t,[ht]:{type:void 0}};v.schema=w,x.schema=w}return d.isMultiSelect(v.schema)?m.jsx(Ey,{...v}):Va(n)?m.jsx(_y,{...v}):ji(v.schema)?m.jsx(Iy,{...x}):d.isFilesArray(v.schema,n)?m.jsx(Fy,{...v}):m.jsx(Ty,{...x})}function Dy(e){const{schema:t,name:n,uiSchema:r,fieldPathId:i,formData:s,registry:o,required:a,disabled:l,readonly:d,hideError:u,autofocus:c,title:p,onChange:y,onFocus:f,onBlur:h,rawErrors:g}=e,{title:b}=t,{widgets:S,translateString:O,globalUiOptions:v}=o,{widget:x="checkbox",title:w,label:j=!0,enumNames:A,...E}=U(r,v),C=Ve(t,x,S),F=O(G.YesLabel),_=O(G.NoLabel);let T;const $=w??b??p??n;if(Array.isArray(t.oneOf))T=kt({oneOf:t.oneOf.map(P=>{if(ee(P))return{...P,title:P.title||(P.const===!0?F:_)}}).filter(P=>P)},r);else{const P=t.enum??[!0,!1];!A&&P.length===2&&P.every(k=>typeof k=="boolean")?T=[{value:P[0],label:P[0]?F:_},{value:P[1],label:P[1]?F:_}]:T=kt({enum:P},r)}const D=I.useCallback((P,k,M)=>y(P,i.path,k,M),[y,i]);return m.jsx(C,{options:{...E,enumOptions:T},schema:t,uiSchema:r,id:i.$id,name:n,onChange:D,onFocus:f,onBlur:h,label:$,hideLabel:!j,value:s,required:a,disabled:l,readonly:d,hideError:u,registry:o,autofocus:c,rawErrors:g,htmlName:i.name})}function $y(e){return{type:"string",enum:["string","number","boolean","object","array"],default:"string",title:e}}function Ry(e){const t=typeof e;return t==="string"||t==="number"||t==="boolean"?t:t==="object"?Array.isArray(e)?"array":"object":"string"}function ky(e,t){switch(t){case"string":return String(e);case"number":{const n=Number(e);return isNaN(n)?0:n}case"boolean":return!!e;default:return e}}function My(e){const{id:t,formData:n,displayLabel:r=!0,schema:i,name:s,uiSchema:o,required:a,disabled:l=!1,readonly:d=!1,onBlur:u,onFocus:c,registry:p,fieldPathId:y,onChange:f,errorSchema:h}=e,{translateString:g,fields:b,globalFormOptions:S}=p,[O,v]=I.useState(Ry(n)),x=U(o),w=Et(Ee("__internal_type_selector",S,y)),j=g(G.Type),A=I.useMemo(()=>$y(j),[j]),E=_=>{_!=null&&(v(_),f(ky(n,_),y.path,h,t))};if(!S.useFallbackUiForUnsupportedType){const{reason:_=g(G.UnknownFieldType,[String(i.type)])}=e,T=V("UnsupportedFieldTemplate",p,x);return m.jsx(T,{schema:i,fieldPathId:y,reason:_,registry:p})}const C=V("FallbackFieldTemplate",p,x),{SchemaField:F}=b;return m.jsx(C,{schema:i,registry:p,typeSelector:m.jsx(F,{fieldPathId:w,name:`${s}__fallback_type`,schema:A,formData:O,onChange:E,onBlur:u,onFocus:c,registry:p,hideLabel:!r,disabled:l,readonly:d,required:a},n?Me(n):"__empty__"),schemaField:m.jsx(F,{...e,schema:{type:O,title:g(G.Value),...O==="object"&&{additionalProperties:!0}}})})}function By(e,t){return Ut(t,function(n){return e[n]})}function Uy(e){return e==null?[]:By(e,Te(e))}var Ly=Math.max;function Vy(e,t,n,r){e=Ot(e)?e:Uy(e),n=n?ea(n):0;var i=e.length;return n<0&&(n=Ly(i+n,0)),at(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&ha(e,t,n)>-1}var zy=Math.min;function Wy(e,t,n){for(var r=bi,i=e[0].length,s=e.length,o=s,a=Array(s),l=1/0,d=[];o--;){var u=e[o];l=zy(u.length,l),a[o]=i>=120&&u.length>=120?new yt(o&&u):void 0}u=e[0];var c=-1,p=a[0];e:for(;++c<i&&d.length<l;){var y=u[c],f=y;if(y=y!==0?y:0,!(p?cn(p,f):r(d,f))){for(o=s;--o;){var h=a[o];if(!(h?cn(h,f):r(e[o],f)))continue e}p&&p.push(f),d.push(y)}}return d}function Ky(e){return un(e)?e:[]}var qs=Xn(function(e){var t=Ut(e,Ky);return t.length&&t[0]===e[0]?Wy(t):[]});function dl(e){return e===void 0}var Ue;(function(e){e.ROW="ui:row",e.COLUMN="ui:col",e.COLUMNS="ui:columns",e.CONDITION="ui:condition"})(Ue||(Ue={}));var rn;(function(e){e.ALL="all",e.SOME="some",e.NONE="none"})(rn||(rn={}));const qy=/^\$lookup=(.+)/,Sr="layoutGrid";function Gs(e,t){return e??t}function Gy(e){return/^\d+?$/.test(e)}const st=Fi();function Hy(e,t,n,r,i){const s=N(n,[Ir],{}),o=N(n,e),a={...N(o,[nt],{}),...t,...s},l={...o};me(a)||se(l,[nt],a),me(s)||se(l,[Ir],s);let{readonly:d}=U(l);return(i===!0||dl(d)&&r===!0)&&(d=!0,X(a,ir)?se(l,[nt,ir],!0):se(l,`ui:${ir}`,!0)),{fieldUiSchema:l,uiReadonly:d}}function Yy(e,t,n="$0m3tH1nG Un3xP3cT3d"){const r=Br([t]).sort(),i=Br([n]).sort();switch(e){case rn.ALL:return rt(r,i);case rn.SOME:return qs(r,i).length>0;case rn.NONE:return qs(r,i).length===0;default:return!1}}function tr(e,t,n){let r={},i=e[t];if(ot(i)){const{children:s,className:o,...a}=i;if(i=s,o){const d=o.split(" ").map(u=>Ni(n,u,u)).join(" ");r={...a,className:d}}else r=a}if(!Array.isArray(i))throw new TypeError(`Expected array for "${t}" in ${JSON.stringify(e)}`);return{children:i,gridProps:r}}function Hs(e,t,n){let r;if(Gy(n)&&e&&e?.type==="array"&&X(e,ht)){const i=Number(n),s=e[ht];Array.isArray(s)?i>s.length?r=Aa(s):r=s[i]:r=s,t={[oe]:t[oe],path:[...t.path.slice(0,t.path.length-1),i]}}return{rawSchema:r,fieldPathId:t}}function Jy(e,t,n,r,i){const{schemaUtils:s,globalFormOptions:o}=e;let a=n,l=i;const d=t.split("."),u=d.pop();let c=s.retrieveSchema(a,r),p=r,y=c.readOnly;d.forEach(g=>{if(l=Ee(g,o,l),X(c,te))a=N(c,[te,g],{});else if(c&&(X(c,q)||X(c,Q))){const b=X(c,q)?q:Q,S=s.findSelectedOptionInXxxOf(c,g,b,p);a=N(S,[te,g],{})}else{const b=Hs(c,l,g);a=b.rawSchema??{},l=b.fieldPathId}p=N(p,g,{}),c=s.retrieveSchema(a,p),y=Gs(c.readOnly,y)});let f,h=!1;if(me(c)&&(c=void 0),c&&u){if(c&&(X(c,q)||X(c,Q))){const b=X(c,q)?q:Q;c=s.findSelectedOptionInXxxOf(c,u,b,p)}l=Ee(u,o,l),h=c!==void 0&&Array.isArray(c.required)&&Vy(c.required,u);const g=Hs(c,l,u);if(g.rawSchema?(c=g.rawSchema,l=g.fieldPathId):(c=N(c,[te,u]),c=c&&s.retrieveSchema(c)),y=Gs(c?.readOnly,y),c&&(X(c,q)||X(c,Q))){const b=X(c,q)?q:Q,S=Le(c);f={options:c[b],hasDiscriminator:!!S}}}return{schema:c,isRequired:h,isReadonly:y,optionsInfo:f,fieldPathId:l}}function Xy(e,t){let n=e;return at(n)&&(n=Ni(t,n)),yn(n)?n:null}function Qy(e,t){let n,r=null,i={},s;if(at(t)||dl(t))n=t??"";else{const{name:o="",render:a,...l}=t;n=o,i=l,me(i)||Oy(i,(d,u)=>{if(at(d)){const c=qy.exec(d);if(Array.isArray(c)&&c.length>1){const p=c[1];i[u]=Ni(e,p,p)}}}),r=Xy(a,e),!o&&r&&(s=m.jsx(r,{...l,"data-testid":st.uiComponent}))}return{name:n,UIComponent:r,uiProps:i,rendered:s}}function nr(e){const{childrenLayoutGridSchemaId:t,...n}=e,{registry:r,schema:i,formData:s}=n,{schemaUtils:o}=r,a=o.retrieveSchema(i,s);return t.map(l=>I.createElement($i,{...n,key:`layoutGrid-${Me(l)}`,schema:a,layoutGridSchema:l}))}function Zy(e){const{layoutGridSchema:t,...n}=e,{formData:r,registry:i}=n,{children:s,gridProps:o}=tr(t,Ue.CONDITION,i),{operator:a,field:l="",value:d}=o,u=N(r,l,null);return Yy(a,u,d)?m.jsx(nr,{...n,childrenLayoutGridSchemaId:s}):null}function e0(e){const{layoutGridSchema:t,...n}=e,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=tr(t,Ue.COLUMN,r),a=U(i),l=V("GridTemplate",r,a);return m.jsx(l,{column:!0,"data-testid":st.col,...o,children:m.jsx(nr,{...n,childrenLayoutGridSchemaId:s})})}function t0(e){const{layoutGridSchema:t,...n}=e,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=tr(t,Ue.COLUMNS,r),a=U(i),l=V("GridTemplate",r,a);return s.map(d=>m.jsx(l,{column:!0,"data-testid":st.col,...o,children:m.jsx(nr,{...n,childrenLayoutGridSchemaId:[d]})},`column-${Me(d)}`))}function n0(e){const{layoutGridSchema:t,...n}=e,{registry:r,uiSchema:i}=n,{children:s,gridProps:o}=tr(t,Ue.ROW,r),a=U(i),l=V("GridTemplate",r,a);return m.jsx(l,{...o,"data-testid":st.row,children:m.jsx(nr,{...n,childrenLayoutGridSchemaId:s})})}function r0(e){const{gridSchema:t,schema:n,uiSchema:r,errorSchema:i,fieldPathId:s,onBlur:o,onFocus:a,formData:l,readonly:d,registry:u,layoutGridSchema:c,...p}=e,{onChange:y}=p,{fields:f}=u,{SchemaField:h,LayoutMultiSchemaField:g}=f,b=Qy(u,t),{name:S,UIComponent:O,uiProps:v}=b,{schema:x,isRequired:w,isReadonly:j,optionsInfo:A,fieldPathId:E}=Jy(u,S,n,l,s),C=Et(E);if(b.rendered)return b.rendered;if(x){const F=A?.hasDiscriminator?g:h,{fieldUiSchema:_,uiReadonly:T}=Hy(S,v,r,j,d);return m.jsx(F,{"data-testid":A?.hasDiscriminator?st.layoutMultiSchemaField:st.field,...p,name:S,required:w,readonly:T,schema:x,uiSchema:_,errorSchema:N(i,S),fieldPathId:C,formData:N(l,S),onChange:y,onBlur:o,onFocus:a,options:A?.options,registry:u})}return O?m.jsx(O,{"data-testid":st.uiComponent,...p,name:S,required:w,formData:l,readOnly:!!j||d,errorSchema:i,uiSchema:r,schema:n,fieldPathId:s,onBlur:o,onFocus:a,registry:u,...v}):null}function $i(e){const{uiSchema:t}=e;let{layoutGridSchema:n}=e;const r=U(t);if(!n&&Sr in r&&ee(r[Sr])&&(n=r[Sr]),ee(n)){if(Ue.ROW in n)return m.jsx(n0,{...e,layoutGridSchema:n});if(Ue.COLUMN in n)return m.jsx(e0,{...e,layoutGridSchema:n});if(Ue.COLUMNS in n)return m.jsx(t0,{...e,layoutGridSchema:n});if(Ue.CONDITION in n)return m.jsx(Zy,{...e,layoutGridSchema:n})}return m.jsx(r0,{...e,gridSchema:n})}$i.TEST_IDS=st;function i0(e){const{fieldPathId:t,title:n,schema:r,uiSchema:i,required:s,registry:o,name:a}=e,l=U(i,o.globalUiOptions),{title:d}=l,{title:u}=r,c=d||n||u||a;if(!c)return null;const p=V("TitleFieldTemplate",o,l);return m.jsx(p,{id:er(t),title:c,required:s,schema:r,uiSchema:i,registry:o})}function wr(e,t,n){const r="!@#!@$@#$!@$#";return e.map(({schema:s})=>s).find(s=>{const o=N(s,[te,t]);return N(o,zn,N(o,je,r))===n})}function Ys(e,t,n,r,i){const s=t.map(l=>n.retrieveSchema(l,i));let o=e;X(e,q)?o={...e,[q]:s}:X(e,Q)&&(o={...e,[Q]:s});const a=kt(o,r);if(!a)throw new Error(`No enumOptions were computed from the schema ${JSON.stringify(o)}`);return a}function s0(e){const{name:t,baseType:n,disabled:r=!1,formData:i,fieldPathId:s,onBlur:o,onChange:a,options:l,onFocus:d,registry:u,uiSchema:c,schema:p,autofocus:y,readonly:f,required:h,errorSchema:g,hideError:b=!1}=e,{widgets:S,schemaUtils:O,globalUiOptions:v}=u,[x,w]=I.useState(Ys(p,l,O,c,i)),j=N(s,oe),A=Le(p),E=V("FieldErrorTemplate",u,l),C=V("FieldTemplate",u,l),F=Me(p),_=Me(l),T=c?Me(c):"",$=i?Me(i):"";I.useEffect(()=>{w(Ys(p,l,O,c,i))},[F,_,O,T,$]);const{widget:D=A?"radio":"select",title:P="",placeholder:k="",optionsSchemaSelector:M=A,hideError:B,...W}=U(c);if(!M)throw new Error("No selector field provided for the LayoutMultiSchemaField");const R=N(i,M);let L=N(x[0]?.schema,[te,M],{});const Z=wr(x,M,R);L=L?.type?L:{...L,type:Z?.type||n};const z=Ve(L,D,S),ne=B===void 0?b:!!B,le=N(g,[be],[]),re=dn(g,[be]),K=O.getDisplayLabel(p,c,v),J=Fe=>{const ve=wr(x,M,Fe),he=wr(x,M,R);let we=O.sanitizeDataForNewSchema(ve,he,i);we&&ve&&(we=O.getDefaultFormState(ve,we,"excludeObjectChildren")),we&&se(we,M,Fe),a(we,s.path,void 0,j)},ie={enumOptions:x,...W},de=!ne&&le.length>0?m.jsx(E,{fieldPathId:s,schema:p,errors:le,registry:u}):void 0;return m.jsx(C,{fieldPathId:s,id:j,schema:p,label:(P||p.title)??"",disabled:r||Array.isArray(x)&&me(x),uiSchema:c,required:h,readonly:!!f,registry:u,displayLabel:K,errors:de,onChange:a,onKeyRename:Nn,onKeyRenameBlur:Nn,onRemoveProperty:Nn,children:m.jsx(z,{id:j,name:t,schema:p,label:(P||p.title)??"",disabled:r||Array.isArray(x)&&me(x),uiSchema:c,autofocus:y,readonly:f,required:h,registry:u,multiple:!1,rawErrors:le,hideError:ne,hideLabel:!K,errorSchema:re,placeholder:k,onChange:J,onBlur:o,onFocus:d,value:R,options:ie,htmlName:s.name})})}class Js extends I.Component{constructor(t){super(t);const{formData:n,options:r,registry:{schemaUtils:i}}=this.props,s=r.map(o=>i.retrieveSchema(o,n));this.state={retrievedOptions:s,selectedOption:this.getMatchingOption(0,n,s)}}componentDidUpdate(t,n){const{formData:r,options:i,fieldPathId:s}=this.props,{selectedOption:o}=this.state;let a=this.state;if(!ue(t.options,i)){const{registry:{schemaUtils:l}}=this.props,d=i.map(u=>l.retrieveSchema(u,r));a={selectedOption:o,retrievedOptions:d}}if(!ue(r,t.formData)&&s.$id===t.fieldPathId.$id){const{retrievedOptions:l}=a,d=this.getMatchingOption(o,r,l);n&&d!==o&&(a={selectedOption:d,retrievedOptions:l})}a!==this.state&&this.setState(a)}getMatchingOption(t,n,r){const{schema:i,registry:{schemaUtils:s}}=this.props,o=Le(i);return s.getClosestMatchingOption(n,r,t,o)}onOptionChange=t=>{const{selectedOption:n,retrievedOptions:r}=this.state,{formData:i,onChange:s,registry:o,fieldPathId:a}=this.props,{schemaUtils:l}=o,d=t!==void 0?parseInt(t,10):-1;if(d===n)return;const u=d>=0?r[d]:void 0,c=n>=0?r[n]:void 0;let p=l.sanitizeDataForNewSchema(u,c,i);u&&(p=l.getDefaultFormState(u,p,"excludeObjectChildren")),this.setState({selectedOption:d},()=>{s(p,a.path,void 0,this.getFieldId())})};getFieldId(){const{fieldPathId:t,schema:n}=this.props;return`${t.$id}${n.oneOf?"__oneof_select":"__anyof_select"}`}render(){const{name:t,disabled:n=!1,errorSchema:r={},formData:i,onBlur:s,onFocus:o,readonly:a,required:l=!1,registry:d,schema:u,uiSchema:c}=this.props,{widgets:p,fields:y,translateString:f,globalUiOptions:h,schemaUtils:g}=d,{SchemaField:b}=y,S=V("MultiSchemaFieldTemplate",d,h),O=jn(d,u,l,c),v=zt(i),{selectedOption:x,retrievedOptions:w}=this.state,{widget:j="select",placeholder:A,autofocus:E,autocomplete:C,title:F=u.title,..._}=U(c,h),T=Ve({type:"number"},j,p),$=N(r,be,[]),D=dn(r,[be]),P=g.getDisplayLabel(u,c,h),k=x>=0&&w[x]||null;let M;if(k){const{required:le}=u;M=le?Ge({required:le},k):k}let B=[];q in u&&c&&q in c?Array.isArray(c[q])?B=c[q]:console.warn(`uiSchema.oneOf is not an array for "${F||t}"`):Q in u&&c&&Q in c&&(Array.isArray(c[Q])?B=c[Q]:console.warn(`uiSchema.anyOf is not an array for "${F||t}"`));let W=c;x>=0&&B.length>x&&(W=B[x]);const R=F?G.TitleOptionPrefix:G.OptionPrefix,L=F?[F]:[],Z=w.map((le,re)=>{const{title:K=le.title}=U(B[re]);return{label:K||f(R,L.concat(String(re+1))),value:re}}),z=!O||v?m.jsx(T,{id:this.getFieldId(),name:`${t}${u.oneOf?"__oneof_select":"__anyof_select"}`,schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:s,onFocus:o,disabled:n||me(Z),multiple:!1,rawErrors:$,errorSchema:D,value:x>=0?x:void 0,options:{enumOptions:Z,..._},registry:d,placeholder:A,autocomplete:C,autofocus:E,label:F??t,hideLabel:!P,readonly:a}):void 0,ne=M&&M.type!=="null"&&m.jsx(b,{...this.props,schema:M,uiSchema:W})||null;return m.jsx(S,{schema:u,registry:d,uiSchema:c,selector:z,optionSchemaField:ne})}}const o0=/\.([0-9]*0)*$/,a0=/[0.]0*$/;function l0(e){const{registry:t,onChange:n,formData:r,value:i}=e,[s,o]=I.useState(i),{StringField:a}=t.fields;let l=r;const d=I.useCallback((u,c,p,y)=>{o(u),`${u}`.charAt(0)==="."&&(u=`0${u}`);const f=typeof u=="string"&&u.match(o0)?Hi(u.replace(a0,"")):Hi(u);n(f,c,p,y)},[n]);if(typeof s=="string"&&typeof l=="number"){const u=new RegExp(`^(${String(l).replace(".","\\.")})?\\.?0*$`);s.match(u)&&(l=s)}return m.jsx(a,{...e,formData:l,onChange:d})}function Re(){return Re=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Re.apply(null,arguments)}const En=["strong","em","del","mark"],Xs=[["**",En[0]],["__",En[0]],["~~",En[2]],["==",En[3]],["*","em"],["_","em"]];function c0(e,t){for(var n=1,r=t+1;r<e.length&&n>0;)e[r]!=="\\"?(e[r]==="["&&n++,e[r]==="]"&&n--,r++):r+=2;if(n===0&&r<e.length&&(e[r]==="("||e[r]==="[")){var i=e[r]==="("?")":"]",s=1;for(r++;r<e.length&&s>0;)e[r]!=="\\"?(e[r]==="("&&i===")"&&s++,e[r]===i&&s--,r++):r+=2;if(s===0)return r}return-1}function u0(e,t){if(!t||!t.inline&&!t.simple)return null;var n=e[0];if(n!=="*"&&n!=="_"&&n!=="~"&&n!=="=")return null;for(var r="",i=0,s="",o=0;o<6;o++){var a=Xs[o][0];if(e.startsWith(a)&&e.length>=2*a.length){r=a,i=a.length,s=Xs[o][1];break}}if(!r)return null;for(var l=i,d=!1,u=!1,c="",p=0,y="",f=!1,h="";l<e.length;){var g=e[l];if(f)y+=g,f=!1,h=g,l++;else if(g!=="\\")if(g!=="`"||p!==0){if(g==="["&&!d&&p===0){var b=c0(e,l);if(b!==-1){y+=e.slice(l,b),l=b,h=e[b-1];continue}}if(u)y+=g,c?g===c&&(c=""):g==='"'||g==="'"?c=g:g===">"&&(u=!1),h=g,l++;else if(g!=="<"||d){if(g===`
|
|
3
3
|
`&&h===`
|
|
4
4
|
`&&!d&&p===0)return null;if(!d&&p===0){for(var S=0;l+S<e.length&&e[l+S]===r[0];)S++;if(S>=i&&(i!==1||r!=="*"&&r!=="_"||e[l-1]!==r&&e[l+1]!==r)){var O=[e.slice(0,l+S),s,y+e.slice(l+i,l+S)];return O.index=0,O.input=e,O}}y+=g,h=g,l++}else{var v=e[l+1],x=e.indexOf(">",l);if(x!==-1){var w=e.slice(l,x+1).endsWith("/>");v==="/"?p=Math.max(0,p-1):w||p++}u=!0,y+=g,h=g,l++}}else d=!d,y+=g,h=g,l++;else y+=g,f=!0,h=g,l++}return null}const d0=["children","options"],Qs=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),Zs={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},f0=["style","script","pre"],m0=["src","href","data","formAction","srcDoc","action"],p0=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,h0=/\n{2,}$/,eo=/^(\s*>[\s\S]*?)(?=\n\n|$)/,g0=/^ *> ?/gm,y0=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,b0=/^ {2,}\n/,x0=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,to=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,no=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,v0=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,S0=/^(?:\n *)*\n/,w0=/\r\n?/g,O0=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,j0=/^\[\^([^\]]+)]/,A0=/\f/g,C0=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,E0=/^\[(x|\s)\]/,ro=/^(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,io=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,so=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Ri=/^<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>/i;function _0(e){const t=Ri.exec(e);if(!t)return null;const n=t[1],r=n.toLowerCase(),i=r.length+1;let s=t[0].length;e[s]===`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as i,L as n,O as l,P as u,V as C,i as c,p as P,u as p}from"./index-
|
|
1
|
+
import{C as i,L as n,O as l,P as u,V as C,i as c,p as P,u as p}from"./index-zTmRWZBl.js";import{E as M,b as L,a as E,c as T,u as d,d as g,e as x}from"./use-collections-BM5qbXh2.js";import{u as O,a as y,b as _}from"./use-connection-D_z7DIgr.js";import{S as e}from"./constants-Bi0KgUSI.js";import{K as R,a as b,W as A,c as I,g as h,b as V,d as D,e as K,f as U,i as W,u as w,h as Q}from"./constants-Bi0KgUSI.js";import{u as Y,a as j,b as F,c as G,d as k}from"./use-mcp-tools-CXYzi3AR.js";import{l as B,r as H,u as J,a as q,b as z}from"./use-mcp-resources-F-AJdNv-.js";import{A as Z,D as $,g as ss,l as es,u as as,a as ts}from"./decopilot-events-tuPofCi7.js";import{u as rs,a as is,b as ns}from"./use-virtual-mcp-BwZwR42s.js";import{a as us,h as Cs,i as cs}from"./mcp-oauth-Bjgs9JoZ.js";import{a as ps,c as ms,e as Ms,g as Ls}from"./usage-B8eRkRZY.js";import"./useMutation-DxToDvqg.js";import"./useQuery-C_yP5u2a.js";export{Z as ALL_DECOPILOT_EVENT_TYPES,i as ConnectionEntitySchema,$ as DECOPILOT_EVENTS,M as EMPTY_COLLECTION_LIST_RESULT,R as KEYS,n as Locator,l as ORG_ADMIN_PROJECT_SLUG,u as ProjectContextProvider,b as SELF_MCP_ALIAS_ID,e as StreamableHTTPClientTransport,C as VirtualMCPEntitySchema,A as WellKnownOrgMCPId,ps as addUsage,us as authenticateMcp,L as buildCollectionQueryKey,E as buildOrderByExpression,T as buildWhereExpression,ms as calculateUsageStats,I as createMCPClient,Ms as emptyUsageStats,Ls as getCostFromUsage,h as getDecopilotId,ss as getPrompt,V as getWellKnownCommunityRegistryConnection,D as getWellKnownDecopilotVirtualMCP,K as getWellKnownOpenRouterConnection,U as getWellKnownRegistryConnection,Cs as handleOAuthCallback,cs as isConnectionAuthenticated,W as isDecopilot,c as isStdioParameters,es as listPrompts,B as listResources,P as parseVirtualUrl,H as readResource,d as useCollectionActions,g as useCollectionItem,x as useCollectionList,O as useConnection,y as useConnectionActions,_ as useConnections,w as useMCPClient,Q as useMCPClientOptional,as as useMCPPromptsList,ts as useMCPPromptsListQuery,J as useMCPReadResource,q as useMCPResourcesList,z as useMCPResourcesListQuery,Y as useMCPToolCall,j as useMCPToolCallMutation,F as useMCPToolCallQuery,G as useMCPToolsList,k as useMCPToolsListQuery,p as useProjectContext,rs as useVirtualMCP,is as useVirtualMCPActions,ns as useVirtualMCPs};
|